/* ФАБРИКА ВИДЕОИГР 3.0 — стили лендинга
   Характер: дерзкая игровая лаборатория. Типографика, интерфейсная графика,
   микроанимации. Без 3D и ретро-гейминга. */

:root {
  --bg: #0a0c10;
  --bg-2: #11151c;
  --panel: #161b24;
  --panel-2: #1d2430;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f4f7;
  --muted: #9aa3b2;
  --dim: #6b7382;
  --acid: #c9ff3d;
  --acid-ink: #0b0f04;
  --violet: #8b7cff;
  --coral: #ff6a3d;
  --legacy: #ffb547;
  --ok: #4ade80;
  --radius: 14px;
  --radius-s: 8px;
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --gutter: 16px;
  --maxw: 1180px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 6.2vw, 64px); font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(26px, 4.2vw, 44px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin-top: 16px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--acid); }

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.acid { color: var(--acid); }
.hidden { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--acid); color: var(--acid-ink); box-shadow: 0 0 0 0 rgba(201,255,61,0); }
.btn-primary:hover { box-shadow: 0 0 32px rgba(201,255,61,.35); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 12, 16, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .3s ease;
}
.header.hide { transform: translateY(-100%); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--acid); color: var(--acid-ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.burger {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent;
  display: grid; place-items: center; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s, opacity .25s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(6px) rotate(45deg); }
.burger.open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 26px; font-weight: 600; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .tg { margin-top: auto; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .burger, .mobile-menu { display: none; }
  .header-actions .btn-cta-header { display: inline-flex; }
}
@media (max-width: 959px) {
  .header-actions .btn-cta-header { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 480px) {
  .logo-text small { display: none; }
  .logo-text { font-size: 13px; }
}
@media (max-width: 400px) {
  .header-actions .btn-cta-header { display: none; }
}

/* ---------- Плавающая CTA: всегда на экране, с дедлайном ---------- */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.float-cta .btn { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(201,255,61,.25); }
.float-deadline {
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  background: rgba(10,12,16,.9); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 699px) {
  .float-cta { left: var(--gutter); right: var(--gutter); bottom: 12px; align-items: stretch; gap: 0; }
  .float-cta .btn { width: 100%; order: 2; }
  .float-deadline { order: 1; text-align: center; border-radius: 10px 10px 0 0; border-bottom: 0; }
  main { padding-bottom: 96px; }
}
@media (min-width: 700px) { main { padding-bottom: 40px; } }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + clamp(48px, 9vw, 110px)) 0 clamp(36px, 5vw, 56px);
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 80%);
}
.hero::after {
  content: ''; position: absolute; width: 640px; height: 640px; right: -240px; top: -200px; pointer-events: none;
  background: radial-gradient(circle, rgba(139,124,255,.22) 0%, transparent 60%);
}
.hero .wrap { position: relative; display: grid; gap: 40px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  margin-bottom: 22px;
}
.hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(201,255,61,.6); animation: pulse 2s infinite; }
.hero-status[data-state="closed"] .dot { background: var(--coral); animation: none; }
.hero-status[data-state="running"] .dot { background: var(--violet); }
.hero-status[data-state="finished"] .dot { background: var(--muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,255,61,.55); } 70% { box-shadow: 0 0 0 10px rgba(201,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(201,255,61,0); } }
.hero h1 { max-width: 14ch; }
.hero h1 .hl { color: var(--acid); }
.hero .sub { font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); max-width: 640px; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-deadline { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.countdown { display: flex; gap: 10px; margin-top: 20px; }
.countdown div { min-width: 68px; padding: 10px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.countdown span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.hero-route { display: block; max-width: 420px; margin: 8px auto 0; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero-route { max-width: none; margin: 0; }
}
.hero-route-mini {
  display: block; width: 100%; padding: 14px 10px 6px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 16px;
  cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hero-route-mini:hover { transform: scale(1.04); border-color: rgba(201,255,61,.5); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.hero-route-hint { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }

/* ---------- Схема маршрутов ---------- */
.scheme { width: 100%; height: auto; overflow: visible; display: block; }
.scheme .s-grid path { stroke: rgba(255,255,255,.12); stroke-width: 1.5; fill: none; }
.scheme .s-lbl { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: .04em; }
.scheme .s-lbl.strong { fill: var(--text); font-size: 12px; font-weight: 600; }
.scheme .s-move path { stroke: rgba(255,255,255,.3); stroke-width: 1.8; fill: none; marker-end: url(#sm-g); transition: stroke .2s, opacity .2s; }
.scheme.mini .s-move path { marker-end: url(#sm-gm); }
.scheme .s-node { fill: var(--bg); stroke: rgba(255,255,255,.3); stroke-width: 2.2; transition: stroke .2s, fill .2s, opacity .2s; }
.scheme .s-pitch { fill: var(--panel-2); stroke: var(--line-strong); stroke-width: 1.5; transition: fill .2s, stroke .2s, opacity .2s; }
.scheme .s-pitch-t { font-family: var(--font-mono); font-size: 10px; font-weight: 700; fill: var(--text); letter-spacing: .08em; transition: fill .2s; }
.scheme .s-row rect { fill: transparent; cursor: pointer; }
.scheme.mini .s-row rect { pointer-events: none; }
.scheme .s-row text { cursor: pointer; transition: fill .2s; }
.scheme:not(.mini) .s-row:hover text, .scheme .s-row.on text { fill: var(--acid); }
.scheme[data-active] .s-move path, .scheme[data-active] .s-node, .scheme[data-active] .s-pitch { opacity: .3; }
.scheme[data-active] .s-move path.lit { opacity: 1; stroke: var(--acid); stroke-width: 2.6; stroke-dasharray: 8 8; animation: schemeFlow 1.6s linear infinite; marker-end: url(#sm-a); }
.scheme[data-active] .s-node.lit { opacity: 1; stroke: var(--acid); fill: var(--acid); }
.scheme[data-active] .s-pitch.lit { opacity: 1; fill: var(--acid); stroke: var(--acid); }
.scheme[data-active] .s-pitch.lit + .s-pitch-t { fill: var(--acid-ink); }
.scheme.mini .s-lbl { font-size: 13px; }
.scheme.mini .s-lbl.strong { font-size: 14px; }

.scheme-modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(5,6,9,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.scheme-modal.open { display: flex; }
.scheme-dialog {
  position: relative; width: 100%; max-width: 780px; max-height: 100%; overflow: auto;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(20px, 3vw, 32px);
  animation: rise .3s ease;
}
.scheme-dialog h3 { font-size: clamp(18px, 2.4vw, 24px); margin-bottom: 6px; }
.scheme-sub { font-size: 14.5px; margin-bottom: 16px; }
.scheme-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; font-size: 22px; line-height: 1;
}
.scheme-close:hover { border-color: var(--text); }
.scheme-legend { margin-top: 12px; }
.scheme-legend i { border-top-color: rgba(255,255,255,.3); }
.scheme-legend i.a { border-top: 2px dashed var(--acid); }
.scheme-legend b { display: inline-block; width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.scheme-dialog .p-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Что даёт Фабрика ---------- */
.benefits { display: grid; gap: 14px; counter-reset: b; }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit.full { grid-column: 1 / -1; }
.fill-grid { display: grid; gap: 18px; margin-top: 16px; }
@media (min-width: 700px) { .fill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fill-grid { grid-template-columns: repeat(4, 1fr); } }
.fill-grid b { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.fill-grid p { color: var(--muted); font-size: 14.5px; }
.benefit {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
  counter-increment: b;
}
.benefit:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.benefit .num { font-family: var(--font-mono); font-size: 12px; color: var(--acid); letter-spacing: .1em; }
.benefit .num::before { content: '0' counter(b); }
.benefit h3 { margin: 12px 0 10px; }
.benefit p { color: var(--muted); font-size: 15.5px; }
.benefit-tag { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); border: 1px solid rgba(139,124,255,.4); padding: 3px 8px; border-radius: 999px; }

/* ---------- Матрица ---------- */
.matrix-block { display: grid; gap: 24px; }
@media (min-width: 1000px) { .matrix-block { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.matrix-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 6px; -webkit-overflow-scrolling: touch; }
.matrix { position: relative; min-width: 680px; }
.matrix-grid {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(150px, 1fr));
  grid-auto-rows: auto;
  gap: 14px 56px;
  position: relative; z-index: 2;
}
.m-corner { display: flex; align-items: flex-end; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; padding-bottom: 6px; }
.m-flow {
  padding: 12px 14px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; text-align: center; position: relative;
}
.m-flow small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 4px; }
.m-flow.current { border: 1.5px dashed var(--acid); background: rgba(201,255,61,.05); font-size: 16px; }
.m-flow .m-now {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--acid-ink); background: var(--acid); padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.cell.now { border-style: dashed; border-color: rgba(201,255,61,.55); }
.cell.now:hover, .cell.now.active { border-style: solid; }
.m-row { display: flex; flex-direction: column; justify-content: center; padding-right: 8px; }
.m-row b { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.m-row small { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.3; }
.cell {
  position: relative; min-height: 72px; padding: 12px 14px; text-align: left;
  border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.cell:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-2px); }
.cell .c-entry { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.cell .c-exit { font-size: 12px; color: var(--muted); }
.cell .c-exit b { color: var(--text); font-weight: 600; }
.cell.active { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid), 0 0 24px rgba(201,255,61,.18); }
.cell.on-route { border-color: rgba(201,255,61,.6); background: rgba(201,255,61,.06); }
.cell.dimmed { opacity: .35; }
.cell.invest .c-exit b { color: var(--acid); }
.m-row-pitch b { color: var(--acid); }
.q-inline { font-family: var(--font-display); font-weight: 600; color: var(--text); display: block; margin-bottom: 8px; }
.m-pitch { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); line-height: 1.5; transition: opacity .25s, border-color .25s; }
.m-pitch b { color: var(--acid); font-weight: 600; display: block; }
.m-pitch.on-route { border-style: solid; border-color: var(--acid); background: rgba(201,255,61,.06); }
.m-pitch.dimmed { opacity: .35; }
.matrix-arrows path.pitch { stroke-dasharray: none; }
.matrix-arrows { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.matrix-arrows path { fill: none; stroke: rgba(255,255,255,.32); stroke-width: 1.8; transition: stroke .25s, opacity .25s; }
.matrix-arrows path.up { stroke-dasharray: 4 5; }
.matrix-arrows marker path { fill: rgba(255,255,255,.32); stroke: none; }
.matrix-arrows marker.acid path { fill: var(--acid); }
.matrix-arrows path.route { stroke: var(--acid); stroke-width: 2.4; stroke-dasharray: none; }
.matrix-arrows path.faded { opacity: .15; }
.matrix-arrows path.lit { stroke: var(--acid); }
.matrix-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
}
.chip.on, .btn.on { border-color: var(--acid); color: var(--acid); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 14px; }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--line-strong); vertical-align: middle; margin-right: 6px; }
.legend i.up { border-top-style: dashed; }
.legend i.route { border-color: var(--acid); }

.m-panel {
  position: sticky; top: calc(var(--header-h) + 16px);
  padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  min-height: 300px;
}
.m-panel .p-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--acid); letter-spacing: .1em; text-transform: uppercase; }
.m-panel h3 { margin: 10px 0 6px; font-size: 22px; }
.m-panel .p-dates { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.m-panel dl { margin: 0; display: grid; gap: 12px; }
.m-panel dt { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.m-panel dd { margin: 0; font-size: 15px; color: var(--text); }
.m-panel dd.muted { color: var(--muted); }
.m-panel .p-cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.m-panel .p-empty { color: var(--muted); font-size: 15px; }
.m-panel .p-empty b { color: var(--text); }

/* ---------- Мини-гайд ---------- */
.guide {
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
  padding: clamp(22px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.guide::after { content: ''; position: absolute; width: 400px; height: 400px; right: -160px; bottom: -220px; background: radial-gradient(circle, rgba(201,255,61,.14), transparent 60%); pointer-events: none; }
.guide-inner { position: relative; display: grid; gap: 28px; }
@media (min-width: 900px) { .guide-inner { grid-template-columns: 1fr 1.1fr; } }
.g-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.g-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); transition: background .3s; }
.g-progress i.done { background: var(--acid); }
.g-q { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin-bottom: 8px; }
.g-hint { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.g-answers { display: grid; gap: 10px; }
.g-answers button {
  text-align: left; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: border-color .2s, background .2s, transform .15s;
}
.g-answers button:hover { border-color: var(--acid); background: rgba(201,255,61,.05); transform: translateX(3px); }
.g-answers button span.k { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.g-back { background: none; border: 0; color: var(--muted); padding: 0; margin-top: 18px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.g-back:hover { color: var(--text); }
.g-result { display: none; }
.g-result.show { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.g-result .r-track { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--acid); margin: 6px 0 12px; }
.g-result .r-note { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.g-result h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 18px 0 8px; font-weight: 500; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist li::before { content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 5px; border: 1.5px solid var(--acid); background: rgba(201,255,61,.1); }
.g-callout { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: rgba(139,124,255,.1); border: 1px solid rgba(139,124,255,.35); font-size: 14.5px; }
.g-callout b { color: var(--violet); }
.g-side { display: grid; gap: 14px; align-content: start; }
.g-card { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.g-card h4 { margin: 0 0 8px; font-size: 15px; font-family: var(--font-body); font-weight: 700; }
.g-card p { color: var(--muted); font-size: 14.5px; }
.g-side .placeholder-q { color: var(--dim); font-size: 14px; }

/* ---------- Как проходит работа ---------- */
.steps { display: grid; gap: 0; position: relative; counter-reset: s; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0;
  border-top: 1px solid var(--line); counter-increment: s;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .s-n { font-family: var(--font-mono); font-size: 12px; color: var(--acid); padding-top: 4px; }
.step .s-n::before { content: counter(s, decimal-leading-zero); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 680px; }
.step .s-tag { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--violet); border: 1px solid rgba(139,124,255,.4); padding: 3px 9px; border-radius: 999px; }
@media (min-width: 900px) { .steps-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; } .steps-block .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); } }
.quote {
  margin-top: 24px; padding: 22px 24px; border-left: 3px solid var(--acid); background: var(--panel); border-radius: 0 12px 12px 0;
  font-size: 17px;
}
.quote .q-meta { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- Подходит ли тебе ---------- */
.fit { display: grid; gap: 22px; }
@media (min-width: 900px) { .fit { grid-template-columns: 1fr 1fr; align-items: start; } }
.fit-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--acid); background: rgba(201,255,61,.04); }
.fit-card h3 { margin-bottom: 18px; }
.fit-card .checklist li { font-size: 16.5px; }
.fit-notes { display: grid; gap: 14px; }
.note { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 15px; color: var(--muted); }
.note b { color: var(--text); }
.note.warn { border-color: rgba(255,181,71,.5); }
.note.warn b { color: var(--legacy); }

/* ---------- Опыт ФВИ 2.0 ---------- */
.legacy-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--legacy); background: rgba(255,181,71,.12); border: 1px solid rgba(255,181,71,.45);
  padding: 5px 10px; border-radius: 6px;
}
.legacy-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--legacy); }
.stats { display: grid; gap: 12px; margin-bottom: 28px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 20px; border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line); position: relative; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--legacy); }
.stat b.empty { color: var(--dim); }
.stat span { color: var(--muted); font-size: 14px; }
.legacy-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .legacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .legacy-grid { grid-template-columns: repeat(3, 1fr); } }
.media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-s); position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,181,71,.18), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px),
    var(--panel);
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.media .m-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.media .m-label b { display: block; color: var(--text); font-family: var(--font-body); font-size: 15px; margin-bottom: 6px; }
.media .legacy-badge { position: absolute; top: 12px; left: 12px; }
.media.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.story { padding: 22px; border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.story .legacy-badge { justify-self: start; }
.story h3 { font-size: 18px; }
.story p { color: var(--muted); font-size: 15px; }
.story .s-studio { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.experts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 14px; }
.expert { padding: 16px; border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.expert .ava { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(135deg, var(--violet), var(--coral)); opacity: .7; }
.expert b { display: block; font-size: 14px; }
.expert span { font-size: 12px; color: var(--muted); }
.legacy-sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin: 36px 0 14px; }
.legacy-sub h3 { font-size: 20px; }

/* ---------- FAQ ---------- */
.faq-block { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-block { grid-template-columns: 1fr 1.5fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; color: var(--acid); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; max-width: 640px; }
.faq .a b { color: var(--text); }

/* ---------- Документы и контакты ---------- */
.docs-contacts { display: grid; gap: 22px; margin-top: 56px; }
@media (min-width: 900px) { .docs-contacts { grid-template-columns: 1fr 1fr 1.2fr; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  text-decoration: none; font-size: 15px; transition: border-color .2s;
}
.doc-list a:hover { border-color: var(--acid); }
.doc-list a .ext { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.card-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.tg-card {
  padding: 26px; border-radius: var(--radius); border: 1px solid rgba(139,124,255,.5);
  background: linear-gradient(150deg, rgba(139,124,255,.18), rgba(139,124,255,.04));
  display: grid; gap: 12px; align-content: start;
}
.tg-card h3 { font-size: 20px; }
.tg-card p { color: var(--muted); font-size: 15px; }
.tg-card .handle { font-family: var(--font-mono); color: var(--violet); }
.contacts { display: grid; gap: 8px; font-size: 15px; }
.contacts a { text-decoration: none; color: var(--text); }
.contacts a:hover { color: var(--acid); }
.contacts span { color: var(--dim); font-family: var(--font-mono); font-size: 12px; display: block; }

/* ---------- Форма ожидания / CTA-блок ---------- */
.cta-block {
  border-radius: 24px; padding: clamp(28px, 5vw, 60px);
  background: var(--acid); color: var(--acid-ink);
  display: grid; gap: 20px; position: relative; overflow: hidden;
}
.cta-block::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(0,0,0,.08); pointer-events: none; }
.cta-block h2 { color: var(--acid-ink); max-width: 16ch; }
.cta-block p { max-width: 560px; font-size: 17px; color: rgba(11,15,4,.75); }
.cta-block .btn-dark { background: var(--acid-ink); color: var(--acid); }
.cta-block .btn-dark:hover { box-shadow: 0 0 0 4px rgba(11,15,4,.15); }
.cta-block .cd-inline { font-family: var(--font-mono); font-size: 13px; color: rgba(11,15,4,.7); }

.waitlist { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 700px) { .waitlist { grid-template-columns: 1fr 1fr; } .waitlist .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: rgba(11,15,4,.8); }
.field label em { font-style: normal; font-weight: 400; color: rgba(11,15,4,.55); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid rgba(11,15,4,.2); background: rgba(255,255,255,.7); color: var(--acid-ink);
  width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--acid-ink); outline-offset: 1px; }
.contact-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(11,15,4,.8); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--acid-ink); }
.check a { color: var(--acid-ink); }
.form-msg { font-size: 14px; color: rgba(11,15,4,.8); min-height: 20px; }
.form-msg.ok { font-weight: 700; }
.form-msg.err { color: #8a1f00; }

/* ---------- Подвал ---------- */
.footer { padding: 40px 0 calc(40px + 70px); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (min-width: 960px) { .footer { padding-bottom: 40px; } }
.footer .wrap { display: grid; gap: 22px; }
@media (min-width: 800px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.footer .brands { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.brand-slot {
  height: 40px; padding: 0 14px; border-radius: 8px; border: 1px dashed var(--line-strong);
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .06em;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer .fine { font-size: 12.5px; color: var(--dim); max-width: 720px; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ФВИ 2.0: реальные фото и видео ---------- */
.media.filled { padding: 0; display: block; background: #000; }
.media.filled img, .media.filled video, .media.filled iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.media.filled .legacy-badge { z-index: 2; }
.media .m-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
a.media.filled:hover img { transform: scale(1.03); }
a.media.filled img { transition: transform .4s ease; }
.expert .ex-proj { display: block; font-size: 11.5px; color: var(--dim); margin-top: 6px; line-height: 1.35; }
.lib-link { display: inline-block; margin-top: 12px; color: var(--acid); font-weight: 700; font-size: 15px; text-decoration: none; }
.lib-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Эксперты ФВИ 2.0: полные карточки ---------- */
#legacyExperts.experts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
#legacyExperts .expert { text-align: left; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
#legacyExperts .expert .ava { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; margin: 0; background: var(--panel-2) center/cover no-repeat; }
#legacyExperts .ex-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
#legacyExperts .ex-body b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
#legacyExperts .ex-role { font-size: 13.5px; color: var(--text); line-height: 1.4; }
#legacyExperts .ex-exp { font-family: var(--font-mono); font-size: 11.5px; color: var(--legacy); }
#legacyExperts .ex-proj { margin: 0; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.scheme-dialog .scheme-close { z-index: 5; }
.stat b .unit { font-size: .5em; font-weight: 600; margin-left: 6px; white-space: nowrap; }

/* ---------- Карусели (фото и эксперты) ---------- */
.carousel { position: relative; }
.car-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.car-btn {
  position: absolute; top: calc(50% - 30px); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(10,12,16,.85); color: var(--text); font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: opacity .2s, border-color .2s;
}
.car-btn:hover { border-color: var(--acid); color: var(--acid); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-btn.prev { left: -12px; } .car-btn.next { right: -12px; }
@media (max-width: 699px) { .car-btn { display: none; } }

.ph-item { position: relative; width: clamp(260px, 30vw, 380px); aspect-ratio: 3 / 2; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: #000; cursor: zoom-in; }
.ph-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ph-item:hover img { transform: scale(1.04); }
.ph-item .legacy-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.ph-item .m-cap { text-align: left; }

#legacyExperts.experts-track .expert { width: 240px; }
#legacyExperts.experts-track { display: flex; }

/* ---------- Просмотр фото ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5,6,9,.94); display: none; align-items: center; justify-content: center; padding: 20px 64px; cursor: zoom-out; }
.lightbox.open { display: flex; animation: rise .2s ease; }
.lb-fig { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-fig figcaption { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-align: center; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(10,12,16,.7); color: var(--text); font-size: 28px; cursor: pointer; }
.lb-btn:hover { border-color: var(--acid); color: var(--acid); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 24px; }
@media (max-width: 699px) { .lightbox { padding: 16px 8px; } .lb-btn { display: none; } }

.faq-link { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Подвал ---------- */
.footer .wrap { display: block; }
.f-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .f-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; align-items: start; } }
.f-logo { height: 44px; width: auto; display: block; }
.f-org { margin-top: 14px; max-width: 380px; font-size: 14px; color: var(--muted); }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-links a, .f-contacts a { color: var(--text); text-decoration: none; font-size: 15px; }
.f-links a:hover, .f-contacts a:hover { color: var(--acid); }
.f-contacts { display: grid; gap: 12px; }
.f-contacts span { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); margin-bottom: 2px; }
.f-legal { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); max-width: none; }
@media (min-width: 700px) { .footer { padding-bottom: 110px; } }
.doc-note { font-size: 13px; margin-top: 12px; }
.scheme-sub + .scheme-pitch { margin-top: -8px; }
.scheme-pitch b { color: var(--acid); }

/* =====================================================================
   Правки 03.10.2026 (ТЗ «Программа акселерации» и замечания Ильи)
   ===================================================================== */

/* шапка всегда видна; на телефоне компактнее */
.header.hide { transform: none; }
@media (max-width: 699px) {
  :root { --header-h: 56px; }
  .logo { gap: 9px; }
  .logo-mark { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
  .logo-text { font-size: 12.5px; }
  .header-actions .btn-cta-header { padding: 8px 12px; font-size: 13px; }
  .burger { width: 38px; height: 38px; }
}
@media (min-width: 960px) and (max-width: 1439px) { .header:has(.burger) .nav { display: none; } .burger { display: grid; } .mobile-menu { display: flex; } }

/* позиционирование над H1 */
.hero-kicker { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 600px; margin: 0 0 16px; }

/* цифры прошлого сезона сразу под первым экраном */
.stats-band { padding: 26px 0 34px; border-bottom: 1px solid var(--line); }
.stats-band .stats { margin-bottom: 0; }
.season-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.season-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.season-link:hover { color: var(--acid); }
.stats-band .legacy-sub { margin-top: 28px; }

/* синие теги, которые называют трек или раздел, — ссылки */
a.benefit-tag, .benefit-tag.multi a, a.s-tag { text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
a.benefit-tag:hover, a.s-tag:hover { color: var(--acid); border-color: var(--acid); background: rgba(201,255,61,.06); }
.benefit-tag.multi a { color: inherit; }
.benefit-tag.multi a:hover { color: var(--acid); }
a.benefit-tag::after, a.s-tag::after { content: ' →'; }

/* маршруты */
.route-caption { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.route-caption b { color: var(--acid); font-weight: 600; }
.chip-link { text-decoration: none; color: var(--text); }
.chip-link:hover { border-color: var(--acid); color: var(--acid); }
.p-route { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14.5px; line-height: 1.45; }
.p-route li::marker { color: var(--acid); font-family: var(--font-mono); font-size: 12px; }
.m-panel .p-cta .btn { white-space: normal; }

/* фото экспертов в одном стиле: монохром в цветах сайта, цвет по наведению */
#legacyExperts .expert .ava { background-color: #3b3366; background-blend-mode: luminosity; filter: contrast(1.06); transition: background-color .35s ease, filter .35s ease; }
#legacyExperts .expert:hover .ava { background-blend-mode: normal; filter: none; }

/* «Какой трек твой?»: видно смену шага */
#gQuestion.swap { animation: gSwap .38s ease; }
@keyframes gSwap { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.g-progress i { position: relative; overflow: hidden; height: 4px; }
.g-progress i.done { background: var(--line-strong); }
.g-progress i::after { content: ''; position: absolute; inset: 0; background: var(--acid); transform: scaleX(0); transform-origin: left center; transition: transform .45s ease; }
.g-progress i.done::after { transform: scaleX(1); }
.g-result.show { animation: gResult .45s ease; }
@keyframes gResult { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* блок «Подай заявку»: тёмный, кислотный — только кнопка и рамка */
.cta-block { background: var(--panel); color: var(--text); border: 1.5px solid var(--acid); }
.cta-block::after { border-color: rgba(201,255,61,.06); }
.cta-block h2 { color: var(--text); }
.cta-block p { color: var(--muted); }
.cta-block .eyebrow { color: var(--acid); }
.cta-block .cd-inline { color: var(--acid); }
.cta-block .field label { color: var(--text); }
.cta-block .field label em { color: var(--dim); }
.cta-block .field input, .cta-block .field select { background: var(--bg-2); border-color: var(--line-strong); color: var(--text); }
.cta-block .field input:focus, .cta-block .field select:focus { outline-color: var(--acid); }
.cta-block .check { color: var(--muted); }
.cta-block .check input { accent-color: var(--acid); }
.cta-block .check a { color: var(--acid); }
.cta-block .form-msg { color: var(--muted); }
.cta-block .form-msg.err { color: var(--coral); }

/* каналы АКИ */
.ch-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-menu .mm-channels { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.mobile-menu .mm-channels > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.mobile-menu .mm-channels > div { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-menu .mm-channels a { font: 700 15px var(--font-body); padding: 10px 18px; border: 1px solid var(--line-strong); }

/* партнёры (пока скрыты) */
.partners-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.partner { display: grid; place-items: center; min-height: 96px; padding: 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; text-align: center; }
.partner img { max-width: 100%; max-height: 56px; object-fit: contain; }

/* временная панель выбора шрифта заголовков */
.font-switch { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 560px; padding: 10px 12px; border-radius: 14px; background: rgba(22,27,36,.95); border: 1px dashed var(--violet); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.font-switch span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-right: 4px; }
.font-switch button { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.font-switch button.on { border-color: var(--acid); color: var(--acid); }
@media (max-width: 1099px) { .font-switch { left: 8px; right: 8px; bottom: auto; top: calc(var(--header-h) + 8px); max-width: none; } }
[data-font="manrope"] h1, [data-font="manrope"] h2 { font-weight: 800; letter-spacing: -0.02em; }
[data-font="exo2"] h1, [data-font="exo2"] h2 { letter-spacing: 0; }
/* меню шапки: семь пунктов, ужимаем отступы, чтобы был запас под любой шрифт заголовков */
.nav { gap: 2px; }
.nav a { padding: 8px 10px; font-size: 14.5px; }
/* матрица на телефоне прокручивается внутри своей колонки, а не распирает страницу */
@media (max-width: 999px) { .matrix-block > * { min-width: 0; } }

/* знак ФВ всегда квадратный, подпись в две строки без переносов */
.logo-mark { flex: 0 0 auto; }
.logo-text { white-space: nowrap; }

/* дедлайн в шапке вместо плавающей кнопки */
.float-cta { display: none !important; }
main { padding-bottom: 0 !important; }
.hdr-deadline { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.35; color: var(--muted); text-align: right; white-space: nowrap; margin-right: 4px; }
.hdr-deadline b { color: var(--acid); font-weight: 500; font-size: 11.5px; }
@media (max-width: 699px) { .hdr-deadline { display: none !important; } }
@media (max-width: 1239px) { .header:not(:has(.burger)) .hdr-deadline { display: none; } }

/* шапка: логотип не сжимается, на широких экранах шапка шире контента */
.logo { flex: 0 0 auto; }
.header .wrap { max-width: 1440px; }

.m-flow small .nw { white-space: nowrap; }
.m-flow small { line-height: 1.5; }

/* формат шага справа в строке заголовка */
.step .s-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.step .s-format { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--violet); border: 1px solid rgba(139,124,255,.4); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.m-alias { font-size: .72em; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* схема маршрутов: пунктир плавно перетекает по направлению движения (период штриха 16, сдвиг на 2 периода — без рывка на стыке циклов) */
@keyframes schemeFlow { from { stroke-dashoffset: 32; } to { stroke-dashoffset: 0; } }
.scheme.mini[data-active] .s-move path.lit { stroke-width: 3; }
@media (prefers-reduced-motion: reduce) { .scheme .s-move path.lit { animation: none; } }


/* =====================================================================
   [04.10.2026, методологи] — откат через переключатели в config.js
   ===================================================================== */

/* дни до дедлайна внутри кнопки */
.btn-days.two { flex-direction: column; gap: 1px; line-height: 1.15; padding-top: 10px; padding-bottom: 10px; }
.btn-days .bd-main { display: inline-flex; align-items: center; gap: 8px; }
.btn-days .bd-left { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .02em; opacity: .75; font-variant-numeric: tabular-nums; }
.btn-days.one .bd-left { font-size: 13px; opacity: .8; }
.btn-days .bd-sep { opacity: .45; }
.btn-days .bd-num { font-variant-numeric: tabular-nums; }

/* вертикальная схема маршрутов */
#matrix.vertical { min-width: 0; padding: 18px 14px 14px; border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 85% 8%, rgba(201,255,61,.10), transparent 70%),
    radial-gradient(ellipse 70% 50% at 10% 95%, rgba(139,124,255,.16), transparent 70%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--bg-2); }
#matrix.vertical .matrix-grid { grid-template-columns: 92px repeat(4, minmax(0, 1fr)); gap: 30px 14px; }
.v-floor { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: rgba(10,12,16,.6); }
.v-floor b { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.v-floor small { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.v-floor.current { border: 1.5px dashed var(--acid); background: rgba(201,255,61,.05); }
.v-floor .m-now { position: absolute; top: -10px; left: 8px; font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--acid-ink); background: var(--acid); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.v-start-label { border-style: dashed; background: transparent; }
.v-cell { min-height: 92px; justify-content: flex-start; gap: 5px; }
.v-cell .c-entry { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--text); letter-spacing: 0; line-height: 1.2; }
.v-cell .c-exit { font-size: 12px; line-height: 1.3; }
.v-cell .c-jury { margin-top: auto; font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
.v-pitch { margin-top: auto; display: inline-block; align-self: flex-start; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(201,255,61,.5); background: rgba(201,255,61,.08); font-family: var(--font-mono); font-size: 10.5px; color: var(--acid); white-space: nowrap; }
.v-pitch.on-route { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.v-start { padding: 10px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); text-align: left; display: grid; gap: 2px; align-content: center; transition: border-color .2s, background .2s; }
.v-start b { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; line-height: 1.2; }
.v-start small { font-size: 10.5px; color: var(--muted); }
.v-start:hover, .v-start.on { border-color: var(--acid); background: rgba(201,255,61,.07); }
.v-start.on b { color: var(--acid); }
#matrix.vertical .matrix-arrows path.up { stroke-dasharray: 4 5; }
#matrix.vertical .matrix-arrows path.route { stroke-dasharray: 8 6; animation: schemeFlow 1.6s linear infinite; }
@media (max-width: 699px) {
  #matrix.vertical { padding: 14px 8px 10px; }
  #matrix.vertical .matrix-grid { grid-template-columns: 58px repeat(4, minmax(0, 1fr)); gap: 26px 6px; }
  .v-floor { padding: 6px; } .v-floor b { font-size: 12px; } .v-floor small { font-size: 9px; }
  .v-cell { min-height: 84px; padding: 7px 6px; }
  .v-cell .c-entry, .v-start b { font-size: 10.5px; }
  .v-cell .c-exit { font-size: 10.5px; } .v-cell .c-jury { font-size: 9px; }
  .v-pitch { font-size: 9px; padding: 3px 4px; white-space: normal; }
  .v-start { padding: 7px 6px; } .v-start small { font-size: 9px; }
}

/* шаги «Как это работает»: на узком экране метка формата переносится под заголовок */
.step > div { min-width: 0; }
.step .s-head { flex-wrap: wrap; row-gap: 6px; }

/* вертикальная схема: переносы и телефонная раскладка (подпись потока — строкой над этажом) */
.v-cell .c-entry, .v-start b, .v-cell .c-exit { hyphens: manual; overflow-wrap: anywhere; }
#matrix.vertical .matrix-grid { grid-template-columns: 108px repeat(4, minmax(0, 1fr)); }
@media (max-width: 699px) {
  #matrix.vertical .matrix-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; }
  #matrix.vertical .v-floor { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 18px 2px 0; border: 0; background: transparent; }
  #matrix.vertical .v-floor:first-child { padding-top: 6px; }
  #matrix.vertical .v-floor small br { display: none; }
  #matrix.vertical .v-floor .m-now { position: static; order: 3; }
  #matrix.vertical .v-floor.current b { color: var(--acid); }
  #matrix.vertical .v-start-label { padding-top: 22px; }
}
.v-pitch { white-space: normal; max-width: 100%; padding-left: 6px; padding-right: 6px; }
.v-pitch { line-height: 1.3; }
@media (max-width: 359px) { .v-pitch { font-size: 8px; padding-left: 3px; padding-right: 3px; } }
/* плашка питча на всю ширину ячейки */
.v-pitch { align-self: stretch; text-align: center; }
/* больше воздуха между этажами-потоками */
#matrix.vertical .matrix-grid { row-gap: 64px; }
@media (max-width: 699px) { #matrix.vertical .matrix-grid { row-gap: 14px; } #matrix.vertical .v-floor { padding-top: 30px; } }

/* [04.10.2026] схема первого экрана снизу вверх */
.scheme.vert .s-row text { font-size: 12px; }
.scheme.mini.vert .s-lbl.strong { font-size: 14px; }
/* стрелка в ячейке — отдельной строкой; старты ближе к первому потоку */
.v-cell .c-exit b { display: block; }
#matrix.vertical .v-start, #matrix.vertical .v-start-label { margin-top: -40px; }
@media (max-width: 699px) { #matrix.vertical .v-start { margin-top: 0; } #matrix.vertical .v-start-label { margin-top: 0; padding-top: 14px; } }

/* 04.10.2026: шрифт заголовков выбран — Manrope 800 */
h1, h2 { font-weight: 800; letter-spacing: -0.02em; }
.nw { white-space: nowrap; }
