/* 1. Секция "Герой" */
.секция-герой-гибрид {
    padding-top: calc(var(--header-height, 80px) + 3rem);
    padding-bottom: 5rem;
    background-color: var(--цвет-серый-фон);
    position: relative;
    overflow: hidden;
}

.герой-контейнер-гибрид {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Левая колонка с контентом */
.герой-контент {}
.герой-заголовок { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
.градиент-текст {
    background: var(--цвет-градиент, linear-gradient(90deg, #007BFF, #00C6FF));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-emphasis-color: transparent;
}
.герой-подзаголовок { font-size: 1.25rem; color: #555; margin-bottom: 2rem; max-width: 95%; }
.герой-список-преимуществ { list-style: none; padding-left: 0; margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.герой-список-преимуществ li { font-weight: 500; display: flex; align-items: center; gap: 0.75rem; }
.герой-список-преимуществ .иконка-пункта { flex-shrink: 0; }
.герой-действия { display: flex; gap: 1rem; }

/* Социальные доказательства */
.герой-соц-доказательство {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.доказательство-элемент { text-align: left; }
.доказательство-элемент strong { font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; margin-bottom: 0.25rem; }
.доказательство-элемент span { font-size: 1rem; color: #6c757d; }
.разделитель { width: 1px; height: 50px; background-color: #e2e8f0; }

/* Правая колонка с изображением */
.герой-визуал-фон {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    display: flex;
    justify-content: flex-end; /* картинка справа */
    overflow: hidden;
    z-index: 1;
}

.герой-визуал-изображение {
    height: 100%;
    width: auto;               /* сохраняем пропорции */
    object-fit: cover;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Адаптивность */
@media (max-width: 992px) {
    .герой-контейнер-гибрид { grid-template-columns: 1fr; text-align: center; }
    .герой-действия, .герой-соц-доказательство { justify-content: center; }
    .доказательство-элемент { text-align: center; }
    .герой-список-преимуществ { display: inline-flex; text-align: left; }
    .герой-визуал-фон { display: none; }
}

@media (max-width: 576px) {
    .герой-заголовок { font-size: 2.8rem; }
    .герой-соц-доказательство { gap: 1rem; flex-wrap: wrap; }
    .доказательство-элемент strong { font-size: 2rem; }
}


/* -- 2. Секция "Преимущества" -- */
.секция-преимущества { background-color: var(--цвет-серый-фон); }
.сетка-преимуществ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.карточка-преимущества { position: relative; padding: 2.5rem 2rem; background: white; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; transition: var(--переход-быстрый); }
.карточка-преимущества:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.карточка-преимущества::before { content: '0' counter(card-counter); counter-increment: card-counter; position: absolute; top: -20px; right: 10px; font-size: 6rem; font-weight: 700; transition: var(--переход-быстрый); z-index: 0; background: var(--цвет-градиент); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-emphasis-color: transparent; opacity: 0.08; }
.карточка-преимущества:hover::before { transform: rotate(-10deg) scale(1.1); opacity: 0.12; }
body { counter-reset: card-counter; }
.карточка-преимущества h3, .карточка-преимущества p { position: relative; z-index: 1; }
.карточка-преимущества h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/*
==========================================================================
    ПОЛНЫЙ И ФИНАЛЬНЫЙ ФАЙЛ СТИЛЕЙ: home.css
    
    Версия: Финальная, с гарантированно работающей адаптивностью.
    Что сделано: Вместо свойства 'order' используется более надежный метод
    с 'display: block' для перестроения секции с картой на мобильных.
    Все стили и @media-запросы объединены.
==========================================================================
*/

/* ------------------------------------------- */
/* 1. СЕКЦИЯ "ГЕРОЙ"                           */
/* ------------------------------------------- */
.секция-герой-гибрид {
    padding-top: calc(var(--header-height, 80px) + 3rem);
    padding-bottom: 5rem;
    background-color: var(--цвет-серый-фон);
    position: relative;
    overflow: hidden;
}
.герой-контейнер-гибрид {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}
.герой-заголовок { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
.градиент-текст {
    background: var(--цвет-градиент, linear-gradient(90deg, #007BFF, #00C6FF));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-emphasis-color: transparent;
}
.герой-подзаголовок { font-size: 1.25rem; color: #555; margin-bottom: 2rem; max-width: 95%; }
.герой-список-преимуществ { list-style: none; padding-left: 0; margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.герой-список-преимуществ li { font-weight: 500; display: flex; align-items: center; gap: 0.75rem; }
.герой-список-преимуществ .иконка-пункта { flex-shrink: 0; }
.герой-действия { display: flex; gap: 1rem; }
.герой-соц-доказательство { display: flex; gap: 2rem; align-items: center; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.доказательство-элемент { text-align: left; }
.доказательство-элемент strong { font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; margin-bottom: 0.25rem; }
.доказательство-элемент span { font-size: 1rem; color: #6c757d; }
.разделитель { width: 1px; height: 50px; background-color: #e2e8f0; }
.герой-визуал-фон { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; display: flex; justify-content: flex-end; overflow: hidden; z-index: 1; }
.герой-визуал-изображение { height: 100%; width: auto; object-fit: cover; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); }

/* ------------------------------------------- */
/* 2. СЕКЦИЯ "ПРЕИМУЩЕСТВА"                    */
/* ------------------------------------------- */
.секция-преимущества { background-color: var(--цвет-серый-фон); }
.сетка-преимуществ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.карточка-преимущества { position: relative; padding: 2.5rem 2rem; background: white; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; transition: var(--переход-быстрый); }
.карточка-преимущества:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.карточка-преимущества::before { content: '0' counter(card-counter); counter-increment: card-counter; position: absolute; top: -20px; right: 10px; font-size: 6rem; font-weight: 700; transition: var(--переход-быстрый); z-index: 0; background: var(--цвет-градиент); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.08; }
.карточка-преимущества:hover::before { transform: rotate(-10deg) scale(1.1); opacity: 0.12; }
.карточка-преимущества h3, .карточка-преимущества p { position: relative; z-index: 1; }
.карточка-преимущества h3 { font-size: 1.5rem; margin-bottom: 1rem; }
body { counter-reset: card-counter; }

/* ------------------------------------------- */
/* 3. СЕКЦИЯ "ПРОБЛЕМЫ И РЕШЕНИЯ"              */
/* ------------------------------------------- */
.сетка-сравнения { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.карточка-сравнения { position: relative; height: 340px; border-radius: 18px; background: white; box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; transition: box-shadow 0.4s ease; cursor: pointer; }
.заголовок-проблемы, .описание-проблемы, .панель-решения { position: absolute; box-sizing: border-box; width: 100%; left: 0; padding: 2rem; transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.заголовок-проблемы { top: 0; height: 90px; display: flex; align-items: center; gap: 1rem; z-index: 10; }
.заголовок-проблемы h3 { font-size: 1.4rem; margin: 0; }
.иконка-проблемы { position: relative; width: 30px; height: 30px; flex-shrink: 0; animation: problem-shake 2.5s cubic-bezier(.36,.07,.19,.97) infinite; }
.иконка-проблемы::after { content: '!'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #f44336; font-size: 36px; font-weight: 700; font-family: sans-serif; line-height: 1; }
.описание-проблемы { top: 90px; height: calc(100% - 90px); z-index: 5; }
.панель-решения { top: 90px; height: calc(100% - 90px); z-index: 15; background: rgba(248, 249, 250, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(20px); }
.панель-решения h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.панель-решения ul { list-style: none; padding-left: 0; }
.панель-решения li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.панель-решения li::before { content: '✓'; position: absolute; left: 0; color: var(--цвет-акцентный-синий); font-weight: 700; }
.кнопка-решение { position: absolute; bottom: 2rem; left: 2rem; padding: 0.6rem 1.2rem; border: 1px solid var(--цвет-акцентный-синий); color: var(--цвет-акцентный-синий); background: rgba(255, 255, 255, 0.8); border-radius: 50px; font-weight: 500; transition: all 0.3s ease; }
.кнопка-решение:hover { background: var(--цвет-акцентный-синий); color: white; }
.карточка-сравнения.is-active { box-shadow: 0 15px 50px rgba(0,0,0,0.15); }
.карточка-сравнения.is-active .панель-решения { opacity: 1; transform: translateY(0); }
.карточка-сравнения.is-active .описание-проблемы { filter: blur(5px); opacity: 0.5; transform: scale(0.98); }
.карточка-сравнения.is-active .заголовок-проблемы { opacity: 0.7; }
.карточка-сравнения.is-active .кнопка-решение { opacity: 0; pointer-events: none; }
@keyframes problem-shake { 10%, 90% { transform: translate3d(-1px, 0, 0) rotate(-1deg); } 20%, 80% { transform: translate3d(2px, 0, 0) rotate(2deg); } 30%, 50%, 70% { transform: translate3d(-2px, 0, 0) rotate(-2deg); } 40%, 60% { transform: translate3d(2px, 0, 0) rotate(2deg); } }

/* ------------------------------------------- */
/*
==========================================================================
    ПОЛНЫЙ КОД ДЛЯ СЕКЦИЯ "ГЕОГРАФИЯ"
    Версия: Финальная, с надежной адаптивностью
==========================================================================
*/

/* ------------------------------------------- */
/* 4. СЕКЦИЯ "ГЕОГРАФИЯ"                       */
/* ------------------------------------------- */
.секция-гео { 
    padding: 5rem 0; 
    background-color: var(--цвет-серый-фон, #f8f9fa); 
    overflow-x: hidden; /* Предотвращает случайный горизонтальный скролл */
}

.гео-контейнер { 
    /* Добавляем ограничители для корректной работы на всех экранах */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;

    /* Ваши оригинальные стили для десктопа */
    display: grid; 
    grid-template-columns: 40% 60%; 
    gap: 3rem; 
    align-items: center; 
}

.гео-контент-колонка .заголовок-секции, 
.гео-контент-колонка .подзаголовок-секции { 
    text-align: left; 
    margin-left: 0; 
    margin-right: 0; 
}

.rf-map { 
    position: relative; 
}

.rf-map svg { 
    width: 100%; 
    height: auto; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); 
    position: relative; 
    z-index: 1; 
}

.rf-map path { 
    stroke: var(--цвет-серый-фон, #f8f9fa); 
    stroke-width: 1; 
    fill: #337AB7; 
    transition: fill 0.2s ease; 
}

.rf-map path:hover { 
    fill: #0056b3; 
}

.rf-map .district { 
    display: none; 
    position: absolute; 
    z-index: 5; 
}

.rf-map .district span { 
    position: absolute; 
    top: 20px; 
    left: 10px; 
    font-size: 14px; 
    font-weight: bold; 
    color: #337AB7; 
    background: rgba(255,255,255,0.9); 
    padding: 5px 10px; 
    border-radius: 4px; 
    pointer-events: none; 
    white-space: nowrap; 
}

.rf-map.open .district span { 
    color: #FFF; 
    background: rgba(0,0,0,0.5); 
}

.rf-map .close-district { 
    opacity: 0; 
    z-index: 6; 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    width: 40px; 
    height: 40px; 
    font-size: 40px; 
    color: #fff; 
    cursor: pointer; 
    transition: opacity 1s; 
    pointer-events: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.rf-map.open .close-district { 
    opacity: 1; 
    pointer-events: initial; 
}

.dropfill { 
    fill: #a3c9e9 !important; 
}

.mainfill { 
    fill: #1d4567 !important; 
}

.sro-carousel-wrapper { 
    width: 100%; 
    margin-top: 2.5rem; 
    overflow: hidden; 
    position: relative; 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}

.sro-carousel-track { 
    display: flex; 
    width: calc(300px * 16); 
    animation: scroll-sro-cards 65s linear infinite; 
}

.sro-carousel-wrapper:hover .sro-carousel-track { 
    animation-play-state: paused; 
}

.sro-advantage-card { 
    flex-shrink: 0; 
    width: 280px; 
    margin-right: 20px; 
    padding: 1.5rem 1.75rem; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    text-decoration: none; 
    color: inherit; 
}

.sro-advantage-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.sro-advantage-card h3 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    line-height: 1.4; 
    margin-bottom: 0.5rem; 
    min-height: 3em; 
}

.sro-advantage-card p { 
    font-size: 0.85rem; 
    color: #6b7280; 
}

@keyframes scroll-sro-cards { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}


/* 
==========================================================================
    АДАПТИВНОСТЬ ДЛЯ СЕКЦИИ "ГЕОГРАФИЯ"
    (Гарантированно работающий метод)
==========================================================================
*/
@media (max-width: 992px) {
    /* 1. Отключаем сетку и делаем контейнер обычным блоком.
       Это заставит дочерние колонки автоматически встать друг под другом. */
    .гео-контейнер {
        display: block;
    }

    /* 2. Добавляем отступ для карты, которая теперь находится под текстовым блоком. */
    .гео-карта-колонка {
        margin-top: 3rem;
    }
    
    /* 3. Центрируем содержимое колонки с текстом. */
    .гео-контент-колонка,
    .гео-контейнер .заголовок-секции, 
    .гео-контейнер .подзаголовок-секции {
        text-align: center;
    }
}
/* ------------------------------------------- */
/* 5. СЕКЦИЯ "ЭТАПЫ РАБОТЫ"                    */
/* ------------------------------------------- */
.секция-этапы { background-color: var(--цвет-серый-фон); }
.сетка-этапов-колонки { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 1100px; margin: 0 auto; }
.карточка-этапа-колонки { display: flex; align-items: center; gap: 1.5rem; background: white; padding: 2rem; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.карточка-этапа-колонки:hover { transform: translateY(-8px); box-shadow: 0 18px 50px rgba(0,0,0,0.12); }
.номер-колонки { font-size: 4.5rem; font-weight: 700; line-height: 1; background: var(--цвет-градиент); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.текст-колонки { padding-left: 1.5rem; border-left: 2px solid #e2e8f0; }
.текст-колонки h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.текст-колонки p { font-size: 1rem; line-height: 1.6; margin: 0; }


/* -- 3. Секция "Проблемы и решения" (ФИНАЛЬНАЯ ВЕРСЯ С ИСПРАВЛЕНИЕМ КУРСОРА) -- */
.акцент-синий { color: var(--цвет-акцентный-синий); }
.сетка-сравнения {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.карточка-сравнения {
    position: relative;
    height: 340px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
    cursor: pointer; /* <-- ДОБАВЛЕНО ЭТО ПРАВИЛО */
}

/* Элементы внутри карточки */
.заголовок-проблемы, .описание-проблемы, .панель-решения {
    position: absolute;
    width: 100%;
    left: 0;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 1. Заголовок Проблемы */
.заголовок-проблемы {
    top: 0; height: 90px;
    display: flex; align-items: center; 
    gap: 1rem;
    z-index: 10;
}
.заголовок-проблемы h3 { font-size: 1.4rem; color: inherit; margin: 0; } 

/* Анимированная иконка проблемы */
.иконка-проблемы {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    animation: problem-shake 2.5s cubic-bezier(.36,.07,.19,.97) infinite;
}
.иконка-проблемы::after {
    content: '!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f44336;
    font-size: 36px;
    font-weight: 700;
    font-family: sans-serif;
    line-height: 1;
}
@keyframes problem-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0) rotate(-1deg); }
    20%, 80% { transform: translate3d(2px, 0, 0) rotate(2deg); }
    30%, 50%, 70% { transform: translate3d(-2px, 0, 0) rotate(-2deg); }
    40%, 60% { transform: translate3d(2px, 0, 0) rotate(2deg); }
}

/* 2. Описание Проблемы */
.описание-проблемы { top: 90px; height: calc(100% - 90px); z-index: 5; }

/* 3. Панель Решения */
.панель-решения {
    top: 90px; height: calc(100% - 90px); z-index: 15;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
}
.панель-решения h3 { font-size: 1.4rem; margin-bottom: 1rem; color: inherit; }
.панель-решения ul { list-style: none; padding-left: 0; }
.панель-решения li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.панель-решения li::before { content: '✓'; position: absolute; left: 0; color: var(--цвет-акцентный-синий); font-weight: 700; }

/* Кнопка "Узнать подробнее" */
.кнопка-решение {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--цвет-акцентный-синий);
    color: var(--цвет-акцентный-синий);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-weight: 500;
    /* Убрали курсор отсюда, так как он теперь на всей карточке */
    transition: all 0.3s ease;
}
.кнопка-решение:hover {
    background: var(--цвет-акцентный-синий);
    color: white;
}

/* -- АНИМАЦИЯ ЧЕРЕЗ КЛАСС .is-active -- */
.карточка-сравнения.is-active { box-shadow: 0 15px 50px rgba(0,0,0,0.15); }
.карточка-сравнения.is-active .панель-решения { opacity: 1; transform: translateY(0); }
.карточка-сравнения.is-active .описание-проблемы { filter: blur(5px); opacity: 0.5; transform: scale(0.98); }
.карточка-сравнения.is-active .заголовок-проблемы { opacity: 0.7; }
.карточка-сравнения.is-active .кнопка-решение { opacity: 0; pointer-events: none; }

/* -- Адаптивность -- */
@media (max-width: 992px) {
    .сетка-сравнения { grid-template-columns: 1fr; }
}

/* -- 4. Секция "Этапы работы" -- */
.секция-этапы { background-color: var(--цвет-серый-фон); }
.сетка-этапов-колонки { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 1100px; margin: 0 auto; }
.карточка-этапа-колонки { display: flex; align-items: center; gap: 1.5rem; background: white; padding: 2rem; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.карточка-этапа-колонки:hover { transform: translateY(-8px); box-shadow: 0 18px 50px rgba(0,0,0,0.12); }
.номер-колонки { font-size: 4.5rem; font-weight: 700; line-height: 1; background: var(--цвет-градиент); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-emphasis-color: transparent; }
.текст-колонки { padding-left: 1.5rem; border-left: 2px solid #e2e8f0; }
.текст-колонки h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.текст-колонки p { font-size: 1rem; line-height: 1.6; margin: 0; }


/* -- 5. Секция "Доверие" -- */
.секция-доверие { background-color: #fff; }
.контейнер-доверия-коллаж { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.доверие-текст-коллаж h2 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.3; }
.доверие-текст-коллаж p { font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 2.5rem; }
.доверие-коллаж-wrapper { position: relative; height: 450px; perspective: 1000px; }
.коллаж-фото { position: absolute; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); object-fit: cover; width: 300px; height: 420px; }
.анимированная-секция .коллаж-фото { opacity: 0; transform: translateZ(-50px) rotate(0deg); }
.анимированная-секция.is-visible .фото-1 { opacity: 1; top: 0; left: 0; transform: rotate(-10deg); transition-delay: 0.1s; }
.анимированная-секция.is-visible .фото-2 { opacity: 1; top: 50px; left: 50%; transform: translateX(-50%) rotate(5deg) translateZ(20px); z-index: 2; transition-delay: 0.2s; }
.анимированная-секция.is-visible .фото-3 { opacity: 1; top: 20px; right: 0; transform: rotate(12deg); transition-delay: 0.3s; }
.доверие-коллаж-wrapper:hover .коллаж-фото { box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.доверие-коллаж-wrapper .коллаж-фото:hover { transform: scale(1.1) translateZ(50px) !important; z-index: 3; }
.доверие-коллаж-wrapper:hover .коллаж-фото:not(:hover) { opacity: 0.8; filter: grayscale(50%); }



/* -- 7. Секция "Возможности" (Новая версия с анимациями) -- */
.секция-возможности-классик { padding: 6rem 0; background-color: var(--цвет-серый-фон, #f8f9fa); }
.интерактив-классик { max-width: 1100px; margin: 0 auto; }
.классик-вкладки { display: flex; justify-content: space-around; border-bottom: 1px solid #dee2e6; }
.классик-вкладка { padding: 1rem 0; cursor: pointer; position: relative; color: #6c757d; font-weight: 500; font-size: 1.1rem; flex-grow: 1; text-align: center; transition: color 0.3s ease; }
.классик-вкладка:hover { color: #343a40; }
.классик-вкладка.is-active { color: var(--цвет-акцентный-синий, #007BFF); }
.прогресс-бар-классик { position: absolute; bottom: -1px; left: 0; height: 3px; width: 0; background: var(--цвет-градиент, linear-gradient(90deg, #007BFF, #00C6FF)); }
.классик-вкладка.is-active .прогресс-бар-классик { width: 100%; transition: width 2s linear; }
.классик-контент-панель { position: relative; padding: 4rem 0; min-height: 450px; }
.классик-контент-панель .контент-элемент { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: absolute; top: 4rem; left: 0; right: 0; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s; }
.классик-контент-панель .контент-элемент.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.классик-контент-панель .текст-описание h3 { font-size: 2.2rem; margin-top: 0; margin-bottom: 1.5rem; line-height: 1.3; }
.классик-контент-панель .текст-описание p { font-size: 1.1rem; line-height: 1.7; color: #495057; margin: 0; }
.классик-контент-панель .текст-описание .кнопка { margin-top: 2.5rem; }
.классик-контент-панель .визуал-описание { /* Этот класс остается для структуры */ }
@media (max-width: 992px) {
    .классик-вкладки { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
    .классик-вкладки::-webkit-scrollbar { display: none; }
    .классик-вкладка { flex-shrink: 0; flex-grow: 0; padding: 1rem 1.5rem; font-size: 1rem; }
    .классик-контент-панель .контент-элемент { grid-template-columns: 1fr; text-align: center; top: 3rem; left: 1rem; right: 1rem; }
    .классик-контент-панель .визуал-описание { display: none; }
    .классик-контент-панель { min-height: 300px; padding: 0; }
}
@media (max-width: 576px) {
    .классик-контент-панель .текст-описание h3 { font-size: 1.8rem; }
    .классик-контент-панель { min-height: 320px; }
}
/* --- НОВЫЕ СТИЛИ ДЛЯ УЛУЧШЕННЫХ АНИМАЦИЙ --- */
.animation-wrapper { display: flex; align-items: center; justify-content: center; height: 380px; background: #f0f3f8; border-radius: 12px; perspective: 1000px; }
.anim-autofill-v2 { position: relative; width: 300px; height: 300px; }
.anim-autofill-v2 .doc-outline { width: 260px; height: 320px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: absolute; top: -10px; left: 20px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.anim-autofill-v2 .field { background: #e9ecef; border-radius: 4px; }
.anim-autofill-v2 .field.f2 { grid-column: 1 / 3; }
.anim-autofill-v2 .field.f3 { grid-column: 1 / 3; height: 80px; }
.anim-autofill-v2 .data-point { width: 10px; height: 10px; background: var(--цвет-акцентный-синий); border-radius: 50%; position: absolute; opacity: 0; }
.контент-элемент.is-active .d1 { animation: fly-to-field 0.5s ease-out 0.3s forwards; --tx: 70px; --ty: 20px; }
.контент-элемент.is-active .d2 { animation: fly-to-field 0.5s ease-out 0.6s forwards; --tx: 120px; --ty: 80px; }
.контент-элемент.is-active .d3 { animation: fly-to-field 0.5s ease-out 0.9s forwards; --tx: 100px; --ty: 140px; }
@keyframes fly-to-field { 0% { opacity: 1; transform: translate(0, 0); } 99% { opacity: 1; transform: translate(var(--tx), var(--ty)); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)); } }
.контент-элемент.is-active .field { animation: field-filled 0.1s linear forwards; animation-delay: 0.8s; }
.контент-элемент.is-active .f2 { animation-delay: 1.1s; }
.контент-элемент.is-active .f3 { animation-delay: 1.4s; }
@keyframes field-filled { to { background: #dbeafe; } }
.anim-dashboard-v2 { width: 320px; height: 240px; position: relative; transform: rotateX(10deg) rotateY(-15deg); transform-style: preserve-3d; }
.anim-dashboard-v2 > div { position: absolute; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); background: #fff; transform: translateZ(0); }
.anim-dashboard-v2 .main-panel { width: 100%; height: 100%; }
.anim-dashboard-v2 .profile-card { top: 20px; right: -30px; width: 120px; height: 60px; background: #e9ecef; }
.anim-dashboard-v2 .chart { bottom: -20px; width: 140px; height: 100px; }
.anim-dashboard-v2 .pie { left: -30px; background: conic-gradient(var(--цвет-акцентный-синий) 0% 40%, #a5b4fc 40% 75%, #e0e7ff 75% 100%); }
.anim-dashboard-v2 .bar { right: 20px; display: flex; align-items: flex-end; gap: 10px; padding: 10px; }
.anim-dashboard-v2 .bar-item { flex: 1; background: #a5b4fc; }
.контент-элемент.is-active .main-panel { animation: slide-up 0.5s ease-out 0.2s forwards; }
.контент-элемент.is-active .profile-card { animation: slide-up 0.5s ease-out 0.4s forwards; --tz: 40px; }
.контент-элемент.is-active .pie { animation: slide-up 0.5s ease-out 0.6s forwards; --tz: 30px; }
.контент-элемент.is-active .bar { animation: slide-up 0.5s ease-out 0.7s forwards; --tz: 50px; }
@keyframes slide-up { from { opacity: 0; transform: translateY(30px) translateZ(var(--tz, 0)); } to { opacity: 1; transform: translateY(0) translateZ(var(--tz, 0)); } }
.контент-элемент.is-active .b1 { animation: bar-grow 0.5s ease-out 1s forwards; --h: 50%; }
.контент-элемент.is-active .b2 { animation: bar-grow 0.5s ease-out 1.2s forwards; --h: 80%; }
.контент-элемент.is-active .b3 { animation: bar-grow 0.5s ease-out 1.4s forwards; --h: 30%; }
@keyframes bar-grow { from { height: 0; } to { height: var(--h); } }
.anim-globe-v2 { position: relative; width: 250px; height: 250px; }
.anim-globe-v2 .globe { width: 180px; height: 180px; border-radius: 50%; background: #e0e7ff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow: hidden; }
.anim-globe-v2 .globe::before { content: ''; position: absolute; width: 100%; height: 100%; border: 2px dashed var(--цвет-акцентный-синий); border-radius: 50%; }
.контент-элемент.is-active .globe::before { animation: rotate 20s linear infinite; }
.anim-globe-v2 .node { width: 20px; height: 20px; background: #fff; border: 3px solid var(--цвет-акцентный-синий); border-radius: 50%; position: absolute; }
.контент-элемент.is-active .node { animation: node-pulse 1.5s ease-in-out infinite alternate; }
.anim-globe-v2 .n1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.anim-globe-v2 .n2 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.3s; }
.anim-globe-v2 .n3 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.6s; }
.anim-globe-v2 .n4 { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 0.9s; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes node-pulse { from { box-shadow: 0 0 0 0 var(--цвет-акцентный-синий); } to { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); } }
.anim-filter-v2 { width: 240px; height: 240px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; }
.anim-filter-v2 .grid-item { border-radius: 8px; background: #ccc; }
.anim-filter-v2 .g2, .g5, .g8 { background: var(--цвет-акцентный-синий); }
.anim-filter-v2 .filter-beam { position: absolute; top: 0; left: -300px; width: 100px; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0)); }
.контент-элемент.is-active .filter-beam { animation: sweep 2s ease-in-out 0.5s forwards; }
.контент-элемент.is-active .grid-item { animation: fade-out 0.5s linear 1.5s forwards; }
.контент-элемент.is-active .g2, .контент-элемент.is-active .g5, .контент-элемент.is-active .g8 { animation: none; }
@keyframes sweep { to { left: 300px; } }
@keyframes fade-out { to { opacity: 0.2; transform: scale(0.9); } }
.anim-kanban-v2 { width: 320px; height: 240px; display: flex; gap: 20px; }
.anim-kanban-v2 .kanban-col { width: 150px; height: 100%; background: #e9ecef; border-radius: 8px; position: relative; }
.anim-kanban-v2 .kanban-card { width: 130px; height: 60px; background: #fff; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); position: absolute; left: 30px; top: 20px; }
.anim-kanban-v2 .c2 { top: 90px; }
.anim-kanban-v2 .c3 { top: 160px; }
.контент-элемент.is-active .c1 { animation: move-card 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards; }
.контент-элемент.is-active .c3 { animation: move-card 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 1s forwards; }
@keyframes move-card { to { left: 190px; background: #dcfce7; } }
.anim-stamp-v2 { width: 250px; height: 250px; position: relative; }
.anim-stamp-v2 .doc { width: 180px; height: 240px; background: #fff; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); position: absolute; bottom: 0; left: 50%; transform-origin: bottom center; }
.anim-stamp-v2 .d1 { transform: translateX(-50%) rotate(-10deg); }
.anim-stamp-v2 .d2 { transform: translateX(-50%) rotate(0deg); }
.anim-stamp-v2 .d3 { transform: translateX(-50%) rotate(10deg); }
.anim-stamp-v2 .stamp { width: 80px; height: 80px; border: 5px solid var(--цвет-акцентный-синий); color: var(--цвет-акцентный-синий); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: bold; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(3); opacity: 0; }
.контент-элемент.is-active .doc { animation: gather-docs 0.6s ease-out 0.3s forwards; }
.контент-элемент.is-active .stamp { animation: stamp-it 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) 1s forwards; }
@keyframes gather-docs { to { transform: translateX(-50%) rotate(0deg); } }
@keyframes stamp-it { 0% { transform: translate(-50%, -50%) scale(3); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* -- 6. Секция "Тарифы" -- */
.тарифная-сетка-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 950px; margin: 0 auto; }
.тарифная-карточка { background: white; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.07); border: 2px solid transparent; padding: 2.5rem; display: flex; flex-direction: column; transition: all 0.3s ease; }
.тарифная-карточка:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.тариф-заголовок { text-align: center; margin-bottom: 1.5rem; min-height: 50px; }
.тариф-заголовок h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.цена-блок { text-align: center; margin-bottom: 1.5rem; }
.цена-значение { font-size: 2.8rem; font-weight: 700; color: var(--цвет-акцентный-синий); }
.цена-период { font-size: 1.1rem; font-weight: 400; color: #555; display: block; }
.тариф-преимущества { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid #e9ecef; }
.тариф-преимущества ul { list-style: none; padding: 0; margin: 0 0 2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.тариф-преимущества li { display: flex; align-items: flex-start; gap: 0.75rem; line-height: 1.4; }
.иконка-пункта { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; background-color: #e6f4ea; color: #28a745; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.иконка-пункта::before { content: '✓'; }
.кнопка-выбора-тарифа { width: 100%; padding: 1rem; font-size: 1.1rem; }
.тарифная-карточка.is-recommended { border-color: var(--цвет-акцентный-синий); position: relative; }
.рекомендация-значок { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--цвет-градиент); color: white; padding: 0.5rem 1.5rem; border-radius: 50px; font-size: 0.9rem; font-weight: 500; text-transform: uppercase; }
.внутренний-переключатель-контейнер { display: flex; justify-content: center; align-items: center; gap: 0.8rem; margin-bottom: 2rem; font-weight: 500; color: #555; }
.внутренний-переключатель { position: relative; display: inline-block; width: 50px; height: 28px; }
.внутренний-переключатель input { display: none; }
.переключатель-слайдер { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 28px; transition: .4s; }
.переключатель-слайдер:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; border-radius: 50%; transition: .4s; }
input:checked + .переключатель-слайдер { background-color: var(--цвет-акцентный-синий); }
input:checked + .переключатель-слайдер:before { transform: translateX(22px); }
.выгода-пункт { transition: all 0.4s ease; padding: 0.75rem; border-radius: 12px; background-color: #f8f9fa; color: #6c757d; }
.выгода-пункт .иконка-пункта { background-color: #e9ecef; }
.выгода-пункт strong { color: #6c757d; }
.is-yearly-selected .выгода-пункт { background-color: #e6f4ea; color: #067647; }
.is-yearly-selected .выгода-пункт .иконка-пункта { background-color: #28a745; color: white; }
.is-yearly-selected .выгода-пункт strong { color: #067647; }

/*
==========================================================================
    ИСПОЛЬЗУЙТЕ ЭТОТ КОД
    
    Полностью замените ваш блок "ОБЩАЯ АДАПТИВНОСТЬ" на этот.
    Здесь исправлены отступы и проблема с обрезкой фотографий.
==========================================================================
*/

/* 
   ИСПРАВЛЕНИЕ №1: Увеличиваем отступ для секции "Как работает система"
   Этот стиль нужно добавить ПЕРЕД блоком @media, чтобы он применялся всегда.
*/
.секция-возможности-классик {
    /* Значительно увеличиваем верхний отступ, чтобы секция "дышала" */
    padding-top: 12rem; 
}

/* 
   ИСПРАВЛЕНИЕ №2: Разрешаем фотографиям выходить за пределы блока
   Это главный фикс для проблемы с обрезкой.
*/
.секция-доверие {
    /* Отменяем возможное свойство overflow: hidden у родителя, 
       которое обрезало повернутые фотографии. !important гарантирует, 
       что это правило сработает. */
    overflow: visible !important;
}


/* --- ОБЩАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (ФИНАЛЬНАЯ ВЕРСИЯ v5 С ИСПРАВЛЕНИЯМИ) --- */

/* ------------------------------------------- */
/* 1. Планшеты и крупные устройства (до 992px) */
/* ------------------------------------------- */
@media (max-width: 992px) {
    /* Стили для секции Герой */
    .герой-контейнер-гибрид { grid-template-columns: 1fr; text-align: center; }
    .герой-визуал-фон { display: none; }
    .герой-действия, .герой-соц-доказательство { justify-content: center; }
    .герой-список-преимуществ { display: inline-flex; text-align: left; }
    .доказательство-элемент { text-align: center; }

    /* === ИСПРАВЛЕНИЕ №2 (продолжение): Адаптивность секции "Доверие" === */
    .контейнер-доверия-коллаж { grid-template-columns: 1fr; text-align: center; }
    .доверие-текст-коллаж { margin-bottom: 3rem; order: -1; }
    .доверие-коллаж-wrapper {
        /* Устанавливаем достаточную минимальную высоту, чтобы контент не схлопывался */
        min-height: 400px; 
        height: auto;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    .коллаж-фото { 
        max-width: 250px; 
    }
    /* === КОНЕЦ ИСПРАВЛЕНИЯ №2 === */

    /* Стили для других секций */
    .сетка-этапов-колонки { gap: 1.5rem; }
    .номер-колонки { font-size: 3rem; }
    .текст-колонки { padding-left: 1rem; }
    .сетка-сравнения { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* 2. Малые планшеты и крупные телефоны (до 768px) */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Уменьшаем отступ для "Как работает система" на мобильных */
    .секция-возможности-классик {
        padding-top: 6rem;
    }

    /* Кнопки в секции "Герой" */
    .герой-действия { flex-direction: column; align-items: center; gap: 1rem; }
    .герой-действия .кнопка { width: 100%; max-width: 350px; }

    /* Основные сетки в одну колонку */
    .сетка-преимуществ, .сетка-этапов-колонки, .тарифная-сетка-2 { grid-template-columns: 1fr; }

    /* Общие отступы секций */
    .section, .секция-герой-гибрид, .секция-преимущества { padding: 40px 15px; }
}

/* ------------------------------------------------- */
/* 3. Стандартные смартфоны (до 576px) */
/* ------------------------------------------------- */
@media (max-width: 576px) {
    /* Уменьшаем заголовки */
    h1, .герой-заголовок { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* Адаптация соц. доказательств */
    .герой-соц-доказательство { flex-wrap: wrap; gap: 1.5rem; }
    .доказательство-элемент strong { font-size: 2rem; }
    
    /* Уменьшаем размеры остального текста */
    .герой-подзаголовок { font-size: 1.1rem; }
    .герой-список-преимуществ li { font-size: 0.95rem; }

    /* === ИСПРАВЛЕНИЕ №2 (продолжение): Секция отзывов на смартфонах === */
    .доверие-коллаж-wrapper { 
        min-height: 320px;
    }
    .коллаж-фото { 
        max-width: 200px;
    }
    /* === КОНЕЦ ИСПРАВЛЕНИЯ №2 === */

    .номер-колонки { font-size: 2.5rem; }
}

/* ------------------------------------------------- */
/* 4. Маленькие смартфоны (до 420px, как iPhone 10) */
/* ------------------------------------------------- */
@media (max-width: 420px) {
    /* Финальное уменьшение шрифтов */
    h1, .герой-заголовок { font-size: 2.1rem; line-height: 1.25; }
    h2 { font-size: 1.8rem; }
    .герой-подзаголовок { font-size: 1rem; }
    .герой-список-преимуществ li { font-size: 0.9rem; }
    
    .герой-соц-доказательство { gap: 1rem; }
    .доказательство-элемент strong { font-size: 2rem; }
    .доказательство-элемент span { font-size: 0.9rem; }

    /* === ИСПРАВЛЕНИЕ №2 (продолжение): Секция отзывов на малых смартфонах === */
    .доверие-текст-коллаж { 
        margin-bottom: 2.5rem;
    }
    .доверие-текст-коллаж h2 {
        font-size: 1.7rem;
    }
    .доверие-коллаж-wrapper { 
        min-height: 280px; 
    }
    .коллаж-фото { 
        max-width: 150px; 
        width: 150px;
        height: auto;
    }
    /* === КОНЕЦ ИСПРАВЛЕНИЯ №2 === */

    /* Уменьшаем отступы секций */
    .section, .секция-герой-гибрид, .секция-преимущества { padding: 30px 15px; }
}