/* ==========================================================================
   ОТЖТ · otgt.ru — лендинг
   Палитра: синий эмблемы техникума + красный ОАО «РЖД» на «ночном» фоне
   ========================================================================== */

:root {
  --night: #060A1C;
  --navy: #0B1233;
  --navy-2: #121B47;
  --navy-3: #1A2560;
  --blue: #1F3FD8;
  --blue-hi: #4D6BFF;
  --blue-soft: #DCE3FF;
  --red: #E21A1A;
  --red-hi: #FF3A3A;
  --red-deep: #B30F14;
  --amber: #FFB547;
  --paper: #F3F4F8;
  --paper-2: #E8EAF2;
  --white: #FFFFFF;
  --ink: #0B1023;
  --ink-2: #2B3250;
  --muted: #5D6687;
  --muted-light: #A9B1D3;
  --line: rgba(255, 255, 255, .12);
  --line-dark: rgba(11, 16, 35, .12);

  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;

  --pad: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
::selection { background: var(--red); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- полосы прокрутки: путь со шпалами и красный «поезд» ---------- */
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, transparent 2px, #2A346E 2px 3px, transparent 3px calc(100% - 3px), #2A346E calc(100% - 3px) calc(100% - 2px), transparent calc(100% - 2px)),
    repeating-linear-gradient(180deg, #0D1438 0 4px, #18225A 4px 6px),
    var(--night);
}
::-webkit-scrollbar-thumb {
  border-radius: 10px; border: 3px solid transparent; background-clip: padding-box;
  background-color: var(--red);
  background-image: linear-gradient(180deg, #FF5A5A, var(--red) 45%, var(--red-deep));
}
::-webkit-scrollbar-thumb:hover { background-color: var(--red-hi); }
::-webkit-scrollbar-corner { background: var(--night); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--red) var(--night); scrollbar-width: thin; }
}
.sp-dialog__panel::-webkit-scrollbar-track { background: var(--paper-2); }
.table-wrap::-webkit-scrollbar-track, .history__viewport::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- типографика ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.h2--sm { font-size: clamp(26px, 3.6vw, 52px); }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.02em; line-height: 1.2; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: clamp(18px, 2.5vw, 30px);
}
.label__num { color: var(--red); }
.label__slash { color: var(--red); letter-spacing: -.1em; font-weight: 800; }
.label--light { color: var(--muted-light); }

.footnote { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.footnote--light { color: rgba(255,255,255,.6); }

/* ---------- кнопки ---------- */
.btn {
  --bg: transparent; --fg: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, rgba(255,255,255,.12));
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--red { --bg: var(--red); --fg: #fff; --hover: var(--red-deep); box-shadow: 0 10px 30px -10px rgba(226,26,26,.65); }
.btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.35); --hover: rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.btn--line { --fg: var(--ink); border-color: var(--line-dark); --hover: var(--paper-2); }
.btn--white { --bg: #fff; --fg: var(--ink); --hover: var(--blue-soft); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 12.5px; }
.btn--lg { min-height: 62px; padding: 0 30px; font-size: 15px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; color: var(--red); border-bottom: 1.5px solid currentColor; padding-top: 10px; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 40px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--muted-light); }

/* ---------- прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: var(--night);
  clip-path: inset(0 0 0 0);
}
html:not(.js) .preloader { display: none; }
.preloader__inner { display: grid; justify-items: center; gap: 14px; }
.preloader__emblem { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 60px rgba(31,63,216,.6); animation: pl-spin 1.6s var(--ease) both; }
.preloader__title { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .2em; }
.preloader__rail { position: relative; width: 220px; height: 10px; background:
  linear-gradient(var(--muted) 0 0) top/100% 2px no-repeat,
  linear-gradient(var(--muted) 0 0) bottom/100% 2px no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 3px, transparent 3px 12px); }
.preloader__rail span { position: absolute; left: 0; top: -2px; height: 14px; width: 0; background: var(--red); box-shadow: 0 0 18px var(--red); border-radius: 2px; animation: pl-run 1.1s var(--ease) forwards; }
.preloader__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
@keyframes pl-spin { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pl-run { to { width: 100%; } }
.preloader.is-done { pointer-events: none; }

/* ---------- прогресс ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 210; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-hi), var(--red)); }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 200; height: var(--header-h);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(6,10,28,.72); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: .06em; }
.brand__text small { font-size: 11.5px; color: var(--muted-light); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.82); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.04); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--night);
  padding: calc(var(--header-h) + 24px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 36px);
  transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 7vw, 34px); text-transform: uppercase; letter-spacing: -.02em; }
.mobile-menu nav a i { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.mobile-menu__foot { display: grid; gap: 14px; }
.mobile-menu__foot svg { width: 18px; height: 18px; }
.mobile-menu__mail { color: var(--muted-light); text-align: center; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 30px) 0 clamp(28px, 4vw, 48px);
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 70% 52%, #1A2A8A 0%, rgba(26,42,138,0) 55%),
    linear-gradient(180deg, #050816 0%, #0A1240 45%, #0B1233 62%, #060A1C 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,10,28,.0) 40%, rgba(6,10,28,.75) 100%),
    linear-gradient(90deg, rgba(6,10,28,.85) 0%, rgba(6,10,28,.25) 55%, rgba(6,10,28,0) 100%); }
.hero__grain { position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Сетка первого экрана. Телефон: всё столбиком; планшет: табличка машиниста справа от плашки;
   компьютер: табло справа напротив заголовка, середина свободна — там видны пути */
.hero__content {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "eyebrow" "title" "lead" "board" "stats";
  row-gap: clamp(22px, 3vw, 40px); column-gap: clamp(28px, 3.5vw, 56px);
}
.hero__eyebrow { grid-area: eyebrow; }
.hero__title { grid-area: title; }
.hero__lead { grid-area: lead; }
.board { grid-area: board; }
.hud { grid-area: hud; }
.hero__stats { grid-area: stats; }

/* табличка машиниста — как локомотивный светофор: огонь ближайшего светофора и скорость */
.hud {
  justify-self: end; align-self: center;
  display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light);
  background: rgba(5,8,22,.62); border: 1px solid var(--line); border-radius: 40px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hud__lamp { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2BE27A; box-shadow: 0 0 10px #2BE27A; transition: background .3s, box-shadow .3s; }
.hud[data-st="warn"] .hud__lamp { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.hud[data-st="brake"] .hud__lamp { background: linear-gradient(180deg, var(--red-hi) 50%, var(--amber) 50%); box-shadow: 0 0 10px rgba(255,110,60,.9); animation: blink .6s steps(2) infinite; }
.hud[data-st="stop"] .hud__lamp { background: var(--red-hi); box-shadow: 0 0 12px var(--red-hi); }
.hud__state { min-width: calc(25ch + 2em); white-space: nowrap; }
.hud__speed { display: inline-flex; align-items: baseline; gap: 5px; padding-left: 12px; border-left: 1px solid var(--line); }
.hud__speed b { font-size: 18px; color: #fff; min-width: 2.2ch; text-align: right; letter-spacing: 0; }
.hud__light { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: -4px -6px -4px 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255,214,140,.55); background: rgba(255,214,140,.16); color: #FFE1A6; box-shadow: 0 0 14px rgba(255,214,140,.35); transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.hud__light svg { width: 18px; height: 18px; }
.hud__light:hover { background: rgba(255,214,140,.28); }
.hud__light[aria-pressed="false"] { color: var(--muted-light); border-color: var(--line); background: transparent; box-shadow: none; }
.hud__light[aria-pressed="false"] svg path + path { opacity: .25; }
html:not(.js) .hud { display: none; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 40px; background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2BE27A; box-shadow: 0 0 0 0 rgba(43,226,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43,226,122,0); } 100% { box-shadow: 0 0 0 0 rgba(43,226,122,0); } }

.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(17px, 5.8vw, 104px); line-height: .98; letter-spacing: -.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title .outline {
  color: transparent;
  background: linear-gradient(100deg, #7F95FF 0%, #FFFFFF 38%, #AAB9FF 55%, #4D6BFF 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shine 7s ease-in-out infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }
.hero__title .red { color: var(--red); text-shadow: 0 0 60px rgba(226,26,26,.35); }

.hero__lead p { max-width: 52ch; font-size: clamp(16px, 1.35vw, 19px); color: rgba(255,255,255,.82); }
.hero__lead b { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero__stats li { padding: 18px 18px 0 0; display: grid; gap: 2px; }
.hero__stats li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero__stats b { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.03em; }
.hero__stats span { font-size: 13.5px; color: var(--muted-light); }

.hero__scroll { position: absolute; right: var(--pad); bottom: 24px; display: none; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--red), transparent); animation: scrollcue 1.8s infinite var(--ease); transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- табло ---------- */
.board {
  /* --bf — размер букв в строках; ширины колонок считаются от него, чтобы шапка и строки совпадали */
  --bf: clamp(11px, .9vw, 12.5px);
  background: linear-gradient(180deg, rgba(11,15,31,.9), rgba(5,7,15,.94));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  padding: 12px 14px 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  font-family: var(--font-mono); text-transform: uppercase;
}
.board__head { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: .14em; color: var(--muted-light); padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,.12); }
.board__clock { color: var(--amber); font-weight: 700; letter-spacing: .06em; font-size: 13px; text-shadow: 0 0 10px rgba(255,181,71,.6); }
.board__cols, .board__rows li { display: grid; grid-template-columns: calc(var(--bf) * 1.2) calc(var(--bf) * 5.1) minmax(0, 1fr) calc(var(--bf) * 5.6); gap: 8px; align-items: center; }
.board__cols { font-size: 9.5px; letter-spacing: .1em; color: rgba(255,255,255,.45); padding: 7px 0 3px; }
.board__cols span:last-child { justify-self: end; white-space: nowrap; }
.board__rows li { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: var(--bf); font-weight: 700; color: var(--amber); text-shadow: 0 0 8px rgba(255,181,71,.45); min-height: 26px; }
.board__rows .cell { display: flex; white-space: nowrap; overflow: hidden; }
.board__rows .cell--n { color: #fff; text-shadow: none; }
.board__rows .cell--code { color: #9DB2FF; text-shadow: 0 0 8px rgba(77,107,255,.45); }
.board__rows .cell--time { justify-content: flex-end; }
.flap { display: inline-block; width: 1ch; text-align: center; position: relative; }
.flap.is-flipping { color: #fff; }
.board__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 10.5px; letter-spacing: .1em; color: var(--muted-light); }
.blink { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker-wrap { position: relative; z-index: 3; overflow: hidden; padding-block: 40px; margin-block: -62px; pointer-events: none; }
.ticker { background: var(--red); color: #fff; overflow: hidden; transform: rotate(-1.6deg) scale(1.04); box-shadow: 0 20px 50px -20px rgba(226,26,26,.6); }
.ticker__track { display: flex; width: max-content; gap: 28px; padding: 18px 0; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 32px); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.ticker i { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.4vw, 32px); opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--navy); }
.section--blue { background: linear-gradient(160deg, #1530B8 0%, #10208A 45%, #0B1555 100%); overflow: hidden; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 980px; }
.section-head--row { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: end; gap: 32px; }
.section-head__lead { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--muted-light); max-width: 60ch; }
.section--light .section-head__lead { color: var(--muted); }
.section--blue .section-head__lead { color: rgba(255,255,255,.78); }

/* ---------- ABOUT ---------- */
.about { padding-top: clamp(110px, 13vw, 190px); }
.statement {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(22px, 3.5vw, 50px); line-height: 1.16; max-width: 22em;
}
.statement .w { opacity: 1; }
.js .statement .w { opacity: .14; transition: opacity .2s linear; }
.statement .w.is-on { opacity: 1; }
.statement .w--accent { color: var(--red); }

.about__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(48px, 7vw, 100px); }
.about__media { position: relative; padding-bottom: clamp(40px, 6vw, 70px); }
.about__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; width: 86%; background: var(--paper-2); }
.about__photo img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 30%; }
.about__sign { position: absolute; right: 0; bottom: 0; width: 64%; background: #fff; border-radius: 12px; padding: 6px 6px 0; box-shadow: 0 30px 60px -28px rgba(11,16,35,.5); }
.about__sign img { width: 100%; aspect-ratio: 1015 / 267; object-fit: cover; border-radius: 8px; }
.about__sign figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.about__sign svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.about__text { display: grid; gap: 18px; font-size: 17.5px; color: var(--ink-2); }
.about__text b { color: var(--ink); }
.about__text .link-arrow { justify-self: start; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 100px); border-top: 1.5px solid var(--ink); }
.stats li { padding: 26px 22px 0 0; display: grid; gap: 8px; align-content: start; }
.stats li + li { padding-left: 22px; border-left: 1px solid var(--line-dark); }
/* размер чисел — от ширины колонки, а не окна: самое длинное «14 000+» (≈4,7em) всегда помещается в свою четверть */
.stats { container-type: inline-size; }
.stats b {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--ink); white-space: nowrap;
  font-size: clamp(26px, 3.4vw, 54px);
  font-size: min(68px, calc((25cqi - 44px) / 4.85));
}
.stats li:nth-child(4) b { color: var(--red); }
.stats li > span { color: var(--muted); font-size: 15px; max-width: 22ch; }

.awards { margin-top: clamp(56px, 7vw, 100px); }
.awards__title { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.awards__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.awards__list li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.awards__list li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11,16,35,.35); border-color: rgba(226,26,26,.35); }
.awards__list svg { width: 26px; height: 26px; flex: none; color: var(--red); }
.awards__list div { display: grid; gap: 2px; }
.awards__list b { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.awards__list span { font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* ---------- PROGRAMS ---------- */
.programs { background:
  radial-gradient(60% 40% at 90% 0%, rgba(31,63,216,.35), transparent 70%),
  radial-gradient(50% 40% at 0% 100%, rgba(226,26,26,.12), transparent 70%),
  var(--navy); }
.programs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.sp-card {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transform-style: preserve-3d; transition: border-color .4s, box-shadow .5s var(--ease);
  outline: none;
}
.sp-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.sp-card:hover, .sp-card:focus-visible { border-color: rgba(255,255,255,.28); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.sp-card:hover::after, .sp-card:focus-visible::after { transform: scaleX(1); }
.sp-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.sp-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,51,0) 40%, rgba(11,18,51,.85) 100%); }
.sp-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.sp-card:hover .sp-card__media img { transform: scale(1.12); filter: saturate(1.1); }
.sp-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.sp-card__top { display: flex; justify-content: space-between; align-items: center; }
.sp-card__code { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--amber); padding: 4px 9px; border: 1px solid rgba(255,181,71,.35); border-radius: 4px; background: rgba(255,181,71,.07); }
.sp-card__icon { width: 30px; height: 30px; color: var(--blue-hi); transition: color .4s, transform .6s var(--ease); }
.sp-card:hover .sp-card__icon { color: var(--red-hi); transform: rotate(-8deg) scale(1.1); }
.sp-card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.18; letter-spacing: -.02em; }
.sp-card__text { color: var(--muted-light); font-size: 15.5px; }
.sp-card .chips { margin-top: auto; padding-top: 6px; }
.sp-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.sp-card__more svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.sp-card:hover .sp-card__more svg { transform: translateX(6px); }

/* ---------- DIALOG ---------- */
.sp-dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: var(--ink); }
.sp-dialog::backdrop { background: rgba(4,7,20,.6); backdrop-filter: blur(6px); }
.sp-dialog[open] { display: flex; justify-content: flex-end; }
.sp-dialog__panel {
  position: relative; width: min(780px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); box-shadow: -40px 0 80px -30px rgba(0,0,0,.6);
}
.sp-dialog__close { position: fixed; top: 16px; right: 16px; z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: transform .4s var(--ease), background .3s; }
.sp-dialog__close:hover { transform: rotate(90deg); background: var(--red); }
.sp-dialog__close svg { width: 22px; height: 22px; }
.sp-dialog__media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--navy); }
.sp-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.sp-dialog__content { padding: clamp(22px, 4vw, 44px); display: grid; gap: 18px; }
.sp-dialog__code { justify-self: start; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: #fff; background: var(--red); padding: 5px 10px; border-radius: 4px; letter-spacing: .06em; }
.sp-dialog__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.sp-dialog__body { display: grid; gap: 22px; color: var(--ink-2); }
.sp-dialog__body .sp-d__full { display: none; }
.sp-dialog__body h4 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: -6px; }
.sp-d__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.sp-d__facts div { background: #fff; padding: 14px 16px; }
.sp-d__facts dt { font-size: 12.5px; color: var(--muted); }
.sp-d__facts dd { font-weight: 700; color: var(--ink); }
.sp-d__notes { display: grid; gap: 10px; }
.sp-d__notes li { position: relative; padding-left: 22px; }
.sp-d__notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }
.sp-d__gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sp-d__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.sp-dialog__cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }

/* маршрут карьеры: путь на щебёночной подложке, станции, поезд */
.route {
  --tw: 40px;                         /* ширина пути */
  --tx: 12px;                         /* отступ пути от края карточки */
  --t0: 26px; --t1: 26px;             /* от первой до последней станции (JS уточняет) */
  position: relative; display: grid; padding: 6px 16px 6px calc(var(--tx) + var(--tw) + 16px); counter-reset: st;
  background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
}
.route::before, .route::after { content: ""; position: absolute; pointer-events: none; }
/* путь: щебень, бетонные шпалы, два стальных рельса */
.route::before {
  left: var(--tx); width: var(--tw); top: calc(var(--t0) - 14px); bottom: calc(var(--t1) - 14px);
  border-radius: 12px;
  background:
    linear-gradient(90deg,
      transparent 9px, #4A5172 9px 10px, #A3A9BF 10px 11.5px, #F4F5F9 11.5px 12.5px, #6B7290 12.5px 13.5px, transparent 13.5px,
      transparent 26.5px, #4A5172 26.5px 27.5px, #A3A9BF 27.5px 29px, #F4F5F9 29px 30px, #6B7290 30px 31px, transparent 31px),
    repeating-linear-gradient(180deg, transparent 0 4px, #8F96AD 4px 5px, #C6CAD7 5px 9px, #A2A8BC 9px 10px, transparent 10px 15px)
      center / 34px 100% no-repeat,
    radial-gradient(circle at 30% 40%, rgba(11,16,35,.12) 0 1px, transparent 1.6px) 0 0 / 6px 6px,
    radial-gradient(circle at 70% 70%, rgba(11,16,35,.09) 0 1px, transparent 1.6px) 0 0 / 7px 5px,
    linear-gradient(90deg, #DADDE7, #EDEFF4 50%, #DADDE7);
  box-shadow: inset 0 0 0 1px rgba(11,16,35,.05);
}
/* пройденный маршрут — светящаяся линия по оси пути */
.route::after {
  left: calc(var(--tx) + var(--tw) / 2 - 3px); width: 6px; top: var(--t0); bottom: var(--t1);
  border-radius: 6px; background: linear-gradient(180deg, #FF5050, var(--red));
  box-shadow: 0 0 10px rgba(226,26,26,.55);
  transform-origin: top; transform: scaleY(var(--route-p, 1));
}
.route::after { z-index: 0; }
.route li { position: relative; z-index: 1; padding: 14px 52px 14px 4px; font-weight: 600; color: var(--ink); counter-increment: st; line-height: 1.35; }
.route li + li { border-top: 1px dashed rgba(11,16,35,.12); }
/* станция по центру пути */
.route li::before {
  content: ""; position: absolute; z-index: 2; top: 50%;
  left: calc(var(--tx) + var(--tw) / 2 - (var(--tx) + var(--tw) + 16px) - 11px);
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; box-sizing: border-box;
  background: #fff; border: 4px solid var(--ink); box-shadow: 0 2px 6px rgba(11,16,35,.28);
  transform: scale(var(--st-s, 1)); transition: border-color .3s, background .3s;
}
.route li.is-passed::before { border-color: var(--red); }
.route li:first-of-type::before { background: var(--red); border-color: #fff; box-shadow: 0 0 0 3px var(--red), 0 4px 10px rgba(226,26,26,.4); }
.route li:last-of-type::before { width: 30px; height: 30px; margin: -15px 0 0 -4px; background: var(--ink); border: 6px solid #fff; box-shadow: 0 0 0 3px var(--ink), 0 4px 12px rgba(11,16,35,.35); }
.route li:last-of-type.is-passed::before { background: var(--red); box-shadow: 0 0 0 3px var(--red); animation: st-pulse 1.8s ease-out infinite; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 3px var(--red), 0 0 0 0 rgba(226,26,26,.45); } 100% { box-shadow: 0 0 0 3px var(--red), 0 0 0 18px rgba(226,26,26,0); } }
.route li::after { content: counter(st, decimal-leading-zero); position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--muted); padding: 3px 7px; border-radius: 4px; background: var(--paper); }
.route li:first-of-type::after { content: "старт"; color: #fff; background: var(--red); }
.route li:last-of-type { color: var(--red); }
.route li:last-of-type::after { content: "цель"; color: #fff; background: var(--ink); }
.route li:last-of-type.is-passed::after { background: var(--red); }
/* поезд (вид сверху), JS двигает его по станциям */
.route__train { position: absolute; z-index: 3; top: 0; left: calc(var(--tx) + var(--tw) / 2 - 12px); width: 24px; height: 40px; pointer-events: none; display: none; filter: drop-shadow(0 5px 6px rgba(11,16,35,.35)); }
.route__train svg { width: 100%; height: 100%; }
.js .route__train { display: block; }

/* ---------- CAREER / MAP ---------- */
.career__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.career__text { display: grid; gap: 22px; }
.career__text > p { color: var(--ink-2); font-size: 17px; }
.career__perks { display: grid; gap: 10px; }
.career__perks li { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.career__perks b { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; color: var(--red); }
.career__perks span { color: var(--ink-2); }
.map { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(10px, 2vw, 22px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(11,18,51,.7); }
.map::before { content: "Схема: где работают выпускники"; position: absolute; left: 18px; top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.map__svg { width: 100%; height: auto; overflow: visible; }
.ln { stroke-dasharray: var(--len, 1000); stroke-dashoffset: 0; }
.ln--red { stroke: var(--red); }
.ln--blue { stroke: var(--blue-hi); }
.ln--blue2 { stroke: #7F95FF; }
.node circle { fill: var(--navy); stroke: #fff; stroke-width: 4; }
.node--omsk circle { stroke: var(--red); stroke-width: 5; }
.node--omsk .core { fill: var(--red); stroke: none; }
.omsk-glow { animation: glow 2.4s ease-in-out infinite; transform-origin: 620px 280px; }
@keyframes glow { 50% { transform: scale(1.25); opacity: .6; } }
.tr { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.t-city { font-family: var(--font-display); font-size: 19px; font-weight: 600; fill: #fff; }
.t-omsk { font-size: 25px; font-weight: 800; fill: var(--red-hi); letter-spacing: .06em; }
.t-road { font-family: var(--font-body); font-size: 15px; fill: var(--muted-light); }

.partners { margin-top: clamp(60px, 8vw, 110px); }
.partners__title { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.partners__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.partners__list li { min-width: 0; display: grid; place-items: center; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); padding: clamp(12px, 2vw, 22px); aspect-ratio: 2 / 1; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.partners__list li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(11,16,35,.4); }
.partners__list img { width: 100%; height: 100%; max-height: 76px; min-width: 0; object-fit: contain; }
.partners__more { margin-top: 18px; color: var(--muted); max-width: 80ch; }

/* ---------- LABS (bento) ---------- */
.labs { background: linear-gradient(180deg, var(--navy) 0%, #0A1030 100%); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 18vw, 250px); gap: clamp(10px, 1.2vw, 16px); }
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-2); }
.bento__item--xl { grid-column: span 2; grid-row: span 2; }
.bento__item--tall { grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__item img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.bento__item:hover img { filter: brightness(1.08) saturate(1.1); }
.bento__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,10,28,.88)); }
.bento__item figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 2px; transform: translateY(6px); transition: transform .5s var(--ease); }
.bento__item:hover figcaption { transform: none; }
.bento__item figcaption b { font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: -.01em; }
.bento__item figcaption span { font-size: 13.5px; color: var(--muted-light); }

/* ---------- HISTORY ---------- */
.history { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.history__pin { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(80px, 10vh, 120px) 40px; }
.history__head { margin-bottom: clamp(24px, 4vh, 48px); }
.history__head .h2 span { color: var(--red); }
.history__viewport { width: 100%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.history__viewport .h-card { scroll-snap-align: start; scroll-margin-left: var(--pad); }
.history.is-pinned .history__viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.history__track { display: flex; gap: clamp(14px, 1.6vw, 22px); padding-inline: var(--pad); width: max-content; }
.h-card {
  position: relative; flex: none; width: clamp(280px, 26vw, 380px); min-height: clamp(360px, 52vh, 480px);
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.h-card__year { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.h-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; margin-top: auto; }
.h-card p { color: var(--muted-light); font-size: 15px; }
.h-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); filter: sepia(.25) contrast(1.05); }
.h-card--photo h3 { margin-top: 4px; }
.h-card:not(.h-card--photo):not(.h-card--now)::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 34%; height: 30%; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' preserveAspectRatio='xMidYMid meet'%3E%3Cg fill='none' stroke='%234D6BFF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M40 118 92 4M160 118 108 4' stroke='%23E21A1A' stroke-width='3'/%3E%3Cpath d='M30 110h140M44 82h112M56 58h88M66 38h68M75 22h50M82 10h36' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.h-card--war img { aspect-ratio: 16 / 10; object-position: 50% 25%; }
.h-card--war .h-card__year { -webkit-text-stroke-color: var(--red); }
.h-card--now { background: linear-gradient(160deg, #1F3FD8, #10208A); border-color: transparent; }
.h-card--now .h-card__year { color: #fff; -webkit-text-stroke: 0; font-size: clamp(32px, 3.4vw, 50px); }
.h-card--now p { color: rgba(255,255,255,.85); }
.h-card--now .btn { align-self: flex-start; margin-top: 6px; }
.history__rail { position: relative; height: 40px; margin: clamp(26px, 4vh, 44px) var(--pad) 0; }
.history__rail-line { position: absolute; left: 0; right: 0; top: 32px; height: 8px;
  background:
    linear-gradient(rgba(255,255,255,.5) 0 0) top/100% 2px no-repeat,
    linear-gradient(rgba(255,255,255,.5) 0 0) bottom/100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 3px, transparent 3px 14px); }
.history__loco { position: absolute; left: 0; top: 0; width: 100px; height: auto; filter: drop-shadow(0 0 16px rgba(226,26,26,.6)); }

/* ---------- LIFE ---------- */
.life__grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 19vw, 270px); gap: clamp(10px, 1.2vw, 16px); }
.life-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.life-card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.02em; line-height: 1.15; }
.life-card p { font-size: 15px; }
.life-card__icon { width: 34px; height: 34px; margin-bottom: auto; }
.life-card--big { grid-column: span 2; grid-row: span 2; }
.life-card--red { background: var(--red); color: #fff; }
.life-card--blue { background: var(--blue); color: #fff; }
.life-card--dark { background: var(--navy); color: #fff; }
.life-card--wide { grid-column: span 2; }
.life-card--line { background: #fff; border: 1px solid var(--line-dark); color: var(--ink); }
.life-card--line p { color: var(--muted); }
.life-card--line .life-card__icon { color: var(--red); }
.life-card--dark p, .life-card--blue p { color: rgba(255,255,255,.8); }
.life-card--photo { padding: 0; background: var(--navy); color: #fff; }
.life-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.life-card--photo:hover img { transform: scale(1.06); }
.life-card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6,10,28,.82)); }
.life-card__cap { position: relative; z-index: 1; margin-top: auto; padding: 20px; display: grid; gap: 6px; justify-items: start; }
.life-card__cap p { color: rgba(255,255,255,.82); max-width: 40ch; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 40px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }

/* ---------- ADMISSION ---------- */
.admission__bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.035) 60px 61px),
    radial-gradient(50% 40% at 100% 0%, rgba(226,26,26,.35), transparent 70%); }
.admission .container { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 24px 22px 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; align-content: start; backdrop-filter: blur(6px); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -14px; width: 14px; height: 2px; background: rgba(255,255,255,.4); }
.steps__n { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--amber); }
.steps h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.steps p { color: rgba(255,255,255,.78); font-size: 15px; }

.admission__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.perks { display: grid; gap: 18px; align-content: start; }
.perks ul { display: grid; gap: 4px; }
.perks li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 17px; }
.perks svg { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 50%; background: var(--red); color: #fff; }

.docs { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.docs__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.docs__ring { position: relative; width: 58px; height: 58px; flex: none; }
.docs__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.docs__ring circle { fill: none; stroke: var(--paper-2); stroke-width: 4; }
.docs__ring .docs__ring-val { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 106.8; transition: stroke-dashoffset .6s var(--ease); }
.docs__count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; }
.docs__hint { margin: 8px 0 14px; color: var(--muted); font-size: 14px; }
.docs__list { display: grid; gap: 6px; }
.docs__list label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-dark); cursor: pointer; transition: border-color .3s, background .3s; }
.docs__list label:hover { border-color: rgba(31,63,216,.4); }
.docs__list input { position: absolute; opacity: 0; pointer-events: none; }
.docs__list .box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; transition: background .3s, border-color .3s; margin-top: 1px; }
.docs__list .box svg { width: 14px; height: 14px; color: #fff; transform: scale(0); transition: transform .35s var(--ease); }
.docs__list input:checked + .box { background: var(--red); border-color: var(--red); }
.docs__list input:checked + .box svg { transform: scale(1); }
.docs__list input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(226,26,26,.6); }
.docs__list input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }

.places { margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: rgba(6,10,28,.35); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.places__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 40px; background: rgba(255,255,255,.08); }
.tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 40px; font-weight: 600; font-size: 14.5px; color: rgba(255,255,255,.75); transition: background .3s, color .3s; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.places__legend { display: flex; gap: 18px; margin: 16px 0 0; font-size: 13.5px; color: rgba(255,255,255,.75); }
.places__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.places__legend .b { background: #fff; }
.places__legend .p { background: var(--amber); }

/* итог по форме обучения */
.places__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 8px; }
.places__note { flex: 1 1 260px; color: rgba(255,255,255,.75); font-size: 15px; }
.places__total { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; }
.places__total b { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.places__total--b { background: #fff; color: var(--ink); }
.places__total--p { background: rgba(255,181,71,.14); color: var(--amber); border: 1px solid rgba(255,181,71,.35); }

/* таблица (компьютер и планшет) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.places table { width: 100%; border-collapse: collapse; min-width: 560px; }
.places th { text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.2); }
.places td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15.5px; vertical-align: middle; }
.places .c-code { font-family: var(--font-mono); color: var(--amber); white-space: nowrap; font-size: 14px; }
.places .c-seats { white-space: nowrap; }
.places .is-empty { color: rgba(255,255,255,.35); }
.seats { display: inline-flex; align-items: baseline; gap: 8px; }
.seats b { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.seats i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-style: normal; }
.seats__b b { color: #fff; }
.seats__p b { color: var(--amber); font-weight: 600; }
.seats__p::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); font-family: var(--font-display); font-size: 16px; }
.places tbody tr { transition: background .3s; }
.places tbody tr:hover { background: rgba(255,255,255,.05); }

.admission__contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2); }
.admission__contact > div { display: grid; gap: 4px; }
.admission__contact-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.admission__phone { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.03em; transition: color .3s; padding-block: 5px; }
.admission__phone:hover { color: var(--amber); }
.admission__who { color: rgba(255,255,255,.7); font-size: 14.5px; }

/* ---------- TEAM ---------- */
.team { padding-bottom: clamp(50px, 6vw, 90px); }
.team__grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.director { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-2); }
.director img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.director::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50%); }
.team__info { display: grid; gap: 18px; }
.team__role { color: var(--ink-2); font-size: 17.5px; max-width: 56ch; }
.deputies { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; margin-top: 18px; }
.deputies li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.deputies b { font-weight: 700; }
.deputies span { color: var(--muted); font-size: 14.5px; }
.deputies a { font-family: var(--font-mono); font-size: 14px; color: var(--blue); font-weight: 600; justify-self: start; padding: 9px 12px 9px 0; margin-block: -6px -9px; }
.deputies a:hover { color: var(--red); }

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(40px, 5vw, 70px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__list { display: grid; }
.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); letter-spacing: -.015em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary i { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-dark); display: grid; place-items: center; transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s; }
.faq summary i svg { width: 18px; height: 18px; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--red); color: #fff; border-color: var(--red); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 60px 24px 0; color: var(--ink-2); }

/* ---------- CONTACTS ---------- */
.contacts { background: linear-gradient(180deg, var(--navy), var(--night)); }
.contacts .h2 { margin-bottom: clamp(36px, 5vw, 60px); }
.contacts__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); }
.contacts__list { display: grid; gap: 0; align-content: start; }
.contacts__list > li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contacts__list > li > svg { width: 24px; height: 24px; flex: none; color: var(--red); margin-top: 2px; }
.contacts__list div { display: grid; gap: 4px; }
.contacts__list span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.contacts__list a:not(.link-arrow) { font-size: 17px; transition: color .3s; padding-block: 5px; }
.contacts__list a:not(.link-arrow):hover { color: var(--amber); }
.contacts__list b { font-weight: 600; font-size: 17px; }
.contacts__list .link-arrow { justify-self: start; margin-top: 4px; font-size: 15px; }
.contacts__social { gap: 10px !important; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 40px; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.social:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.social svg { width: 22px; height: 22px; color: #fff; }
.social img { height: 22px; width: auto; }
.social span { font-family: var(--font-body) !important; font-size: 15px !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff !important; }
.contacts__map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--navy-2); border: 1px solid var(--line); }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); transition: filter .5s; }
.contacts__map:hover iframe { filter: none; }

/* ---------- FINAL ---------- */
.final { position: relative; overflow: hidden; background: var(--night); padding-top: clamp(90px, 12vw, 170px); }
.final__inner { display: grid; justify-items: center; text-align: center; gap: 26px; position: relative; z-index: 2; }
.final__kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); display: inline-flex; gap: 10px; align-items: center; }
.final__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2BE27A; animation: pulse 2s infinite; }
.final__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 7.4vw, 124px); line-height: .96; letter-spacing: -.05em; display: grid; }
.final__title span:last-child {
  color: transparent;
  background: linear-gradient(100deg, #4D6BFF 0%, #FFFFFF 40%, #FF5A5A 70%, #E21A1A 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shine 6s ease-in-out infinite alternate;
}
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.final__actions svg { width: 20px; height: 20px; }
.final__train { position: relative; margin-top: clamp(50px, 7vw, 90px); height: clamp(90px, 13vw, 170px); }
.train { position: absolute; left: 0; bottom: 16px; height: calc(100% - 16px); width: auto; transform: translateX(-105%); will-change: transform; }
.headlight { filter: drop-shadow(0 0 8px #FFE9A8) drop-shadow(0 0 20px #FFE9A8); }
.final__rails { position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background:
    linear-gradient(#5C6488 0 0) top 2px left/100% 3px no-repeat,
    repeating-linear-gradient(90deg, #262E55 0 10px, transparent 10px 26px) bottom/100% 9px no-repeat; }

/* ---------- FOOTER ---------- */
.footer { background: var(--night); border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted-light); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.footer__brand b { color: #fff; }
.footer__nav, .footer__contacts { display: grid; gap: 0; align-content: start; }
.footer__nav a, .footer__contacts a, .footer__contacts span { padding-block: 7px; }
.footer__up { padding-block: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__contacts a { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer__up { display: inline-flex; align-items: center; gap: 6px; }
.footer__up svg { width: 16px; height: 16px; transform: rotate(-90deg); }

/* ==========================================================================
   Состояния анимаций (только при включённом JS)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(34px); }
.js [data-clip] { clip-path: inset(100% 0 0 0 round var(--radius-lg)); }
.js .hero [data-hero] { opacity: 0; transform: translateY(24px); }
.js .hero__title .line > span { transform: translateY(110%); }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .08em; margin: -.12em 0 -.08em; }
.sw > span { display: inline-block; will-change: transform; }
.js .train { transform: translateX(-105%); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (min-width: 1100px) {
  .hero__scroll { display: inline-flex; }
}
/* компьютер: табло — справа напротив заголовка, табличка машиниста — справа внизу, между ними видны пути */
@media (min-width: 1061px) {
  .hero__content {
    --board-w: clamp(360px, 30vw, 420px);
    min-height: calc(100vh - var(--header-h) - 30px - clamp(28px, 4vw, 48px));
    min-height: calc(100svh - var(--header-h) - 30px - clamp(28px, 4vw, 48px));
    grid-template-columns: minmax(0, 1fr) var(--board-w);
    grid-template-rows: auto auto minmax(16px, 1fr) auto auto;
    grid-template-areas:
      "eyebrow board"
      "title   board"
      ".       board"
      "lead    hud"
      "stats   stats";
    row-gap: clamp(16px, 3vh, 40px); column-gap: clamp(28px, 3vw, 44px);
  }
  .hero__title { font-size: clamp(36px, 3.6vw, 52px); }
  .hero__scroll { bottom: calc(clamp(28px, 4vw, 48px) + 22px); }
  .board { align-self: start; }
  .hud { align-self: end; margin-bottom: 4px; }
}
/* планшет: табличка машиниста справа от плашки */
@media (min-width: 641px) and (max-width: 1060px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "eyebrow hud" "title title" "lead lead" "board board" "stats stats";
  }
}
@media (max-width: 1180px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .board { max-width: 620px; }
  .programs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career__grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::after { display: none; }
  .admission__grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item--xl { grid-column: span 2; }
  .life__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  /* счётчики 2×2: в четыре колонки числа на планшете получались бы мелкими */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: clamp(24px, 7vw, 52px); font-size: min(52px, calc((50cqi - 22px) / 4.85), calc((50cqi - 44px) / 3.9)); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { margin-top: 26px; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 860px) {
  .section-head--row { grid-template-columns: minmax(0, 1fr); }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .partners__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__grid { grid-template-columns: minmax(0, 1fr); }
  .director { max-width: 340px; }
  .contacts__grid { grid-template-columns: minmax(0, 1fr); }
  .contacts__map { min-height: 340px; }
  /* история — вертикальный список */
  .history__pin { min-height: 0; }
  .history__track { flex-direction: column; width: auto; }
  .h-card { width: auto; min-height: 0; }
  .h-card h3 { margin-top: 4px; }
  .history__rail { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand__text b { font-size: 17px; }
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hud { display: none; }
  .hero__actions .btn { flex: 1 1 100%; padding-inline: 14px; font-size: 13px; letter-spacing: 0; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stats li:nth-child(n+3) { margin-top: 4px; }
  .hero__stats li { padding-top: 14px; }
  .board { padding: 12px; --bf: 11px; }
  .board__cols, .board__rows li { grid-template-columns: calc(var(--bf) * 1.1) calc(var(--bf) * 5) minmax(0, 1fr); gap: 8px; }
  .board__cols span:last-child, .board__rows .cell--time { display: none; }
  .map { padding-top: 34px; padding-inline: 0; }
  .map__scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent);
  }
  .map__scroll::-webkit-scrollbar { display: none; }
  .map__svg { min-width: 720px; padding-inline: 10px; }
  .board__rows li { font-size: 11px; min-height: 26px; }
  .programs__grid { grid-template-columns: minmax(0, 1fr); }
  .awards__list { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 150px; }
  .bento__item--tall { grid-row: span 2; }
  .bento__item figcaption span { display: none; }
  .life__grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .life-card--big, .life-card--wide { grid-column: auto; grid-row: auto; }
  .life-card--photo { aspect-ratio: 4 / 3; }
  .life-card--big.life-card--photo { aspect-ratio: 1; }
  .life-card:not(.life-card--photo) { min-height: 200px; }
  .deputies { grid-template-columns: minmax(0, 1fr); }
  .sp-d__facts { grid-template-columns: minmax(0, 1fr); }
  .career__perks li { grid-template-columns: 118px minmax(0, 1fr); }
  .career__perks b { font-size: 19px; }
  .t-city { font-size: 22px; }
  .t-road { font-size: 17px; }
  .faq__a p { padding-right: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  /* план приёма: строки таблицы → карточки */
  .places { padding: 16px 12px; }
  .places__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1 1 0; padding: 10px 4px; font-size: 13px; }
  .places__legend { display: none; }
  .places__sum { margin: 14px 0 12px; gap: 8px; }
  .places__note { flex-basis: 100%; font-size: 14px; }
  .places__total { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 12px; font-size: 12.5px; line-height: 1.25; }
  .table-wrap { overflow: visible; }
  .places table, .places tbody, .places tr, .places td { display: block; width: 100%; }
  .places table { min-width: 0; }
  .places thead { display: none; }
  .places tbody { display: grid; gap: 10px; }
  .places tbody tr { padding: 14px 14px 4px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
  .places tbody tr:hover { background: rgba(255,255,255,.06); }
  .places td { padding: 0; border: 0; font-size: 15px; }
  .places .c-code { display: inline-block; width: auto; padding: 3px 8px; font-size: 12.5px; border: 1px solid rgba(255,181,71,.4); border-radius: 4px; background: rgba(255,181,71,.08); }
  .places .c-name { margin: 8px 0 10px; font-weight: 600; font-size: 16px; line-height: 1.3; }
  .places .c-seats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 10px 0; border-top: 1px dashed rgba(255,255,255,.18); white-space: normal; }
  .places .c-seats::before { content: attr(data-label); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
  .places .is-empty { display: none; }
  .seats { gap: 6px; }
  .seats i { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 12px; font-weight: 600; }
  .seats__b, .seats__p { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 8px; }
  .seats__b { background: #fff; color: var(--ink); }
  .seats__b b { color: var(--ink); }
  .seats__p { background: rgba(255,181,71,.14); color: var(--amber); border: 1px solid rgba(255,181,71,.35); }
  .seats__p::before { display: none; }
  .seats b { font-size: 17px; }
  .admission__contact .btn { width: 100%; }
  .final__actions { width: 100%; }
  .final__actions .btn { flex: 1 1 100%; padding-inline: 16px; font-size: 13.5px; }
}

@media (max-width: 360px) {
  .btn { padding-inline: 12px; font-size: 12px; letter-spacing: 0; }
}

/* «Уменьшить движение»: только плавные появления, без сдвигов и пульсаций */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero [data-hero] { transform: none; }
  .hero__scroll i, .omsk-glow, .dot, .final__kicker::before, .preloader__emblem, .hero__title .outline, .final__title span:last-child { animation: none; }
}
