/* Базовые сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.2;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл на мобилках */
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Блок: Header (Шапка)
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

.header__logo {
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10; /* Чтобы логотип был поверх мобильного меню */
}

.header__nav {
    display: flex;
    gap: 40px;
}

.header__link {
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header__link:hover {
    color: #777777;
}

/* Скрываем бургер на десктопе */
.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.header__burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

/* =========================================
   Блок: Hero Section (Главный экран)
   ========================================= */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    gap: 50px;
}

.hero-section__content {
    flex: 0 1 50%;
    text-align: left;
}

.hero-section__title {
    font-size: 44px;
    font-weight: 400;
    margin-bottom: 45px;
    letter-spacing: -0.5px;
}

.hero-section__subtitle {
    font-size: 20px;
    color: #444444;
    margin-bottom: 50px;
    line-height: 1.5;
}

.hero-section__button {
    background-color: #585452;
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hero-section__button:hover {
    background-color: #43403e;
}

.hero-section__media {
    flex: 0 1 45%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section__image {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Видео в герое: адаптивный размер и обрезка при необходимости */
.hero-section__video {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =========================================
   Блок: Video Player
   ========================================= */

/* Оверлей паузы */
.vp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

.vp-overlay.vp-hidden {
    opacity: 0;
    pointer-events: none;
}

.vp-overlay__btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding-left: 4px;
    margin-bottom: 14px;
}

.vp-overlay__btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.08);
}

.vp-overlay__label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Панель управления */
.vp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    padding: 28px 14px 12px;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.hero-section__media:hover .vp-controls {
    opacity: 1;
    pointer-events: all;
}

/* Прогресс-бар */
.vp-progress {
    margin-bottom: 10px;
}

.vp-progress__bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #ffffff var(--vp-fill, 0%), rgba(255,255,255,0.28) var(--vp-fill, 0%));
    outline: none;
    cursor: pointer;
    transition: height 0.15s ease;
}

.vp-progress__bar:hover {
    height: 6px;
}

.vp-progress__bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.vp-progress__bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Строка кнопок */
.vp-controls__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vp-spacer {
    flex: 1;
}

.vp-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.vp-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.vp-btn:focus-visible {
    outline: 2px solid rgba(255,255,255,0.7);
    outline-offset: 2px;
}

/* Время */
.vp-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vp-time__sep {
    color: rgba(255,255,255,0.55);
}

/* Громкость */
.vp-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vp-volume__bar {
    -webkit-appearance: none;
    appearance: none;
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #ffffff var(--vp-vol, 100%), rgba(255,255,255,0.28) var(--vp-vol, 100%));
    outline: none;
    cursor: pointer;
}

.vp-volume__bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.vp-volume__bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
}

/* =========================================
   Адаптив (Планшеты)
   ========================================= */
@media (max-width: 992px) {
    .header__nav {
        gap: 20px;
    }
    
    .hero-section {
        flex-direction: column;
        /* Контейнер остаётся колонкой, выравнивание текста контролируется для контента отдельно */
        gap: 40px;
        margin-top: 40px;
    }
    
    .hero-section__content,
    .hero-section__media {
        flex: 1 1 100%;
    }

    /* На планшетах и меньше хотим, чтобы заголовки оставались выровнены влево */
    .hero-section__content {
        text-align: left;
    }

    .hero-section__title {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

/* =========================================
   Адаптив (Телефоны)
   ========================================= */
@media (max-width: 768px) {
    .header {
        padding: 20px 0;
    }

    .header__logo {
        font-size: 18px;
    }

    /* Для мобильных оставляем общий контейнер без изменений; точечное уменьшение padding для формы ниже */

    /* Мобильное бургер-меню */
    .header__burger {
        display: flex;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Скрываем меню */
        transition: clip-path 0.3s ease-in-out;
        z-index: 9;
        gap: 20px;
    }

    /* Класс активности для показа меню */
    .header__nav.is-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    /* Анимация крестика для бургера */
    .header__burger.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .header__burger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .header__burger.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Главный экран */
    .hero-section__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero-section__title br {
        display: none; /* Убираем жесткие переносы на мобилках */
    }

    .hero-section__subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-section__subtitle br {
        display: none;
    }

    .hero-section__button {
        width: 100%; /* Кнопка на всю ширину на телефоне */
        font-size: 16px;
    }

    .hero-section__sound-text {
        font-size: 20px;
        margin-bottom: 20px;
    }
    /* На телефонах увеличиваем видимое видео */
    .hero-section__video {
        max-width: 100%;
        width: 100%;
        max-height: 520px; /* больше на телефонах */
        height: auto;
    }

    /* Для очень узких экранов чуть уменьшаем, но всё ещё крупнее */
}

@media (max-width: 480px) {
    .hero-section__video {
        max-height: 420px;
    }
}

/* =========================================
   Блок: About Section (О нас и партнеры)
   ========================================= */
.about-section {
    /* Архитектурный фон с сильным белым засветом (оверлеем) */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), 
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 100px 0;
    margin-top: 80px;
}

/* --- Информационный блок --- */
.about-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
}

.about-info__title {
    flex: 0 0 300px; /* Фиксированная ширина для колонки заголовка */
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
}

.about-info__text-content {
    flex: 1;
    max-width: 800px;
}

.about-info__text-content p {
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-info__text-content p:last-child {
    margin-bottom: 0;
}

/* --- Блок Партнеров --- */
.partners__title {
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.partner-card {
    background-color: #363636;
    padding: 38px 20px;
    min-height: 260px;
    border-radius: 3px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card__icon {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}

.partner-card__text {
    font-size: 11px;
    color: #cccccc; /* Слегка приглушенный белый для читаемости */
    line-height: 1.5;
    max-width: 88%;
}

/* =========================================
   Адаптив для нового блока (добавь к существующим медиазапросам)
   ========================================= */

/* Планшеты */
@media (max-width: 992px) {
    .about-info {
        flex-direction: column;
        gap: 20px;
    }

    .about-info__title {
        flex: none;
        width: 100%;
    }

    .partners__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Последняя карточка занимает всю ширину на планшете */
    .partner-card:last-child {
        grid-column: 1 / -1;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
        margin-top: 40px;
    }

    .partners__grid {
        grid-template-columns: 1fr; /* Одна колонка на мобилках */
    }

    .partner-card {
        padding: 32px 18px;
        min-height: auto;
    }
}

/* Уменьшаем горизонтальные отступы только в блоке верификации на мобильных */
@media (max-width: 768px) {
    .verification-section .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .verification-card {
        padding: 20px 12px; /* чуть меньше внутренних отступов у карточки формы */
    }
    .verification-card__body {
        padding: 6px 6px 0 6px;
    }
}
/* =========================================
   Блок: Verification Section (Форма проверки)
   ========================================= */
.verification-section {
    padding: 60px 0;
    background-color: #ffffff; /* Светлый фон за пределами карточки для контраста тени */
}

.verification-section.hidden {
    display: none !important;
}

.verification-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.08);
    max-width: 900px; /* Ограничиваем ширину белой плашки */
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.verification-card__logo {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Обертка для центрирования контента формы */
.verification-card__body {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.verification-card__title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.verification-card__description {
    font-size: 14px;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- Сама Форма --- */
.verification-form {
    max-width: 440px;
    margin: 0 auto;
    text-align: left; /* Возвращаем выравнивание по левому краю для инпутов */
}

.verification-form__group {
    margin-bottom: 20px;
}

.verification-form__label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
    padding-left: 2px;
}

/* Общие стили для инпутов */
.verification-form__input {
    width: 100%;
    background-color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 16px;
    font-size: 15px;
    color: #333333;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.verification-form__input::placeholder {
    color: #aaaaaa;
}

.verification-form__input:focus {
    border-color: #cccccc;
    background-color: #ffffff;
}

/* Кастомный враппер для телефона */
.verification-form__input-wrapper {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 6px;
    padding-left: 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Фокус на инпуте внутри враппера подсвечивает сам враппер */
.verification-form__input-wrapper:focus-within {
    border-color: #cccccc;
    background-color: #ffffff;
}

.verification-form__input-wrapper:focus-within .verification-form__input--phone {
    background-color: transparent;
}

.verification-form__phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #666666;
    user-select: none;
    border-right: 1px solid #e0e0e0;
    padding-right: 12px;
}

.verification-form__flag {
    font-size: 18px;
    line-height: 1;
}

.verification-form__caret {
    margin-top: 2px;
}

.verification-form__input--phone {
    flex: 1;
    background-color: transparent; /* Фон наследуется от враппера */
    padding-left: 12px;
}

.verification-form__input--phone:focus {
    border-color: transparent; /* Убираем рамку при фокусе, так как она есть у враппера */
}

/* Кнопка отправки */
.verification-form__submit {
    width: 100%;
    background-color: #4b4847; /* Темный цвет из макета */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.verification-form__submit:hover {
    background-color: #363433;
}

/* Применяем стили инпутов старой формы к новой вёрстке (form__input) */
.form-container-main .form__input {
    width: 100%;
    background-color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 16px;
    font-size: 15px;
    color: #333333;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-container-main .form__input::placeholder {
    color: #aaaaaa;
}

.form-container-main .form__input:focus {
    border-color: #cccccc;
    background-color: #ffffff;
}

/* Отступы для групп внутри новой формы */
.form-container-main .u-form-group {
    margin-bottom: 16px;
}

/* Кнопка отправки в новой форме — такой же стиль как у verification-form__submit */
.form-container-main .rf-form-button {
    width: 100%;
    background-color: #4b4847;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-container-main .rf-form-button:hover {
    background-color: #363433;
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */
@media (max-width: 768px) {
    .verification-section {
        padding: 40px 0px; /* Уменьшаем внешние отступы на мобилках */
    }

    .verification-card {
        padding: 30px 20px; /* Уменьшаем внутренние отступы карточки */
    }

    .verification-card__logo {
        text-align: center; /* Центрируем лого на мобилках */
        margin-bottom: 25px;
    }

    .verification-card__title {
        font-size: 24px;
    }

    .verification-card__description {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .verification-form__input {
        padding: 14px;
    }
    
    .verification-form__submit {
        padding: 16px;
        font-size: 16px;
    }
}
/* =========================================
   Блок: Stages Section (Этапы работы)
   ========================================= */
.stages-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.stages-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

/* --- Левая колонка (Инфо) --- */
.stages-info {
    flex: 0 0 42%; /* Занимает около 40% ширины */
    position: sticky; /* Бонус: при скролле длинного списка справа, заголовок будет "прилипать" (опционально) */
    top: 40px;
}

.stages-info__title {
    font-size: 34px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.stages-info__subtitle {
    font-size: 18px;
    color: #555555;
    line-height: 1.5;
}

/* --- Правая колонка (Список) --- */
.stages-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Элемент списка */
.stage-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

/* Квадратная плашка с номером */
.stage-item__badge {
    flex: 0 0 95px; /* Жестко фиксируем ширину */
    height: 95px;   /* Жестко фиксируем высоту для идеального квадрата */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Точные цвета со скриншота */
.stage-item__badge--step-1 {
    background-color: #6a6158; 
}

.stage-item__badge--step-2 {
    background-color: #3b3b3b;
}

.stage-item__badge--step-3 {
    background-color: #363636;
}

/* Контент этапа */
.stage-item__content {
    flex: 1;
    padding-top: 5px; /* Слегка опускаем текст, чтобы визуально выровнять по центру верхней части квадрата */
}

.stage-item__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.stage-item__text {
    font-size: 15px;
    color: #444444;
    line-height: 1.55;
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */

/* Планшеты (перестраиваем в колонку) */
@media (max-width: 992px) {
    .stages-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .stages-info {
        flex: none;
        width: 100%;
        position: static; /* Отключаем sticky на мобильных */
    }

    .stages-list {
        width: 100%;
    }
}

/* Телефоны (уменьшаем шрифты и отступы) */
@media (max-width: 768px) {
    .stages-section {
        padding: 50px 0;
    }

    .stages-info__title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .stages-info__subtitle {
        font-size: 16px;
    }

    /* Уменьшаем размер квадрата на телефонах */
    .stage-item {
        gap: 15px;
    }

    .stage-item__badge {
        flex: 0 0 70px;
        height: 70px;
        font-size: 13px;
    }

    .stage-item__title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .stage-item__text {
        font-size: 14px;
    }
}
/* =========================================
   Блок: Importance Section (Почему это важно)
   ========================================= */
.importance-section {
    /* Фоновое изображение как в предыдущем блоке, без боковых полей */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), 
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 90px 0;
}

/* Строка контента */
.importance-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 70px;
}

/* Убираем отступ у последней строки, чтобы section padding работал корректно */
.importance-row:last-child {
    margin-bottom: 0;
}

/* Левая колонка с заголовком */
.importance-row__title {
    flex: 0 0 320px; /* Фиксируем ширину для ровной вертикальной сетки */
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Правая колонка с текстом */
.importance-row__text {
    flex: 1;
    max-width: 800px;
}

.importance-row__text p {
    font-size: 15px;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.importance-row__text p:last-child {
    margin-bottom: 0;
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */

/* Планшеты */
@media (max-width: 992px) {
    .importance-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 50px;
    }

    .importance-row__title {
        flex: none;
        width: 100%;
        font-size: 24px;
    }

    .importance-row__text {
        max-width: 100%;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .importance-section {
        padding: 50px 0;
    }

    .importance-row {
        margin-bottom: 40px;
    }

    .importance-row__title {
        font-size: 20px;
    }

    .importance-row__text p {
        font-size: 14px;
    }
}
/* =========================================
   Блок: Ticker Section (Бегущая строка)
   ========================================= */
.ticker-section {
    background-color: #404040; /* Темно-серый цвет, как на скриншотах */
    color: #ffffff;
    overflow: hidden; /* Скрываем все, что выходит за пределы экрана */
    padding: 16px 0;
    position: relative;
    display: flex;
    white-space: nowrap;
}

/* Full-bleed ticker: растягиваем секцию на всю ширину окна */
.ticker-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ticker-inner {
    width: 100%;
    max-width: none; /* убираем ограничение, чтобы растянуть на всю ширину */
    margin: 0 auto;
    padding: 0 20px; /* выравниваем по основному контейнеру */
    overflow: visible; /* позволяем анимированному контенту доходить до краёв */
}

.ticker-wrapper {
    display: flex;
    width: fit-content;
    /* Уменьшаем скорость прокрутки: увеличиваем длительность анимации (80s вместо 40s) */
    animation: scroll-ticker 80s linear infinite;
}

/* Остановка анимации при наведении курсора (UX фича) */
.ticker-section:hover .ticker-wrapper {
    animation-play-state: paused;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 30px; /* Расстояние между текстом и точками */
    padding-right: 30px; /* Отступ перед началом дубликата, чтобы сохранить одинаковый интервал */
}

.ticker-text {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.ticker-dot {
    font-size: 20px; /* Делаем точку чуть крупнее */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Сама анимация:
  Сдвигает блок ровно на 50% (т.е. на ширину одного .ticker-content).
  Как только сдвиг достигает 50%, анимация мгновенно начинается с 0,
  создавая иллюзию бесконечного потока.
*/
@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */
@media (max-width: 768px) {
    .ticker-section {
        padding: 12px 0;
    }
    
    .ticker-text {
        font-size: 14px; /* Чуть уменьшаем текст на мобилках */
    }
    
    .ticker-content {
        gap: 20px;
        padding-right: 20px;
    }
}
/* =========================================
   Блок: Quiz Section (Опросник)
   ========================================= */
.quiz-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Легкий фон для контраста с белой карточкой */
}

.quiz-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* Чтобы шаги не выпадали за скругленные углы */
}

/* Скрытие неактивных шагов */
.quiz-step {
    display: none;
    padding: 50px;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.4s ease; /* Плавное появление шага */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-card__header {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.quiz-card__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 60px;
}

/* Колонка с вопросом */
.quiz-card__question-col {
    flex: 0 0 45%;
}

.quiz-card__question {
    font-size: 26px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Колонка с ответами */
.quiz-card__answers-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Отступы между плашками */
}

/* Стили кастомных радио-кнопок */
.quiz-option {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.quiz-option:hover {
    background-color: #f0f0f0;
}

/* Прячем дефолтный кружок браузера */
.quiz-option__input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Рисуем свой кружок */
.quiz-option__box {
    width: 20px;
    height: 20px;
    border: 1px solid #bbbbbb;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Внутренняя точка при выборе */
.quiz-option__box::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #4b4847;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

/* Состояние: выбрано */
.quiz-option__input:checked ~ .quiz-option__box {
    border-color: #4b4847;
}

.quiz-option__input:checked ~ .quiz-option__box::after {
    opacity: 1;
    transform: scale(1);
}

.quiz-option__input:checked ~ .quiz-option__text {
    font-weight: 500;
    color: #1a1a1a;
}

.quiz-option__text {
    font-size: 16px;
    color: #555555;
    line-height: 1.4;
}

/* Текстовый инпут для варианта "Другое" */
.quiz-option-text {
    background-color: #f7f7f7;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.quiz-option-text__input {
    width: 100%;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 20px;
    font-size: 16px;
    color: #333;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.quiz-option-text__input::placeholder {
    color: #999999;
}

.quiz-option-text__input:focus {
    background-color: #ffffff;
    border-color: #cccccc;
}

/* Футер квиза (Кнопки и счетчик) */
.quiz-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.quiz-card__counter {
    font-size: 14px;
    color: #888888;
}

.quiz-card__actions {
    display: flex;
    gap: 15px;
}

/* Кнопки навигации */
.quiz-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Кнопка НАЗАД */
.quiz-btn--prev {
    background-color: transparent;
    border: 1px solid #cccccc;
    width: 50px; /* Квадратная кнопка со стрелкой */
    padding: 0;
}

.quiz-btn--prev:hover:not(:disabled) {
    border-color: #999999;
}

.quiz-btn--prev:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Кнопка ДАЛЕЕ */
.quiz-btn--next,
.quiz-btn--submit {
    background-color: #4b4847;
    color: #ffffff;
    border: none;
    padding: 0 25px;
}

.quiz-btn--next:hover,
.quiz-btn--submit:hover {
    background-color: #363433;
}

/* Центрируем кнопку отправки в шаге 4 */
.quiz-step[data-step="4"] .quiz-btn--submit {
    display: flex;
    margin: 10px auto 0;
}

.quiz-step[data-step="4"] .quiz-card__footer {
    border-top: none !important;
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */
@media (max-width: 992px) {
    .quiz-card__body {
        flex-direction: column;
        gap: 30px;
    }
    
    .quiz-card__question-col,
    .quiz-card__answers-col {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .quiz-step {
        padding: 30px 20px;
    }

    .quiz-card__question {
        font-size: 22px;
    }

    .quiz-option {
        padding: 16px;
    }
    
    .quiz-option-text__input {
        padding: 16px;
    }

    .quiz-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .quiz-card__actions {
        width: 100%;
        justify-content: flex-end; /* Кнопки прижимаем вправо */
    }
}
/* =========================================
   Блок: Table Section (Таблица результатов)
   ========================================= */
.table-section {
    padding: 60px 0;
    background-color: #fcfcfc; /* Очень легкий серый/белый фон секции */
}

/* Обертка для внутреннего скролла */
.table-wrapper {
    max-height: 550px; /* Высота блока, после которой появится вертикальный скролл */
    overflow-y: auto;
    overflow-x: auto; /* Горизонтальный скролл для мобилок */
    border-radius: 8px; /* Скругление углов, чтобы смотрелось как карточка */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Легкая тень */
    background-color: #ffffff;
}

/* Кастомный скроллбар для webkit-браузеров (Chrome, Safari, Edge) */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Сама таблица */
.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* Фиксируем минимальную ширину, чтобы колонки не сжимались на мобилках */
    font-size: 14px;
}

/* Шапка таблицы */
.results-table th {
    background-color: #5d544f; /* Коричнево-серый цвет со скриншота */
    color: #ffffff;
    font-weight: 500;
    padding: 20px 15px;
    text-align: center;
    line-height: 1.3;
    position: sticky; /* Прилипающая шапка */
    top: 0;
    z-index: 10;
}

/* Ячейки таблицы */
.results-table td {
    padding: 20px 15px;
    text-align: center;
    color: #333333;
    border-bottom: 1px solid #eaeaea; /* Тонкая линия между строками */
    vertical-align: middle;
}

/* Убираем нижнюю рамку у последней строки */
.results-table tr:last-child td {
    border-bottom: none;
}

/* --- Цвета строк (зависят от статуса) --- */

/* Строка: Не найден (светло-розовый) */
.row-not-found {
    background-color: #fef0f0;
}

/* Строка: Успех / Найден (светло-зеленый) */
.row-success {
    background-color: #f5fbf5;
}

/* Строка: В процессе (светло-голубой / белый) */
.row-process {
    background-color: #f7f9fa;
}

/* Добавляем легкий ховер-эффект для строк (по желанию, улучшает UX) */
.results-table tbody tr:hover {
    filter: brightness(0.97);
    transition: filter 0.2s ease;
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */
@media (max-width: 768px) {
    .table-section {
        padding: 40px 0;
    }
    /* Убираем внутренние отступы контейнера в секции таблицы, чтобы full-bleed работал корректно */
    .table-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* На мобилках делаем таблицу full-bleed: обёртка растягивается на всю ширину окна
       Это даёт больше видимой площади таблицы и делает горизонтальный скролл доступным по всей ширине экрана */
    .table-wrapper {
        border-radius: 0; /* Убираем скругления, если блок прилипает к краям */
        box-shadow: none;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw; /* Надёжно выводим элемент к левому краю viewport */
        margin-right: -50vw; /* и правому */
        width: 100vw;
        box-sizing: border-box;
        padding: 0 12px; /* небольшие внутренние отступы внутри full-bleed области */
        overflow-x: auto; /* оставляем горизонтальную прокрутку при необходимости */
    }

    .results-table {
        font-size: 13px; /* Слегка уменьшаем шрифт для мобильных устройств */
        width: 100%;
        min-width: unset; /* разрешаем таблице адаптироваться под область прокрутки */
    }
    
    .results-table th,
    .results-table td {
        padding: 15px 10px;
    }
}
/* =========================================
   Блок: Summary Section (Текстовый итог)
   ========================================= */
.summary-section {
    background-color: #f7f7f7;
    background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.918)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    padding: 90px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea; /* Опционально: отбивка от следующего блока */
}

.summary-content {
    max-width: 860px; /* Ограничиваем ширину для комфортного чтения */
    margin: 0 auto;
}

.summary-content__title {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.summary-content__text {
    font-size: 16px;
    color: #444444;
    line-height: 1.7; /* Увеличенный межстрочный интервал для читабельности */
}

/* =========================================
   Блок: Footer
   ========================================= */
.site-footer {
    background: #1f1c1b;
    color: #ffffff;
    padding: 60px 0 40px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.site-footer__logo {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.site-footer__text {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.site-footer__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__link,
.site-footer__note {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.site-footer__link:hover {
    color: #ffffff;
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 45px 0 30px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* =========================================
   Адаптив (Планшеты и Телефоны)
   ========================================= */
@media (max-width: 768px) {
    .summary-section {
        padding: 60px 0;
        background-size: cover;
    }

    .summary-content__title {
        font-size: 22px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .summary-content__text {
        font-size: 14px;
        line-height: 1.6;
    }
}