/**
 * ═══════════════════════════════════════════════════════════════
 * 🎨 RESULTS v2.0 - Новые стили согласно ТЗ
 * ═══════════════════════════════════════════════════════════════
 * 
 * @version 2.0
 * @date 11.11.2025
 */

/* ═══════════════════════════════════════════════════════════════
   CANVAS HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

/* Контейнер: свой stacking context (z-index: 0), чтобы следующий за ним блок не перекрывался */
#main-canvas-container {
    position: relative;
    z-index: 0;
    /* КРИТИЧНО: Убеждаемся, что контейнер не перекрывает следующий элемент */
    overflow: visible;
}

.canvas-hero-section {
    position: relative;
    padding: 4rem 2rem 2rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    visibility: visible;
    opacity: 1;
    z-index: 1;
    overflow: visible;
    margin-bottom: 0;
}

/* ========================================================================
   2026 OVERRIDE: CANVAS "КОСМИЧЕСКИЙ КОРАБЛЬ" ДЛЯ LANDING RESULTS
   ======================================================================== */

.canvas-container {
    max-width: 900px !important;
    margin: 0 auto var(--spacing-2xl, 3rem) !important;
    position: relative !important;
    background:
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.06), transparent),
        radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.06), transparent),
        #ffffff !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    border-radius: var(--radius-xl, 1.5rem) !important;
    padding: var(--spacing-xl, 2rem) !important;
    overflow: hidden !important;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.16),
        inset 0 0 60px rgba(139, 92, 246, 0.06),
        0 25px 35px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.canvas-container::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    padding: 2px !important;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.55),
            rgba(139, 92, 246, 0.55),
            rgba(59, 130, 246, 0.55)) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask-composite: exclude !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
    animation: holographicBorder 3s ease-in-out infinite !important;
}

.canvas-container:hover {
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.25),
        inset 0 0 80px rgba(139, 92, 246, 0.08),
        0 30px 55px rgba(0, 0, 0, 0.16) !important;
    transform: translateY(-2px) !important;
}

.canvas-container:hover::before {
    opacity: 0.9 !important;
    animation-duration: 2s !important;
}

.canvas-container canvas {
    border: none !important;
    border-radius: var(--radius-md, 0.75rem) !important;
    background: #ffffff !important;
    cursor: crosshair !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 0 10px rgba(139, 92, 246, 0.05) !important;
    transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.canvas-container canvas.is-drawing {
    box-shadow:
        inset 0 0 0 2px rgba(99, 102, 241, 0.22),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 0 20px rgba(139, 92, 246, 0.16) !important;
}

.canvas-hero-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.canvas-hero-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.canvas-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none !important;
    /* ✅ УБРАНО: Синяя обводка вокруг текста */
}

.canvas-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
    outline: none !important;
    /* ✅ УБРАНО: Синяя обводка вокруг текста */
}

.canvas-input-wrapper {
    /* ✅ УПРОЩЕНО: Убрана лишняя обертка, стили перенесены в .canvas-container */
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   DATA PROGRESS TRACKER
   ═══════════════════════════════════════════════════════════════ */

.data-progress-tracker {
    display: none !important;
    /* ✅ СКРЫТ: Используется упрощенный индикатор */
    visibility: hidden !important;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.data-progress-tracker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.data-progress-tracker.ready {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    animation: trackerReadyPulse 2s ease-in-out infinite;
}

@keyframes trackerReadyPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(16, 185, 129, 0.6);
    }
}

.progress-tracker-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tracker-icon {
    width: 24px;
    height: 24px;
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

.tracker-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.progress-tracker-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    position: relative;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-item-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.progress-item-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-current {
    color: #60a5fa;
    transition: all 0.3s ease;
}

.progress-item.ready .progress-current {
    color: #10b981;
    animation: numberPulse 0.5s ease-out;
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.progress-separator {
    color: rgba(255, 255, 255, 0.4);
}

.progress-target {
    color: rgba(255, 255, 255, 0.6);
}

.progress-bar-wrapper {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.progress-bar-fill {
    position: relative;
    height: 100%;
    background: var(--gradient-progress-blue);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.progress-item.ready .progress-bar-fill {
    background: var(--gradient-progress-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.progress-bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: glowSweep 2s ease-in-out infinite;
}

@keyframes glowSweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-tracker-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.status-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.data-progress-tracker.ready .status-text {
    color: #10b981;
    font-weight: 600;
    animation: statusPulse 1s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Частицы при готовности */
.progress-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.data-progress-tracker.ready .progress-particles {
    opacity: 1;
}

.progress-particles::before,
.progress-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #10b981;
    border-radius: 50%;
    box-shadow:
        0 0 10px #10b981,
        20px 30px 0 0 #10b981,
        40px 10px 0 0 #10b981,
        60px 40px 0 0 #10b981,
        80px 20px 0 0 #10b981,
        100px 50px 0 0 #10b981,
        120px 15px 0 0 #10b981,
        140px 35px 0 0 #10b981;
    animation: particlesFloat 3s ease-in-out infinite;
}

.progress-particles::after {
    animation-delay: 1.5s;
    box-shadow:
        0 0 10px #34d399,
        25px 25px 0 0 #34d399,
        45px 5px 0 0 #34d399,
        65px 35px 0 0 #34d399,
        85px 15px 0 0 #34d399,
        105px 45px 0 0 #34d399,
        125px 10px 0 0 #34d399,
        145px 30px 0 0 #34d399;
}

@keyframes particlesFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CANVAS CONTAINER - КОСМИЧЕСКИЙ КОРАБЛЬ 2026
   =══════════════════════════════════════════════════════════════ */
.canvas-container {
    position: relative !important;
    width: 100% !important;
    max-width: 600px !important;
    height: 400px !important;
    margin: 0 auto !important;
    background:
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.05), transparent),
        radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.05), transparent),
        #ffffff !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    border-radius: var(--radius-xl, 1.5rem) !important;
    padding: var(--spacing-lg, 1.5rem) !important;
    overflow: hidden !important;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.15),
        inset 0 0 60px rgba(139, 92, 246, 0.05),
        0 20px 25px rgba(0, 0, 0, 0.1),
        0 10px 10px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Holographic border эффект */
.canvas-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: inherit !important;
    padding: 2px !important;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.5),
            rgba(139, 92, 246, 0.5),
            rgba(59, 130, 246, 0.5)) !important;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0) !important;
    mask-composite: exclude !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
    animation: holographicBorder 3s ease-in-out infinite !important;
}

@keyframes holographicBorder {

    0%,
    100% {
        opacity: 0.5;
        filter: hue-rotate(0deg);
    }

    50% {
        opacity: 0.8;
        filter: hue-rotate(10deg);
    }
}

.canvas-container:hover {
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.25),
        inset 0 0 80px rgba(139, 92, 246, 0.08),
        0 25px 50px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.canvas-container:hover::before {
    opacity: 0.9 !important;
    animation-duration: 2s !important;
}

#analysis-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    display: block;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    touch-action: none !important;
    -webkit-touch-callout: none;
    user-select: none;
    background: white;
    border: none;
    border-radius: var(--radius-md, 0.75rem);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 0 10px rgba(139, 92, 246, 0.05);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    animation: canvasAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes canvasAppear {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#analysis-canvas:hover {
    box-shadow:
        inset 0 0 0 1px rgba(99, 102, 241, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 0 15px rgba(139, 92, 246, 0.1);
}

/* Fix: scan line clipped by canvas-container overflow + radius */
.canvas-container #aiScanLine {
    left: 2rem;
    width: calc(100% - 4rem);
}

@media (max-width: 520px) {
    .canvas-container #aiScanLine {
        left: 1rem;
        width: calc(100% - 2rem);
    }
}

.canvas-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
    z-index: 1;
    background: transparent;
}

.canvas-placeholder-text {
    color: #9ca3af;
    font-size: 1.25rem;
    font-weight: 500;
}

.canvas-controls {
    display: flex !important;
    gap: 1rem;
    justify-content: center !important;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.canvas-btn {
    padding: 10px 20px !important;
    /* УМЕНЬШЕН для компенсации больших иконок */
    font-size: 15px !important;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto !important;
    /* Убираем минимальную ширину */
    width: auto !important;
    /* Автоматическая ширина */
    text-transform: uppercase;
    letter-spacing: 0.5px !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px !important;
}

/* Кнопка "Очистить" */
.canvas-btn--clear {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #f1f5f9;
    border: 2px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.canvas-btn--clear:hover:not(:disabled) {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
    transform: translateY(-2px);
}

/* Кнопка "Загрузить фото" */
.canvas-btn--upload {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.canvas-btn--upload:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Кнопка "Анализировать" */
.canvas-btn--analyze {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: 2px solid rgba(249, 115, 22, 0.3);
    box-shadow:
        0 4px 12px rgba(249, 115, 22, 0.3),
        0 0 30px rgba(249, 115, 22, 0.2);
    animation: analyzePulse 2s ease-in-out infinite;
}

.canvas-btn--analyze:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow:
        0 6px 20px rgba(249, 115, 22, 0.5),
        0 0 40px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

@keyframes analyzePulse {

    0%,
    100% {
        box-shadow:
            0 4px 12px rgba(249, 115, 22, 0.3),
            0 0 30px rgba(249, 115, 22, 0.2);
    }

    50% {
        box-shadow:
            0 6px 16px rgba(249, 115, 22, 0.5),
            0 0 40px rgba(249, 115, 22, 0.4);
    }
}

/* Disabled состояние */
.canvas-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ✅ УПРОЩЕННЫЙ индикатор прогресса */
.simple-progress-indicator {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simple-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.simple-progress-fill {
    height: 100%;
    background: var(--gradient-primary-horizontal);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.simple-progress-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* ✅ Мобильная адаптация для кнопок канваса */
@media (max-width: 768px) {
    .canvas-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .canvas-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }

    .canvas-btn--analyze {
        order: -1;
        /* ✅ Кнопка "Анализ" всегда первой на мобильных */
        background: var(--gradient-primary);
        color: white;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .simple-progress-indicator {
        margin-top: 0.75rem;
        padding: 0.5rem;
    }

    .simple-progress-text {
        font-size: 0.8125rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LOADING ANIMATION
   ═══════════════════════════════════════════════════════════════ */

/* ✅ УПРОЩЕН: Убраны все эффекты вращения и 3D */
.canvas-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* линия анализа не обрезается */
}

/* ✅ УБРАНО: Вращение и лишние эффекты */
/* .canvas-loading::before - УДАЛЕНО */
/* .canvas-loading::after - УДАЛЕНО */
/* @keyframes hologramRotate - УДАЛЕНО */
/* @keyframes hologramShift - УДАЛЕНО */

.loading-content {
    text-align: center;
    color: white;
    position: relative;
    width: 100%;
    max-width: 700px;
    padding: 3rem;
    z-index: 2;
    overflow: visible;
    /* линия сканирования не обрезается */
    /* ✅ УБРАНО: transform-style: preserve-3d; */
    /* ✅ УБРАНО: animation: contentFloat; */
}

/* ✅ УБРАНО: @keyframes contentFloat */

/* Голографическая рамка с множественными слоями */
.loading-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background:
        var(--gradient-ai-animated-1),
        var(--gradient-ai-animated-2);
    background-size: 400% 400%, 300% 300%;
    border-radius: 12px;
    z-index: -2;
    animation: hologramBorder 4s linear infinite, borderPulse 3s ease-in-out infinite;
    opacity: 0.8;
    filter: blur(12px);
    box-shadow:
        0 0 40px rgba(102, 126, 234, 0.6),
        0 0 80px rgba(236, 72, 153, 0.4),
        inset 0 0 60px rgba(139, 92, 246, 0.3);
}

.loading-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 10, 40, 0.9) 100%);
    border-radius: 10px;
    z-index: -1;
    box-shadow:
        inset 0 0 100px rgba(102, 126, 234, 0.1),
        inset 0 0 200px rgba(236, 72, 153, 0.05);
}

@keyframes borderPulse {

    0%,
    100% {
        opacity: 0.6;
        filter: blur(12px);
    }

    50% {
        opacity: 1;
        filter: blur(8px);
    }
}

/* Сетка будущего - отдельный элемент с 3D эффектом */
.loading-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(102, 126, 234, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    background-size: 50px 50px, 50px 50px, 200% 200%;
    opacity: 0.4;
    animation: gridMove 15s linear infinite, gridPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 10px;
    /* ✅ УБРАНО: transform-style: preserve-3d; */
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes hologramBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Множественные сканирующие линии */
.loading-scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            rgba(102, 126, 234, 0.5),
            #6366F1,
            rgba(236, 72, 153, 0.8),
            #ec4899,
            rgba(139, 92, 246, 0.5),
            transparent);
    box-shadow:
        0 0 20px rgba(102, 126, 234, 0.8),
        0 0 40px rgba(236, 72, 153, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4);
    animation: scan 2s infinite;
    z-index: 1;
}

.loading-scan-line:nth-child(2) {
    top: 50%;
    animation: scan 2.5s infinite 0.5s;
    height: 2px;
}

.loading-scan-line:nth-child(3) {
    top: 100%;
    animation: scan 3s infinite 1s;
    height: 4px;
}

@keyframes scan {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.loading-particle {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
    animation: particleFloat 4s infinite ease-in-out;
}

/* Разные типы частиц */
.loading-particle:nth-child(3n) {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #6366F1, transparent);
    box-shadow:
        0 0 10px rgba(102, 126, 234, 0.8),
        0 0 20px rgba(102, 126, 234, 0.4),
        0 0 30px rgba(102, 126, 234, 0.2);
    animation-duration: 3s;
}

.loading-particle:nth-child(3n+1) {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ec4899, transparent);
    box-shadow:
        0 0 8px rgba(236, 72, 153, 0.8),
        0 0 16px rgba(236, 72, 153, 0.4);
    animation-duration: 4s;
}

.loading-particle:nth-child(3n+2) {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    box-shadow:
        0 0 12px rgba(139, 92, 246, 0.8),
        0 0 24px rgba(139, 92, 246, 0.4),
        0 0 36px rgba(139, 92, 246, 0.2);
    animation-duration: 5s;
}

/* Звездочки с множественными эффектами */
.loading-particle::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    animation: starRotate 2s linear infinite, starPulse 1.5s ease-in-out infinite;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 30px rgba(236, 72, 153, 0.4);
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.8));
}

.loading-particle:nth-child(3n)::before {
    content: '✧';
    animation: starRotate 2.5s linear infinite, starPulse 2s ease-in-out infinite;
}

.loading-particle:nth-child(3n+1)::before {
    content: '✦';
    animation: starRotate 1.8s linear infinite reverse, starPulse 1.2s ease-in-out infinite;
}

.loading-particle:nth-child(3n+2)::before {
    content: '✩';
    animation: starRotate 2.2s linear infinite, starPulse 1.8s ease-in-out infinite;
}

/* ✅ УБРАНО: Вращение звездочек */
/* @keyframes starRotate - УДАЛЕНО */

@keyframes starPulse {

    0%,
    100% {
        opacity: 0.7;
        filter: brightness(1) drop-shadow(0 0 5px rgba(139, 92, 246, 0.8));
    }

    50% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 15px rgba(102, 126, 234, 1));
    }
}

/* ✅ УПРОЩЕНО: Убрано вращение частиц */
@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        /* ✅ УБРАНО: rotateZ */
        opacity: 0.2;
        filter: brightness(1);
    }

    25% {
        transform: translateY(-50px) translateX(30px) scale(1.2);
        /* ✅ УБРАНО: rotateZ */
        opacity: 0.7;
        filter: brightness(1.3);
    }

    50% {
        transform: translateY(-80px) translateX(-20px) scale(1.5);
        /* ✅ УБРАНО: rotateZ */
        opacity: 1;
        filter: brightness(1.5);
    }

    75% {
        transform: translateY(-50px) translateX(35px) scale(1.2);
        /* ✅ УБРАНО: rotateZ */
        opacity: 0.8;
        filter: brightness(1.3);
    }
}

.loading-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 2rem 0 1rem;
    background:
        var(--gradient-ai-animated-3),
        var(--gradient-ai-animated-4);
    background-size: 300% 300%, 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 4s ease infinite, titleShimmer 3s ease-in-out infinite;
    text-shadow:
        0 0 40px rgba(102, 126, 234, 0.6),
        0 0 80px rgba(236, 72, 153, 0.4),
        0 0 120px rgba(139, 92, 246, 0.2);
    letter-spacing: 2px;
    position: relative;
    /* ✅ УБРАНО: transform-style: preserve-3d; */
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.loading-title::before {
    content: 'Анализируем твой почерк...';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 100%;
    height: 100%;
    background: var(--gradient-ai-pink-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -2;
    animation: titleGlow 2.5s ease-in-out infinite;
}

.loading-title::after {
    content: 'Анализируем твой почерк...';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 100%;
    height: 100%;
    background: var(--gradient-ai-pink-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
    animation: titleGlow 2s ease-in-out infinite reverse;
}

@keyframes titleGradient {

    0%,
    100% {
        background-position: 0% 50%, 0% 50%;
    }

    50% {
        background-position: 100% 50%, 100% 50%;
    }
}

@keyframes titleShimmer {

    0%,
    100% {
        filter: brightness(1) contrast(1);
    }

    50% {
        filter: brightness(1.3) contrast(1.2);
    }
}

@keyframes titleGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1) translate(0, 0);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.08) translate(2px, -2px);
    }
}

.loading-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(200, 200, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 30px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(236, 72, 153, 0.4);
    animation: subtitlePulse 2.5s ease-in-out infinite, subtitleShimmer 3s ease-in-out infinite;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
}

.loading-subtitle::after {
    content: '...';
    animation: dotsBlink 1.5s steps(4, end) infinite;
}

@keyframes subtitlePulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes subtitleShimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

@keyframes dotsBlink {

    0%,
    20% {
        opacity: 1;
    }

    25%,
    100% {
        opacity: 0.3;
    }
}


@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   INTERPRETATION OVERLAY - «Твой анализ готов» + прогноз (в body, не в #results-dynamic)
   ═══════════════════════════════════════════════════════════════ */

.interpretation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 20, 0.72);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interpretation-overlay--pending {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.interpretation-overlay:not(.interpretation-overlay--pending) {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.interpretation-modal {
    background: linear-gradient(180deg, #0f172a, #020617);
    border-radius: 24px;
    max-width: 680px;
    width: calc(100% - 32px);
    padding: 40px 32px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    position: relative;
    text-align: center;
}

.interpretation-close {
    position: absolute;
    top: 16px;
    right: 16px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.95);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.interpretation-close:hover,
.interpretation-close:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Убрано: .interpretation-hero (детский робот) */

.interpretation-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.interpretation-content {
    margin-top: 0.5rem;
}

.interpretation-pattern-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.interpretation-pattern-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin: 0 auto 1rem;
}

.interpretation-pattern-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.interpretation-pattern-row {
    font-size: 1rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.interpretation-pattern-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.interpretation-next {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.interpretation-forecast {
    margin-top: 1.5rem;
    text-align: left;
}

.interpretation-forecast-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.interpretation-forecast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 100%;
}

.interpretation-forecast-before,
.interpretation-forecast-after {
    padding: 1rem;
    border-radius: 12px;
}

.interpretation-forecast-before {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.interpretation-forecast-after {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.interpretation-forecast-column-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.interpretation-forecast-before .interpretation-forecast-column-title {
    color: rgba(248, 113, 113, 0.95);
}

.interpretation-forecast-after .interpretation-forecast-column-title {
    color: rgba(74, 222, 128, 0.95);
}

.interpretation-forecast-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.interpretation-forecast-list li {
    margin-bottom: 0.35rem;
    padding-left: 0;
}

.interpretation-forecast-before .interpretation-forecast-list li {
    color: rgba(255, 255, 255, 0.85);
}

.interpretation-forecast-after .interpretation-forecast-list li {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
    .interpretation-forecast-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .interpretation-modal {
        width: calc(100% - 24px);
        padding: 24px 16px;
        border-radius: 16px;
    }

    .interpretation-close {
        top: 12px;
        right: 12px;
        min-width: 36px;
        min-height: 36px;
    }
}

.interpretation-cta {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.interpretation-cta-btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: rgba(7, 26, 10, 0.95);
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.interpretation-cta-btn:hover,
.interpretation-cta-btn:focus {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 22px 52px rgba(34, 197, 94, 0.28);
    outline: none;
}

/* Legacy: in-flow section (если используется где-то) */
.interpretation-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   БЛОК ОТЗЫВОВ — стабильное позиционирование после анализа
   ═══════════════════════════════════════════════════════════════ */
#landing-testimonials-container {
    position: relative;
    z-index: 2;
    /* выше скрытых/вынесенных из потока элементов */
    margin-top: 20px;
    /* отступ от предыдущих блоков */
}

.testimonials-container-modern {
    position: relative;
    z-index: 2;
}

.testimonials-disclaimer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.interpretation-main,
.interpretation-priority,
.interpretation-meaning {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   IMPROVEMENT FORECAST - Before → After
   ═══════════════════════════════════════════════════════════════ */

.improvement-forecast-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    z-index: 1;
}

.improvement-forecast-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem;
    text-align: center;
}

.forecast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.forecast-before,
.forecast-after {
    padding: 1.5rem;
    border-radius: 16px;
}

.forecast-before {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.forecast-after {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.forecast-column-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.forecast-before .forecast-column-title {
    color: rgba(248, 113, 113, 0.95);
}

.forecast-after .forecast-column-title {
    color: rgba(134, 239, 172, 0.95);
}

.forecast-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forecast-list li {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.forecast-list li::before {
    content: '•';
    position: absolute;
    left: 0;
}

.forecast-before .forecast-list li {
    color: rgba(255, 255, 255, 0.85);
}

.forecast-after .forecast-list li {
    color: rgba(255, 255, 255, 0.9);
}

.forecast-note {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .forecast-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CRITICAL PARAMS v3.0 - FUTURISTIC DESIGN 2025
   ═══════════════════════════════════════════════════════════════ */

.critical-params-section {
    padding: 6rem 2rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.critical-params-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(131, 56, 236, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 0, 110, 0.03) 50%, transparent 100%);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

.critical-params-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.critical-params-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #ff006e 50%, #8338ec 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s linear infinite;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 30px rgba(131, 56, 236, 0.5));
}

@keyframes titleShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.critical-params-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.critical-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .critical-params-grid {
        grid-template-columns: 1fr;
    }
}

.critical-card {
    position: relative;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    display: block;
    will-change: transform, opacity;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* ✅ УБРАНО: transform-style: preserve-3d; */
}

.critical-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(131, 56, 236, 0.5);
    box-shadow:
        0 20px 60px rgba(131, 56, 236, 0.3),
        0 0 40px rgba(255, 0, 110, 0.2),
        inset 0 0 60px rgba(131, 56, 236, 0.1);
}

.critical-card.is-highlighted {
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.8),
        0 16px 48px rgba(59, 130, 246, 0.35),
        0 0 32px rgba(255, 0, 110, 0.25);
    transition: box-shadow 0.2s ease;
}

.critical-card-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    filter: blur(40px);
    animation: gradientShift 8s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.5;
    }
}

.critical-card-hologram {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: hologramScan 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hologramScan {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.critical-card-content {
    position: relative;
    padding: 2.5rem;
    z-index: 2;
}

.critical-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.critical-card-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Inter', -apple-system, sans-serif;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.critical-card-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.critical-card-score-value {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b6b 50%, #ff006e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 0, 110, 0.8),
        0 0 60px rgba(131, 56, 236, 0.6);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    animation: scorePulse 2s ease-in-out infinite;
}

@keyframes scorePulse {

    0%,
    100% {
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.9),
            0 0 40px rgba(255, 0, 110, 0.8),
            0 0 60px rgba(131, 56, 236, 0.6);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    }

    50% {
        text-shadow:
            0 0 30px rgba(255, 255, 255, 1),
            0 0 50px rgba(255, 0, 110, 1),
            0 0 80px rgba(131, 56, 236, 0.8);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
}

.critical-card-score-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.critical-card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.critical-card-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 2rem;
    font-weight: 400;
}

.critical-card-progress-wrapper {
    position: relative;
    width: 100%;
}

.critical-card-progress {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.critical-card-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
    border-radius: 6px;
    box-shadow:
        0 0 20px rgba(255, 0, 110, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.critical-card-progress-glow {
    display: none;
}

@keyframes progressGlow {

    0%,
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.critical-card-border-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff, #ff006e);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    animation: borderGlow 4s linear infinite;
    transition: opacity 0.4s ease;
}

.critical-card:hover .critical-card-border-glow {
    opacity: 0.6;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TRANSITION ANIMATION
   ═══════════════════════════════════════════════════════════════ */

.transition-section {
    position: relative;
    min-height: 0;
    display: none;
    /* Скрыт по умолчанию */
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    /* Скрыт по умолчанию */
    align-items: center;
    justify-content: center;
}

.transition-content {
    text-align: center;
    position: relative;
}

.transition-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    animation: fadeInScale 1s ease;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.transition-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.transition-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: flyUp 1.5s infinite ease-out;
}

@keyframes flyUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   STRONG PARAMS (3 зеленые карточки)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   STRONG PARAMS v3.0 - FUTURISTIC DESIGN 2025
   ═══════════════════════════════════════════════════════════════ */

.strong-params-section {
    padding: 6rem 2rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.strong-params-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 245, 255, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 255, 136, 0.03) 50%, transparent 100%);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

.strong-params-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.strong-params-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 50%, #00f5ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s linear infinite;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.5));
}

.strong-params-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.strong-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .strong-params-grid {
        grid-template-columns: 1fr;
    }
}

.strong-card {
    position: relative;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    display: block;
    will-change: transform, opacity;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* ✅ УБРАНО: transform-style: preserve-3d; */
}

.strong-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow:
        0 20px 60px rgba(0, 245, 255, 0.3),
        0 0 40px rgba(0, 255, 136, 0.2),
        inset 0 0 60px rgba(0, 245, 255, 0.1);
}

.strong-card-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    filter: blur(40px);
    animation: gradientShift 8s ease infinite;
    z-index: 0;
}

.strong-card-hologram {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: hologramScan 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.strong-card-content {
    position: relative;
    padding: 2.5rem;
    z-index: 2;
}

.strong-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.strong-card-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Inter', -apple-system, sans-serif;
}

.strong-card-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.strong-card-score-value {
    font-size: 3rem;
    font-weight: 900;
    color: #00ff88;
    text-shadow:
        0 0 20px rgba(0, 255, 136, 0.8),
        0 0 40px rgba(0, 245, 255, 0.6);
    animation: scorePulseStrong 2s ease-in-out infinite;
}

@keyframes scorePulseStrong {

    0%,
    100% {
        text-shadow:
            0 0 20px rgba(0, 255, 136, 0.8),
            0 0 40px rgba(0, 245, 255, 0.6);
    }

    50% {
        text-shadow:
            0 0 30px rgba(0, 255, 136, 1),
            0 0 60px rgba(0, 245, 255, 0.8);
    }
}

.strong-card-score-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.strong-card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.strong-card-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 2rem;
    font-weight: 400;
}

.strong-card-progress-wrapper {
    position: relative;
    width: 100%;
}

.strong-card-progress {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.strong-card-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00f5ff 50%, #00b8ff 100%);
    border-radius: 6px;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

@keyframes progressGradientStrong {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.strong-card-progress-glow {
    display: none;
}

.strong-card-border-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00ff88, #00f5ff, #00b8ff, #00ff88);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    animation: borderGlowStrong 4s linear infinite;
    transition: opacity 0.4s ease;
}

.strong-card:hover .strong-card-border-glow {
    opacity: 0.6;
}

@keyframes borderGlowStrong {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   OVERALL SCORE (круговой прогресс-бар)
   ═══════════════════════════════════════════════════════════════ */

.overall-score-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box;
}

.overall-score-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.overall-score-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.score-header {
    margin-bottom: 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.overall-score-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    background: var(--gradient-ai-orange-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
}

.score-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.overall-score-visual {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.score-circle-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: visible;
    aspect-ratio: 1 / 1;
}

/* AI частицы для вау-эффекта */
.score-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.score-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
    animation: particleFloat 3s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Сканирующие линии AI */
.score-scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
}

.score-scan-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(139, 92, 246, 0.6) 50%,
            transparent 100%);
    left: 50%;
    transform: translateX(-50%);
    animation: scanLine 3s linear infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.score-scan-line-1 {
    animation-delay: 0s;
}

.score-scan-line-2 {
    animation-delay: 1s;
    transform: translateX(-50%) rotate(120deg);
}

.score-scan-line-3 {
    animation-delay: 2s;
    transform: translateX(-50%) rotate(240deg);
}

@keyframes scanLine {
    0% {
        opacity: 0;
        transform: translateX(-50%) rotate(0deg) scaleY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) rotate(0deg) scaleY(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) rotate(0deg) scaleY(0);
    }
}

.score-circle-pulse .score-circle-progress {
    animation: scorePulse 2s ease-in-out infinite;
}

@keyframes scorePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.8));
        opacity: 1;
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(236, 72, 153, 1));
        opacity: 0.95;
    }
}

.score-circle {
    width: 100%;
    max-width: 320px;
    height: 320px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.score-circle-outer {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.score-circle-bg {
    transition: stroke-dashoffset 0.3s ease;
}

.score-circle-progress {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    transform-box: fill-box;
}

.score-circle-inner {
    opacity: 0.5;
}

.score-dot {
    transition: all 0.5s ease;
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}


.score-number-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    white-space: nowrap;
    width: auto;
    pointer-events: none;
    z-index: 10;
}

.score-number {
    font-size: clamp(4.5rem, 9vw, 8rem);
    font-weight: 900;
    background: var(--gradient-ai-orange-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    letter-spacing: -0.03em;
    text-shadow: 0 0 60px rgba(102, 126, 234, 0.5);
    filter: drop-shadow(0 4px 20px rgba(102, 126, 234, 0.4));
}

.score-max {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1;
    position: relative;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    filter: drop-shadow(0 2px 10px rgba(102, 126, 234, 0.4));
}

.overall-score-message {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.overall-score-cta {
    margin-top: 3rem;
    text-align: center;
}

.score-cta-main-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-ai-pink-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.score-cta-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    font-weight: 500;
}

.score-cta-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   КОНТЕКСТНЫЕ КАРТОЧКИ (ПРОБЛЕМЫ И СОЦИАЛЬНОЕ ДОКАЗАТЕЛЬСТВО)
   ═══════════════════════════════════════════════════════════════ */

.score-context-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.score-context-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 2rem;
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.score-context-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-ai-pink-horizontal);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.score-context-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

.score-context-card:hover::before {
    transform: scaleX(1);
}

.score-context-problems {
    border-left: 4px solid rgba(239, 68, 68, 0.5);
}

.score-context-problems:hover {
    border-left-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.2);
}

.score-context-social {
    border-left: 4px solid rgba(16, 185, 129, 0.5);
}

.score-context-social:hover {
    border-left-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
}

.score-context-concrete {
    border-left: 4px solid rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.score-context-concrete:hover {
    border-left-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
}

.score-context-solution {
    margin-top: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.score-context-solution-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.score-context-solution-text strong {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.score-context-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-context-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.6));
    transition: all 0.3s ease;
}

.score-context-card:hover .score-context-icon svg {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 1));
    transform: scale(1.1);
}

.score-context-title {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.score-context-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.score-context-list li {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.score-context-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(99, 102, 241, 0.8);
    font-size: 1.5rem;
    line-height: 1;
}

.score-context-list li:last-child {
    margin-bottom: 0;
}

.score-context-text {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.score-context-highlight {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
}

.score-context-highlight svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   АНИМИРОВАННАЯ СТРЕЛКА ВНИЗ
   ═══════════════════════════════════════════════════════════════ */

.score-arrow-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.score-arrow-down:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(4px);
}

.score-arrow-down svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
}

.score-arrow-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.score-arrow-down:hover .score-arrow-text {
    color: rgba(255, 255, 255, 0.95);
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .score-context-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .score-context-card {
        padding: 1.5rem;
    }

    .score-header {
        margin-bottom: 2rem;
    }

    .overall-score-visual {
        margin-bottom: 2rem;
    }
}

.score-timer-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.score-timer-wrapper.timer-urgent {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.score-timer-wrapper.timer-critical {
    border-color: rgba(220, 38, 38, 0.8);
    background: rgba(220, 38, 38, 0.15);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    animation: timerWrapperPulse 0.5s ease-in-out infinite;
}

@keyframes timerWrapperPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    }

    50% {
        box-shadow: 0 0 50px rgba(220, 38, 38, 0.8);
    }
}

.score-timer-icon {
    font-size: 1.5rem;
}

.score-timer-text {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
}

.score-timer {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    color: #ff6b6b;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
}

@keyframes timerPulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    }
}

@keyframes timerCriticalPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 15px rgba(220, 38, 38, 0.8);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
        text-shadow: 0 0 25px rgba(220, 38, 38, 1);
    }
}

.score-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.score-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.score-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.score-feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-feature-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
    transition: all 0.3s ease;
}

.score-feature-item:hover .score-feature-icon svg {
    filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.8));
    transform: scale(1.1);
}

.score-feature-text {
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-weight: 500;
}

.score-cta-button {
    padding: 1.5rem 3rem;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(255, 0, 110, 0.4),
        0 0 40px rgba(131, 56, 236, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.score-cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 48px rgba(255, 0, 110, 0.6),
        0 0 60px rgba(131, 56, 236, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
    background-position: 100% 0;
    border-color: rgba(255, 255, 255, 0.4);
}

.score-cta-button:hover::before {
    left: 100%;
}

.score-cta-button:active {
    transform: translateY(-2px) scale(1);
}

.score-cta-hint {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.6);
    margin: 1.5rem 0 0;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   DETAILED STATS (14 параметров)
   ═══════════════════════════════════════════════════════════════ */

.detailed-stats-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: visible !important;
    /* ✅ ИСПРАВЛЕНО: Убираем overflow для предотвращения второго скроллинга */
}

.detailed-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.detailed-stats-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.detailed-stats-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--gradient-ai-orange-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    letter-spacing: 1px;
}

.detailed-stats-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.detailed-stats-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible !important;
    /* ✅ ИСПРАВЛЕНО: Убираем второй скроллинг */
}

.stats-category {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 40px rgba(102, 126, 234, 0.05);
    position: relative;
    overflow: hidden;
}

.stats-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-ai-orange-horizontal);
    opacity: 0.6;
}

.stats-category-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.stats-category-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .stats-category-params {
        grid-template-columns: 1fr;
    }

    /* ✅ ИСПРАВЛЕНО: Убираем второй скроллинг на мобильных */
    .detailed-stats-section {
        overflow: visible !important;
    }

    .detailed-stats-content {
        overflow: visible !important;
    }

    .stats-category {
        overflow: visible !important;
    }
}

.stats-parameter {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-parameter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.stats-parameter:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2);
}

.stats-parameter:hover::before {
    left: 100%;
}

.stats-parameter-header {
    margin-bottom: 1rem;
}

.stats-parameter-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stats-parameter-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.stats-parameter-text {
    flex: 1;
    min-width: 0;
}

.stats-parameter-name {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.stats-parameter-score {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    text-shadow: 0 0 20px currentColor;
}

.stats-parameter-score--green {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.stats-parameter-score--yellow {
    color: #ffbe0b;
    background: rgba(255, 190, 11, 0.1);
    box-shadow: 0 0 20px rgba(255, 190, 11, 0.3);
}

.stats-parameter-score--red {
    color: #ff006e;
    background: rgba(255, 0, 110, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.stats-parameter-progress {
    margin-bottom: 0.75rem;
}

.stats-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stats-progress-bar--green .stats-progress-fill {
    background: linear-gradient(90deg, #00ff88 0%, #00f5ff 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stats-progress-bar--yellow .stats-progress-fill {
    background: linear-gradient(90deg, #ffbe0b 0%, #ff006e 100%);
    box-shadow: 0 0 10px rgba(255, 190, 11, 0.5);
}

.stats-progress-bar--red .stats-progress-fill {
    background: linear-gradient(90deg, #ff006e 0%, #8338ec 100%);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.stats-progress-fill {
    height: 100%;
    border-radius: 4px;
}

.stats-parameter-hint {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.stats-parameter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(102, 126, 234, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.stats-modal-content h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
    background: var(--gradient-ai-pink-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-modal-content p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.stats-modal-content strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.stats-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.stats-modal-close:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.4);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .canvas-hero-title {
        font-size: 2rem;
    }

    .canvas-hero-subtitle {
        font-size: 1rem;
    }

    .canvas-container {
        height: 300px;
    }

    .data-progress-tracker {
        padding: 1rem;
        margin: 1rem 0;
    }

    .tracker-title {
        font-size: 0.9rem;
    }

    .progress-item-label {
        font-size: 0.85rem;
    }

    .progress-item-value {
        font-size: 0.85rem;
    }

    .status-text {
        font-size: 0.8rem;
    }

    .critical-params-title,
    .strong-params-title,
    .overall-score-title,
    .detailed-stats-title {
        font-size: 1.75rem;
    }

    .score-number {
        font-size: 3rem;
    }

    .score-cta-button {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ═══════════════════════════════════════════════════════════════ */

.how-it-works-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.how-it-works-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.how-it-works-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.how-it-works-method {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.method-step:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.1);
}

.method-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.method-content {
    flex: 1;
}

.method-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #60a5fa;
    margin: 0 0 0.5rem;
}

.method-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.how-it-works-visualization {
    position: relative;
}

.visualization-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.visualization-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.visualization-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.problem-zone-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
}

.marker-pulse {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.marker-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.marker-tooltip.active {
    opacity: 1;
    visibility: visible;
}

.tooltip-title {
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.tooltip-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.visualization-legend,
.visualization-hint {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    display: inline-block;
}

.visualization-legend {
    margin: 0 0 0.5rem;
}

.visualization-hint {
    margin: 0;
    font-size: 1.05rem;
}

.how-it-works-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.how-it-works-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .how-it-works-section {
        padding: 3rem 1.5rem;
    }

    .how-it-works-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .visualization-canvas-wrapper {
        height: 250px;
    }

    .method-step {
        flex-direction: column;
        text-align: center;
    }

    .method-icon {
        margin: 0 auto;
    }

    .method-step:hover {
        transform: translateY(-3px);
    }
}