/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ========================================================================== */
:root {
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --accent-color: #1a1a1a; /* Черный для кнопок и акцентов */
    --transition: all 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Отступ под фиксированную шапку */
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 400; 
}

.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

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

/* Анимация появления */
.fade-in { animation: fadeIn 1.2s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   2. НАВИГАЦИЯ (ШАПКА)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 18px;
    color: #000000;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.nav-menu li a:hover { opacity: 0.6; }

/* ==========================================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO) - Фон на всю ширину
   ========================================================================== */
.hero {
    position: relative;
    background-image: url('action.png'); /* Убедитесь, что картинка лежит рядом */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Затемнение 40% */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(40px, 8vw, 72px);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text .pre-title {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    margin-bottom: 20px;
}

.hero-text .subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   4. КНОПКИ
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--bg-dark);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Динамическая кнопка (со сменой текста) */
.btn-dynamic {
    position: relative;
    overflow: hidden;
    min-width: 180px;
}
.hero-actions .btn-dynamic { width: 280px; }

.btn-dynamic span { width: 100%; text-align: center; display: block; }
.btn-dynamic:hover span { display: none; }

.btn-dynamic:hover::after {
    content: attr(data-hover);
    display: block;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   5. СЕКЦИИ И ТИПОГРАФИКА
   ========================================================================== */
.section { padding: 100px 0; }
.section-light { background: #f8f9fa; }
.section-dark { background-color: #000000; color: #F2F2F2; }

.section-dark h2 { color: #ffffff; }
.pre-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    margin-bottom: 20px;
    color: var(--text-muted);
}
.section-dark .pre-title { color: rgba(255, 255, 255, 0.6); }

/* Списки */
.list li, .trust-list li {
    padding: 12px 0;
    list-style: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.section-dark .list li, .section-dark .trust-list li {
    color: #b0b0b0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Акценты */
.accent-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    border-left: 2px solid var(--bg-dark);
    padding-left: 30px;
    margin-top: 40px;
}
.section-dark .accent-text { border-left-color: #ffffff; color: #ffffff; }

/* Список с проявлением (Философия) */
.list-centered {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
}
.list-centered li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}
.scroll-reveal.active li {
    opacity: 0.85;
    transform: translateY(0);
}
.list-centered li:nth-child(2) { transition-delay: 0.2s; }
.list-centered li:nth-child(3) { transition-delay: 0.4s; }

/* ==========================================================================
   6. ОБО МНЕ
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper { display: flex; justify-content: flex-start; }

.about-photo {
    width: 100%;
    max-width: 450px;
    border-radius: 2px;
    box-shadow: 20px 20px 0px 0px var(--accent-color);
    transition: var(--transition);
}
.about-photo:hover {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0px 0px var(--accent-color);
}
.last-paragraph { margin-top: 30px; }

/* ==========================================================================
   7. ВИДЕО ПРОМО
   ========================================================================== */
.video-grid { margin-top: 40px; display: flex; justify-content: center; }
.video-item {
    width: 100%;
    max-width: 780px;
    position: relative;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.video-item iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}
.video-section-container { position: relative; z-index: 10; }

/* Затемняющая подложка при наведении на видео */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 5;
    pointer-events: none;
}
body.video-active::after { opacity: 1; visibility: visible; }

/* ==========================================================================
   8. ГАЛЕРЕЯ (МОЗАИКА)
   ========================================================================== */
#gallery {
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
    margin-top: 50px;
}
.photo-item {
    position: relative;
    width: 100%; height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.photo-item.tall { grid-row: span 2; }
.photo-item.wide { grid-column: span 2; }

.photo-item img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease;
}
.photo-item:hover img, .photo-mosaic.is-visible .photo-item img {
    filter: grayscale(0%);
}
.photo-item:hover img { transform: scale(1.05); }

/* ==========================================================================
   9. ОТЗЫВЫ (ГОРИЗОНТАЛЬНАЯ СЕТКА)
   ========================================================================== */
.reviews-section-wrapper {
    padding: 80px 0;
    background: #ffffff;
    overflow-x: hidden;
}

.reviews-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: flex-start;
    padding-bottom: 40px;
}

.review-card {
    flex: 0 0 320px;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.review-visual-box {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}

.couple-img-layer, .screenshot-layer {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}

/* Фото пары (сразу цветное) */
.couple-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Скриншот (появляется при наведении) */
.screenshot-layer {
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #1a1a1a;
    z-index: 2;
}
.review-screenshot {
    width: 100%; height: 100%;
    object-fit: contain;
}

/* Текст отзывов */
.review-content-bottom, .review-footer-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 15px 0 0 0;
    color: #1a1a1a;
    transition: color 0.4s ease;
}

.hooks-inline-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}
.hook-word {
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
    transition: all 0.4s ease;
}

/* Эффекты при наведении на плашку отзыва */
.review-card:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-5px);
}
.review-card:hover .couple-img-layer { opacity: 0; }
.review-card:hover .screenshot-layer { opacity: 1; }
.review-card:hover .review-title { color: #ffffff; }
.review-card:hover .hook-word {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   10. КОНТАКТЫ И ФОРМА
   ========================================================================== */
#contact {
    scroll-margin-top: 80px;
    padding: 80px 0;
}

#contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0 30px;
}

.phone-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    transition: var(--transition);
}
.phone-link a:hover { opacity: 0.7; }

/* Форма */
.contact-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}
.contact-form input {
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: border 0.3s;
}
.contact-form input:focus { border-color: #ffffff; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Подвал */
.footer {
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.1);
}
.section-dark + .footer { border-top: 1px solid rgba(255,255,255,0.1); background: var(--bg-dark); }

/* ==========================================================================
   11. АДАПТИВ ДЛЯ МОБИЛЬНЫХ (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .section { padding: 50px 0; }
    h1, h2 { font-size: 32px; }

    /* Меню (скрыто, если не подключен JS бургер) */
    .nav-menu { display: none; }

    /* Hero */
    .hero { min-height: 60vh; padding: 40px 0; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn-dynamic {
        width: 100%;
        max-width: 280px;
    }

    /* Обо мне */
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { justify-content: center; padding-right: 20px; }
    .about-text { text-align: center; }
    .accent-text {
        border-left: none;
        border-top: 2px solid var(--accent-color);
        padding: 20px 0 0 0;
    }

    /* Галерея */
    .photo-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 10px;
    }
    .photo-item.wide { grid-column: span 2; }

    /* Отзывы */
    .reviews-grid {
        overflow-x: auto; /* Скролл пальцем по горизонтали */
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .review-card {
        scroll-snap-align: center; /* Карточки прилипают к центру при скролле */
    }

    /* Форма и контакты */
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }
    .contact-buttons .btn-dynamic { width: 100%; max-width: 280px; margin: 0 auto; }
    .form-row { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ФИЛОСОФИЯ: ЧЕРНЫЙ ФОН И БРОНЗОВЫЕ ПУНКТЫ
   ========================================================================== */

/* 1. Жестко возвращаем черный фон для всей секции Философия */
#philosophy, 
#philosophy .section-light {
    background-color: #1a1a1a !important; /* Глубокий графитово-черный (или #000000 для чисто черного) */
}

/* 2. Бронзовый цвет для текстов в пунктах (списках) */
#philosophy .trust-list li,
#philosophy .list-centered li {
    color: #C5A059 !important; /* Благородный бронзово-золотой оттенок */
    border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important; /* Легкая полупрозрачная бронзовая линия между пунктами */
}

/* При наведении на пункт он будет слегка подсвечиваться (эффект интерактива) */
#philosophy .trust-list li:hover,
#philosophy .list-centered li:hover {
    color: #dfb973 !important; /* Чуть более светлая бронза при наведении */
    border-bottom-color: rgba(197, 160, 89, 0.5) !important;
    transition: all 0.3s ease;
}

/* 3. Делаем заголовки внутри философии чисто белыми, чтобы был контраст с бронзой */
#philosophy h2 {
    color: #ffffff !important;
}

/* (По желанию) Бронзовый цвет для подзаголовков "Философия" и "Это про вас, если" */
#philosophy .pre-title {
    color: rgba(197, 160, 89, 0.8) !important;
}

/* ==========================================================================
   ГЛОБАЛЬНАЯ ТЕМНАЯ ТЕМА (PREMIUM DARK MODE)
   ========================================================================== */

/* 1. Заливаем основной фон сайта глубоким графитом и делаем текст светлым */
body, html {
    background-color: #1a1a1a !important; 
    color: #e0e0e0 !important; /* Мягкий светло-серый для комфортного чтения */
}

/* 2. Убираем белые и светло-серые фоны у всех остальных секций */
.section-light, 
#about, 
#promo, 
#gallery, 
.reviews-section-wrapper, 
#contact,
.footer {
    background-color: #1a1a1a !important;
}

/* 3. Все большие заголовки делаем кристально белыми */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* 4. Бронзовые акценты (применяем ко всем мелким заголовкам и линиям на сайте) */
.pre-title {
    color: rgba(197, 160, 89, 0.9) !important; /* Бронза */
}
.accent-text {
    border-left: 2px solid #C5A059 !important; /* Бронзовая линия в цитате "Обо мне" */
    color: #ffffff !important;
}

/* 5. Перекрашиваем шапку (меню) под темный стиль */
.navbar {
    background: rgba(26, 26, 26, 0.95) !important; /* Темный полупрозрачный фон */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.logo {
    color: #ffffff !important; /* Белый логотип */
}
.nav-menu li a {
    color: #e0e0e0 !important;
}
.nav-menu li a:hover {
    color: #C5A059 !important; /* При наведении ссылки в меню становятся бронзовыми */
}

/* 6. Настраиваем карточки отзывов, чтобы они не сливались с фоном */
.review-card {
    background: #242424 !important; /* Чуть светлее основного фона для объема */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.review-title {
    color: #ffffff !important;
}

/* 7. Универсальные кнопки (делаем прозрачными с белой рамкой) */
.btn {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}
.btn:hover {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-color: #ffffff !important;
}

/* 8. Линии в списках делаем едва заметными светлыми */
.list li, .trust-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #c0c0c0 !important;
}

/* ==========================================================================
   РАСКРЫВАЮЩИЕСЯ КАРТОЧКИ ОТЗЫВОВ (МОДАЛЬНОЕ ОКНО)
   ========================================================================== */

/* 1. Темный фон-подложка, который перекрывает весь сайт */
.review-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); /* Легкое размытие заднего фона */
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Когда карточка открыта, блокируем скролл сайта и показываем подложку */
body.modal-open { overflow: hidden; }
body.modal-open .review-overlay {
    opacity: 1;
    visibility: visible;
}

/* 2. Анимация выплывания */
@keyframes popupFloat {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(0.95); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 3. Состояние раскрытой карточки (она вырывается из сетки и встает по центру) */
.review-card.is-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2000;
    width: 90vw;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
    cursor: default;
    background: #1a1a1a !important; /* Поддерживаем темный стиль */
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border: 1px solid rgba(197, 160, 89, 0.4) !important; /* Бронзовая рамка */
    animation: popupFloat 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* 4. Внутренности раскрытой карточки */
.review-card.is-expanded .review-visual-box {
    height: 60vh !important; /* Увеличиваем высоту, чтобы скриншот был огромным */
    max-height: 500px;
    background: #1a1a1a;
}
.review-card.is-expanded .couple-img-layer {
    opacity: 0 !important; /* Прячем фото пары */
}
.review-card.is-expanded .screenshot-layer {
    opacity: 1 !important; /* Показываем скриншот на 100% */
    padding: 10px; 
}
.review-card.is-expanded .review-title {
    color: #C5A059 !important; /* Бронзовое имя пары при открытии */
    font-size: 1.6rem;
}

/* 5. Крестик закрытия (появляется только в открытой карточке) */
.review-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 2005;
    display: none;
    line-height: 1;
    transition: color 0.3s ease;
}
.review-card.is-expanded .review-close-btn {
    display: block;
}
.review-close-btn:hover {
    color: #C5A059; /* При наведении крестик становится бронзовым */
}


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

/* 1. Делаем главное фото на всю высоту экрана */
.hero {
    min-height: 100vh !important; /* 100vh — это 100% высоты экрана вашего устройства */
    background-position: center 20% !important; /* Чуть смещаем картинку вниз, чтобы лицо/голова не обрезались */
    padding-top: 80px !important; /* Отступ сверху под меню */
    display: flex;
    align-items: center; /* Текст на фото будет ровно по центру */
}

/* На мобильных устройствах фото тоже будет на весь экран */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh !important;
        /* На телефонах обычно нужно сместить фокус чуть иначе. 
           Если лицо обрезается, поменяйте 15% на 10% или 20% */
        background-position: center 15% !important; 
    }
}

/* 2. Опускаем блок "Философия" ниже */
#philosophy {
    padding-top: 150px !important; /* Даем много «воздуха» сверху, чтобы слово ушло вниз */
}

/* Убиваем старые отрицательные отступы, если они где-то остались */
.philosophy-header {
    margin-top: 0 !important; 
    margin-bottom: 50px !important;
}


/* ==========================================================================
   ФИЛОСОФИЯ: НА ГРАНИЦЕ ПЕРВОГО ЭКРАНА И ЭФФЕКТ "ВОЛНЫ"
   ========================================================================== */

/* 1. Убеждаемся, что главное фото занимает ровно 100% экрана */
.hero {
    min-height: 100vh !important;
}

/* 2. Поднимаем заголовок "Философия", чтобы он залез на первый экран */
#philosophy {
    padding-top: 0 !important; /* Убираем огромный отступ сверху */
}

.philosophy-header {
    margin-top: -80px !important; /* Отрицательный отступ затягивает слово наверх, поверх фото */
    position: relative;
    z-index: 20; /* Чтобы слово было точно поверх картинки */
    padding-bottom: 40px;
}

/* 3. Ключевые кадры для эффекта "Волны" */
@keyframes bronzeWave {
    0% { 
        color: #C5A059; 
        border-bottom-color: rgba(197, 160, 89, 0.2); 
        transform: translateX(0); 
    }
    30% { 
        color: #ffffff; /* Вспыхивает кристально белым (или ярким золотом) */
        border-bottom-color: #C5A059; 
        text-shadow: 0 0 15px rgba(197, 160, 89, 0.8); /* Бронзовое свечение */
        transform: translateX(15px); /* Текст слегка "выдвигается" вправо */
    }
    100% { 
        color: #C5A059; 
        border-bottom-color: rgba(197, 160, 89, 0.2); 
        transform: translateX(0); /* Возвращается на место */
    }
}

/* Убираем начальную прозрачность, так как скрипт теперь сделает всё сам */
#philosophy .trust-list li,
#philosophy .list-centered li {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.3s ease;
}

/* При наведении (после волны) эффект тоже должен работать */
#philosophy .trust-list li:hover,
#philosophy .list-centered li:hover {
    color: #ffffff !important;
    border-bottom-color: #C5A059 !important;
    transform: translateX(10px) !important;
}

/* ==========================================================================
   ОБРЕЗКА ФОТО И ТЕМНАЯ ПОЛОСА "ФИЛОСОФИЯ" ВНИЗУ ЭКРАНА
   ========================================================================== */

/* 1. Обрезаем главное фото снизу ровно на высоту полосы */
.hero {
    /* 100vh (весь экран) МИНУС 120 пикселей под темную полосу */
    min-height: calc(100vh - 110px) !important; 
    padding-top: 80px !important; 
    display: flex;
    align-items: center;
}

/* На мобильных полосу делаем чуть тоньше (90px) */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 90px) !important; 
    }
}

/* 2. Настраиваем саму темную полосу под фото */
#philosophy {
    padding-top: 0 !important;
    background-color: #1a1a1a !important; /* Глубокий темный фон сайта */
}

/* Блок со словом "Философия" теперь работает как подставка для фото */
.philosophy-header {
    margin-top: 0 !important; /* Убираем наезд текста на фото, который был раньше */
    height: 110px; /* Высота полосы (совпадает с тем, что отрезали от фото) */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем слово ровно посередине полосы по вертикали */
    align-items: center;     /* Центрируем по горизонтали */
    margin-bottom: 60px !important; /* Отступ до списков с "волной" */
}

/* Убираем лишние отступы у самого слова внутри полосы */
.philosophy-header .pre-title {
    margin-bottom: 0 !important;
    font-size: 13px !important; /* Чуть крупнее, раз это отдельный блок */
    letter-spacing: 4px !important;
}

@media (max-width: 768px) {
    .philosophy-header {
        height: 90px; /* Высота полосы на телефоне */
        margin-bottom: 40px !important;
    }
}

/* ==========================================================================
   КИНЕМАТОГРАФИЧНОЕ ПРОЯВЛЕНИЕ (БЛЮР) ПРИ ОТКРЫТИИ САЙТА
   ========================================================================== */

/* 1. Анимация для фона (фотографии) */
@keyframes heroBlurReveal {
    0% {
        filter: blur(30px); /* Сильное размытие в начале */
        opacity: 0.2;       /* Почти темнота */
    }
    100% {
        filter: blur(0px);  /* Полный фокус */
        opacity: 1;         /* Нормальная яркость */
    }
}

/* 2. Анимация для текста и кнопок поверх фото */
@keyframes contentBlurReveal {
    0% {
        filter: blur(20px);
        opacity: 0;
        transform: translateY(40px); /* Текст слегка опущен вниз */
    }
    100% {
        filter: blur(0px);
        opacity: 1;
        transform: translateY(0);    /* Текст встает на свое место */
    }
}

/* 3. Применяем анимацию к главному экрану (длится 6 секунд) */
.hero {
    animation: heroBlurReveal 6s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    overflow: hidden; /* Скрываем возможные блики по краям экрана */
}

/* 4. Применяем анимацию к тексту (длится 5 секунд, начинается с микро-задержкой) */
.hero-content {
    opacity: 0; /* Прячем текст до старта анимации */
    animation: contentBlurReveal 5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards !important;
}

/* 5. Делаем так, чтобы кнопки тоже плавно появлялись и не ломали эффект */
.hero-actions .btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
}

/* ==========================================================================
   ОТРИСОВКА ЛИНИЙ СЛЕВА НАПРАВО (ФИЛОСОФИЯ)
   ========================================================================== */

/* 1. Отключаем старую жесткую рамку */
#philosophy .trust-list li,
#philosophy .list-centered li {
    border-bottom: none !important; 
    position: relative;
    padding-bottom: 15px !important; /* Даем место для новой линии */
}

/* 2. Создаем "виртуальную" линию (изначально стянута в невидимую точку слева) */
#philosophy .trust-list li::after,
#philosophy .list-centered li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(197, 160, 89, 0.4); /* Приглушенная бронза */
    transform: scaleX(0); /* Сжимаем линию до 0% */
    transform-origin: left; /* Задаем точку роста: слева направо */
}

/* 3. Анимация плавного вытягивания линии */
@keyframes drawLine {
    0% { transform: scaleX(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* 4. Класс для запуска линии (задержка передается из скрипта) */
#philosophy li.draw-line::after {
    animation: drawLine 0.8s ease-out forwards var(--line-delay);
}

/* 5. Обновляем волну текста, чтобы убрать моргание старой рамки */
@keyframes bronzeWave {
    0% { color: #C5A059; transform: translateX(0); }
    30% { 
        color: #ffffff; 
        text-shadow: 0 0 15px rgba(197, 160, 89, 0.8); 
        transform: translateX(15px); 
    }
    100% { color: #C5A059; transform: translateX(0); }
}

/* 6. Красивый эффект линии при наведении мышкой (после того как волна прошла) */
#philosophy .trust-list li:hover::after,
#philosophy .list-centered li:hover::after {
    background-color: #C5A059 !important;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.6); /* Бронзовое свечение линии */
    height: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   СДВИГ ТЕКСТА ВНИЗ НА ГЛАВНОМ ЭКРАНЕ (ЧТОБЫ НЕ ПЕРЕКРЫВАТЬ ЛИЦО)
   ========================================================================== */

/* 1. Опускаем весь контент (текст и кнопки) вниз экрана */
.hero {
    align-items: flex-end !important; /* Вместо центра прижимаем текст к низу */
    padding-bottom: 10vh !important;  /* Делаем аккуратный отступ от нижней границы, чтобы текст "дышал" */
}

/* На мобильных устройствах отступ снизу делаем чуть меньше */
@media (max-width: 768px) {
    .hero {
        padding-bottom: 5vh !important; 
    }
}

/* 2. Прижимаем "Ведущий семейных событий" вплотную к имени */
.hero-text .pre-title {
    margin-top: 0 !important;      /* Убиваем все старые верхние отступы */
    margin-bottom: 0px !important;
    }
}
const banner = document.getElementById("cookie-banner");
const btn = document.getElementById("cookie-btn");

if(!localStorage.getItem("cookieAccepted")){
  banner.style.display = "block";
}

btn.onclick = function(){
  localStorage.setItem("cookieAccepted", "yes");
  banner.style.display = "none";
}

.checkbox-policy {
  display: block;
  font-size: 14px;
  margin: 15px 0;
  color: rgba(255,255,255,0.8);
}

.checkbox-policy a {
  color: #fff;
  text-decoration: underline;
}



.policy-modal{
  display:none;
  position:fixed;
  z-index:9999;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.7);
}

.policy-content{
  background:#111;
  color:#fff;
  max-width:600px;
  margin:10% auto;
  padding:40px;
  border-radius:10px;
  position:relative;
}

.close-policy{
  position:absolute;
  right:20px;
  top:15px;
  font-size:28px;
  cursor:pointer;
}


#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.85);
  color: #fff;
  padding: 15px 20px;
  text-align: center; /* текст по центру */
  font-size: 14px;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* текст сверху, кнопка снизу */
  align-items: center;
  gap: 10px; /* расстояние между текстом и кнопкой */
}

#cookie-banner a {
  color: #ffd700; /* цвет ссылки */
  text-decoration: underline;
}

#cookie-banner button {
  padding: 6px 14px;
  background-color: #ffd700;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}


.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* опускает весь контент вниз блока */
  height: 100%; /* заполняет весь блок hero */
  padding-bottom: 60px; /* дополнительное пространство от нижнего края */
}


/* Базовый стиль текста */
.hero-text h1 {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
}

/* Контейнер для анимации каждой буквы */
.hero-text h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-50px); /* старт слева, можно translateX(50px) для справа */
  filter: blur(6px);
  animation: flyIn 1s forwards;
}

/* Анимация появления букв */
@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translateX(var(--start, -50px));
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* Центрирование блока отзывов и карточек */
#reviews .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрирует весь контент контейнера */
  text-align: center;  /* Для заголовков и подписи */
}

/* Сетка карточек отзывов */
#reviews .reviews-grid {
  display: flex;
  flex-wrap: wrap;       /* Перенос карточек на новую строку при узком экране */
  justify-content: center; /* Выравнивание карточек по центру */
  gap: 30px;             /* Отступ между карточками */
  margin: 20px 0;        /* Отступ сверху/снизу блока карточек */
  width: 100%;
}

/* Карточки отзывов */
#reviews .review-card {
  width: 300px;           /* Можно регулировать под дизайн */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Контейнер с отзывами */
#reviews .container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Центрируем заголовки */
  text-align: center;
}

/* Сетка карточек отзывов */
#reviews .reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Авто-адаптивные колонки */
  gap: 30px;
  width: 100%;
  max-width: 960px; /* Можно подогнать под дизайн */
  margin-top: 20px;
}

/* Карточки отзывов */
#reviews .review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;       /* Цвет фона, если нужно */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#process {
  padding: 100px 20px;
  background: #fafafa;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 40px;
  margin-top: 50px;
}

.process-step {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.step-number {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #bfa16b;
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.process-step p {
  font-size: 14px;
  color: #666;
}


#process{
  padding:120px 20px;
  background:#0f0f0f;
  color:white;
  text-align:center;
}

.timeline{
  position:relative;
  max-width:700px;
  margin:80px auto 0;
}



.timeline-step{
  position:relative;
  margin-bottom:70px;
  opacity:0;
  transform:translateY(40px);
  transition:all .8s ease;
}

.timeline-step.show{
  opacity:1;
  transform:translateY(0);
}

.timeline-dot{
  width:14px;
  height:14px;
  background:#c8a96a;
  border-radius:50%;
  margin:0 auto 18px;
  position:relative;
}

.timeline-step h3{
  font-size:22px;
  margin-bottom:8px;
}

.timeline-step p{
  color:#bfbfbf;
  font-size:15px;
  max-width:420px;
  margin:0 auto;
}


.timeline-step:last-child h3{
color:#c8a96a;
}

.timeline{
  max-width:700px;
  margin:80px auto 0;
}

.timeline-step{
  text-align:center;
  margin-bottom:60px;
  opacity:0;
  transform:translateY(40px);
  transition:all .7s ease;
}

.timeline-step.show{
  opacity:1;
  transform:translateY(0);
}

.timeline-step h3{
  font-size:22px;
  margin-bottom:10px;
}

.timeline-step p{
  color:#bfbfbf;
  font-size:15px;
  max-width:420px;
  margin:0 auto 15px;
}

/* бронзовая нить */
.timeline-step::after{
  content:"";
  display:block;
  width:70px;
  height:2px;
  margin:18px auto 0;
  background:#c8a96a;
  position:relative;
  overflow:hidden;
}

/* блеск как в философии */
.timeline-step::after::before{
  content:"";
  position:absolute;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.9),
    transparent
  );
  animation:shine 2s infinite;
}

@keyframes shine{
  0%{left:-100%}
  100%{left:120%}
}

/* начальное состояние */
.timeline-step{
  text-align:center;
  margin-bottom:70px;
  opacity:0;
  transform:translateY(50px) scale(.97);
  filter:blur(6px);
  transition:all .9s cubic-bezier(.22,.61,.36,1);
}

/* когда элемент появился */
.timeline-step.show{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
}

/* бронзовая нить как в философии */
.timeline-step::after{
  content:"";
  display:block;
  width:70px;
  height:2px;
  margin:20px auto 0;
  background:#c8a96a;
  position:relative;
  overflow:hidden;
}

.timeline-step::before{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-1px;
  width:70px;
  height:2px;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.9),
    transparent
  );
  animation:shine 3s forwards;
}

@keyframes shine{
  0%{transform:translateX(-120%)}
  100%{transform:translateX(120%)}
}


.timeline-step::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: translateX(-100%);
  animation: shine 1.5s forwards;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
    opacity: 1;
  }
  80% {
    transform: translateX(100%);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0; /* исчезает */
  }
}




.timeline-step {
  position: relative;
  overflow: hidden; /* чтобы палочка исчезала за границей */
}

.timeline-step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -100%; /* старт за левым краем блока */
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: translateY(-50%);
  animation: shine 1.5s forwards;
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 1;
  }
  100% {
    left: 100%; /* выходит за правый край */
    opacity: 0;  /* исчезает */
  }
}


.hero-title {
  display: inline-block;
  font-size: 3rem;
  color: #fff;
  filter: blur(4px); /* начальный blur */
  overflow: hidden;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(50px); /* прилет с правого края */
}

/* Анимация прилёта */
@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

 8. ВИНТАЖНЫЙ ТЕЛЕВИЗОР
   ========================================================================== */
.vintage-tv-wrapper {
    display: flex; justify-content: center; margin-top: 120px;
    width: 100%; padding: 0 15px; 
}

.vintage-tv-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.vintage-tv {
    position: relative; width: 100%; max-width: 850px; 
    background: linear-gradient(135deg, #4a2e15, #2d1b0a); 
    padding: 20px; border-radius: 20px; display: flex; align-items: stretch; gap: 20px;
    border: 3px solid #1a100a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.9), 0 0 70px rgba(197, 160, 89, 0.12);
}
.tv-tube-wrapper {
    flex: 1; min-width: 0; background: #0a0a0a; padding: 15px;
    border-radius: 16px; box-shadow: inset 0 0 20px #000; position: relative;
}
.tv-tube {
    position: relative; width: 100%; aspect-ratio: 16 / 9; 
    background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 0 15px #000 inset;
}
.tv-tube iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 1;
}
.tv-glass {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2; pointer-events: none; 
    background: linear-gradient(rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%), radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.8) 100%);
    background-size: 100% 4px, 100% 100%; box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
}
.tv-glass::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}
.tv-controls { width: 60px; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 10px; }
.tv-dial {
    width: 45px; height: 45px; background: radial-gradient(circle, #d4af37, #8a6327); 
    border-radius: 50%; box-shadow: 0 4px 8px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.2); position: relative;
}
.tv-dial::after {
    content: ''; position: absolute; top: 5px; left: 50%;
    width: 4px; height: 16px; background: #1a0f06; transform: translateX(-50%); border-radius: 2px;
}
.tv-speaker {
    flex: 1; width: 40px; background: repeating-linear-gradient(0deg, #120a04, #120a04 4px, transparent 4px, transparent 8px);
    border-radius: 4px; margin-top: 10px; opacity: 0.9;
}



#faq {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
}

#faq h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 18px;
  cursor: pointer;
  color: #e8eaed;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  margin: 0 0 20px;
  color: #b0b3b8;
}



/* ===== FAQ ===== */

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 20px;
  cursor: pointer;
  color: #c5a059;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  padding-bottom: 12px;
}

/* линия под вопросом */
.faq-question::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, #c5a059, transparent);
  transition: width 1.2s ease;
}

/* появление */
.faq-question.show {
  animation: bronzeWave 1.5s ease forwards;
}

/* прорисовка линии */
.faq-question.show::after {
  width: 100%;
}


/* ===== FAQ ===== */

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 20px;
  cursor: pointer;
  color: #c5a059;
  position: relative;
  padding-bottom: 12px;

  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

/* линия под текстом */
.faq-question::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, #c5a059, transparent);
  transition: width 1.2s ease;
}

/* появление */
.faq-question.show {
  opacity: 1;
  transform: translateY(0);
}

/* прорисовка линии */
.faq-question.show::after {
  width: 100%;
}


document.addEventListener("DOMContentLoaded", function() {

  const faqQuestions = document.querySelectorAll(".faq-question");

  // Появление как в философии
  const observer = new IntersectionObserver((entries) => {
    entries.forEach((entry,index)=>{
      if(entry.isIntersecting){
        setTimeout(()=>{
          entry.target.classList.add("show");
        }, index*300);
      }
    });
  }, { threshold: 0.3 });

  faqQuestions.forEach(q => observer.observe(q));

  // Клик по вопросу — открытие ответа
  faqQuestions.forEach(q => {
    q.addEventListener("click", () => {
      const answer = q.nextElementSibling;

      // переключаем класс open у ответа
      answer.classList.toggle("open");

      // переключаем active у вопроса (+/-)
      q.classList.toggle("active");
    });
  });

});


document.querySelectorAll('.booking-btn').forEach(btn => {
    btn.addEventListener('click', function(e) {
        e.preventDefault();
        const target = document.querySelector(this.getAttribute('href'));
        if (!target) return;
        window.scrollTo({
            top: target.offsetTop - 80, // учёт шапки
            behavior: 'smooth'
        });
    });
});

.tv-booking-wrapper {
  display: flex;
  justify-content: center; /* центр по горизонтали */
  margin-top: 10px;        /* отступ сверху от видео */
  width: 100%;
}

.tv-booking-btn {
  padding: 12px 30px;
  background-color: #d4af37; /* бронзовый цвет */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
}


.tv-booking-btn {
  padding: 12px 30px;
  background-color: #000;        /* черная заливка */
  color: #fff;                   /* белый текст */
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #fff;        /* белая рамка */
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  cursor: pointer;               /* курсор при наведении */
  transition: background 0.3s, color 0.3s;
}

.tv-booking-btn:hover {
  background-color: #222;        /* легкий эффект при наведении */
  color: #fff;
}


.tv-booking-wrapper {
  display: flex;
  justify-content: center;      /* горизонтальный центр */
  margin-top: 30px;             /* отступ сверху */
}

.tv-booking-btn {
  padding: 12px 30px;
  background-color: #000;       /* черная заливка */
  color: #fff;                  /* белый текст */
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #fff;       /* белая рамка */
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.tv-booking-btn:hover {
  background-color: #222;
}


/* Обёртка кнопки под видео */
.tv-booking-wrapper {
  display: flex;
  justify-content: center; /* по центру по горизонтали */
  margin-top: 20px;       /* регулирует расстояние от видео */
}

/* Кнопка использует существующий стиль .btn и .btn-outline-white */
.tv-booking-btn {
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}


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


.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   9. ГАЛЕРЕЯ
   ========================================================================== */
#gallery { padding: 80px 0; width: 100%; overflow: hidden; }
.photo-mosaic {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: 280px; 
    gap: 20px; 
    margin-top: 50px;
    grid-auto-flow: dense; /* ВОТ ЭТА СТРОЧКА ЗАКРЫВАЕТ ДЫРЫ В СЕТКЕ */
}
.photo-item { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 8px; background: #111; }
.photo-item.tall { grid-row: span 2; }
.photo-item.wide { grid-column: span 2; }
.photo-item img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; filter: grayscale(100%) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease;
}
.photo-item:hover img, .photo-mosaic.is-visible .photo-item img { filter: grayscale(0%) contrast(1); }
.photo-item:hover img { transform: scale(1.05); }



/* ==========================================================================
   14. АДАПТИВНОСТЬ (С ГОРИЗОНТАЛЬНЫМИ ОТЗЫВАМИ)
   ========================================================================== */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .hero { min-height: calc(100vh - 90px); padding-bottom: 5vh; background-position: center 15%; }
    .philosophy-header { height: 90px; margin-bottom: 40px !important; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { justify-content: center; }
    
    .vintage-tv {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .tv-controls {
        width: 100%; height: 45px; flex-direction: row; justify-content: center;
        padding-top: 0; gap: 20px;
    }
    .tv-speaker {
        width: 100px; height: 100%; margin-top: 0;
        background: repeating-linear-gradient(90deg, #120a04, #120a04 4px, transparent 4px, transparent 8px);
    }

    .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 10px; }
    .photo-item.wide { grid-column: span 2; }
    
    /* ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ДЛЯ ОТЗЫВОВ НА ТЕЛЕФОНАХ */
    #reviews .reviews-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
        padding-bottom: 20px;
        gap: 15px;
        /* Прячем ползунок прокрутки для красоты */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    #reviews .reviews-grid::-webkit-scrollbar { display: none; }
    
    .review-card {
        flex: 0 0 85% !important; /* Карточка занимает 85% ширины экрана */
        scroll-snap-align: center; /* Прилипает ровно по центру */
        margin: 0;
    }

    .contact-buttons { flex-direction: column; width: 100%; }
    .nav-menu { display: none; }
}



/* ==========================================================================
   14. АДАПТИВНОСТЬ (С ИСПРАВЛЕННЫМИ ОТЗЫВАМИ)
   ========================================================================== */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .hero { min-height: calc(100vh - 90px); padding-bottom: 5vh; background-position: center 15%; }
    .philosophy-header { height: 90px; margin-bottom: 40px !important; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { justify-content: center; }
    
    .vintage-tv {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .tv-controls {
        width: 100%; height: 45px; flex-direction: row; justify-content: center;
        padding-top: 0; gap: 20px;
    }
    .tv-speaker {
        width: 100px; height: 100%; margin-top: 0;
        background: repeating-linear-gradient(90deg, #120a04, #120a04 4px, transparent 4px, transparent 8px);
    }

    .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 10px; }
    .photo-item.wide { grid-column: span 2; }
    
    /* ИСПРАВЛЕННЫЙ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ДЛЯ ОТЗЫВОВ */
    #reviews .reviews-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
        gap: 20px;
        width: 100%; /* Ограничиваем ширину контейнера */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    #reviews .reviews-grid::-webkit-scrollbar { display: none; } /* Прячем ползунок */
    
    .review-card {
        flex: 0 0 280px !important; /* Жёстко фиксируем ширину карточки */
        max-width: 85vw !important; /* Защита: не больше 85% ширины экрана телефона */
        scroll-snap-align: center; /* Центрируем при свайпе */
        margin: 0;
    }

    .review-visual-box {
        height: 300px !important; /* Чуть уменьшаем высоту фото для телефона */
    }

    .contact-buttons { flex-direction: column; width: 100%; }
    .nav-menu { display: none; }
}



/* ==========================================================================
   14. АДАПТИВНОСТЬ (С ИДЕАЛЬНОЙ КАРУСЕЛЬЮ ОТЗЫВОВ)
   ========================================================================== */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .hero { min-height: calc(100vh - 90px); padding-bottom: 5vh; background-position: center 15%; }
    .philosophy-header { height: 90px; margin-bottom: 40px !important; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { justify-content: center; }
    
    .vintage-tv {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .tv-controls {
        width: 100%; height: 45px; flex-direction: row; justify-content: center;
        padding-top: 0; gap: 20px;
    }
    .tv-speaker {
        width: 100px; height: 100%; margin-top: 0;
        background: repeating-linear-gradient(90deg, #120a04, #120a04 4px, transparent 4px, transparent 8px);
    }

    .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 10px; }
    .photo-item.wide { grid-column: span 2; }
    
    /* === МАГИЯ ГОРИЗОНТАЛЬНОГО СКРОЛЛА ОТЗЫВОВ === */
    #reviews .reviews-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important; /* Именно это чинит "застрявший" скролл */
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        
        /* Растягиваем карусель от края до края экрана телефона */
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        
        /* Отступы, чтобы карточки не прилипали вплотную к рамкам телефона */
        padding-left: 5vw !important;
        padding-right: 5vw !important;
        padding-bottom: 30px !important;
        gap: 20px !important;
        
        /* Прячем некрасивую полосу прокрутки */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    #reviews .reviews-grid::-webkit-scrollbar { display: none; }
    
    .review-card {
        flex: 0 0 280px !important; /* Фиксированный размер */
        max-width: 85vw !important; /* Не шире экрана */
        scroll-snap-align: center; /* Прилипание по центру при свайпе */
        margin: 0 !important;
    }

    .review-visual-box {
        height: 300px !important; 
    }
    /* ================================================= */

    .contact-buttons { flex-direction: column; width: 100%; }
    .nav-menu { display: none; }
}
.asphalt-form {
    max-width: 500px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.asphalt-form input, .asphalt-form select {
    padding: 15px;
    background: #222529;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    width: 100%;
}
.asphalt-form button {
    padding: 15px;
    background: #C5A059;
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
}


.channel-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.channel-btn {
    padding: 8px 16px;
    background: #222529;
    border: 1px solid var(--bronze);
    color: var(--bronze);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: var(--transition);
}
.channel-btn.active, .channel-btn:hover {
    background: var(--bronze);
    color: #000;
}

.channel-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.channel-btn {
    padding: 8px 16px;
    background: #222529;
    border: 1px solid var(--bronze);
    color: var(--bronze);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: var(--transition);
}
.channel-btn.active, .channel-btn:hover {
    background: var(--bronze);
    color: #000;
}
