/* ====== Токены: те же, что у дашборда (frontend/css/styles.css) ====== */
:root {
  --bg: #0b1019;
  --panel: #111824;
  --panel-2: #172031;
  --panel-3: #1d2840;
  --line: #243049;
  --text: #e7edf6;
  --muted: #8391a7;
  --faint: #56647e;

  --red: #ff5a52;
  --yellow: #ffb020;
  --green: #2fd27a;
  --accent: #5b8cff;

  --radius: 16px;
  --wrap: 1180px;
  --gutter: 24px;

  --font: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  color-scheme: dark;
  accent-color: var(--accent);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .86em; background: var(--panel-3); padding: 1px 6px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot--green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot--yellow { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.dot--red { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ====== Кнопки ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--text); font-weight: 600; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--sm { padding: 7px 14px; font-size: 15px; }
.btn--lg { padding: 14px 22px; font-size: 17px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 30px -8px rgba(91,140,255,.7); }
.btn--primary:hover { box-shadow: 0 10px 40px -6px rgba(91,140,255,.9); }
.btn--ghost { background: rgba(23,32,49,.7); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); }

.chip {
  font: 600 14px var(--font); color: var(--muted);
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--text); }
.chip.is-on { color: var(--text); border-color: var(--accent); background: rgba(91,140,255,.15); }

/* ====== Бренд ====== */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: inline-flex; flex-direction: column; gap: 3px; justify-content: center; align-items: center;
  width: 24px; height: 34px; border-radius: 7px; background: #1b2436; border: 1px solid var(--line);
}
.brand__mark i { width: 7px; height: 7px; border-radius: 50%; }
.brand__mark i:nth-child(1) { background: var(--red); animation: lamp 3s infinite 0s; }
.brand__mark i:nth-child(2) { background: var(--yellow); animation: lamp 3s infinite 1s; }
.brand__mark i:nth-child(3) { background: var(--green); animation: lamp 3s infinite 2s; }
.brand__mark--sm { width: 18px; height: 26px; gap: 2px; }
.brand__mark--sm i { width: 5px; height: 5px; }
@keyframes lamp { 0%, 30% { opacity: 1; box-shadow: 0 0 8px currentColor; } 34%, 100% { opacity: .35; } }
.brand__title { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }

/* ====== Верхняя панель ====== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11,16,25,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__links { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang {
  display: grid; place-items: center; width: 36px; height: 34px; border-radius: 10px;
  font-size: 20px; line-height: 1; border: 1px solid var(--line); background: var(--panel-2);
  transition: border-color .15s, transform .15s;
}
.lang:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }

.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status--live .status__dot { background: var(--green); animation: ping 1.8s infinite; }
.status--snap .status__dot { background: var(--accent); }
.status--degraded { color: var(--yellow); }
.status--degraded .status__dot { background: var(--yellow); animation: blink 1s infinite; }
.status--down { color: var(--red); }
.status--down .status__dot { background: var(--red); animation: blink .6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,210,122,.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(47,210,122,0); } }
@keyframes blink { 50% { opacity: .25; } }

/* ====== Hero ====== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__tiles { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; filter: invert(1) hue-rotate(185deg) saturate(.35) brightness(.55) contrast(1.1); }
.hero__tiles img { position: absolute; max-width: none; opacity: 0; transition: opacity .8s; user-select: none; }
.hero__tiles img.ok { opacity: .8; }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__attr { position: absolute; right: 8px; bottom: 6px; z-index: 3; font-size: 11px; color: var(--faint); }
.hero__attr a { color: var(--muted); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 75% 40%, rgba(91,140,255,.10), transparent 60%),
    linear-gradient(90deg, var(--bg) 0%, rgba(11,16,25,.92) 30%, rgba(11,16,25,.2) 58%, transparent 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero__inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 110px var(--gutter) 90px; pointer-events: none; }
.hero__inner > * { pointer-events: auto; max-width: 620px; }
.hero__inner > .hero__title { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; background: rgba(23,32,49,.7); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pingRed 1.6s infinite; }
@keyframes pingRed { 0% { box-shadow: 0 0 0 0 rgba(255,90,82,.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255,90,82,0); } }
.hero__title { margin-top: 22px; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.grad {
  background: linear-gradient(92deg, var(--green) 0%, var(--yellow) 45%, var(--red) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.hero__lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: #b9c4d6; max-width: 560px; }
.hero__lead b { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; font-size: 14px; }
.hero__legend span { display: inline-flex; align-items: center; gap: 7px; }

.map-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  padding: 8px 12px; border-radius: 10px; font-size: 14px; white-space: nowrap;
  background: rgba(17,24,36,.95); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.map-tip b { display: block; font-weight: 600; }

.toast {
  display: block; color: var(--text); cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: absolute; right: var(--gutter); bottom: 70px; z-index: 4; width: 340px; max-width: calc(100% - 2 * var(--gutter));
  padding: 14px 16px; border-radius: 14px;
  background: rgba(17,24,36,.88); border: 1px solid rgba(255,90,82,.4); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -10px rgba(255,90,82,.35);
  animation: toastIn .5s cubic-bezier(.2,.9,.3,1.2);
}
.toast__head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.toast__head .muted { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.toast__body { margin-top: 6px; font-size: 15px; }
.toast__body b { font-family: var(--mono); color: var(--red); }
.toast__open { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.toast:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--red); box-shadow: 0 24px 60px -10px rgba(255,90,82,.55); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ====== KPI ====== */
.kpis { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg)); }
.kpis__inner { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.kpi { padding: 4px 0; }
.kpi__value { font: 700 clamp(28px, 3.4vw, 42px)/1.1 var(--mono); letter-spacing: -.02em; transition: color .3s; }
.kpi__value.bump { animation: bump .5s; }
@keyframes bump { 30% { color: var(--accent); transform: translateY(-2px); } }
.kpi--red .kpi__value { color: var(--red); }
.kpi--green .kpi__value { color: var(--green); }
.kpi__label { margin-top: 6px; font-size: 14px; color: var(--muted); }
.kpis__note { max-width: var(--wrap); margin: 0 auto; padding: 4px var(--gutter) 22px; font-size: 13px; color: var(--faint); }

/* ====== Секции ====== */
.section { max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter) 0; }
.section__head { max-width: 760px; }
.kicker { font: 700 13px var(--mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.section h2 { margin-top: 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.section__lead { margin-top: 18px; color: #b9c4d6; font-size: 18px; }
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: #b9c4d6; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.ticks b { color: var(--text); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ====== Таймлайн горизонта ====== */
.tl { margin-top: 48px; padding: 22px 24px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.tl__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl__clock { font-size: 15px; color: var(--muted); }
.tl__clock b { font: 700 22px var(--mono); color: var(--text); margin-left: 4px; }
.tl__controls { display: flex; gap: 6px; }
.tl__track { position: relative; height: 150px; margin: 22px 8px 6px; }
.tl__line { position: absolute; left: 0; right: 0; top: 88px; height: 2px; background: var(--line); }
.tl__window {
  position: absolute; left: 50%; width: 25%; top: 0; bottom: 26px; border-radius: 10px;
  background: repeating-linear-gradient(135deg, rgba(91,140,255,.12) 0 8px, rgba(91,140,255,.05) 8px 16px);
  border: 1px dashed rgba(91,140,255,.55);
}
.tl__window span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font: 700 11px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.tl__now { position: absolute; left: 0; top: 18px; bottom: 26px; width: 2px; background: var(--text); box-shadow: 0 0 12px rgba(231,237,246,.6); }
.tl__now span { position: absolute; top: -18px; left: -4px; font: 700 12px var(--mono); }
.tl__stops { position: absolute; inset: 0; }
.tl__stop { position: absolute; top: 81px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); transition: border-color .3s, background .3s, box-shadow .3s, opacity .6s; }
.tl__stop::after { content: attr(data-name); position: absolute; top: 22px; left: 50%; transform: translateX(-50%) rotate(0deg); font-size: 11px; color: var(--faint); white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.tl__stop.is-target { border-color: var(--c, var(--yellow)); background: var(--c, var(--yellow)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c, var(--yellow)) 25%, transparent), 0 0 24px var(--c, var(--yellow)); }
.tl__stop::after { opacity: 0; transition: opacity .2s; }
.tl__stop:hover::after { opacity: 1; }
.tl__stop.is-target::after { opacity: 1; color: var(--text); font-weight: 600; max-width: 180px; }
.tl__stop.is-past { opacity: .35; }
.tl__stop.is-gone { opacity: 0; }
.tl__bubble {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  padding: 5px 10px; border-radius: 9px; white-space: nowrap;
  font: 700 14px var(--mono); color: #0b1019; background: var(--c, var(--yellow));
  box-shadow: 0 6px 18px -4px var(--c, var(--yellow));
  animation: pop .35s cubic-bezier(.2,.9,.3,1.4);
}
.tl__bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--c, var(--yellow)); }
@keyframes pop { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
.tl__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.tl__ticks span { position: absolute; transform: translateX(-50%); font: 500 12px var(--mono); color: var(--faint); white-space: nowrap; }
.tl__ticks span:first-child { transform: none; }
.tl__ticks span:last-child { transform: translateX(-100%); }
.tl__panel { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 1px; margin-top: 18px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.tl__cell { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--panel-2); font-size: 14px; min-width: 0; }
.tl__cell b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl__cell b.ok { color: var(--green); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); font-size: 15px; color: #b9c4d6; }
.fact b { font-size: 22px; color: var(--text); }

/* ====== Карточка алерта ====== */
.acard {
  position: relative; padding: 22px; border-radius: 20px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255,90,82,.35);
  box-shadow: 0 30px 80px -30px rgba(255,90,82,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.acard::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--red), var(--yellow)); }
.acard__badge { position: absolute; top: 16px; right: 16px; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; color: var(--accent); background: rgba(91,140,255,.14); }
.acard__badge.is-live { color: var(--green); background: rgba(47,210,122,.14); }
.acard__slides { display: grid; grid-template-rows: repeat(5, auto); }
.acard__slide { grid-row: 1 / -1; grid-column: 1; min-width: 0; display: grid; grid-template-rows: subgrid; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.acard__slide.is-on { visibility: visible; opacity: 1; transition: opacity .35s; }
@supports not (grid-template-rows: subgrid) { .acard__slide { display: block; } }
.acard__head { display: flex; gap: 14px; align-items: center; padding-right: 110px; }
.acard__route { flex-shrink: 0; padding: 7px 11px; border-radius: 10px; background: #26334f; font: 700 15px var(--mono); }
.acard__seg { font-weight: 600; font-size: 17px; line-height: 1.3; }
.acard__delay { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: rgba(255,90,82,.07); border: 1px solid rgba(255,90,82,.2); }
.acard__big { font: 700 clamp(34px, 4vw, 44px)/1.1 var(--mono); color: var(--red); letter-spacing: -.02em; margin: 2px 0; }
.gauge { position: relative; width: 120px; flex-shrink: 0; text-align: center; }
.gauge svg { display: block; width: 120px; height: 70px; }
.gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge__bg { stroke: var(--panel-3); }
.gauge__fg { stroke: var(--red); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge__val { position: absolute; left: 0; right: 0; top: 34px; font-size: 22px; font-weight: 700; }
.gauge__lbl { font-size: 12px; margin-top: -2px; }
.acard__causes { margin-top: 18px; }
.acard__causes ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.cause { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.cause__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.cause__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--yellow), var(--red)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.cause__sec { font: 700 14px var(--mono); color: var(--red); }
.acard__rec { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(91,140,255,.08); border: 1px solid rgba(91,140,255,.25); }
.acard__rec p { margin-top: 4px; font-size: 15px; }
.acard__rec p::first-letter { text-transform: uppercase; }
.acard__open { justify-self: start; align-self: end; margin-top: 14px; font-weight: 600; font-size: 15px; }
.acard__pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; height: 32px; }
.pdot { position: relative; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); }
.pdot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--panel-3); transition: background .2s, transform .2s; }
.pdot:hover::before { background: var(--faint); transform: scale(1.2); }
.pdot > svg { display: none; }
.pdot.is-on { width: 32px; height: 32px; }
.pdot.is-on::before { display: none; }
.pdot.is-on > svg { display: block; grid-area: 1 / 1; }
.dot__ring { width: 32px; height: 32px; transform: rotate(-90deg); }
.dot__ring circle { fill: rgba(255,90,82,.1); stroke-width: 3; }
.dot__track { stroke: var(--panel-3); }
.dot__left { fill: none !important; stroke: var(--red); stroke-linecap: round; stroke-dasharray: 100; }
.dot__ico { width: 11px; height: 11px; fill: var(--text); }
.acard__pager:not(.is-paused) .dot__ico--play, .acard__pager.is-paused .dot__ico--pause { display: none !important; }
.pdot.is-on:hover .dot__ring circle:first-child { fill: rgba(255,90,82,.22); }

/* ====== Пайплайн ====== */
.pipe { display: flex; align-items: stretch; margin-top: 48px; }
.pipe__node {
  flex: 1 1 0; min-width: 0; padding: 18px 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pipe__node:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px -16px rgba(91,140,255,.5); }
.pipe__node--ml { border-color: rgba(47,210,122,.45); background: linear-gradient(180deg, rgba(47,210,122,.08), var(--panel)); }
.pipe__icon { font-size: 26px; }
.pipe__node h3 { margin-top: 10px; font-size: 16px; font-weight: 700; }
.pipe__node p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pipe__node code { font-size: 12px; padding: 0 4px; }
.pipe__stat { margin-top: 12px; font-size: 13px; color: var(--green); }
.pipe__link { position: relative; flex: 0 0 34px; align-self: center; height: 2px; background: var(--line); overflow: visible; }
.pipe__link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: flowX 1.5s linear infinite; }
.pipe__link i:nth-child(2) { animation-delay: .5s; }
.pipe__link i:nth-child(3) { animation-delay: 1s; }
@keyframes flowX { from { left: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 4px); opacity: 0; } }
@keyframes flowY { from { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 4px); opacity: 0; } }
.pipe__foot { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 760px; }
.pipe__foot b { color: var(--text); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stack span { font: 500 13px var(--mono); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }

/* ====== Точность ====== */
.acc { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; margin-top: 48px; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.bars { display: grid; gap: 22px; }
.bar { display: grid; grid-template-columns: 1fr 70px; gap: 8px 14px; align-items: center; }
.bar__label { grid-column: 1 / -1; font-size: 15px; }
.bar--ours .bar__label { font-weight: 700; }
.bar__track { height: 16px; border-radius: 8px; background: var(--panel-3); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 8px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.bar__fill--dim { background: var(--faint); }
.bar__fill--yellow { background: var(--yellow); }
.bar__fill--green { background: var(--green); box-shadow: 0 0 20px rgba(47,210,122,.5); }
.bar__val { font-size: 18px; font-weight: 700; text-align: right; }
.bar--ours .bar__val { color: var(--green); }
.score { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.score__ring { position: relative; width: 150px; height: 150px; }
.score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: var(--panel-3); }
.ring__fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1) .2s; filter: drop-shadow(0 0 6px rgba(47,210,122,.6)); }
.in .ring__fg { stroke-dashoffset: calc(100 - var(--p)); }
.score__val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--green); }
.score__lbl { font-size: 15px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.card:hover { border-color: var(--accent); }
.card__num { font-size: 30px; font-weight: 700; color: var(--accent); }
.card h3 { margin-top: 8px; font-size: 17px; }
.card p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.parity { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 760px; }
.parity b { color: var(--text); }

/* ====== Надёжность ====== */
.chaos { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-top: 48px; }
.chaos__list { display: grid; gap: 8px; grid-auto-rows: 1fr; }
.chaos__btn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  font: 600 15px var(--font); color: var(--muted); cursor: pointer; transition: all .15s;
  height: 100%;
}
.chaos__btn:hover { color: var(--text); border-color: var(--faint); }
.chaos__btn[aria-selected="true"] { color: var(--text); border-color: var(--red); background: rgba(255,90,82,.08); }
.chaos__btn span { font-size: 18px; }
.chaos__out { display: grid; padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.chaos__pane { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .25s; }
.chaos__pane.is-on { visibility: visible; opacity: 1; }
.chaos__state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chaos__pane > p { margin-top: 14px; color: #b9c4d6; font-size: 16px; }
.code {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; overflow-x: auto;
  background: #070b12; border: 1px solid var(--line); font: 500 13.5px/1.6 var(--mono); color: #b9c4d6;
}
.code .c { color: var(--faint); }
.code .k { color: #9db7ff; } .code .s { color: var(--green); } .code .n { color: var(--yellow); }
.chaos__out.flash { animation: flash .6s; }
@keyframes flash { 0% { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,90,82,.2); } }

.perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.perf__item { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--panel); }
.perf__item b { font-size: 28px; }
.perf__item span { font-size: 14px; color: var(--muted); }

/* ====== Доп. фичи ====== */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.extra { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.extra:hover { transform: translateY(-3px); border-color: var(--accent); }
.extra__ico { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(91,140,255,.14); color: var(--accent); font: 700 19px var(--mono); }
.extra h3 { font-size: 16px; }
.extra p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ====== Команда ====== */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.member { color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: center; transition: transform .2s; }
.member.is-link { cursor: pointer; }
.member.is-link:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px -16px rgba(91,140,255,.5); }
.member.is-link b::after { content: " ↗"; color: var(--muted); font-weight: 500; }
.member b { margin-top: 10px; font-size: 16px; }
.member span:last-child { font-size: 13px; color: var(--muted); }
.ava { position: relative; overflow: hidden; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; font-weight: 800; font-size: 24px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 80% 60%), hsl(calc(var(--h) + 40) 70% 40%)); box-shadow: 0 10px 30px -10px hsl(var(--h) 80% 60%); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ====== Ссылки и подвал ====== */
.links { max-width: var(--wrap); margin: 120px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.link { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s; }
.link:hover { text-decoration: none; border-color: var(--accent); background: var(--panel-2); }
.link__host { font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.link > span:nth-child(2) { grid-column: 1; color: var(--muted); font-size: 15px; }
.link__arr { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 22px; color: var(--muted); transition: transform .2s; }
.link:hover .link__arr { transform: translateX(4px); color: var(--accent); }
.foot { max-width: var(--wrap); margin: 80px auto 0; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; border-top: 1px solid var(--line); }
.foot .muted { margin-left: auto; }

/* ====== Адаптив ====== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .pipe { flex-direction: column; }
  .pipe__link { flex: 0 0 28px; width: 2px; height: auto; align-self: center; }
  .pipe__link i { left: -3px; animation-name: flowY; }
  .section--split { grid-template-columns: 1fr; gap: 36px; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .hero { align-items: flex-end; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(11,16,25,.9) 45%, rgba(11,16,25,.35) 100%); }
  .hero__inner { padding-top: 45vh; padding-bottom: 70px; }
  .toast { display: none; }
  .hero__scroll { display: none; }
  .kpis__inner { grid-template-columns: repeat(2, 1fr); }
  .kpi:first-child { grid-column: 1 / -1; }
  .section { padding-top: 88px; }
  .facts, .grid3, .extras, .links { grid-template-columns: 1fr; }
  .perf { grid-template-columns: 1fr 1fr; }
  .acc { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
  .chaos { grid-template-columns: 1fr; }
  .chaos__list { grid-template-columns: 1fr 1fr; }
  .chaos__btn { padding: 11px 12px; font-size: 14px; }
  .tl { padding: 16px; }
  .tl__track { margin-inline: 4px; }
  .tl__stop::after { display: none; }
  .tl__stop.is-target::after { display: block; }
  .tl__panel { grid-template-columns: 1fr 1fr; }
  .tl__cell:first-child, .tl__cell:last-child { grid-column: 1 / -1; }
  .acard__head { padding-right: 0; padding-top: 26px; }
  .acard__delay { flex-direction: column; align-items: flex-start; }
  .team { grid-template-columns: 1fr 1fr; }
  .foot .muted { margin-left: 0; }
}
@media (max-width: 420px) {
  .nav .status { display: none; }
  .nav__right { gap: 8px; }
  .btn--lg { padding: 12px 16px; font-size: 16px; }
  .perf { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
