/* 1. СБРОС СТИЛЕЙ И ОБЩИЕ НАСТРОЙКИ  1*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #181818;       /* Мягкий угольно-черный */
    --bg-card: #222222;       /* Для карточек */
    --accent-gold: #D4AF37;   /* Матовое золото */
    --primary-wine: #4A1525;  /* Глубокий винный */
    --text-light: #F5F5F5;    /* Основной светлый текст */
    --text-muted: #B3B3B3;   /* Приглушенный текст */
    --font-title: 'Philosopher', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #111;
}

.btn-gold:hover {
    background-color: #f1c40f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}



/* 2. ШАПКА (MOBILE-FIRST) */
.main-header {
    background-color: rgba(24, 24, 24, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    z-index: 1002;
}

/* Кнопка бургера с жестким сбросом стилей Apple/Android */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.burger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold) !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Анимация крестика */
.burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Меню на мобильном */
.nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; 
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background-color: #141414;
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    padding: 100px 30px;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 1001;
}

.nav-menu.active {
    right: 0; 
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: var(--font-title);
    transition: color 0.3s;
}

.header-socials {
    display: none; /* Скрыто на мобилках */
}


/* 3. ГЛАВНЫЙ ЭКРАН (HERO SECTION) */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;

    /* Старый градиент мы просто убрали, чтобы он не мешался */
    background-image: url('img/hero-bg.jpg'); /* Путь к сохраненному фото */
    
    background-size: cover; /* Картинка растягивается на весь экран */
    background-position: center; /* Центрируется */
    background-repeat: no-repeat; /* Не дублируется */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемнение фона */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.15rem; /* Сделали крупнее (было 0.9rem) */
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600; /* Добавили веса буквам */
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 1.75rem; /* Сделали чуть меньше (было 2rem) */
    line-height: 1.4;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Карточки УТП на мобильном встают в колонку */
.hero-features {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.feature-icon {
    font-size: 1.5rem;
}

/* 4. АДАПТИВНОСТЬ ДЛЯ БОЛЬШИХ ЭКРАНОВ (Планшеты и ПК) */
@media (min-width: 768px) {
    .burger-btn {
        display: none; /* Скрываем бургер на ноутах */
    }

    .nav-menu {
        display: flex;
        flex-direction: row; /* Возвращаем пункты в строчку */
        position: static; /* Отменяем фиксированное положение */
        width: auto;
        height: auto;
        background-color: transparent;
        border-left: none;
        padding: 0;
        gap: 25px;
        transition: none;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        font-family: var(--font-body);
    }

   .header-socials {
    display: flex !important;
    gap: 8px !important; /* Уменьшили до 8px, чтобы все 5 кнопок встали идеально в ряд */
}
    
    .social-link {
        color: var(--accent-gold);
        text-decoration: none;
        font-size: 0.9rem;
        border: 1px solid rgba(212, 175, 55, 0.3);
        padding: 5px 10px;
        border-radius: 5px;
    }

    .hero-subtitle {
        font-size: 1.4rem; /* Добавляем с нуля для больших экранов */
    }

    .hero-title {
        font-size: 2.5rem; /* Корректируем размер заголовка на ПК */
    }

    .hero-features {
        flex-direction: row; /* На ПК выстраиваются в одну линию */
        justify-content: space-between;
    }

    .feature-item {
        flex: 1;
    }
}

/* ==========================================
   5. БЛОК 2: МАНИФЕСТ (MOBILE-FIRST)
   ========================================== */
.manifesto-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.manifesto-container {
    display: flex;
    flex-direction: column; /* На мобильных: всё строго в одну колонку */
    gap: 35px;
}

.manifesto-image {
    width: 100%;
    height: 280px; /* Фиксированная высота для мобильных */
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* Временный красивый градиент вместо фото */
    background: linear-gradient(45deg, #1f1f1f, #2d121a); 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--accent-gold);
    line-height: 1.3;
    margin-bottom: 20px;
}

.manifesto-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.manifesto-quote {
    position: relative;
    border-left: 3px solid var(--accent-gold);
    font-style: italic;
    line-height: 1.6;
    color: var(--text-light);
    background: rgba(74, 21, 37, 0.25); /* Легкий винный полупрозрачный фон */
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

/* АДАПТИВНОСТЬ: НАСТРОЙКА ДЛЯ ЭКРАНОВ ПК (от 768px и выше) */
@media (min-width: 768px) {
    .manifesto-section {
        padding: 100px 0;
    }

    .manifesto-container {
        flex-direction: row; /* Перестраиваем в линию: фото слева, текст справа */
        align-items: center;
        gap: 60px; /* Увеличиваем расстояние между ними */
    }

    .manifesto-image, .manifesto-content {
        flex: 1; /* Делят экран ровно пополам (50% на 50%) */
    }

    .manifesto-image {
        height: 450px; /* На ПК делаем картинку более крупной и высокой */
    }

    .section-title {
        font-size: 2.4rem;
    }
    
    .manifesto-text {
        font-size: 1.05rem;
    }
}
/* ==========================================
   6. БЛОК 3: КАТАЛОГ ПРОГРАММ (MOBILE-FIRST)
   ========================================== */
.programs-section {
    padding: 60px 0;
    background-color: #1c1c1c; /* Чуть отличающийся оттенок фона для разделения блоков */
}

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

.programs-section .section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 40px;
}

.programs-grid {
    display: flex;
    flex-direction: column; /* По умолчанию на мобильных — в одну колонку */
    gap: 30px;
}

.program-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект при наведении на карточку */
.program-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.program-img-box {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2c1118 0%, #181818 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.program-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Заставляет контент растягиваться, прижимая низ */
}

.program-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.3;
}

.program-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.program-steps {
    list-style: none;
    margin-bottom: 30px;
}

.program-steps li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.program-steps li span {
    font-size: 1rem;
}

/* Нижняя часть карточки с ценой и кнопкой */
.program-footer {
    margin-top: auto; /* Выталкивает футер карточки строго на дно */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.program-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: var(--font-title);
}

.program-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Кнопка-рамка для карточек */
.btn-border {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 25px;
    font-size: 0.9rem;
    border-radius: 20px;
}

.btn-border:hover {
    background-color: var(--accent-gold);
    color: #111;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ ТАБЛЕТОВ И ПК
   ========================================== */
@media (min-width: 768px) {
    .programs-section {
        padding: 100px 0;
    }
    
    .programs-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Перестраиваем в сетку по 2 карточки в ряд */
        gap: 30px;
    }
    
    .program-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   7. БЛОК 4: УСЛОВИЯ УЧАСТИЯ (MOBILE-FIRST)
   ========================================== */
.conditions-section {
    padding: 30px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.conditions-box {
    display: flex;
    flex-direction: column; /* На телефонах карточки идут друг под другом */
    gap: 25px;
    background: linear-gradient(135deg, rgba(74, 21, 37, 0.2) 0%, rgba(24, 24, 24, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(74, 21, 37, 0.1);
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Убираем нижнюю линию у последней карточки, чтобы не дублировалась */
.condition-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.condition-icon {
    font-size: 1.8rem;
    background: rgba(212, 175, 55, 0.07);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    flex-shrink: 0; /* Чтобы иконка не сжималась при длинном тексте */
}

.condition-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.condition-desc {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.4;
}

/* Переключение условий на стиль "Таблицы" для ПК */
@media (min-width: 768px) {
    .conditions-section {
        padding: 50px 0;
    }

    .conditions-box {
        flex-direction: row; /* Выстраиваем в одну строчку */
        justify-content: space-between;
        align-items: stretch;
        padding: 40px;
    }

    .condition-item {
        flex: 1;
        flex-direction: column; /* Внутри колонки: иконка сверху, текст снизу */
        align-items: center;
        text-align: center;
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid rgba(212, 175, 55, 0.15); /* Вертикальный золотой разделитель */
        padding: 0 20px;
    }

    .condition-item:last-child {
        border-right: none; /* Убираем разделитель у крайнего правого элемента */
    }

    .condition-info {
        margin-top: 15px;
    }
    
    .condition-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
}

/* ==========================================
   8. БЛОК 5: ОБ ОСНОВАТЕЛЕ (MOBILE-FIRST)
   ========================================== */
.about-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Мягкий контрастный фон для отделения от таблицы */
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.about-container {
    display: flex;
    flex-direction: column; /* На мобильном: портрет сверху, текст снизу */
    gap: 40px;
}

.about-image-box {
    width: 100%;
    aspect-ratio: 3 / 4; /* Пропорции красивого вертикального портрета */
    overflow: hidden;
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 460px; /* Идеальное портретное соотношение сторон */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* Премиальный глубокий фон с виньеткой */
    background: radial-gradient(circle at 50% 35%, #3a1c25 0%, #111111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.about-image-placeholder span {
    color: var(--text-muted);
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.about-section .section-title {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    line-height: 1.4;
    margin-bottom: 15px;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.about-quote {
    border-left: 3px solid var(--accent-gold);
    font-style: italic;
    line-height: 1.6;
    color: var(--text-light);
    /* Градиент уходит из благородного винного в прозрачный */
    background: linear-gradient(90deg, rgba(74, 21, 37, 0.4) 0%, rgba(24, 24, 24, 0) 100%);
    padding: 20px;
    border-radius: 0 16px 16px 0;
}

/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ ПК (ОТ 768px)
   ========================================== */
@media (min-width: 768px) {
    .about-section {
        padding: 100px 0;
    }

    .about-container {
        flex-direction: row; /* Перестраиваем в две колонки на десктопе */
        align-items: center;
        gap: 70px;
    }

    .about-image-box, .about-content {
        flex: 1; /* Ровно 50% на 50% экрана */
    }

    .about-image-placeholder {
        max-width: 440px;
        height: 580px; /* На больших экранах портрет становится крупнее и имвественнее */
    }

    .about-lead {
        font-size: 1.25rem;
    }

    .about-text {
        font-size: 1.05rem;
    }
}

/* ==========================================
   9. БЛОК 6: ГАЛЕРЕЯ (MOBILE-FIRST)
   ========================================== */
.gallery-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.gallery-section .section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* На мобильных — строго по одному фото в ряд */
    gap: 15px;
}

.gallery-item {
    background: linear-gradient(135deg, #222222 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.15);
}

/* ==========================================
   ТОЧНАЯ И КРАСИВАЯ ПРАВКА БЛОКА ОТЗЫВОВ
   ========================================== */
.reviews-section {
    padding: 60px 0;
    background-color: #1c1c1c;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.reviews-section .section-title {
    margin-bottom: 40px;
}

/* Базовый контейнер на мобилках */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Общий стиль карточек */
.review-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.05);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

/* Жёсткие красивые рамки для картинки на мобилках */
.review-card.image-card {
    width: 260px;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    background-color: var(--bg-card);
}

.review-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Логика слайдера для текстовых карточек на мобилке */
.review-card.text-card {
    display: none; /* Прячем на телефонах */
}

.review-card.text-card.active {
    display: flex; /* Показываем только текущий */
}

.review-stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
}

.review-author {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-top: 5px;
}

/* Кнопки под слайдером на мобилках */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ==========================================
   ИДЕАЛЬНЫЙ МОБИЛЬНЫЙ АДАПТИВ (ПРАВКА БАГА)
   ========================================== */
@media (max-width: 991px) {
    .reviews-wrapper {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .reviews-section {
        padding: 60px 0;
    }
    .reviews-wrapper {
        flex-direction: column; /* Выстраиваем строго друг под другом */
        gap: 35px;
    }
    
    /* ЗДЕСЬ МЫ ЗАЖИМАЕМ КАРТИНКУ НА ТЕЛЕФОНЕ */
    .review-image-block {
        flex: 0 0 260px; /* Больше никакого раздувания! Строго 260 пикселей в ширину */
        max-width: 260px;
        margin: 0 auto; /* Идеально центрируем на экране телефона */
    }
    
    .reviews-slider-container {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        min-height: auto;
    }
}

/* ==========================================
   БЕЗУПРЕЧНЫЙ МОБИЛЬНЫЙ АДАПТИВ
   ========================================== */
@media (max-width: 991px) {
    .reviews-wrapper {
        gap: 30px;
    }
    .reviews-slider-container {
        min-height: 380px;
    }
}

@media (max-width: 767px) {
    .reviews-section {
        padding: 60px 0;
    }
    .reviews-wrapper {
        flex-direction: column; /* Перестраиваем в один вертикальный ряд */
        gap: 30px;
    }
    .review-image-block {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .reviews-slider-container {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 30px 20px;
        min-height: auto; /* На телефонах пускай тянется под высоту текста автоматически */
    }
}

/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ ПК (ОТ 768px И ВЫШЕ)
   ========================================== */
@media (min-width: 768px) {
    .gallery-section, .reviews-section {
        padding: 100px 0;
    }

    /* Превращаем галерею в красивую дизайнерскую мозаику */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 20px;
    }

    .gallery-item.size-large {
        grid-column: span 2; /* Большое фото занимает две колонки */
        height: 320px;
    }
    
    .gallery-item.size-medium {
        grid-column: span 3; /* Длинное горизонтальное фото на всю ширину */
        height: 200px;
    }

    .gallery-item {
        height: 320px;
    }

    /* Отзывы и картинка выстраиваются в ЧЕТЫРЕ идеальные колонки одинакового размера */
    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* Ровно 4 столбца! */
        gap: 24px;
        align-items: stretch; /* Растягивает все карточки по высоте самой длинной */
    }

    /* На ПК сбрасываем мобильные ограничения ширины для картинки */
    .review-card.image-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        align-items: center;
        justify-content: center;
    }

    .review-screenshot {
        max-height: 100%;
        object-fit: contain; /* Чтобы картинка аккуратно лежала внутри рамки */
    }

    /* На ПК принудительно показываем ВСЕ текстовые карточки одновременно */
    .review-card.text-card {
        display: flex !important; 
    }

    /* Прячем стрелочки слайдера за ненадобностью */
    .slider-controls {
        display: none;
    }
}

/* ==========================================
   11. БЛОК 8: ПОДВАЛ И ФОРМА (MOBILE-FIRST)
   ========================================== */
.main-footer {
    padding: 60px 0 20px 0;
    background-color: #111111; /* Самый глубокий темный цвет */
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-container {
    display: flex;
    flex-direction: column; /* На смартфонах: форма сверху, контакты снизу */
    gap: 50px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
}

.footer-manager {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-family: var(--font-title);
    margin-top: -10px;
    margin-bottom: 25px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

a.contact-item-link:hover {
    color: var(--accent-gold);
}

.contact-icon {
    font-size: 1.2rem;
}

/* Кнопки соцсетей */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.02);
}

.social-btn:hover {
    border-color: var(--accent-gold);
    color: #111;
    background-color: var(--accent-gold);
}

/* Заглушка для карты */
.map-box {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Стили формы */
.footer-form-box {
    background-color: var(--bg-card);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(74, 21, 37, 0.4); /* Бордовый контур */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.form-box-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.form-box-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.4;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-form input, 
.booking-form select {
    background-color: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none; /* Убирает стандартный стиль стрелочки на iOS */
}

.booking-form input:focus, 
.booking-form select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ ПК (ОТ 768px И ВЫШЕ)
   ========================================== */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row-reverse; /* На ПК форма будет справа, контакты слева */
        gap: 80px;
        align-items: flex-start;
    }

    .footer-contacts, 
    .footer-form-box {
        flex: 1; /* Распределяем пространство 50 на 50 */
    }

    .footer-form-box {
        padding: 40px;
    }

    .map-box {
        height: 280px; /* Делаем карту чуть глубже на ПК */
    }
    
    .form-box-title {
        font-size: 1.8rem;
    }
}

/* Настройка интерактивной карты */
.map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 11px; /* Скругляем углы карты под стать рамке */
}

/* ==========================================
   ФИНАЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ШАПКИ И ПК (ОСВОБОЖДЕНИЕ ИЗ ТИСКОВ)
   ========================================== */
@media (min-width: 768px) {
    
    .burger-btn {
        display: none !important; /* Намертво скрываем бургер на ПК */
    }

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

    .nav-menu {
        display: flex !important;
        flex-direction: row !important; /* Пункты строго в строку */
        position: static !important;
        
        /* ВОТ ТУТ БЫЛА ЗАСАДА! Возвращаем свободу меню на больших экранах: */
        width: auto !important;
        max-width: none !important; /* Уничтожаем ограничение в 280px */
        height: auto !important;
        
        background-color: transparent !important;
        border-left: none !important;
        padding: 0 !important;
        gap: clamp(25px, 4vw, 50px) !important; /* Прогрессивный отступ между пунктами */
        transition: none !important;
        margin: 0 auto; /* Центрируем меню */
    }
    
    .nav-menu a {
        font-size: 1rem; 
        font-family: var(--font-body);
        font-weight: 500;
        white-space: nowrap !important; /* Запрет на перенос слов внутри пункта */
        color: var(--text-light) !important;
    }

    .header-socials {
        display: flex !important;
        gap: 12px;
    }
    
    .social-link {
        color: var(--accent-gold);
        text-decoration: none;
        font-size: 0.85rem;
        border: 1px solid rgba(212, 175, 55, 0.2);
        padding: 6px 12px;
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .social-link:hover {
        background-color: var(--accent-gold);
        color: #111;
    }

    /* Размеры главного экрана для ПК */
    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

/* Стили для ссылок соцсетей в подвале */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.footer-social-link {
    color: var(--text-light) !important; /* Возвращаем благородный светлый цвет сайта */
    text-decoration: none !important;    /* Убираем стандартное подчеркивание */
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

/* Эффект при наведении курсора */
.footer-social-link:hover {
    color: var(--accent-gold) !important; /* При наведении ссылка станет золотой */
}

/* ==========================================
   ЖЕЛЕЗОБЕТОННЫЙ ИСПРАВЛЕННЫЙ АДАПТИВ ДЛЯ БЛОКА УСЛОВИЙ
   ========================================== */

/* 1. Настройка сетки для мобилок */
.conditions-box {
    display: flex !important;
    flex-direction: column !important; /* На смартфонах выстраиваем элементы строго в столбик */
    gap: 25px !important;              /* Отступы между карточками */
}

/* 2. Настройка самой карточки */
.condition-item {
    display: flex !important;
    align-items: flex-start !important; /* Выравниваем иконку по верхней линии заголовка */
    gap: 15px !important;               /* Отступ между иконкой и текстом */
}

/* 3. Оживляем иконку и запрещаем телефону её сжимать */
.condition-icon {
    width: 40px !important;        /* Жесткая ширина контейнера иконки */
    height: 40px !important;       /* Жесткая высота контейнера иконки */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(212, 175, 55, 0.1) !important; /* Легкий золотистый кругляшок на фоне */
    border-radius: 50% !important;
    
    /* ГЛАВНОЕ СПАСАТЕЛЬНОЕ СВОЙСТВО: */
    flex-shrink: 0 !important;     /* Намертво запрещаем мобилке сплющивать этот блок */
}

/* 4. Настройка размера и цвета самого векторного рисунка */
.condition-icon svg {
    width: 20px !important;        /* Размер самой иконки внутри круга */
    height: 20px !important;
    stroke: var(--accent-gold) !important; /* Красим линии в твой фирменный золотой цвет */
}

/* 5. Настройки для больших экранов (компьютеров) */
@media (min-width: 768px) {
    .conditions-box {
        flex-direction: row !important; /* На ПК возвращаем отображение в одну строчку */
        justify-content: space-between !important;
        gap: 30px !important;
    }
    
    .condition-item {
        flex: 1 !important; /* Распределяем три колонки равномерно по ширине экрана */
    }
}

/* ==========================================
   КОРРЕКЦИЯ МАСШТАБА ПОРТРЕТА ИРИНЫ НА ПК
   ========================================== */
@media (min-width: 768px) {
    
    .about-container {
        display: flex !important;
        align-items: center !important;    /* Центрируем фото по вертикали ровно по центру текста */
        justify-content: space-between !important;
        gap: clamp(30px, 5vw, 60px) !important; /* Умный отступ между фото и текстом */
    }

    .about-image-box {
        /* Отдаем картинке чуть меньше места, чтобы она не доминировала */
        flex: 0 0 35% !important; 
        
        /* ЖЕСТКОЕ ОГРАНИЧЕНИЕ: Фото больше не вырастет гигантским даже на экране 2K/4K */
        max-width: 380px !important; 
        
        aspect-ratio: 3 / 4 !important;
        border-radius: 15px !important;
        overflow: hidden !important;
    }

    .about-content {
        /* Отдаем тексту законные 60% ширины экрана, чтобы он читался легко */
        flex: 0 0 60% !important; 
    }
    
    .about-quote {
        margin-top: 25px !important;
        padding: 20px !important;
    }
}

/* ==========================================
   ИДЕАЛЬНАЯ СЕТКА ДЛЯ ВЕРТИКАЛЬНЫХ ФОТО (БЕЗ ОБРЕЗАНИЯ)
   ========================================== */
.gallery-section {
    padding: 60px 0;
    background-color: #141414;
}

.gallery-grid {
    display: grid;
    /* На телефонах — 2 колонки, чтобы длинные фото красиво встали парами */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    /* Выравниваем по верхней линии, чтобы фото не растягивались по высоте */
    align-items: start; 
}

.gallery-item {
    width: 100%;
    /* МЫ УБРАЛИ ЖЕСТКИЙ ASPECT-RATIO! Теперь коробка подстраивается под фото */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background-color: #1a1a1a;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.gallery-item img {
    width: 100%;
    /* ГЛАВНОЕ СПАСАТЕЛЬНОЕ СВОЙСТВО: */
    height: auto !important; /* Фотография покажет себя ПОЛНОСТЬЮ, без единого кропа */
    display: block;
}

/* Настройки для компьютеров */
@media (min-width: 768px) {
    .gallery-grid {
        /* На ПК разворачиваем в 4 колонки, чтобы длинные фото с Айфона не занимали весь экран по высоте */
        grid-template-columns: repeat(4, 1fr); 
        gap: 20px; 
    }
}

/* ==========================================
   РОСКОШНЫЙ ДИЗАЙН ФОРМЫ ОБРАТНОЙ СВЯЗИ
   ========================================== */

/* Красивая подложка-карточка для формы */
.booking-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;              /* Отступы между полями */
    width: 100% !important;
    max-width: 450px !important;       /* Чтобы форма не расползалась на весь экран */
    margin: 0 auto !important;         /* Центрируем её в блоке */
    background: rgba(255, 255, 255, 0.02) !important; /* Едва заметный благородный фон */
    padding: 30px !important;
    border-radius: 16px !important;    /* Мягкие скругленные углы */
    border: 1px solid rgba(212, 175, 55, 0.12) !important; /* Тонкая золотистая рамка */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Стиль для всех полей ввода (Имя, Телефон, Кол-во человек) и Списка программ */
.booking-form input,
.booking-form select {
    width: 100% !important;
    height: 52px !important;           /* Удобная высота для нажатия пальцем */
    padding: 0 15px !important;
    background: rgba(20, 20, 20, 0.6) !important; /* Глубокий темный фон полей */
    border: 1px solid rgba(255, 255, 255, 0.12) !important; /* Аккуратная светлая граница */
    border-radius: 8px !important;
    color: var(--text-light) !important; /* Белый цвет текста при вводе */
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    
    /* Сброс дурацкого системного дизайна Safari/Chrome */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Элегантная золотая стрелочка для выпадающего списка программ */
.booking-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 16px !important;
    cursor: pointer !important;
}

/* Красивый цвет для текста-подсказки (placeholder) */
.booking-form input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Эффект магии при клике на любое поле (фокус) */
.booking-form input:focus,
.booking-form select:focus {
    border-color: var(--accent-gold) !important; /* Рамка загорается фирменным золотом */
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25) !important; /* Мягкое золотистое свечение */
    background: rgba(30, 30, 30, 0.8) !important;
}

/* Премиальная золотая кнопка «Открыть дверь в магию» */
.btn-submit {
    width: 100% !important;
    height: 56px !important;
    background: var(--accent-gold) !important; /* Твой золотой цвет */
    color: #141414 !important;                 /* Контрастный темный текст внутри */
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Philosopher', sans-serif !important; /* Мистический шрифт заголовков */
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
    margin-top: 5px !important;
}

/* Эффект при наведении курсора на кнопку на компе */
.btn-submit:hover {
    background: #f0c543 !important; /* Золото становится чуть теплее и ярче */
    transform: translateY(-2px) !important; /* Кнопка слегка приподнимается */
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4) !important; /* Свечение усиливается */
}

/* Эффект при физическом нажатии */
.btn-submit:active {
    transform: translateY(0) !important;
}

/* ==========================================
   АРХИТЕКТУРНЫЙ GRID-ПАЗЛ ДЛЯ ФОТО С АЙФОНА
   ========================================== */
.mystery-gallery-section {
    padding: 100px 0;
    background-color: #1a0b10; /* Наш фирменный винный темный фон */
}

.mystery-gallery-section .section-subtitle {
    color: #bfa3a8;
    max-width: 700px;
    margin: -20px auto 50px auto;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Создаем сетку из 4 идеальных колонок с базовым шагом строки в 180px */
.mystery-grid-puzzle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    grid-gap: 20px; /* Красивые зазоры между рамками */
}

/* Общие правила для всех рамок */
.mystery-brick {
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Благородный минималистичный срез углов */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #11060a;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.mystery-brick img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* ==========================================
   РАСПРЕДЕЛЕНИЕ РОЛЕЙ (РАЗНЫЕ ФОРМАТЫ РАМОК)
   ========================================== */

/* Большой куб 2х2 (Занимает 2 колонки и 2 строки) */
.mystery-brick.brick-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Высокая вертикальная шторка (1 колонка, 2 строки в высоту) — ИДЕАЛЬНО ДЛЯ ВЕРТИКАЛОК */
.mystery-brick.brick-vertical {
    grid-column: span 1;
    grid-row: span 2;
}

/* Широкий панорамный блок (2 колонки в ширину, 1 строка в высоту) */
.mystery-brick.brick-horizontal {
    grid-column: span 2;
    grid-row: span 1;
}

/* Стандартный квадрат (1х1) для акцентов и деталей */
.mystery-brick.brick-standard {
    grid-column: span 1;
    grid-row: span 1;
}

/* Эффект легкого дорогого объема при наведении */
.mystery-brick:hover {
    transform: translateY(-4px) scale(1.01);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(58, 28, 37, 0.8); /* Мягкое бордовое свечение */
}

.mystery-brick:hover img {
    transform: scale(1.03); /* Едва заметный интерактивный наезд картинки */
}

/* ==========================================
   БЕЗУПРЕЧНЫЙ МОБИЛЬНЫЙ АДАПТИВ
   ========================================== */
@media (max-width: 991px) {
    .mystery-grid-puzzle {
        grid-template-columns: repeat(2, 1fr); /* На планшетах перестраиваем в 2 колонки */
        grid-auto-rows: 240px;
        grid-gap: 15px;
    }
    /* Сбрасываем сложные десктопные переплетения, чтобы не ломать мобильный экран */
    .mystery-brick.brick-large,
    .mystery-brick.brick-horizontal {
        grid-column: span 2;
        grid-row: span 1;
    }
    .mystery-brick.brick-vertical {
        grid-column: span 1;
        grid-row: span 2; /* Оставляем вертикальные фотки вытянутыми */
    }
}

@media (max-width: 575px) {
    .mystery-gallery-section {
        padding: 60px 0;
    }
    .mystery-grid-puzzle {
        grid-template-columns: repeat(2, 1fr); /* На смартфонах делаем аккуратный Feed в 2 ряда */
        grid-auto-rows: 190px;
        grid-gap: 12px;
    }
    /* Делаем все ячейки одинаково аккуратными вертикальными прямоугольниками */
    .mystery-brick.brick-large,
    .mystery-brick.brick-vertical,
    .mystery-brick.brick-horizontal,
    .mystery-brick.brick-standard {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        aspect-ratio: 3 / 4; /* Родной формат Айфона на мобилке смотрится шикарно */
    }
}

/* ==========================================
   АДАПТИВНЫЕ ССЫЛКИ В ШАПКЕ И БУРГЕРЕ
   ========================================== */

/* Быстрые ссылки в шапке рядом с кнопкой меню */
.header-mobile-quick {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; /* Автоматически прижимает ссылки к правому краю, к бургеру */
    margin-right: 20px;
}

.mobile-quick-link {
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.quick-phone {
    font-size: 1.2rem;
}

.quick-max {
    color: var(--accent-gold, #bfa3a8);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent-gold, #bfa3a8);
    padding: 3px 8px;
    border-radius: 2px;
}

/* Нижний блок внутри выезжающего бургер-меню */
.burger-footer {
    display: none; /* На компьютерах этот блок полностью скрыт */
}

/* Скрываем мобильные быстрые ссылки на компьютерах */
@media (min-width: 768px) {
    .header-mobile-quick {
        display: none;
    }
}

/* Логика отображения элементов внутри мобильной шторки */
@media (max-width: 767px) {
/* Настраиваем шторку с учетом динамической высоты экрана телефона */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        
        /* Жёстко чиним высоту под мобильные панели */
        height: 100vh; /* Фолбек для старых браузеров */
        height: 100dvh; /* Авторасчет чистой видимой зоны на Айфоне! */
        
        /* Защитный отступ снизу с учетом закруглений экрана iPhone */
        padding: 90px 30px calc(30px + env(safe-area-inset-bottom)) 30px !important;
        box-sizing: border-box;
        
        /* Включаем внутренний скролл, если экран телефона совсем крошечный */
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
        
        /* Твои старые настройки позиционирования (оставляем как есть) */
        position: fixed;
        top: 0;
        right: -100%; /* или 0, если открыто */
        width: 100%;
        background-color: #11060a;
        z-index: 999;
        transition: right 0.4s ease;
    }

    .nav-menu-links {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    /* Включаем и оформляем подвал бургера */
    .burger-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        margin-top: auto; /* Магическое свойство: выталкивает блок в самый низ экрана */
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .burger-socials {
        display: flex;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .burger-socials a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        font-family: 'Montserrat', sans-serif;
    }

    .burger-phone {
        color: var(--accent-gold, #bfa3a8);
        font-size: 1.25rem;
        font-weight: 700;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        letter-spacing: 0.02em;
    }

    .burger-address {
        color: #bfa3a8;
        font-size: 0.75rem; /* Аккуратный, мелкий и ненавязчивый шрифт */
        text-align: center;
        margin: 0;
        opacity: 0.6;
        line-height: 1.4;
    }
}


/* ==========================================
   АДАПТИВНЫЕ ПАРНЫЕ КНОПКИ ДЛЯ КАТАЛОГА МК
   ========================================== */

/* Контейнер для двух кнопок */
.program-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Принудительно выравниваем обе кнопки внутри карточки, убирая старые гигантские отступы */
.program-buttons .btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-block !important;
    width: auto;
}

/* Умный мобильный адаптив: перестраиваем футер карточки на смартфонах */
@media (max-width: 767px) {
    .program-footer {
        flex-direction: column !important; /* Цена и кнопки встают друг под другом */
        align-items: stretch !important;   /* Растягиваем элементы на всю ширину */
        gap: 15px !important;              /* Комфортный отступ между ценой и кнопками */
        text-align: center !important;     /* Центрируем текст цены на мобилке */
    }

    .program-buttons {
        width: 100% !important;
        flex-direction: row !important;    /* Кнопки на мобильном остаются аккуратно в один ряд */
        gap: 10px !important;
    }

    .program-buttons .btn {
        flex: 1 !important;                /* Делят мобильную строку ровно 50% на 50% */
        text-align: center !important;
    }
}

/* Дополнительная страховка для самых узких экранов (смартфоны до 380px) */
@media (max-width: 380px) {
    .program-buttons {
        flex-direction: column !important; /* На совсем крошечных экранах выстраиваем кнопки в стопочку */
    }
    .program-buttons .btn {
        width: 100% !important;
    }
}