/* ═══════════════════════════════════════════════════════════════════════
   WOW Profit landing — собственные стили (без Tailwind: страница должна быть
   лёгкой и полностью контролируемой). Все анимированные начальные состояния
   объявлены только под html.ld-motion — без JS или при prefers-reduced-motion
   страница рендерится сразу в финальном виде.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --bg: #08090c;
    --bg-2: #0d0f14;
    --bg-3: #12151c;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f2f3f5;
    --muted: #9aa0ab;
    --dim: #5d6370;
    --accent: #cb11ab;
    --accent-2: #f472b6;
    --accent-soft: rgba(203, 17, 171, .16);
    --glow: rgba(203, 17, 171, .55);
    --ok: #10b981;
    --warn: #f59e0b;
    --bad: #ef4444;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    /* светлая палитра интерфейса (как в приложении) */
    --ui-bg: #f9fafb;
    --ui-card: #ffffff;
    --ui-border: #e5e7eb;
    --ui-text: #111827;
    --ui-muted: #6b7280;
    --ui-dim: #9ca3af;
    --radius: 16px;
    --nav-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.ld-motion { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
svg { display: block; }
::selection { background: rgba(203, 17, 171, .45); color: #fff; }

.ld-skip {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    padding: 10px 14px; background: #fff; color: #111; border-radius: 10px; font-weight: 600;
}
.ld-skip:focus { top: 16px; }

.ld-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .ld-wrap { padding: 0 48px 0 88px; } }
@media (min-width: 1400px) { .ld-wrap { padding: 0 48px; } }

/* ── Типографика ─────────────────────────────────────────────────────── */
.ld-index {
    font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-2); margin-bottom: 18px;
}
.ld-h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700;
    max-width: 760px;
}
.ld-h2--wide { max-width: 960px; font-weight: 600; }
.ld-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin-top: 16px; }
.ld-grad {
    background: linear-gradient(92deg, #f9a8d4 0%, #e01fc0 55%, #a855f7 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ld-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted);
    padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255, 255, 255, .02);
}
@media (max-width: 479px) { .ld-eyebrow__tail { display: none; } }
.ld-eyebrow__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px var(--glow);
}

/* ── Кнопки ──────────────────────────────────────────────────────────── */
.ld-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1;
    color: #fff; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
    background: linear-gradient(180deg, #e01fc0 0%, #b70f9a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 24px -8px var(--glow);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.ld-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 32px -8px var(--glow); }
.ld-btn:active { transform: translateY(0); }
.ld-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ld-btn--lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.ld-btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.ld-btn--ghost {
    background: rgba(255, 255, 255, .03); border-color: var(--line-2); box-shadow: none;
}
.ld-btn--ghost:hover { background: rgba(255, 255, 255, .07); box-shadow: none; }
.ld-btn svg { transition: transform .25s var(--ease); }
.ld-btn:hover svg { transform: translateX(3px); }

/* ── Навигация ───────────────────────────────────────────────────────── */
.ld-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.ld-nav.is-scrolled {
    background: rgba(8, 9, 12, .72); border-color: var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ld-nav__inner {
    height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (min-width: 1024px) { .ld-nav__inner { padding: 0 48px; } }
.ld-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.ld-logo__text b { font-weight: 700; color: #f04fd6; }
.ld-logo__mark { display: inline-flex; filter: drop-shadow(0 4px 12px rgba(203, 17, 171, .35)); }
.ld-nav__links { display: none; gap: 28px; font-size: 14px; color: var(--muted); }
.ld-nav__links a { transition: color .2s; }
.ld-nav__links a:hover { color: var(--text); }
@media (min-width: 900px) { .ld-nav__links { display: flex; } }
.ld-nav__actions { display: flex; align-items: center; gap: 14px; }
.ld-nav__ghost { display: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.ld-nav__ghost:hover { color: var(--text); }
@media (min-width: 640px) { .ld-nav__ghost { display: inline; } }

/* ── Сигнальная шина (desktop) и прогресс-бар (mobile) ───────────────── */
.ld-spine { display: none; }
@media (min-width: 1024px) {
    .ld-spine { display: block; position: fixed; left: 34px; top: 112px; bottom: 96px; width: 1px; z-index: 50; }
    .ld-spine__line { position: absolute; inset: 0; background: var(--line-2); }
    .ld-spine__fill {
        position: absolute; left: 0; top: 0; width: 1px; height: 100%;
        background: linear-gradient(180deg, rgba(203, 17, 171, .2), var(--accent));
        transform: scaleY(0); transform-origin: top; will-change: transform;
    }
    .ld-spine__dot {
        position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px;
        border-radius: 50%; background: #fff;
        box-shadow: 0 0 0 4px rgba(203, 17, 171, .35), 0 0 18px 4px var(--glow);
        will-change: transform;
    }
    .ld-spine__marks li {
        position: absolute; left: 0; margin-top: -1px; display: flex; align-items: center; gap: 10px;
        cursor: pointer; color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
        transition: color .3s;
    }
    .ld-spine__marks li i { display: block; width: 7px; height: 1px; background: var(--line-2); margin-left: -3px; transition: background .3s, width .3s; }
    .ld-spine__marks li.is-lit { color: var(--accent-2); }
    .ld-spine__marks li.is-lit i { background: var(--accent-2); width: 10px; }
    .ld-spine__marks li:hover { color: var(--text); }
}
@media (min-width: 1400px) { .ld-spine { left: 40px; } }
.ld-progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 61; pointer-events: none; }
.ld-progress span {
    display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left; will-change: transform;
}
@media (min-width: 1024px) { .ld-progress { display: none; } }

/* ── Общие секции ────────────────────────────────────────────────────── */
.ld-section { position: relative; padding: 96px 0; scroll-margin-top: var(--nav-h); }
@media (min-width: 1024px) { .ld-section { padding: 140px 0; } }

/* Reveal при появлении в viewport */
html.ld-motion [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
html.ld-motion [data-reveal].in { opacity: 1; transform: none; }

/* ═══════════════════════ 01 · HERO ═══════════════════════════════════ */
.ld-hero {
    position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 72px;
    display: flex; align-items: center; overflow: hidden;
}
.ld-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.ld-hero__bg::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(900px 600px at 78% 30%, rgba(203, 17, 171, .16), transparent 60%),
        radial-gradient(600px 400px at 15% 80%, rgba(139, 92, 246, .08), transparent 60%);
}
.ld-hero__bg::after {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.ld-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1024px) { .ld-hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; } }
.ld-hero__title {
    font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
    margin: 24px 0 22px;
}
.ld-hero__lead { font-size: 17px; color: var(--muted); max-width: 560px; }
@media (min-width: 1024px) { .ld-hero__lead { font-size: 18px; } }
.ld-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ld-hero__facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.ld-hero__facts li { display: flex; align-items: center; gap: 12px; }
.ld-hero__facts b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.ld-hero__facts span { font-size: 12.5px; line-height: 1.3; color: var(--dim); }

/* визуал справа */
.ld-hero__visual { position: relative; height: 520px; }
.ld-hero__wires, .ld-hero__sources { display: none; }
@media (min-width: 1024px) {
    .ld-hero__visual { height: 560px; }
    .ld-hero__wires { display: block; position: absolute; left: 112px; top: 0; width: 76px; height: 100%; overflow: visible; }
    .ld-hero__sources { display: block; position: absolute; left: 0; top: 0; width: 130px; height: 100%; }
    .ld-hero__sources li {
        position: absolute; left: 0; width: 124px; padding: 7px 9px; border-radius: 10px;
        border: 1px solid var(--line); background: rgba(13, 15, 20, .8); font-size: 11px; color: var(--dim); line-height: 1.3;
    }
    .ld-hero__sources li span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-bottom: 2px; }
    .ld-hero__sources li:nth-child(1) { top: calc(14.3% - 22px); }
    .ld-hero__sources li:nth-child(2) { top: calc(50% - 22px); }
    .ld-hero__sources li:nth-child(3) { top: calc(85.7% - 22px); }
}
.ld-wire { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ld-wire--pulse {
    stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round;
    stroke-dasharray: 34 600; stroke-dashoffset: 634;
    filter: drop-shadow(0 0 5px var(--glow));
}
html.ld-motion .ld-wire--pulse { animation: ldWire 3.6s linear infinite; }
html.ld-motion .ld-wire--pulse-2 { animation-delay: 1.2s; }
html.ld-motion .ld-wire--pulse-3 { animation-delay: 2.4s; }
.ld-hero.is-paused .ld-wire--pulse { animation-play-state: paused; }
@keyframes ldWire { to { stroke-dashoffset: 0; } }
html.ld-static .ld-wire--pulse { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .35; filter: none; }

.ld-hero__window { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
@media (min-width: 1024px) { .ld-hero__window { left: 172px; right: 0; } }
.ld-chip {
    position: absolute; z-index: 3; display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px;
    background: rgba(18, 21, 28, .9); border: 1px solid var(--line-2);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 12.5px; min-width: 200px;
}
.ld-chip__k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.ld-chip__v { color: var(--text); }
.ld-chip__v b { color: #fff; font-weight: 700; }
.ld-chip__s { color: var(--dim); font-size: 11.5px; }
.ld-chip--1 { left: 0; bottom: 6px; }
.ld-chip--2 { right: 0; top: -22px; display: none; }
@media (min-width: 640px) { .ld-chip--2 { display: grid; } }
@media (min-width: 1024px) { .ld-chip--1 { left: 118px; bottom: 34px; } .ld-chip--2 { right: -24px; top: -30px; } }

.ld-hero__scroll {
    position: absolute; left: 50%; bottom: 22px; width: 24px; height: 40px; margin-left: -12px;
    border: 1px solid var(--line-2); border-radius: 12px; display: none;
}
.ld-hero__scroll span {
    position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent-2);
}
html.ld-motion .ld-hero__scroll span { animation: ldScroll 2s var(--ease) infinite; }
@keyframes ldScroll { 0%, 20% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }
@media (min-width: 1024px) { .ld-hero__scroll { display: block; } }

/* entrance */
html.ld-motion .ld-hero__a { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.ld-motion .ld-hero__window.ld-hero__a { transform: translateY(calc(-50% + 30px)); }
html.ld-motion body.is-ready .ld-hero__a { opacity: 1; transform: none; }
html.ld-motion body.is-ready .ld-hero__window.ld-hero__a { transform: translateY(-50%); }

/* ── Окно интерфейса (светлое, как приложение) ───────────────────────── */
.ld-window {
    background: var(--ui-bg); color: var(--ui-text); border-radius: 14px; overflow: hidden;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 80px -20px rgba(203, 17, 171, .25);
    font-size: 12px; line-height: 1.35;
}
.ld-window__bar {
    display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--ui-border);
}
.ld-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e5e7eb; }
.ld-window__bar i:nth-child(1) { background: #fca5a5; } .ld-window__bar i:nth-child(2) { background: #fde68a; } .ld-window__bar i:nth-child(3) { background: #a7f3d0; }
.ld-window__bar span { margin-left: 8px; font-size: 11px; color: var(--ui-dim); }
.ld-window__body { padding: 14px; display: grid; gap: 12px; }

.ld-kpi { background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.ld-kpi span { font-size: 11px; color: var(--ui-muted); }
.ld-kpi b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-kpi b.ok { color: #059669; }
.ld-kpi em { font-style: normal; font-size: 10.5px; font-weight: 600; }
.ld-kpi em.up { color: #059669; } .ld-kpi em.dn { color: #dc2626; }
.ld-mini-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) and (max-width: 1023px) { .ld-mini-kpis { grid-template-columns: repeat(4, 1fr); } }
.ld-mini-chart { background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 12px; padding: 10px 12px 6px; }
.ld-mini-chart__head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ui-muted); margin-bottom: 6px; font-weight: 600; }
.ld-mini-chart svg { width: 100%; height: 96px; }
.ld-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ld-line--2 { stroke: #10b981; stroke-width: 1.5; stroke-dasharray: 4 4; }
html.ld-motion .ld-hero__window .ld-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.8s var(--ease) .6s; }
html.ld-motion .ld-hero__window .ld-line--2 { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition-delay: .9s; }
html.ld-motion body.is-ready .ld-hero__window .ld-line { stroke-dashoffset: 0; }
html.ld-motion body.is-ready .ld-hero__window .ld-line--2 { stroke-dasharray: 4 4; }
.ld-mini-rows { display: grid; gap: 6px; }
.ld-mini-rows div { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 10px; overflow: hidden; }
.ld-mini-rows i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: linear-gradient(90deg, rgba(203, 17, 171, .1), rgba(203, 17, 171, .02)); transform-origin: left; }
html.ld-motion .ld-mini-rows i { transform: scaleX(0); transition: transform 1.2s var(--ease) 1s; }
html.ld-motion body.is-ready .ld-mini-rows i { transform: none; }
.ld-mini-rows span, .ld-mini-rows b { position: relative; }
.ld-mini-rows span { color: var(--ui-text); }
.ld-mini-rows b { font-weight: 600; }

/* ═══════════════════════ 02 · ЧТО ЭТО ════════════════════════════════ */
.ld-what { border-top: 1px solid var(--line); }
.ld-what__grid { display: grid; gap: 40px; margin-top: 64px; }
@media (min-width: 768px) { .ld-what__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.ld-what__col { position: relative; padding-top: 22px; }
.ld-what__col::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--line); }
.ld-what__col::after { content: ''; position: absolute; left: 0; top: 0; width: 48px; height: 1px; background: var(--accent-2); }
.ld-what__col h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.ld-what__col p { color: var(--muted); font-size: 15px; }

/* ═══════════════════════ Scroll-сцены (sticky) ═══════════════════════ */
.ld-scene { position: relative; height: 240vh; }
@media (min-width: 768px) { .ld-scene { height: 280vh; } }
@media (min-width: 1024px) { .ld-scene { height: 320vh; } }
.ld-scene__sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    display: flex; align-items: center;
}
html.ld-static .ld-scene, html:not(.ld-js) .ld-scene { height: auto; }
html.ld-static .ld-scene__sticky, html:not(.ld-js) .ld-scene__sticky { position: static; height: auto; padding: 96px 0; overflow: visible; }
.ld-scene .ld-index { margin-bottom: 12px; }
.ld-scene .ld-h2 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); }

/* ═══════════════════════ 03 · ПОТОК ДАННЫХ ═══════════════════════════ */
.ld-flow__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; width: 100%; }
@media (min-width: 1024px) { .ld-flow__inner { gap: 44px; } }
.ld-flow__head .ld-sub { margin-top: 8px; font-size: 15px; }
@media (max-width: 767px) { .ld-flow__head .ld-sub { display: none; } }
.ld-flow__stage { position: relative; display: grid; gap: 10px; }
@media (min-width: 768px) { .ld-flow__stage { grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 12px 0; } }
.ld-flow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ld-flow__path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ld-flow__path--lit { stroke: var(--accent-2); stroke-width: 2; filter: drop-shadow(0 0 6px var(--glow)); }
.ld-pulse { opacity: 0; }
.ld-pulse.is-on { opacity: 1; }
.ld-pulse__halo { fill: rgba(203, 17, 171, .25); }
.ld-pulse__core { fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px var(--glow)); }

.ld-node { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.ld-node__icon {
    grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: var(--bg-2); border: 1px solid var(--line-2); color: var(--dim);
    transition: border-color .5s, color .5s, box-shadow .6s, background .5s;
}
.ld-node__icon svg { width: 22px; height: 22px; }
.ld-node__title { font-weight: 600; font-size: 14px; color: var(--muted); transition: color .5s; }
.ld-node__cap { font-size: 12px; color: var(--dim); line-height: 1.35; transition: color .5s, opacity .6s var(--ease), transform .6s var(--ease); }
.ld-node.is-lit .ld-node__icon { border-color: var(--accent-2); color: #fff; background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(203, 17, 171, .12), 0 0 40px -6px var(--glow); }
.ld-node.is-lit .ld-node__title { color: #fff; }
.ld-node.is-lit .ld-node__cap { color: var(--muted); }
html.ld-motion .ld-node:not(.is-lit) .ld-node__cap { opacity: .35; transform: translateY(4px); }
@media (min-width: 768px) {
    .ld-node { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 8px; justify-items: center; align-content: start; text-align: center; padding: 0 6px; }
    .ld-node__icon { grid-row: auto; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 8px; }
    .ld-node__icon svg { width: 26px; height: 26px; }
    .ld-node__title { font-size: 15px; }
    .ld-node__cap { font-size: 12.5px; max-width: 210px; }
}
.ld-flow__log { display: none; font-family: var(--mono); font-size: 12px; color: var(--dim); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: rgba(13, 15, 20, .6); min-height: 148px; }
@media (min-width: 768px) { .ld-flow__log { display: block; } }
.ld-flow__log div { display: flex; gap: 12px; padding: 3px 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.ld-motion .ld-flow__log div { opacity: 0; transform: translateX(-6px); }
.ld-flow__log div.is-on { opacity: 1 !important; transform: none !important; color: var(--muted); }
.ld-flow__log i { font-style: normal; color: var(--accent-2); width: 40px; flex-shrink: 0; }

/* ═══════════════════════ 04 · ВОЗМОЖНОСТИ ════════════════════════════ */
.ld-features { border-top: 1px solid var(--line); }
.ld-features__layout { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 1024px) { .ld-features__layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; } }
.ld-features__panel-wrap { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 2; }
@media (min-width: 1024px) { .ld-features__panel-wrap { top: calc(50vh - 220px); } }
.ld-features__panel {
    position: relative; aspect-ratio: 16 / 10; background: var(--ui-bg); color: var(--ui-text); border-radius: 16px; overflow: hidden;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
    font-size: 12px;
}
@media (min-width: 1024px) { .ld-features__panel { aspect-ratio: 4 / 3; max-height: 440px; } }
.ld-fp { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), transform .55s var(--ease); transform: translateY(14px) scale(.985); }
.ld-fp.is-active { opacity: 1; pointer-events: auto; transform: none; }
.ld-fp__title { font-size: 11.5px; font-weight: 600; color: var(--ui-muted); padding-bottom: 10px; border-bottom: 1px solid var(--ui-border); }
.ld-fp__foot { display: flex; gap: 16px; font-size: 11px; color: var(--ui-muted); margin-top: auto; }
.ld-fp__foot .ok { color: #059669; font-weight: 600; margin-left: auto; }
.ld-fp__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ld-tag { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--ui-border); color: var(--ui-text); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ld-tag--ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ld-tag--warn { background: #fffbeb; border-color: #fde68a; color: #b45309; }
html.ld-motion .ld-fp .ld-tag { opacity: 0; transform: translateY(6px); }
html.ld-motion .ld-fp.is-active .ld-tag { opacity: 1; transform: none; }
html.ld-motion .ld-fp.is-active .ld-tag:nth-child(1) { transition-delay: .35s; }
html.ld-motion .ld-fp.is-active .ld-tag:nth-child(2) { transition-delay: .45s; }
html.ld-motion .ld-fp.is-active .ld-tag:nth-child(3) { transition-delay: .55s; }
html.ld-motion .ld-fp.is-active .ld-tag:nth-child(4) { transition-delay: .65s; }

/* waterfall */
.ld-waterfall { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; padding: 8px 0 4px; min-height: 0; }
.ld-wf { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ld-wf::before { content: ''; width: 100%; height: var(--h); background: var(--c); border-radius: 6px 6px 3px 3px; opacity: .9; transform-origin: bottom; }
.ld-wf--neg::before { opacity: .55; }
.ld-wf span { font-size: 10px; color: var(--ui-muted); white-space: nowrap; }
.ld-wf b { font-size: 11px; color: var(--ui-text); }
.ld-wf--res b { color: #059669; }
html.ld-motion .ld-wf::before { transform: scaleY(0); transition: transform .7s var(--ease); }
html.ld-motion .ld-fp.is-active .ld-wf::before { transform: none; }
html.ld-motion .ld-fp.is-active .ld-wf:nth-child(2)::before { transition-delay: .08s; }
html.ld-motion .ld-fp.is-active .ld-wf:nth-child(3)::before { transition-delay: .16s; }
html.ld-motion .ld-fp.is-active .ld-wf:nth-child(4)::before { transition-delay: .24s; }
html.ld-motion .ld-fp.is-active .ld-wf:nth-child(5)::before { transition-delay: .32s; }
html.ld-motion .ld-fp.is-active .ld-wf:nth-child(6)::before { transition-delay: .40s; }
html.ld-motion .ld-fp.is-active .ld-wf:nth-child(7)::before { transition-delay: .55s; }

/* биддер */
.ld-bid { flex: 1; background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; padding: 10px 12px 8px; display: flex; flex-direction: column; min-height: 0; }
.ld-bid svg { width: 100%; flex: 1; min-height: 90px; }
.ld-bid__band { fill: rgba(16, 185, 129, .1); }
.ld-bid__target { stroke: #10b981; stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.ld-bid__line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ld-bid__spend { fill: none; stroke: #9ca3af; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ld-bid__legend { font-size: 10.5px; color: var(--ui-muted); margin-top: 4px; }
.ld-bid__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 3px; vertical-align: -1px; }
html.ld-motion .ld-bid__line, html.ld-motion .ld-bid__spend { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.3s var(--ease) .2s; }
html.ld-motion .ld-fp.is-active .ld-bid__line, html.ld-motion .ld-fp.is-active .ld-bid__spend { stroke-dashoffset: 0; }
html.ld-motion .ld-bid__band { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .1s; }
html.ld-motion .ld-fp.is-active .ld-bid__band { transform: none; }

/* прогноз */
.ld-fc { flex: 1; background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; padding: 10px 12px 8px; display: flex; flex-direction: column; min-height: 0; }
.ld-fc svg { width: 100%; flex: 1; min-height: 100px; }
.ld-fc__band { fill: rgba(139, 92, 246, .16); }
.ld-fc__fact { fill: none; stroke: #6b7280; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ld-fc__pred { fill: none; stroke: #8b5cf6; stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.ld-fc__now { stroke: #d1d5db; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ld-fc__labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ui-muted); margin-top: 4px; }
html.ld-motion .ld-fc__clip { transform: scaleX(0); transform-origin: 0 0; transition: transform 1.6s var(--ease) .15s; }
html.ld-motion .ld-fp.is-active .ld-fc__clip { transform: none; }

/* закупки */
.ld-stock { flex: 1; display: grid; align-content: center; gap: 8px; }
.ld-stock__row { display: grid; grid-template-columns: 1.2fr 1.6fr .5fr 1.1fr; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ui-border); border-radius: 10px; padding: 8px 12px; font-size: 11.5px; }
.ld-stock__row i { height: 8px; border-radius: 4px; background: #f3f4f6; overflow: hidden; display: block; }
.ld-stock__row b { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 4px; transform-origin: left; }
.ld-stock__row em { font-style: normal; color: var(--ui-muted); text-align: right; }
.ld-stock__row strong { text-align: right; color: var(--ui-dim); font-weight: 500; }
.ld-stock__row strong.buy { color: #b45309; font-weight: 600; }
.ld-stock__row strong.over { color: #7c3aed; font-weight: 600; }
html.ld-motion .ld-stock__row b { transform: scaleX(0); transition: transform .9s var(--ease); }
html.ld-motion .ld-fp.is-active .ld-stock__row b { transform: none; }
html.ld-motion .ld-fp.is-active .ld-stock__row:nth-child(2) b { transition-delay: .1s; }
html.ld-motion .ld-fp.is-active .ld-stock__row:nth-child(3) b { transition-delay: .2s; }
html.ld-motion .ld-fp.is-active .ld-stock__row:nth-child(4) b { transition-delay: .3s; }
html.ld-motion .ld-stock__row strong { opacity: 0; transition: opacity .4s var(--ease) .8s; }
html.ld-motion .ld-fp.is-active .ld-stock__row strong { opacity: 1; }

/* цены + кабинеты */
.ld-prices { display: grid; gap: 8px; }
.ld-price { display: grid; grid-template-columns: 1.4fr .7fr .9fr .6fr; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ui-border); border-radius: 10px; padding: 9px 12px; font-size: 11.5px; }
.ld-price s { color: var(--ui-dim); }
.ld-price b { font-weight: 700; }
.ld-price em { font-style: normal; font-weight: 600; color: #b45309; text-align: right; }
.ld-price em.mute { color: var(--ui-muted); font-weight: 500; }
html.ld-motion .ld-price { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.ld-motion .ld-fp.is-active .ld-price { opacity: 1; transform: none; }
html.ld-motion .ld-fp.is-active .ld-price:nth-child(2) { transition-delay: .1s; }
html.ld-motion .ld-fp.is-active .ld-price:nth-child(3) { transition-delay: .2s; }
.ld-cabs { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11px; }
.ld-cabs span { padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ui-border); color: var(--ui-muted); }
.ld-cabs span.on { border-color: var(--accent); color: var(--accent); font-weight: 600; background: #fdf2f8; }
.ld-cabs i { font-style: normal; color: var(--ui-dim); margin-left: auto; }

.ld-features__list { display: grid; gap: 8px; }
.ld-feat { position: relative; padding: 26px 0 26px 56px; border-top: 1px solid var(--line); transition: opacity .4s; }
@media (min-width: 1024px) { .ld-feat { padding: 40px 0 40px 64px; min-height: 42vh; } .ld-feat:first-child { padding-top: 8px; } }
.ld-feat__n { position: absolute; left: 0; top: 30px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; transition: color .4s; }
@media (min-width: 1024px) { .ld-feat__n { top: 44px; } .ld-feat:first-child .ld-feat__n { top: 12px; } }
.ld-feat h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 12px; transition: color .4s; }
.ld-feat p { color: var(--muted); font-size: 15px; }
.ld-feat ul { margin-top: 14px; display: grid; gap: 6px; }
.ld-feat li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--dim); }
.ld-feat li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--accent-2); }
@media (min-width: 1024px) {
    html.ld-motion .ld-feat { opacity: .38; }
    html.ld-motion .ld-feat.is-active { opacity: 1; }
}
.ld-feat.is-active .ld-feat__n { color: var(--accent-2); }

/* ═══════════════════════ 05 · СБОРКА СИСТЕМЫ ═════════════════════════ */
.ld-asm__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; width: 100%; justify-items: center; text-align: center; }
.ld-asm__head .ld-h2 { margin: 0 auto; }
.ld-asm__stage {
    position: relative; width: 100%; max-width: 780px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); gap: 12px;
}
@media (min-width: 640px) { .ld-asm__stage { gap: 26px; } }
.ld-asm__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ld-asm__svg line { stroke: var(--accent-2); stroke-width: 1.5; opacity: .9; filter: drop-shadow(0 0 4px var(--glow)); }
.ld-piece {
    position: relative; z-index: 1; display: grid; gap: 4px; align-content: center; text-align: left; min-width: 0; hyphens: auto; overflow-wrap: break-word;
    padding: 10px 11px; min-height: 66px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2);
    transition: border-color .5s, box-shadow .6s, background .5s;
}
@media (min-width: 640px) { .ld-piece { padding: 16px 18px; min-height: 84px; } }
.ld-piece b { font-size: 12px; font-weight: 600; }
.ld-piece span { font-size: 10.5px; color: var(--dim); line-height: 1.3; }
@media (min-width: 640px) { .ld-piece b { font-size: 15px; } .ld-piece span { font-size: 12px; } }
.ld-piece--core { grid-column: 2; grid-row: 2; z-index: 2; text-align: center; justify-items: center; background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 40px -8px var(--glow); }
.ld-piece--core b { color: #fff; }
.ld-piece--core span { color: var(--muted); }
html.ld-motion .ld-piece:not(.ld-piece--core) { will-change: transform, opacity; }
.ld-asm__stage.is-done .ld-piece { border-color: rgba(244, 114, 182, .55); box-shadow: 0 0 30px -12px var(--glow); background: var(--bg-3); }
.ld-asm__stage.is-done .ld-piece--core { box-shadow: 0 0 60px -6px var(--glow); }
.ld-asm__caption { max-width: 640px; color: var(--muted); font-size: 15px; transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.ld-motion .ld-asm__caption { opacity: 0; transform: translateY(10px); }
html.ld-motion .ld-asm__caption.is-on { opacity: 1; transform: none; }
@media (max-width: 640px) { .ld-asm__caption { font-size: 13.5px; } }

/* ═══════════════════════ 06 · ИНТЕРФЕЙС ══════════════════════════════ */
.ld-prev__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; width: 100%; justify-items: center; text-align: center; }
.ld-prev__head .ld-h2 { margin: 0 auto; }
.ld-prev__cam { position: relative; width: 100%; max-width: 1080px; perspective: 1600px; }
.ld-prev__window { max-height: calc(100vh - 230px); max-height: calc(100svh - 230px); transform-style: preserve-3d; will-change: transform; text-align: left; }
.ld-dash { display: grid; grid-template-columns: 148px 1fr; min-height: 420px; background: var(--ui-bg); }
@media (max-width: 767px) { .ld-dash { grid-template-columns: 1fr; min-height: 0; } .ld-dash__side { display: none; } }
.ld-dash__side { background: #fff; border-right: 1px solid var(--ui-border); padding: 12px 10px; font-size: 11.5px; color: var(--ui-muted); }
.ld-dash__logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ui-text); font-size: 13px; padding: 4px 8px 14px; }
.ld-dash__logo i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #cb11ab, #86066e); }
.ld-dash__side li { padding: 6px 10px; border-radius: 8px; }
.ld-dash__side li.on { background: rgba(203, 17, 171, .1); color: var(--accent); font-weight: 600; }
.ld-dash__main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.ld-dash__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ld-dash__head b { display: block; font-size: 16px; font-weight: 700; }
.ld-dash__head span { font-size: 11px; color: var(--ui-muted); }
.ld-dash__seg { display: flex; border: 1px solid var(--ui-border); border-radius: 10px; overflow: hidden; background: #fff; }
.ld-dash__seg span { padding: 5px 9px; font-size: 10.5px; color: var(--ui-muted); border-left: 1px solid var(--ui-border); }
.ld-dash__seg span:first-child { border-left: 0; }
.ld-dash__seg span.on { background: var(--accent); color: #fff; }
.ld-dash__kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 767px) { .ld-dash__kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; } .ld-dash__kpis .ld-kpi:nth-child(n+5) { display: none; } }
.ld-dash__charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ld-dash__charts { grid-template-columns: 1fr; } }
.ld-dash__card { background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; padding: 12px 14px; }
.ld-dash__ct { font-size: 11.5px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.ld-dash__card svg { width: 100%; height: 110px; }
.ld-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.ld-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, #60a5fa, #3b82f6); border-radius: 5px 5px 2px 2px; }
.ld-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ld-table th { text-align: left; font-weight: 500; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-dim); padding: 0 6px 8px; }
.ld-table td { padding: 7px 6px; border-top: 1px solid #f3f4f6; white-space: nowrap; }
.ld-table td i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: #e5e7eb; vertical-align: middle; margin-right: 6px; }
.ld-table td.ok { color: #059669; font-weight: 600; } .ld-table td.warn { color: #b45309; font-weight: 600; }
.ld-table th:nth-child(n+3), .ld-table td:nth-child(n+3) { text-align: right; }
@media (max-width: 640px) { .ld-table th:nth-child(5), .ld-table td:nth-child(5), .ld-table th:nth-child(6), .ld-table td:nth-child(6) { display: none; } }
html.ld-motion .ld-part { will-change: transform, opacity; }
.ld-prev__notes { position: absolute; inset: 0; pointer-events: none; }
.ld-prev__notes span {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    padding: 6px 10px 6px 24px; border-radius: 999px; background: rgba(8, 9, 12, .9); border: 1px solid var(--accent-2);
    color: #fff; font-size: 12px; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8), 0 0 20px -6px var(--glow);
    opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.ld-prev__notes span::before { content: ''; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--glow); }
.ld-prev__notes.is-on span { opacity: 1; transform: translate(-50%, -50%); }
html.ld-motion .ld-prev__notes span { transform: translate(-50%, -40%); }
.ld-prev__notes.is-on span:nth-child(2) { transition-delay: .12s; }
.ld-prev__notes.is-on span:nth-child(3) { transition-delay: .24s; }
@media (max-width: 767px) { .ld-prev__notes { display: none; } }
.ld-prev__caption { font-size: 12.5px; color: var(--dim); transition: opacity .6s var(--ease); }
html.ld-motion .ld-prev__caption { opacity: 0; }
html.ld-motion .ld-prev__caption.is-on { opacity: 1; }

/* ═══════════════════════ 07 · ТЕХНОЛОГИИ ═════════════════════════════ */
.ld-tech { border-top: 1px solid var(--line); }
.ld-tech__grid { display: grid; gap: 14px; margin-top: 56px; }
@media (min-width: 640px) { .ld-tech__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ld-tech__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.ld-tcard {
    position: relative; padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    transition: border-color .3s, transform .3s var(--ease);
    overflow: hidden;
}
.ld-tcard::before {
    content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent); opacity: 0; transition: opacity .3s;
}
.ld-tcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ld-tcard:hover::before { opacity: 1; }
.ld-tcard code { display: inline-block; max-width: 100%; font-family: var(--mono); font-size: 10.5px; color: var(--accent-2); background: var(--accent-soft); padding: 4px 8px; border-radius: 6px; margin-bottom: 16px; }
.ld-tcard h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.ld-tcard p { font-size: 13.5px; color: var(--muted); }

/* ═══════════════════════ 08 · ФИНАЛ ══════════════════════════════════ */
.ld-final { position: relative; padding: 140px 0 120px; overflow: hidden; text-align: center; scroll-margin-top: var(--nav-h); }
@media (min-width: 1024px) { .ld-final { padding: 180px 0 160px; } }
.ld-final__bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 500px at 50% 100%, rgba(203, 17, 171, .22), transparent 65%); }
.ld-final__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ld-final__ring { position: relative; width: 150px; height: 150px; margin-bottom: 40px; }
.ld-final__ring-a, .ld-final__ring-b { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(244, 114, 182, .35); }
.ld-final__ring-a { border-top-color: var(--accent-2); border-right-color: transparent; }
.ld-final__ring-b { inset: 18px; border-bottom-color: var(--accent-2); border-left-color: transparent; }
html.ld-motion .ld-final__ring-a { animation: ldSpin 9s linear infinite; }
html.ld-motion .ld-final__ring-b { animation: ldSpin 6s linear infinite reverse; }
.ld-final.is-paused .ld-final__ring-a, .ld-final.is-paused .ld-final__ring-b { animation-play-state: paused; }
@keyframes ldSpin { to { transform: rotate(360deg); } }
.ld-final__core {
    position: absolute; inset: 52px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 8px rgba(203, 17, 171, .25), 0 0 50px 10px var(--glow);
    transform: scale(.6); opacity: .5; transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.ld-final.is-in .ld-final__core { transform: scale(1); opacity: 1; }
.ld-final__title { text-align: center; max-width: 720px; }
.ld-final__sub { text-align: center; }
.ld-final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ── Футер ───────────────────────────────────────────────────────────── */
.ld-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--dim); }
.ld-footer__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.ld-footer a:hover { color: var(--text); }

/* ── Переход landing → приложение ────────────────────────────────────── */
.ld-transition { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.ld-transition.is-on { visibility: visible; }
.ld-transition__beam {
    position: absolute; left: 0; width: 100%; height: 2px; margin-top: -1px;
    background: linear-gradient(90deg, transparent, var(--accent-2) 20%, #fff 50%, var(--accent-2) 80%, transparent);
    box-shadow: 0 0 16px 2px var(--glow); transform: scaleX(0);
}
.ld-transition__fill { position: absolute; inset: 0; background: var(--ui-bg); transform: scaleY(0); }
body.is-leaving main, body.is-leaving .ld-nav, body.is-leaving .ld-spine, body.is-leaving .ld-footer {
    transition: opacity .55s var(--ease), transform .6s var(--ease); opacity: .35; transform: scale(.985);
}

/* ── Мобильная сцена сборки: узкие карточки ──────────────────────────── */
@media (max-width: 480px) {
    .ld-asm__stage { gap: 8px; }
    .ld-piece { padding: 8px 7px; min-height: 58px; border-radius: 11px; }
    .ld-piece b { font-size: 10.5px; letter-spacing: -.01em; }
    .ld-piece span { font-size: 9.5px; }
}
