/* ==========================================================================
   МосНефтеПродукт — лендинг
   Mobile-first. Темы: :root (светлая) и :root[data-theme="dark"].
   ========================================================================== */

/* ---------- Шрифты (локально, без внешних CDN) ---------- */
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* знак рубля */
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}

/* ---------- Токены ---------- */
:root {
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #eef3f9;
  --bg-rgb: 238 243 249;
  --surface: rgb(255 255 255 / .97);
  --surface-solid: #ffffff;
  --surface-2: rgb(13 38 76 / .05);
  --line: rgb(13 38 76 / .12);
  --line-strong: rgb(13 38 76 / .24);
  --text: #0b1526;
  --muted: #4d5d75;
  --brand: #0a6cc4;
  --brand-fill: #1f7fe0;
  --brand-soft: rgb(31 127 224 / .1);
  --accent: #ffb21e;
  --accent-hover: #ffc14d;
  --on-accent: #1b1200;
  --danger: #c4321c;
  --ok: #0f7b4a;
  --shadow: 0 1px 2px rgb(13 38 76 / .06), 0 16px 44px -16px rgb(13 38 76 / .22);
  --backdrop: rgb(11 21 38 / .45);
  --logo-a: #2bc5f0;
  --logo-b: #293893;

  --gutter: 16px;
  --header-h: 56px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #060b16;
  --bg-rgb: 6 11 22;
  --surface: rgb(13 21 38 / .96);
  --surface-solid: #0e1728;
  --surface-2: rgb(150 185 240 / .07);
  --line: rgb(150 185 240 / .15);
  --line-strong: rgb(150 185 240 / .3);
  --text: #eaf0f9;
  --muted: #9dadc6;
  --brand: #5bb8f5;
  --brand-fill: #3d97f2;
  --brand-soft: rgb(61 151 242 / .15);
  --accent: #ffb21e;
  --accent-hover: #ffc552;
  --on-accent: #1b1200;
  --danger: #ff8a73;
  --ok: #4fd39a;
  --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -24px rgb(0 0 0 / .7);
  --backdrop: rgb(2 5 12 / .62);
  --logo-a: #2bc5f0;
  --logo-b: #4a74e8;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 68px; --radius: 26px; --surface: rgb(255 255 255 / .84); }
  :root[data-theme="dark"] { --surface: rgb(13 21 38 / .8); }
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--font); font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-inline-size: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-fill); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-fill); color: #fff; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }

.sprite { position: absolute; }
.logo-stop-a { stop-color: var(--logo-a); }
.logo-stop-b { stop-color: var(--logo-b); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }
.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--surface-solid); color: var(--text); border: 1px solid var(--line-strong); }
.skip:focus { top: 12px; }

/* ---------- Сцена ---------- */
.scene {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none; background: var(--bg); overflow: hidden;
}
/* Статичный фон: виден, пока сцена загружается, и если WebGL недоступен */
.scene::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 72% 62%, rgb(31 127 224 / .16), transparent 70%),
    radial-gradient(40% 30% at 18% 88%, rgb(43 197 240 / .1), transparent 70%);
}
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.1s ease; }
.scene.is-ready .scene__canvas { opacity: 1; }

main, .footer { position: relative; z-index: 1; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.header.is-stuck { background: rgb(var(--bg-rgb) / .88); box-shadow: 0 1px 0 var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header.is-stuck { background: rgb(var(--bg-rgb) / .72); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
}
.header__in { display: flex; align-items: center; gap: 12px; height: var(--header-h); width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header .header__phone, .header .header__cta, .header .nav { display: none; }

.logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text); flex: none; }
.logo__mark { width: 30px; height: 27px; }
.logo__word { width: 148px; height: 9.4px; fill: currentColor; }

.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--text); transition: background-color .2s; }
.iconbtn .icon { width: 22px; height: 22px; }
.iconbtn:hover { background: var(--surface-2); }
.icon--moon { display: none; }
[data-theme="dark"] .icon--sun { display: none; }
[data-theme="dark"] .icon--moon { display: block; }

.progress { height: 2px; background: transparent; }
.progress__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--logo-a), var(--brand-fill)); transform-origin: 0 50%; transform: scaleX(0); }

@media (min-width: 1024px) {
  .logo__mark { width: 36px; height: 32.5px; }
  .logo__word { width: 184px; height: 11.7px; }
  .header .header__phone { display: block; font-weight: 600; font-variant-numeric: tabular-nums; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
  .header__phone:hover { color: var(--brand); }
  .header .header__cta { display: inline-flex; margin-left: 6px; }
}
@media (min-width: 1240px) {
  .header .nav { display: flex; gap: 2px; margin-left: 28px; }
  .nav a { padding: 8px 11px; border-radius: 10px; font-size: .9375rem; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
  .nav a:hover, .nav a.is-active { color: var(--text); }
  .nav a.is-active { background: var(--surface-2); }
  .header__burger { display: none; }
}

/* ---------- Маршрут (десктоп) ---------- */
.route { display: none; }
@media (min-width: 1280px) {
  .route {
    position: fixed; z-index: 40; left: 18px; top: 50%; transform: translateY(-50%);
    display: grid; gap: 22px; padding: 6px 0;
  }
  .route__line { position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: var(--line-strong); }
  .route__fill { position: absolute; inset: 0; background: var(--brand-fill); transform-origin: 50% 0; transform: scaleY(0); }
  .route__stop { position: relative; display: flex; align-items: center; height: 13px; width: 13px; }
  .route__stop::before { content: ""; width: 7px; height: 7px; margin: 0 3px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px var(--line-strong); transition: background-color .3s, box-shadow .3s, transform .3s; }
  .route__stop.is-done::before { background: var(--brand-fill); box-shadow: 0 0 0 1.5px var(--brand-fill); }
  .route__stop.is-active::before { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px rgb(255 178 30 / .22); transform: scale(1.15); }
  .route__label {
    position: absolute; left: 22px; padding: 4px 9px; border-radius: 8px; white-space: nowrap;
    font: 500 .75rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase;
    background: var(--surface-solid); color: var(--text); border: 1px solid var(--line);
    opacity: 0; transform: translateX(-4px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .route__stop:hover .route__label, .route__stop:focus-visible .route__label { opacity: 1; transform: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9375rem; border-radius: 12px; }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 1.0625rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn--secondary:hover { background: color-mix(in srgb, var(--brand-fill) 18%, transparent); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgb(var(--bg-rgb) / .4); }
.btn--ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .6; cursor: default; }

.link { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); font-weight: 500; text-align: left; }
.link { padding-block: 10px; margin-block: -10px; }   /* зона нажатия не меньше 40 px */
.link:hover { text-decoration-color: currentColor; }

/* ---------- Типографика ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow__num { color: var(--brand); }
.eyebrow__num::after { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 1px; margin-left: 10px; background: var(--line-strong); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); flex: none; }
.h2 { font-size: clamp(1.625rem, 1.25rem + 1.7vw, 2.375rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 640; text-wrap: balance; margin-top: 12px; }
.h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 640; }
.lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.5; margin-top: 12px; text-wrap: pretty; }
.note { color: var(--muted); font-size: .8125rem; line-height: 1.45; margin-top: 12px; }

/* ---------- Этапы ---------- */
.stage { position: relative; }
.stage--last { padding-bottom: 12vh; }

/* Подпись к сцене: «окно» между блоками, в котором виден маршрут */
.cue {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  min-height: 44vh; min-height: 44svh; padding: 0 2px 18px;
  font-size: .875rem; line-height: 1.4; color: var(--muted);
}
.cue { position: relative; }
.cue::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: -24px; height: 150px; pointer-events: none; background: linear-gradient(0deg, rgb(var(--bg-rgb) / .86) 30%, rgb(var(--bg-rgb) / 0)); }
.cue b { font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 8px; }
.cue b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.panel {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px 20px; box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 14px);
}
.panel__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }

@media (min-width: 640px) {
  .panel { padding: 30px 28px 28px; }
}
@media (min-width: 1024px) {
  .stage { padding-block: 16vh; min-height: 100vh; display: flex; align-items: center; }
  .stage > .wrap { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .stage[data-side="right"] > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 580px); }
  .stage[data-side="left"] .panel { grid-column: 1; grid-row: 1; }
  .stage[data-side="left"] .cue { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; align-items: flex-end; }
  .stage[data-side="right"] .panel { grid-column: 2; grid-row: 1; }
  .stage[data-side="right"] .cue { grid-column: 1; grid-row: 1; justify-self: start; }
  .stage[data-side="left"] .cue, .stage[data-side="right"] .cue {
    min-height: 0; padding: 0; position: sticky; top: calc(100vh - 92px); max-width: 300px;
  }
  .stage[data-side="left"] .cue::before, .stage[data-side="right"] .cue::before { display: none; }
  .stage--wide { display: block; padding-block: 0 16vh; min-height: 0; }
  .stage--wide > .wrap { display: block; }
  .stage--wide .cue { min-height: 62vh; }
  .stage--last { padding-bottom: 20vh; }
  .panel { padding: 36px 36px 34px; }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .panel { -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
  }
}

/* ---------- Hero ---------- */
.stage--hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 18px); }
.hero__text, .hero__foot { position: relative; }
/* вуаль под текстом, чтобы он не спорил со сценой: тянется вместе с текстом */
.hero__text::before, .hero__foot::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
.hero__text::before { top: -120px; bottom: -64px; background: linear-gradient(180deg, rgb(var(--bg-rgb) / .94) calc(100% - 96px), rgb(var(--bg-rgb) / 0)); }
.hero__foot::before { top: -56px; bottom: 0; background: linear-gradient(0deg, rgb(var(--bg-rgb) / .94) calc(100% - 80px), rgb(var(--bg-rgb) / 0)); }
.hero__foot { margin-top: auto; }
.stage--hero > .wrap { flex: 1; display: flex; }
.hero { display: flex; flex-direction: column; width: 100%; }
.hero__title { font-size: clamp(2.125rem, 1.1rem + 4.8vw, 4.25rem); line-height: 1.04; letter-spacing: -.028em; font-weight: 650; text-wrap: balance; margin-top: 14px; }
.hero__lead { font-size: 1.0625rem; line-height: 1.5; color: var(--muted); margin-top: 14px; max-width: 34em; text-wrap: pretty; }
.hero__actions { display: none; }
/* На мобильных между текстом и фактами остаётся «окно» со сценой */
.hero__gap { flex: 1 0 28vh; min-height: 28svh; }
.hero__price { font-size: .9375rem; color: var(--muted); }
.hero__price b { color: var(--text); font-weight: 600; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.fact { padding-top: 12px; border-top: 1px solid var(--line-strong); }
.fact dt { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
.fact dd { margin-top: 4px; font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.scrollcue { display: none; }

@media (min-width: 640px) {
  .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
  .facts { gap: 24px; max-width: 640px; }
  .fact dt { font-size: 1.5rem; }
  .fact dd { font-size: .875rem; }
}
@media (min-width: 1024px) {
  .stage--hero { padding-block: calc(var(--header-h) + 24px) 0; align-items: stretch; }
  .hero__text::before, .hero__foot::before { display: none; }
  .hero__gap { display: none; }
  .hero__foot { margin-top: 0; }
  .stage--hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(var(--bg-rgb) / .9) 0%, rgb(var(--bg-rgb) / .72) 36%, rgb(var(--bg-rgb) / 0) 56%); }
  .stage--hero > .wrap { display: flex; align-items: center; }
  .hero { max-width: 660px; padding-bottom: 6vh; }
  .hero__lead { font-size: 1.1875rem; margin-top: 20px; }
  .hero__actions { margin-top: 32px; }
  .hero__price { margin-top: 22px; font-size: 1rem; }
  .facts { margin-top: 44px; padding-bottom: 0; gap: 28px; }
  .scrollcue {
    display: inline-flex; align-items: center; gap: 10px; align-self: center; margin: 0 auto 26px;
    font-size: .875rem; color: var(--muted); padding: 8px 12px; border-radius: 10px; transition: color .2s;
  }
  .scrollcue:hover { color: var(--text); }
  .scrollcue .icon { width: 18px; height: 18px; animation: nudge 2.4s var(--ease) infinite; }
}
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }

/* ---------- Цены ---------- */
.pricelist { margin-top: 20px; }
.pricelist__group { font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; }
.price {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px;
  width: 100%; min-height: 60px; padding: 10px 10px 10px 12px; margin-inline: -4px; width: calc(100% + 8px);
  border-radius: 14px; text-align: left; border-top: 1px solid var(--line);
  transition: background-color .2s;
}
.pricelist__group + .price { border-top-color: transparent; }
.price:hover { background: var(--surface-2); }
.price__name { font-weight: 550; line-height: 1.3; }
.price__temp { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.price__value { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__value small { font-size: .8125rem; font-weight: 450; color: var(--muted); margin-left: 3px; }
.price__go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); transition: transform .2s var(--ease); }
.price__go .icon { width: 17px; height: 17px; }
.price:hover .price__go { transform: translateX(2px); }

/* ---------- Поля ---------- */
.field { margin-top: 18px; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__label { display: block; font-size: .875rem; font-weight: 550; margin-bottom: 8px; }
.field__hint { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__hint--price { font-size: .9375rem; font-weight: 650; color: var(--text); }
.field__error { margin-top: 6px; font-size: .8125rem; color: var(--danger); }

.input, .select select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--surface-solid); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 1rem; /* 16px: iOS не масштабирует страницу при фокусе */
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
textarea.input { padding-block: 12px; min-height: 76px; resize: vertical; line-height: 1.4; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:hover, .select select:hover { border-color: var(--muted); }
.input:focus-visible, .select select:focus-visible { outline: none; border-color: var(--brand-fill); box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--num { font-size: 1.1875rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.select { position: relative; }
.select select { padding-right: 44px; font-weight: 550; text-overflow: ellipsis; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

.volume { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: center; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-fill) var(--p), var(--line-strong) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--brand-fill); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-strong); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand-fill); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--brand-fill); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-soft); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--brand-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips--zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); margin-top: 0; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span, button.chip {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover span, button.chip:hover { border-color: var(--muted); }
.chip input:checked + span, button.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-fill); color: var(--brand); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--brand-fill); outline-offset: 2px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.segmented__item { position: relative; }
.segmented__item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented__item span { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; font-weight: 550; font-size: .9375rem; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.segmented__item input:checked + span { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 0 0 1px var(--line); }
.segmented__item input:focus-visible + span { outline: 2px solid var(--brand-fill); outline-offset: 1px; }

/* ---------- Калькулятор: результат ---------- */
.result { margin-top: 22px; padding: 16px 16px 14px; border-radius: 16px; background: var(--surface-2); }
.result__lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: .9375rem; }
.result__lines dt { color: var(--muted); }
.result__lines dd { font-weight: 550; font-variant-numeric: tabular-nums; text-align: right; }
.result__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.result__total span { font-weight: 550; }
.result__total strong { font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.125rem); font-weight: 680; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.calc .btn--block { margin-top: 16px; }

/* ---------- Преимущества ---------- */
.features { display: grid; gap: 14px; margin-top: 22px; }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.feature__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.0625rem; font-weight: 620; line-height: 1.25; align-self: end; }
.feature p { font-size: .9375rem; line-height: 1.45; color: var(--muted); grid-column: 2; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .875rem; font-weight: 500; }
.tags .icon { width: 17px; height: 17px; color: var(--brand); }

/* ---------- О компании ---------- */
.chartcard { margin-top: 22px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid);
  --series: #1f7fe0; --grid: rgb(13 38 76 / .1); }
[data-theme="dark"] .chartcard { --series: #3d97f2; --grid: rgb(150 185 240 / .13); }
.chartcard__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.chartcard__label { font-size: .8125rem; color: var(--muted); }
.chartcard__value { font-size: 2.5rem; font-weight: 680; letter-spacing: -.03em; line-height: 1.05; margin-top: 2px; }
.chartcard__value span { font-size: 1.0625rem; font-weight: 550; letter-spacing: 0; color: var(--muted); }
.chartcard__sub { font-size: .8125rem; color: var(--muted); }
.chart { position: relative; margin-top: 12px; border-radius: 8px; touch-action: pan-y; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 400 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.chart .area { fill: var(--series); opacity: .1; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--series); stroke: var(--surface-solid); stroke-width: 2; }
.chart .endlabel { fill: var(--text); font: 600 12px/1 var(--font); }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; }
.chart__tip { position: absolute; top: 0; left: 0; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: .8125rem; line-height: 1.3; white-space: nowrap; opacity: 0; transition: opacity .15s; z-index: 2; }
.chart__tip b { display: block; font-size: .9375rem; font-weight: 650; }
.chart__tip.is-on { opacity: 1; }
.chartcard__table { margin-top: 8px; font-size: .875rem; }
.chartcard__table summary { cursor: pointer; color: var(--brand); font-weight: 500; padding: 11px 0; margin-block: -5px; width: fit-content; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 0; border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
td:last-child, th:last-child { text-align: right; }

.channels { display: grid; gap: 16px; margin-top: 22px; }
.channels li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.channels .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--brand); }
.channels h3 { font-size: 1rem; font-weight: 620; }
.channels p { font-size: .9375rem; line-height: 1.45; color: var(--muted); margin-top: 2px; }

/* ---------- Документы ---------- */
.doclist { margin-top: 20px; border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 13px 8px; margin-inline: -8px; border-radius: 12px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.doc:hover { background: var(--surface-2); }
.doc .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--brand); }
.doc__name { font-weight: 550; line-height: 1.3; }
.doc__meta { font: 400 .75rem/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }
.accordion { margin-top: 18px; border-radius: 14px; background: var(--surface-2); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; border-radius: 14px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--muted); transition: transform .25s var(--ease); }
.accordion[open] summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 16px 16px; display: grid; gap: 10px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

/* ---------- Команда ---------- */
.panel__head .lead { max-width: 30em; }
.team { display: grid; gap: 4px; margin-top: 18px; }
.person { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.person__photo { width: 84px; height: 105px; object-fit: cover; border-radius: 12px; background: var(--surface-2); filter: saturate(.88); }
.person__role { font: 500 .75rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.person__name { font-size: 1.0625rem; font-weight: 620; line-height: 1.25; margin-top: 3px; }
.person__bio { font-size: .875rem; line-height: 1.4; color: var(--muted); margin-top: 5px; }
.person__mail { display: inline-block; margin: -2px 0 -8px; padding: 11px 0; font-size: .875rem; font-weight: 500; color: var(--brand); word-break: break-all; }
.person__mail:hover, .depts a:hover, .contacts__value[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.person--depts { display: block; }
.depts { display: grid; gap: 12px; margin-top: 10px; }
.depts dt { font-size: .875rem; font-weight: 600; }
.depts dd { font-size: .875rem; line-height: 1.45; color: var(--muted); margin-top: 1px; }
.depts a { color: var(--brand); font-weight: 500; word-break: break-all; }

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__icon { grid-row: auto; margin-bottom: 8px; }
  .feature p { grid-column: auto; }
  .team { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
@media (min-width: 1024px) {
  .panel__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
  .panel__head .lead { margin-top: 0; justify-self: end; }
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; margin-top: 32px; }
  .person { display: block; padding: 0; border: 0; }
  .person__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 16px; transition: filter .4s; }
  .person:hover .person__photo { filter: none; }
  .person__body { padding-top: 14px; }
  .person--depts { padding: 22px; border-radius: 16px; background: var(--surface-2); align-self: start; }
}

/* ---------- Контакты ---------- */
.leadform { margin-top: 6px; }
.leadform__grid { display: grid; gap: 0 14px; }
.leadform .btn--block { margin-top: 18px; }
.formdone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 18px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.formdone .icon { width: 26px; height: 26px; color: var(--ok); stroke-width: 2.2; }
.formdone b { display: block; font-weight: 650; }
.formdone span { display: block; font-size: .9375rem; color: var(--muted); margin-top: 2px; }
.leadform.is-done > :not(.formdone):not(.sheet__head) { display: none; }

.contacts { display: grid; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.contacts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.contacts .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
.contacts__label { display: block; font-size: .8125rem; color: var(--muted); }
.contacts__value { display: block; font-weight: 550; line-height: 1.35; }
a.contacts__value { padding-block: 10px; margin-block: -10px; }
a.contacts__value { font-variant-numeric: tabular-nums; }
.contacts .link { margin-top: -6px; font-size: .875rem; }
.map { margin-top: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 640px) {
  .leadform__grid { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
}

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); background: rgb(var(--bg-rgb) / .92); padding: 26px 0 calc(96px + env(safe-area-inset-bottom)); }
.footer__in { display: grid; gap: 12px; }
.footer__legal, .footer__demo { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 1024px) {
  .footer { padding-bottom: 28px; }
  .footer__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
  .footer__demo { text-align: right; }
}

/* ---------- Нижняя панель (мобильные) ---------- */
.mbar {
  position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(var(--bg-rgb) / .9); border-top: 1px solid var(--line);
  transition: transform .35s var(--ease), opacity .25s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mbar { background: rgb(var(--bg-rgb) / .74); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
}
.mbar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.mbar .btn { min-height: 48px; }
@media (min-width: 1024px) { .mbar { display: none; } }

/* ---------- Диалоги ---------- */
.sheet {
  width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border: 0; border-radius: 24px 24px 0 0; background: var(--surface-solid); color: var(--text);
  box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .4); overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: var(--backdrop); }
.sheet[open] { animation: sheet-in .38s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .3s ease; }
@keyframes sheet-in { from { transform: translateY(28px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sheet__head .iconbtn { margin-right: -8px; }
.sheet--menu { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; display: none; flex-direction: column; padding-top: 7px; }
.sheet--menu[open] { display: flex; }
.menu { display: grid; margin-top: 18px; }
.menu a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.menu a span { font: 500 .75rem/1 var(--mono); color: var(--brand); letter-spacing: .06em; }
.sheet__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.sheet--lead .lead { font-size: 1rem; margin-top: 6px; }
.summary { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: .9375rem; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.summary > div:last-child { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--line-strong); }
.summary > div:last-child dd { font-weight: 680; font-size: 1.0625rem; }
@media (min-width: 640px) {
  .sheet--lead { width: 460px; margin: auto; padding: 28px; border-radius: 24px; }
}
@media (min-width: 1240px) { .sheet--menu { display: none !important; } }

/* ---------- Появление блоков ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media (forced-colors: active) {
  .panel, .result, .feature, .chip span, .btn { border: 1px solid CanvasText; }
  .scene { display: none; }
}
@media print {
  .scene, .header, .mbar, .route, .cue, .scrollcue { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .panel { box-shadow: none; break-inside: avoid; margin-bottom: 16px; }
}
