/* P3 «Светлый операционный»: Commissioner, бетон перрона, синий #193769, жёлтый как разметка. */

@font-face {
  font-family: "Commissioner";
  src: url("../shared/fonts/commissioner.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Цвета: нейтральные тонированы в синий, жёлтый только как функциональная разметка */
  --c-ground: #ECECE7;
  --c-ground-2: #E3E4E0;
  --c-surface: #F7F7F3;
  --c-line: #CDD1D3;
  --c-line-strong: #9DA5B0;
  --c-ink: #193769;
  --c-text: #26324D;
  --c-muted: #56607A;
  --c-navy: #193769;
  --c-navy-deep: #112850;
  --c-on-navy: #EAEDF3;
  --c-on-navy-muted: #AEB8CC;
  --c-on-navy-line: rgba(234, 237, 243, .18);
  --c-yellow: #F9C525;
  --c-yellow-press: #E8B416;
  --c-on-yellow: #193769;
  --c-error: #A3343B;
  --c-error-bg: #F6E7E5;
  --c-need-bg: rgba(249, 197, 37, .24);
  --c-need-line: #8A6A00;

  /* Шрифт */
  --f-sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Шкала 1.25 */
  --fs-xs: .8125rem;
  --fs-s: .9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.1vw, 4.1rem);
  --fs-code: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  --lh-tight: 1.08;
  --lh-head: 1.18;
  --lh-body: 1.55;

  /* Отступы */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --sec-pad: clamp(64px, 5vw + 40px, 128px);
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --hdr-h: 72px;

  /* Радиусы по иерархии */
  --r-xs: 3px;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;

  /* Тени тонированы в синий */
  --sh-1: 0 1px 2px rgba(25, 55, 105, .06), 0 2px 8px rgba(25, 55, 105, .06);
  --sh-2: 0 2px 4px rgba(25, 55, 105, .06), 0 16px 40px -12px rgba(25, 55, 105, .22);

  /* Движение */
  --d-fast: 150ms;
  --d-press: 90ms;
  --d-flap: 260ms;
  --ease-out: cubic-bezier(.32, .72, 0, 1);
  --ease-std: cubic-bezier(.2, .6, .2, 1);
}

@media (min-width: 960px) { :root { --hdr-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-m);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--c-ink); margin: 0; font-weight: 640; letter-spacing: -.012em; line-height: var(--lh-head); text-wrap: balance; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-l); font-weight: 620; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--c-navy);
  outline-offset: 1px;
  box-shadow: 0 0 0 7px var(--c-yellow);
  border-radius: var(--r-xs);
}

.need {
  background: var(--c-need-bg);
  border-bottom: 1px dashed var(--c-need-line);
  padding: 0 .2em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-yellow); color: var(--c-on-yellow); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-s); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s-3); }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-s);
  border: 1px solid transparent; font-weight: 600; font-size: var(--fs-s); line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-std), border-color var(--d-fast) var(--ease-std);
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--d-press); }
.btn--primary { background: var(--c-yellow); color: var(--c-on-yellow); }
.btn--primary:hover { background: var(--c-yellow-press); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(1px) scale(.985); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-ink); transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: var(--fs-m); }
.btn[disabled] { opacity: .7; cursor: progress; }

.lnk {
  color: var(--c-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--d-fast) var(--ease-out);
  padding-bottom: 1px;
}
.lnk:hover { background-size: 100% 2px; }
.lnk--small { font-size: var(--fs-s); }
.lnk--inv { color: var(--c-on-navy); }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-ground);
  border-bottom: 1px solid var(--c-line);
}
.hdr__row { display: flex; align-items: center; gap: var(--s-5); height: var(--hdr-h); }
.hdr__logo { flex: none; display: block; border-radius: var(--r-xs); }
.hdr__logo img { width: 128px; height: auto; }
.hdr__nav { margin-left: auto; }
.hdr__nav ul { display: flex; gap: var(--s-1); }
.hdr__nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  text-decoration: none; color: var(--c-text); font-size: var(--fs-s); font-weight: 500; white-space: nowrap;
  border-radius: var(--r-xs); position: relative;
}
.hdr__nav a:not(.btn)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px;
  background: var(--c-ink); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-fast) var(--ease-out);
}
.hdr__nav a:not(.btn):hover::after { transform: scaleX(1); }
.hdr__tools { display: flex; align-items: center; gap: var(--s-3); }
.hdr__panel-cta { display: none; }

.lang { display: inline-flex; border: 1px solid var(--c-line); border-radius: var(--r-s); padding: 2px; background: var(--c-surface); }
.lang button {
  min-width: 40px; min-height: 40px; border: 0; background: transparent; border-radius: 4px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--c-muted); cursor: pointer;
  transition: background-color var(--d-fast) var(--ease-std), color var(--d-fast) var(--ease-std);
}
.lang button:hover { color: var(--c-ink); background: var(--c-ground-2); }
.lang button[aria-pressed="true"] { background: var(--c-navy); color: var(--c-on-navy); }

.hdr__burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: var(--r-s);
  background: var(--c-surface); cursor: pointer; position: relative;
}
.hdr__burger-lines, .hdr__burger-lines::before, .hdr__burger-lines::after {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--c-ink); border-radius: 1px;
  transition: transform var(--d-fast) var(--ease-out), opacity var(--d-fast);
}
.hdr__burger-lines { top: 21px; }
.hdr__burger-lines::before, .hdr__burger-lines::after { content: ""; left: 0; right: 0; }
.hdr__burger-lines::before { transform: translateY(-6px); }
.hdr__burger-lines::after { transform: translateY(6px); }
.hdr__burger[aria-expanded="true"] .hdr__burger-lines { background: transparent; }
.hdr__burger[aria-expanded="true"] .hdr__burger-lines::before { transform: rotate(45deg); background: var(--c-ink); }
.hdr__burger[aria-expanded="true"] .hdr__burger-lines::after { transform: rotate(-45deg); background: var(--c-ink); }

@media (min-width: 960px) {
  .hdr__logo img { width: 168px; }
}
@media (max-width: 1379px) and (min-width: 1200px) {
  .hdr__nav a:not(.btn) { padding: 0 7px; font-size: var(--fs-xs); }
  .hdr__nav a:not(.btn)::after { left: 7px; right: 7px; }
  .hdr__row { gap: var(--s-3); }
}
@media (max-width: 1199px) {
  .hdr__burger { display: inline-block; }
  .hdr__cta { display: none; }
  .hdr__tools { margin-left: auto; gap: var(--s-2); }
  .hdr__nav {
    position: fixed; inset: var(--hdr-h) 0 0 0; margin: 0; z-index: 49;
    background: var(--c-ground); padding: var(--s-5) var(--gutter) var(--s-7);
    display: flex; flex-direction: column; gap: var(--s-6); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--d-fast) var(--ease-std), transform var(--d-fast) var(--ease-out), visibility 0s linear var(--d-fast);
  }
  .hdr__nav[data-open] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .hdr__nav ul { flex-direction: column; gap: 0; }
  .hdr__nav li { border-bottom: 1px solid var(--c-line); }
  .hdr__nav a:not(.btn) { width: 100%; min-height: 56px; font-size: var(--fs-l); padding: 0; color: var(--c-ink); }
  .hdr__nav a:not(.btn)::after { display: none; }
  .hdr__panel-cta { display: inline-flex; align-self: stretch; min-height: 52px; font-size: var(--fs-m); }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 359px) { .lang button { min-width: 36px; } .hdr__logo img { width: 112px; } }

section[id] { scroll-margin-top: var(--hdr-h); }

/* ---------- Первый экран ---------- */
.hero { padding-block: var(--s-6) var(--s-7); }
.hero__grid { display: grid; gap: var(--s-6); }
.hero__text { display: flex; flex-direction: column; gap: var(--s-5); }
.hero h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); font-weight: 660; letter-spacing: -.022em; max-width: 14ch; }
.hero__lead { font-size: var(--fs-l); line-height: 1.5; color: var(--c-text); max-width: 34em; }
.hero__photo { border-radius: var(--r-l); overflow: hidden; background: var(--c-navy-deep); aspect-ratio: 16 / 11; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

@media (max-width: 1023px) {
  .hero__grid { grid-template-areas: "h1" "lead" "photo" "card"; gap: var(--s-4); }
  .hero__text { display: contents; }
  .hero h1 { grid-area: h1; }
  .hero__lead { grid-area: lead; margin-bottom: var(--s-3); }
  .hero__photo { grid-area: photo; aspect-ratio: 4 / 3; }
  .fcard { grid-area: card; }
}
@media (min-width: 640px) and (max-width: 1023px) { .hero__photo { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) {
  .hero { padding-block: var(--s-6); min-height: calc(100dvh - var(--hdr-h)); display: flex; }
  .hero > .wrap { display: flex; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 72px); align-items: stretch; width: 100%; }
  .hero__text { justify-content: center; padding-block: var(--s-6); }
  .hero__photo { aspect-ratio: auto; min-height: 520px; height: 100%; }
}

/* Мини-карточка рейса */
.fcard {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m);
  box-shadow: var(--sh-2); overflow: hidden; margin-top: var(--s-3);
}
.fcard__title {
  font-size: var(--fs-s); font-weight: 600; color: var(--c-on-navy); background: var(--c-navy);
  padding: 10px var(--s-4); letter-spacing: 0;
}
.fcard__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-areas: "from to" "pax go";
}
.fcard__cell {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: var(--s-3) var(--s-4) var(--s-3); border-bottom: 1px solid var(--c-line);
  transition: background-color var(--d-fast) var(--ease-std);
}
.fcard__cell::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-yellow);
  transform: scaleX(0); transform-origin: left; transition: transform var(--d-fast) var(--ease-out);
}
.fcard__cell:focus-within { background: #FFFFFB; }
.fcard__cell:focus-within::after { transform: scaleX(1); }
.fcard__cell--from { grid-area: from; border-right: 1px solid var(--c-line); }
.fcard__cell--to { grid-area: to; }
.fcard__cell--pax { grid-area: pax; border-right: 1px solid var(--c-line); border-bottom: 0; }
.fcard__cell label { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 500; }
.fcard__cell input {
  width: 100%; border: 0; background: transparent; padding: 4px 0; min-height: 40px;
  font-size: var(--fs-l); font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums;
  border-radius: var(--r-xs);
}
.fcard__cell input::placeholder { color: var(--c-muted); font-weight: 400; font-size: var(--fs-m); opacity: .85; }
.fcard__cell input:focus { outline: none; box-shadow: none; }
.fcard__go { grid-area: go; margin: var(--s-3); min-height: 52px; border-radius: var(--r-s); font-size: var(--fs-m); white-space: normal; text-align: center; }
.fcard__hint { padding: var(--s-3) var(--s-4); font-size: var(--fs-xs); color: var(--c-muted); border-top: 1px solid var(--c-line); background: var(--c-ground-2); }
@media (max-width: 479px) {
  .fcard__grid { grid-template-columns: 1fr; grid-template-areas: "from" "to" "pax" "go"; }
  .fcard__cell--from, .fcard__cell--pax { border-right: 0; }
  .fcard__cell--pax { border-bottom: 1px solid var(--c-line); }
  .fcard { margin-inline: 0; }
}

/* ---------- Общие секции ---------- */
.sec { padding-block: var(--sec-pad); }
.ph { border-radius: var(--r-m); overflow: hidden; background: var(--c-ground-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.note { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.5; }

/* О компании */
.about { border-top: 1px solid var(--c-line); }
.about__grid { display: grid; gap: var(--s-6); align-items: center; }
.about__text { display: flex; flex-direction: column; gap: var(--s-4); max-width: 38em; }
.about__text h2 { margin-bottom: var(--s-2); }
.about__photo { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 112px); }
}

/* Услуги */
.services { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.services__grid { display: grid; gap: var(--s-6); }
.rows { border-top: 1px solid var(--c-line-strong); }
.row { display: grid; gap: var(--s-2); padding-block: var(--s-5); border-bottom: 1px solid var(--c-line); }
.row p { color: var(--c-text); max-width: 40em; }
.services__photo { aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-6); padding-block: var(--s-6); }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "h h" "list photo"; column-gap: clamp(40px, 5vw, 88px); row-gap: var(--s-7); }
  .services__h { grid-area: h; }
  .services__list { grid-area: list; }
  .services__photo { grid-area: photo; aspect-ratio: auto; height: 100%; min-height: 360px; }
}

/* Флот */
.fleet__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.fleet__head h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -.02em; }
.fleet__lead { font-size: var(--fs-l); max-width: 32em; }
@media (min-width: 1024px) { .fleet__head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s-7); } }
.fleet__grid { display: grid; gap: var(--s-6); }
.fleet__photo { display: flex; flex-direction: column; gap: var(--s-3); }
.fleet__photo .ph { aspect-ratio: 1280 / 674; }
.spec { border-top: 2px solid var(--c-ink); }
.spec__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--c-line); align-items: baseline; }
.spec dt { font-size: var(--fs-s); color: var(--c-muted); }
.spec dd { display: flex; flex-direction: column; gap: var(--s-1); }
.spec__v { font-size: var(--fs-l); font-weight: 620; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.spec__n { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.45; }
@media (min-width: 1024px) { .fleet__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 5vw, 80px); } }

.range { display: grid; gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--c-line); align-items: center; }
.range__text { display: flex; flex-direction: column; gap: var(--s-4); max-width: 30em; }
.range__text h3 { font-size: var(--fs-xl); }
.range__legend { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-s); color: var(--c-text); }
.range__key { width: 28px; height: 0; flex: none; }
.range__key--ring { border-top: 2.5px solid var(--c-navy); }
.range__key--rings { border-top: 1px dashed var(--c-line-strong); }
.range__map { justify-self: center; width: 100%; max-width: 600px; }
.range__map svg { display: block; width: 100%; height: auto; font-family: var(--f-sans); }
.m-disc { fill: var(--c-surface); stroke: var(--c-line); stroke-width: 1; }
.m-grat polyline { fill: none; stroke: var(--c-line); stroke-width: .7; }
.m-rings circle { fill: none; stroke: var(--c-line-strong); stroke-width: .8; stroke-dasharray: 2 3; }
.m-range { fill: rgba(25, 55, 105, .045); stroke: var(--c-navy); stroke-width: 2.2; }
.m-ringlabel rect { fill: var(--c-navy); }
.m-ringlabel text { fill: var(--c-on-navy); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-refs circle { fill: var(--c-ground); stroke: var(--c-ink); stroke-width: 1.4; }
.m-refs text { fill: var(--c-ink); font-size: 12px; font-weight: 600; }
.m-refs text.d { fill: var(--c-muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.m-ala__halo { fill: var(--c-yellow); opacity: .45; }
.m-ala__dot { fill: var(--c-yellow); stroke: var(--c-navy); stroke-width: 1.6; }
.m-ala text { fill: var(--c-ink); font-size: 12px; font-weight: 600; }
.m-ala text.code { font-size: 14px; font-weight: 750; letter-spacing: .04em; }
@media (max-width: 639px) {
  .m-refs text { font-size: 15px; }
  .m-refs text.d { font-size: 13.5px; }
  .m-ala text { font-size: 15px; }
  .m-ala text.code { font-size: 17px; }
  .m-ringlabel text { font-size: 13px; }
}
@media (min-width: 1024px) { .range { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 96px); } }

/* Преимущества: плотная синяя плашка */
.adv { background: var(--c-navy); color: var(--c-on-navy); }
.adv h2, .adv h3 { color: var(--c-on-navy); }
.adv h2 { max-width: 20ch; margin-bottom: var(--s-7); }
.adv__list { display: grid; gap: 0; }
.adv__list li { padding-block: var(--s-5); border-top: 1px solid var(--c-on-navy-line); display: flex; flex-direction: column; gap: var(--s-3); }
.adv__list p { color: var(--c-on-navy-muted); }
@media (min-width: 768px) { .adv__list { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
@media (min-width: 1200px) {
  .adv__list { grid-template-columns: 1.15fr 1fr 1fr 1fr; column-gap: var(--s-6); }
  .adv__list li { padding-top: var(--s-5); }
  .adv__list li:first-child h3 { font-size: var(--fs-xl); }
}

/* Как мы работаем */
.process__head { display: grid; gap: var(--s-6); margin-bottom: var(--s-7); }
.process__photo { aspect-ratio: 16 / 9; }
.process__photo img { object-position: 50% 60%; }
@media (min-width: 1024px) {
  .process__head { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: end; gap: clamp(40px, 5vw, 96px); }
  .process__photo { aspect-ratio: 21 / 9; }
}
.steps { display: grid; gap: 0; counter-reset: s; }
.step { position: relative; padding: var(--s-5) 0 var(--s-5) 56px; border-top: 1px solid var(--c-line); }
.step h3 { font-size: var(--fs-l); margin-bottom: var(--s-2); }
.step p { color: var(--c-text); font-size: var(--fs-s); max-width: 34em; }
.step__n {
  position: absolute; left: 0; top: var(--s-5); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; font-size: var(--fs-s);
  border: 1.5px solid var(--c-ink); color: var(--c-ink); background: var(--c-ground);
}
.step.is-current .step__n { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-on-yellow); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s-5); }
  .step { padding: var(--s-7) 0 0; border-top: 0; }
  .step::before { content: ""; position: absolute; left: 0; right: calc(-1 * var(--s-5)); top: 17px; height: 1.5px; background: var(--c-line-strong); }
  .step:last-child::before { right: 0; }
  .step.is-current::before { background: var(--c-yellow); height: 4px; top: 16px; }
  .step__n { top: 0; z-index: 1; }
}

/* Документы */
.docs { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.docs__grid { display: grid; gap: var(--s-7); align-items: center; }
.docs__text { display: flex; flex-direction: column; gap: var(--s-4); max-width: 34em; }
.docs__status {
  display: inline-flex; align-items: flex-start; gap: var(--s-3); align-self: flex-start;
  font-weight: 600; color: var(--c-ink); background: var(--c-ground); border: 1px solid var(--c-line);
  border-radius: var(--r-s); padding: var(--s-3) var(--s-4);
}
.docs__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: .45em; background: var(--c-yellow); box-shadow: 0 0 0 2px var(--c-navy); }
.docs__sheet {
  justify-self: center; width: min(100%, 340px); aspect-ratio: 210 / 297; border-radius: var(--r-xs);
  background: var(--c-ground) repeating-linear-gradient(0deg, transparent 0 27px, rgba(25,55,105,.06) 27px 28px);
  border: 1.5px dashed var(--c-line-strong); padding: var(--s-5); display: flex;
  box-shadow: var(--sh-1);
}
.docs__sheet-inner { margin: auto; text-align: center; display: flex; flex-direction: column; gap: var(--s-3); align-items: center; font-size: var(--fs-s); }
.docs__code { font-size: var(--fs-code); font-weight: 750; color: var(--c-line-strong); letter-spacing: .04em; line-height: 1; }
@media (min-width: 1024px) { .docs__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Форма и талон ---------- */
.quote__head { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-7); max-width: 40em; }
.quote__head h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -.02em; }
.quote__head p { font-size: var(--fs-l); }
.qf { display: grid; grid-template-areas: "fields" "talon" "actions"; gap: var(--s-6); }
.qf__fields { grid-area: fields; display: grid; gap: var(--s-5); }
.qf__talon { grid-area: talon; }
.qf__actions { grid-area: actions; display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
@media (min-width: 768px) {
  .qf__fields { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
  .field--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .qf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "fields talon" "actions talon"; column-gap: clamp(40px, 5vw, 88px); row-gap: var(--s-6); align-items: start; }
  .qf__talon { position: sticky; top: calc(var(--hdr-h) + var(--s-5)); }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-s); font-weight: 600; color: var(--c-ink); }
.field__opt { font-weight: 400; color: var(--c-muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-s);
  border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink);
  font-size: var(--fs-m); font-weight: 500;
  transition: border-color var(--d-fast) var(--ease-std), background-color var(--d-fast) var(--ease-std);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #737C90; font-weight: 400; }
.field input:hover, .field textarea:hover { border-color: var(--c-ink); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--c-ink); background: #FFFFFB; border-radius: var(--r-s); }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field__err { font-size: var(--fs-xs); color: var(--c-error); font-weight: 600; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-error); background: var(--c-error-bg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qf__summary { color: var(--c-error); background: var(--c-error-bg); border-radius: var(--r-s); padding: var(--s-3) var(--s-4); font-weight: 600; font-size: var(--fs-s); }
.qf__consent { font-size: var(--fs-xs); color: var(--c-muted); max-width: 46em; }
.qf__consent a { color: var(--c-ink); }
.qf.is-sending .qf__submit { opacity: .8; }
@media (max-width: 767px) { .qf__submit { width: 100%; } }

.talon {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m);
  box-shadow: var(--sh-2); overflow: hidden; color: var(--c-ink);
}
.talon__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); background: var(--c-navy); color: var(--c-on-navy); padding: var(--s-3) var(--s-5); }
.talon__top img { width: 92px; }
.talon__doc { font-size: var(--fs-xs); font-weight: 600; color: var(--c-on-navy-muted); text-align: right; }
.talon__route { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-4); }
.talon__pt { display: flex; flex-direction: column; min-width: 0; }
.talon__pt--to { text-align: right; align-items: flex-end; }
.talon__lbl { font-size: var(--fs-xs); color: var(--c-muted); }
.talon__code { font-size: var(--fs-code); font-weight: 720; letter-spacing: .02em; line-height: 1.05; font-variant-numeric: tabular-nums; min-height: 1.05em; }
.talon__city { font-size: var(--fs-s); font-weight: 500; color: var(--c-text); min-height: 1.5em; max-width: 100%; overflow: hidden; white-space: nowrap; }
.talon__line { height: 1.5px; background: var(--c-line-strong); position: relative; margin-top: 10px; }
.talon__line::after { content: ""; position: absolute; right: -1px; top: -3.5px; width: 8px; height: 8px; border-top: 1.5px solid var(--c-line-strong); border-right: 1.5px solid var(--c-line-strong); transform: rotate(45deg); }
.talon__data { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid var(--c-line); }
.talon__item { min-width: 0; }
.talon__item--wide { grid-column: 1 / -1; }
.talon__item dt { font-size: var(--fs-xs); color: var(--c-muted); }
.talon__item dd { font-size: var(--fs-m); font-weight: 620; white-space: nowrap; overflow: hidden; min-height: 1.55em; }
.talon__tz { font-weight: 400; color: var(--c-muted); font-size: var(--fs-xs); }
.talon__stub {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); border-top: 1.5px dashed var(--c-line-strong); background: var(--c-ground-2);
}
.talon__stub::before, .talon__stub::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-ground); border: 1px solid var(--c-line); }
.talon__stub::before { left: -9px; }
.talon__stub::after { right: -9px; }
.talon__status { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 650; font-size: var(--fs-s); }
.talon__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--c-muted); transition: background-color var(--d-fast), border-color var(--d-fast); }
.talon[data-state="ready"] .talon__dot { background: var(--c-yellow); border-color: var(--c-navy); }
.talon .is-empty { color: var(--c-line-strong); }

/* Символы «табло»: меняются только изменившиеся */
.flap .ch { display: inline-block; white-space: pre; }
.flap .ch.is-new { animation: flap var(--d-flap) var(--ease-out) both; }
@keyframes flap {
  0% { transform: translateY(-.32em) scaleY(.55); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .flap .ch.is-new { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Компактный талон на мобильном */
@media (max-width: 1023px) {
  .talon__item--x { display: none; }
  .talon__route { padding: var(--s-4) var(--s-4) var(--s-3); }
  .talon__data { padding: var(--s-3) var(--s-4) var(--s-4); gap: var(--s-3); grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .talon__item--wide { grid-column: auto; }
  .talon__top { padding: var(--s-2) var(--s-4); }
  .talon__top img { width: 76px; }
  .talon__stub { padding: var(--s-3) var(--s-4); }
  .talon__code { font-size: 2.25rem; }
}

.qf-ok { max-width: 40em; display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m); padding: var(--s-6); box-shadow: var(--sh-1); }
.qf-ok h3 { font-size: var(--fs-xl); }

/* Контакты */
.contacts { border-top: 1px solid var(--c-line); }
.contacts h2 { margin-bottom: var(--s-7); }
.contacts__grid { display: grid; gap: var(--s-5); }
.contacts__grid > div { border-top: 2px solid var(--c-ink); padding-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.contacts__grid dt { font-size: var(--fs-s); color: var(--c-muted); }
.contacts__grid dd { font-size: var(--fs-m); font-weight: 560; color: var(--c-ink); overflow-wrap: anywhere; line-height: 1.6; }
.contacts__grid dd .lnk { font-size: var(--fs-l); }
.contacts__grid dd .lnk--small { font-size: var(--fs-s); display: inline-block; margin-top: var(--s-2); line-height: 44px; padding-bottom: 0; background-position: 0 80%; }
@media (min-width: 768px) { .contacts__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
@media (min-width: 1200px) { .contacts__grid { grid-template-columns: 1fr 1.3fr 1fr 1fr; } }

/* Политика */
.privacy { padding-block: var(--s-8); background: var(--c-ground-2); border-top: 1px solid var(--c-line); }
.privacy h2 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.privacy p { max-width: 46em; font-size: var(--fs-s); }

/* Подвал */
.ftr { background: var(--c-navy-deep); color: var(--c-on-navy); padding-block: var(--s-7); font-size: var(--fs-s); }
.ftr__grid { display: grid; gap: var(--s-5); align-items: center; }
.ftr__logo { width: 140px; }
.ftr__info { display: flex; flex-direction: column; gap: var(--s-2); color: var(--c-on-navy-muted); }
.ftr__info p:last-child { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.ftr__info a, .ftr__links a { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 75%; padding-bottom: 0; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.ftr :focus-visible { outline-color: var(--c-yellow); box-shadow: none; }
@media (min-width: 1024px) { .ftr__grid { grid-template-columns: auto 1fr auto; gap: var(--s-7); } }
