/* ==========================================================================
   Киберквиз — Landing Page Styles
   Tech-Premium Cyberpunk Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg-deep: #00408a;
    --color-bg-navy: #003570;
    --color-bg-card: rgba(0, 64, 138, 0.6);
    --color-cyan: #00d4ff;
    --color-cyan-dim: rgba(0, 212, 255, 0.3);
    --color-cyan-glow: rgba(0, 212, 255, 0.5);
    --color-white: #ffffff;
    --color-silver: #e0e8f0;
    --color-silver-dim: rgba(224, 232, 240, 0.7);
    --color-danger: #ff4757;
    --color-danger-glow: rgba(255, 71, 87, 0.4);
    --color-warning: #ffa502;

    /* Typography */
    --font-primary: 'CB Stem', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;

    /* Effects */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --glow-cyan: 0 0 20px var(--color-cyan-glow), 0 0 40px var(--color-cyan-dim);
    --glow-cyan-subtle: 0 0 15px var(--color-cyan-dim);
    --glow-danger: 0 0 15px var(--color-danger-glow);
}

/* --------------------------------------------------------------------------
   Font Face
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'CB Stem';
    src: url('assets/fonts/CB_Stem-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-bg-deep);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain/Noise texture overlay for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Circuit Background
   -------------------------------------------------------------------------- */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.circuit-svg {
    width: 100%;
    height: 100%;
}

.circuit-line {
    fill: none;
    stroke: var(--color-cyan);
    stroke-width: 1.5;
    opacity: 0.5;
}

.circuit-node {
    fill: var(--color-cyan);
    opacity: 0.7;
    filter: drop-shadow(0 0 4px var(--color-cyan));
}

.circuit-signal {
    fill: var(--color-cyan);
    filter: drop-shadow(0 0 8px var(--color-cyan));
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.section {
    padding: 48px 0;
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 500;
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    text-shadow: 0 0 40px var(--color-cyan-dim);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
    margin: var(--space-sm) auto 0;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-silver);
    text-align: justify;
    max-width: 900px;
    margin: 0 auto var(--space-4xl);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(0, 64, 138, 0.95) 0%, rgba(0, 53, 112, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-cyan-dim);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-base);
}

.header-logo:hover img {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    color: var(--color-silver);
    font-size: var(--font-size-sm);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

/* Glowing underline effect */
.header-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
    transition: width 0.4s ease, left 0.4s ease;
    box-shadow: 0 0 8px var(--color-cyan);
    z-index: 1;
}

/* Glow backdrop on hover */
.header-nav a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(ellipse at center bottom, rgba(0, 212, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.header-nav a:hover {
    color: var(--color-white) !important;
    transform: translateY(-2px);
}

.header-nav a:hover::before {
    width: 100%;
    left: 0;
}

.header-nav a:hover::after {
    opacity: 1;
}

/* Active state (scroll-spy) */
.header-nav a.active {
    color: var(--color-cyan) !important;
}

.header-nav a.active::before {
    width: 60%;
    left: 20%;
    box-shadow: 0 0 12px var(--color-cyan), 0 0 20px var(--color-cyan-dim);
}

/* Progress bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cyan), #00ffff, var(--color-cyan));
    box-shadow: 0 0 10px var(--color-cyan), 0 0 20px var(--color-cyan), 0 0 30px var(--color-cyan-dim);
    z-index: 10;
    pointer-events: none;
}

.header-cta {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--color-cyan);
    border-radius: var(--border-radius);
    color: var(--color-cyan);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition-base);
}

.header-cta {
    position: relative;
    overflow: hidden;
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.header-cta:hover::before {
    left: 100%;
}

.header-cta:hover {
    background: var(--color-cyan);
    color: var(--color-bg-deep);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px) scale(1.05);
}

.header-cta:active {
    transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0099cc 100%);
    color: var(--color-bg-deep);
    box-shadow: var(--glow-cyan-subtle);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-cyan), 0 10px 30px rgba(0, 212, 255, 0.3);
    color: var(--color-bg-deep);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: var(--glow-cyan-subtle);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-xl);
}

.btn-large .btn-icon {
    width: 28px;
    height: 28px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero .container {
    width: 100%;
}

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-logo {
    margin-bottom: -160px;
    animation: heroFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 212, 255, 0.25));
}

.hero-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

.hero-title {
    margin-bottom: 0.6em;
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.95;
    line-height: 1.3;
}

.hero-slogan {
    font-size: var(--font-size-xl);
    color: var(--color-silver);
    margin-bottom: 36px;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.hero-bullet {
    color: var(--color-cyan);
    text-shadow: 0 0 10px var(--color-cyan-glow);
    animation: bulletPulse 2s ease-in-out infinite;
    display: inline-block;
    font-size: 2em;
    line-height: 0.5;
    vertical-align: middle;
}

.hero-bullet:nth-child(1) { animation-delay: 0s; }
.hero-bullet:nth-child(2) { animation-delay: 0.4s; }
.hero-bullet:nth-child(3) { animation-delay: 0.8s; }
.hero-bullet:nth-child(4) { animation-delay: 1.2s; }
.hero-bullet:nth-child(5) { animation-delay: 1.6s; }

@keyframes bulletPulse {
    0%, 100% {
        opacity: 0.4;
        text-shadow: 0 0 5px var(--color-cyan-dim);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px var(--color-cyan-glow), 0 0 25px var(--color-cyan-dim);
    }
}

/* Hero Badge (Ministry of Finance) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: rgba(0, 64, 138, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 36px;
    max-width: 680px;
}

.hero-badge-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #00d4ff;
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.3));
}

.hero-badge:hover {
    border-color: var(--color-cyan);
    box-shadow: var(--glow-cyan-subtle);
    transform: translateY(-2px);
    background: rgba(0, 64, 138, 0.8);
}

.hero-badge-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: center;
}

.hero-badge-line1 {
    font-size: var(--font-size-sm);
    color: var(--color-silver);
    line-height: 1.4;
}

.hero-badge-line2 {
    font-size: var(--font-size-xs);
    color: var(--color-silver-dim);
    line-height: 1.4;
}

.hero-badge-arrow {
    color: var(--color-cyan);
    transition: transform var(--transition-fast);
    display: inline-block;
}

.hero-badge:hover .hero-badge-arrow {
    transform: translateX(3px);
}

.hero-badge:hover .hero-badge-line1 {
    color: var(--color-white);
}

.hero-badge:hover .hero-badge-line2 {
    color: var(--color-cyan);
}

.hero-cta {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15rem;
    margin-bottom: var(--space-sm);
}

.hero-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: none;
    filter: none;
}

.hero-qr img {
    width: 140px;
    height: 140px;
    padding: var(--space-sm);
    background: var(--color-white);
    border-radius: var(--border-radius);
    transition: none;
    transform: none;
    box-shadow: none;
}

.hero-qr img:hover {
    transform: none;
    box-shadow: none;
}

.hero-qr-label {
    font-size: var(--font-size-sm);
    color: var(--color-silver);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-alt-link {
    color: var(--color-silver-dim);
    font-size: var(--font-size-sm);
}

.hero-alt-link a {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-alt-link a:hover {
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   What Section
   -------------------------------------------------------------------------- */
.section-what {
    background: linear-gradient(180deg,
        rgba(0, 53, 112, 0.3) 0%,
        rgba(0, 212, 255, 0.05) 50%,
        rgba(0, 53, 112, 0.3) 100%);
    padding: 62px 0;
}

.what-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.what-text {
    text-align: center;
    max-width: 800px;
}

.what-description {
    font-size: var(--font-size-xl);
    color: var(--color-silver);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    text-align: justify;
}

.what-description:last-child {
    margin-bottom: 0;
}

.what-description strong {
    color: var(--color-cyan);
    font-weight: 500;
}

.what-examples {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* Scam Messages Gallery */
.scam-messages {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.scam-message-wrapper {
    position: relative;
    transition: transform var(--transition-base);
}


.scam-message-wrapper:nth-child(1) {
    transform: rotate(-3deg);
}

.scam-message-wrapper:nth-child(2) {
    transform: rotate(2deg);
}

.scam-message-wrapper:nth-child(3) {
    transform: rotate(-2deg);
}

/* Индивидуальные позиции бейджей */
.scam-message-wrapper:nth-child(1) .danger-badge {
    top: 20px;
}

.scam-message-wrapper:nth-child(3) .danger-badge {
    top: 20px;
}

.scam-message-wrapper:hover {
    transform: scale(1.05);
    z-index: 10;
}

.scam-message {
    width: 480px;
    min-width: 480px;
    height: auto;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    margin-top: -40px;
    margin-bottom: -40px;
}

/* Danger Badge */
.danger-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--color-danger) 0%, #cc3344 100%);
    color: var(--color-white);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--glow-danger), 0 4px 12px rgba(255, 71, 87, 0.3);
    animation: pulseDanger 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulseDanger {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--glow-danger), 0 4px 12px rgba(255, 71, 87, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px var(--color-danger-glow), 0 6px 16px rgba(255, 71, 87, 0.4);
    }
}

/* What Section CTA - horizontal bar */
.what-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
    background: rgba(0, 64, 138, 0.9);
    border: 2px solid var(--color-cyan);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glow-cyan-subtle);
    width: 100%;
    max-width: 800px;
}

.what-cta-text {
    font-size: var(--font-size-xl);
    color: var(--color-cyan);
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 0 20px var(--color-cyan-dim);
}

@media (max-width: 640px) {
    .what-cta {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }

    .what-cta-text {
        font-size: var(--font-size-base);
    }

    .what-examples {
        display: none;
    }

    /* ===== Mobile Hero Redesign ===== */
    .hero {
        padding-top: calc(var(--header-height) + var(--space-sm));
        padding-bottom: var(--space-sm);
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
    }

    .hero .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-centered {
        gap: var(--space-xs);
    }

    .hero-logo {
        margin-bottom: 0;
    }

    .hero-logo img {
        max-width: 180px;
    }

    .hero-title {
        font-size: var(--font-size-sm);
        margin-top: -20px;
        margin-bottom: var(--space-sm);
        opacity: 0.85;
    }

    /* Vertical bullet list - hide original content */
    .hero-slogan {
        font-size: 0;
        color: transparent;
        margin-bottom: 60px;
        text-align: center;
    }

    .hero-bullet {
        display: none;
    }

    .hero-slogan::before {
        content: "✓ 3–7 минут в день\A✓ Подходит подросткам и взрослым\A✓ Объясняет ошибки\A✓ Построена на реальных кейсах";
        white-space: pre-line;
        display: block;
        text-align: left;
        color: var(--color-cyan);
        font-size: var(--font-size-sm);
        line-height: 1.9;
    }

    /* Hero badge mobile */
    .hero-badge {
        margin-bottom: var(--space-lg);
        padding: var(--space-sm) var(--space-md);
        max-width: 100%;
        border-radius: 16px;
    }

    .hero-badge-icon {
        width: 22px;
        height: 22px;
    }

    .hero-badge-line1 {
        font-size: var(--font-size-xs);
    }

    .hero-badge-line2 {
        font-size: 0.65rem;
    }

    /* Hide QR on mobile */
    .hero-qr {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
    }

    .hero-button-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }

    .hero-button-group .btn-primary {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-base);
    }

    .hero-alt-link {
        font-size: var(--font-size-xs);
        opacity: 0.8;
    }
}

/* --------------------------------------------------------------------------
   Cards Grid (Why Section)
   -------------------------------------------------------------------------- */
.section-why {
    background: linear-gradient(180deg,
        rgba(0, 53, 112, 0.2) 0%,
        transparent 50%,
        rgba(0, 53, 112, 0.2) 100%);
    padding-bottom: 96px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.card {
    background: linear-gradient(135deg, rgba(0, 64, 138, 0.7) 0%, rgba(0, 53, 112, 0.5) 100%);
    border: 2px solid var(--color-cyan-dim);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    animation: cardPulse 4s ease-in-out infinite;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 1s; }
.card:nth-child(3) { animation-delay: 2s; }
.card:nth-child(4) { animation-delay: 3s; }

@keyframes cardPulse {
    0%, 100% {
        border-color: var(--color-cyan-dim);
        box-shadow: none;
    }
    25% {
        border-color: var(--color-cyan);
        box-shadow: 0 0 20px var(--color-cyan-dim), inset 0 0 10px rgba(0, 212, 255, 0.1);
    }
    50% {
        border-color: var(--color-cyan-dim);
        box-shadow: none;
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-cyan);
    box-shadow: var(--glow-cyan-subtle), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    color: var(--color-cyan);
    filter: drop-shadow(0 0 10px var(--color-cyan-dim));
}

.card-icon svg,
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Перекраска PNG иконки в точный цвет #00d4ff */
.card-icon img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(98%) saturate(1000%) hue-rotate(152deg) brightness(104%) contrast(103%);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: var(--font-size-base);
    color: var(--color-silver);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Timeline (How Section)
   -------------------------------------------------------------------------- */
.section-how {
    background: linear-gradient(180deg,
        rgba(0, 212, 255, 0.03) 0%,
        rgba(0, 53, 112, 0.3) 50%,
        rgba(0, 212, 255, 0.03) 100%);
    padding-bottom: 96px;
}

.how-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-silver);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-cyan), var(--color-cyan-dim), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    font-size: var(--font-size-4xl);
    font-weight: 500;
    color: var(--color-cyan);
    text-shadow: 0 0 30px var(--color-cyan-glow);
    position: relative;
    z-index: 1;
    background: rgba(0, 64, 138, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-xs) var(--space-sm);
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 15px 10px rgba(0, 64, 138, 0.95);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(0, 64, 138, 0.5) 0%, rgba(0, 53, 112, 0.3) 100%);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border: 2px solid var(--color-cyan-dim);
    transition: all var(--transition-base);
    animation: borderPulse 4s ease-in-out infinite;
}

.timeline-item:nth-child(1) .timeline-content {
    animation-delay: 0s;
}

.timeline-item:nth-child(2) .timeline-content {
    animation-delay: 1.33s;
}

.timeline-item:nth-child(3) .timeline-content {
    animation-delay: 2.66s;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: var(--color-cyan-dim);
        box-shadow: none;
    }
    25% {
        border-color: var(--color-cyan);
        box-shadow: 0 0 20px var(--color-cyan-dim), inset 0 0 10px rgba(0, 212, 255, 0.1);
    }
    50% {
        border-color: var(--color-cyan-dim);
        box-shadow: none;
    }
}

.timeline-item:hover .timeline-content {
    border-color: var(--color-cyan);
    box-shadow: var(--glow-cyan-subtle);
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.timeline-text {
    color: var(--color-silver);
    line-height: 1.6;
    font-size: 1rem;
}

.timeline-visual {
    display: flex;
    align-items: center;
}

.certificate-preview {
    max-width: 180px;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-cyan-dim);
    box-shadow: var(--glow-cyan-subtle), 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
}

.certificate-preview:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--glow-cyan), 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.section-faq {
    background: linear-gradient(180deg,
        rgba(0, 53, 112, 0.2) 0%,
        transparent 100%);
    padding: 62px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, rgba(0, 64, 138, 0.5) 0%, rgba(0, 53, 112, 0.3) 100%);
    border: 1px solid var(--color-cyan-dim);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.faq-item:hover {
    border-color: var(--color-cyan);
}

.faq-item[open] {
    border-color: var(--color-cyan);
    box-shadow: var(--glow-cyan-subtle);
}

.faq-question {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-white);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: var(--font-size-xl);
    color: var(--color-cyan);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-silver);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

.faq-answer a {
    color: var(--color-cyan);
}

/* --------------------------------------------------------------------------
   Reviews Section
   -------------------------------------------------------------------------- */
.section-reviews {
    background: linear-gradient(180deg,
        rgba(0, 53, 112, 0.3) 0%,
        rgba(0, 212, 255, 0.05) 50%,
        rgba(0, 53, 112, 0.3) 100%);
    padding: 62px 0;
    overflow: visible;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.reviews-carousel {
    position: relative;
    width: 100vw;
    overflow: visible;
    padding: var(--space-md) 0;
}

.reviews-track {
    display: flex;
    gap: 32px;
    padding: 0;
    animation: scrollReviews 40s linear infinite;
    width: max-content;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc((420px + 32px) * -5));
    }
}

.review-card {
    flex-shrink: 0;
    width: 420px;
    background: linear-gradient(135deg, rgba(0, 64, 138, 0.7) 0%, rgba(0, 53, 112, 0.5) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 24px;
    padding: 24px 32px;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: reviewCardPulse 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.review-card:nth-child(1) { animation-delay: 0s; }
.review-card:nth-child(2) { animation-delay: 0.8s; }
.review-card:nth-child(3) { animation-delay: 1.6s; }
.review-card:nth-child(4) { animation-delay: 2.4s; }
.review-card:nth-child(5) { animation-delay: 3.2s; }
.review-card:nth-child(6) { animation-delay: 0s; }
.review-card:nth-child(7) { animation-delay: 0.8s; }
.review-card:nth-child(8) { animation-delay: 1.6s; }

@keyframes reviewCardPulse {
    0%, 100% {
        border-color: var(--color-cyan-dim);
        box-shadow: none;
    }
    50% {
        border-color: var(--color-cyan);
        box-shadow: 0 0 15px var(--color-cyan-dim), inset 0 0 8px rgba(0, 212, 255, 0.05);
    }
}

.review-card:hover {
    border-color: var(--color-cyan);
    box-shadow: var(--glow-cyan-subtle);
    transform: translateY(-3px);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.review-stars .star {
    color: var(--color-cyan);
    font-size: var(--font-size-base);
    text-shadow: 0 0 8px var(--color-cyan-glow);
}

.review-text {
    font-size: var(--font-size-sm);
    color: var(--color-silver);
    line-height: 1.6;
    margin: 0;
    font-style: normal;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: var(--space-sm);
    margin-top: var(--space-md);
    border-top: 1px solid var(--color-cyan-dim);
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.review-avatar--purple { background: linear-gradient(135deg, #7B68EE, #9B59B6); }
.review-avatar--yellow { background: linear-gradient(135deg, #E8B87A, #D4A06A); }
.review-avatar--green  { background: linear-gradient(135deg, #56B77B, #3BA164); }
.review-avatar--red    { background: linear-gradient(135deg, #E06C75, #CB4B54); }
.review-avatar--cyan   { background: linear-gradient(135deg, #4FC3F7, #0099CC); }

.review-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.review-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-white);
}

.review-role {
    font-size: var(--font-size-xs);
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tablet Reviews */
@media (max-width: 1024px) {
    .reviews-track {
        gap: 24px;
    }

    .review-card {
        width: 360px;
        padding: var(--space-md) var(--space-lg);
        border-radius: 20px;
    }

    .review-text {
        min-height: 64px;
    }

    @keyframes scrollReviews {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc((360px + 24px) * -5));
        }
    }
}

/* Mobile Reviews */
@media (max-width: 640px) {
    .section-reviews {
        padding: var(--space-2xl) 0;
        overflow-x: hidden;
    }

    .reviews-carousel {
        overflow-x: hidden;
    }

    .reviews-track {
        gap: 16px;
    }

    .review-card {
        width: 300px;
        padding: var(--space-md);
        border-radius: 16px;
    }

    .review-text {
        min-height: 72px;
        font-size: var(--font-size-xs);
    }

    .review-avatar {
        width: 32px;
        height: 32px;
    }

    .review-stars .star {
        font-size: var(--font-size-sm);
    }

    @keyframes scrollReviews {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc((300px + 16px) * -5));
        }
    }
}

/* --------------------------------------------------------------------------
   Final CTA Section
   -------------------------------------------------------------------------- */
.section-cta {
    padding: 48px 0;
    min-height: auto;
}

.section-cta::before {
    display: none;
}

.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 64, 138, 0.6) 100%);
    border: 2px solid var(--color-cyan);
    border-radius: var(--border-radius-lg);
    padding: 36px 96px;
    box-shadow: var(--glow-cyan), 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.cta-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 30px var(--color-cyan-dim);
}

.cta-text {
    font-size: var(--font-size-lg);
    color: var(--color-silver);
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 120px;
    width: 100%;
}

.cta-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.cta-button-group .cta-alt-link {
    margin-top: 0;
}

.cta-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.cta-qr img {
    width: 160px;
    height: 160px;
    padding: var(--space-sm);
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: none;
    transform: none;
}

.cta-qr img:hover {
    transform: none;
    box-shadow: none;
}

.cta-qr-label {
    font-size: var(--font-size-sm);
    color: var(--color-silver-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-alt-link {
    color: var(--color-silver-dim);
    font-size: var(--font-size-sm);
    margin-top: var(--space-md);
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-cyan-dim);
    background: linear-gradient(180deg, rgba(0, 53, 112, 0.8) 0%, rgba(0, 64, 138, 0.9) 100%);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    color: var(--color-silver-dim);
    font-size: var(--font-size-sm);
}

.footer-link {
    color: var(--color-cyan);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.footer-link:hover {
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }

    .header-nav {
        display: none;
    }

    .section {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    .hero-logo img {
        max-width: 450px;
    }

    .hero-logo {
        margin-bottom: -60px;
    }

    .hero-title {
        margin-bottom: var(--space-sm);
    }

    /* Tablet: 2-line bullet layout */
    .hero-slogan {
        font-size: 0;
        color: transparent;
        margin-bottom: var(--space-xl);
    }

    .hero-slogan::before {
        content: "• 3–7 минут в день • Подходит подросткам и взрослым •\A• Объясняет ошибки • Построена на реальных кейсах •";
        white-space: pre-line;
        display: block;
        text-align: center;
        color: var(--color-silver);
        font-size: var(--font-size-lg);
        line-height: 2.2;
    }

    .hero-slogan .hero-bullet {
        display: none;
    }

    .hero-badge {
        max-width: 560px;
        margin-bottom: var(--space-lg);
    }

    .hero-cta {
        gap: var(--space-xl);
    }

    .what-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .what-text {
        padding-right: 0;
        text-align: center;
    }

    .scam-messages {
        gap: var(--space-sm);
    }

    .scam-message-wrapper {
        transform: none !important;
    }

    .scam-message-wrapper:hover {
        transform: scale(1.03) !important;
    }

    .scam-message {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        margin-top: -20px;
        margin-bottom: -20px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        grid-template-columns: 70px 1fr;
    }

    .timeline::before {
        left: 35px;
    }

    .timeline-visual {
        grid-column: 2;
        margin-top: var(--space-md);
    }

    .cta-actions {
        gap: var(--space-2xl);
    }
}

/* Mobile */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
    }

    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.25rem;
        --font-size-2xl: 1.125rem;
        --space-4xl: 3rem;
        --space-3xl: 2rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .header-logo img {
        height: 36px;
    }

    /* Mobile Hero - override tablet styles */
    .hero-slogan::before {
        content: "✓ 3–7 минут в день\A✓ Подходит подросткам и взрослым\A✓ Объясняет ошибки\A✓ Построена на реальных кейсах";
        white-space: pre-line;
        display: block;
        text-align: left;
        color: var(--color-cyan);
        font-size: var(--font-size-sm);
        line-height: 1.9;
    }

    .section-what {
        min-height: auto;
    }

    .scam-messages {
        flex-direction: column;
    }

    .scam-message {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        margin-top: -20px;
        margin-bottom: -20px;
    }

    .danger-badge {
        top: -8px;
        right: -8px;
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .card {
        padding: var(--space-lg);
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: var(--space-lg);
        gap: var(--space-sm);
    }

    .timeline::before {
        left: 0;
        width: 3px;
    }

    .timeline-number {
        font-size: var(--font-size-2xl);
        text-align: left;
        background: transparent;
    }

    .timeline-content {
        padding: var(--space-md);
    }

    .timeline-visual {
        justify-content: center;
        margin-top: var(--space-sm);
    }

    .certificate-preview {
        max-width: 150px;
    }

    .cta-box {
        padding: var(--space-lg);
    }

    .cta-title {
        font-size: var(--font-size-xl);
    }

    .cta-actions {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .cta-qr img {
        width: 120px;
        height: 120px;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-mascot {
        animation: none;
    }

    .circuit-signal {
        display: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
