/* 1. Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    --gold: #d4af37;
    --gold-bright: #fceabb;
    --bg-black: #050505;
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Применяем ко всему сайту */
/* 1. Глобальный фон для всего сайта */
html {
    margin: 0;
    padding: 0;
    /* overflow-x: hidden убран с html - он ломает position: sticky у потомков */
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Отступ, чтобы фиксированное меню не перекрывало заголовок секции */
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Фиксированный радиальный градиент: в центре сверху чуть светлее/желтее, к краям черный */
    background: radial-gradient(circle at 50% 20%, #1c1a16 0%, #050505 80%) no-repeat fixed !important;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

body {
    /* overflow-x: hidden убран - он ломал position: sticky.
       Используем overflow-x: clip - современный аналог, который не создаёт scroll context
       и не ломает sticky-позиционирование. Поддерживается всеми современными браузерами. */
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

/* Дополнительная защита всех прямых потомков body от выхода за экран */
body > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* 2. Делаем все секции прозрачными, чтобы видеть фон body */
section,
.interiors-section,
.specs-foggy-vineyard,
.unified-dark-section {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
}

/* 2b. Защита от горизонтального скролла без использования overflow-x:hidden
       (overflow-x:hidden ломал бы position: sticky у галереи) */
section, header, footer, nav {
    max-width: 100vw;
}

/* 3. Убираем специфические фоновые картинки и слои затемнения, которые мешают */
/* Старая фоновая картинка из specs больше не используется (перенесена в details) */
.specs-bg-image {
    display: none !important;
}

/* 2. Навигация - Фиксируем и центрируем */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    z-index: 9999;
}

.logo { font-weight: 800; letter-spacing: 1px; font-size: 1.1rem; }

.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-links a {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

/* Подчеркивание темно-желтым при наведении (не применяется к кнопке) */
.nav-links a:not(.btn-contact-nav)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #b8941f; /* Темно-желтый */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links a:not(.btn-contact-nav):hover {
    color: #fff;
}

.nav-links a:not(.btn-contact-nav):hover::after {
    width: 100%;
}

.btn-contact-nav {
    background: #fff;
    color: #000 !important;
    padding: 10px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.4;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* Подпрыгивание + золотое свечение кнопки Связаться */
.btn-contact-nav:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5),
    0 0 20px rgba(212, 175, 55, 0.3),
    0 0 0 2px rgba(212, 175, 55, 0.4);
}

.btn-contact-nav:active {
    transform: translateY(-2px);
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ / БУРГЕР
   ============================================ */

/* Кнопка-бургер (по умолчанию скрыта, показывается только на мобильных) */
.mobile-burger {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 28px;
    cursor: pointer;
    position: relative;
    z-index: 10001;
}

.mobile-burger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-burger span:nth-child(1) { top: 6px; }
.mobile-burger span:nth-child(2) { top: 13px; }
.mobile-burger span:nth-child(3) { top: 20px; }

/* Крестик при активном состоянии */
.mobile-burger.active span:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
    background: #d4af37;
}
.mobile-burger.active span:nth-child(2) {
    opacity: 0;
}
.mobile-burger.active span:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
    background: #d4af37;
}

/* Выдвижное мобильное меню (по умолчанию скрыто) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 80px 30px 40px;
    z-index: 10000;
    /* Используем transform вместо right:-100% -
       transform не создаёт overflow и не расширяет scrollable-область страницы */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

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

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-menu a:not(.btn-contact-nav)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #b8941f;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.mobile-menu a:not(.btn-contact-nav):hover {
    color: #d4af37;
}

.mobile-menu a:not(.btn-contact-nav):hover::after {
    width: 100%;
}

.mobile-menu .btn-contact-nav {
    margin-top: 20px;
    padding: 14px 36px;
    font-size: 12px;
}

/* Затемняющий оверлей под меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    z-index: 9999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}

.hero-premium {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000; /* Фон, пока грузится фото */
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполнит всё пространство без искажений */
    object-position: center;
    transform: scale(1.05); /* Небольшой запас для мягкости */
}

/* Градиентное затемнение в стиле Apple TV+ */
.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.4) 35%,
    rgba(0,0,0,0.7) 70%,
    rgba(5,5,5,0.95) 90%,
    #050505 100%);
    z-index: 2;
}

/* Дополнительный слой в самом низу Hero для бесшовного перехода в следующий блок */
.hero-premium::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    background: linear-gradient(to bottom,
    rgba(5, 5, 5, 0) 0%,
    rgba(5, 5, 5, 0.5) 40%,
    rgba(5, 5, 5, 0.9) 75%,
    #050505 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Обновим золотой текст, чтобы он "горел" на фоне фото */
.gold-text {
    background: linear-gradient(180deg, #fff 20%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* Увеличенный подзаголовок */
.apple-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em; /* Тот самый "киношный" эффект */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* Заголовок на русском */
.apple-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

/* Карточки с характеристиками */
.bento-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    perspective: 1000px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-15px) rotateX(10deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stat-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
    color: var(--gold);
    transition: 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--gold));
}

.stat-info { display: flex; align-items: baseline; gap: 4px; }
.stat-info .num { font-size: 1.2rem; font-weight: 700; color: #fff; }
.stat-info .unit { font-size: 0.8rem; color: #a1a1a6; }

/* Кнопка без мерцания */
.apple-btn-luxury {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 24px 60px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;

    /* Исправляем мерцание */
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translateZ(0);

    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.apple-btn-luxury:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2), 0 0 20px rgba(212, 175, 55, 0.3);
    background-color: #fdfdfd;
}

.apple-btn-luxury:active {
    transform: translateY(-2px) scale(0.98);
}

/* Новые горизонтальные карточки (Pills) */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 28px;
    border-radius: 100px;
    transition: all 0.4s ease;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-pill span {
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
}

.stat-pill b {
    color: var(--gold);
    font-weight: 700;
}

/* Старая (зачёркнутая) цена в пилюле со стоимостью */
.price-old {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
    text-decoration-color: rgba(212, 175, 55, 0.6);
    text-decoration-thickness: 1.5px;
    font-weight: 500;
    margin-right: 4px;
    font-size: 0.95em;
}

/* Иконки через CSS (чтобы не грузить картинки) */
.stat-pill i {
    width: 20px;
    height: 20px;
    background: var(--gold);
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}
/* Пример как подставить иконку (можете заменить на свои пути) */
.icon-area { -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5IDNoLTh2Mmg4djE0SDV2LThIM3Y4YzAgMS4xLjkgMiAyIDJoMTRjMS4xIDAgMi0uOSAyLTJWNWMwLTEuMS0uOS0yLTItMnpNMyA1aDJ2MmgtMlY1em0wIDRoMnYyaC0yVjl6bTAgNGgydjJoLTJ2LTJ6bTQgMGgydjJoLTJ2LTJ6bTQgMGgydjJoLTJ2LTJ6bTQgMGgydjJoLTJ2LTJ6bTQtNGgydjJoLTJ2LTJ6bTAtNGgydjJoLTJ2LTJ6bS04IDRoMnYyaC0yVjl6bTAgNGgydjJoLTJ2LTJ6bS00IDBoMnYyaC0yVjl6bS00IDBoMnYyaC0yVjl6Ii8+PC9zdmc+'); }

.pill-icon {
    width: 20px;
    height: 20px;
    color: var(--gold); /* Используем вашу переменную золотого цвета */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.stat-pill:hover .pill-icon {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 0 5px var(--gold));
}

/* На всякий случай убедимся, что pill-icon не ломает строку */
.stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apple-btn-luxury {
    /* ... ваши старые стили ... */
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0); /* Создает новый слой рендеринга */
}

.apple-btn-luxury span {
    /* Если текст внутри в теге span, зафиксируем его */
    display: inline-block;
    will-change: transform;
}

/* 5. Video Block - Фикс центрирования */
.video-luxury-section {
    padding: 150px 5%;
    background: transparent !important; /* Было #000, это создавало шов */
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Плавное затемнение в чёрный внизу видео-блока для мягкого перехода в ОБЗОР ОБЪЕКТА */
.video-luxury-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 250px;
    background: linear-gradient(to bottom,
    rgba(5, 5, 5, 0) 0%,
    rgba(5, 5, 5, 0.5) 50%,
    #000 100%);
    z-index: 0;
    pointer-events: none;
}

.video-text-center .label {
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

.title-light {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 60px;
}

.video-theatre-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.video-frame-modern {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 40px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 50px 100px rgba(0,0,0,0.9);
}

.video-frame-modern iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* Все адаптивные стили находятся в конце файла единым блоком */



/* Блок с приемуществами */

.bento-section {
    padding: 100px 5%;
    background: transparent !important;
    position: relative;
}

/* Тёмная "шапка" сверху блока Локация для бесшовного перехода из Hero */
.bento-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom,
    #050505 0%,
    rgba(5, 5, 5, 0.95) 30%,
    rgba(5, 5, 5, 0.6) 65%,
    transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Поднимаем контент блока над затемнением */
.bento-section > * {
    position: relative;
    z-index: 1;
}

/* Центрируем заголовок */
.bento-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.bento-header-center .label {
    display: block;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.bento-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
}

/* Сетка */
.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 320px 320px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 30px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.bento-img-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.bento-img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Затемняем, чтобы текст читался */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover .bento-img-container img {
    transform: scale(1.08);
    opacity: 0.7;
}

.bento-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.bento-content {
    position: relative;
    z-index: 5;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Выравнивание нижнего ряда */
.bento-row {
    display: flex;
    gap: 20px;
    grid-column: 2; /* Занимает правую колонку */
}

.bento-item.big { grid-row: span 2; }
.bento-item.medium { grid-column: 2; }

/* Широкий блок на всю ширину сетки (например, Термальные курорты) */
.bento-item.wide {
    grid-column: 1 / -1;
    min-height: 280px;
}

.bento-content h3 { font-size: 1.4rem; margin-bottom: 8px; }
.bento-content p { color: #a1a1a6; font-size: 0.95rem; line-height: 1.4; }

.gold-glow { border-color: rgba(212, 175, 55, 0.3); }

.bento-tag {
    background: #ffcc00; /* Яркий желтый Apple-стиль */
    color: #000;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
    text-transform: lowercase; /* как на твоем скриншоте */
}

/* Фикс для одинакового уровня нижних блоков */
.bento-row {
    display: flex;
    gap: 20px;
    grid-column: 2;
    height: 100%; /* Растягиваем на всю высоту сетки */
}

.bento-item.small {
    flex: 1;
    min-height: 320px; /* Фиксируем высоту, чтобы они были вровень */
}




.interiors-section {
    padding: 150px 5%;
    position: relative;
    /* Убираем все фоны самого контейнера */
    background: transparent !important;
    /* Убираем лишние отступы, которые могут оголять фон body */
    margin-top: -1px;
    margin-bottom: -1px;
    z-index: 5;
}

.interiors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Плавный переход: прозрачный вверху -> кофейный в середине -> медленно угасает в самом низу */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,              /* Полная прозрачность сверху */
        rgba(45, 40, 30, 0.5) 20%,        /* Постепенное появление */
        rgba(45, 40, 30, 0.8) 45%,        /* Пик кофейного в середине */
        rgba(45, 40, 30, 0.8) 55%,        /* Держим цвет */
        rgba(30, 26, 20, 0.5) 80%,        /* Начинаем плавно угасать */
        rgba(15, 13, 10, 0.2) 92%,        /* Почти черный, почти прозрачный */
        rgba(0, 0, 0, 0) 100%             /* Полная прозрачность в самом низу */
    ) !important;
    z-index: -1;
}

/* Светящееся пятно для объема (как фонарик за текстом) */
.interiors-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.12) 0%,
        transparent 70%
    );
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

/* Поднимаем контент над градиентом */
.interiors-grid {
    position: relative;
    z-index: 2;
}

/* ============================================
   УНИФИЦИРОВАННЫЕ ЗАГОЛОВКИ И ЛЕЙБЛЫ
   Стиль-эталон: "ИНТЕРЬЕР" + "Пространство для / жизни и творчества"
   ============================================ */

/* Все мелкие золотые лейблы над заголовками */
.section-label,
.block-label,
.label-gold,
.bento-header-center .label,
.video-text-center .label {
    display: block;
    color: #d4af37 !important;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Исключение для "Характеристики" - раньше был серым (dark-label),
   теперь тоже золотой, чтобы всё было в едином стиле */
.section-label.dark-label {
    color: #d4af37 !important;
}

/* Все крупные заголовки секций - единый стиль */
.apple-title-small,
.bento-title,
.title-light,
.title-medium-apple,
.main-headline {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

/* Вторая (акцентная) часть заголовка - градиент белый -> золотой */
.apple-title-small .gold-text,
.bento-title .gold-text,
.title-medium-apple .gold-text,
.main-headline span {
    background: linear-gradient(180deg, #fff 20%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    font-weight: 800;
}

/* Старые определения оставлены ниже для совместимости */
/* .apple-title-small - стили заданы в унифицирующем блоке выше */

.description-text {
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 450px;
}

/* Список */
.f-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
}
.f-item span {
    color: #d4af37;
    font-size: 0.7rem;
    border: 1px solid rgba(212,175,55,0.4);
    padding: 3px 8px;
    border-radius: 5px;
    margin-right: 15px;
}

/* СЕТКА И КАРТИНКИ */
/* Увеличиваем сетку, даем больше места картинкам */
.interiors-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Тексту чуть меньше, картинкам больше */
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.interiors-visual {
    position: relative;
    height: 600px; /* Фиксируем высоту для контроля композиции */
    display: flex;
    align-items: center;
}

/* Главное центральное фото */
.main-frame {
    width: 75%;
    height: 80%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    z-index: 2;
}
.main-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Общий стиль для парящих фото */
.floating-frame {
    position: absolute;
    overflow: hidden;
    border: 8px solid #131210;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    z-index: 3;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Второе фото (справа внизу) */
.floating-frame.secondary {
    width: 45%;
    aspect-ratio: 1/1;
    bottom: 0;
    right: 0;
    border-radius: 30px;
}

/* Картинки внутри парящих рамок - заполняют рамку без чрезмерного зума */
.floating-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Третье фото (слева вверху, залетает за основной кадр) */
.floating-frame.extra {
    width: 35%;
    aspect-ratio: 4/3;
    top: 0;
    left: -10%;
    border-radius: 20px;
    z-index: 1; /* Уходит на задний план */
    opacity: 0.8;
}

/* ИНТЕРАКТИВ: Движение всей группы при наведении */
.interiors-visual:hover .floating-frame.secondary {
    transform: translate(-15px, -15px) scale(1.05);
}

.interiors-visual:hover .floating-frame.extra {
    transform: translate(20px, 20px) scale(0.95);
    opacity: 1;
}

.interiors-visual:hover .main-frame {
    transform: scale(1.01);
}









.specs-foggy-vineyard {
    /* Эта секция теперь просто прозрачное окно над фоном body */
    background: transparent !important;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* 1. Видео-фон на всю ширину секции */
.specs-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.specs-bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Затемнение поверх видео, чтобы текст и карточки читались */
.specs-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* 1b. Старая настройка фоновой картинки (оставлена для совместимости, не используется) */
.specs-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.15) contrast(1.1) grayscale(0.6);
    z-index: 0;
}

/* 2. Плавные переходы в черный сверху и снизу */
.specs-fade-top, .specs-fade-bottom {
    position: absolute;
    left: 0; width: 100%;
    z-index: 2; /* Выше video-overlay (z=1), чтобы fade был поверх видео */
    pointer-events: none;
}

.specs-fade-top {
    top: 0;
    height: 300px;
    background: linear-gradient(to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.4) 75%,
    transparent 100%);
}

.specs-fade-bottom {
    bottom: 0;
    height: 350px;
    background: linear-gradient(to top,
    #000 0%,
    rgba(0, 0, 0, 0.95) 25%,
    rgba(0, 0, 0, 0.6) 60%,
    transparent 100%);
}

/* 3. Поднимаем контент над туманом */
.relative-content {
    position: relative;
    z-index: 3; /* Выше fade-слоёв (z=2) и overlay (z=1) */
}

/* 4. Исправляем заголовок */
.specs-header-v5 {
    text-align: center;
    margin-bottom: 90px;
}

.dark-label {
    color: #86868b !important; /* Серый для светлого фона */
}

.title-medium-apple {
    /* Базовые стили заданы в унифицирующем блоке выше.
       Здесь только специфичный для этого класса отступ сверху */
    margin-top: 15px;
}

/* 5. ПОДСВЕТКА КАРТОЧЕК */
.specs-grid-v5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Универсальное центрирование последнего элемента если он один в последнем ряду.
   Правила работают только на десктопе, где specs-grid-v5 имеет 3 колонки.
   На планшетах (2 колонки) и мобильных (1 колонка) правила не должны срабатывать -
   иначе карточки сдвигаются в несуществующие колонки и создают горизонтальный скролл. */
@media (min-width: 1025px) {
    /* При 3 колонках: N=7,10,13... → последний один → сдвигаем в центр (колонка 2) */
    .specs-grid-v5 .feature-glowing-card:last-child:nth-child(3n+1) {
        grid-column: 2;
    }

    /* Если в последнем ряду два элемента (N=8,11,14...) - центрируем пару */
    .specs-grid-v5 .feature-glowing-card:last-child:nth-child(3n+2) {
        grid-column: 3;
    }
    .specs-grid-v5 .feature-glowing-card:nth-last-child(2):nth-child(3n+1) {
        grid-column: 2;
    }
}

.feature-glowing-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.03); /* Матовое стекло */
    border: 1px solid rgba(212, 175, 55, 0.1); /* Тонкая золотая рамка */
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Мягкая золотая подсветка по умолчанию */
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(10px);
}

.feature-glowing-card:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-8px);
    /* Усиливаем свечение при наведении */
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

/* 6. Тексты внутри карточек */
.card-icon-modern {
    font-size: 24px;
    filter: brightness(1.2) grayscale(1);
    opacity: 0.8;
}

.value-text {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.desc-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* 7. ПОДСВЕТКА КНОПКИ */
.specs-action-v5 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.btn-glowing-gold {
    background: #d4af37;
    color: #000;
    padding: 22px 45px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Кнопка тоже светится */
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.btn-glowing-gold:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.6);
    background: #e1bd4d; /* Чуть ярче при наведении */
}

/* Вторичная кнопка - "Скачать технический паспорт" (outline-стиль) */
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 36px;
    border-radius: 40px;
    background: transparent;
    color: #d4af37;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-download-pdf svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-download-pdf:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: #d4af37;
    color: #e1bd4d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.btn-download-pdf:hover svg {
    transform: translateY(3px);
}

/* На мобильных - кнопки в колонку, одинаковая ширина */
@media (max-width: 768px) {
    .specs-action-v5 { flex-direction: column; gap: 14px; }
    .btn-download-pdf {
        width: 100%;
        justify-content: center;
        padding: 18px 20px;
        /* Группа "иконка + текст" не должна растягиваться на всю ширину */
        gap: 8px;
    }
    .btn-download-pdf span {
        text-align: center;
        flex: 0 1 auto; /* Текст сам по себе, не занимает лишнее место */
    }
    .btn-download-pdf svg {
        flex-shrink: 0;
    }
}





.final-cta {
    padding: 140px 0;
    background: #000;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-subtext {
    color: #86868b;
    font-size: 1.2rem;
    margin: 20px 0 50px;
    line-height: 1.5;
}

/* Стили формы в стиле Apple */
.apple-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
    margin-bottom: 20px;
}

.apple-form input {
    width: 100%;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    /* Едва заметная золотая подсветка по умолчанию (как у кнопки) */
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.05);
}

.apple-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.apple-form input:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.15);
}

.apple-form input:focus {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
    /* Усиленная золотая подсветка при фокусе - как у btn-glowing-gold */
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4),
    0 0 0 3px rgba(212, 175, 55, 0.15);
}

.apple-form input:focus::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.main-footer {
    background: #000;
    padding: 100px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.footer-container {
    max-width: 1200px; /* Чтобы контент не разъезжался на весь экран */
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: #86868b;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37; /* Золотой акцент для заголовков */
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-column a {
    display: block;
    width: fit-content;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

/* Подчеркивание при наведении */
.footer-column a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: #d4af37;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.footer-column a:hover {
    opacity: 1;
    color: #d4af37;
    transform: translateX(5px);
}

.footer-column a:hover::after {
    width: calc(100% - 5px);
}

/* Подчеркивание для соц-сетей в футере */
.footer-socials a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 3px;
}

.footer-socials a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: #d4af37;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.footer-socials a:hover {
    color: #d4af37;
}

.footer-socials a:hover::after {
    width: 100%;
}

/* Нижняя полоса */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 20px;
}

.copyright {
    color: #424245;
    font-size: 0.9rem;
    flex: 1; /* Даём "вес" левой части, чтобы центр не смещался */
}

.footer-socials {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex: 1; /* Центральная часть */
}

/* Блок "Design by star" - справа */
.footer-design-by {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.footer-design-by span {
    color: #424245;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-design-by a {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.7;
}

.footer-design-by a:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-design-by img {
    height: 26px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Адаптив для футера находится в общем блоке адаптива в конце файла */






/* Галерея / ОБЗОР ОБЪЕКТА */
.luxury-details-block {
    background: transparent;
    padding: 100px 0;
    color: #fff;
    position: relative;
    /* overflow: hidden убран - он ломал position: sticky у галереи */
}

/* Параллакс-картинка на фоне секции ОБЗОР ОБЪЕКТА */
.details-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.2) contrast(1.1) grayscale(0.6);
    z-index: 0;
}

/* Плавные переходы в черный сверху и снизу */
.details-fade-top,
.details-fade-bottom {
    position: absolute;
    left: 0; width: 100%;
    z-index: 1;
    pointer-events: none;
}

.details-fade-top {
    top: 0;
    height: 350px;
    background: linear-gradient(to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.9) 30%,
    rgba(0, 0, 0, 0.5) 65%,
    transparent 100%);
}

.details-fade-bottom {
    bottom: 0;
    height: 250px;
    background: linear-gradient(to top,
    #000 0%,
    rgba(0, 0, 0, 0.7) 50%,
    transparent 100%);
}

/* Поднимаем основной контейнер блока над фоном */
.luxury-details-block .container-custom {
    position: relative;
    z-index: 2;
}

.container-custom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Галерея (слева) чуть шире текста (справа) */
    gap: 80px;
    align-items: start;
}

/* ТЕКСТОВАЯ ЧАСТЬ */
.block-label {
    /* Стили заданы в унифицирующем блоке выше */
}

.main-headline {
    /* Базовые стили заданы в унифицирующем блоке выше.
       Специфичный для этого класса увеличенный нижний отступ */
    margin-bottom: 50px;
}

.main-headline span {
    background: linear-gradient(180deg, #fff 20%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    font-weight: 800;
}

/* АККОРДЕОН */
.modern-accordion { border-top: 1px solid rgba(255,255,255,0.1); }
.acc-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.acc-trigger {
    display: flex; justify-content: space-between; padding: 30px 0;
    cursor: pointer; align-items: center;
}
.acc-trigger span { font-size: 1.2rem; font-weight: 600; text-transform: uppercase; }
.acc-icon { width: 16px; height: 16px; position: relative; }
.acc-icon::before, .acc-icon::after {
    content: ''; position: absolute; background: #d4af37; transition: 0.3s;
}
.acc-icon::before { width: 100%; height: 2px; top: 7px; }
.acc-icon::after { width: 2px; height: 100%; left: 7px; }

.acc-panel { max-height: 0; overflow: hidden; transition: 0.5s ease-out; }
.acc-item.active .acc-panel { max-height: 300px; padding-bottom: 30px; }
.acc-item.active .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-item.active .acc-trigger span { color: #d4af37; }
.acc-panel p { color: #a1a1a6; line-height: 1.6; font-size: 1.1rem; }

/* ГАЛЕРЕЯ */
.sticky-element {
    position: sticky;
    top: 100px;
    align-self: start; /* Важно для grid: не растягивать до высоты соседа */
}
.apple-gallery-grid { display: flex; gap: 20px; height: 600px; }

/* Скрытые ссылки на дополнительные фото - открываются через "+35 фото".
   Используем width:0 + position:absolute чтобы lightGallery их обнаружил, но визуально не видно */
.gallery-hidden {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.main-img-wrapper { flex: 2; border-radius: 24px; overflow: hidden; cursor: pointer; }
.sub-images-col { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.sub-img-wrapper { flex: 1; border-radius: 20px; overflow: hidden; position: relative; cursor: pointer; }
.apple-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.apple-gallery-grid img:hover { transform: scale(1.05); }

.photo-badge {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px); display: flex; justify-content: center;
    align-items: center; color: #fff; font-weight: 700; font-size: 1.2rem;
}

/* Адаптив split-layout — в общем блоке адаптива в конце файла */







/* ЖЕСТКОЕ ОБНУЛЕНИЕ ФОНА ИНТЕРЬЕРОВ */
section#interiors.interiors-section {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    /* Убираем возможные отступы, которые могут оголять подложку */
    margin: 0 !important;
    padding-top: 150px !important;
    padding-bottom: 150px !important;
}

/* На всякий случай проверяем контейнер внутри */
section#interiors.interiors-section .container {
    background: transparent !important;
}




/* ============================================
   АДАПТИВ — ПЛАНШЕТЫ И МОБИЛЬНЫЕ
   ============================================ */

/* --------- ПЛАНШЕТЫ (до 1024px) --------- */
@media (max-width: 1024px) {
    /* Навигация */
    .glass-nav {
        padding: 10px 20px;
        width: 94%;
    }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 11px; }

    /* Hero */
    .hero-premium { height: 90vh; }
    .apple-subtitle { font-size: 1rem; margin-bottom: 40px; }
    .hero-stats-row { gap: 15px; flex-wrap: wrap; margin-bottom: 50px; }
    .stat-pill { padding: 10px 22px; }
    .stat-pill span { font-size: 0.95rem; }
    .apple-btn-luxury { padding: 20px 50px; font-size: 16px; }

    /* Локация - Bento */
    .bento-section { padding: 80px 5%; }
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 280px;
        gap: 15px;
    }

    /* Интерьер */
    .interiors-section { padding: 100px 5%; }
    section#interiors.interiors-section {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
    .interiors-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .interiors-visual {
        height: 500px;
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }
    .floating-frame.extra { left: 0; }
    .apple-title-small { font-size: 2.8rem; }

    /* Видео */
    .video-luxury-section { padding: 100px 5%; }

    /* ОБЗОР ОБЪЕКТА / split-layout */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .sticky-element { position: relative; top: 0; }
    .apple-gallery-grid { height: 500px; }
    .container-custom { padding: 0 30px; }
    .main-headline { font-size: 2.8rem; }

    /* Характеристики */
    .specs-grid-v5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    /* Сбрасываем центрирование от десктопных правил - на планшетах 2 колонки */
    .specs-grid-v5 .feature-glowing-card {
        grid-column: auto !important;
    }
    .feature-glowing-card { padding: 28px 20px; }
    .value-text { font-size: 1.4rem; }

    /* Форма */
    .final-cta { padding: 100px 0; }

    /* Футер */
    .footer-nav { gap: 50px; }
    .footer-container { padding: 0 30px; }
}


/* Центрирование одинокой последней карточки в Характеристиках - ТОЛЬКО для настоящих планшетов.
   Не применяется на мобильных (<=768px), где карточки в 1 колонку */
@media (min-width: 769px) and (max-width: 1024px) {
    .specs-grid-v5 .feature-glowing-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        max-width: calc(50% - 10px);
        justify-self: center;
    }
}


/* --------- БОЛЬШИЕ ТЕЛЕФОНЫ / МАЛЫЕ ПЛАНШЕТЫ (до 768px) --------- */
@media (max-width: 768px) {
    /* На мобильных sticky-галерея в блоке ОБЗОР ОБЪЕКТА не используется
       (там уже .sticky-element { position: relative; top: 0 }),
       поэтому можем жёстко отрезать горизонтальное переполнение */
    html, body {
        overflow-x: hidden !important;
    }

    /* Навигация: скрываем обычное меню полностью, показываем бургер */
    .nav-links { display: none; }
    .mobile-burger { display: block; }
    .glass-nav {
        padding: 10px 20px;
        top: 15px;
        width: 94%;
    }
    .logo { font-size: 1rem; }

    /* Hero */
    .hero-premium { height: 100vh; min-height: 600px; }
    .apple-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .apple-subtitle {
        font-size: 0.8rem;
        margin-bottom: 35px;
        padding: 0 20px;
        letter-spacing: 0.1em;
    }
    .hero-stats-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    .stat-pill {
        padding: 10px 20px;
        width: fit-content;
    }
    .stat-pill span { font-size: 0.9rem; }
    .apple-btn-luxury {
        padding: 18px 40px;
        font-size: 15px;
    }

    /* Локация - Bento - все в колонку */
    .bento-section { padding: 60px 5%; }
    .bento-header-center { margin-bottom: 40px; }
    .bento-title { font-size: clamp(1.8rem, 6vw, 2.3rem); }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 15px;
    }
    .bento-item.big,
    .bento-item.medium,
    .bento-item.small,
    .bento-item.wide {
        grid-row: auto;
        grid-column: 1;
        min-height: 240px;
    }
    .bento-row {
        grid-column: 1;
        flex-direction: column;
        height: auto;
    }
    .bento-content { padding: 22px; }
    .bento-content h3 { font-size: 1.2rem; }

    /* Интерьер */
    section#interiors.interiors-section {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
    .interiors-grid { gap: 40px; }
    .apple-title-small { font-size: 2.1rem; }
    .description-text { font-size: 0.95rem; }

    /* На мобильных оставляем только одно главное фото, остальные скрываем.
       Фото обрезается под формат мобильного экрана (4:5 - вертикальное). */
    .interiors-visual {
        position: relative;
        height: auto;
        display: block;
    }
    .main-frame {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }
    .main-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .floating-frame.secondary,
    .floating-frame.extra {
        display: none;
    }
    /* Отключаем hover-эффекты на мобильных */
    .interiors-visual:hover .main-frame {
        transform: none;
    }

    /* Видео */
    .video-luxury-section { padding: 70px 4%; }
    .title-light {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
        margin-bottom: 40px;
    }
    .video-frame-modern { border-radius: 24px; }

    /* ОБЗОР ОБЪЕКТА */
    .luxury-details-block { padding: 70px 0; }
    .container-custom { padding: 0 20px; }
    .split-layout { gap: 40px; }
    .apple-gallery-grid { height: 360px; gap: 12px; }
    .main-img-wrapper { border-radius: 18px; }
    .sub-images-col { gap: 12px; }
    .sub-img-wrapper { border-radius: 14px; }
    .main-headline { font-size: 2.1rem; margin-bottom: 35px; }
    .acc-trigger { padding: 22px 0; }
    .acc-trigger span { font-size: 1rem; }
    .acc-panel p { font-size: 0.98rem; }
    .acc-item.active .acc-panel { max-height: 500px; padding-bottom: 22px; }

    /* Характеристики (с видео) */
    .specs-foggy-vineyard { padding: 80px 0; }
    .specs-header-v5 { margin-bottom: 50px; padding: 0 20px; }
    .title-medium-apple { font-size: clamp(1.8rem, 6vw, 2.3rem); }
    .specs-grid-v5 {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 20px;
    }
    /* Сбрасываем любое центрирование от десктопных правил - на мобильных 1 колонка */
    .specs-grid-v5 .feature-glowing-card {
        grid-column: auto !important;
    }
    .feature-glowing-card { padding: 24px 20px; }
    .value-text { font-size: 1.3rem; }
    .desc-text { font-size: 0.8rem; }
    .specs-action-v5 { margin-top: 50px; padding: 0 20px; }
    .btn-glowing-gold {
        padding: 18px 32px;
        font-size: 0.95rem;
        text-align: center;
    }

    /* Форма / CTA */
    .final-cta { padding: 70px 0; }
    .cta-content { padding: 0 20px; }
    .cta-subtext { font-size: 1rem; margin: 18px 0 35px; }
    .apple-form { padding: 28px 22px; border-radius: 22px; }
    .apple-form input { padding: 16px 20px; font-size: 0.95rem; }

    /* Футер */
    .main-footer { padding: 70px 0 40px; }
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        margin-bottom: 50px;
    }
    /* Центрируем логотип + название вместе с остальным содержимым футера */
    .footer-logo {
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }
    .footer-nav {
        flex-direction: column;
        gap: 40px;
    }
    .footer-column a {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    /* В центрированном футере отключаем сдвиг и подстраиваем подчеркивание */
    .footer-column a:hover { transform: none; }
    .footer-column a:hover::after { width: 100%; }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
    /* На мобильных сбрасываем flex:1 у частей footer-bottom и центрируем */
    .copyright,
    .footer-socials,
    .footer-design-by {
        flex: none;
        justify-content: center;
        width: 100%;
    }
    .footer-socials { flex-wrap: wrap; justify-content: center; gap: 20px; }
}


/* --------- МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px) --------- */
@media (max-width: 480px) {
    .glass-nav { padding: 7px 14px; }
    .logo { font-size: 0.9rem; letter-spacing: 0.5px; }
    .mobile-burger { width: 28px; height: 24px; }
    .mobile-burger span:nth-child(1) { top: 4px; }
    .mobile-burger span:nth-child(2) { top: 11px; }
    .mobile-burger span:nth-child(3) { top: 18px; }
    .mobile-burger.active span:nth-child(1),
    .mobile-burger.active span:nth-child(3) { top: 11px; }

    /* Hero */
    .apple-title { font-size: clamp(2rem, 11vw, 2.8rem); }
    .apple-subtitle { font-size: 0.72rem; margin-bottom: 30px; }
    .hero-stats-row { margin-bottom: 35px; gap: 8px; }
    .stat-pill { padding: 8px 16px; gap: 8px; }
    .stat-pill span { font-size: 0.85rem; }
    .pill-icon { width: 16px; height: 16px; }
    .apple-btn-luxury { padding: 16px 32px; font-size: 14px; }

    /* Секции — меньше боковых отступов */
    .bento-section,
    .video-luxury-section { padding-left: 4%; padding-right: 4%; }
    .bento-item.big,
    .bento-item.medium,
    .bento-item.small,
    .bento-item.wide { min-height: 220px; }
    .bento-content { padding: 18px; }
    .bento-content h3 { font-size: 1.1rem; }
    .bento-content p { font-size: 0.88rem; }

    /* Интерьер */
    .apple-title-small { font-size: 1.8rem; }

    /* ОБЗОР ОБЪЕКТА */
    .apple-gallery-grid { height: 300px; gap: 10px; }
    .sub-images-col { gap: 10px; }
    .main-headline { font-size: 1.8rem; margin-bottom: 30px; }
    .acc-trigger span { font-size: 0.92rem; }

    /* Характеристики */
    .feature-glowing-card {
        padding: 20px 16px;
        gap: 14px;
    }
    .card-icon-modern { font-size: 20px; }
    .value-text { font-size: 1.15rem; }

    /* Форма */
    .apple-form { padding: 22px 18px; }
    .cta-subtext { font-size: 0.95rem; }

    /* Футер */
    .footer-logo { font-size: 1.2rem; }
    .footer-tagline { font-size: 0.92rem; }
    .footer-socials { gap: 15px; }
    .footer-socials a { font-size: 0.85rem; }
}


/* --------- ОРИЕНТАЦИЯ: АЛЬБОМНАЯ НА ТЕЛЕФОНЕ --------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-premium { min-height: 500px; height: auto; padding: 80px 0 40px; }
    .hero-stats-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}


/* ============================================
   ИСПРАВЛЕНИЕ LIGHTGALLERY
   ============================================ */

/* Поднимаем галерею выше всего (шапка имеет z=9999, мобильное меню 10000-10001) */
.lg-backdrop,
.lg-outer,
.lg-container {
    z-index: 100000 !important;
}

/* Крестик закрытия - обеспечиваем видимость */
.lg-toolbar {
    z-index: 100001 !important;
    background: linear-gradient(rgba(0,0,0,0.6), transparent) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.lg-close,
.lg-counter,
.lg-download {
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
}

/* Принудительно рисуем крестик символом × если иконочный шрифт не подгрузился */
.lg-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important; /* скрываем оригинальный символ, если он есть */
    cursor: pointer !important;
}

.lg-close::before {
    content: '×' !important;
    font-size: 32px !important;
    line-height: 1 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-weight: 300 !important;
    display: block !important;
}

.lg-close:hover::before {
    color: #d4af37 !important;
}

.lg-close:hover {
    background: rgba(0, 0, 0, 0.85) !important;
    transform: scale(1.05);
}

/* Стрелки навигации */
.lg-actions .lg-next,
.lg-actions .lg-prev {
    z-index: 100001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important; /* скрываем оригинальный контент */
    cursor: pointer !important;
}

/* Явные стрелки через псевдоэлементы */
.lg-actions .lg-prev::before {
    content: '‹' !important;
    font-size: 36px !important;
    line-height: 1 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-weight: 300 !important;
    display: block !important;
    margin-top: -4px;
}

.lg-actions .lg-next::after {
    content: '›' !important;
    font-size: 36px !important;
    line-height: 1 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-weight: 300 !important;
    display: block !important;
    margin-top: -4px;
}

.lg-actions .lg-next:hover::after,
.lg-actions .lg-prev:hover::before {
    color: #d4af37 !important;
}

.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Подпись-счетчик */
.lg-sub-html {
    z-index: 100001 !important;
}

/* Нижняя панель с миниатюрами */
.lg-thumb-outer {
    z-index: 100001 !important;
}

/* Если наши глобальные правила "button" могут влиять - сбрасываем */
.lg-container button {
    padding: 0;
    background: transparent;
    border: none;
}


/* ============================================
   ПЛАВАЮЩАЯ КНОПКА БЫСТРОЙ СВЯЗИ
   ============================================ */

.quick-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.quick-contact-btn {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4),
    0 0 0 0 rgba(212, 175, 55, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
    animation: qc-blink 2.5s ease-in-out infinite;
}

@keyframes qc-blink {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4),
        0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6),
        0 0 0 14px rgba(212, 175, 55, 0);
    }
}

.qc-pulse {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.6);
    animation: qc-pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

@keyframes qc-pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

.qc-envelope {
    width: 28px;
    height: 28px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000;
}

.quick-contact-btn:hover {
    transform: scale(1.08);
    animation-play-state: paused;
}

.quick-contact-btn:hover .qc-envelope {
    transform: rotate(-12deg) scale(1.15);
}

.quick-contact-btn.active {
    animation-play-state: paused;
    transform: rotate(135deg);
    background: linear-gradient(135deg, #2a2a2a 0%, #0a0a0a 100%);
    color: #d4af37;
}

.quick-contact-btn.active .qc-envelope {
    color: #d4af37;
}

/* Выпадающее меню */
.quick-contact-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 16px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    order: -1; /* Меню сверху, кнопка снизу */
}

.quick-contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s;
}

.qc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.qc-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.qc-item:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(-3px);
    color: #d4af37;
}

.qc-item-wa svg { color: #25D366; }
.qc-item-tg svg { color: #229ED9; }
.qc-item-form svg { color: #d4af37; }

.qc-phone {
    text-align: center;
    color: #86868b;
    font-size: 0.85rem;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .quick-contact { bottom: 20px; right: 20px; }
    .quick-contact-btn { width: 56px; height: 56px; }
    .qc-envelope { width: 24px; height: 24px; }
    .quick-contact-menu { min-width: 220px; }
}


/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    z-index: 10100;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s;
}

.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 92%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #1a1815 0%, #0a0a0a 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 28px;
    padding: 50px 40px 40px;
    z-index: 10101;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0.4s;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(212, 175, 55, 0.15);
}

.modal-window.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    color: #d4af37;
    transform: rotate(90deg);
}

.modal-content {
    text-align: center;
}

.modal-content .label-gold {
    margin-bottom: 15px;
}

.modal-content .title-medium-apple {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content .cta-subtext {
    font-size: 1rem;
    margin: 10px 0 30px;
}

.modal-content .apple-form {
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
}

/* Сообщения о статусе формы */
.form-status {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: center;
}

.form-status.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

.form-status.loading {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

@media (max-width: 768px) {
    .modal-window { padding: 45px 25px 25px; border-radius: 22px; }
}


/* ============================================
   КАРТА (ЗАДАЧА 6)
   ============================================ */

.map-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.map-section iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.6) brightness(0.7) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-section:hover iframe {
    filter: grayscale(0.3) brightness(0.85) contrast(1.05);
}

.map-fade-top,
.map-fade-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 2;
    pointer-events: none;
}

.map-fade-top {
    top: 0;
    background: linear-gradient(to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.7) 40%,
    transparent 100%);
}

.map-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top,
    #000 0%,
    rgba(0, 0, 0, 0.7) 40%,
    transparent 100%);
}

.map-label {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    pointer-events: none;
}

.map-label .label-gold {
    display: block;
    margin-bottom: 8px;
}

.map-label h3 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .map-section { height: 380px; }
    .map-label { top: 25px; }
}


/* ============================================
   ЛОГОТИП В ШАПКЕ И ФУТЕРЕ (ЗАДАЧА 7)
   ============================================ */

.logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 32px !important;
    width: auto !important;
    max-width: 32px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-logo {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px !important;
    width: auto !important;
    max-width: 40px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .logo-img { height: 26px !important; max-width: 26px !important; }
    .footer-logo-img { height: 34px !important; max-width: 34px !important; }
}
