/* Общие стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; /* Основной шрифт для текста */
    color: #333333; /* Тёмный, чёткий текст */
    background-color: #F8F5F1; /* Нежный светлый кремовый фон */
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif; /* Заголовки для элегантности */
    color: #333333;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em; /* Большой заголовок для Hero */
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #B08D57; /* Золотистая линия под заголовками */
    margin: 20px auto 0;
}

p {
    margin-bottom: 1em;
}

a {
    color: #4A3F35; /* Глубокий шоколадный для ссылок */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #B08D57; /* Золотистый при наведении */
}

ul {
    list-style: none;
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    background-color: #B08D57; /* Золотистый фон */
    color: #F8F5F1; /* Светлый текст */
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #E8D9C2; /* Пудровый при наведении */
    color: #4A3F35; /* Глубокий шоколадный текст при наведении */
}

/* Секции */
section {
    padding: 80px 0;
}

section:nth-of-type(even) { /* Фон для четных секций, если нужно отличить */
    background-color: #F1E8D3; /* Теплый бежевый */
}

/* Header */
.header {
    background-color: #F8F5F1;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #333333;
    white-space: nowrap; /* Чтобы логотип не переносился на новую строку */
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: #4A3F35;
    font-weight: 500;
    font-size: 1.05em;
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a:hover {
    color: #B08D57;
}

.main-nav ul li a.cta-button { /* Стили для кнопки в навигации */
    background-color: #4A3F35;
    color: #F8F5F1;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.main-nav ul li a.cta-button:hover {
    background-color: #B08D57;
    color: #F8F5F1;
}

/* Hero-блок */
.hero-section {
    background-color: #F8F5F1; /* Светлый кремовый */
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 55%;
}

.hero-text h1 {
    margin-bottom: 15px;
}

.hero-text .subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #4A3F35;
}

.hero-image {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Немного скруглим углы изображения */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Легкая тень */
}
/* Иконка, добавленная в герой-блок */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    width: 80px;
    height: 80px;
    background: url('images/hero-flower-icon.svg') no-repeat center center; /* Пример иконки */
    background-size: contain;
    opacity: 0.2;
    z-index: 0;
}
/* Для адаптации герой-блока, когда изображение находится справа, а текст слева */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text, .hero-image {
        max-width: 100%;
    }
    .hero-text h1 {
        font-size: 2.8em;
    }
    .hero-text .subtitle {
        font-size: 1.1em;
    }
}
/* Наши услуги */
.services-section {
    background-color: #F1E8D3; /* Теплый бежевый фон */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background-color: #F8F5F1; /* Светлый кремовый фон карточки */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333333;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: #B08D57; /* Изменение цвета текста при наведении */
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4em;
    margin-bottom: 0;
    color: inherit; /* Используем унаследованный цвет */
}

/* Преимущества */
.benefits-section {
    background-color: #F8F5F1; /* Светлый кремовый фон */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-card {
    background-color: #F1E8D3; /* Теплый бежевый фон карточки */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.2em;
    margin-bottom: 0;
    font-weight: 500;
}

/* Портфолио работ */
.portfolio-section {
    background-color: #F1E8D3; /* Теплый бежевый фон */
}

.portfolio-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #F8F5F1;
    color: #4A3F35;
    border: 1px solid #D1C0AA;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #B08D57;
    color: #F8F5F1;
    border-color: #B08D57;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-item img {
    width: 100%;
    height: 300px; /* Фиксированная высота для единообразия */
    object-fit: cover; /* Обрезка изображения для заполнения */
    display: block;
}

/* Отзывы клиентов */
.reviews-section {
    background-color: #F8F5F1; /* Светлый кремовый фон */
}

.reviews-carousel {
    display: flex; /* Для горизонтального размещения отзывов (можно сделать слайдером с JS) */
    overflow-x: auto; /* Позволит прокручивать, если отзывов много */
    gap: 30px;
    padding-bottom: 20px; /* Чтобы скроллбар был виден */
    justify-content: center; /* Центрируем отзывы, если их меньше, чем ширина контейнера */
}

.review-card {
    flex: 0 0 450px; /* Фиксированная ширина карточки, не сжимается */
    background-color: #F1E8D3;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 300px; /* Минимальная ширина для мобильных */
}

.review-text {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #4A3F35;
}

.reviewer-name {
    font-weight: 700;
    color: #B08D57;
    margin-bottom: 20px;
}

.review-images {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.review-images img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; /* Круглые изображения */
    border: 3px solid #B08D57;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Записаться на консультацию */
.booking-section {
    background-color: #F1E8D3; /* Теплый бежевый фон */
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    background-color: #F8F5F1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #D1C0AA;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: #333333;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: #B08D57;
    outline: none;
}

.booking-form button.btn-primary {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #4A3F35; /* Глубокий шоколадный фон */
    color: #F8F5F1; /* Светлый текст */
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left; /* Выравниваем текст в блоках футера по левому краю */
}

.footer-content h3 {
    color: #F8F5F1;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.footer-content p {
    font-size: 0.95em;
    margin-bottom: 10px;
}

.footer-content a {
    color: #F8F5F1;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #B08D57;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Делает SVG иконки белыми на темном фоне */
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
    filter: invert(70%) sepia(30%) saturate(600%) hue-rotate(340deg) brightness(90%) contrast(80%); /* Пример золотого оттенка при наведении */
}

.map-container {
    flex: 1;
    min-height: 300px;
    background-color: #333333; /* Заглушка для карты */
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.copyright {
    margin-top: 40px;
    font-size: 0.85em;
    opacity: 0.8;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .header {
        padding: 15px 0;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-nav ul li a.cta-button {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .hero-section {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text, .hero-image {
        max-width: 100%;
    }

    .hero-image {
        margin-top: 40px;
    }

    .services-grid,
    .benefits-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters button {
        margin-bottom: 10px;
        width: 100%;
    }

    .reviews-carousel {
        flex-direction: column; /* Отзывы друг под другом на мобильных */
        align-items: center;
        overflow-x: hidden;
    }

    .review-card {
        flex: 0 0 90%; /* Ширина карточки на мобильных */
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .map-container {
        width: 100%;
        min-height: 250px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero-text .subtitle {
        font-size: 1em;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 1em;
    }

    .booking-form {
        padding: 20px;
    }
}