/* Жестко запрещаем горизонтальный скролл на всем сайте */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    background-color: #f8f8f8;
    
}
body {
    font-family: "Google Sans", sans-serif; 
    background-color: #f8f8f8;
    overflow-x: hidden;
}

/* Отключаем конфликт с Bootstrap 5 */
html, :root {
    scroll-behavior: auto !important;
}

/* Обязательные базовые стили для Lenis */
html.lenis, html.lenis body {
    height: auto;
}
/* Вспомогательный класс для нового шрифта */
.font-arsenal-sc {
    font-family: 'Arsenal SC', sans-serif !important;
    
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}
/* =================================================== */
/* РАСШИРЕНИЕ КОНТЕЙНЕРА BOOTSTRAP ДЛЯ БОЛЬШИХ ЭКРАНОВ */
/* =================================================== */

/* Для экранов от 1400px (стандартный xxl брейкпоинт) */
@media (min-width: 1400px) {
    .container, 
    .container-md, 
    .container-lg, 
    .container-xl, 
    .container-xxl {
        max-width: 1440px !important; /* Расширяем со стандартных 1320px до 1440px */
    }
}

/* Опционально: для очень больших мониторов (широкоформатных) */
@media (min-width: 1600px) {
    .container, 
    .container-md, 
    .container-lg, 
    .container-xl, 
    .container-xxl {
        max-width: 1560px !important; /* Даем сайту еще больше размаха */
    }
}

/* =================================================== */
/* ПРЕМИАЛЬНАЯ КНОПКА МЕНЮ (ГАМБУРГЕР) */
/* =================================================== */
.premium-burger {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.4); /* Под цвет вашего стеклянного меню */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  z-index: 1040;
  padding: 0;
}

.premium-burger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Линии внутри кнопки */
.burger-line {
  display: block;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.burger-line.line-1 {
  width: 22px;
}

.burger-line.line-2 {
  width: 14px; /* Делаем вторую линию короче для стиля */
  margin-left: auto; /* Прижимаем к правому краю */
  margin-right: 14px; /* Центрируем относительно первой линии */
}

/* При наведении линия вытягивается */
.premium-burger:hover .burger-line.line-2 {
  width: 22px;
}

/* Анимация превращения в крестик (Bootstrap автоматически меняет aria-expanded) */
.premium-burger[aria-expanded="true"] .line-1 {
  transform: translateY(4px) rotate(45deg);
}

.premium-burger[aria-expanded="true"] .line-2 {
  width: 22px;
  transform: translateY(-4px) rotate(-45deg);
}

/* Расширяем стандартный контейнер для премиального вида */
@media (min-width: 1400px) {
    .container {
        max-width: 1440px; /* Было 1320px по умолчанию в Bootstrap 5 */
    }
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #222; /* Темно-серый экран */
    z-index: 9999;
}
/* Стили для хлебных крошек на темном фоне */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/"; /* Или можешь поставить ">" или SVG-иконку */
    color: rgba(255, 255, 255, 0.5);
}

/* Цвет фона для внутренних шапок страниц */
.page-header-section {
    /* Цвет фона взят с твоего макета (темно-серый) */
    background-color: #2d2d2d; 
    padding-top: 4rem !important;
}

/* Фоновое видео (имитация картинкой для примера) */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Затемнение для читаемости текста */
}

/* Навигация */
.nav-pills .nav-link {
    transition: background-color 0.3s ease;
}
.nav-pills .nav-link:hover {
    background-color: #f0f0f0;
}

/* Эффект стекла (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.05); /* Сделали фон прозрачнее */
    backdrop-filter: blur(12px); /* Чуть уменьшили блюр для большей естественности */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Более тонкая рамка */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
/* Эффект стекла для меню навигации */
.glass-menu {
    background: rgba(40, 40, 40, 0.4); /* Темнее и прозрачнее, как на макете */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex; /* Чтобы меню обтягивало контент */
}

/* Ховер для ссылок внутри стеклянного меню */
.glass-menu .nav-link {
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.glass-menu .nav-link:hover:not(.active-link) {
    background: rgba(255, 255, 255, 0.2);
    
}



/* Ползунок в меню */
.menu-indicator {
    height: calc(100% - 16px); /* Высота минус внутренние паддинги меню (py-2 = 8px * 2) */
    top: 8px; /* Выравниваем по высоте с учетом py-2 */
    left: 0;
    transition: none; /* Двигать будем через GSAP */
    pointer-events: none; /* Чтобы клики проходили сквозь него на ссылки */
}


/* Активный пункт меню (как кнопка "О пространстве") */
.active-link {
    background-color: #fff !important;
    color: #111 !important;
}

/* Стили для Offcanvas (мобильное меню) */
.offcanvas.bg-dark {
    background-color: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(15px);
}

/* Кнопки */
.btn-dark {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-dark:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* =================================================== */
/* ФОТО-КАРТОЧКИ ПРЕИМУЩЕСТВ (О ПРОСТРАНСТВЕ)          */
/* =================================================== */
.feature-photo-card {
    min-height: 320px; /* Базовая высота карточек */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05); /* Очень легкая рамка для контраста с белым фоном */
}

/* При наведении карточка чуть увеличивается (внутренняя картинка) */
.feature-photo-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-photo-card:hover img {
    transform: scale(1.05);
}

.feature-photo-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Градиент снизу вверх для читаемости белого текста на фото */
.bg-gradient-dark-bottom {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* =================================================== */
/* КАРТА (СХЕМА ПРОСТРАНСТВА) ПО МАКЕТУ */
/* =================================================== */

/* Кнопки навигации над картой */
.map-nav-btn {
    color: #212529 !important;
    transition: all 0.3s ease;
}

.map-nav-btn:hover {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.map-nav-btn.active {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

/* Точки на карте (плюсики) */
.map-hotspot {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.map-hotspot:hover {
    transform: scale(1.15);
}

.hotspot-popup {
    max-width: 340px;              /* вместо фиксированного width: 340px; */
    width: 100%;
    transform: translate(-50%, -50%);
}

/* когда активен – просто показываем, transform не трогаем */
.hotspot-popup.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Десктоп: плавающий попап, мобильный блок скрыт */
.hotspot-mobile-info {
    max-width: 100%;
}

/* На мобильных делаем подсказку только под картой */
@media (max-width: 767px) {
    .hotspot-popup {
        display: none !important; /* отключаем плавающий попап */
    }

    .hotspot-mobile-info {
        display: block !important;
    }

    /* убираем скрытие плюсиков, чтобы они не исчезали на мобиле */
    .map-hotspot {
        opacity: 1 !important;
    }
}


/* Кнопка закрытия */
.btn-close-popup:hover {
    transform: translateX(-50%) rotate(90deg) !important;
}

/* Адаптив для карты на мобильных */
.map-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар */
}

@media (max-width: 991px) {
    /* На мобильных скроллим карту вправо, чтобы она не сплющивалась */
    .map-container {
        /* Принудительная ширина, чтобы карта оставалась крупной */
        width: 900px !important; 
    }
}


.btn-close-popup {
    transition: transform 0.2s ease;
}
.btn-close-popup:hover {
    transform: rotate(90deg);
}

.fs-7 {
    font-size: 0.85rem;
}
/* Стили для слайдера инфраструктуры */
.cursor-pointer {
    cursor: pointer;
}

.slider-nav-item {
    transition: color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    transform-origin: left center;
}

.slider-nav-item:hover {
    opacity: 0.8 !important;
}

.slider-nav-item.active {
    color: #212529 !important; /* text-dark */
    opacity: 1 !important;
    transform: scale(1.05); /* Легкое увеличение активного пункта */
}

/* Фикс для наложения слайдов друг на друга */
.slider-content-wrapper {
    position: relative;
}




/* Вспомогательные классы для футера */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-base {
    transition: all 0.3s ease;
}

/* Фикс размера шрифта для подвала */
.fs-7 {
    font-size: 0.85rem;
}

/* Скрываем скроллбар в футер-меню на мобильных, если оно не влезает */
@media (max-width: 768px) {
    .footer-menu {
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .footer-menu::-webkit-scrollbar {
        display: none;
    }
}

/* Градиент для текста на картинках комплекса */
.bg-gradient-dark-bottom {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

/* Эффект увеличения картинки при наведении на её контейнер */
.group-hover-zoom:hover img {
    transform: scale(1.05);
}

.transition-transform {
    transition-property: transform;
}

.duration-700 {
    transition-duration: 0.7s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Плавная кривая как в дорогих сайтах */
}

/* Легкое увеличение кнопки при наведении */
.hover-scale:hover {
    transform: scale(1.03);
}

/* Модальное окно (затемнение фона) */
.glass-modal {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.4);
}

/* Стилизация премиальной формы внутри модалки */
.premium-form .form-control {
    border-radius: 12px;
    border-width: 1px;
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    box-shadow: none !important;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.premium-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Исправление фона Floating Label в Bootstrap для темной темы */
.premium-form .form-floating > label {
    padding-left: 1.25rem;
}

/* Убираем белый фон, который Bootstrap 5 ставит за лейблом при фокусе */
.premium-form .form-floating > .form-control:focus ~ label::after,
.premium-form .form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background-color: transparent !important;
}

.premium-form .form-floating > .form-control:focus ~ label,
.premium-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #fff !important;
    opacity: 1 !important;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

/* Цвет плейсхолдера для прозрачных инпутов */
.premium-form .form-control::placeholder {
    color: transparent;
}


/* Контейнер карты для относительного позиционирования маркеров */
.bg-map{
    background: #EAEEEF;
}

.map-container {
  position: relative;
  width: 100%;
  
}

.map-bg {
  width: 100%;
  display: block;
}

/* Сам маркер на карте */
.map-marker {
  position: absolute;
  /* Центрируем маркер относительно его координат */
  transform: translate(-50%, -100%); 
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

/* Блок с контентом (текст + картинка), который будет "всплывать" */
.marker-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Изначально сдвинут немного вниз, к точке */
  transform: translateY(20px);
  transition: transform 0.3s ease;
  margin-bottom: 5px; /* Отступ от точки */
}

/* Текстовая плашка (например, "Кремль") */
.marker-text {
  background-color: #222;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  /* Плавный сдвиг при наведении */
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Контейнер для картинки */
.marker-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-image: url('img/kreml.jpg'); /* Ваша картинка */
  background-size: cover;
  background-position: center;
  border: 2px solid #fff; /* Белая рамка, как на макете */
  
  /* Изначально скрыто и уменьшено */
  opacity: 0;
  transform: scale(0.5) translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  
  /* Позиционируем под текстом */
  position: absolute;
  top: 100%; /* Сразу под текстовой плашкой */
  margin-top: 5px;
}

/* Сама точка на карте (которая превращается в картинку или остается под ней) */
.marker-dot {
  width: 10px;
  height: 10px;
  background-color: #222;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

/* --- АНИМАЦИЯ ПРИ НАВЕДЕНИИ (HOVER) --- */

.map-marker:hover .marker-content {
  /* Поднимаем весь контент вверх */
  transform: translateY(-10px); 
}

.map-marker:hover .marker-image {
  /* Показываем картинку и увеличиваем до нормального размера */
  opacity: 1;
  transform: scale(1) translateY(0);
}

.map-marker:hover .marker-dot {
  /* Скрываем маленькую точку, так как на ее месте появляется картинка (опционально) */
  opacity: 0; 
}

/* Фирменный зеленый цвет текста */
.brand-green-text {
    color: #83BC29 !important;
}

/* Светлая карточка преимуществ с обводкой */
.feature-card-light {
    border: 1px solid rgba(0, 0, 0, 0.08); /* Легкая серая рамка */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card-light:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(131, 188, 41, 0.3); /* При наведении рамка слегка зеленеет */
}



/* =================================================== */
/* КНОПКИ НАВИГАЦИИ ПО КАРТЕ */
/* =================================================== */
.map-nav-btn {
    border-color: #E25B51; /* Красный цвет с макета */
    color: #E25B51;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
}

.map-nav-btn:hover {
    background-color: rgba(226, 91, 81, 0.1); /* Легкий фон при наведении */
    color: #E25B51;
}

/* Активное состояние кнопки */
.map-nav-btn.active {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #E25B51 !important;
    box-shadow: 0 4px 10px rgba(226, 91, 81, 0.2);
    transform: translateY(-2px);
}

/* =================================================== */
/* ПЕРЕЛИВАЮЩАЯСЯ ЗЕЛЕНАЯ КНОПКА */
/* =================================================== */
.btn-brand-glow {
    position: relative;
    background-color: #83BC29;
    color: #ffffff !important;
    border: 1px solid #83BC29;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(131, 188, 41, 0.3);
}

/* Состояние при наведении (белый фон, зеленая тень, темный текст) */
.btn-brand-glow:hover {
    background-color: #ffffff;
    color: #212529 !important; /* Темный текст (как в Bootstrap text-dark) */
    border-color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(131, 188, 41, 0.6); /* Объемное зеленое свечение */
}

/* Эффект переливания (блик) */
.btn-brand-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    /* Делаем блик чуть мягче */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    /* Замедлили перелив: было 3s, стало 5s */
    animation: buttonGlow 5s infinite; 
    z-index: -1;
}

/* Скрываем блик при наведении (так как фон становится белым, белый блик не нужен) */
.btn-brand-glow:hover::after {
    display: none;
}

@keyframes buttonGlow {
    0% { left: -100%; }
    15% { left: 200%; } /* Блик пробегает за 15% времени (0.75 сек) */
    100% { left: 200%; } /* Остальные 85% времени (4.25 сек) ждет */
}


.abb-pt{
    padding-top: 5rem;
}

/* =================================================== */
/* ИНТЕРАКТИВНЫЙ АККОРДЕОН (О ПРОСТРАНСТВЕ) - V2 */
/* =================================================== */
.premium-accordion-wrapper {
    height: 600px;
    width: 100%;
}

.premium-accordion-item {
    position: relative;
    /* Узкая ширина по умолчанию (примерно как на макете) */
    flex: 1; 
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    /* Добавляем минимальную ширину, чтобы текст помещался */
    min-width: 100px; 
}

/* Активная (расширенная) карточка */
.premium-accordion-item.active {
    flex: 4; /* Расширяется сильнее, чем неактивные */
}

/* Картинка на фоне */
.premium-accordion-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.premium-accordion-item:hover img {
    transform: scale(1.05);
}

/* Затемнение снизу */
.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

/* Контейнер для текста внутри */
.accordion-content {
    position: relative;
    z-index: 2;
    /* Занимает всю высоту карточки (h-100 в HTML) */
}

/* Стили для вертикального заголовка */
.vertical-title {
    /* Поворачиваем текст на 180 градусов (читается снизу вверх) */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    /* Плавный переход цвета (если захотите менять при наведении) */
    transition: color 0.3s ease;
    letter-spacing: 2px;
}

/* Контейнер для дополнительного текста (скрыт по умолчанию) */
.accordion-text-wrap {
    /* Ограничиваем ширину, чтобы текст не растягивался на всю карточку */
    max-width: 300px;
    /* Выравниваем по низу относительно заголовка */
    margin-bottom: 5px; 
}

/* Анимация описания */
.content-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Текст скрывается сдвигом вправо */
    transform: translateX(20px); 
    white-space: normal;
}

/* Показ описания только у активной карточки */
.premium-accordion-item.active .content-desc {
    max-height: 200px;
    opacity: 1;
    transform: translateX(0);
}
/* Делаем иконки зелеными и добавляем ховер-эффект на блок */
.rent-item {
    transition: transform 0.3s ease;
}

.rent-item:hover {
    transform: translateY(-5px); /* Легкое поднятие при наведении */
}

/* Этот фильтр красит черные SVG в зеленый цвет #83BC29 */
.rent-icon {
    filter: invert(61%) sepia(85%) saturate(368%) hue-rotate(42deg) brightness(93%) contrast(88%);
    transition: transform 0.4s ease;
}

.rent-item:hover .rent-icon {
    transform: scale(1.1); /* Иконка чуть увеличивается */
}

/* Адаптив для мобильных устройств (планшеты и телефоны) */
@media (max-width: 991px) {
    .premium-accordion-wrapper {
        flex-direction: column;
        height: 800px;
    }
    
    .premium-accordion-item {
        min-height: 100px;
    }
    
    /* ЗДЕСЬ ИСПРАВЛЕНО ВЫРАВНИВАНИЕ */
    .accordion-content {
        align-items: flex-start !important; /* Прижимаем к левому краю */
        flex-direction: column !important;
        justify-content: flex-end; /* Текст остаётся внизу карточки */
        padding: 1.5rem !important; /* Чуть уменьшаем отступы на мобилке */
    }
    
    .vertical-title {
        writing-mode: horizontal-tb;
        transform: none;
        white-space: normal;
        margin-bottom: 10px !important;
        text-align: left; /* Жестко выравниваем текст влево */
    }
    
    .accordion-text-wrap {
        margin-left: 0 !important;
        max-width: 100%;
        text-align: left; /* Описание тоже выравниваем влево */
    }
    
    .content-desc {
        transform: translateY(10px); /* Делаем анимацию чуть короче для мобилок */
    }
    
    .premium-accordion-item.active .content-desc {
        transform: translateY(0);
    }
}

/* Кнопки управления слайдером инфраструктуры */
.slider-prev:hover, .slider-next:hover {
    background-color: #333333 !important; /* Делаем чуть темнее при наведении */
    transform: scale(1.05);
    transition: all 0.3s ease;
}
/* =================================================== */
/* ПРЕМИАЛЬНЫЙ АККОРДЕОН (FAQ) */
/* =================================================== */

/* Легкий серый фон для всего блока, как на макете */
.bg-light {
    background-color: #F8F9FA !important;
}

/* Сбрасываем стандартные рамки */
.premium-accordion .accordion-item {
    border-color: rgba(0, 0, 0, 0.1) !important; /* Тонкая серая линия снизу */
}

/* Убираем рамку у последнего элемента, чтобы было аккуратнее */
.premium-accordion .accordion-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; 
}

/* Кастомная стрелочка (галочка) */
.premium-accordion .accordion-button::after {
    background-image: none !important; /* Убираем дефолтную SVG */
    content: '';
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    transform: rotate(45deg) translateY(-4px); /* Смотрит вниз */
    transition: transform 0.4s ease, border-color 0.3s ease;
    margin-left: auto;
}

/* Галочка при открытом состоянии (смотрит вверх) */
.premium-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(225deg) translateY(-2px);
    border-color: #83BC29; /* Ваша фирменная зеленая подсветка */
}

/* Цвет текста при открытии */
.premium-accordion .accordion-button:not(.collapsed) {
    color: #83BC29 !important; /* Текст тоже становится зеленым */
}

/* Эффект при наведении на вопрос */
.premium-accordion .accordion-button:hover {
    color: #83BC29 !important;
}
.premium-accordion .accordion-button:hover::after {
    border-color: #83BC29;
}

/* =================================================== */
/* ГОРИЗОНТАЛЬНЫЙ АККОРДЕОН УСЛУГ (КЛИК) - ИСПРАВЛЕННЫЙ */
/* =================================================== */
.services-accordion-wrapper {
    height: 550px; /* Высота блока на ПК */
    width: 100%;
    display: flex;
    gap: 1rem;
}

.services-accordion-item {
    /* Свернутое состояние */
    flex: 1; /* Занимает 1 долю пространства */
    min-width: 80px; /* Минимальная ширина, чтобы не исчезал */
    border-radius: 2rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Плавная анимация изменения доли flex */
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Раскрытое состояние */
.services-accordion-item.active {
    flex: 10; /* Занимает большую часть пространства */
}

/* =========================================
   ВНУТРЕННИЙ КОНТЕНТ
   ========================================= */

/* 1. РАСКРЫТАЯ карточка */
.expanded-content {
    opacity: 0;
    visibility: hidden;
    display: flex;
    height: 100%;
    width: 100%; /* Занимает 100% от текущей ширины родителя */
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.services-accordion-item.active .expanded-content {
    opacity: 1;
    visibility: visible;
    /* Показываем контент с задержкой, чтобы скрыть "сжатие" текста во время анимации flex */
    transition: opacity 0.5s ease 0.4s, visibility 0s 0.4s; 
}

.service-img-wrapper {
    /* Картинка занимает 40-45%, может слегка сжиматься (flex-shrink: 1) */
    flex: 0 1 40%; 
    max-width: 45%;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.service-text-wrapper {
    /* Текст занимает остальное пространство */
    flex: 1 1 60%; 
    display: flex;
    flex-direction: column;
    min-width: 280px; /* Защита от слишком сильного сплющивания на узких экранах */
}

/* 2. СВЕРНУТАЯ карточка */
.collapsed-content {
    opacity: 1;
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    z-index: 1;
    transition: opacity 0.3s ease 0.3s; 
}

.services-accordion-item.active .collapsed-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease; /* Быстро скрываем вертикальный текст */
}

/* Вертикальный текст */
.vertical-title-down {
    writing-mode: vertical-rl;
    white-space: nowrap;
    letter-spacing: 1px;
    transform: rotate(180deg);
}

/* Кнопка с плюсом */
.service-plus-btn {
    width: 44px;
    height: 44px;
    background-color: #F0F0F0;
    transition: transform 0.4s ease;
}

.services-accordion-item.active .service-plus-btn {
    transform: rotate(45deg);
}

/* Кнопка записи */
.btn-brand-glow {
    background-color: #83BC29; /* Ваш зеленый цвет */
    border: none;
    font-size: 0.95rem;
}
.btn-brand-glow:hover {
    background-color: #72a323;
}

/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (ВЕРТИКАЛЬНЫЙ ВИД)
   ========================================= */
@media (max-width: 991px) {
    .services-accordion-wrapper {
        flex-direction: column; /* Элементы выстраиваются друг под другом */
        height: 1000px; /* Увеличенная высота для 5 элементов */
    }

    .services-accordion-item {
        flex: 1; /* В свернутом виде - маленькая высота */
        min-height: 70px;
        width: 100%;
    }

    .services-accordion-item.active {
        flex: 12; /* В раскрытом виде - занимает большую часть высоты */
    }

    .expanded-content {
        flex-direction: column; /* Картинка сверху, текст снизу */
    }

    .service-img-wrapper {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 220px; /* Фиксированная высота картинки на мобилках */
        margin-bottom: 0.5rem;
    }

    .service-text-wrapper {
        padding: 1rem !important;
        overflow-y: auto; /* Добавляем скролл, если текст не влазит */
        min-width: auto;
    }

    /* Свернутый контент становится горизонтальным */
    .collapsed-content {
        flex-direction: row;
        padding: 0 1.5rem;
    }

    .vertical-title-down {
        writing-mode: horizontal-tb;
        transform: none;
    }
}
/* ========================================= */
/* АДАПТИВНАЯ ГАЛЕРЕЯ (СЕТКА + МОБИЛЬНЫЙ СЛАЙДЕР) */
/* ========================================= */

.gallery-adaptive-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px; 
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05); /* Легкий зум при наведении на десктопе */
}

/* Раскладка для десктопа (Плитка) */
.gallery-item-1 { grid-column: span 7; grid-row: span 2; } 
.gallery-item-2 { grid-column: span 5; grid-row: span 1; }
.gallery-item-3 { grid-column: span 5; grid-row: span 1; }
.gallery-item-4 { grid-column: span 6; grid-row: span 1; } 
.gallery-item-5 { grid-column: span 6; grid-row: span 1; }

/* Планшеты и телефоны (Слайдер) */
@media (max-width: 991px) {
    .gallery-adaptive-grid {
        /* Отключаем Grid и включаем горизонтальный Flex-слайдер */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        
        /* Включаем магнитную прокрутку (эффект слайдера) */
        scroll-snap-type: x mandatory;
        
        /* Прячем системный скроллбар */
        -ms-overflow-style: none;
        scrollbar-width: none;
        
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .gallery-adaptive-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        /* На мобилке картинка занимает 85% ширины экрана. 
           Остальные 15% показывают краешек следующего фото */
        width: 85vw; 
        max-width: 400px;
        height: 350px;
        flex-shrink: 0;
        
        /* Точка примагничивания: карточка будет выравниваться по левому краю с небольшим отступом */
        scroll-snap-align: center; 
    }
}

@media (max-width: 575px) {
    .gallery-item {
        height: 280px;
        scroll-snap-align: start; /* На совсем маленьких экранах прижимаем к левому краю */
    }
}
/* =================================================== */
/* ПРЕМИАЛЬНЫЙ ФУТЕР И ЭФФЕКТЫ */
/* =================================================== */

/* Эффект "Reveal Footer" (Футер стоит на месте, а страница съезжает с него) */
body {
    /* Если футер прибит к низу, контент над ним должен иметь z-index выше */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    background: #fff;
    position: relative;
    z-index: 2; /* Страница ПОВЕРХ футера */
    /* Тень снизу страницы, падающая на футер */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
}

.premium-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1; /* ФУТЕР ПОД СТРАНИЦЕЙ */
    background-color: #1A1A1A !important;
}

/* Вспомогательные классы для текста в футере */
.letter-spacing-1 {
    letter-spacing: 1px;
}

.hover-green:hover {
    color: #83BC29 !important; /* Ваш фирменный зеленый */
}

.hover-white:hover {
    color: #ffffff !important;
}

/* Анимация соцсетей при наведении */
.social-icon:hover {
    background-color: #83BC29;
    border-color: #83BC29 !important;
    transform: translateY(-3px);
}

/* Анимация большой круглой кнопки бронирования */
.magnetic-btn-footer {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
    line-height: 1.2;
}

/* Адаптив: на мобильных отключаем sticky-футер, чтобы не было багов со скроллом */
@media (max-width: 991px) {
    .premium-footer {
        position: relative !important;
        z-index: 2;
    }
    main {
        box-shadow: none;
    }
}
/* =================================================== */
/* СЛАЙДЕР ИНФРАСТРУКТУРЫ (ЕДИНАЯ СИЛОВАЯ ЛИНИЯ) */
/* =================================================== */
.complex-gallery-wrapper {
    scroll-behavior: smooth;
}

.complex-gallery-wrapper::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .position-lg-absolute {
        position: absolute !important;
    }
    
    /* Делаем так, чтобы ширина слайдера была от конца левой колонки до правого края экрана */
    /* В Bootstrap container обычно имеет max-width. Нам нужно отступить слева на половину пустой зоны экрана + 25% ширины контейнера (col-lg-3) + margin */
    .complex-slider-container {
        /* Оставляем левую часть пустой (там текст) */
        /* На средних экранах ширина контейнера ~960px, col-lg-3 это 25% = ~240px */
        /* Мы используем margin-left для смещения */
        width: calc(100vw - ((100vw - 960px) / 2) - 240px - 3rem) !important;
    }
}

@media (min-width: 1200px) {
    .complex-slider-container {
        /* Для экранов xl (контейнер 1140px, col-lg-3 ~285px) */
        width: calc(100vw - ((100vw - 1140px) / 2) - 285px - 3rem) !important;
    }
}

@media (min-width: 1400px) {
    .complex-slider-container {
        /* Для ваших премиум экранов xxl (контейнер 1320px или 1440px) */
        width: calc(100vw - ((100vw - 1440px) / 2) - 360px - 3rem) !important;
    }
}

/* На мобильных слайдер идет просто под текстом */
@media (max-width: 991px) {
    .complex-slider-container {
        margin-top: 2rem;
        /* На мобилке слайдер тянется на весь экран с небольшим отступом слева */
        padding-left: 1rem;
    }
    .complex-gallery-item {
        width: 280px !important;
        height: 400px !important;
    }
}

/* =================================================== */
/* НОВАЯ ИНФРАСТРУКТУРА (АККОРДЕОН ПО МАКЕТУ) */
/* =================================================== */
.infrastructure-section {
    background-color: #F8F9FA !important; /* Легкий серый фон как на макете */
}

/* Стили для пунктов аккордеона */
.infra-accordion-item {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.infra-accordion-content {
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Состояние АКТИВНОГО пункта */
.infra-accordion-item.active {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.infra-accordion-item.active h3 {
    color: #212529 !important; /* Текст становится темным */
}

.infra-accordion-item.active .infra-plus-btn {
    transform: rotate(45deg); /* Плюсик превращается в крестик */
    background-color: #F0F0F0 !important;
    color: #212529 !important;
}

/* Ховер эффекты для неактивных пунктов */
.infra-accordion-item:not(.active):hover h3 {
    color: #666 !important;
}
.infra-accordion-item:not(.active):hover .infra-plus-btn {
    background-color: #e9ecef !important;
}
.infra-plus-btn{
    width:42px;
    height: 42px;
    transition: 0.3s;
}
/* Правая колонка с картинками */
.infra-images-wrapper {
    min-height: 500px;
}

.infra-image-item {
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.98);
}

.infra-image-item.active {
    opacity: 1 !important;
    z-index: 2 !important;
    transform: scale(1);
}

/* Адаптив для мобильных */
@media (max-width: 991px) {
    .infra-images-wrapper {
        min-height: 350px;
        margin-top: 2rem;
    }
    .infra-accordion-item {
        padding: 1rem !important;
    }
    .infra-accordion-item .fs-3 {
        font-size: 1.5rem !important;
    }
}
/* ========================================= */
/* ЛОКАЦИЯ – ФОН НА ДЕСКТОПЕ, БЛОК НА МОБИЛЬНЫХ */
/* ========================================= */

.location-section {
    position: relative;
    padding-top: 15rem;
    padding-bottom: 15rem;
}

/* Фоновое изображение карты (видно только на десктопе) */
.location-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.95;
}

/* Белый градиент для читаемости текста поверх фоновой карты */
.location-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Белая карточка с цифрами */
.location-stats-card {
    min-height: 320px;
}

/* На мобильных: убираем фоновую карту, показываем карту отдельным блоком ниже */
.location-map-mobile {
    display: none; /* по умолчанию скрыта (для десктопа) */
}

@media (max-width: 991px) {
    .location-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Убираем фон */ 
    .location-bg {
        display: none;
    }
    .location-section::before {
        display: none;
    }

    /* Карточка цифр — просто блок сверху */
    .location-stats-card {
        min-height: auto;
        padding: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Отдельный блок карты под цифрами */
    .location-map-mobile {
        display: block;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .location-map-mobile img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 575px) {
    .location-section h2 {
        font-size: 2rem;
    }
    
    .location-stats-card .display-4 {
        font-size: 2.25rem;
    }
}

/* ========================================= */
/* СТРАНИЦА ОБЪЕКТОВ – cards */
/* ========================================= */

.objects-section {
    background-color: #F5F5F7;
}

.objects-grid .object-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.4s ease;
}

.object-card-image-wrapper {
    height: 220px;
    overflow: hidden;
}

.object-card-image {
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.object-card-tag {
    top: 16px;
    left: 16px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* Hover-эффекты на десктопе */
@media (min-width: 992px) {
    .objects-grid .object-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

    .objects-grid .object-card:hover .object-card-image {
        transform: scale(1.05);
    }
}

/* Адаптив */
@media (max-width: 767px) {
    .object-card-image-wrapper {
        height: 200px;
    }

    .objects-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
/* Планировочное решение 1 этажа */
.floorplan-section {
    background-color: #F5F5F5;
}

.floorplan-image-wrapper {
    min-height: 260px;
}

.floorplan-content {
    min-height: 260px;
}

.floorplan-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.floorplan-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50; /* брендовый зелёный, если используешь другой — подставь */
}

/* Адаптив: на мобиле картинка сверху, текст ниже */
@media (max-width: 991px) {
    .floorplan-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .floorplan-image-wrapper,
    .floorplan-content {
        min-height: auto;
    }
}





/* Телефоны: до 480px */
@media (max-width: 480px) {
      .map-nav-btn {
        font-weight: 400;
        font-size: 0.7rem;
    }

    .infra-accordion-content p{
        display:none;
    }
    .infra-accordion-item{
        padding:0.2rem!important;
    }
    .services-accordion-item.active {
        width: 100%;
        height: auto;
    }
    .collapsed-content .d-flex {
        justify-content: center !important;
    }
}

/* Планшеты: 481–768px */
@media (min-width: 481px) and (max-width: 768px) {
  /* только планшеты */
}

/* Небольшие ноутбуки: 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  /* маленькие ноутбуки */
}

/* Десктоп: от 1025px */
@media (min-width: 1025px) and (max-width: 1366px){
  .hero-content h1{
    font-size:3.5rem!important;
  }
}
/* ========================================= */
/* СХЕМА ПРОСТРАНСТВА - МОБИЛЬНЫЙ СКРОЛЛ     */
/* ========================================= */

.map-scroll-wrapper {
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.map-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.map-container {
    width: 100%;
}

/* На планшетах и мобильных включаем скролл */
@media (max-width: 991px) {
    .map-scroll-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        /* Легкая тень внутри, чтобы показать, что есть контент сбоку */
        box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1);
        padding-bottom: 10px; /* Место для тени */
    }

    .map-container {
        /* Жестко задаем ширину карты, чтобы она не сжималась */
        /* Чем больше значение, тем крупнее будет карта и больше скролла */
        width: 900px !important; 
        max-width: none;
    }
    
    /* Уменьшаем плюсики на мобилках, чтобы они выглядели аккуратнее на большой карте */
    .map-hotspot {
        width: 28px !important;
        height: 28px !important;
    }
    .map-hotspot span {
        font-size: 1.2rem !important;
    }
}
/* ========================================= */
/* СЕКЦИЯ "ЧТО ВХОДИТ В АРЕНДУ" (Premium) */
/* ========================================= */

.premium-feature-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

/* Декоративный градиент, который плавно появляется при ховере */
.premium-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.premium-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(76, 175, 80, 0.15);
}

.premium-feature-card:hover::before {
    opacity: 1;
}

.premium-feature-card .icon-wrapper {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s ease;
}

.premium-feature-card:hover .icon-wrapper {
    transform: scale(1.1);
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
/* ========================================= */
/* ЛОКАЦИЯ (ПАНОРАМА И ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ) */
/* ========================================= */

.panorama-scroll-wrapper {
    width: 100%;
    /* Отключаем системный скроллбар для эстетики */
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Скрываем скроллбар в Chrome/Safari/Webkit */
.panorama-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.panorama-container {
    width: 100%;
    max-width: 1560px; /* Ограничиваем на огромных мониторах */
    /* Базовая высота для десктопа */
    height: 700px; 
}

.panorama-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.swipe-hint {
    opacity: 0.9;
    animation: pulseSwipe 2s infinite ease-in-out;
}

@keyframes pulseSwipe {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 991px) {
    .panorama-scroll-wrapper {
        /* Включаем горизонтальный скролл */
        overflow-x: auto;
        overflow-y: hidden;
        /* Добавляем отступы по краям, чтобы карта не прилипала к экрану */
        padding: 0 1rem; 
    }

    .panorama-container {
        /* Жестко задаем ширину, чтобы картинка не сжималась, а вызывала скролл */
        width: 900px; /* Можете увеличить это значение (например до 1200px), если хотите, чтобы панорама была крупнее */
        max-width: none; 
        height: 500px;
    }
}

@media (max-width: 575px) {
    .panorama-container {
        /* На маленьких экранах картинка будет 800px в ширину и 400px в высоту */
        width: 800px; 
        height: 400px;
    }
}
/* ========================================= */
/* ПОДСВЕТКА ЗОН НА КАРТЕ (SVG)              */
/* ========================================= */

.map-highlight-overlay {
    z-index: 5;
    /* pointer-events: none; остается в HTML на самом теге <svg>, это правильно! */
}

.map-polygon {
    pointer-events: auto; /* ВАЖНО: Разрешаем мышке взаимодействовать именно с полигонами */
    cursor: pointer;      /* Меняем курсор на "палец" при наведении */
    fill: rgba(139, 195, 74, 0); 
    stroke: rgba(139, 195, 74, 0); 
    stroke-width: 4px;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

/* Подсветка срабатывает:
   1. При наведении мышки на полигон (:hover)
   2. Когда попап открыт (.active)
   3. Когда мышка наведена на "плюсик" (.is-hovered, добавим через JS) */
.map-polygon:hover,
.map-polygon.active,
.map-polygon.is-hovered {
    fill: rgba(139, 195, 74, 0.4); 
    stroke: rgba(139, 195, 74, 0.8); 
}
/* ========================================= */
/* ИНТЕРАКТИВНАЯ КАРТА (МОБИЛЬНАЯ ВЕРСИЯ)    */
/* ========================================= */

/* По умолчанию блок СОВСЕМ скрыт */
.hotspot-mobile-info {
    display: none !important; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Блок показывается только при наличии класса .active */
.hotspot-mobile-info.active {
    display: block !important;
    opacity: 1;
}

@media (max-width: 991px) {
    /* Скрываем SVG-подсветку зон на планшетах и мобильных */
    .map-highlight-overlay {
        display: none !important;
    }
}



/* ========================================= */
/* ИНФРАСТРУКТУРА - ИСПРАВЛЕНИЕ КАРТИНОК     */
/* ========================================= */

.infra-images-wrapper {
    /* Задаем базовую высоту для блока с картинками */
    min-height: 400px;
    margin-top: 2rem; /* Отступ сверху на мобильных, чтобы оторвать от кнопок навигации */
}

/* На десктопе делаем блок выше, чтобы картинки смотрелись пропорционально аккордеону */
@media (min-width: 992px) {
    .infra-images-wrapper {
        min-height: 600px;
        margin-top: 0; /* Убираем мобильный отступ */
    }
}

.modal-image-wrapper {
    min-height: 500px;
}

@media (max-width: 767px) {
    .modal-image-wrapper {
        min-height: 250px;
    }
    
    /* Немного уменьшим отступы текста в модалке для телефонов, чтобы всё влезло */
    #blockDetailsModal .p-md-5 {
        padding: 1.5rem !important;
    }
}

/* Делаем блок кнопок над картой скроллируемым на мобильных */
@media (max-width: 991px) {
    .map-buttons-wrapper {
        flex-wrap: nowrap !important;        /* Запрещаем кнопкам переноситься на новую строку */
        overflow-x: auto;                    /* Включаем горизонтальный скролл */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;   /* Плавный скролл на iOS */
        -ms-overflow-style: none;            /* Скрываем скроллбар (IE и Edge) */
        scrollbar-width: thin;               /* Скрываем скроллбар (Firefox) */
        padding-bottom: 10px;                /* Добавляем немного места снизу */
    }
    
    /* Скрываем полосу прокрутки для Chrome, Safari и Opera */
    .map-buttons-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    /* Чтобы кнопки не сжимались, а сохраняли свой размер */
    .map-buttons-wrapper .map-nav-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 991px) {
    /* Делаем контейнер гибким, чтобы пункты шли один за другим */
    .infrastructure-accordion {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start; /* Чтобы соседние плашки не тянулись вслед за открытой по высоте */
    }
    
    /* Все пункты (и закрытые, и открытые) подстраиваются под контент */
    .infra-accordion-item {
        width: auto !important; 
        padding: 0.2rem 0.4rem !important;
        border-radius: 18px !important; 
    }
    
    /* Располагаем плюсик и текст компактно */
    .infra-accordion-item .d-flex.gap-4 {
        gap: 0.3rem !important;
        padding: 0 !important;
    }
    
    /* Заголовок (Гостиная и т.д.) */
    .infra-accordion-item h3 {
        font-size: 0.8rem !important;
        white-space: nowrap; /* Запрещаем заголовку переноситься на новую строку */
    }
    
    /* Уменьшаем кружок с плюсиком */
    .infra-plus-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Отступы для текста внутри открытого пункта */
    .infra-accordion-content p {
        font-size: 0.85rem !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important; 
        padding-left: 0 !important;
        white-space: normal; /* А вот тексту описания разрешаем переноситься */
    }
}


@media (max-width: 480px) {
    .abb-pt{padding-top:0;}
    .hero-content h1{
        font-size:2rem!important;
    }
    .hero-content p{
        font-size:16px!important;
    }
    .title-mobile{
        font-size:24px!important;
        line-height: 1;
    }
    .subtitle-mobile{
        font-size:0.9rem!important;
    }
    .infra-plus-btn{
        width:24px;
        height: 24px;
    }
    .arrows-infra{
        display:none!important;
    }
    .premium-feature-card{
        padding: 1rem!important;
    }
    .premium-feature-card h4{
        font-size:0.9rem!important;
    }
    .premium-feature-card p{
        font-size:0.9rem!important;
    }
}

/* Подсказка свайпа на схеме офиса */
.office-swipe-hint, .panorama-swipe-hint {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none; 
    animation: officeSwipeAnim 2s infinite ease-in-out;
    transition: opacity 0.5s ease;
}

@keyframes officeSwipeAnim {
    0% { transform: translate(-60%, -50%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-30%, -50%); opacity: 0; }
}

/* Виджет */
.sf-container {
    --sf-main-color: #83BC29;
    --sf-main-hover: #72a623;
    --sf-whatsapp: #25D366;
    --sf-telegram: #229ED9;
    --sf-vk: #0077FF;
    --sf-dark: #1F2326;
    --sf-white: #FFFFFF;
    
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center; /* Исправлено: центрируем элементы для ровной сетки */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Меню с кнопками */
.sf-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    pointer-events: none; /* Чтобы не кликалось пока скрыто */
}

/* Отдельная ссылка-кнопка в меню */
.sf-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-white);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sf-item:hover {
    transform: scale(1.1) !important;
    color: var(--sf-white);
    transition-delay: 0s !important; /* Убираем задержку при наведении */
}

/* Иконки внутри маленьких кнопок */
.sf-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sf-white); /* Белая подложка нужна для прозрачных вырезов внутри иконок */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sf-item svg {
    width: 100%; /* Иконки Тильды занимают всю ширину кнопки */
    height: 100%;
    transition: transform 0.2s;
}

/* Всплывающие подсказки (тултипы) */
.sf-item::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px; /* Сдвиг влево от кнопки */
    background-color: rgba(31, 35, 38, 0.85);
    color: var(--sf-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sf-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Главная кнопка */
.sf-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--sf-main-color);
    color: var(--sf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none; /* Убираем стандартные рамки button */
    outline: none;
    box-shadow: 0 4px 15px rgba(131, 188, 41, 0.4);
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Эффект пульсации для привлечения внимания */
.sf-main-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(131, 188, 41, 0.6);
    animation: sf-pulse 2s infinite;
    z-index: -1;
}

@keyframes sf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(131, 188, 41, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(131, 188, 41, 0); }
    100% { box-shadow: 0 0 0 0 rgba(131, 188, 41, 0); }
}

/* Иконки главной кнопки */
.sf-icon-chat, .sf-icon-close {
    position: absolute;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sf-icon-chat {
    width: 35px; /* Оригинальный размер иконки чата из примера */
    height: 32px;
    opacity: 1;
    transform: rotate(0) scale(1);
}

.sf-icon-close {
    width: 23px; /* Оригинальный размер крестика из примера */
    height: 23px;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    fill: var(--sf-dark); /* Крестик будет темным */
}

/* =========================================
   ЛОГИКА ОТКРЫТИЯ (через добавление класса .active)
   ========================================= */

/* Главная кнопка меняет цвет на белый */
.sf-container.active .sf-main-btn {
    background-color: var(--sf-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Отключаем пульсацию при открытом меню */
.sf-container.active .sf-main-btn::before {
    display: none;
}

/* Анимация смены иконки: Чат исчезает, Крестик появляется */
.sf-container.active .sf-main-btn .sf-icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.sf-container.active .sf-main-btn .sf-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Появление кнопок меню */
.sf-container.active .sf-menu {
    pointer-events: auto; /* Включаем клики */
}

.sf-container.active .sf-menu .sf-item {
    transform: scale(1);
    opacity: 1;
}

/* Задержки при ЗАКРЫТИИ (исчезают сверху вниз) */
.sf-menu .sf-item:nth-child(1) { transition-delay: 0.00s; }
.sf-menu .sf-item:nth-child(2) { transition-delay: 0.05s; }
.sf-menu .sf-item:nth-child(3) { transition-delay: 0.10s; }
.sf-menu .sf-item:nth-child(4) { transition-delay: 0.15s; }
.sf-menu .sf-item:nth-child(5) { transition-delay: 0.20s; }

/* Задержки при ОТКРЫТИИ (появляются снизу вверх) */
.sf-container.active .sf-menu .sf-item:nth-child(5) { transition-delay: 0.00s; }
.sf-container.active .sf-menu .sf-item:nth-child(4) { transition-delay: 0.05s; }
.sf-container.active .sf-menu .sf-item:nth-child(3) { transition-delay: 0.10s; }
.sf-container.active .sf-menu .sf-item:nth-child(2) { transition-delay: 0.15s; }
.sf-container.active .sf-menu .sf-item:nth-child(1) { transition-delay: 0.20s; }

/* Адаптив под мобилки */
@media (max-width: 576px) {
    .sf-container { bottom: 20px; right: 20px; }
    .sf-main-btn { width: 55px; height: 55px; }
    .sf-item { width: 44px; height: 44px; }
    .sf-item::after { display: none; } /* Скрываем тултипы на смартфонах */
}

.cookie-notice {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

.cookie-notice.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-notice__inner {
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-notice__text {
    max-width: 680px;
}

.cookie-notice__text p {
    line-height: 1.5;
}

.cookie-notice__link {
    color: #83BC29;
    text-decoration: none;
}

.cookie-notice__link:hover {
    text-decoration: underline;
}

.cookie-notice__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-notice__inner {
        padding: 16px;
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-notice__actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-notice__actions .btn {
        width: 100%;
    }
}