/* --- Базовые стили и сброс --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth; /* Включает плавную прокрутку для всей страницы */
    /* Добавляем отступ сверху, равный высоте вашего "прилипшего" хедера + небольшой запас */
    /* Подберите точное значение! Измерьте высоту хедера в инструментах разработчика (F12) */
    scroll-padding-top: 80px; /* Примерное значение, ЗАМЕНИТЕ НА ВАШЕ! */
  }
  
  /* Небольшой хак для лучшей совместимости (особенно если основной скролл не на html/body) */
  body {
      overflow-x: hidden; /* Предотвращает горизонтальный скролл, который иногда возникает */
  }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff; /* Белый фон по умолчанию */
}

.container {
    width: 90%;
    max-width: 1200px; /* Максимальная ширина контейнера */
    margin-left: auto;
    margin-right: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Утилиты --- */
.section {
    padding: 40px 0; /* Вертикальные отступы для секций */
}

.section__title {
    font-size: 2rem; /* Размер для мобильных */
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}

/* --- Стили кнопок (Пример) --- */
.btn {
    display: inline-flex; /* Используем inline-flex для иконки */
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.btn--primary {
    background-color: #0d6efd; /* Пример синего цвета */
    color: #fff;
    text-decoration: none;
}

.btn--primary:hover {
    background-color: #0b5ed7;
}

.btn:active {
    transform: scale(0.98);
}

/* --- Стили Hero --- */
/* --- НОВЫЕ СТИЛИ HERO (Заменить старые) --- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden; /* Важно для обрезки углов и фонового текста *//* Фоновый цвет на случай, если изображение не загрузится */
}

/* Фон с изображением */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0; /* Самый нижний слой */
    /* !!! ЗАМЕНИТЕ URL НА ВАШЕ ИЗОБРАЖЕНИЕ !!! */
    background-image: url('/static/images/рендер.png');
    background-size: cover;
    background-position: center bottom; /* Слегка смещаем вниз */
}
.hero__overlay {
    position: absolute;
    inset: 0;
    /* Очень легкое затемнение, почти незаметное */
    background: rgba(0, 0, 0, 0.1);
}

/* Большой фоновый текст "ЖК РАССВЕТ" */
.hero__bg-text {
    position: absolute;
    top: 0; /* Начинается сверху */
    left: 50%;
    transform: translateX(-50%);
    font-size: 13vw; /* Еще крупнее */
    font-weight: 800; /* Очень жирный */
    color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(0deg, rgba(32, 37, 52, 0.40) 0%, rgba(175, 194, 221, 0.40) 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; /* Еще прозрачнее */
    z-index: 1; /* Над фоном, под темным блоком контента */
    text-align: center;
    width: 100%;
    line-height: 1; /* Плотно */
    padding-top: 20px; /* Небольшой отступ от самого верха */
    letter-spacing: -0.03em; /* Сжать буквы */
    user-select: none;
    pointer-events: none;
    text-transform: uppercase; /* Все буквы заглавные */
}

/* Темная область контента с закругленными углами */
.hero__main-content-area {
    position: relative; /* Чтобы контент был над фоновым текстом */
    z-index: 2; /* Над фоновым текстом */
    background-color: rgba(10, 20, 35, 0.65); /* Полупрозрачный темно-синий/серый */


    padding: 40px 0 60px 0; /* Внутренние отступы (верх/низ) */
    backdrop-filter: blur(5px); /* Размытие фона под блоком */
    /* Убедимся, что занимает всю ширину родителя .hero */
    width: 100%;
}

.hero__content-container {
    /* Контейнер внутри темной области */
    position: relative; /* На всякий случай */
    z-index: 1;
}

.hero__content {
    display: flex;
    flex-direction: column; /* Мобильные: друг под другом */
    gap: 40px; /* Отступ между блоками */
}

.hero__main {
   /* Левая часть (заголовок) */
   text-align: left; /* Выравнивание по левому краю всегда */
}

.hero__jk-name {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px; /* Отступ до заголовка */
    opacity: 0.9;
}

.hero__title {
    font-size: 3rem; /* Размер для мобильных */
    font-weight: 700; /* Или 600? */
    line-height: 1.2;
    color: #fff; /* Яркий белый */
}

.hero__details {
    /* Правая часть (список и срок сдачи) */
    display: flex;
    flex-direction: column; /* Друг под другом */
    gap: 30px; /* Отступ между списком и сроком */
    text-align: left; /* Выравнивание по левому краю всегда */
}

.hero__features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.hero__features li {
    margin-bottom: 12px;
    font-size: 1.1rem; /* Размер фич */
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9); /* Чуть менее яркий белый */
}
.hero__features li:last-child {
    margin-bottom: 0;
}

/* Блок "Срок сдачи" */
.hero__deadline {
    background: rgba(198, 209, 227, 0.60);

backdrop-filter: blur(50px); /* Серо-голубой полупрозрачный */
    border-radius: 16px; /* Скругление */
    padding: 25px 30px; /* Внутренние отступы */
    backdrop-filter: blur(10px); /* Усилим размытие */
    position: relative;
    width: fit-content; /* Ширина по содержимому */
    max-width: 300px; /* Ограничим макс ширину */
}
/* Линия */
.hero__deadline::before {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px; /* Отступ от линии до текста */
    /* Линия слева */
    margin-left: 0;
    margin-right: auto;
}

.hero__deadline-label {
    display: block;
    font-size: 1rem; /* Крупнее подпись */
    font-weight: 500;
    margin-bottom: 8px; /* Больше отступ */
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero__deadline-value {
    font-size: 2.5rem; /* Крупнее дата */
    font-weight: 700; /* Или 600? */
    line-height: 1.2;
    color: #fff; /* Яркий белый */
}

/* --- АДАПТИВНОСТЬ ДЛЯ HERO --- */

/* Планшеты */
@media (max-width: 991px) {
    .hero {
        /* Убираем flex выравнивание на мобильных, если оно мешает */
        /* display: block; */
        padding-top: 0; /* Убираем верхний паддинг у .hero */
        padding-bottom: 0; /* Убираем нижний паддинг у .hero */
        min-height: unset; /* Убираем мин-высоту, она будет определяться контентом */
    }

    .hero__bg-text {
        font-size: 18vw; /* Еще крупнее на мобильных */
        top: 10px; /* Ближе к верху */
        line-height: 0.9; /* Еще плотнее */
        padding-top: 0;
    }

    /* Темная область контента */
    .hero__main-content-area {
        margin-top: 10vh; /* Поднимаем выше, перекрывая фоновый текст */
        padding: 30px 0 40px 0; /* Паддинги внутри темной области */
        border-top-left-radius: 15px; /* Уменьшаем радиус для мобильных */
        border-top-right-radius: 15px;
        /* Можно сделать фон менее прозрачным или сплошным */
        background-color: rgba(10, 20, 35, 0.85);
        min-height: 450px; /* Задаем минимальную высоту темной области */
        display: flex; /* Используем flex для позиционирования заголовка */
        flex-direction: column; /* Элементы идут друг под другом */
    }

    .hero__content-container {
        /* Контейнер должен растянуться, чтобы заголовок мог уйти вниз */
        flex-grow: 1;
        display: flex; /* Тоже flex */
        flex-direction: column;
    }

    .hero__content {
        flex-grow: 1; /* Растягиваем блок контента */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Разносим верхнюю и нижнюю части */
        gap: 20px; /* Уменьшаем gap */
    }

    .hero__main {
       /* Блок с ЖК и Заголовком */
       /* Он растянется благодаря space-between у родителя */
       display: flex;
       flex-direction: column;
       justify-content: space-between; /* Разносим ЖК и Заголовок */
       flex-grow: 1; /* Занимает доступное пространство */
    }

    .hero__jk-name {
        /* Остается сверху */
        text-align: center; /* Центрируем */
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .hero__title {
        /* Заголовок уходит вниз */
        font-size: 2.5rem; /* Размер для мобильных */
        text-align: center; /* Центрируем */
        margin-top: auto; /* Прижимаем к низу блока .hero__main */
        padding-bottom: 20px; /* Небольшой отступ от нижнего края темной области */
    }

    .hero__details {
       /* Блок с фичами */
       order: -1; /* Ставим список НАД блоком .hero__main в потоке flex */
       text-align: center; /* Центрируем фичи */
       gap: 20px;
    }

    .hero__features {
        margin-bottom: 0;
    }

    .hero__features li {
        font-size: 0.9rem; /* Уменьшаем фичи */
        line-height: 1.4;
        margin-bottom: 8px;
    }

    /* Обертка для блока срока сдачи */
    .hero__deadline-wrapper {
        background-color: #f1f3f5; /* Светлый фон как у секций ниже */
        padding: 30px 0; /* Вертикальные отступы */
        border-bottom-left-radius: 15px; /* Закругляем нижние углы */
        border-bottom-right-radius: 15px;
         margin-top: -15px; /* Небольшой нахлест на темную область */
         position: relative; /* Чтобы был над темной областью, если нужно */
         z-index: 3; /* Выше темной области */
    }

    /* Сам блок срока сдачи */
    .hero__deadline {
        /* Убираем старый фон и блюр */
        background-color: transparent;
        backdrop-filter: none;
        padding: 0; /* Убираем внутренние отступы */
        border-radius: 0;
        color: #1a2b4d; /* Темный цвет текста */
        text-align: center; /* Центрируем */
        max-width: none; /* Снимаем ограничение ширины */
        margin: 0 auto; /* Центрируем */
    }

    /* Линия в блоке срока сдачи */
    .hero__deadline::before {
        background-color: #aab1bb; /* Цвет линии темнее */
        margin-left: auto; /* Центрируем */
        margin-right: auto;
        margin-bottom: 10px;
    }

    .hero__deadline-label {
        color: #495057; /* Цвет подписи */
        opacity: 1;
        font-size: 0.9rem;
    }

    .hero__deadline-value {
        color: #1a2b4d; /* Цвет даты */
        font-size: 2rem; /* Размер даты на мобильных */
    }
}


/* --- АДАПТИВНОСТЬ ДЛЯ HERO (Десктопные стили) --- */
/* Эти стили должны ПЕРЕОПРЕДЕЛЯТЬ мобильные на больших экранах */

/* Планшеты - здесь еще может быть актуален мобильный вид срока сдачи */
@media (min-width: 768px) and (max-width: 991px) {
    /* Можно немного увеличить шрифты, если нужно */
    .hero__bg-text { font-size: 15vw; }
    .hero__title { font-size: 3rem; }
    .hero__features li { font-size: 1rem; }
    .hero__deadline-value { font-size: 2.5rem; }
     .hero__main-content-area { min-height: 500px; }
}

/* Десктопы - возвращаем исходный вид */
@media (min-width: 992px) {
     .hero {
        min-height: 650px; /* Возвращаем мин-высоту */
        align-items: flex-end; /* Выравниваем контент по низу */
    
        display: flex; /* Убедимся что display: flex */
    }
     .hero__bg-text {
        font-size: 10vw; /* Возвращаем размер */
        padding-top: 40px;
        top: 10px;
    }
    /* Темная область */
    .hero__main-content-area {
        margin-top: 18vh;
        padding: 60px 0 80px 0;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        background-color: rgba(10, 20, 35, 0.65); /* Возвращаем полупрозрачность */
        min-height: unset; /* Убираем мин-высоту */
        /* display: block; */ /* Можно вернуть block, если flex не нужен */
    }
     .hero__content-container {
        flex-grow: unset; /* Сбрасываем */
        display: block; /* Возвращаем block */
     }
    .hero__content {
        flex-grow: unset; /* Сбрасываем */
        flex-direction: row; /* В строку */
        justify-content: space-between; /* Разнести */
        align-items: flex-end; /* Выровнять по низу */
        gap: 50px;
    }
     .hero__details {
         order: 0; /* Возвращаем нормальный порядок */
         text-align: left;
         gap: 40px;
     }
      .hero__main {
         /* Сбрасываем flex свойства */
         display: block;
         flex-grow: unset;
         margin-top: unset;
         padding-bottom: 0;
         text-align: left;
     }
      .hero__title {
         text-align: left;
         margin-top: unset;
         padding-bottom: 0;
         font-size: 4.5rem; /* Возвращаем размер */
     }
     .hero__features {
         text-align: left;
         margin-bottom: 30px; /* Отступ от списка до блока срока */
     }
     .hero__features li {
         text-align: left;
         font-size: 1.1rem; /* Возвращаем размер */
     }

     /* Блок срока сдачи возвращаем внутрь .hero__details */
     /* В HTML он уже снаружи, значит нужно его вернуть или стилизовать на месте */
     /* Проще стилизовать на месте, т.к. он уже вынесен */
      .hero__deadline-wrapper {
          display: none; /* Скрываем внешнюю обертку */
      }
      /* Стилизуем .hero__deadline, который остался в .hero__details в HTML ИЗ ПРЕДЫДУЩЕЙ ВЕРСИИ (если он там есть) */
      /* ЕСЛИ В HTML ЕГО ТАМ НЕТ, НУЖНО ВЕРНУТЬ ЕГО В HTML ВНУТРЬ .hero__details */
      /* Предположим, мы вернули его в HTML: */
      .hero__details .hero__deadline { /* Стилизуем блок внутри .hero__details */
         display: block; /* Показываем его */
         background-color: rgba(130, 145, 160, 0.6); /* Возвращаем фон */
         border-radius: 16px;
         padding: 25px 30px;
         backdrop-filter: blur(10px);
         color: #fff; /* Возвращаем белый цвет */
         max-width: 300px;
         width: fit-content;
         margin: 0; /* Убираем центрирование */
         text-align: left; /* Выравнивание влево */
     }
     .hero__details .hero__deadline::before {
         background-color: rgba(255, 255, 255, 0.7); /* Возвращаем цвет линии */
         margin-left: 0; /* Линия слева */
         margin-right: auto;
     }
      .hero__details .hero__deadline-label {
          color: rgba(255, 255, 255, 0.9);
          font-size: 1rem;
      }
      .hero__details .hero__deadline-value {
          color: #fff;
          font-size: 3.5rem; /* Возвращаем размер */
      }
}

/* Очень большие десктопы */
@media (min-width: 1200px) {
    /* ... (Стили для очень больших экранов, в основном размеры шрифтов/отступов) ... */
     .hero__bg-text { font-size: 9vw; }
     .hero__main-content-area { margin-top: 20vh; }
     .hero__title { font-size: 5rem; }
     .hero__details .hero__deadline-value { font-size: 4rem; }
}


/* --- Стили Условия покупки --- */
.conditions {
    background-color: #f8f9fa; /* Светло-серый фон */
}

.conditions__grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
    gap: 20px;
}

.condition-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.condition-item__icon {
    font-size: 2rem;
    color: #0d6efd; /* Синий цвет иконки */
    margin-bottom: 15px;
}

.condition-item__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.condition-item__text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Стили Стоимость --- */
/* Фон у секции по умолчанию белый */

.pricing__grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
    gap: 20px;
}

.pricing-item {
    background-color: #f8f9fa; /* Светло-серый фон для блоков цены */
    padding: 25px;
    border-radius: 12px;
}

.pricing-item__icon {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-bottom: 15px;
}

.pricing-item__range {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.pricing-item__condition {
    font-size: 0.85rem;
    color: #6c757d;
}

/* --- Стили Бронирование --- */
.booking {
     background-color: #f8f9fa; /* Светло-серый фон */
}

.booking__grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
    gap: 30px;
    align-items: center; /* Выравнивание по центру по вертикали на десктопе */
}

.booking__jk-name {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.booking__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.booking__text {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

.booking__shahmatka {
    /* Стили для контейнера шахматки, если нужно */
    border-radius: 8px;
    overflow: hidden; /* Скрыть вылезающее содержимое плейсхолдера */
    border: 1px solid #e0e0e0; /* Небольшая рамка для плейсхолдера */
}

.shahmatka-placeholder img {
    width: 100%;
    height: auto;
}


/* --- АДАПТИВНОСТЬ --- */

/* Планшеты и небольшие десктопы */
@media (min-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section__title {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }
    .hero__content-container {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .hero__title {
        font-size: 3rem;
    }
    .hero__details {
        background-color: transparent; /* Убираем фон на планшете */
        padding: 0;
    }
    .hero__features li {
         font-size: 1rem;
     }
     .hero__deadline-value {
        font-size: 1.6rem;
    }

    /* 2 колонки для Условий и Стоимости */
    .conditions__grid,
    .pricing__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
     .condition-item {
        text-align: left; /* Выравнивание по левому краю на планшете */
     }
     .condition-item__title {
        font-size: 1.3rem;
    }
     .pricing-item__range {
        font-size: 1.4rem;
    }

    /* 2 колонки для Бронирования */
    .booking__grid {
        grid-template-columns: 1fr 1fr; /* Две равные колонки */
        gap: 40px;
    }
    .booking__title {
        font-size: 2rem;
    }
}

/* Большие десктопы */
@media (min-width: 992px) {
    .section {
        padding: 80px 0;
    }
     .section__title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
     .hero__content-container {
        padding-top: 100px;
        padding-bottom: 100px;
    }
     .hero__content {
        flex-direction: row; /* В строку на десктопе */
        justify-content: space-between; /* Разнести левую и правую части */
        align-items: flex-end; /* Выровнять по низу */
     }
     .hero__title {
        font-size: 3.5rem;
     }
     .hero__details {
        /* Стили для правого блока с деталями на десктопе */
        background-color: rgba(20, 30, 40, 0.6); /* Темный полупрозрачный фон */
        padding: 30px;
        border-radius: 12px;
        min-width: 300px; /* Минимальная ширина */
        backdrop-filter: blur(5px); /* Эффект размытия фона (опционально) */
     }
      .hero__features {
         margin-bottom: 25px;
     }
      .hero__features li {
         font-size: 1rem;
     }
     .hero__deadline-value {
         font-size: 1.8rem;
     }

     .booking__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Адаптивные колонки */
        gap: 50px;
     }
     .booking__title {
        font-size: 2.2rem;
    }
}

/* Очень большие десктопы */
@media (min-width: 1200px) {
    .section {
        padding: 100px 0;
    }
     .hero__content-container {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .hero__title {
        font-size: 4rem;
    }
}

/* --- НОВЫЕ СТИЛИ HEADER (Заменить старые) --- */
.site-header {
    padding: 10px 0; /* Уменьшим вертикальный паддинг */
    background-color: #fff; /* Фон остается белым или прозрачным, если нужно */
    /* border-bottom: 1px solid #e9ecef; */ /* Убираем нижнюю границу */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Отступ между "таблетками" */
}

/* Общий стиль для "таблеток" */
.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Отступ между иконкой и текстом внутри таблетки */
    padding: 10px 20px; /* Внутренние отступы таблетки */
    border-radius: 50px; /* Делаем овальную форму (пилюлю) */
    background-color:  #F6F8F9; /* Светло-серый фон таблеток */
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2b4d; /* Темно-синий цвет текста */
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.header-pill:hover {
     background-color: #e9ecef; /* Чуть темнее фон при наведении */
}

/* Стилизация иконки внутри таблетки */
.header-pill i {
    color: #0d6efd; /* Синий цвет иконки */
    font-size: 1.1rem; /* Размер иконки */
    line-height: 1; /* Убираем лишнюю высоту строки для иконки */
}

/* Конкретно для телефона - он уже ссылка */
.header-phone {
    /* Применяем стили таблетки к ссылке телефона */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #F6F8F9;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2b4d;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.header-phone:hover {
     background-color: #F6F8F9;
}
/* Иконка телефона */
.header-phone i {
    color: #0d6efd;
    font-size: 1.1rem;
    line-height: 1;
}

/* Контейнер для навигационных ссылок */
.header-nav {
    display: none; /* Скрываем на мобильных */
    gap: 10px; /* Отступ между ссылками-таблетками */
    background-color: #F6F8F9;
    border-radius: 50px;
}

/* Сами навигационные ссылки - делаем их таблетками */
.header-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #F6F8F9;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2b4d;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.header-nav__link:hover {
     background-color: #F6F8F9;
}
/* Иконки в навигации */
.header-nav__link i {
    color: #0d6efd;
    font-size: 1.1rem;
    line-height: 1;
}

/* Кнопка "Купить квартиру" */
.header-button {
    /* Уже имеет стили .btn и .btn--primary */
    border-radius: 50px !important; /* Переопределяем радиус на пилюлю */
    padding: 10px 20px; /* Убедимся, что паддинги как у других таблеток */
    font-size: 0.8rem; /* Убедимся, что шрифт как у других */
    font-weight: 600; /* Убедимся, что жирность как у других */
    white-space: nowrap;
}

/* Отображение иконки/текста в кнопке */
.header-button span {
    display: inline; /* Показываем текст всегда */
}
.header-button i {
    display: inline; /* Показываем иконку всегда */
    font-size: 1.1rem; /* Можно настроить размер */
    margin-right: 8px; /* Отступ иконки от текста */
}


/* --- Адаптивность для НОВОГО Header --- */

/* Планшеты - Показываем навигацию */
@media (min-width: 768px) {
    .header-nav {
        display: flex; /* Показываем блок навигации */
    }
    /* Можно увеличить размеры шрифтов/паддингов, если нужно */
    .header-pill,
    .header-phone,
    .header-nav__link,
    .header-button {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* Десктопы - можно увеличить отступы */
@media (min-width: 992px) {
    .header-container {
        gap: 15px; /* Увеличиваем отступы между таблетками */
    }
}

/* Уберем прилипание на очень маленьких экранах, если мешает */
@media (max-width: 400px) {
   /* .site-header {
        position: static; // Отключаем sticky
   } */
   /* Можно еще уменьшить паддинги/шрифты */

   .header-pill,
    .header-phone,
    .header-nav__link,
    .header-button {
        font-size: 0.7rem;
        padding: 8px 15px;
        gap: 8px;
    }
     .header-pill i,
     .header-phone i,
     .header-nav__link i,
     .header-button i {
         font-size: 1rem;
     }
     
}


@media (max-width: 991px) { /* Adjust this value as needed */
    .header-item--desktop {
        display: none !important; /* Hide original phone and nav */
    }
    .header-item--mobile {
        display: inline-flex !important; /* Show burger button */
        align-items: center;
        justify-content: center;
    }
    .header-container {
        justify-content: space-between; /* Ensure buttons spread out */
    }
    .header-spacer {
        display: none; /* Hide spacer on mobile */
    }
}

@media (min-width: 992px) { /* Adjust this value to match the max-width + 1 */
    .header-item--mobile {
        display: none !important; /* Hide burger button on desktop */
    }
    /* Ensure desktop items are displayed correctly if hidden by default */
     .header-item--desktop {
        display: inline-flex; /* Or flex, depending on original style */
    }
     .header-nav {
         display: flex; /* Ensure nav displays as flex on desktop */
     }
    /* Keep the spacer for desktop */
     .header-spacer {
         flex-grow: 1;
     }
}


/* Burger Button Styling */
.burger-menu {
    display: none; /* Hidden by default, shown via media query */
    background: none;
    border: none;
    padding: 10px; /* Adjust padding for tap area */
    cursor: pointer;
    z-index: 1051; /* Above overlay */
    order: 3; /* Place it after the login button visually if needed, or adjust flex order */
    /* Match pill height if desired */
    height: 44px; /* Example height, match your pills */
    width: 44px; /* Example width */
    border-radius: 50%;
    background-color: #F6F8F9; /* Match pill background */
    margin-left: 10px; /* Space from login button */
}

.burger-menu svg {
    display: block;
    width: 24px;
    height: 24px;
}
.burger-menu svg path {
     stroke: #1a2b4d; /* Match text color or use brand color */
}

/* Spacer to push items right on desktop */
.header-spacer {
    flex-grow: 1; /* Takes up available space */
}

.header-item--desktop {
    display: none !important;
}
.header-item--mobile {
    display: inline-flex !important; /* Или block, flex - как нужно для бургера */
    align-items: center;
    justify-content: center;
}
.header-spacer { /* Спейсер тоже не нужен на мобильных */
     display: none;
}


.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 300px; /* Adjust width as needed */
    max-width: 85%;
    height: 100%;
    background-color: #fff; /* Or your desired menu background */
    z-index: 1050; /* High z-index */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding-top: 60px; /* Space for close button */
    overflow-y: auto; /* Allow scrolling if content is long */
}

.mobile-nav.is-active {
    right: 0; /* Slide in */
}

/* Close Button inside Mobile Nav */
.mobile-nav__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 5px;
}
.mobile-nav__close:hover {
    color: #333;
}


/* Styling Links inside Mobile Nav */
.mobile-nav__menu {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav__link {
    /* Inherit pill styles but display as block */
    display: flex; /* Use flex to align icon and text */
    align-items: center;
    gap: 15px; /* Space between icon and text */
    padding: 15px 20px; /* Adjust padding */
    font-size: 1rem;
    font-weight: 500;
    color: #1a2b4d;
    text-decoration: none;
    border-radius: 0; /* Remove pill radius inside menu */
    background-color: transparent; /* Remove pill background inside menu */
    border-bottom: 1px solid #eee; /* Optional separator */
    white-space: normal; /* Allow wrapping if needed */
}
.mobile-nav__link:hover {
    background-color: #f8f9fa; /* Slight hover effect */
}

.mobile-nav__link svg {
    width: 20px; /* Slightly smaller icons */
    height: 20px;
    flex-shrink: 0; /* Prevent icon shrinking */
}
.mobile-nav__link svg path {
     fill: #216BF4; /* Keep icon color */
}
.mobile-nav__link span {
    flex-grow: 1;
}


/* Точка переключения - НАЧИНАЯ С ЭТОЙ ШИРИНЫ, показываем десктоп */
/* Используйте ту же ширину, что и раньше (992px или 768px и т.д.) */
@media (min-width: 992px) { /* <<-- УБЕДИТЕСЬ, что ширина ПРАВИЛЬНАЯ */
    .header-item--desktop {
        display: inline-flex !important; /* Или flex, block - как было */
    }
    .header-item--mobile {
        display: none !important; /* Скрываем бургер на десктопе */
    }
    .header-nav { /* Убедимся, что основная навигация видима на десктопе */
         display: flex !important;
    }
     .header-spacer { /* Показываем спейсер на десктопе */
         display: block; /* или flex-grow: 1; если он был flex item */
         flex-grow: 1;
     }
}

/* --- Стили для Бургера, Меню, Оверлея --- */
/* (Остальные стили из предыдущего ответа: .burger-menu, .mobile-nav, .mobile-nav.is-active { right: 0; }, .overlay, .overlay.is-active и т.д.) */
/* Убедитесь, что стиль для .mobile-nav по умолчанию содержит right: -100%; или transform: translateX(100%); */
.mobile-nav {
    /* ... другие стили ... */
    position: fixed;
    top: 0;
    right: -100%; /* ИЛИ transform: translateX(100%); */
    width: 300px;
    max-width: 85%;
    height: 100%;
    background-color: #fff;
    z-index: 1050;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out; /* ИЛИ transition: transform 0.3s ease-in-out; */
    padding-top: 60px;
    overflow-y: auto;
}

.mobile-nav.is-active {
    right: 0; /* ИЛИ transform: translateX(0); */
}

/* Стили для кнопки контактов в хедере */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #216BF4;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-contacts:hover {
    color: #1a5bb8;
}

.header-contacts svg {
    width: 24px;
    height: 24px;
}

/* Стили для переключателя между ЖК */
.complex-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.complex-switch-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complex-switch-btn.active {
    background: #216BF4;
    color: white;
    box-shadow: 0 2px 8px rgba(33, 107, 244, 0.3);
}

.complex-switch-btn:hover:not(.active) {
    color: #216BF4;
    background: rgba(33, 107, 244, 0.1);
}

/* Переключатель ЖК */
.complex-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.complex-switcher__btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.complex-switcher__btn:hover {
    color: #216BF4;
}

.complex-switcher__btn--active {
    background: #216BF4;
    color: #fff;
    box-shadow: 0 2px 8px rgba(33, 107, 244, 0.3);
}

.complex-switcher__btn--active:hover {
    color: #fff;
}

/* Фильтр квартир */
.apartment-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.apartment-filter__btn {
    padding: 12px 24px;
    border: 2px solid #E5E7EB;
    background: white;
    color: #6B7280;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apartment-filter__btn:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.apartment-filter__btn.active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

/* Состояния загрузки */
.loading, .no-apartments {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
    font-size: 18px;
    font-weight: 500;
}

.loading {
    color: #3B82F6;
}

/* Сетка карточек квартир */
.apartments-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    margin-top: 40px;
    scrollbar-width: thin;
    scrollbar-color: #216BF4 #f1f5f9;
}

.apartments-grid::-webkit-scrollbar {
    height: 6px;
}

.apartments-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.apartments-grid::-webkit-scrollbar-thumb {
    background: #216BF4;
    border-radius: 3px;
}

/* Карточка квартиры */
.apartment-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Заголовок карточки */
.apartment-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.apartment-card__remaining {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.apartment-card__favorite {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #64748b;
}

.apartment-card__favorite:hover {
    background: #f1f5f9;
    color: #216BF4;
}

/* План этажа */
.apartment-card__floorplan {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.apartment-card__image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.apartment-card__placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}

/* Детали квартиры */
.apartment-card__details {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.apartment-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apartment-detail__label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.apartment-detail__value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

/* Кнопка карточки */
.apartment-card__button {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    background: #216BF4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apartment-card__button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Стили для контента ценообразования */
.pricing-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для типов квартир */
.apartment-types {
    margin-top: 40px;
    text-align: center;
}

.apartment-types__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.apartment-types__grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.apartment-type {
    background: #fff;
    padding: 24px 32px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.apartment-type:hover {
    border-color: #216BF4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.apartment-type__rooms {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.apartment-type__price {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #216BF4;
    line-height: 1.4;
}

/* Стили для контактной секции */
.contacts-section {
    background: #ffffff;
    padding: 80px 0;
    margin-top: 60px;
}

.contacts-content {

    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts-title {
    font-size: 32px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 40px;
    text-align: left;
}

.office-locations {
    margin-bottom: 40px;
}

.office-location {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #216BF4;
}

.office-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.office-type {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #216BF4;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.location-link:hover {
    color: #1a5bb8;
}

.location-link svg {
    width: 16px;
    height: 16px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.phone-link {
    font-size: 20px;
    font-weight: 600;
    color: #216BF4;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #1a5bb8;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #6c757d;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #216BF4;
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.working-hours p {
    margin-bottom: 4px;
    color: #6c757d;
}

.working-hours strong {
    color: #333;
}

.contacts-map {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.map-placeholder {
    color: #6c757d;
}

.map-placeholder p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.map-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #216BF4;
    font-weight: 500;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #1a5bb8;
}

.map-link svg {
    width: 16px;
    height: 16px;
}

.trust-line {
    margin-top: 40px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
}

.trust-line p {
    color: #856404;
    font-size: 14px;
}

.trust-line a {
    color: #216BF4;
    font-weight: 600;
}

.copyright {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.copyright p {
    color: #6c757d;
    font-size: 14px;
}

/* Адаптивность для контактной секции */
@media (max-width: 768px) {
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts-title {
        font-size: 28px;
        text-align: center;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .apartment-types__grid {
        flex-direction: column;
        align-items: center;
    }
    
    .apartment-type {
        max-width: 100%;
        min-width: auto;
    }
    
    .complex-switcher {
        max-width: 100%;
        margin: 0 20px 40px;
    }
    
    .complex-switcher__btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .apartments-grid {
        padding: 10px 0;
        margin-top: 20px;
    }
    
    .apartment-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .apartment-card__details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Стили для секции условий покупки */
.conditions-switcher {
    margin-bottom: 40px;
}

.conditions-content {
    animation: fadeIn 0.5s ease-in-out;
}

.condition-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.condition-item.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 107, 244, 0.15);
}

.condition-item.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.condition-item.clickable:hover::before {
    left: 100%;
}

.condition-item.clickable::after {
    content: 'Нажмите для примера';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #216BF4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.condition-item.clickable:hover::after {
    opacity: 1;
}

/* Стили для модального окна условий */
.condition-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.condition-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.condition-modal-close:hover {
    color: #216BF4;
}

.condition-example {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #216BF4;
}

.condition-example p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.condition-example strong {
    color: #216BF4;
    font-weight: 600;
}

/* Дополнительные стили для иконок условий */
.condition-item__icon svg text {
    font-family: 'Inter', sans-serif;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .condition-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .condition-example {
        padding: 15px;
    }
    
    .condition-example p {
        font-size: 14px;
    }
}

/* Новые стили для условий покупки */
.conditions {
    background: linear-gradient(135deg, rgba(33, 107, 244, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.conditions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/Жилые_Комплексы/ЖК_Рассвет/render_chess.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.conditions .container {
    position: relative;
    z-index: 1;
}

/* Убеждаемся, что header всегда поверх всего */
.site-header {
    z-index: 1001 !important;
}

.conditions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.conditions-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.condition-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.condition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(33, 107, 244, 0.2);
}

.condition-card.active {
    border-color: #216BF4;
    background: linear-gradient(135deg, rgba(33, 107, 244, 0.05) 0%, white 100%);
}

.condition-card__icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.condition-card__icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #216BF4 0%, #1e5ce6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.condition-card__icon svg {
    width: 48px;
    height: 48px;
    color: #216BF4;
}

.condition-card__content {
    flex: 1;
}

.condition-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.condition-card__description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.condition-card__arrow {
    margin-left: 1rem;
    color: #216BF4;
    transition: transform 0.3s ease;
}

.condition-card:hover .condition-card__arrow {
    transform: translateX(4px);
}

.conditions-right {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(33, 107, 244, 0.1);
}

.condition-details h3 {
    color: #216BF4;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.condition-details__options p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.condition-details__options strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Стили для информации о квартире */
.apartment-info {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(33, 107, 244, 0.1);
    margin-bottom: 2rem;
}

.apartment-size {
    font-size: 3rem;
    font-weight: 700;
    color: #216BF4;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.apartment-details {
    text-align: center;
}

.apartment-rooms {
    margin-bottom: 1.5rem;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(33, 107, 244, 0.1);
}

.room-item:last-child {
    border-bottom: none;
}

.room-name {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.room-size {
    font-size: 1rem;
    color: #216BF4;
    font-weight: 600;
}

.apartment-block {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Специальные стили для ЖК Рассвет */
.rassvet .conditions::before {
    background-image: url('/static/Жилые_Комплексы/ЖК_Рассвет/render_chess.png');
}

/* Дополнительные исправления для ЖК Рассвет */
.rassvet .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1002 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    display: block !important;
}

.rassvet .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.rassvet .header-logo {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.rassvet .header-logo .logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    letter-spacing: -0.3px !important;
}

.rassvet .header-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.rassvet .mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
}

@media (max-width: 768px) {
    .rassvet .header-buttons {
        display: none !important;
    }
    
    .rassvet .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Специальные стили для ЖК Бахор */
.bahor .conditions::before {
    background-image: url('/static/Жилые_Комплексы/ЖК_Бахор/render_chess.png');
}

/* Дополнительные исправления для ЖК Бахор */
.bahor .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1002 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    display: block !important;
}

.bahor .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.bahor .header-logo {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.bahor .header-logo .logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    letter-spacing: -0.3px !important;
}

.bahor .header-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.bahor .mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
}

@media (max-width: 768px) {
    .bahor .header-buttons {
        display: none !important;
    }
    
    .bahor .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Исправление header на страницах ЖК */
body .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
}

/* Максимально специфичные стили для header на всех страницах */
html body .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1003 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    display: block !important;
}

html body .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

html body .header-logo {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

html body .header-logo .logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    letter-spacing: -0.3px !important;
}

html body .header-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

html body .mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
}

@media (max-width: 768px) {
    html body .header-buttons {
        display: none !important;
    }
    
    html body .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

body .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
}

body .header-logo {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

body .header-logo .logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    letter-spacing: -0.3px !important;
}

body .header-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

body .mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
}

@media (max-width: 768px) {
    body .header-buttons {
        display: none !important;
    }
    
    body .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .conditions-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .conditions-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .condition-card {
        padding: 1rem;
    }
    
    .condition-card__icon-circle {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .condition-card__icon svg {
        width: 40px;
        height: 40px;
    }
    
    .condition-card__title {
        font-size: 1rem;
    }
    
    .condition-card__description {
        font-size: 0.85rem;
    }
    
    .apartment-info {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .apartment-size {
        font-size: 2.5rem;
    }
    
    .room-item {
        padding: 0.5rem 0;
    }
    
    .room-name,
    .room-size {
        font-size: 0.9rem;
    }
}

/* Стили для hero слайдера */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide .hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease-in-out;
}

.hero-slide.active .hero__background {
    transform: scale(1.05);
}

.hero-slide .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-slide .hero__main-content-area {
    position: relative;
    z-index: 2;
}

/* Навигация слайдера */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-btn.prev {
    left: 30px;
}

.hero-slider-btn.next {
    right: 30px;
}

.hero-slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Индикаторы слайдера */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    border-color: white;
    transform: scale(1.1);
}

/* Анимация появления контента */
.hero-slide .hero__content {
    animation: slideContentIn 1s ease-out 0.5s both;
}

@keyframes slideContentIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
    .hero-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-btn.prev {
        left: 15px;
    }
    
    .hero-slider-btn.next {
        right: 15px;
    }
    
    .hero-slider-dots {
        bottom: 20px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .hero-slider-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-slider-btn.prev {
        left: 10px;
    }
    
    .hero-slider-btn.next {
        right: 10px;
    }
}

/* Стили для страницы выбора проектов */
.projects {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Оптимизация производительности анимаций */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-img,
    .project-card__overlay,
    .project-card__btn {
        transition: none !important;
        animation: none !important;
    }
    
    .project-card:hover {
        transform: none !important;
    }
    
    .project-card:hover .project-img {
        transform: none !important;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card__image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.project-card:hover .project-img {
    transform: scale(1.02);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__btn {
    background: #216BF4;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.project-card__btn:hover {
    background: transparent;
    border-color: white;
    color: white;
}

.project-card__content {
    padding: 30px;
}

.project-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.project-card__description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-card__features {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.project-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.project-feature__icon {
    font-size: 16px;
}

.project-card__pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.project-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #216BF4;
}

.project-card__deadline {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 15px;
}

/* Адаптивность для карточек проектов */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .project-card__image {
        height: 250px;
    }
    
    .project-card__content {
        padding: 20px;
    }
    
    .project-card__title {
        font-size: 20px;
    }
    
    .project-card__features {
        gap: 15px;
    }
    
    .project-card__pricing {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 60px 0;
    }
    
    .project-card__image {
        height: 200px;
    }
    
    .project-card__content {
        padding: 15px;
    }
    
    .project-card__features {
        flex-direction: column;
        gap: 10px;
    }
}

/* Стили для кнопки "Назад к выбору" */
.back-to-selection {
    text-align: center;
    margin: 40px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    color: #666;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-btn:hover {
    background: #216BF4;
    color: white;
    border-color: #216BF4;
    transform: translateY(-2px);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

/* Стили для логотипа */
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #216BF4;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Стили для логотипа в header */
.header-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.3px;
}

/* Стили для контейнера кнопок header */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Базовые стили для кнопок header */
.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    background: white;
    color: #216BF4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.header-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* CTA кнопка (синяя) */
.header-btn--cta {
    background: linear-gradient(135deg, #216BF4 0%, #1e5ce6 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(33, 107, 244, 0.3);
}

.header-btn--cta:hover {
    background: linear-gradient(135deg, #1e5ce6 0%, #1a52d1 100%);
    box-shadow: 0 6px 20px rgba(33, 107, 244, 0.4);
}

/* Стили для иконок в кнопках */
.header-btn svg {
    flex-shrink: 0;
}

/* Адаптивность для header кнопок */
@media (max-width: 1200px) {
    .header-buttons {
        gap: 8px;
    }
    
    .header-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .header-buttons {
        gap: 6px;
    }
    
    .header-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .header-btn span {
        display: none;
    }
    
    .header-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-buttons {
        display: none;
    }
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn.active {
    background-color: rgba(33, 107, 244, 0.1);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    padding: 20px;
    padding-top: 70px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.mobile-menu-link:hover {
    background: #e9ecef;
    color: #333;
}

.mobile-menu-link.mobile-menu-cta {
    background: #216BF4;
    color: white;
    font-weight: 600;
}

.mobile-menu-link.mobile-menu-cta:hover {
    background: #1d5bd6;
    color: white;
}

.mobile-menu-link svg {
    flex-shrink: 0;
}

/* Кнопка закрытия мобильного меню */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.3s ease 0.2s forwards;
}

.mobile-menu-close:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu-close:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    color: #495057;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover svg {
    color: #212529;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header-item--desktop {
        display: none !important;
    }
    
    .header-item--mobile {
        display: flex !important;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .header-logo {
        margin-right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile-menu-content {
        width: 100%;
        padding: 15px;
        padding-top: 80px;
    }
    
    .mobile-menu-link {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .mobile-menu-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    .mobile-menu-close svg {
        width: 18px;
        height: 18px;
    }
}

/* --- Стили для секции детальной информации о ЖК --- */
.complex-details-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}

.complex-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.complex-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.close-details-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.close-details-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.close-details-btn svg {
    width: 20px;
    height: 20px;
}

.complex-details-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.complex-details-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.complex-details-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.complex-details-img:hover {
    transform: scale(1.02);
}

.complex-details-info {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.complex-details-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 30px;
    line-height: 1.4;
}

.complex-details-features,
.complex-details-amenities {
    margin-bottom: 30px;
}

.complex-details-features h4,
.complex-details-amenities h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.complex-details-features ul {
    list-style: none;
    padding: 0;
}

.complex-details-features li {
    padding: 8px 0;
    color: #4b5563;
    position: relative;
    padding-left: 24px;
}

.complex-details-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.amenities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

.complex-details-pricing {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.price-info,
.deadline-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-info:last-child,
.deadline-info:last-child {
    margin-bottom: 0;
}

.price-label,
.deadline-label {
    font-weight: 500;
    color: #6b7280;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
}

.deadline-value {
    font-weight: 600;
    color: #1f2937;
}

.complex-details-actions {
    text-align: center;
}

.complex-details-actions .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.complex-details-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 107, 244, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .complex-details-section {
        padding: 40px 0;
    }
    
    .complex-details-header {
        margin-bottom: 30px;
    }
    
    .complex-details-title {
        font-size: 2rem;
    }
    
    .complex-details-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .complex-details-img {
        height: 250px;
    }
    
    .complex-details-info {
        padding: 30px 20px;
    }
    
    .complex-details-subtitle {
        font-size: 1.3rem;
    }
    
    .price-info,
    .deadline-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .price-value,
    .deadline-value {
        font-size: 1.1rem;
    }
}


/* --- Стили Бронирования --- */
.booking {
     background-color: #f8f9fa; /* Светло-серый фон */
}

.booking__grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
    gap: 30px;
    align-items: center; /* Выравнивание по центру по вертикали на десктопе */
}

.booking__jk-name {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.booking__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.booking__text {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

.booking__shahmatka {
    /* Стили для контейнера шахматки, если нужно */
    border-radius: 8px;
    overflow: hidden; /* Скрыть вылезающее содержимое плейсхолдера */
    border: 1px solid #e0e0e0; /* Небольшая рамка для плейсхолдера */
}

.shahmatka-placeholder img {
    width: 100%;
    height: auto;
}

/* Стили кнопок */
.btn {
    display: inline-flex; /* Используем inline-flex для иконки */
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.btn--primary {
    background-color: #0d6efd; /* Пример синего цвета */
    color: #fff;
    text-decoration: none;
}

.btn--primary:hover {
    background-color: #0b5ed7;
}

.btn:active {
    transform: scale(0.98);
}

/* Адаптивные стили для секции booking */

/* Планшеты и небольшие десктопы */
@media (min-width: 768px) {
    /* 2 колонки для Бронирования */
    .booking__grid {
        grid-template-columns: 1fr 1fr; /* Две равные колонки */
        gap: 40px;
    }
    .booking__title {
        font-size: 2rem;
    }
}

/* Большие десктопы */
@media (min-width: 992px) {
     .booking__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Адаптивные колонки */
        gap: 50px;
     }
     .booking__title {
        font-size: 2.2rem;
    }
}