/* --- 1. Подключение шрифтов и иконок --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Ubuntu:wght@700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.0.0/fonts/remixicon.css');

/* --- 2. CSS-переменные --- */
:root {
    --color-primary: #538bff; /* Синий */
    --color-accent: #ff696a; /* Красный/Розовый акцент */
    --color-text: #1A202C; /* Темный текст */
    --color-secondary: #78d970; /* Зеленый */
    --color-light-bg: #f5f8fa; /* Очень светлый фон (общий) */
    --color-light-secondary: #e6f7e4; /* Очень светло-зеленый для фона (FIXED) */
    --color-light-accent: #ffebe5; /* Очень светло-красный для фона (FIXED) */
    --border-radius: 20px; /* Большие скругления */

    /* --- Токены типографики с clamp() для резинового дизайна --- */
    --font-heading-main: clamp(36px, 6vw, 60px); /* H1 Main: 36px (mobile) -> 60px (desktop) */
    --font-subline: clamp(22px, 2.2vw, 24px);    /* H1 Subline: 18px (mobile) -> 22px (desktop) */
    --font-lead: clamp(20px, 2.5vw, 22px);       /* Lead text/H2: 18px (mobile) -> 20px (desktop) */
    --font-main: clamp(18px, 2.5vw, 20px);       /* main text: 18px (mobile) -> 20px (desktop) */
    --font-small: clamp(16px, 1.2vw, 18px);       /* main text: 16px (mobile) -> 18px (desktop) */

     /* --- Токен отступов для секций --- */
    --section-padding-y: clamp(40px, 8vw, 80px); /* Вертикальный отступ: 40px (mobile) -> 80px (desktop) */
}

/* --- Общие сбросы и типографика --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    line-height: 1.5;
    background-color: #ffffff; /* Основной фон белый */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {line-height: 1.2; font-family: 'Ubuntu', sans-serif;}
p {
    font-size: var(--font-main);
}

/* --- Анимация Scroll Reveal (Добавить в style.css) --- */

.reveal-item {
    /* Начальное скрытое состояние */
    opacity: 0;
    transform: translateY(30px); /* Сдвиг вниз для эффекта "всплытия" */
    
    /* Плавный переход: мягкий и ненавязчивый */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.visible {
    /* Конечное состояние */
    opacity: 1;
    transform: translateY(0);
}

/* --- Градиентный фон по углам (как на изображении) --- */

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60vw;
    height: 100%; 
    z-index: -1;
    pointer-events: none;
    /* Увеличенные размеры и сильные скругления для имитации мягкой формы */
    border-radius: 0 0 50% 50%;
    transform: rotate(0);
}

/* Сверху слева - светло-зеленый (Фигура 1 - 'Облако') */
.hero-section::before {
    left: -10vw; /* Уменьшаем сдвиг влево за экран */
    width: 40vw; /* Уменьшаем ширину */
    height: 50%;
    background: radial-gradient(circle at 70% 20%, var(--color-light-secondary) 0%, transparent 80%);
    opacity: 0.8;
    /* Добавляем немного скругления вниз, чтобы не выглядело как круг */
    border-radius: 0 0 50% 0;
}

/* Сверху справа - светло-акцентный (Фигура 2 - 'Облако') */
.hero-section::after {
    right: -20vw; /* Уменьшаем сдвиг вправо за экран */
    width: 60vw; /* Немного уменьшаем ширину */
    height: 90%;
    background: radial-gradient(circle at 30% 20%, var(--color-light-accent) 0%, transparent 80%);
    opacity: 0.8;
    /* Добавляем немного скругления вниз, чтобы не выглядело как круг */
    border-radius: 0 0 0 50%; 
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    /* 🔥 Ключевое изменение: position: fixed */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Увеличиваем z-index, чтобы быть поверх всего */
    
    /* Сбрасываем старый padding, так как он мешает фиксированному положению */
    padding: 10px 0; /* Добавим вертикальный отступ сверху и снизу для фиксированного состояния */
    
    /* Добавляем фон, чтобы контент под ним не просвечивал, когда карта фиксирована */
    background-color: transparent; 
    transition: all 0.3s ease-in-out;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 1160px;
    
    /* 🔥 Ключевое изменение: margin: 0 auto; теперь работает, 
       потому что width: 100% у родителя .navbar */
    margin: 0 auto; 
    
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-img {
    height: 40px; 
    max-width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    opacity: 0.8;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    background-color: var(--color-accent);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-cta:hover {
    background-color: #e65c5c;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 130px; 
    padding-bottom: 100px;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

/* HERO CONTENT (Левая колонка) */
.pre-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.main-heading {
    font-family: 'Ubuntu', sans-serif;
    font-size: var(--font-heading-main); /* Применяем clamp() */
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-text);
}

.main-heading .sub-line {
    display: block;
    font-size: var(--font-subline); /* Применяем clamp() */
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-primary);
    margin-top: 15px;
}

.lead-text {
    font-size: var(--font-lead); /* Применяем clamp() */
    font-weight: 400;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.accent-phrase {
    font-weight: 700;
    color: var(--color-accent);
    transition: color 0.5s;
    cursor: default;
}

/* Стиль для блока объяснения (стекло) */
.explanation-block {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background-color: rgba(83, 139, 255, 0.1); /* primary color (538bff) с прозрачностью 10% */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.explanation-block p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: none;
}

.value-markers {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.value-markers li {
    font-size: var(--font-main);
    line-height: 2;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(10px);
    /* УДАЛИТЕ эту строку, если не хотите, чтобы анимация появлялась (так как список теперь горизонтальный):
    opacity: 0;
    transform: translateY(10px);
    */
}
/* Стили для горизонтального списка */
.value-markers.horizontal-markers {
    display: flex;
    justify-content: space-between; /* Распределение элементов по ширине */
    gap: 20px;
    margin: 40px 0 30px; /* Увеличим отступ */
}

.value-markers.horizontal-markers li {
    /* Сбрасываем вертикальные анимации */
    opacity: 1; 
    transform: translateY(0); 
    line-height: 1.3;
    font-size: 16px;
    font-weight: 500;
    flex-basis: 30%; /* Ограничиваем ширину для размещения в одну строку */
    display: flex; /* Для выравнивания текста */
    flex-direction: column;
    align-items: center; /* Выравнивание по центру */
    text-align: center;
}

/* Стили для кружков иконок */
.value-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-light-secondary); /* Светло-зеленый фон */
    color: var(--color-secondary); /* Зеленая иконка */
    font-size: 22px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.key-value strong {
    color: var(--color-accent); /* Меняем на акцентный цвет */
    font-weight: 700;
}

/* CTA BLOCK */
.cta-block {
    margin-top: 40px;
}

.price {
    font-size: var(--font-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.price-value {
    font-weight: 800;
    color: var(--color-text);
}

.button-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cta-button.primary {
    background-color: var(--color-accent);
    color: white;
}

.cta-button.primary:hover {
    background-color: #e65c5c;
    box-shadow: 0 5px 15px rgba(255, 105, 106, 0.4);
}

.cta-button.secondary {
    background-color: white;
    color: var(--color-text);
    border: 1px solid rgba(26, 32, 44, 0.1);
}

.cta-button.secondary:hover {
    transform: scale(1.03);
}

/* --- HERO IMAGE BLOCK (Правая колонка с графикой) - ВОЗВРАЩЕННЫЕ СТИЛИ --- */
.hero-image-block {
    position: relative;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Контур вокруг графики (имитация) */
.graphic-outline {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid var(--color-primary);
    border-radius: 40px;
    top: 5%;
    left: 10%;
    opacity: 0.3;
}

/* Имитация человека за компьютером (просто большая полупрозрачная фигура) */
.person-placeholder {
    position: absolute;
    width: 90%;
    height: 90%;
    background: #538BFF;
    background: linear-gradient(214deg,rgba(83, 139, 255, 0.5) 0%, rgba(120, 217, 112, 0.67) 100%);
    border-radius: 20px;
    bottom: 0;
    left: 15%;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Добавление стилей для основного изображения в блоке */
.main-graphic-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обеспечивает заполнение контейнера, сохраняя пропорции, обрезая лишнее */
    border-radius: 20px; /* Применяем скругление границ, как у родительского плейсхолдера */
}

/* Розовый блок "Доверие" */
.trusted-by-box {
    position: absolute;
    width: 150px;
    padding: 20px;
    background-color: var(--color-accent);
    border-radius: var(--border-radius);
    right: 5%;
    bottom: 5%; /* Позиция внизу справа */
    z-index: 5;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 105, 106, 0.4);
}

.trusted-by-box i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.trusted-stat {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.trusted-desc {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
}

/* Плавающие иконки */
.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px; 
    z-index: 11; 
    color: white;
    animation: float 4s ease-in-out infinite;
}

.floating-icon i {
    color: white;
    font-size: 1em;
}

.floating-icon.icon-1 { /* Переводчик (Зеленый) */
    background-color: var(--color-secondary);
    top: 0;
    right: 15%;
    animation-delay: 0s;
}

.floating-icon.icon-2 { /* Шапка (Синий) */
    background-color: var(--color-primary);
    top: 40%;
    left: 0;
    animation-delay: 1.5s;
}

.floating-icon.icon-3 { /* Флаг (Акцентный) */
    background-color: var(--color-accent);
    top: 5%;
    right: 5%;
    animation-delay: 3s;
}


/* CSS-анимация парения */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- СЕКЦИЯ: Для кого этот клуб (Target Audience) --- */
.target-section {
    padding: var(--section-padding-y) 0; /* Применяем флюидный отступ */
    background-color: var(--color-light-bg); /* Светлый фон, чтобы выделить секцию */
}

.section-heading {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.section-lead-text {
    font-size: var(--font-main);
    font-weight: 500;
    text-align: center;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 60ch;
}

.target-grid {
    display: grid;
    /* 3 колонки на десктопе */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.target-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    /* Стили для начального скрытия и плавного появления */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.target-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.target-icon {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.target-card p {
    font-size: var(--font-main);
    line-height: 1.6;
}

/* Стили для CTA карточки (второй блок во второй строке) */
.primary-cta-card {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 40px 30px; /* Немного больше padding */
}

.primary-cta-card .target-icon {
    color: white;
    font-size: 48px;
}

.cta-text-header {
    font-size: var(--font-main);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cta-card-button {
    /* Наследуем стили от cta-button, но делаем его акцентным */
    background-color: var(--color-accent);
    color: white;
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.cta-card-button:hover {
    background-color: #e65c5c;
    transform: scale(1.05);
}

/* --- НОВАЯ СЕКЦИЯ: Почему раньше не получалось --- */
.why-not-section {
    padding: var(--section-padding-y) 0; /* Применяем флюидный отступ */
}

/* A. Блок Снятия Вины (ОБЫЧНЫЙ DIV 50/50, БЕЗ СТЕКЛА) */
.blame-free-wrapper {
    margin-bottom: 40px;
    background-color: white; /* Убеждаемся, что фон белый */
    padding: 0; /* Убираем лишний padding */
    box-shadow: none; /* Убираем тень */
    border-radius: 0; /* Убираем радиус */
}

.blame-free-block {
    display: grid;
    /* 50% / 50% колонки */
    grid-template-columns: 2fr 1fr; 
    align-items: flex-start; 
    gap: 40px;
    padding: 0; /* Убираем padding из внутреннего блока */
    /* Убираем Glassmorphism-эффекты */
    background-color: transparent; 
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}


.blame-free-heading .section-heading {
    /* Отменяем центральное выравнивание из общего .section-heading */
    text-align: left;
    margin-bottom: 0; 
    line-height: 1.2; /* Заданный line-height */
}

.blame-accent-text {
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--color-text); /* Цвет текста должен быть темным */
    line-height: 1.2;
    margin-top: 5px;
    display: inline-block;
    cursor: default;

   /* Стили для анимационного подчеркивания (изначальное состояние) */
    /* Маркер: полупрозрачный зеленый, толщина 60% от высоты текста, позиция 70% */
    background-image: linear-gradient(to top, 
        rgba(120, 217, 112, 0.5) 0%, /* var(--color-secondary) с 50% прозрачностью */
        rgba(120, 217, 112, 0.5) 100%
    );
    background-size: 0% 60%; /* Начинаем с 0% ширины, высота 60% */
    background-repeat: no-repeat;
    background-position: 0% 70%; /* Позиционируем чуть выше нижней границы текста */
    transition: background-size 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Более динамичный easing */
}

.blame-accent-text.underline-active {
    /* Конечное состояние: подчеркивание видно */
    background-size: 100% 60%;
}


.blame-free-text {
    /* Обеспечиваем выравнивание по первой строке с .blame-free-heading */
    align-self: flex-end;
}

.blame-free-text p {
    font-size: var(--font-small);
    line-height: 1.6;
    font-weight: 500;
}

/* Блок Причин */
.reasons-block {
    margin-bottom: 60px;
}

.reasons-intro {
    font-size: var(--font-lead);
    font-weight: 600;
    margin-bottom: 15px;
}

.reasons-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
}

.reasons-list li {
    font-size: var(--font-main);
    line-height: 1.6;
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю для многострочных пунктов */
    /* На десктопе делаем в две колонки, чтобы список не был слишком длинным */
    width: calc(50% - 15px); 
}

.reasons-list .accent-icon {
    color: var(--color-accent);
    margin-right: 10px;
    font-size: 20px;
    line-height: 1.6; /* Для корректного выравнивания иконки */
}

.reasons-conclusion {
    font-style: italic;
    font-size: 16px;
    opacity: 0.8;
}

/* B. Блок "Как мы работаем иначе" (4 колонки) */
.how-we-work-wrapper {
    background-color: var(--color-light-secondary); /* Светло-зеленый фон для всего блока */
    padding: 40px;
    border-radius: var(--border-radius);
}

.how-we-work-grid {
    display: grid;
    /* 4 колонки на десктопе */
    grid-template-columns: 1.2fr repeat(3, 1fr); 
    gap: 30px;
    align-items: stretch;
}

.work-intro-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.work-intro-heading {
    font-family: 'Ubuntu', sans-serif;
    font-size: var(--font-lead);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.2; /* Заданный line-height */
}

.work-intro-text {
    font-size: var(--font-main);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 25px;
}

.work-intro-cta {
    align-self: flex-start; /* Чтобы кнопка не растягивалась */
    margin-top: auto; /* Прижимаем к низу, если контент карточек будет длиннее */
}

.work-feature-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.work-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.work-feature-title {
    font-size: var(--font-main);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.work-feature-text {
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.9;
}

/* --- СЕКЦИЯ: Что происходит и что меняется --- */
.club-details-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-light-bg); /* Светлый фон (серый), как на примерах */

}

.club-details-section .section-heading {
    margin-bottom: 40px;
}

/* 3-х колоночная сетка для блока "Что происходит" */
.club-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.club-process-item {
    background-color: white; /* Белый фон для блоков */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Тень */
}
.club-process-title {
    font-size: var(--font-lead);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Стиль для блока расписания */
.schedule-box {
    background-color: var(--color-light-secondary); /* Светло-зеленый фон */
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.schedule-time, .schedule-details {
    font-weight: 600;
    font-size: var(--font-small);
    line-height: 1.4;
    margin: 0;
}

.schedule-details {
    color: var(--color-primary);
}

.details-list-heading {
    font-size: var(--font-small);
    font-weight: 600;
    margin-bottom: 10px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.details-list li {
    display: flex;
    align-items: flex-start;
    font-size: var(--font-small);
    line-height: 1.6;
}

.primary-icon {
    color: var(--color-primary);
    margin-right: 8px;
    font-size: 18px;
    line-height: 1.6;
}

/* Стиль для выделения последнего параграфа (маркер) */
.highlight-text {
    font-size: var(--font-small);
    font-weight: 500;
    line-height: 1.6;
    padding: 4px 0;
    display: inline;
    
    /* Имитация маркера */
    background-image: linear-gradient(to top, 
        rgba(230, 247, 228, 0.8) 0%, /* var(--color-light-secondary) с 80% прозрачностью */
        rgba(230, 247, 228, 0.8) 100%
    );
    background-size: 100% 60%; 
    background-repeat: no-repeat;
    background-position: 0% 70%; 
}

.centered-highlight {
    /* Если маркер нужно центрировать, он должен быть блочным */
    display: block;
    text-align: center;
    margin-top: 30px;
    padding: 10px 0;
}

/* --- НОВАЯ СЕКЦИЯ: Что меняется у участников клуба (отдельный блок) --- */
.club-changes-section-new {
    padding: var(--section-padding-y) 0;
}

/* Весь блок с двумя колонками 50/50 */
.club-changes-block {
    border: none;
    box-shadow: none; /* Убираем тень с контейнера */
    border-radius: 0;
    padding: 0; /* Внешний паддинг не нужен */
    
    /* 2 колонки: 50% / 50% */
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    align-items: stretch; /* Выравнивание по высоте, чтобы растянуть картинку */
}

/* Левая колонка: Обертка для изображения (с тенью и радиусом) */
.changes-image-wrapper {
    /* Используем padding для создания высоты, соответствующей контенту справа */
    position: relative;
    overflow: hidden;
    height: 100%;    
    /* Стиль для самой обертки картинки */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
}

.changes-main-image {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: var(--border-radius);
}

.changes-content-wrapper {
    padding: 0;
}

.changes-heading {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.changes-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.changes-list li {
    font-size: var(--font-main);
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
}

.changes-list .secondary-icon {
    color: var(--color-secondary); /* Зеленые чекбоксы */
    margin-right: 10px;
    font-size: 22px;
    line-height: 1.8;
}

.changes-list .accent-icon {
    color: var(--color-accent); /* Красные чекбоксы */
    margin-right: 10px;
    font-size: 22px;
    line-height: 1.8;
}

.changes-cta-block {
    /* Применяем Glassmorphism и фон только к CTA блоку */
    background-color: rgba(230, 247, 228, 0.8); /* var(--color-light-secondary) с прозрачностью */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 247, 228, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
    padding: 25px;
    border-radius: var(--border-radius);

    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    
    margin-top: 30px; /* Отступ от списка */
}

.changes-cta-text {
    font-size: var(--font-main);
    font-weight: 600;
    line-height: 1.5;
}

/* --- СЕКЦИЯ: ФОРМАТ УЧАСТИЯ И СТОИМОСТЬ --- */
.price-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-light-bg); /* Светло-серый фон для секции */
}

.price-grid {
    display: grid;
    /* 3 колонки на десктопе */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Чуть более выраженная тень */
    position: relative; /* Для позиционирования иконки */
    display: flex;
    flex-direction: column;
}

/* Стиль ленты "ХИТ ПРОДАЖ" */
.price-ribbon {
    position: absolute;
    top: 20px;
    right: -10px;
    background-color: var(--color-accent); /* Красный акцент для привлечения внимания */
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 25px 5px 15px;
    text-transform: uppercase;
    clip-path: polygon(100% 0, 100% 100%, 10% 100%, 0 50%, 10% 0); /* Создаем форму ленты */
    box-shadow: 0 2px 5px rgba(255, 105, 106, 0.5);
    z-index: 10;
}

/* Иконка, выходящая за рамки блока */
.price-icon-wrapper {
    position: absolute;
    top: -25px; /* Сдвиг вверх */
    left: -10px; /* Сдвиг влево (немного) */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(83, 139, 255, 0.4);
    z-index: 2;
}

.price-icon {
    font-size: 24px;
    color: white;
}

.tariff-header {
    /* Светло-зеленый фон с радиусом */
    background-color: var(--color-light-secondary);
    padding: 15px 20px;
    margin: -30px -30px 20px -30px; /* Заезжает на padding карточки */
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    text-align: center;
}

.tariff-title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.tariff-subtitle {
    font-size: var(--font-small);
    font-weight: 500;
}

.tariff-content {
    flex-grow: 1; /* Заставляет контент растягиваться */
    display: flex;
    flex-direction: column;
}

.tariff-for-whom-title {
    font-size: var(--font-small);
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.tariff-for-whom-list, .tariff-includes-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.tariff-for-whom-list li, .tariff-includes-list li {
    font-size: var(--font-small);
    line-height: 1.6;
    margin-bottom: 5px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
}

.tariff-for-whom-list .accent-icon {
    color: var(--color-accent);
    margin-right: 8px;
    font-size: 16px;
    margin-top: 2px;
}

.tariff-note {
    font-style: italic;
    font-size: 16px;
    opacity: 0.8;
    margin-top: 10px;
    margin-bottom: 20px;
}

.tariff-footer {
    border-top: 1px dashed rgba(26, 32, 44, 0.1);
    padding-top: 20px;
    text-align: center;
    margin-top: auto; /* Прижимает к низу */
    display: flex;
    flex-direction: column; /* чтобы кнопки были друг под другом */
    gap: 10px;
}

.tariff-cost {
    margin-bottom: 15px;
    line-height: 1.3;
}

.tariff-cost strong {
    font-size: 24px;
    font-weight: 800;
    display: block;
    color: var(--color-text);
}

.tariff-cost span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.7;
}

/* --- СЕКЦИЯ: Как выбрать тариф (Советник) --- */
.tariff-advice-section {
    padding: var(--section-padding-y) 0;
    /* 3. Увеличиваем верхний отступ для выступающего изображения */
    padding-top: calc(var(--section-padding-y) + 40px); /* Увеличим отступ для запаса */
    background-color: white; /* Фон секции белый */
}

.tariff-advice-block {
    background-color: var(--color-light-secondary); /* Светло-зеленый фон */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(120, 217, 112, 0.2); /* Тень от зеленого */
    padding: 30px 30px 0 30px;
    
    /* 4. Весь блок 70% и центрирован */
    max-width: 70%; 
    margin: 0 auto;
    
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    gap: 40px;
    position: relative;
    /* ИСПРАВЛЕНИЕ 1: Разрешаем выступать, чтобы картинка была видна */
    overflow: visible; 
}

.advice-image-wrapper{
  position:relative;
  height:100%;
  overflow:visible; /* важно, чтобы “вылезала” */
}

.advice-main-image{
  position:absolute;
  left:0;
  bottom:0;          /* прижали вниз */
  top:auto;
  transform:none;    /* больше не нужен */

  height:125%;       /* “вылезание” вверх */
  width:auto;
  max-width:100%;
  object-fit:contain;

  display:block;     /* убирает возможный inline-gap */
}

.advice-content {
    /* Правая колонка - контент */
    padding-top: 0;
    padding-bottom: 0;
    /* Обеспечиваем, чтобы высота колонки с контентом задавала высоту всего блока */
    min-height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advice-heading {
    text-align: left;
    margin-bottom: 15px;
}

.advice-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
}

.advice-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.advice-list li {
    font-size: 16px;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
}

.advice-list .advice-line{
  display:inline;       /* один “текстовый блок” */
}

.advice-list li i {
    color: var(--color-accent);
    margin-right: 10px;
    font-size: 20px;
    margin-top: 3px;
}

.advice-list li strong {
    color: var(--color-primary);
}

.advice-footer-text {
    font-style: italic;
    font-size: 14px;
    opacity: 0.8;
}

/* --- СЕКЦИЯ: ФОРМАТ УЧАСТИЯ И СТОИМОСТЬ --- */
.author-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-light-bg); /* Светло-серый фон для секции */
}

/* --- НОВАЯ СЕКЦИЯ: FAQ и Консультация --- */
.faq-section {
    padding: var(--section-padding-y) 0;
    background-color: white; /* Фон секции белый */
}

.faq-grid {
    display: grid;
    /* 1/3 (CTA) + 2/3 (Аккордеон) */
    grid-template-columns: 1fr 2fr; 
    gap: 40px;
    align-items: flex-start;
}

.faq-cta-block {
    background-color: rgba(37, 211, 102); /* Зеленый фон WhatsApp */
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.faq-whatsapp-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.faq-cta-heading {
    font-family: 'Ubuntu', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.faq-check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: center;
}

.faq-check-list li {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

.faq-cta-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.faq-button {
    background-color: white;
    color: var(--color-secondary); /* Используем зеленый акцент */
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.faq-button:hover {
    background-color: var(--color-light-bg);
    transform: scale(1.03);
}

.faq-heading {
    text-align: left;
    margin-bottom: 30px;
}

/* Аккордеон стили */
.accordion-item {
    background-color: var(--color-light-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    line-height: 1.4;
}

.accordion-summary::after {
    content: '+';
    font-size: 24px;
    color: var(--color-primary);
    transition: transform 0.3s;
}

details[open] .accordion-summary::after {
    content: '-';
    transform: rotate(0deg);
}

.accordion-content {
    padding: 0 20px 20px 20px;
    font-size: 16px;
    opacity: 0.8;
}

.accordion-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- СЕКЦИЯ: ФУТЕР --- */
.main-footer {
    background-color: #EDF2F7; /* Светло-серый фон */
    padding: var(--section-padding-y) 0 0; /* Верхний отступ */
    color: var(--color-text);
}

.footer-grid {
    display: grid;
    /* 3 колонки: 1fr (инфо) + 1fr (документы) + 1fr (контакты) */
    grid-template-columns: 1.2fr 1fr 1fr; 
    gap: 40px;
    padding-bottom: 40px;
}

.footer-info .footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer-heading {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.footer-links-list a {
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.9;
    transition: color 0.2s;
}

.footer-links-list a:hover {
    color: var(--color-primary);
}

.footer-icon {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 16px;
    margin-top: 2px;
}

/* Нижняя строка */
.footer-bottom {
    background-color:#dae3f0; /* Легкий фон для нижней полосы */
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.copyright-text {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
}




/* --- Медиа-запросы для адаптивности --- */
@media (max-width: 1080px) {
    /* Удалены фиксированные font-size для .main-heading и .main-heading .sub-line,
       так как они теперь контролируются clamp() */
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        text-align: center;
    }
    .button-group {
        justify-content: center;
    }
    /* Удален .main-heading font-size: 50px; */
    .hero-image-block {
        height: 400px;
    }
    .trusted-by-box {
        right: 10%;
        bottom: 5%;
    }
    /* Адаптируем формы на небольших экранах */
    .hero-section::before,
    .hero-section::after {
        width: 100%;
        opacity: 0.5;
        height: 40%;
        left: 0;
        right: 0;
        transform: translateX(0);
        border-radius: 0; /* Отключаем большие скругления на мобильных для чистоты */
    }
    .hero-section::before {
        /* Имитация плавной кривой для мобильных сверху */
        background: linear-gradient(to bottom, var(--color-light-secondary), rgba(255, 255, 255, 0));
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0 50%);
    }
    .hero-section::after {
        /* Имитация плавной кривой для мобильных снизу */
        top: 60%;
        background: linear-gradient(to top, var(--color-light-accent), rgba(255, 255, 255, 0));
        clip-path: polygon(0 30%, 100% 50%, 100% 100%, 0 100%);
    }

    /* Target Grid на планшетах: 2 колонки */
    .target-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .primary-cta-card {
        /* Убираем старые стили, которые ломали сетку */
        grid-column: auto;
    }

     /* Адаптация блока "Что меняется" для планшетов */
    .club-changes-block {
        /* Оставляем 50%/50% на планшете */
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .changes-cta-block {
        margin-top: 20px;
    }

    /* Price Grid на планшетах: 2 колонки */
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Адаптация блока-советника */
    .tariff-advice-block {
        grid-template-columns: 1fr; /* 1 колонка */
        padding-bottom: 0; /* Удаляем нижний паддинг, чтобы картинка не влияла на него */
    }
    .advice-image-wrapper {
        order: -1; /* Картинка сверху */
        height: 300px; /* Фиксируем высоту для мобильных/планшетов */
        margin-bottom: -30px;
    }
    .advice-main-image {
        /* Перенастраиваем позиционирование для блочного отображения */
        position: static;
        transform: none; 
        bottom: auto;
    }
    .advice-content {
        padding-top: 0;
    }


    /* 3-х колоночная сетка на планшетах: 2 колонки */
    .club-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Растягиваем последний элемент на планшетах */
    /* Вносим изменения согласно запросу: 3-й блок должен быть разделен на 2 колонки внутри */
    .club-process-item:nth-child(3) {
        grid-column: 1 / -1; /* Растягиваем на всю ширину (100%) */
        display: grid; /* Включаем внутреннюю сетку */
        grid-template-columns: 1fr 1fr; /* 2 колонки внутри */
        gap: 30px; /* Отступ между двумя внутренними колонками */
    }
    /* Стили для внутренних списков 3-го блока, чтобы они не ломали grid */
    .club-process-item:nth-child(3) .details-list-heading,
    .club-process-item:nth-child(3) .highlight-text {
        grid-column: 1 / -1; /* Растягиваем заголовки/параграфы на всю ширину внутри 3-го блока */
    }
    
    /* Стили для 3-го блока, чтобы сбросить отступы при растяжении */
    .club-process-item:nth-child(3) .details-list {
        margin-bottom: 0;
    }


    .changes-list {
        flex-direction: column;
    }
    .changes-list li {
        width: 100%;
        text-align: center;
        justify-content: start;
    }

    /* A. Блок Снятия Вины на планшетах: 1 колонка */
    .blame-free-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 0; /* Отступы внутри контейнера */
    }

    .blame-free-heading .section-heading {
        text-align: center;
    }
    .blame-accent-text {
        text-align: center;
        display: block; /* Снова делаем блочным на мобильных */
    }
    
    /* B. Блок "Как мы работаем иначе" на планшетах: 2 колонки */
   /* ИСПРАВЛЕНИЕ 2: Сетка "В Клубе Иврика мы работаем иначе" - 3 колонки */
    .how-we-work-grid {
        /* 3 колонки: две для intro + одна для первой карточки. Остальные ниже. */
        grid-template-columns: 1fr 1fr 1fr; 
        gap: 20px;
    }
    .work-intro-block {
        /* Растягиваем на всю ширину (1 колонка) */
        grid-column: 1 / -1; 
        text-align: center; /* Центрируем текст */
        padding-right: 0;
    }
    .work-intro-cta {
        align-self: center;
    }

    /* Располагаем три карточки под intro в один ряд */
    .work-feature-card:nth-child(2) {
        grid-column: 1 / 2; /* 1-я карточка */
    }
    .work-feature-card:nth-child(3) {
        grid-column: 2 / 3; /* 2-я карточка */
    }
    .work-feature-card:nth-child(4) {
        grid-column: 3 / 4; /* 3-я карточка */
    }

    /* ИСПРАВЛЕНИЕ: Сбрасываем ограничения, чтобы работал 50/50 */
    .tariff-advice-block {
        grid-template-columns: 1fr 1fr; /* ОСТАВЛЯЕМ 2 КОЛОНКИ */
        padding-bottom: 0; 
        max-width: 90%; /* Увеличиваем ширину */
        overflow: visible; /* Изображение выступает */
    }
    .advice-image-wrapper {
        order: 0; /* Картинка слева */
        height: 100%; 
    }
    .advice-main-image {
        position: absolute;
        transform: none; 
        bottom: 0;
        height: 125%;
    }
}

@media (max-width: 768px) {
    /* 🔥 ИСПРАВЛЕНИЕ: Переносим все сбросы внутрь селектора .navbar-content */
   .navbar {
    left: 0;
    right: 0;
    width: 100vw;
    overflow-x: hidden;
  }
  
    .navbar-content {
        flex-direction: row; 
        gap: 0;
        padding: 10px 15px; /* Уменьшаем вертикальный и горизонтальный отступ для экономии места */
        justify-content: space-between; 
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
 
    }
    
    .logo-img {
        height: 30px; /* 🔥 Уменьшаем логотип еще больше (30px) */
    }
    
    .nav-links {
        display: none; 
    }

    .nav-cta {
        padding: 6px 14px; /* 🔥 Уменьшаем padding кнопки */
        font-size: 13px; /* 🔥 Уменьшаем шрифт кнопки */
        border-radius: 8px;
    }
    
    /* Корректируем отступ Hero-секции под более компактное меню */
    .hero-section {
        padding-top: 70px; /* Скорректированный отступ */
    }
    .trusted-by-box {
        display: none; /* Скрываем на мобильных */
    }
    .graphic-outline, .person-placeholder {
        /* Уменьшаем размер графики на планшетах */
        width: 100%;
        left: 0;
        height: 80%;
    }
    .floating-icon.icon-2 {
        left: 5%;
    }

    /* Target Grid на мобильных: 1 колонка */
    .target-grid {
        grid-template-columns: 1fr;
    }
    /* Сбрасываем растяжение, так как уже 1 колонка */
    .primary-cta-card {
        grid-column: auto; 
    }

    /* Блок Причин на мобильных: 1 колонка в списке */
    .reasons-list li {
        width: 100%;
    }
    
   /* Адаптация блока "Что меняется" для мобильных */
    .club-changes-block {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 20px;
    }
    .changes-image-wrapper {
        order: -1; /* Изображение идет первым */
        height: auto; /* Сбрасываем высоту */
    }
    /* Устанавливаем высоту картинки явно на мобильных */
    .changes-main-image {
        position: static;
        height: auto;
    }

    .changes-heading {
        text-align: center;
    }
    .changes-list {
        margin-bottom: 20px;
    }
    .changes-list li {
        text-align: left;
        justify-content: flex-start;
    }
    .changes-cta-block {
        align-items: center;
        text-align: center;
        margin-top: 0;
    }
    
    /* 3-х колоночная сетка на мобильных: 1 колонка */
    .club-process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Сбрасываем растяжение */
    .club-process-item:nth-child(3) {
        grid-column: auto;
        display: block; /* Сбрасываем внутреннюю сетку */
    }

    .changes-list li {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
    .changes-list .primary-icon {
        line-height: 1.6;
    }

    .changes-main-image {
        /* Принудительно делаем изображение квадратным на мобильном экране */
        aspect-ratio: 1 / 1; 
        /* Или, если нужно: height: 100vw; (высота равна ширине области просмотра) */
    }
    
    /* Если .changes-image-wrapper блокирует высоту, может потребоваться его коррекция */
    .changes-image-wrapper {
        height: auto;
    }
    
    /* ИСПРАВЛЕНИЕ 2: Сетка "В Клубе Иврика мы работаем иначе" - 1 колонка */
    .how-we-work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .work-intro-block {
        grid-column: auto;
        text-align: center;
    }
    .work-intro-cta {
        align-self: center;
    }
    .work-feature-card:nth-child(2),
    .work-feature-card:nth-child(3),
    .work-feature-card:nth-child(4) {
        grid-column: auto;
    }

    /* Price Grid на мобильных: 1 колонка */
    .price-grid {
        grid-template-columns: 1fr;
    }

    /* Адаптация блока-советника для мобильных */
    .tariff-advice-section {
        padding-top: var(--section-padding-y); /* Сбрасываем увеличенный отступ */
    }
    
    .tariff-advice-block {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 20px;
        padding: 20px 20px 0 20px; /* Убираем нижний паддинг */
        max-width: 100%;
        /* ИСПРАВЛЕНИЕ: Сбрасываем overflow, чтобы картинка была внутри */
        overflow: hidden; 
    }
    .advice-image-wrapper {
        order: 2; /* 2. КАРТИНКА ВНИЗУ */
        height: 250px;
        min-height: auto;
    }
    .advice-main-image {
        /* ИСПРАВЛЕНИЕ: Блочное отображение, прижатое к низу, без выступления */
        position: static;
        transform: none; 
        bottom: auto;
        height: auto;
        width: 100%;
        display: block;
        
        /* Чтобы не было отступа снизу, используем display: block в родительской обертке
           и object-fit: contain (который уже есть), чтобы избежать растяжения. */
    }
    .advice-content {
        order: 1; /* Контент наверху */
        padding-top: 20px;
        padding-bottom: 20px;
    }


    /* Price Grid на мобильных: 1 колонка */
    .price-grid {
        grid-template-columns: 1fr;
    }

    /* 3-х колоночная сетка на мобильных: 1 колонка */
    .club-process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Сбрасываем растяжение */
    .club-process-item:nth-child(3) {
        grid-column: auto;
        display: block; 
    }

    .faq-grid {
        /* Меняем макет на одну колонку */
        grid-template-columns: 1fr; 
        /* Уменьшаем вертикальный отступ между элементами */
        gap: 20px; 
    }

    .footer-grid {
        /* Из 3 колонок делаем 2 колонки на планшете */
        grid-template-columns: 1fr 1fr;
    }
    .footer-info {
        /* Растягиваем info-блок на всю ширину (100%) */
        grid-column: 1 / -1; 
        padding-bottom: 20px;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    }
    
}

@media (max-width: 576px) {
    /* Удалены фиксированные font-size для .main-heading и .main-heading .sub-line,
       так как они теперь контролируются clamp() */
    .main-heading {
        /* font-size: 38px; - Удалено */
    }
    .main-heading .sub-line {
        /* font-size: 20px; - Удалено */
    }
    .lead-text {
        font-size: 18px;
    }
    .button-group {
        flex-direction: column;
    }
    .hero-section::before,
    .hero-section::after {
        opacity: 0.3;
    }
    /* Скрываем графику, чтобы не перегружать мобильный экран */
    .hero-image-block {
        display: none;
    }

    .value-markers.horizontal-markers {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin: 20px 0;
    }
    .value-markers.horizontal-markers li {
        flex-basis: 100%;
        max-width: 80%;
        flex-direction: row; /* На мобильных выравниваем в строку */
        text-align: left;
    }
    .value-icon-circle {
        margin-bottom: 0;
        margin-right: 15px; /* Отступ справа от иконки */
    }

     .blame-free-heading, .blame-free-text {
        padding: 15px 0; /* Уменьшаем внутренние отступы на совсем маленьких экранах */
    }

    .footer-grid {
        /* На мобильных делаем 1 колонку */
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-info {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-links-block:nth-child(2) {
        /* Добавляем разделитель между блоками Документы и Контакты */
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
        padding-top: 20px;
    }
}

/* Стили для секции с видео */
.video-tour-section {
    padding: var(--section-padding-y) 0; /* Применяем флюидный отступ */
    background-color: var(--color-light-bg);
    text-align: center;
}

.video-wrapper-main {
    max-width: 900px; /* Ограничиваем ширину видео для удобства просмотра */
    margin: 40px auto 0;
    padding: 0 20px;
}

.video-container-styled {
    position: relative;
    border-radius: 20px; /* Радиус закругления */
    overflow: hidden;    /* Чтобы видео не вылезало за границы радиуса */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Маленькая мягкая тень */
    background: #000;    /* Фон до загрузки видео */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .video-tour-section {
        padding: 40px 0;
    }
    .video-container-styled {
        border-radius: 12px; /* Чуть меньше радиус на телефонах */
    }
}