/* «Маршрут» — ночная картография. Анимируются только transform / opacity (и stroke-dashoffset линий). */
:root {
  --bg: #06101E; --bg-2: #081628; --line: #12263D; --line-2: #1B3554;
  --cyan: #3BE0FF; --amber: #FFB547; --text: #E6F1FF; --muted: #7C93AE; --soft: #B9CBE0;
  --red: #FF5A6E; --green: #3DDC97;
  --f: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --m: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --nav: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--f);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(18, 38, 61, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 38, 61, .45) 1px, transparent 1px);
  background-size: 96px 96px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #1A1204; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--m); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--m); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(59, 224, 255, .16); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--amber); color: #1A1204; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--f); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), opacity .25s; white-space: nowrap; max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-amber { background: var(--amber); color: #1A1204; box-shadow: 0 8px 28px -10px rgba(255, 181, 71, .7); }
.btn-ghost { border-color: rgba(230, 241, 255, .28); color: var(--text); background: rgba(6, 16, 30, .4); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 18px; }

/* панель с уголками-визирами */
.panel { position: relative; background: linear-gradient(180deg, rgba(18, 38, 61, .55), rgba(8, 22, 40, .7)); border: 1px solid var(--line-2); border-radius: 4px; }
.panel::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: .75;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 14px 1px, linear-gradient(var(--cyan), var(--cyan)) 0 0 / 1px 14px,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 14px 1px, linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 1px 14px,
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 14px 1px, linear-gradient(var(--cyan), var(--cyan)) 0 100% / 1px 14px,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 14px 1px, linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 1px 14px;
  background-repeat: no-repeat;
}

/* ---------- навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav);
  display: flex; align-items: center; gap: 20px; padding: 0 var(--pad);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s;
}
.nav.scrolled { background: rgba(6, 16, 30, .8); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark circle { fill: none; stroke: var(--cyan); stroke-width: 2.2; }
.brand-mark path { fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a.on::after { transform: scaleX(1); }
.nav-tg { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.nav-tg svg { width: 18px; height: 18px; fill: var(--text); }
.nav-lang { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; font: 600 12px/1 var(--m); letter-spacing: .04em; color: var(--text); text-decoration: none; transition: border-color .2s, color .2s; }
.nav-lang:hover, .nav-lang:focus-visible { border-color: var(--amber); color: var(--amber); }
.btn-present {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 181, 71, .55); background: rgba(255, 181, 71, .08); color: var(--amber); font-size: 14px; font-weight: 600; flex: none;
}
.btn-present svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn-present kbd { font: 600 11px/1 var(--m); padding: 4px 6px; border-radius: 4px; background: rgba(255, 181, 71, .18); }
.nav-menu { display: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; flex: none; }
.nav-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--ease); }
.nav-menu[aria-expanded="true"] { border-color: var(--amber); color: var(--amber); }
@media (max-width: 900px) {
  .nav-menu { display: grid; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: calc(var(--nav) - 6px); left: var(--pad); right: var(--pad); flex-direction: column; gap: 0; margin: 0; padding: 6px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(6, 16, 30, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 16px; color: var(--soft); border-bottom: 1px dashed var(--line-2); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-links a.on { color: var(--amber); }
}
@media (max-width: 440px) { .brand-txt, .btn-present kbd { display: none; } .nav { gap: 10px; } }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hl { position: absolute; inset: 0; will-change: transform; }
.hl-in { position: absolute; inset: -3%; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59, 224, 255, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 224, 255, .075) 1px, transparent 1px);
  background-size: calc(100% / 16) calc(100% / 10);
}
.grid-ticks { position: absolute; display: flex; font: 500 10px/1 var(--m); color: rgba(124, 147, 174, .6); }
.grid-ticks-x { left: 0; right: 0; top: calc(var(--nav) + 30px); }
.grid-ticks-x span { flex: 1; padding-left: 5px; }
.grid-ticks-y { top: 0; bottom: 0; left: 4.2%; flex-direction: column; }
.grid-ticks-y span { flex: 1; padding-top: 5px; }
.topo { width: 100%; height: 100%; }
/* линия в координатах фотографии: app.js подгоняет её под object-fit: cover картинки */
.hero-route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.iso { fill: none; stroke: rgba(59, 224, 255, .2); stroke-width: 1; stroke-dasharray: 1 1; vector-effect: non-scaling-stroke; }
.iso-major { stroke: rgba(59, 224, 255, .38); stroke-width: 1.4; }
.iso-label { font: 500 11px var(--m); fill: rgba(124, 147, 174, .55); }
/* линия маршрута гаснет под колонкой текста: не спорит с кнопками и цифрами */
.hl-route .hl-in { -webkit-mask-image: linear-gradient(90deg, #000 52%, rgba(0, 0, 0, .14) 60%); mask-image: linear-gradient(90deg, #000 52%, rgba(0, 0, 0, .14) 60%); }
.hr-plan { fill: none; stroke: rgba(255, 181, 71, .3); stroke-width: 2; stroke-dasharray: 3 9; vector-effect: non-scaling-stroke; }
.hr-line { fill: none; stroke: var(--amber); stroke-width: 3.5; stroke-dasharray: 1 1; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(255, 181, 71, .7)); }
.hr-pin circle { fill: var(--amber); }
.hr-pin .hr-pulse, .r-m-pulse, .cm-pulse { fill: none; stroke: var(--amber); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 30, .7) 0, transparent 18%, transparent 68%, var(--bg) 100%),
    linear-gradient(90deg, transparent 46%, rgba(6, 16, 30, .72) 62%, rgba(6, 16, 30, .86) 100%);
}
.hero-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-size: 11px; color: var(--muted); letter-spacing: .14em; }
.hud-tl { position: absolute; left: var(--pad); top: calc(var(--nav) + 52px); color: var(--cyan); }
.hud-bl { position: absolute; left: var(--pad); bottom: 26px; display: flex; gap: 24px; }
.hero-copy { position: relative; z-index: 3; width: min(620px, 42vw); margin: 0 calc(var(--pad) * .9) 0 auto; padding-top: calc(var(--nav) + 10px); }
html.js:not(.ready) .hero-copy { visibility: hidden; }
.hero-name { font-weight: 800; font-size: clamp(56px, 7vw, 116px); line-height: .92; letter-spacing: -.035em; margin: 20px 0 24px; }
.hero-name .hn-1 { display: block; font-weight: 200; letter-spacing: -.02em; }
.hero-name .hn-2 { display: block; }
.hero-role { font-size: clamp(18px, 1.55vw, 23px); font-weight: 300; line-height: 1.35; }
.hero-role b { font-weight: 700; color: var(--amber); }
.hero-lead { margin-top: 14px; max-width: 46ch; color: var(--soft); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.hero-meters { display: flex; flex-wrap: wrap; gap: 14px 30px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.hero-meters dt { font-size: 10px; color: var(--muted); letter-spacing: .14em; }
.hero-meters dd { font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: 0; margin-top: 4px; }
.scroll-cue { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; margin: 0 auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); text-decoration: none; letter-spacing: .16em; }
.scroll-cue i { position: relative; width: 2px; height: 38px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 12px; background: var(--amber); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-14px); } 100% { transform: translateY(40px); } }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero-img { object-position: 24% 0; }
  .hl-route .hl-in { -webkit-mask-image: none; mask-image: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(6, 16, 30, .6) 0, transparent 14%, transparent 30%, rgba(6, 16, 30, .82) 52%, var(--bg) 82%); }
  .hero-copy { width: auto; margin: 0; padding: 0 var(--pad) 84px; }
  .hero-name { font-size: 14.5vw; margin: 12px 0 14px; }
  .hero-lead { font-size: 15px; }
  .hero-cta { margin: 20px 0 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-meters { gap: 10px 22px; }
  .hero-meters dd { font-size: 16px; }
  .hud-tl { top: calc(var(--nav) + 12px); font-size: 10px; }
  .hud-bl, .grid-ticks-y { display: none; }
  .grid-ticks-x { top: calc(var(--nav) + 62px); }
  .scroll-cue span { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) { .hero-lead { display: none; } }
@media (min-width: 761px) and (max-height: 760px) { .scroll-cue span { display: none; } }

/* ---------- общие секции ---------- */
.sec { position: relative; padding: clamp(84px, 12vh, 140px) max(var(--pad), calc((100% - 1320px) / 2)); }
.sec-head { max-width: 880px; margin-bottom: clamp(32px, 5vh, 52px); }
.sec-head h2 { font-size: clamp(40px, 5vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.035em; margin-top: 16px; }
.w-thin { font-weight: 200; }
.sec-lead { margin-top: 18px; color: var(--soft); font-size: clamp(16px, 1.3vw, 19px); max-width: 62ch; }

/* ---------- цифры ---------- */
.stats-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.traffic { padding: 24px 26px 18px; }
.tr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.tr-k { flex-basis: 100%; font-size: 11px; color: var(--cyan); letter-spacing: .16em; }
.tr-title { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; }
.tr-total { font-size: 13px; color: var(--amber); }
.tr-chart svg { width: 100%; height: auto; }
.ch-grid { stroke: var(--line-2); stroke-width: 1; }
.ch-ax, .ch-m { fill: var(--muted); font-family: var(--m); }
.ch-cap { fill: var(--cyan); }
.ch-fill { transition: opacity .25s; }
.ch-bar.peak .ch-cap { fill: var(--amber); }
.ch-bar.peak .ch-m { fill: var(--amber); font-weight: 700; }
.ch-bar.hot .ch-fill { opacity: .7; }
.ch-hit { fill: transparent; cursor: pointer; outline: none; }
.ch-hit:focus-visible { stroke: var(--cyan); stroke-width: 2; }
.ch-users { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-dasharray: 1 1; stroke-linejoin: round; opacity: .9; }
.ch-udot { fill: var(--bg); stroke: var(--text); stroke-width: 1.5; }
.ch-peak text { fill: var(--amber); font-family: var(--m); font-weight: 700; }
.ch-peak .ch-peak-s { fill: var(--muted); font-weight: 400; }
.tr-tip {
  position: absolute; left: 0; top: 0; z-index: 3; transform: translate(-50%, -100%); width: max-content; max-width: min(320px, 92%);
  padding: 8px 12px; background: #0B1B30; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; letter-spacing: .02em; text-transform: none;
  opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.tr-tip b { color: var(--amber); }
.tr-tip.show { opacity: 1; }
.tr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.tr-legend { font-size: 11px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.lg-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--cyan); }
.lg-line { width: 18px; height: 2px; background: var(--text); margin-left: 10px; }
.tr-note { flex-basis: 100%; order: 3; }
.tr-src { font-size: 11px; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: stretch; }
.meter { min-width: 0; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(8, 22, 40, .65); display: flex; flex-direction: column; gap: 6px; }
.m-v { font: 600 clamp(22px, 1.9vw, 28px)/1.1 var(--m); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-amber .m-v { color: var(--amber); }
.m-l { font-size: 13px; color: var(--muted); line-height: 1.35; }
.stats-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; margin-bottom: 24px; }
.sx { padding: 22px 22px 20px; min-width: 0; }
.sx-k { margin: 0 0 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.me-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.me-list li { display: flex; align-items: baseline; gap: 12px; }
.me-list b { flex: none; min-width: 2ch; font: 600 26px/1 var(--m); color: var(--amber); }
.me-list span { color: var(--soft); font-size: 15px; }
.me-frac { font-size: .62em; opacity: .55; }
.mo-total { margin: 0; font: 600 clamp(34px, 3vw, 44px)/1 var(--m); color: var(--amber); }
.mo-label { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.mo-list { list-style: none; margin: 0; padding: 0; }
.mo-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mo-who { color: var(--text); font-size: 15px; }
.mo-list b { font: 600 15px var(--m); color: var(--text); }
.mo-note { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.tf { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tf li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.tf-when { font-size: 12px; color: var(--muted); }
.tf-bar { height: 10px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tf-bar i { display: block; height: 100%; background: var(--amber); border-radius: 2px; }
.tf li b { font: 600 17px var(--m); color: var(--text); }
.tf-plan { grid-column: 2 / -1; color: var(--soft); font-size: 13px; }
.sx-tokens { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; line-height: 1.5; }
@media (max-width: 1000px) { .stats-grid, .stats-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .traffic { padding: 18px 14px 14px; } .m-v { font-size: 21px; } .meter { padding: 14px; } }

/* ---------- карта проектов ---------- */
.atlas-wrap { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 20px; }
.atlas-map { padding: 6px; }
.atlas-svg { width: 100%; height: auto; overflow: visible; }
.a-circle { stroke-width: 1.4; }
.a-circle.c-logistics { fill: rgba(59, 167, 255, .07); stroke: rgba(59, 167, 255, .5); }
.a-circle.c-comms { fill: rgba(124, 92, 255, .08); stroke: rgba(150, 125, 255, .55); }
.a-circle.c-rent { fill: rgba(255, 107, 74, .06); stroke: rgba(255, 128, 100, .5); }
.a-dlabel { fill: var(--soft); font: 600 15px var(--m); letter-spacing: .12em; text-transform: uppercase; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.a-dlabel.sat { fill: var(--muted); font-size: 13px; }
.a-route { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.a-route-glow { fill: none; stroke: rgba(255, 181, 71, .16); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.a-branch { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-dasharray: 6 6; stroke-linecap: round; opacity: .85; }
.a-edge { fill: none; stroke: rgba(59, 224, 255, .22); stroke-width: 1.3; opacity: 0; transition: opacity .3s; }
.a-edge.watch { stroke: rgba(176, 224, 76, .5); stroke-width: 1; stroke-dasharray: 2 5; opacity: .55; }
.a-edge.on { stroke: var(--cyan); stroke-width: 2.2; opacity: 1; }
.a-edge.watch.on { stroke: #B0E04C; stroke-width: 1.6; }
.has-active .a-route, .has-active .a-route-glow, .has-active .a-branch { opacity: .3; }
.a-date { fill: var(--muted); font: 500 .74em var(--m); letter-spacing: .04em; }
.a-node { cursor: pointer; outline: none; transition: opacity .3s; }
.has-active .a-node:not(.on):not(.nb) { opacity: .32; }
.a-halo { fill: var(--pc); opacity: .2; transform-box: fill-box; transform-origin: center; animation: breathe 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes breathe { 0%, 100% { transform: scale(.85); opacity: .12; } 50% { transform: scale(1.25); opacity: .3; } }
.a-core { fill: var(--bg); stroke: var(--pc); stroke-width: 2.6; }
.a-in { fill: var(--pc); }
.a-node text { fill: var(--text); font-size: var(--fs, 19px); font-weight: 500; paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.a-node.big text { font-weight: 800; font-size: calc(var(--fs, 19px) + 3px); }
.a-node.on .a-core { stroke: var(--amber); stroke-width: 3.4; }
.a-node.on text { fill: var(--amber); }
.a-node.nb text { fill: #fff; }
.a-node:focus-visible .a-core { stroke: var(--cyan); stroke-width: 4; }
.atlas-info { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ai-groups { list-style: none; margin: 0; padding: 0; }
.ai-groups li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ai-groups b { display: block; font-size: 15px; line-height: 1.3; }
.ai-groups small { font-size: 12px; color: var(--muted); }
.ai-num { flex: none; min-width: 28px; color: var(--amber); font-size: 13px; padding-top: 2px; }
.ai-hint { font-size: 13px; color: var(--muted); }
.ai-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12px; color: var(--soft); }
.ai-legend li { display: flex; align-items: center; gap: 10px; }
.ai-legend i { flex: none; width: 28px; height: 0; border-top: 4px solid var(--amber); border-radius: 2px; }
.ai-legend i.lg-branch { border-top: 2px dashed var(--amber); }
.ai-legend i.lg-watch { border-top: 2px dotted #B0E04C; }
.ai-name { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.ai-tag { color: var(--soft); font-size: 15px; }
.ai-k { font-size: 11px; color: var(--cyan); letter-spacing: .14em; }
.ai-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ai-links li { padding-left: 14px; border-left: 2px solid var(--amber); }
.ai-links b { display: block; font-size: 15px; }
.ai-links span { font-size: 13px; color: var(--muted); }
.ai-go { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) { .atlas-wrap { grid-template-columns: 1fr; } .atlas-info { padding: 18px; } }

/* ---------- маршрут ---------- */
.route { position: relative; isolation: isolate; padding: 20px 0 40px; overflow-x: clip; }
.route-svg { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.r-plan { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 9; }
.r-glow { fill: none; stroke: var(--amber); stroke-width: 14; opacity: .13; stroke-linecap: round; }
.r-line { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.r-m-halo { fill: rgba(255, 181, 71, .28); }
.r-m-core { fill: #FFF3DC; filter: drop-shadow(0 0 6px var(--amber)); }
.route-start, .route-end { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px var(--pad); }
.route-start .mono, .route-end .mono { font-size: 11px; color: var(--muted); letter-spacing: .16em; text-align: center; }
/* подпись — сбоку от узла, а не поверх линии */
@media (min-width: 900px) {
  .route-start .mono, .route-end .mono { position: absolute; left: calc(50% + 26px); top: 50%; transform: translateY(-50%); max-width: calc(50% - 26px - var(--pad)); text-align: left; }
}

.node { position: relative; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); flex: none; }
.node::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; transition: opacity .4s; }
.node::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 181, 71, .45), transparent 68%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.node.on::before, .node.on::after { opacity: 1; }
.st-node { width: 46px; height: 46px; font: 600 13px/1 var(--m); color: var(--muted); }
.st-node.on { color: var(--amber); }
.st-node b { position: relative; z-index: 1; font-weight: 600; }
.st-node.big { width: 64px; height: 64px; font-size: 16px; }
/* дата начала проявляется вместе с номером станции */
.st-date { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 1; padding: 4px 7px; border-radius: 6px; background: var(--bg); font: 500 11px/1 var(--m); font-style: normal; letter-spacing: .04em; white-space: nowrap; color: var(--amber); opacity: 0; transform: translate(-50%, -6px); transition: opacity .5s, transform .5s; pointer-events: none; }
.st-node.on .st-date { opacity: 1; transform: translate(-50%, 0); }
.ch-node { width: 26px; height: 26px; border-color: var(--cyan); }

/* главы */
.chapter { position: relative; min-height: 88vh; display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); align-items: center; padding: 14vh var(--pad); overflow: hidden; }
.ch-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ch-bg-in { position: absolute; inset: -10% 0; }
.ch-bg-in img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.ch-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0, rgba(6, 16, 30, .5) 24%, rgba(6, 16, 30, .5) 76%, var(--bg) 100%); }
.ch-r .ch-bg::before, .ch-l .ch-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.ch-r .ch-bg::before { background: linear-gradient(90deg, transparent 30%, rgba(6, 16, 30, .78) 70%); }
.ch-l .ch-bg::before { background: linear-gradient(270deg, transparent 30%, rgba(6, 16, 30, .78) 70%); }
.ch-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; }
.ch-num { position: absolute; z-index: 0; top: 12%; font-weight: 800; font-size: clamp(150px, 24vw, 400px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(59, 224, 255, .3); letter-spacing: -.04em; pointer-events: none; }
.ch-r .ch-num { left: var(--pad); }
.ch-l .ch-num { right: var(--pad); }
.ch-rail { grid-column: 2; grid-row: 1; position: relative; z-index: 2; display: flex; justify-content: center; }
.ch-copy { position: relative; z-index: 2; grid-row: 1; min-width: 0; }
.ch-r .ch-copy { grid-column: 3; }
.ch-l .ch-copy { grid-column: 1; text-align: right; }
.ch-copy h2 { font-size: clamp(34px, 3.8vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 18px; }
.ch-lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--soft); max-width: 46ch; }
.ch-l .ch-lead { margin-left: auto; }

/* станции */
.station { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); align-items: center; padding: 56px var(--pad); max-width: 1480px; margin: 0 auto; }
.st-rail { grid-column: 2; grid-row: 1; display: flex; justify-content: center; }
.side-l .st-card { grid-column: 1; grid-row: 1; }
.side-l .st-vis { grid-column: 3; grid-row: 1; }
.side-r .st-card { grid-column: 3; grid-row: 1; }
.side-r .st-vis { grid-column: 1; grid-row: 1; }
.st-card { padding: 28px 30px 26px; min-width: 0; overflow-wrap: break-word; }
.st-card::before { content: ""; position: absolute; left: 30px; top: -1px; width: 64px; height: 3px; background: var(--pc); border-radius: 0 0 3px 3px; }
.st-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 16px; flex-wrap: wrap; font-size: 11px; color: var(--muted); letter-spacing: .14em; margin-bottom: 14px; }
.st-status { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 400 12px/1.35 var(--f); color: var(--muted); max-width: 100%; }
.st-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.st-status.live { color: #8BF2C6; }
.st-status.live i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.st-kicker { font-size: 11px; color: var(--pc); letter-spacing: .14em; margin-bottom: 8px; filter: brightness(1.2); }
.st-name { font-size: clamp(26px, 2.4vw, 38px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; margin-bottom: 10px; }
.st-tag { font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; line-height: 1.35; margin-bottom: 12px; }
.st-problem { font-size: 15px; color: var(--muted); line-height: 1.55; }
.st-feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.st-feats li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.st-feats li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--amber); }
.st-more { margin-top: 14px; }
.st-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--cyan); font-size: 14px; font-weight: 500; padding: 4px 0; }
.st-more summary::-webkit-details-marker { display: none; }
.st-more summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; font: 600 14px/1 var(--m); transition: transform .3s var(--ease); }
.st-more[open] summary::before { transform: rotate(45deg); }
.st-story { margin-top: 12px; font-size: 15px; color: var(--soft); line-height: 1.6; }
.st-fg h4 { margin: 16px 0 6px; font: 500 12px/1.3 var(--m); color: var(--amber); text-transform: uppercase; letter-spacing: .1em; }
.st-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--soft); display: grid; gap: 4px; }
.st-nums { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0 0; padding: 14px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.st-nums div { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; max-width: 220px; }
.st-nums dt { font-size: 12px; color: var(--muted); line-height: 1.35; }
.st-nums dd { font: 600 22px/1.1 var(--m); color: var(--amber); white-space: nowrap; }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 11px/1 var(--m); padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }
.st-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.st-links { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.st-links .mono { font-size: 11px; color: var(--muted); letter-spacing: .14em; margin-right: 4px; }
.xfer { font-size: 13px; color: var(--cyan); text-decoration: none; padding: 4px 10px; border: 1px solid rgba(59, 224, 255, .35); border-radius: 999px; }
.xfer:hover { background: rgba(59, 224, 255, .1); }
.st-since { font-size: 11px; color: var(--muted); margin-right: auto; letter-spacing: .1em; }
.st-vis { min-width: 0; display: flex; justify-content: center; }
/* визуал «едет» рядом с высокой карточкой — без пустых полос в зигзаге */
@media (min-width: 900px) {
  .station:not(.flagship) .st-vis { align-self: start; position: sticky; top: calc(var(--nav) + 5vh); }
  .station:not(.flagship) .dev-phone:not(.ph-over) { width: min(280px, 72%, calc((100vh - var(--nav) - 190px) * .462)); }
}

/* флагман */
.flagship { display: block; max-width: none; padding: 88px 0 0; }
.fl-top { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); align-items: start; padding: 0 var(--pad); max-width: 1480px; margin: 0 auto; }
.fl-top .st-rail { grid-column: 2; grid-row: 1; align-items: flex-start; padding-top: 6px; }
.fl-col { grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.fl-col-l { grid-column: 1; }
.fl-col-r { grid-column: 3; }
.fl-title, .fl-side { min-width: 0; }
.fl-name { font-size: clamp(42px, 5.2vw, 84px); font-weight: 800; line-height: .95; letter-spacing: -.04em; margin: 4px 0 16px; overflow-wrap: anywhere; }
.fl-tag { font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; line-height: 1.3; margin-bottom: 14px; }
.fl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.fl-cta .st-links { flex-basis: auto; }
.fl-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.fl-nums div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(8, 22, 40, .65); min-width: 0; }
.fl-nums dt { font-size: 12px; color: var(--muted); line-height: 1.35; }
.fl-nums dd { font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--m); color: var(--amber); }
.fl-side .st-story { margin: 0; }
.fl-nums div { justify-content: flex-end; }
@media (max-width: 560px) { .fl-nums div { padding: 12px; } .fl-nums dd { font-size: clamp(15px, 4.3vw, 19px); letter-spacing: -.03em; white-space: nowrap; } }
.fl-feats { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; min-width: 0; }
.fl-feats li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; line-height: 1.45; }
.fl-feats li span { color: var(--amber); font-size: 12px; padding-top: 3px; }
.fl-bottom { display: flex; justify-content: center; padding: 30px var(--pad) 44px; max-width: 1480px; margin: 0 auto; }

/* «большой город» */
.city { position: relative; z-index: 3; margin-top: 56px; }
.city-stage { position: relative; background: #050D18; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.city.pinned .city-stage { height: 100vh; }
.city-map { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.city-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 13, 24, .94) 0, rgba(5, 13, 24, .78) 26%, rgba(5, 13, 24, 0) 46%), linear-gradient(0deg, rgba(5, 13, 24, .85), transparent 26%); }
.city-panel { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--nav) + 4vh); width: min(440px, 32vw); }
.city-k { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--cyan); letter-spacing: .14em; }
.acts { display: grid; margin-top: 18px; }
.act { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.act.on { opacity: 1; transform: none; pointer-events: auto; }
.act-n { font-size: 12px; color: var(--amber); letter-spacing: .14em; }
.act h4 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 6px 0 14px; }
.act ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.act li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.4; color: var(--soft); }
.act li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--amber); }
.city-scale { position: absolute; z-index: 2; left: var(--pad); bottom: 26px; width: min(440px, 32vw); display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.city-scale li { flex: 1; min-width: 0; padding-top: 8px; border-top: 3px solid var(--line-2); font: 500 10px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; transition: opacity .3s; }
.city-scale li.done { border-top-color: rgba(255, 181, 71, .45); }
.city-scale li.on { border-top-color: var(--amber); }
.city-scale em { display: block; font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-scale span { color: var(--amber); }
.city-shot { position: absolute; z-index: 2; right: var(--pad); top: calc(var(--nav) + 18px); width: min(31vw, 540px); }
.city-shot .vis-frame, .city-shot .dev-browser, .city-shot .g-ctrl { max-width: none; }
.city.pinned .city-shot .g-btns { display: none; }
.city.pinned .city-shot .g-ctrl { align-items: flex-start; }
.city.pinned .city-shot .g-cap { min-height: 0; text-align: left; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(6, 16, 30, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--soft); }
.city-legend { position: absolute; z-index: 2; right: var(--pad); bottom: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; max-width: min(48vw, 680px); font-size: 10.5px; color: var(--soft); letter-spacing: .08em; }
.city-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg { display: inline-block; width: 20px; height: 4px; border-radius: 2px; flex: none; }
.lg-main { background: var(--amber); }
.lg-alt { background: var(--cyan); }
.lg-mery { background: #C792FF; height: 7px; }
.lg-podd { background: #FF8FB1; height: 7px; }
.lg-heavy { background: #FF7A3D; height: 7px; }
.lg-warn { width: 13px; height: 12px; border-radius: 0; background: #FFD166; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lg-post { width: 12px; height: 12px; border: 2px solid var(--cyan); border-radius: 3px; }
/* статичная версия (мобильный, низкий экран, reduced motion) */
.city:not(.pinned) .city-stage { display: grid; gap: 28px; padding-bottom: 36px; }
.city:not(.pinned) .city-map { position: relative; height: auto; aspect-ratio: 16 / 10; }
.city:not(.pinned) .city-shade, .city:not(.pinned) .city-scale { display: none; }
.city:not(.pinned) .city-panel, .city:not(.pinned) .city-shot, .city:not(.pinned) .city-legend { position: static; width: auto; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.city:not(.pinned) .city-legend { justify-content: flex-start; }
.city:not(.pinned) .city-legend span { white-space: normal; }
.city:not(.pinned) .acts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 28px 32px; }
.city:not(.pinned) .act { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
.city:not(.pinned) .city-shot .dev-browser { max-width: 820px; margin: 0 auto; }
@media (max-width: 760px) { .city:not(.pinned) .city-map { aspect-ratio: 3 / 2; } }

/* карта-город: слои SVG (сайт и слайд) */
.cm-topo .iso { stroke: rgba(59, 224, 255, .1); }
.cm-topo .iso-label { display: none; }
.cm-tiles path { fill: rgba(18, 38, 61, .42); stroke: rgba(27, 53, 84, .7); stroke-width: 1; }
.cm-river { fill: none; stroke: rgba(59, 224, 255, .16); stroke-width: 22; stroke-linecap: round; }
.cm-minor path, .cm-minor { fill: none; stroke: #15304C; stroke-width: 3; stroke-linecap: round; }
.cm-major path { fill: none; stroke: #23466B; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.cm-permits path { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 1 1; opacity: .75; }
.cm-route, .cm-route-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.cm-route-glow { stroke: var(--amber); stroke-width: 24; opacity: .16; }
.cm-main { stroke: var(--amber); stroke-width: 6; }
.cm-alt { stroke: var(--cyan); stroke-width: 4; opacity: .9; }
.cm-blocked { stroke: var(--red); stroke-width: 4; opacity: .9; }
.cm-seg { fill: none; stroke-width: 11; stroke-linecap: round; opacity: .95; }
.cm-seg-mery { stroke: #C792FF; stroke-dasharray: 0 180 120 2000; }
.cm-seg-podd { stroke: #FF8FB1; stroke-dasharray: 0 420 110 2000; }
.cm-seg-heavy { stroke: #FF7A3D; stroke-dasharray: 0 640 140 2000; }
.cm-warn path:first-child { fill: #FFD166; stroke: #050D18; stroke-width: 1.5; stroke-linejoin: round; }
.cm-ex { fill: none; stroke: #050D18; stroke-width: 2.4; stroke-linecap: round; }
.cm-post rect { fill: #050D18; stroke: var(--cyan); stroke-width: 2.6; }
.cm-x circle { fill: #2A0B12; stroke: var(--red); stroke-width: 2.6; }
.cm-x path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.cm-pin circle:not(.cm-pulse) { fill: var(--amber); stroke: #050D18; stroke-width: 2; }
.cm-pin-a circle:not(.cm-pulse) { fill: var(--cyan); }
.cm-pin-a .cm-pulse { stroke: var(--cyan); }
.cm-pin text { font: 700 12px var(--m); fill: #050D18; text-anchor: middle; }

/* ---------- устройства и галереи ---------- */
.vis { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vis-frame { position: relative; width: 100%; display: flex; justify-content: center; }
.vis-browser .vis-frame, .vis-sheet .vis-frame { max-width: 640px; }
.vis-combo .vis-frame { padding-bottom: 7%; }
.dev-browser { position: relative; width: 100%; max-width: 640px; border-radius: 10px; overflow: hidden; background: #0A1628; border: 1px solid var(--line-2); box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .8), 0 0 0 1px rgba(59, 224, 255, .05); }
.br-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #0D1D33; border-bottom: 1px solid var(--line-2); }
.br-bar i { width: 9px; height: 9px; border-radius: 50%; background: #29425F; flex: none; }
.br-bar i:first-child { background: #FF6B6B; opacity: .7; }
.br-url { flex: 1; min-width: 0; margin-left: 10px; padding: 3px 10px; border-radius: 4px; background: rgba(6, 16, 30, .7); font: 11px/1.3 var(--m); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #050D18; }
.gal .g-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .6s ease; }
.gal .g-img.on { opacity: 1; }
.dev-phone { position: relative; width: min(280px, 72%); aspect-ratio: 390 / 844; padding: 10px; border-radius: 42px; background: linear-gradient(150deg, #20334D, #0A1424 60%); border: 1px solid #2D4768; box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .85), inset 0 0 0 2px rgba(255, 255, 255, .03); flex: none; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #050D18; }
.ph-island { position: absolute; top: 19px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 20px; background: #000; }
.ph-over { position: absolute; right: -3%; bottom: 0; width: 23%; padding: 5px; border-radius: 22px; }
.ph-over .ph-screen { border-radius: 17px; }
.ph-over .ph-island { top: 10px; height: 9px; }
/* статус-бар под «островом»: скриншот начинается ниже, остров не закрывает его верх */
.ph-screen.gal { background: #000; }
.ph-screen.gal .g-img { top: 7.5%; height: 92.5%; }
.dev-sheet { position: relative; width: 100%; max-width: 640px; padding: 14px; background: rgba(10, 22, 40, .7); border: 1px solid var(--line-2); }
.sh-corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--cyan); }
.sh-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.sh-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.sh-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.sh-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.sh-body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #050D18; }
.dev-sheet .g-img { object-fit: contain; object-position: 50% 50%; }
.sh-label { position: absolute; top: 0; right: 22px; transform: translateY(-50%); padding: 0 8px; background: var(--bg); font: 500 10px/1.4 var(--m); color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; }
.g-ctrl { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vis-phone .g-ctrl { max-width: 420px; }
.g-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; }
.g-arr { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6, 16, 30, .6); cursor: pointer; }
.g-arr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-arr:hover { border-color: var(--cyan); }
.g-dot { position: relative; width: 22px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.g-dot::before { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--muted); }
.g-dot.on::before { background: var(--amber); border-color: var(--amber); }
.g-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font: 500 11px/1 var(--m); color: var(--muted); cursor: pointer; text-transform: lowercase; }
.g-chip.on { background: var(--cyan); border-color: var(--cyan); color: #04121F; }
.g-count { margin-left: 6px; font-size: 11px; color: var(--muted); }
.g-cap { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; min-height: 2.9em; max-width: 62ch; }

/* иллюстрации без скриншотов */
.ph-screen.chat { display: flex; flex-direction: column; background: linear-gradient(180deg, #0C1B30, #07111F); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 46px 14px 12px; border-bottom: 1px solid var(--line-2); }
.ava { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pc); color: #04121F; font: 700 12px/1 var(--m); }
.chat-t { min-width: 0; }
.chat-t b { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-t small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; overflow: hidden; }
.bub { align-self: flex-start; max-width: 88%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: #14283F; font-size: 12px; line-height: 1.4; }
.bub:nth-child(even) { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--pc) 24%, #0C1B30); }
.bub.typing { display: flex; gap: 4px; padding: 11px 13px; }
.bub.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .2s; }
.bub.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.chat-input { padding: 8px 12px 22px; }
.chat-input span { display: block; height: 32px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(6, 16, 30, .6); }
html.js:not(.no-anim) .station .bub { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * .42s); }
html.js:not(.no-anim) .station.play .bub { opacity: 1; transform: none; }
.br-body.mock { display: grid; grid-template-columns: 22% minmax(0, 1fr); }
.mock-side { display: flex; flex-direction: column; gap: 9px; padding: 16px 10px; background: #0A1830; border-right: 1px solid var(--line-2); }
.mock-side span { height: 8px; border-radius: 4px; background: var(--line-2); }
.mock-side span:first-child { width: 60%; background: var(--pc); }
.mock-main { padding: 16px 20px; min-width: 0; overflow: hidden; }
.mock-k { font-size: 10px; color: var(--pc); }
.mock-t { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 4px 0 12px; }
.mock-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-main li { display: flex; gap: 8px; font-size: 12px; line-height: 1.4; color: var(--soft); }
.mk { flex: none; width: 10px; height: 10px; margin-top: 3px; border-radius: 2px; background: var(--pc); opacity: .8; }
.dev-flow { width: 100%; max-width: 580px; padding: 20px 18px 18px; border: 1px solid var(--line-2); border-radius: 10px; background: radial-gradient(ellipse at 50% 50%, rgba(18, 38, 61, .7), rgba(6, 16, 30, .4)); }
.fl-stage { position: relative; }
.fl-stage svg { width: 100%; height: auto; }
.fl-path { fill: none; stroke-width: 3; stroke-linecap: round; }
.fl-main { stroke: var(--pc); stroke-dasharray: 10 12; animation: flow 1.1s linear infinite; }
.fl-direct { stroke: var(--muted); stroke-dasharray: 4 9; opacity: .65; animation: flow 1.8s linear infinite; }
.fl-backup { stroke: var(--amber); stroke-dasharray: 3 10; opacity: .75; }
@keyframes flow { to { stroke-dashoffset: -44; } }
.fl-node circle { fill: var(--bg); stroke: var(--pc); stroke-width: 2.5; }
.fl-node path { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fl-net circle { stroke: var(--muted); }
.fl-node .fl-globe { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.fl-l { position: absolute; margin: 0; max-width: 38%; transform: translateX(-50%); text-align: center; font: 500 11px/1.25 var(--m); color: var(--text); letter-spacing: .04em; text-transform: uppercase; }
.fl-l1 { left: 13.5%; top: 31%; }
.fl-l2 { left: 50%; top: 60%; color: var(--pc); }
.fl-l3 { left: auto; right: 0; top: 85%; transform: none; text-align: right; }
.fl-l4 { left: 50%; top: 4%; color: var(--muted); }
.fl-l5 { left: 78%; top: 36%; color: var(--amber); }
.fl-cap { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.sh-list { aspect-ratio: auto; padding: 18px; }
.sh-list p { font-size: 11px; color: var(--cyan); }
.sh-list ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }

/* мобильная колонка маршрута: линия слева */
@media (max-width: 899px) {
  .route-start, .route-end { flex-direction: row; align-items: center; padding: 36px var(--pad) 36px 17px; }
  .route-start .mono, .route-end .mono { text-align: left; }
  .station { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 34px var(--pad) 34px 4px; }
  .st-rail { grid-column: 1; grid-row: 1 / span 2; align-items: flex-start; padding-top: 22px; }
  .side-l .st-card, .side-r .st-card { grid-column: 2; grid-row: 1; }
  .side-l .st-vis, .side-r .st-vis { grid-column: 2; grid-row: 2; margin-top: 22px; }
  .st-node, .st-node.big { width: 40px; height: 40px; font-size: 12px; }
  .st-date { writing-mode: vertical-rl; padding: 7px 3px; }
  .st-card { padding: 22px 18px 20px; }
  .st-card::before { left: 18px; }
  .chapter { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; min-height: 0; padding: 16vh var(--pad) 12vh 4px; }
  .ch-rail { grid-column: 1; }
  .ch-r .ch-copy, .ch-l .ch-copy { grid-column: 2; text-align: left; }
  .ch-l .ch-lead { margin-left: 0; }
  .ch-num { top: 6%; font-size: 42vw; }
  .ch-r .ch-num, .ch-l .ch-num { left: auto; right: 10px; }
  .ch-r .ch-bg::before, .ch-l .ch-bg::before { background: linear-gradient(90deg, rgba(6, 16, 30, .7), rgba(6, 16, 30, .35)); }
  .flagship { padding-top: 40px; }
  .fl-top { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 26px; padding: 0 var(--pad) 0 4px; }
  .fl-col { display: contents; }
  .fl-top .st-rail { grid-column: 1; grid-row: 1; padding-top: 0; }
  .fl-title { grid-column: 2; grid-row: 1; }
  .fl-side { grid-column: 2; grid-row: 2; }
  .fl-feats-a { grid-column: 2; grid-row: 3; }
  .fl-feats-b { grid-column: 2; grid-row: 4; margin-top: -26px; }
  .dev-phone:not(.ph-over) { width: min(250px, 70%); }
}

/* ---------- как я это делаю ---------- */
.how-wrap { position: relative; }
/* без горизонтальной ленты (reduced motion, низкий экран) пункты идут сеткой в несколько рядов — линия через один ряд не нужна */
.how-track { display: none; position: absolute; left: 22px; right: 0; top: 21px; height: 2px; background: linear-gradient(90deg, var(--amber), rgba(255, 181, 71, .15)); transform-origin: 0 50%; }
.how-line { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.how-step { min-width: 0; }
.how-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); color: var(--amber); font-size: 13px; font-weight: 600; margin-bottom: 22px; box-shadow: 0 0 0 6px var(--bg); }
.how-step h3 { font-size: 19px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.how-step p { font-size: 15px; line-height: 1.55; color: var(--soft); }
.how-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--soft); }
/* горизонтальная лента: секция закреплена, лента едет влево по мере прокрутки (app.js) */
.how-h { overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: max(96px, 10vh); padding-bottom: 6vh; }
.how-h .how-wrap { width: max-content; }
.how-h .how-wrap::before { content: ""; position: absolute; left: 22px; right: 0; top: 21px; height: 2px; background: var(--line-2); }
.how-h .how-track { display: block; background: var(--amber); }
.how-h .how-line { display: flex; gap: 52px; }
.how-h .how-step { flex: none; width: clamp(270px, 22vw, 330px); }
.how-h .how-step > :not(.how-n) { opacity: .38; transition: opacity .4s; }
.how-h .how-step.on > :not(.how-n) { opacity: 1; }
.how-h .how-step:not(.on) .how-n { border-color: var(--line-2); color: var(--muted); }
.how-h .how-n { transition: border-color .4s, color .4s; }
@media (max-width: 999px) {
  .how-line { grid-template-columns: 1fr; gap: 30px; }
  .how-track { display: block; left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--amber), rgba(255, 181, 71, .15)); transform-origin: 50% 0; }
  .how-step { position: relative; padding-left: 66px; }
  .how-n { position: absolute; left: 0; top: -4px; }
}

/* ---------- спасибо ---------- */
.thanks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.th-photo { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); }
.th-photo img { width: 100%; height: auto; }
.th-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 16, 30, .4), transparent 40%); pointer-events: none; }
.th-copy h2 { font-size: clamp(56px, 7vw, 112px); font-weight: 800; line-height: .95; letter-spacing: -.045em; margin: 16px 0 18px; }
.th-lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--soft); max-width: 40ch; }
.th-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.th-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.qr { display: flex; align-items: center; gap: 18px; }
.qr img { width: 150px; height: 150px; padding: 10px; background: #fff; border-radius: 10px; flex: none; }
.qr figcaption { font-size: 13px; color: var(--muted); letter-spacing: .14em; }
@media (max-width: 860px) { .thanks { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .th-actions .btn { width: 100%; } .btn-lg { font-size: 16px; padding: 0 20px; } }

.colophon { flex-basis: 100%; margin-bottom: 14px; }
.colophon p { margin: 0 0 8px; color: var(--soft); }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-transform: none; letter-spacing: .04em; line-height: 1.5; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 26px var(--pad) 30px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); letter-spacing: .12em; }

/* навигатор */
/* навигатор — табличка в шапке: не перекрывает контент */
.hud { display: none; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; height: 34px; margin-left: 8px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(6, 16, 30, .7); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; white-space: nowrap; }
.hud.show { opacity: 1; transform: none; }
.hud-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.hud-k { flex: none; font-size: 10px; color: var(--cyan); letter-spacing: .16em; }
.hud-n { min-width: 0; font: 600 14px/1.3 var(--f); color: var(--amber); text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.hud-s { flex: 0 10000 auto; min-width: 0; font-size: 10px; color: var(--muted); letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1180px) { .hud { display: flex; } }
@media (max-width: 1439px) { .hud-k { display: none; } }
.load-err { padding: 60px var(--pad); text-align: center; color: var(--amber); }

/* ---------- режим презентации ---------- */
html.presenting { overflow: hidden; }
html.presenting main, html.presenting .nav, html.presenting .foot, html.presenting .hud { visibility: hidden; }
.pres { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow: hidden; touch-action: none; outline: none; user-select: none; -webkit-user-select: none; }
.pres[hidden] { display: none; }
.pres.idle, .pres.idle * { cursor: none !important; }
.p-world { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.p-world-in { position: absolute; top: 0; left: 0; width: 260%; height: 100%; will-change: transform; }
.p-world-in svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.p-world-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(18, 38, 61, .7) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 38, 61, .7) 1px, transparent 1px); background-size: 120px 120px; }
.p-world .iso { stroke: rgba(59, 224, 255, .12); }
.p-world .iso-major { stroke: rgba(59, 224, 255, .2); }
.p-world::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(6, 16, 30, .75) 100%); }
.p-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; margin: -540px 0 0 -960px; transform: scale(var(--s, 1)); color: var(--text); }
.p-slide { position: absolute; inset: 0; padding: 80px 100px 124px; opacity: 0; visibility: hidden; --k: 1; }
.p-slide.on { opacity: 1; visibility: visible; }
.p-slide.leaving { visibility: visible; }
.p-slide .eyebrow { font-size: 22px; gap: 14px; }
.p-slide .eyebrow .dot { width: 12px; height: 12px; }
.p-head h2 { font-size: calc(70px * var(--k)); font-weight: 800; line-height: 1; letter-spacing: -.035em; margin-top: 16px; }
.fit-c { flex: none; min-width: 0; }
/* титул */
.p-title { padding: 0; display: flex; align-items: center; justify-content: flex-end; }
.pt-bg { position: absolute; inset: 0; overflow: hidden; }
.pt-bg img, .pt-topo, .pt-shade { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.pt-bg img { object-fit: cover; object-position: 50% 0; }
.pt-topo { opacity: .8; }
.pt-shade { background: linear-gradient(90deg, transparent 44%, rgba(6, 16, 30, .8) 60%, rgba(6, 16, 30, .92) 100%), linear-gradient(0deg, rgba(6, 16, 30, .95) 0, transparent 22%); }
.pt-copy { position: relative; z-index: 2; width: 790px; margin: 0 100px 40px 0; }
.pt-name { font-size: 140px; font-weight: 800; line-height: .9; letter-spacing: -.04em; margin: 26px 0 30px; }
.pt-name span { display: block; }
.pt-name span:first-child { font-weight: 200; letter-spacing: -.02em; }
.pt-role { font-size: 40px; font-weight: 300; line-height: 1.25; }
.pt-role b { color: var(--amber); font-weight: 700; }
.pt-lead { font-size: 30px; line-height: 1.38; color: var(--soft); margin-top: 20px; }
.pt-qr { display: flex; align-items: center; gap: 26px; margin-top: 44px; }
.pt-qr img { width: 150px; height: 150px; padding: 10px; background: #fff; border-radius: 12px; }
.pt-qr b { display: block; font: 600 32px/1.2 var(--m); color: var(--text); }
.pt-qr span { display: block; font-size: 28px; color: var(--muted); }
/* цифры */
.p-stats { display: flex; flex-direction: column; }
.pst-grid { flex: 1; min-height: 0; margin-top: 30px; display: flex; flex-direction: column; justify-content: center; }
.pst-grid .fit-c { display: grid; grid-template-columns: 930px minmax(0, 1fr); gap: 60px; align-items: center; }
.pst-chart { padding: 26px 28px 22px; }
.pst-chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 12px; }
.pst-k { flex-basis: 100%; font-size: 18px; color: var(--cyan); letter-spacing: .16em; }
.pst-chart figcaption b { font-size: 32px; font-weight: 700; }
.pst-sum { font-size: 24px; color: var(--amber); }
.pst-chart svg { width: 100%; height: auto; }
.pst-note { font-size: 28px; line-height: 1.3; color: var(--soft); margin-top: 12px; }
.pst-src { font-size: 20px; color: var(--muted); margin-top: 8px; }
.pst-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 34px; }
.pst-nums li { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 2px solid var(--line-2); min-width: 0; }
.pst-nums b { font: 700 calc(52px * var(--k))/1 var(--m); color: var(--text); white-space: nowrap; }
.pst-nums .amb b { color: var(--amber); }
.pst-nums span { font-size: 28px; line-height: 1.22; color: var(--soft); }
.pst-grid.no-chart .fit-c { grid-template-columns: 1fr; }
.pst-grid.no-chart .pst-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* проект */
.p-proj { display: grid; grid-template-columns: 820px minmax(0, 1fr); column-gap: 90px; align-items: center; }
.ps-text { position: relative; z-index: 1; height: 876px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ps-st { display: flex; align-items: center; gap: 20px; font-size: 22px; color: var(--muted); letter-spacing: .14em; margin-bottom: calc(26px * var(--k)); }
.ps-node { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--amber); color: var(--amber); font-size: 20px; box-shadow: 0 0 0 9px rgba(255, 181, 71, .12), 0 0 34px rgba(255, 181, 71, .35); }
.ps-name { font-size: calc(92px * var(--k)); font-weight: 800; line-height: .98; letter-spacing: -.04em; margin-bottom: calc(20px * var(--k)); overflow-wrap: anywhere; }
.ps-tag { font-size: calc(40px * var(--k)); font-weight: 300; line-height: 1.2; color: #D2E2F4; margin-bottom: calc(32px * var(--k)); }
.ps-feats { list-style: none; margin: 0 0 calc(34px * var(--k)); padding: 0; display: grid; gap: calc(16px * var(--k)); }
.ps-feats li { position: relative; padding-left: 46px; font-size: max(28px, calc(30px * var(--k))); line-height: 1.3; }
.ps-feats li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 22px; height: 4px; border-radius: 2px; background: var(--pc, var(--amber)); }
.ps-num { display: flex; align-items: center; gap: 28px; padding-top: calc(26px * var(--k)); border-top: 2px dashed var(--line-2); }
.ps-num b { flex: none; font: 700 calc(84px * var(--k))/1 var(--m); color: var(--amber); white-space: nowrap; letter-spacing: -.02em; }
.ps-num span { font-size: 28px; line-height: 1.25; color: var(--soft); }
.ps-nums2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: calc(26px * var(--k)); border-top: 2px dashed var(--line-2); }
.ps-nums2 div { display: flex; flex-direction: column; gap: 8px; }
.ps-nums2 b { font: 700 calc(64px * var(--k))/1 var(--m); color: var(--amber); white-space: nowrap; }
.ps-nums2 span { font-size: 28px; line-height: 1.22; color: var(--soft); }
.ps-vis { position: relative; z-index: 1; height: 876px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.p-slide .vis { gap: 0; }
.p-slide .vis-frame, .p-slide .dev-browser, .p-slide .dev-sheet { max-width: none; }
.p-slide .br-bar { height: 42px; padding: 0 18px; gap: 9px; }
.p-slide .br-bar i { width: 13px; height: 13px; }
.p-slide .br-url { font-size: 17px; padding: 5px 14px; }
.p-slide .dev-browser { border-radius: 14px; box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(59, 224, 255, .08); }
.p-slide .vis-phone .vis-frame { gap: 56px; align-items: flex-start; }
.p-slide .dev-phone { width: 330px; border-radius: 52px; padding: 12px; }
.p-slide .dev-phone .ph-screen { border-radius: 40px; }
.p-slide .ph-second { margin-top: 110px; }
.p-slide .ph-over { width: 24%; border-radius: 28px; padding: 7px; }
.p-slide .ph-over .ph-screen { border-radius: 21px; }
.p-slide .dev-back { position: absolute; inset: 0; z-index: 0; transform: translate(40px, -36px) rotate(3deg); opacity: .5; }
.p-slide .dev-back .sh-label { display: none; }
.p-slide .vis-sheet .vis-frame > .dev-sheet { z-index: 1; }
.p-slide .sh-label { font-size: 16px; }
.p-slide .dev-phone.illus { width: 370px; }
.p-slide .chat-head { padding: 56px 18px 16px; gap: 14px; }
.p-slide .ava { width: 46px; height: 46px; font-size: 16px; }
.p-slide .chat-t b { font-size: 20px; }
.p-slide .chat-t small { font-size: 15px; }
.p-slide .chat-body { gap: 12px; padding: 16px; }
.p-slide .bub { font-size: 19px; padding: 12px 15px; border-radius: 20px 20px 20px 6px; }
.p-slide .bub:nth-child(even) { border-radius: 20px 20px 6px 20px; }
.p-slide .dev-flow { max-width: none; padding: 30px; }
.p-slide .fl-l { font-size: 20px; }
.p-slide .fl-cap { display: none; }
.pf-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #050D18; }
.pf-city { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: .75; }
.pf-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 13, 24, .97) 0, rgba(5, 13, 24, .9) 40%, rgba(5, 13, 24, .45) 62%, rgba(5, 13, 24, .55) 100%), linear-gradient(0deg, rgba(5, 13, 24, .9) 0, transparent 20%); }
/* функции флагмана */
.p-fg { display: flex; flex-direction: column; justify-content: center; }
.pf-grid { flex: 0 1 auto; min-height: 0; margin-top: 64px; display: flex; flex-direction: column; }
.pf-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 56px; align-items: start; }
.pf-col { border-top: 3px solid var(--amber); padding-top: 24px; min-width: 0; }
.pf-n { font-size: 20px; color: var(--amber); letter-spacing: .16em; }
.pf-col h3 { font-size: calc(40px * var(--k)); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 calc(24px * var(--k)); }
.pf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(18px * var(--k)); }
.pf-col li { position: relative; padding-left: 32px; font-size: max(28px, calc(29px * var(--k))); line-height: 1.28; color: #D2E2F4; }
.pf-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 16px; height: 4px; border-radius: 2px; background: var(--amber); }
/* как */
.p-how { display: flex; flex-direction: column; justify-content: center; }
.ph-list { flex: 0 1 auto; min-height: 0; margin-top: 72px; display: flex; flex-direction: column; }
.ph-list ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 64px 44px; }
/* линия — отрезками от станции к соседней в том же ряду (рядов до двух, в ряду до 6 — см. sHow) */
.ph-list li::before { content: ""; position: absolute; left: 30px; right: -44px; top: 30px; height: 3px; background: linear-gradient(90deg, var(--amber), rgba(255, 181, 71, .45)); }
.ph-list li:nth-child(6n)::before, .ph-list li:last-child::before { display: none; }
.ph-list li { position: relative; min-width: 0; }
.ph-n { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--bg); border: 3px solid var(--amber); color: var(--amber); font-size: 22px; margin-bottom: 30px; box-shadow: 0 0 0 10px var(--bg); }
.ph-list .ph-cmds { margin-top: 14px; font-size: 24px; line-height: 1.5; color: var(--amber); text-transform: none; letter-spacing: .02em; }
.ph-list h3 { font-size: calc(34px * var(--k)); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; margin-bottom: 16px; }
.ph-list p { font-size: 28px; line-height: 1.3; color: var(--soft); }
/* спасибо */
.p-thanks { display: grid; grid-template-columns: 800px minmax(0, 1fr); column-gap: 100px; align-items: center; }
.pth-photo { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .9); }
.pth-photo img { width: 100%; height: auto; }
.pth-copy h2 { font-size: 130px; font-weight: 800; line-height: .92; letter-spacing: -.05em; margin: 22px 0 22px; }
.pth-lead { font-size: 32px; line-height: 1.45; color: var(--soft); }
.pth-tg { display: inline-flex; align-items: center; gap: 18px; margin-top: 26px; font-size: 54px; font-weight: 700; color: var(--amber); text-decoration: none; }
.pth-tg svg { width: 54px; height: 54px; fill: currentColor; flex: none; }
.pth-qr { display: flex; align-items: center; gap: 34px; margin-top: 40px; }
.pth-qr img { width: 260px; height: 260px; padding: 18px; background: #fff; border-radius: 16px; flex: none; }
.pth-qr p { font: 500 28px/1.4 var(--m); color: var(--muted); }
.pth-qr b { display: block; color: var(--text); font-size: 34px; }
/* полоса-маршрут внизу */
.p-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; align-items: center; gap: 34px; padding: 0 60px; border-top: 1px solid rgba(27, 53, 84, .7); background: linear-gradient(0deg, rgba(6, 16, 30, .92), rgba(6, 16, 30, .55)); z-index: 5; }
.p-count { font-size: 24px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-count b { color: var(--amber); font-weight: 700; }
.p-track { position: relative; flex: 1; height: 26px; }
.p-rail { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); }
.p-fill { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 14px rgba(255, 181, 71, .55); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.p-dot { position: absolute; top: 8px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.p-dot.ch { width: 14px; height: 14px; top: 6px; margin-left: -7px; border-color: var(--cyan); }
.p-dot.done { background: var(--amber); border-color: var(--amber); }
.p-mark-w { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.p-mark { position: absolute; left: -12px; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: #FFF3DC; box-shadow: 0 0 0 6px rgba(255, 181, 71, .32), 0 0 24px var(--amber); }
.p-name { width: 420px; font-size: 22px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.p-keys { font-size: 18px; color: var(--muted); white-space: nowrap; }
.p-close { position: absolute; top: 16px; right: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 16, 30, .75); color: var(--text); cursor: pointer; transition: opacity .3s; }
.p-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.p-close .mono { font-size: 11px; color: var(--muted); }
.pres.idle .p-close { opacity: 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .r-marker { display: none; }
  .hr-pulse, .r-m-pulse, .cm-pulse { opacity: 0; }
  .p-fill, .p-mark-w { transition-duration: .2s !important; }
}
