/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES: STRUCTURA (MINERAL, METAL & LIGHT)
   ========================================================================== */

/* 1. Глобальные переменные дизайн-системы */
:root {
    /* Журнальная премиальная палитра (Светлая база) */
    --color-canvas: #ffffff;             /* Чистый белый фон */
    --color-canvas-alt: #fafafa;         /* Светло-серый для блоков */
    --color-glass: #ffffff;
    --color-glass-border: rgba(19, 19, 19, 0.1);
    --color-glass-border-active: rgba(19, 19, 19, 0.2);
    
    /* Акценты (Теплый песчаный/золотистый как на референсе) */
    --color-accent-start: #e8bb8a;
    --color-accent-end: #dc964a;
    --glow-shadow: none;
    
    /* Типографика (Темная) */
    --color-text-h: #131313;             /* Черный/Графит для заголовков */
    --color-text-b: rgba(19, 19, 19, 0.8); /* Читаемый текст */
    --color-text-muted: rgba(19, 19, 19, 0.5);
    
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Тайминги анимаций */
    --transition-fluid: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Сброс стилей и базовые настройки */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-canvas);
    color: var(--color-text-b);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--color-canvas);
}

/* 3. Прелоадер (Экран загрузки) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-canvas);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    max-width: 340px;
    width: 90%;
}

.preloader-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.preloader-percentage-container {
    font-family: var(--font-serif);
    font-size: 80px;
    font-weight: 400;
    color: var(--color-text-h);
    line-height: 1;
    margin-bottom: 24px;
}

.preloader-percentage-container .pct {
    font-size: 32px;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.preloader-bar-bg {
    width: 100%;
    height: 2px;
    background-color: rgba(35, 39, 42, 0.05);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    box-shadow: 0 0 10px rgba(192, 122, 96, 0.2);
    transition: width 0.1s linear;
}

.preloader-status {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

/* 4. Фоновый 3D-параллакс слой и шумовые текстуры */
.perspective-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    perspective: 1000px;
    overflow: hidden;
}

.hero-bg-media {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

#parallax-bg {
    width: 110%;
    height: 110%;
    object-fit: cover;
    position: absolute;
    top: -5%;
    left: -5%;
    transform: scale(1.02);
    transition: transform 0.1s ease-out;
    filter: brightness(1.02) contrast(0.98);
}

.ambient-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Убрано размытие и градиент для максимальной четкости и насыщенности фона */
    background: transparent;
    z-index: 2;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Текстурный пленочный шум для избежания ступенчатых градиентов */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.15; /* Уменьшен с 0.45 до 0.15 */
    z-index: 3;
}

#dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
}

/* 5. Плавающая шапка-капсула (Floating Pill Header) */
.floating-header-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    pointer-events: none;
}

.floating-pill-header {
    background: rgba(255, 255, 255, 0.12); /* Сверхлегкий прозрачный фон на Hero */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-radius: 100px;
    padding: 10px 28px 10px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1024px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.05), 
        0 20px 50px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    pointer-events: auto;
    transition: 
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Эффект при прокрутке страницы */
.floating-pill-header.scrolled {
    background: rgba(255, 255, 255, 0.75); /* Матовый стеклянный фон при прокрутке */
    border-color: rgba(19, 19, 19, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.02);
    padding: 8px 20px 8px 28px;
}

.floating-pill-header:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.floating-pill-header.scrolled:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(19, 19, 19, 0.12);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.logo {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-h);
}

.logo-accent {
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85); /* Белые читаемые ссылки на Hero */
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition-snappy);
    position: relative;
    padding: 4px 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.floating-pill-header.scrolled .nav-link {
    color: var(--color-text-b); /* Темные ссылки при скролле */
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-start);
    transition: var(--transition-snappy);
}

.nav-link:hover {
    color: #ffffff;
}

.floating-pill-header.scrolled .nav-link:hover {
    color: var(--color-text-h);
}

.nav-link:hover::after {
    width: 100%;
}

/* Капсульный телефон в шапке */
.phone-capsule {
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.9); /* Светлый цвет телефона для Hero */
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 5px 16px 5px 5px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-fluid);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.floating-pill-header.scrolled .phone-capsule {
    color: var(--color-text-h);
    background: rgba(19, 19, 19, 0.04);
    border-color: rgba(19, 19, 19, 0.08);
    text-shadow: none;
}

.phone-icon-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end)); /* Восхитительный золотой градиент */
    color: #ffffff; /* Белая яркая иконка звонка */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-snappy);
    box-shadow: 0 2px 8px rgba(232, 187, 138, 0.25);
}

.phone-capsule:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.floating-pill-header.scrolled .phone-capsule:hover {
    background: rgba(19, 19, 19, 0.08);
    border-color: rgba(19, 19, 19, 0.12);
    color: var(--color-text-h);
}

.phone-capsule:hover .phone-icon-badge {
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(232, 187, 138, 0.4);
}

/* 6. Премиальные стеклянные карты (Glassmorphism) */
.premium-glass-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(35, 39, 42, 0.03);
    transform-style: preserve-3d;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.premium-glass-card:hover {
    border-color: var(--color-glass-border-active);
    box-shadow: var(--glow-shadow), 0 16px 48px rgba(35, 39, 42, 0.06);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 240px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(192, 122, 96, 0.08), transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* 7. Главный экран (Hero) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 5% 40px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.hero-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: 86px;
    font-weight: 500;
    line-height: 1.05;
    color: var(--color-text-h);
    letter-spacing: -0.03em;
}

.btn-minimal {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-accent-start);
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 12px 0;
    border-bottom: 1px solid rgba(163, 201, 168, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-start;
}

.btn-minimal:hover {
    color: #fff;
    border-bottom-color: #fff;
    transform: translateX(5px);
}

/* Редакционные стили шрифтов */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent-start);
    font-size: 1.12em;
    letter-spacing: -0.01em;
    margin-right: 4px;
}

.sans-bold {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-text-h);
}

.hero-description {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-b);
    max-width: 580px;
}

/* Овальные кнопки-капсулы (Capsule Buttons) */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-capsule {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 10px 10px 24px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: var(--transition-fluid);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-text-h);
    color: var(--color-canvas);
    box-shadow: 0 6px 20px rgba(35, 39, 42, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(251, 249, 245, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: currentColor;
    transition: var(--transition-snappy);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-accent-start);
    color: #fff;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover .btn-icon-badge {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.social-fast-links {
    display: flex;
    gap: 12px;
}

.social-capsule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition-snappy);
    border: 1px solid var(--color-glass-border);
    background: rgba(251, 249, 245, 0.4);
    color: var(--color-text-h);
}

.social-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(35, 39, 42, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-h);
    transition: var(--transition-snappy);
}

.tg-capsule {
    color: #2b7bb9;
    border-color: rgba(43, 123, 185, 0.15);
    background: rgba(43, 123, 185, 0.03);
}

.tg-capsule .social-icon-badge {
    background: rgba(43, 123, 185, 0.08);
    color: #2b7bb9;
}

.tg-capsule:hover {
    background: #2b7bb9;
    color: #fff;
    border-color: #2b7bb9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(43, 123, 185, 0.2);
}

.tg-capsule:hover .social-icon-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.max-capsule {
    color: #5925a6;
    border-color: rgba(89, 37, 166, 0.15);
    background: rgba(89, 37, 166, 0.03);
}

.max-capsule .social-icon-badge {
    background: rgba(89, 37, 166, 0.08);
    color: #5925a6;
}

.max-capsule:hover {
    background: #5925a6;
    color: #fff;
    border-color: #5925a6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(89, 37, 166, 0.2);
}

.max-capsule:hover .social-icon-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.wa-capsule {
    color: #24b35b;
    border-color: rgba(36, 179, 91, 0.15);
    background: rgba(36, 179, 91, 0.03);
}

.wa-capsule .social-icon-badge {
    background: rgba(36, 179, 91, 0.08);
    color: #24b35b;
}

.wa-capsule:hover {
    background: #24b35b;
    color: #fff;
    border-color: #24b35b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(36, 179, 91, 0.2);
}

.wa-capsule:hover .social-icon-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Карточка на Hero */
.hero-card-block {
    display: flex;
    justify-content: flex-end;
}

.hero-info-card {
    max-width: 420px;
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-tag {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
}

.card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent-start);
    box-shadow: 0 0 8px var(--color-accent-start);
}

.hero-info-card .card-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text-h);
    margin-bottom: 24px;
}

.card-metrics {
    display: flex;
    gap: 40px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(35, 39, 42, 0.06);
    padding-bottom: 24px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text-h);
    line-height: 1;
}

.metric-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: lowercase;
}

.card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-b);
}

/* Скролл индикатор */
.scroll-indicator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 0;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, var(--color-glass-border), var(--color-accent-start), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--color-accent-start), transparent);
    animation: scroll-anim 2s infinite ease-in-out;
}

@keyframes scroll-anim {
    0% { top: -30px; }
    100% { top: 80px; }
}

.scroll-text {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.20em;
    color: var(--color-text-muted);
}

.quiz-section, .about-section {
    width: 100%;
    position: relative;
    padding: 100px 0;
}

.section-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent-start);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 400;
    color: var(--color-text-h);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-b);
    max-width: 580px;
}

.quiz-card-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.quiz-card {
    width: 680px;
    max-width: 100%;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(35, 39, 42, 0.06);
    padding-bottom: 20px;
}

#quiz-step-title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--color-text-h);
}

.quiz-progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-progress-text {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-muted);
}

.quiz-progress-bar-bg {
    width: 120px;
    height: 3px;
    background-color: rgba(35, 39, 42, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Слайды и Варианты Ответов */
.quiz-step-content {
    min-height: 240px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.quiz-step-content.fade-out {
    opacity: 0;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.option-card {
    background: rgba(35, 39, 42, 0.01);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition-snappy);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent-start), var(--color-accent-end));
    opacity: 0;
    transition: var(--transition-snappy);
}

.option-card:hover {
    background: rgba(35, 39, 42, 0.04);
    border-color: rgba(35, 39, 42, 0.15);
    transform: translateY(-2px);
}

.option-card.selected {
    background: rgba(192, 122, 96, 0.04);
    border-color: var(--color-accent-start);
    box-shadow: 0 4px 15px rgba(192, 122, 96, 0.03);
}

.option-card.selected::before {
    opacity: 1;
}

.option-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-h);
}

.option-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}

.grid-multi {
    gap: 12px;
}

.grid-multi .option-card {
    padding: 16px 20px;
    gap: 4px;
}

.grid-multi .option-title {
    font-size: 14px;
}

/* Финальный слайд результатов */
.final-screen {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.final-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(192, 122, 96, 0.05);
    border: 1px solid rgba(192, 122, 96, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent-start);
    box-shadow: var(--glow-shadow);
    margin-bottom: 8px;
}

.final-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-text-h);
}

.final-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-b);
    max-width: 440px;
}

.final-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 380px;
    margin-top: 12px;
}

.final-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition-fluid);
    border: 1px solid transparent;
    text-decoration: none;
}

.final-tg-btn {
    background: var(--color-text-h);
    color: var(--color-canvas);
    box-shadow: 0 6px 20px rgba(35, 39, 42, 0.1);
}

.final-tg-btn:hover {
    transform: translateY(-2px);
    background: var(--color-accent-start);
    color: #fff;
    box-shadow: var(--glow-shadow);
}

.final-max-btn {
    background: rgba(89, 37, 166, 0.06);
    border-color: rgba(89, 37, 166, 0.25);
    color: #5925a6;
}

.final-max-btn:hover {
    background: #5925a6;
    color: #fff;
    border-color: #5925a6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(89, 37, 166, 0.2);
}

.final-wa-btn {
    background: rgba(36, 179, 91, 0.06);
    border-color: rgba(36, 179, 91, 0.25);
    color: #24b35b;
}

.final-wa-btn:hover {
    background: #24b35b;
    color: #fff;
    border-color: #24b35b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 179, 91, 0.2);
}

/* Кнопки навигации квиза */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    border-top: 1px solid rgba(35, 39, 42, 0.06);
    padding-top: 24px;
}

.btn-quiz-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-snappy);
}

.btn-quiz-nav:disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

/* 9. Блок Преимуществ (Grid) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-top: 20px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(192, 122, 96, 0.05);
    border: 1px solid rgba(192, 122, 96, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent-start);
}

.feature-icon {
    width: 22px;
    height: 22px;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-h);
}

.feature-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-b);
}

/* 10. Подвал (Footer) */
.main-footer {
    background: var(--color-canvas); /* Темный фон вместо светлого */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 5% 40px;
    margin-top: 120px;
    position: relative;
    z-index: 6;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    width: 100%;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 480px;
}

.footer-info-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

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

.contacts-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.footer-phone {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-text-h);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: var(--transition-snappy);
    display: inline-block;
    align-self: flex-start;
}

.footer-phone:hover {
    color: var(--color-accent-start);
}

.footer-socials {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 32px;
    width: 100%;
}

.copyright {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: left;
    line-height: 1.5;
}

/* 11. Анимации при загрузке (CSS reveal) */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* 12. Адаптивность (Responsive Grid) */
@media (max-width: 1024px) {
    .floating-pill-header {
        max-width: 90%;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-card-block {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .floating-pill-header {
        padding: 8px 16px 8px 24px;
    }
    
    .nav-links {
        display: none; /* Чистота на мобильном */
    }
    
    .hero-section {
        padding: 120px 20px 40px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .social-fast-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .social-capsule {
        flex: 1;
        justify-content: center;
    }
    
    .quiz-section, .about-section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-phone {
        font-size: 32px;
    }
}

/* ==========================================================================
   10. Блок Статистики
   ========================================================================== */
.stats-section {
    padding: 60px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.stats-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-sans);
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    color: var(--color-text-h);
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 32px;
    color: var(--color-accent-start);
    margin-left: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-b);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   11. Блок Регионов (Горизонтальный слайдер с арками)
   ========================================================================== */
.regions-section {
    padding: 120px 0;
    background: var(--color-canvas);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.regions-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 5%;
}

.regions-title {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 400;
    color: var(--color-text-h);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .regions-title {
        font-size: 44px;
    }
}

.regions-slider-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
}

.regions-slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.regions-slider-wrapper:active {
    cursor: grabbing;
}

.regions-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 8vw; /* Адаптивный размер */
    font-weight: 400;
    color: rgba(244, 246, 244, 0.9);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none; /* Важно: пропускает клики и драг сквозь себя */
    text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.regions-slider-track {
    display: flex;
    gap: 40px;
    padding: 0 5vw;
    width: max-content;
    will-change: transform;
}

.region-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.region-arch {
    width: 24vw; /* Огромные карточки (~600px на 2K мониторах) */
    min-width: 300px; /* Защита для планшетов */
    max-width: 650px;
    aspect-ratio: 2 / 3; /* Высокие, кинематографичные пропорции */
    border-radius: 9999px 9999px 0 0; /* Идеальная круглая арка сверху при любых размерах */
    background: #E0E0E0;
    border: 1px solid rgba(19, 19, 19, 0.05);
    border-bottom: none;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(19, 19, 19, 0.4);
    font-size: 16px;
    transition: all 0.5s ease;
}

.region-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.region-slide:hover .region-arch {
    border-color: rgba(255,255,255,0.2);
}

.region-slide:hover .region-arch img {
    transform: scale(1.05);
}

.region-name {
    font-size: 16px;
    color: var(--color-text-b);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Адаптив для новых блоков */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .regions-overlay-text {
        font-size: 12vw;
    }
    
    .region-arch {
        width: 260px;
        height: 390px;
    }
}

/* Навигация слайдера */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.slider-btn:hover {
    background: #000;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

@media (max-width: 768px) {
    .slider-btn {
        display: none; /* Убираем стрелочки на мобильных устройствах, так как там удобнее свайпать */
    }
}

/* Кнопка Наверх */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-end);
    color: var(--color-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: var(--color-accent-start);
}

/* ==========================================================================
   13. Журнальная блочная верстка (Editorial Layout)
   ========================================================================== */

/* Карточка Квиза (чистая, без стекла) */
.editorial-card {
    background: #ffffff;
    border: 1px solid rgba(19, 19, 19, 0.05);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

/* Разделительные экраны 50/50 */
.editorial-features {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.editorial-split {
    display: flex;
    align-items: center;
    gap: 80px;
}

.editorial-split.reverse {
    flex-direction: row-reverse;
}
.editorial-split-text {
    flex: 1;
    padding: 0 40px;
}

.editorial-split-image {
    flex: 1;
    height: 520px; /* Идеальные пропорции для редакционного макета */
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(19, 19, 19, 0.06);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fluid);
}

.editorial-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-split:hover .editorial-split-image img {
    transform: scale(1.05);
}

.editorial-split:hover .editorial-split-image {
    box-shadow: 0 32px 64px rgba(192, 122, 96, 0.12), 0 16px 32px rgba(0, 0, 0, 0.04);
    border-color: rgba(192, 122, 96, 0.25);
}

/* Арочная маска для изображений */
.arch-mask {
    border-radius: 50vw 50vw 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

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

/* Обновление блока Статистики под светлую тему */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.stat-item {
    background: #fafafa;
    border: 1px solid rgba(19, 19, 19, 0.05);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 250px;
    transition: var(--transition-fluid);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .editorial-split, .editorial-split.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .editorial-split-text {
        padding: 0;
        text-align: center;
    }
    
    .editorial-split-image {
        width: 100%;
        height: 400px;
    }
}
