* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    font-family: sans-serif;
}

html {
    scroll-padding-top: 90px; /* якоря не прячутся под фиксированное меню */
}

#services,
#contacts,
#houses {
    scroll-margin-top: 90px;
}

:root {
    --primary: #2d5a27; /* Горный зеленый */
    --white: #ffffff;
    --dark: #1a1a1a;
    /* Общий фон страницы — один и тот же на body / hero / main */
    --page-bg: #f3f8f4;
    --page-gradient: linear-gradient(
        180deg,
        #ffffff 0%,
        #f5f9f6 38%,
        #e8f1eb 68%,
        #dce8e0 100%
    );
}

section {
    display: block;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--page-bg);
    background-image: var(--page-gradient);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.main-header {
    position: fixed; /* Прижимаем к верху экрана */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 13000; /* выше виджета брони, чтобы меню было кликабельно */
    background: transparent !important; /* Убираем серый фон */
    padding: 20px 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Бургер — скрыт на десктопе */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(45, 90, 39, 0.92);
    cursor: pointer;
    z-index: 1101;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.2s;
}


.block_div {
    background-attachment: fixed; /* Эффект параллакса */
    background-size: cover;
}

@media (max-width: 768px) {
    .block_div {
        background-attachment: scroll; /* Отключаем на мобилках для плавности */
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-menu {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 16px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: #ffffff; /* Белый цвет, чтобы было видно на фоне видео */
    font-weight: 500;
}

.nav-list a, .nav-phone {
    color: #ffffff !important; /* Белый текст */
    text-decoration: none;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Чтобы читалось на светлом видео */
}

.nav-list a:hover {
    color: #2d5a27; /* Твой фирменный зеленый */
}
.nav-phone {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Кнопка "Забронировать" */
.cta-button {
    display: inline-block;
    background-color: #2d5a27; /* Твой зеленый */
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    pointer-events: auto !important;
}

.cta-button:hover {
    background-color: #1e3d1a;
    transform: translateY(-3px);
}

/* Мобильная версия: базово (финальные стили — в конце файла) */
@media (max-width: 768px) {
    .description { font-size: 1rem; }
}

.about-section {
    padding: 80px 0;
    background: transparent;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Чтобы на мобилках блоки падали друг под друга */
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.features-mini {
    display: flex;
    gap: 20px;
    font-weight: bold;
    color: #2d5a27;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 20px; /* Скругляем углы — это сейчас модно */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .about-section { padding: 40px 0; }
    .about-grid { flex-direction: column; text-align: center; }
    .features-mini { justify-content: center; flex-direction: column; gap: 10px; }
}

.houses-section { /* Замените на ваш реальный класс секции с домами */
    position: relative;
    background: transparent;
    padding: 80px 0;
    z-index: 20; 
}

.section-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem); /* Размер подстроится под экран */
    word-wrap: break-word;     /* Разрыв длинных слов */
    overflow-wrap: break-word;
    hyphens: auto;             /* Переносы через дефис */
    max-width: 100%;           /* Не давать выходить за родителя */
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem; /* Уменьшаем до комфортного размера */
        line-height: 1.2;
        /* Если слово все равно не лезет, разрешаем мягкий перенос */
        hyphens: auto; 
    }
}

/* Сетка: 4 колонки по умолчанию */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.house-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
    height: 300px; /* Фиксированная высота для ровности */
}

/* "Медвежья лапа" и "Шале" занимают 2 колонки из 4 */
.house-card.large {
    grid-column: span 2;
}

.house-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.house-card:hover img {
    transform: scale(1.1);
}

/* Затемнение при наведении (вместо твоего a:after) */
.house-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.house-card:hover::after {
    opacity: 0.9;
    background: linear-gradient(to top, #2d5a27, transparent); /* Зеленый градиент при наведении */
}

.house-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: white;
}

.h-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    transition: transform 0.3s;
}

.h-sub {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 5px 0 0;
}

.house-card:hover .h-title {
    transform: translateY(-5px);
}

/* Адаптивность для мобилок */
@media (max-width: 992px) {
    .houses-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 600px) {
    .houses-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
    }
    .house-card.large {
        grid-column: span 1;
    }
    .house-card {
        height: 250px;
    }
}

#div_7729 {
    width: 100%;
    max-width: 100vw; /* Не дает блоку вылезти за пределы экрана */
    overflow: hidden; /* Обрезает лишнее, если контент шире */
    display: block;
    margin: 0 auto;
}

/* Если внутри была какая-то группа элементов, которая должна сжиматься */
#div_7729 .freeDivData {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap; /* Элементы будут сами переноситься на новую строку, если не влезают */
    justify-content: center;
}

.house-selection {
    padding: 60px 0;
    background: #fff;
}

.house-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* На компах в несколько рядов */
    justify-content: center;
}

.house-item {
    flex: 0 0 calc(33.33% - 20px); /* 3 домика в ряд */
    min-width: 280px;
    text-align: center;
}

.house-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Все фото будут одного размера */
}

.house-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Эффект при наведении */
.house-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 39, 0.8); /* Твой зеленый с прозрачностью */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.house-item:hover .house-overlay { opacity: 1; }
.house-item:hover .house-preview img { transform: scale(1.1); }

.more-btn {
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
}

.house-meta h3 {
    margin: 15px 0 5px;
    color: #333;
}

.house-meta p {
    color: #777;
    font-size: 0.9rem;
}

/* Адаптив для мобилок: превращаем в горизонтальный скролл */
@media (max-width: 768px) {
    .house-selection .house-flex {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }
    .house-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }
}

.amenities-section {
    padding: 80px 0;
    background: transparent;
}

/* Сетка иконок */
.amenities-grid {
    display: grid;
    /* 4 колонки на больших экранах, по 1 части (1fr) каждая */
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 40px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px); /* Легкий интерактив */
}

.amenity-item img {
    width: 60px; /* Фиксированный размер для всех иконок */
    height: 60px;
    margin-bottom: 15px;
    /* Если иконки черные, можно сделать их темно-зелеными через фильтр */
    filter: sepia(100%) hue-rotate(60deg) saturate(500%); 
}

.amenity-item p {
    font-size: 1rem;
    color: #444;
    font-weight: 500;
}

/* Адаптив для мобилок */
@media (max-width: 992px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшетах */
    }
}

@media (max-width: 600px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на телефонах */
        gap: 30px 10px;
    }
    .amenity-item img {
        width: 50px;
        height: 50px;
    }
    .amenity-item p {
        font-size: 0.9rem;
    }
}
.house-selection {
    padding: 60px 0;
    background: #fff;
}

.house-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* На компах в несколько рядов */
    justify-content: center;
}

.house-item {
    flex: 0 0 calc(33.33% - 20px); /* 3 домика в ряд */
    min-width: 280px;
    text-align: center;
}

.house-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Все фото будут одного размера */
}

/* Эффект при наведении */
.house-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 39, 0.8); /* Твой зеленый с прозрачностью */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.house-item:hover .house-overlay { opacity: 1; }
.house-item:hover .house-preview img { transform: scale(1.1); }

.more-btn {
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
}

.house-meta h3 {
    margin: 15px 0 5px;
    color: #333;
}

.house-meta p {
    color: #777;
    font-size: 0.9rem;
}

/* Адаптив для мобилок: превращаем в горизонтальный скролл */
@media (max-width: 768px) {
    .house-selection .house-flex {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }
    .house-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }
}

.amenities-section {
    padding: 80px 0;
    background: transparent;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 40px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px); 
}

.amenity-item img {
    width: 60px; /* Фиксированный размер для всех иконок */
    height: 60px;
    margin-bottom: 15px;
    /* Если иконки черные, можно сделать их темно-зелеными через фильтр */
    filter: sepia(100%) hue-rotate(60deg) saturate(500%); 
}

.amenity-item p {
    font-size: 1rem;
    color: #444;
    font-weight: 500;
}

/* Адаптив для мобилок */
@media (max-width: 992px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшетах */
    }
}

@media (max-width: 600px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на телефонах */
        gap: 30px 10px;
    }
    .amenity-item img {
        width: 50px;
        height: 50px;
    }
    .amenity-item p {
        font-size: 0.9rem;
    }
}

.cta-section {
    padding: 100px 0;
    overflow: hidden;
    background: transparent;
}

.cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content {
    flex: 1;
    max-width: 500px;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 20px;
}

.cta-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.cta-image img {
    max-width: 100%;
    height: auto;
    z-index: 2; /* Чтобы люди были поверх круга */
}

/* Тот самый .ellips из твоего кода, но на CSS */
.decoration-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: #2d5a27;
    opacity: 0.1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .cta-grid {
        flex-direction: column;
        text-align: center;
    }
    .cta-content {
        order: 1; /* Текст будет первым */
    }
    .cta-image {
        order: 2; /* Картинка второй */
        margin-top: 40px;
    }
    .decoration-circle {
        width: 250px;
        height: 250px;
    }
}

/* Галерея услуг */
.services-gallery {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card p {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    text-align: center;
    margin: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .promo-grid { flex-direction: column; text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
}

.custom-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1 !important;
    display: block !important; /* Гарантируем видимость */
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопки управления */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 90, 39, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 100 !important; /* Выводим кнопки на самый передний план */
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-btn:hover { background: rgba(45, 90, 39, 0.9); }
.prev { left: 20px; }
.next { right: 20px; }

@media (max-width: 768px) {
    .custom-slider { height: 300px; }

    html,
    body,
    .hero,
    .main-content {
        background-attachment: scroll;
    }
}

.about-detailed {
    padding: 100px 0;
    background: transparent;
}

.about-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-info {
    flex: 1;
}

.section-title-left {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 30px;
}

.about-description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* Коллаж из фото */
.about-gallery {
    flex: 1;
}

.photo-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-collage img {
    width: 100%;
    aspect-ratio: 1; /* Квадратные фото */
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.photo-collage img:hover {
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
    }
    .about-info, .about-gallery {
        width: 100%;
    }
    .photo-collage {
        grid-template-columns: repeat(2, 1fr); /* На планшетах оставляем по 2 */
    }
}

@media (max-width: 600px) {
    .section-title-left { font-size: 2rem; }
    .photo-collage { gap: 10px; }
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Делаем первую картинку (с качелями) на две строки в высоту */
.grid-item.tall {
    grid-row: span 2;
}

.grid-item.tall img {
    height: 100%;
}

@media (max-width: 992px) {
    .about-flex { flex-direction: column; }
    .photo-grid { width: 100%; }
}

.parallax-divider {
    height: 400px; /* Высота блока */
    background: url('../../files/ex/landingpage_image/promo_slider/7702_1.png') center/cover no-repeat fixed;
    /* fixed создаст тот самый эффект параллакса, который раньше делали скриптами */
}

@media (max-width: 768px) {
    .parallax-divider {
        height: 250px;
        background-attachment: scroll; /* На мобилках лучше отключать fixed для плавности */
    }
}

.places-section {
    padding: 80px 0;
    background: transparent;
}

.places-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Позволяет листать вбок */
    padding-bottom: 30px;
    scroll-snap-type: x mandatory; /* Магнитный эффект при листании */
    scrollbar-width: thin; /* Тонкий скроллбар */
    scrollbar-color: #2d5a27 transparent;
}

/* Стилизация полосы прокрутки для Chrome/Safari */
.places-carousel::-webkit-scrollbar { height: 6px; }
.places-carousel::-webkit-scrollbar-thumb { background: #2d5a27; border-radius: 10px; }

.place-card {
    flex: 0 0 300px; /* Фиксированная ширина карточки */
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

.place-card:hover { transform: translateY(-10px); }

.place-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
}

.place-info p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

@media (max-width: 600px) {
    .place-card { flex: 0 0 85%; } /* На телефонах карточка почти на весь экран */
}

.nature-section {
    padding: 60px 0;
}

.nature-grid {
    display: grid;
    /* 4 колонки на ПК, 2 на планшете, 1 на телефоне */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.nature-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    transition: transform 0.3s ease;
}

.nature-item:hover {
    transform: scale(1.02);
}

.nature-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nature-item p {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(45, 90, 39, 0.8); /* Твой фирменный зеленый */
    color: white;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

.main-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Делаем лого белым для темного фона */
}

.footer-nav ul { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .footer-grid { text-align: center; }
}

.reviews-section {
    padding: 80px 0;
    background: transparent;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.visitor-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
}

.visitor-name {
    font-weight: bold;
    color: #2d5a27;
    margin: 0;
}

.visitor-city {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }}

.contacts-section {
    padding: 80px 0;
    background: transparent;
}

.contacts-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contacts-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    color: #2d5a27;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item a:not(.cta-button) {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 90, 39, 0.35);
}

.contact-item a:not(.cta-button):hover {
    color: #2d5a27;
    border-bottom-color: #2d5a27;
}

.footer-legal {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9aa195;
}

.footer-legal a {
    color: #d7ead4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    color: #fff;
}

.map-wrapper {
    flex: 2; /* Карта шире текстового блока */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.yandex-map {
    display: block;
    filter: grayscale(0.2); /* Немного приглушим цвета карты под стиль сайта */
}

/* Адаптив */
@media (max-width: 992px) {
    .contacts-grid {
        flex-direction: column;
    }
    .map-wrapper, .contacts-info {
        width: 100%;
    }
}

.footer-contacts {
    display: flex;
    flex-direction: column; /* Элементы в колонку по умолчанию */
    align-items: center;    /* Центрируем */
    gap: 20px;              /* Четкий отступ между телефоном и кнопкой */
}

.fr-phone a {
    display: block;
    font-size: 24px;
    white-space: nowrap;    /* Запрещаем номеру телефона разрываться на две строки */
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.fr-button-wrapper {
    margin-top: 5px;        /* Дополнительный мимолетный отступ */
}

/* На больших экранах (компьютерах) ставим их в ряд, если место позволяет */
@media (min-width: 992px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-contacts {
        flex-direction: row; /* На ПК — в одну линию */
        gap: 40px;           /* Большой отступ, чтобы не нализали */
    }
}

/* На мобилках увеличиваем расстояние, чтобы было удобно попадать пальцем */
@media (max-width: 768px) {
    .footer-contacts {
        gap: 25px; 
    }
    .fr-phone a {
        font-size: 20px;
    }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: #fff; /* Белый круг */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 92px; /* над кнопкой «Бронь» */
    width: 50px;
    height: 50px;
    background-color: #2d5a27;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 11900;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out, background 0.2s ease;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Состояние, когда кнопка активна (показывается скриптом) */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #3e7a36;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 18px;
        bottom: 82px;
        width: 44px;
        height: 44px;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Контент растёт вместе со страницей; футер не перекрывает длинные страницы */
.main-content,
.legal-page {
    flex: 1 0 auto;
}

.main-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.page-intro {
    padding: 120px 0 60px; /* Большой отступ сверху под фиксированную шапку */
    background: transparent;
    text-align: center;
}

.about-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.sub-page-logo {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.sub-page-logo:hover {
    transform: scale(1.05);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #2d5a27;
    font-family: 'Cormorant-Garamound', serif;
    margin: 0;
}

/* На мобилках уменьшаем отступы */
@media (max-width: 768px) {
    .page-intro {
        padding: 100px 0 40px;
    }
    .sub-page-logo {
        max-width: 150px;
    }
}

.abt-logo-wrapper {
    margin-bottom: 30px;
}

.abt-logo-wrapper img {
    max-width: 280px; /* Тот размер, что был в старом коде */
    width: 100%;
    height: auto;
    display: inline-block;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #2d5a27;
    margin: 0;
    font-family: 'Cormorant-Garamound', serif;
}

/* На мобилках уменьшаем логотип */
@media (max-width: 768px) {
    .abt-logo-wrapper img {
        max-width: 180px;
    }
}

.about-main-text {
    padding: 60px 0;
    background: #fff;
}

.about-wrapper {
    max-width: 800px; /* Ограничиваем ширину текста для удобства чтения */
    margin: 0 auto;
}

.abt-desc p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Proxima-Nova', sans-serif;
}

.about-button-block {
    margin-top: 40px;
    text-align: center;
}

/* На мобилках делаем текст чуть меньше */
@media (max-width: 768px) {
    .abt-desc p {
        font-size: 1.05rem;
        line-height: 1.6;
    }
}

.about-details {
    padding: 40px 0 80px;
    background-color: #fff;
}

.about-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.about-col {
    flex: 1;
    min-width: 300px;
}

.about-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column; /* Текст встает друг под друга */
        gap: 20px;
    }
    .about-col {
        min-width: 100%;
    }
}

.about-emotions {
    padding: 80px 0;
    text-align: center;
    background-color: #fdfdfd;
}

.cormorant-title {
    font-family: 'Cormorant-Garamound', serif;
    font-size: clamp(2rem, 6vw, 4.5rem); /* Вместо фиксированных 74px */
    line-height: 1.1;
    color: #2d5a27;
    margin-bottom: 60px;
}

.emotion-details {
    max-width: 900px;
    margin: 0 auto;
}

.cormorant-subtitle {
    font-family: 'Cormorant-Garamound', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 30px;
}

.features-list p {
    font-family: 'Proxima-Nova', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* На мобилках уменьшаем отступы и шрифты */
@media (max-width: 768px) {
    .about-emotions { padding: 40px 15px; }
    .cormorant-title { margin-bottom: 30px; }
}

.refund-policy {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.refund-card {
    background: #2d5a27;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(45, 90, 39, 0.28);
}

.refund-content {
    text-align: center;
}

.refund-content h2 {
    color: #fff;
    margin-bottom: 25px;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
}

.refund-details p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.refund-action {
    margin-top: 30px;
}

/* Белая кнопка на зелёном фоне */
.cta-button.secondary {
    background: #fff;
    color: #2d5a27;
}

.cta-button.secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .refund-card { padding: 30px 20px; }
    .highlight-text { font-size: 1.2rem; }
}


.nearby-places {
    padding: 60px 0;
    background: #fdfdfd;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.place-item {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.place-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.place-item:hover img {
    transform: scale(1.1);
}

.place-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
    font-weight: bold;
    margin: 0;
}

.nature-gallery {
    padding: 60px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    /* 3 колонки на ПК, 2 на планшете, 1 на телефоне */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

.page-header {
    padding: 140px 0 60px; /* Отступ под фиксированное меню */
    background: transparent;
    text-align: center;
}

.houses-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.houses-logo img {
    max-width: 250px;
    height: auto;
    margin-bottom: 10px;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #2d5a27;
    font-family: 'Cormorant-Garamound', serif;
    margin: 0;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
}

@media (max-width: 768px) {
    .page-header { padding: 100px 0 40px; }
    .houses-logo img { max-width: 180px; }
}

.house-detail {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.house-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.house-gallery {
    flex: 2; /* Галерея занимает больше места */
}

.house-sidebar {
    flex: 1;
    position: sticky;
    top: 100px; /* Прилипает при скролле */
}

.house-name {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 20px;
}

.house-stats {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.house-stats li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.house-price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.house-price span {
    font-size: 1rem;
    font-weight: normal;
    color: #888;
}

.house-description {
    margin-top: 40px;
    max-width: 800px;
}

.house-description h3 {
    font-family: 'Cormorant-Garamound', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.desc-text p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}

.floor-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.floor h4 {
    margin: 0 0 8px;
    color: #2d5a27;
    font-size: 1.05rem;
}

.extra-info {
    margin-top: 25px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f3f8f4;
    border-left: 4px solid #2d5a27;
}

.extra-info p {
    margin: 0;
}

/* Адаптив */
@media (max-width: 992px) {
    .house-flex { flex-direction: column; }
    .house-sidebar { position: static; width: 100%; }
}

/* Основной контейнер домика */
.house-detail {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.house-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* На десктопе меняем местами фото и текст для класса .inverted */
@media (min-width: 1024px) {
    .house-flex.inverted {
        flex-direction: row-reverse;
    }
}

.house-gallery {
    flex: 1.8; /* Галерея чуть шире */
}

.house-sidebar {
    flex: 1;
    position: sticky;
    top: 100px; /* Блок с ценой "едет" за пользователем при скролле фото */
}

.house-name {
    font-family: 'Cormorant-Garamound', serif;
    font-size: 3rem;
    color: #2d5a27;
    margin-top: 0;
}

.house-price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

/* Мобильная адаптация */
@media (max-width: 1023px) {
    .house-flex {
        flex-direction: column;
        overflow: visible;
        scroll-snap-type: none;
    }
    .house-sidebar {
        position: static;
        width: 100%;
        margin-top: 30px;
    }
    .house-gallery {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .house-gallery .custom-slider {
        width: 100%;
        height: auto;
        min-height: 240px;
        aspect-ratio: 4 / 3;
        background: #243024;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    .house-gallery .slider-track,
    .house-gallery .slide {
        min-height: 240px;
    }
    .house-gallery .slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.houses-promo {
    padding: 60px 0;
    background: transparent;
}

.promo-banner {
    background: #2d5a27; /* Твой фирменный зеленый */
    color: #fff;
    padding: 50px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.15);
}

.promo-info h2 {
    font-family: 'Cormorant-Garamound', serif;
    font-size: 2.5rem;
    margin: 0 0 15px;
}

.main-offer {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.promo-details p {
    opacity: 0.9;
    margin: 5px 0;
}

.promo-details .date {
    font-weight: bold;
    color: #ffd700; /* Золотистый акцент для даты */
}

/* Белая кнопка для темного фона */
.cta-button.secondary {
    background: #fff;
    color: #2d5a27;
    white-space: nowrap;
}

/* Адаптив для мобилок */
@media (max-width: 992px) {
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
}

.cta-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
}

.cta-subtitle {
    font-family: 'Mon-Bold', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #2d5a27; /* Ваш фирменный зеленый */
    margin-bottom: 1.5rem;
}

.cta-button.large {
    display: inline-block;
    padding: 18px 45px;
    background-color: #2d5a27; /* Основной цвет кнопки */
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
    border: none;
}

.cta-button.large:hover {
    background-color: #1e3d1a; /* Затемнение при наведении */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
}

/* Дополнительно: адаптируем заголовок и описание под общую гамму */
.cta-title {
    color: #333;
    font-family: 'Cormorant-Garamound', serif;
}

.cta-description p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 1rem;
    }
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links a, .nav-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.cta-button-green {
    display: inline-block;
    padding: 16px 40px;
    background-color: #2d5a27;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}
.cta-button-green:hover {
    background-color: #1e3d1a;
    transform: scale(1.05);
}

.cta-button-main {
    display: inline-block;
    background-color: #2d5a27;
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
}
.hero,
.main-content {
    /* Один и тот же фиксированный градиент — стык hero/main без полоски */
    background-color: var(--page-bg);
    background-image: var(--page-gradient);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 0;
    margin: 0;
}

.video-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

/* Туман только по краям видео, внизу уходит в прозрачность → общий градиент */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 80% 74% at 50% 42%,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 55%,
            rgba(255, 255, 255, 0.22) 78%,
            rgba(255, 255, 255, 0.4) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0) 72%,
            rgba(255, 255, 255, 0.2) 100%
        ),
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0) 18%,
            rgba(255, 255, 255, 0) 82%,
            rgba(255, 255, 255, 0.35) 100%
        );
}

.main-content {
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding-top: 0;
}

section:not(.hero) {
    position: relative;
    z-index: 10;
    background: transparent;
}
.hero-content {
    position: relative; /* Меняем на relative, чтобы контент сам создавал высоту блока */
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    color: #ffffff !important;
    margin: 0 auto;
}

.hero-content > .container > :not(h1) {
    visibility: visible;
    opacity: 1;
}

.hero-logo {
    max-width: 180px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0 0 15px;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    animation: heroTitleReveal 0.7s ease forwards;
    animation-delay: 5.5s;
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.hero-content a, .hero-content button {
    pointer-events: auto !important;
}

.hero-content h1, 
.hero-content .subtitle, 
.hero-content .description {
    color: #ffffff !important;
}

.main-header {
    background: rgba(20, 32, 18, 0.45) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.3s ease;
}

.main-header:hover {
    background: rgba(20, 32, 18, 0.72) !important;
}

/* Добавьте этот класс к любому блоку: тексту, карточкам домов и т.д. */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

/* Когда элемент попадает в поле зрения (нужен простой JS, или можно просто добавить класс вручную для теста) */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Виджет бронирования --- */
#booking-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 12000;
    font-family: inherit;
}

.booking-fab {
    border: none;
    cursor: pointer;
    background: #2d5a27;
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(30, 61, 26, 0.28);
    transition: background 0.25s ease, transform 0.2s ease;
}

.booking-fab:hover,
.booking-fab.is-open {
    background: #1e3d1a;
}

.booking-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(340px, calc(100vw - 32px));
    background: #f7f4ef;
    border: 1px solid rgba(45, 90, 39, 0.18);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 35, 18, 0.22);
    overflow: hidden;
}

.booking-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #2d5a27;
    color: #fff;
}

.booking-panel-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.booking-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.booking-form {
    display: grid;
    gap: 12px;
    padding: 14px 16px 16px;
}

.booking-form[hidden] {
    display: none;
}

.booking-field {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: #2a3428;
}

.booking-field input,
.booking-field textarea,
.booking-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c9d2c4;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    color: #1d261b;
}

.booking-field textarea {
    resize: vertical;
    min-height: 72px;
}

.booking-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #334033;
}

.booking-consent input {
    margin-top: 2px;
    flex-shrink: 0;
}

.booking-consent a {
    color: #2d5a27;
}

.booking-submit {
    border: none;
    border-radius: 6px;
    background: #2d5a27;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.booking-submit:hover:not(:disabled) {
    background: #1e3d1a;
}

.booking-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.booking-status {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

.booking-status.is-error { color: #8a1f1f; }
.booking-status.is-success { color: #1e5a27; }
.booking-status.is-pending { color: #4a5546; }

.booking-success {
    display: grid;
    gap: 16px;
    padding: 28px 18px 20px;
    text-align: center;
}

.booking-success[hidden] {
    display: none !important;
}

.booking-success-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
    color: #1e5a27;
}

@media (max-width: 768px) {
    #booking-widget {
        right: 12px;
        bottom: 12px;
    }

    .booking-fab {
        padding: 12px 18px;
    }

    /* Финальные стили мобильного меню (перебивают старые правила выше) */
    .main-header {
        padding: 10px 0 !important;
        background: rgba(18, 28, 16, 0.88) !important;
        overflow: visible !important;
    }

    .main-header .container {
        overflow: visible !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        background: #2d5a27 !important;
    }

    .menu-toggle span {
        background: #fff !important;
    }

    .nav-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 0 10px !important;
        width: 100%;
    }

    .nav-phone {
        display: inline-block !important;
        margin-left: auto !important;
        color: #fff !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        text-shadow: none !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-list {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 6px 0 !important;
        border-radius: 12px !important;
        background: #1a2818 !important;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35) !important;
        z-index: 14000 !important;
    }

    .nav-menu.is-open .nav-list {
        display: flex !important;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block !important;
        padding: 14px 18px !important;
        color: #fff !important;
        text-shadow: none !important;
    }

    body.nav-drawer-open {
        overflow: hidden;
    }
}

/* --- Баннер cookie --- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 12500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
    padding: 16px 18px;
    background: #1a2818;
    color: #f3f8f4;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 35, 18, 0.28);
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.cookie-banner-text a {
    color: #cfe3cf;
    text-decoration: underline;
}

.cookie-banner-accept {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: #2d5a27;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
}

.cookie-banner-accept:hover {
    background: #3d7a36;
}

body.cookie-banner-open #booking-widget {
    bottom: 110px;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-banner-accept {
        width: 100%;
    }

    body.cookie-banner-open #booking-widget {
        bottom: 170px;
    }
}

.local-test-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 14000;
    background: #7a3b12;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.local-test-banner a {
    color: #ffe7c2;
}

body.has-local-banner .main-header {
    top: 36px;
}