/* ============================================================
   Cryptanov — Structural ATR Landing
   styles.css · v1.0.0
   Naming: BEM-light (block__element--modifier)
   ============================================================ */

/* ── 1. Design tokens ─────────────────────────────────────── */
:root {
    /* Surfaces */
    --color-bg:        #06090f;
    --color-bg-alt:    #0a0f1a;
    --color-surface:   #0d1323;
    --color-surface-2: #161e2e;

    /* Borders */
    --color-border:    rgba(255, 255, 255, .06);
    --color-border-2:  rgba(255, 255, 255, .12);

    /* Text */
    --color-text:       #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-faint: #64748b;
    --color-white:      #ffffff;

    /* Accents */
    --color-accent:       #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-glow:  rgba(59, 130, 246, .15);
    --color-positive:     #10b981;
    --color-negative:     #ef4444;

    --gradient-accent: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-text:   linear-gradient(135deg, #60a5fa, #a78bfa);

    /* Geometry */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;

    /* Type */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --container-width: 1200px;
    --header-height: 72px;
    --section-gap: clamp(88px, 12vw, 140px);
}

/* ── 2. Reset & base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-light); }

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Language switching: only the active language is rendered */
body[data-current-lang="en"] [data-lang="ru"] { display: none !important; }
body[data-current-lang="ru"] [data-lang="en"] { display: none !important; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--color-white); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem);    font-weight: 900; letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
p  { color: var(--color-text-muted); font-size: 1.05rem; }

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-mono { font-family: var(--font-mono); }

/* ── 4. Utilities & layout ────────────────────────────────── */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 28px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
    position: absolute; top: -48px; left: 16px; z-index: 2000;
    padding: 10px 18px;
    background: var(--color-accent); color: #fff;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none; font-weight: 600; font-size: .9rem;
    transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px;
    border: none; border-radius: var(--radius-md);
    font: 600 .95rem/1 var(--font-sans);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn--primary {
    background: var(--gradient-accent); color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, .25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 130, 246, .4); }
.btn--secondary {
    background: var(--color-surface-2); color: var(--color-white);
    border: 1px solid var(--color-border-2);
}
.btn--secondary:hover { border-color: var(--color-accent); color: var(--color-accent-light); }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── 6. Header ────────────────────────────────────────────── */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000;
    background: rgba(6, 9, 15, .75);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow .3s;
}
.site-header--scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: var(--header-height);
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.2rem; letter-spacing: .02em;
    color: #fff; text-decoration: none;
}
.logo__icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--gradient-accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.logo__icon svg { width: 18px; height: 18px; fill: #fff; }

.main-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav__link {
    display: block; padding: 8px 14px;
    color: var(--color-text-muted); text-decoration: none;
    font-size: .875rem; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}
.main-nav__link:hover { color: #fff; background: rgba(255, 255, 255, .05); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    color: var(--color-text-muted);
    padding: 7px 14px; border-radius: var(--radius-sm);
    font: 600 .8rem var(--font-sans); letter-spacing: .04em;
    cursor: pointer; transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--color-accent); color: var(--color-accent-light); }

.nav-burger {
    display: none;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--color-border-2); border-radius: var(--radius-sm);
    cursor: pointer; position: relative;
}
.nav-burger__line {
    position: absolute; left: 10px; right: 10px; height: 2px;
    background: var(--color-text); border-radius: 2px;
    transition: transform .25s, opacity .25s, top .25s;
}
.nav-burger__line:nth-child(1) { top: 13px; }
.nav-burger__line:nth-child(2) { top: 19px; }
.nav-burger__line:nth-child(3) { top: 25px; }
.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ── 7. Sections (shared) ─────────────────────────────────── */
.section { padding: var(--section-gap) 0; position: relative; }
.section--alt { background: var(--color-bg-alt); border-block: 1px solid var(--color-border); }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__intro { margin-top: 20px; }

.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: .75rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 20px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--color-accent); }

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: var(--header-height);
    position: relative;
}
.hero__grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px;
    align-items: center;
}
.hero__lead { font-size: 1.2rem; line-height: 1.8; max-width: 680px; margin-top: 28px; }
.hero__cta { margin-top: 40px; }

.hero__stats {
    display: flex; gap: 48px;
    margin-top: 48px; padding: 0; list-style: none;
}
.hero-stat__value { font-size: 2rem; font-weight: 900; color: #fff; }
.hero-stat__value em { font-style: normal; color: var(--color-accent-light); }
.hero-stat__label {
    font-size: .8rem; color: var(--color-text-faint);
    text-transform: uppercase; letter-spacing: .08em; margin-top: 2px;
}

.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__chart { width: 100%; max-width: 520px; margin: 0; }
.hero__chart svg { filter: drop-shadow(0 0 40px rgba(59, 130, 246, .15)); }

.glow-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .15; pointer-events: none;
}
.glow-orb--blue   { width: 300px; height: 300px; background: var(--color-accent); top: 15%; right: 5%; }
.glow-orb--violet { width: 220px; height: 220px; background: #8b5cf6; bottom: 5%; left: 5%; }

@keyframes chart-dash { to { stroke-dashoffset: -20; } }
@keyframes chart-pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.chart-line--lagging { animation: chart-dash 2s linear infinite; }
.chart-dot { animation: chart-pulse 2.5s ease-in-out infinite; }

/* ── 9. Trust bar ─────────────────────────────────────────── */
.trust-bar {
    background: var(--color-bg-alt);
    border-block: 1px solid var(--color-border);
    padding: 36px 0;
}
.trust-bar__list {
    display: flex; align-items: center; justify-content: center;
    gap: 24px 64px; flex-wrap: wrap; list-style: none;
}
.trust-bar__item {
    display: flex; align-items: center; gap: 12px;
    color: var(--color-text-faint); font-size: .9rem; font-weight: 500;
}
.trust-bar__item svg { width: 20px; height: 20px; opacity: .5; flex-shrink: 0; }

/* ── 10. Theory: definition + method duel ─────────────────── */
.definition {
    border-left: 3px solid var(--color-accent);
    background: linear-gradient(90deg, rgba(59, 130, 246, .06), transparent 60%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 32px 36px;
    max-width: 900px; margin: 0 auto 64px;
}
.definition h3 { margin-bottom: 10px; }
.definition p { font-size: 1.1rem; }

.method-duel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.method-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.method-card__title {
    padding-bottom: 18px; margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border-2);
}
.method-card--classic .method-card__title { color: var(--color-text-muted); }
.method-card--advanced { border-color: rgba(59, 130, 246, .35); box-shadow: 0 0 50px rgba(59, 130, 246, .07); }
.method-card--advanced .method-card__title { color: var(--color-accent-light); border-color: var(--color-accent); }
.method-card p + p { margin-top: 16px; }
.method-card strong { color: var(--color-text); }

/* ── 11. Problem cards ────────────────────────────────────── */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.problem-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative; overflow: hidden;
}
.problem-card::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 3px;
    background: var(--color-negative); opacity: .6;
}
.problem-card__number {
    position: absolute; top: 16px; right: 24px;
    font-size: 4rem; font-weight: 900; line-height: 1;
    color: rgba(255, 255, 255, .04);
    font-family: var(--font-mono);
}
.problem-card__title { color: var(--color-negative); margin-bottom: 12px; font-size: 1.2rem; }
.problem-card p { font-size: .98rem; }
.problem-card strong { color: var(--color-text); }

/* ── 12. Comparison table ─────────────────────────────────── */
.compare-scroll { overflow-x: auto; margin-top: 56px; }
.compare-table {
    width: 100%; min-width: 640px;
    border-collapse: separate; border-spacing: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.compare-table th, .compare-table td {
    padding: 20px 28px; text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: .95rem;
}
.compare-table thead th {
    background: var(--color-surface);
    font-weight: 700; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--color-text-faint);
}
.compare-table thead th:last-child { color: var(--color-accent-light); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody th[scope="row"] { font-weight: 600; color: var(--color-text); }
.compare-table tbody td:nth-child(2) { color: var(--color-text-faint); }
.compare-table tbody td:last-child {
    color: var(--color-accent-light); font-weight: 600;
    background: rgba(59, 130, 246, .04);
}
.compare-icon {
    display: inline-flex; width: 22px; height: 22px;
    border-radius: 50%; align-items: center; justify-content: center;
    font-size: .7rem; margin-right: 8px; flex-shrink: 0;
}
.compare-icon--bad  { background: rgba(239, 68, 68, .15);  color: var(--color-negative); }
.compare-icon--good { background: rgba(16, 185, 129, .15); color: var(--color-positive); }

/* ── 13. How it works (steps) ─────────────────────────────── */
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    list-style: none; counter-reset: step;
}
.step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: border-color .3s;
}
.step:hover { border-color: rgba(59, 130, 246, .3); }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: inline-block; margin-bottom: 20px; padding: 6px 14px;
    font: 800 .75rem var(--font-mono); letter-spacing: .1em;
    color: var(--color-accent); background: var(--color-accent-glow);
    border-radius: var(--radius-sm);
}
.step__title { margin-bottom: 12px; }
.step p { font-size: .98rem; }

/* ── 14. Proof: stats + media ─────────────────────────────── */
.stats-banner {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
    list-style: none;
    background: var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.stat-cell { background: var(--color-surface); padding: 48px 32px; text-align: center; }
.stat-cell__value { font-size: 2.6rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-cell__label {
    font-size: .8rem; color: var(--color-text-faint);
    text-transform: uppercase; letter-spacing: .08em; margin-top: 10px;
}

.proof-media { margin: 64px 0 0; }
.proof-media__placeholder {
    height: 420px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-surface);
    border: 1px dashed var(--color-border-2);
    border-radius: var(--radius-lg);
    color: var(--color-text-faint);
    font-family: var(--font-mono); font-size: .9rem;
    text-align: center; padding: 24px;
}
.proof-media__img {
    width: 100%;
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.proof-media__caption {
    margin-top: 20px; text-align: center;
    font-size: .85rem; color: var(--color-text-faint); font-style: italic;
}

.section__disclaimer {
    margin-top: 24px; text-align: center;
    font-size: .85rem; color: var(--color-text-faint);
}

/* ── 15. Use cases ────────────────────────────────────────── */
.use-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.use-card {
    display: flex; gap: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: border-color .3s;
}
.use-card:hover { border-color: rgba(59, 130, 246, .3); }
.use-card__icon {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 14px; background: var(--color-accent-glow);
    display: flex; align-items: center; justify-content: center;
}
.use-card__icon svg { width: 24px; height: 24px; stroke: var(--color-accent-light); fill: none; stroke-width: 1.8; }
.use-card__title { margin-bottom: 10px; font-size: 1.2rem; }
.use-card p { font-size: .98rem; }
.use-card strong { color: var(--color-text); }

/* ── 16. FAQ accordion ────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px; overflow: hidden;
    transition: border-color .3s;
}
.faq-item:hover { border-color: var(--color-border-2); }
.faq-item__heading { margin: 0; font-size: inherit; }
.faq-item__question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; padding: 22px 28px;
    background: transparent; border: none; cursor: pointer;
    font: 600 1.05rem/1.4 var(--font-sans);
    color: #fff; text-align: left;
    transition: background .2s;
}
.faq-item__question:hover { background: rgba(255, 255, 255, .02); }
.faq-item__icon {
    width: 20px; height: 20px; flex-shrink: 0;
    stroke: var(--color-text-faint); fill: none; stroke-width: 2;
    transition: transform .3s;
}
.faq-item__question[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer-inner { overflow: hidden; }
.faq-item__answer-inner p {
    padding: 0 28px 26px;
    font-size: .95rem; line-height: 1.8;
}

/* ── 17. Pricing ──────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
    display: flex; flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    position: relative;
    transition: transform .3s, border-color .3s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--color-border-2); }
.price-card--featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 60px rgba(59, 130, 246, .08), inset 0 1px 0 rgba(59, 130, 246, .2);
}
.price-card__badge {
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-accent); color: #fff;
    font-size: .7rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    border-radius: 0 0 10px 10px;
}
.price-card__tier {
    font-size: .85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--color-text-faint); margin-bottom: 16px;
}
.price-card__amount { font-size: 3.2rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px; }
.price-card__amount small { font-size: 1.2rem; color: var(--color-text-faint); font-weight: 400; }
.price-card__period { font-size: .85rem; color: var(--color-text-faint); }
.price-card__desc { margin: 24px 0 28px; font-size: .95rem; }
.price-card__features { list-style: none; flex: 1; margin-bottom: 36px; }
.price-card__features li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: var(--color-text-muted); font-size: .9rem;
    border-bottom: 1px solid var(--color-border);
}
.price-card__features li:last-child { border-bottom: none; }
.price-card__features li::before {
    content: '→';
    position: absolute; left: 0;
    color: var(--color-accent);
    font: 700 .8rem var(--font-mono);
}

/* ── 18. CTA banner ───────────────────────────────────────── */
.cta-banner {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 80px;
    text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute;
    top: -50%; left: -20%; width: 140%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, .07), transparent 70%);
    pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner__title { margin-bottom: 20px; }
.cta-banner__text { max-width: 600px; margin: 0 auto 40px; }
.cta-banner .cta-row { justify-content: center; }

/* ── 19. Footer ───────────────────────────────────────────── */
.site-footer { padding: 56px 0; border-top: 1px solid var(--color-border); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer .logo { font-size: 1rem; }
.site-footer .logo__icon { width: 24px; height: 24px; border-radius: 6px; }
.site-footer .logo__icon svg { width: 14px; height: 14px; }
.footer-nav__list { display: flex; gap: 32px; list-style: none; }
.footer-nav__list a {
    color: var(--color-text-faint); text-decoration: none; font-size: .85rem;
    transition: color .2s;
}
.footer-nav__list a:hover { color: var(--color-text); }
.site-footer__copy { color: var(--color-text-faint); font-size: .8rem; }

/* ── 20. Scroll-reveal ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── 21. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { order: -1; max-height: 360px; }
    .hero { min-height: auto; padding-block: calc(var(--header-height) + 48px) 72px; }
    .hero__stats { gap: 32px; }
    .method-duel, .problem-grid, .steps, .pricing-grid, .use-cases { grid-template-columns: 1fr; }
    .stats-banner { grid-template-columns: repeat(2, 1fr); }
    .cta-banner { padding: 48px 28px; }
    .site-footer__inner { flex-direction: column; text-align: center; }

    /* Mobile navigation */
    .nav-burger { display: block; }
    .main-nav {
        position: fixed; inset: var(--header-height) 0 auto;
        background: rgba(6, 9, 15, .97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-110%);
        transition: transform .3s ease;
        visibility: hidden;
    }
    .main-nav--open { transform: translateY(0); visibility: visible; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 24px; }
    .main-nav__link { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--color-border); border-radius: 0; }
    .main-nav__list li:last-child .main-nav__link { border-bottom: none; }
}

@media (max-width: 600px) {
    .hero__stats { flex-direction: column; gap: 20px; }
    .stats-banner { grid-template-columns: 1fr; }
    .cta-row { flex-direction: column; }
    .cta-row .btn { width: 100%; }
    .use-card { flex-direction: column; }
    .compare-table th, .compare-table td { padding: 14px 16px; font-size: .85rem; }
}

/* ============================================================
   v2 · «Измерительный инструмент» — дизайн-переработка
   ============================================================ */

/* ── 23. Фоновые слои секций ──────────────────────────────── */
/* Чертёжная сетка в hero, гаснущая радиально */
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }

/* Точечная «миллиметровка» на альтернативных секциях */
.section--alt {
    background-color: var(--color-bg-alt);
    background-image: radial-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* ── 24. Скролл-линейка ───────────────────────────────────── */
.scroll-ruler {
    position: fixed; right: 16px; top: 50%;
    transform: translateY(-50%);
    height: 56vh; width: 20px;
    z-index: 900; pointer-events: none;
}
.scroll-ruler__track {
    position: absolute; inset: 0;
    border-right: 1px solid var(--color-border-2);
    background-image: repeating-linear-gradient(to bottom, var(--color-border-2) 0 1px, transparent 1px 14px);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 7px 100%;
}
.scroll-ruler__thumb {
    position: absolute; right: 0; top: 0;
    width: 16px; height: 2px;
    background: var(--color-accent-light);
    box-shadow: 0 0 10px rgba(96, 165, 250, .8);
}
.scroll-ruler__value {
    position: absolute; right: 22px; top: -6px;
    font: 700 .62rem var(--font-mono);
    color: var(--color-accent-light);
    letter-spacing: .04em;
    white-space: nowrap;
}
@media (max-width: 1200px) { .scroll-ruler { display: none; } }

/* ── 25. Живой индикатор ──────────────────────────────────── */
.live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-positive);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
    animation: live-pulse 2s ease-out infinite;
    flex-shrink: 0;
}
@keyframes live-pulse {
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── 26. Hero: сканлайн и readout-панель ──────────────────── */
.chart-scanline { animation: chart-scan 7s linear infinite; }
@keyframes chart-scan { from { transform: translateX(0); } to { transform: translateX(440px); } }

.hero-readout {
    position: absolute; bottom: 6%; left: -8px;
    min-width: 190px;
    padding: 14px 18px;
    background: rgba(10, 15, 26, .85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    font-size: .75rem;
}
.hero-readout__row {
    display: flex; justify-content: space-between; gap: 24px;
    padding: 3px 0;
    color: var(--color-text-faint); font-size: .75rem;
}
.hero-readout__row b { color: var(--color-text); font-weight: 700; }
.hero-readout__row--head {
    justify-content: flex-start; align-items: center; gap: 8px;
    color: var(--color-accent-light); letter-spacing: .06em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px; margin-bottom: 6px;
}
@media (max-width: 1024px) {
    .hero__visual { flex-direction: column; max-height: none; }
    .hero__chart { max-width: 420px; }
    .hero-readout { position: static; margin: 16px auto 0; width: max-content; }
}

/* ── 27. Статус-строка (бывший трастбар) ──────────────────── */
.trust-bar__list { gap: 16px 48px; }
.trust-bar__item {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .12em;
    color: var(--color-text-faint);
    gap: 10px;
}

/* ── 28. Теория: VS-бейдж и мини-диаграммы ────────────────── */
.method-duel--vs { position: relative; }
.vs-badge {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border-2);
    display: flex; align-items: center; justify-content: center;
    font: 800 .8rem var(--font-mono);
    color: var(--color-accent-light);
    box-shadow: 0 0 30px rgba(0, 0, 0, .6);
    z-index: 2;
}
@media (max-width: 1024px) { .vs-badge { display: none; } }
.method-card__diagram {
    width: 100%; margin-bottom: 22px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .015);
    border: 1px solid var(--color-border);
    padding: 10px 8px;
}

/* ── 29. Проблема: чипы-вердикты ──────────────────────────── */
.problem-card__chip {
    display: inline-block; margin-top: 20px;
    padding: 6px 12px;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    color: var(--color-negative);
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: var(--radius-sm);
}

/* ── 30. Шаги: конвейер ───────────────────────────────────── */
.steps { position: relative; }
@media (min-width: 1025px) {
    .steps::before {
        content: ''; position: absolute; top: 54px; left: 6%; right: 6%;
        border-top: 1px dashed var(--color-border-2);
    }
}
.step { position: relative; background: var(--color-surface); }
.step__meta {
    font-size: .68rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--color-text-faint);
    margin: 0 0 10px;
}

/* ── 31. Терминал (демо-данные) ───────────────────────────── */
.terminal {
    background: #080d18;
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.terminal__bar {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid var(--color-border);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal__dot:nth-child(1) { background: rgba(239, 68, 68, .65); }
.terminal__dot:nth-child(2) { background: rgba(245, 158, 11, .65); }
.terminal__dot:nth-child(3) { background: rgba(16, 185, 129, .65); }
.terminal__title { margin-left: 10px; font-size: .75rem; color: var(--color-text-faint); letter-spacing: .05em; }
.terminal__status {
    margin-left: auto;
    display: flex; align-items: center; gap: 7px;
    font-size: .68rem; font-weight: 700; letter-spacing: .14em;
    color: var(--color-positive);
}
.terminal__body { overflow-x: auto; }
.terminal__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .85rem; }
.terminal__table th, .terminal__table td {
    padding: 13px 22px; text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.terminal__table th {
    font-size: .68rem; font-weight: 400;
    letter-spacing: .14em;
    color: var(--color-text-faint);
}
.terminal__table td { color: var(--color-text-muted); }
.terminal__table td:first-child { color: var(--color-text); }
.terminal__table .is-pos { color: var(--color-positive); }
.terminal__cursor-row td { border-bottom: none; padding: 10px 22px; }
.terminal__cursor {
    display: inline-block; width: 9px; height: 16px;
    background: var(--color-accent-light);
    vertical-align: middle;
    animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
/* Построчное появление данных при входе секции в вьюпорт */
.proof-media.is-visible .terminal__table tbody tr { animation: row-in .4s both; }
.proof-media.is-visible .terminal__table tbody tr:nth-child(1) { animation-delay: .15s; }
.proof-media.is-visible .terminal__table tbody tr:nth-child(2) { animation-delay: .3s; }
.proof-media.is-visible .terminal__table tbody tr:nth-child(3) { animation-delay: .45s; }
.proof-media.is-visible .terminal__table tbody tr:nth-child(4) { animation-delay: .6s; }
.proof-media.is-visible .terminal__table tbody tr:nth-child(5) { animation-delay: .75s; }
.proof-media.is-visible .terminal__table tbody tr:nth-child(6) { animation-delay: .9s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ── 32. Чипы (use cases) ─────────────────────────────────── */
.use-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
    display: inline-block; padding: 4px 10px;
    font: 700 .66rem var(--font-mono); letter-spacing: .08em;
    color: var(--color-accent-light);
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: 999px;
}

/* ── 33. База знаний ──────────────────────────────────────── */
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.learn-card {
    background: linear-gradient(180deg, var(--color-surface), rgba(13, 19, 35, .3));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: border-color .3s;
}
.learn-card:hover { border-color: rgba(59, 130, 246, .3); }
.learn-card__tag {
    font-size: .68rem; font-weight: 700; letter-spacing: .16em;
    color: var(--color-accent-light);
    margin-bottom: 14px;
}
.learn-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.learn-card p { font-size: .92rem; }
.learn-card strong { color: var(--color-text); }
@media (max-width: 1024px) { .learn-grid { grid-template-columns: 1fr; } }

/* ── 34. Тарифы: снятие страха ────────────────────────────── */
.price-card__note {
    margin-top: 12px; text-align: center;
    font-size: .78rem; color: var(--color-text-faint);
}

/* ── 35. CTA-баннер: тики линейки по низу ─────────────────── */
.cta-banner::after {
    content: ''; position: absolute;
    left: 10%; right: 10%; bottom: 24px; height: 10px;
    background-image: repeating-linear-gradient(to right, var(--color-border-2) 0 1px, transparent 1px 24px);
    opacity: .8;
}

/* ── 36. Футер: SEO-абзац ─────────────────────────────────── */
.site-footer__about { margin-bottom: 36px; max-width: 860px; }
.site-footer__about p { font-size: .85rem; color: var(--color-text-faint); line-height: 1.7; }

/* ── 38. Атмосферы секций (фоновые слои) ──────────────────── */
/* Каждая секция получает свой характер, оставаясь в системе
   «чертёж/прибор»: номер-вотермарка + смысловая подсветка.
   isolation создаёт стековый контекст, чтобы слои с z-index:-1
   легли ПОВЕРХ фона секции, но ПОД её контентом. */
.section { isolation: isolate; overflow: hidden; }
.hero { isolation: isolate; }

/* Номера секций — контурные, как маркировка на чертеже */
.section[data-watermark]::before {
    content: attr(data-watermark);
    position: absolute; top: 40px; right: 20px; z-index: -1;
    font-family: var(--font-mono); font-weight: 800;
    font-size: clamp(5rem, 12vw, 10rem); line-height: 1;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .022);
    pointer-events: none; user-select: none;
}
@supports (-webkit-text-stroke: 1px black) {
    .section[data-watermark]::before {
        color: transparent;
        -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
    }
}

/* Общий слой подсветки */
.hero::after,
#theory::after, #problem::after, #compare::after, #how::after,
#proof::after, #audience::after, #learn::after, #faq::after, #pricing::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    pointer-events: none;
}

/* Hero: холодное свечение сверху, «экран включён» */
.hero::after { background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(59, 130, 246, .07), transparent 65%); }

/* 01 Теория: ровный синий свет сверху — «лекционный» */
#theory::after { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, .06), transparent 70%); }

/* 02 Проблема: тревожное красное пятно из угла */
#problem::after { background: radial-gradient(ellipse 50% 45% at 10% 8%, rgba(239, 68, 68, .06), transparent 70%); }

/* 03 Сравнение: луч по центру, подсвечивающий таблицу */
#compare::after { background: radial-gradient(ellipse 70% 40% at 50% 55%, rgba(59, 130, 246, .05), transparent 70%); }

/* 04 Как работает: вертикальные «дорожки конвейера» */
#how::after {
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 120px);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 80%);
}

/* 05 Данные: зелёный отсвет — цвет положительной статистики */
#proof::after { background: radial-gradient(ellipse 55% 45% at 88% 6%, rgba(16, 185, 129, .05), transparent 70%); }

/* 06 Для кого: фиолетовый градиент из нижнего угла */
#audience::after { background: radial-gradient(ellipse 55% 50% at 8% 92%, rgba(139, 92, 246, .06), transparent 70%); }

/* 07 База знаний: «тетрадная» линовка */
#learn::after {
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .02) 0 1px, transparent 1px 36px);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 40%, transparent 85%);
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 40%, transparent 85%);
}

/* 08 FAQ: мягкий свет снизу, подводка к тарифам */
#faq::after { background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(59, 130, 246, .045), transparent 70%); }

/* 09 Тарифы: сине-фиолетовое «сияние решения» снизу */
#pricing::after { background: radial-gradient(ellipse 65% 55% at 50% 100%, rgba(139, 92, 246, .06), transparent 72%); }

/* ── 37. Лид-модалка и форма заявки ───────────────────────── */
[hidden] { display: none !important; }

.modal {
    position: fixed; inset: 0; z-index: 1500;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; transition: opacity .25s ease;
}
.modal.is-open { opacity: 1; }
.modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(3, 6, 12, .72);
    backdrop-filter: blur(6px);
}
.modal__dialog {
    position: relative;
    width: 100%; max-width: 440px;
    max-height: 90vh; overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    transform: translateY(14px); transition: transform .25s ease;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-faint); cursor: pointer;
    transition: color .2s, border-color .2s;
}
.modal__close:hover { color: #fff; border-color: var(--color-border-2); }
.modal__close svg { width: 16px; height: 16px; }
.modal__title { font-size: 1.35rem; margin-bottom: 8px; }
.modal__subtitle { font-size: .92rem; margin-bottom: 18px; }
.modal__plan {
    display: inline-block;
    padding: 8px 12px; margin-bottom: 18px;
    font-size: .75rem; letter-spacing: .05em;
    color: var(--color-accent-light);
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: var(--radius-sm);
}

.lead-form__field { display: block; margin-bottom: 16px; }
.lead-form__label {
    display: block; margin-bottom: 6px;
    font-size: .74rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--color-text-faint);
}
.lead-form__input {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font: inherit; font-size: .95rem;
    transition: border-color .2s;
}
.lead-form__input::placeholder { color: var(--color-text-faint); }
.lead-form__input:focus { outline: none; border-color: var(--color-accent); }
.lead-form__input[aria-invalid="true"] { border-color: var(--color-negative); }
textarea.lead-form__input { resize: vertical; min-height: 76px; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form__field-error, .lead-form__error {
    margin: -6px 0 14px;
    font-size: .85rem; color: var(--color-negative);
}
.lead-form__error { margin: 0 0 14px; }
.lead-form__submit { width: 100%; }
.lead-form__submit:disabled { opacity: .6; cursor: wait; transform: none !important; }
.lead-form__submit.is-loading::after {
    content: ''; width: 14px; height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lead-form__privacy {
    margin-top: 12px; text-align: center;
    font-size: .78rem; color: var(--color-text-faint);
}

.modal__success { text-align: center; padding: 8px 0; }
.modal__success .btn { margin-top: 8px; }
.success-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .4);
}
.success-icon svg { width: 28px; height: 28px; stroke: var(--color-positive); fill: none; stroke-width: 2.5; }

/* ── 22. Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
