/* Базовые стили */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: auto;
    overflow: hidden; /* Для очистки float-ов */
    padding: 20px 0;
}

/* Шапка сайта */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    padding: 10px 0;
}

header p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Навигация */
nav ul {
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9em;
}

nav a:hover {
    color: #a3ccf1;
}

/* Основной контент */
main section {
    padding: 20px 0;
    margin-bottom: 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

main section#hero {
    text-align: center;
    background: linear-gradient(to right, #6dd5ed, #2193b0); /* Градиентный фон */
    color: #fff;
    padding: 40px 0;
}

main section#hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.profile-img.large { /* Для страницы "Обо мне" */
    width: 200px;
    height: 200px;
}

.button {
    display: inline-block;
    background: #4CAF50; /* Зеленая кнопка */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #45a049;
}

h2, h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Секция "Мой подход" */
#approach ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

#approach ul li {
    background: #e2e2e2;
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    flex-basis: calc(33% - 40px); /* 3 колонки на десктопе */
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Отзывы */
#testimonials blockquote {
    background: #f9f9f9;
    margin: 20px 0;
    padding: 20px;
    border-left: 5px solid #2193b0;
    font-style: italic;
}

#testimonials cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #555;
}

/* Услуги */
.service-item {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.service-item ul {
    list-style: disc;
    margin-left: 20px;
}

.service-item h3 {
    text-align: left;
    margin-top: 0;
    color: #2193b0;
}

/* Контакты */
.contact-methods p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-methods a {
    color: #2193b0;
    text-decoration: none;
}

.contact-methods a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input,
form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

form button {
    background-color: #2193b0;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #1a7b93;
}

.small-text {
    font-size: 0.8em;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (для адаптивности карты) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #e2e2e2; /* Заглушка, пока карта не загрузится */
    margin-top: 20px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Футер */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 30px;
    font-size: 0.8em;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    #approach ul li {
        flex-basis: calc(50% - 40px); /* 2 колонки на планшетах */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    nav ul li {
        display: block;
        margin: 5px 0;
    }
    #approach ul li {
        flex-basis: 100%; /* 1 колонка на мобильных */
    }
    .profile-img.large {
        width: 150px;
        height: 150px;
    }
}