/* =========================================================
   Автошкола «Сова» — design system
   Aesthetic: warm editorial × instrument cluster
   Ink & paper, single amber accent lifted from the owl mark.
   ========================================================= */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* surfaces */
  --ink:        #14120F;
  --ink-2:      #1D1A16;
  --ink-3:      #2A251F;
  --paper:      #F7F4EE;
  --paper-2:    #EFEAE0;
  --white:      #FFFFFF;

  /* text */
  --txt:        #14120F;
  --txt-2:      #57514A;
  --txt-3:      #837B71;
  --txt-on-ink: #F7F4EE;
  --txt-on-ink-2: #A8A096;

  /* accent — sampled from the logo owl */
  --acc:        #F0A000;
  --acc-hi:     #FFB824;
  --acc-deep:   #C87C00;
  --acc-wash:   #FDF3DE;

  /* lines */
  --line:       #DED7CA;
  --line-2:     #C9C0AF;
  --line-ink:   #332D26;
  --line-ink-2: #453D33;

  /* type */
  --f-head: 'Onest', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* radii */
  --r-s:  8px;
  --r-m:  14px;
  --r-l:  22px;
  --r-xl: 32px;
  --r-pill: 100px;

  /* rhythm */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* motion */
  --ease-out:  cubic-bezier(.23, 1, .32, 1);
  --ease-io:   cubic-bezier(.77, 0, .175, 1);
  --ease-draw: cubic-bezier(.32, .72, 0, 1);
  --t-fast: 140ms;
  --t-mid:  220ms;
  --t-slow: 420ms;

  /* depth */
  --sh-s: 0 1px 2px rgba(20,18,15,.05);
  --sh-m: 0 8px 24px -8px rgba(20,18,15,.14), 0 2px 6px rgba(20,18,15,.05);
  --sh-l: 0 28px 64px -24px rgba(20,18,15,.28), 0 8px 20px -12px rgba(20,18,15,.16);

  --wrap: 1220px;

  /* signature motion — the gear lever is allowed to feel weighty */
  --t-gear: 340ms;

  /* paper grain: a whisper of texture so flat fills don't read as plastic */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--txt);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .035;
  background-image: var(--grain);
  background-size: 160px 160px;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.08; letter-spacing: -.022em; }
dl, dd { margin: 0; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--acc); color: var(--ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-s);
}
.skip:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Typography helpers ─────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--txt-2);
  margin-bottom: var(--sp-4);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
}
.eyebrow--light { color: var(--txt-on-ink-2); }

.h2 {
  font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: -.03em;
  line-height: 1.04;
}
.h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -.02em;
}

.link {
  color: var(--acc-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--txt); }
}

.ticks { display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--txt-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .48em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--acc-deep);
  border-bottom: 2px solid var(--acc-deep);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: background var(--t-fast) ease,
              color var(--t-fast) ease,
              transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(.972); }
.btn--lg { min-height: 54px; padding: 16px 30px; font-size: 16.5px; }

.btn--primary {
  --btn-bg: var(--acc);
  --btn-fg: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, var(--sh-s);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --btn-bg: var(--acc-hi); box-shadow: 0 0 0 4px rgba(240,160,0,.18), var(--sh-s); }
}

.btn--accent {
  --btn-bg: var(--acc);
  --btn-fg: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { --btn-bg: var(--acc-hi); }
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { --btn-bg: var(--ink-3); }
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--txt);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { --btn-bg: rgba(20,18,15,.045); box-shadow: inset 0 0 0 1.5px var(--txt-3); }
}

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { --btn-bg: var(--white); }
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--txt-on-ink);
  box-shadow: inset 0 0 0 1.5px var(--line-ink-2);
}
@media (hover: hover) and (pointer: fine) {
  .btn--outline-light:hover { --btn-bg: rgba(247,244,238,.07); box-shadow: inset 0 0 0 1.5px var(--txt-on-ink-2); }
}

.ico {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ico { transform: translateX(3px); }
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--txt-2);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--acc { background: var(--acc-wash); color: var(--acc-deep); }

/* ── Header ─────────────────────────────────────────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,238,.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) ease, background var(--t-mid) ease;
}
.hdr.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247,244,238,.94);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px clamp(18px, 4vw, 40px);
  min-height: 76px;
  transition: min-height var(--t-mid) var(--ease-out);
}
.hdr.is-stuck .hdr__in { min-height: 68px; }

.brand { flex: none; display: block; }
.brand img {
  width: auto;
  height: 42px;
  transition: height var(--t-mid) var(--ease-out);
}
.hdr.is-stuck .brand img { height: 36px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--r-s);
  font-size: 15px;
  font-weight: 600;
  color: var(--txt-2);
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 1.5px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--txt); }
  .nav a:hover::after { transform: scaleX(1); }
}

.hdr__act {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex: none;
}
.hdr__tel { display: grid; gap: 1px; text-align: right; }
.hdr__tel-num {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color var(--t-fast) ease;
}
.hdr__tel-sub { font-size: 11.5px; color: var(--txt-3); line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
  .hdr__tel:hover .hdr__tel-num { color: var(--acc-deep); }
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.burger:active { transform: scale(.94); }
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast) ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.mnav {
  display: grid;
  gap: 2px;
  padding: 8px clamp(18px, 4vw, 40px) 22px;
  border-top: 1px solid var(--line);
  animation: mnavIn var(--t-mid) var(--ease-out) both;
}
/* the class rule above would otherwise beat the UA [hidden] style */
.mnav[hidden] { display: none; }
/* never render the mobile panel on desktop, even if state is stale */
@media (min-width: 901px) {
  .mnav { display: none; }
}
@keyframes mnavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.mnav a {
  padding: 13px 4px;
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  border-bottom: 1px solid var(--line);
}
.mnav a:last-child { border-bottom: 0; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 60px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 62%;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(240,160,0,.13), transparent 68%),
    radial-gradient(600px 340px at 8% 0%, rgba(240,160,0,.06), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero__copy { min-width: 0; }

.hero__t {
  font-size: clamp(38px, 6.1vw, 76px);
  line-height: .99;
  letter-spacing: -.038em;
  font-weight: 600;
  margin-bottom: var(--sp-5);
}
.hero__t em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
  /* without a stacking context the z-index:-1 highlight falls behind body's
     paper fill and is never visible */
  isolation: isolate;
}
.hero__t em::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: .06em;
  height: .28em;
  background: var(--acc);
  opacity: .34;
  border-radius: 2px;
  z-index: -1;
  transform-origin: left;
  animation: markIn 620ms var(--ease-out) 260ms both;
}
@keyframes markIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__lead {
  max-width: 50ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.62;
  color: var(--txt-2);
  margin-bottom: var(--sp-6);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__notes {
  display: grid;
  gap: 9px;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero__notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--txt-2);
  line-height: 1.45;
}
.hero__notes .ico {
  width: 16px; height: 16px;
  margin-top: 3px;
  color: var(--acc-deep);
  stroke-width: 2.4;
}

.hero__media {
  position: relative;
  min-width: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-l);
  aspect-ratio: 4 / 3.5;
  background: var(--paper-2);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  pointer-events: none;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transform: scale(1.02);
  animation: heroImg 900ms var(--ease-out) both;
}
@keyframes heroImg {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1.02); }
}
.hero__cap {
  position: absolute;
  left: 16px; bottom: 16px;
  display: grid;
  gap: 1px;
  padding: 11px 18px;
  border-radius: var(--r-m);
  background: rgba(20,18,15,.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: var(--txt-on-ink);
}
.hero__cap-k {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
}
.hero__cap-v { font-family: var(--f-head); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* stats strip */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stats__i {
  display: grid;
  gap: 3px;
  padding: 22px clamp(0px, 1.6vw, 20px);
  background: var(--paper);
}
.stats__i:first-child { padding-left: 0; }
.stats__i > dt {
  font-family: var(--f-head);
  font-size: clamp(24px, 2.9vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats__i > dd {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--txt-3);
  max-width: 22ch;
}

/* ── Section shell ──────────────────────────────────────── */
.sect { padding: clamp(56px, 8vw, 108px) 0; }
.sect--paper { background: var(--paper-2); }
.sect--ink {
  background: var(--ink);
  color: var(--txt-on-ink);
}
.sect--ink .h2, .sect--ink .h3 { color: var(--txt-on-ink); }
.sect--ink .ticks li { color: var(--txt-on-ink-2); }
.sect--ink .ticks li::before { border-color: var(--acc); }

.sect__head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.sect__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: end;
}
.sect__sub {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--txt-2);
  max-width: 46ch;
  padding-bottom: 6px;
}
.sect__sub--light { color: var(--txt-on-ink-2); }

/* ── Advantages ─────────────────────────────────────────── */
.adv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.adv__i {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 34px) clamp(16px, 2vw, 28px);
  background: var(--paper-2);
  transition: background var(--t-mid) ease;
}
.adv__i:first-child { padding-left: 0; }
.adv__i:last-child { padding-right: 0; }
.adv__i::after {
  content: "";
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  bottom: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.adv__i:first-child::after { left: 0; }
.adv__i:last-child::after { right: 0; }
@media (hover: hover) and (pointer: fine) {
  .adv__i:hover { background: var(--paper); }
  .adv__i:hover::after { transform: scaleX(1); }
}
.adv__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.adv__ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--acc-wash);
  color: var(--acc-deep);
  box-shadow: inset 0 0 0 1px rgba(200,124,0,.14);
  transition: background var(--t-mid) ease, color var(--t-mid) ease;
}
.adv__ico .ico { width: 22px; height: 22px; stroke-width: 1.7; }
@media (hover: hover) and (pointer: fine) {
  .adv__i:hover .adv__ico { background: var(--acc); color: var(--ink); }
}
.adv__n {
  font-family: var(--f-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--acc-deep);
  font-variant-numeric: tabular-nums;
}
.adv__i h3 {
  font-size: clamp(19px, 1.7vw, 22px);
  letter-spacing: -.02em;
}
.adv__i p {
  font-size: 15px;
  line-height: 1.58;
  color: var(--txt-2);
}

/* ── Categories ─────────────────────────────────────────── */
.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 34px);
}
.cat {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), border-color var(--t-mid) ease;
}
@media (hover: hover) and (pointer: fine) {
  .cat:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-m);
    border-color: var(--line-2);
  }
}
.cat__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.cat__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cat:hover .cat__media img { transform: scale(1.035); }
}
.cat__badge {
  position: absolute;
  top: 14px; left: 14px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--ink);
  font-family: var(--f-head);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 2px 10px rgba(20,18,15,.2);
}
.cat__body {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: clamp(22px, 2.4vw, 32px);
}
.cat__price {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--acc-deep);
}
.cat__d {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--txt-2);
}
.cat__foot { padding-top: var(--sp-3); }

/* ── Steps (program / exam) ─────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-ink);
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
}
.steps--light {
  background: var(--line);
  border-color: var(--line);
}
.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2.2vw, 32px);
  background: var(--ink);
}
.steps--light .step { background: var(--paper); }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.step__ico {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(240,160,0,.12);
  color: var(--acc);
  box-shadow: inset 0 0 0 1px rgba(240,160,0,.22);
}
.step__ico .ico { width: 20px; height: 20px; }
.steps--light .step__ico {
  background: var(--acc-wash);
  color: var(--acc-deep);
  box-shadow: inset 0 0 0 1px rgba(200,124,0,.16);
}
.step__n {
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--acc);
}
.steps--light .step__n { color: var(--acc-deep); }
.step h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  letter-spacing: -.02em;
  color: var(--txt-on-ink);
}
.steps--light .step h3 { color: var(--txt); }
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--txt-on-ink-2);
}
.steps--light .step p { color: var(--txt-2); }

/* prog note */
.prog-note {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
}
.prog-note__txt { min-width: 0; display: grid; gap: var(--sp-3); }
.prog-note__txt p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--txt-on-ink-2);
  max-width: 48ch;
}
.prog-note__media {
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line-ink);
}
.prog-note__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   TARIFFS — signature gear-shift selector
   ========================================================= */
.tariffs { position: relative; }

.cat-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: clamp(24px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.cat-tab {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  color: var(--txt-2);
  transition: background var(--t-mid) var(--ease-out),
              color var(--t-fast) ease,
              transform var(--t-fast) var(--ease-out);
}
.cat-tab:active { transform: scale(.97); }
.cat-tab.is-on {
  background: var(--ink);
  color: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .cat-tab:not(.is-on):hover { color: var(--txt); background: rgba(20,18,15,.05); }
}

/* rail */
.gear__rail {
  position: relative;
  display: grid;
  /* minmax(0, 1fr) — иначе длинное «Максимальный» раздувает свою колонку
     и центры гейтов перестают совпадать с 12.5 / 37.5 / 62.5 / 87.5 % */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: clamp(22px, 3vw, 34px);
  padding: 0 0 20px;
}
.gear__track {
  position: absolute;
  /* gate centres sit at 12.5% / 37.5% / 62.5% / 87.5% — the rail must not
     overshoot past the first and last gate */
  left: 12.5%; right: 12.5%;
  top: 15px;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
/* knob */
.gear__knob {
  position: absolute;
  top: 0;
  /* no-JS fallback: sits on gate 2 («Стандарт»); JS resets left to 0 and drives --x */
  left: calc(37.5% - 16px);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(20,18,15,.28);
  z-index: 2;
  transform: translate3d(var(--x, 0px), 0, 0);
  transition: transform var(--t-gear) var(--ease-io);
  pointer-events: none;
}
.gear__knob span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--acc);
  transform: scale(.55);
  transition: transform var(--t-mid) var(--ease-out);
}
.gear__knob.is-moving span { transform: scale(1); }

.gear__gate {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0 6px;
  z-index: 1;
  border-radius: var(--r-m);
  transition: opacity var(--t-mid) ease;
}
.gear__gate .gear__pos {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--txt-3);
  font-family: var(--f-head);
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background var(--t-mid) ease, color var(--t-mid) ease;
}
.gear__gate .gear__name {
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--txt-3);
  transition: color var(--t-mid) ease;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}
.gear__gate .gear__price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt-3);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-mid) ease;
}
.gear__gate[aria-pressed="true"] .gear__pos { background: var(--ink); color: var(--paper); }
.gear__gate[aria-pressed="true"] .gear__name { color: var(--txt); }
.gear__gate[aria-pressed="true"] .gear__price { color: var(--acc-deep); }
@media (hover: hover) and (pointer: fine) {
  .gear__gate:hover .gear__name { color: var(--txt); }
  .gear__gate:hover .gear__pos { background: var(--line-2); color: var(--txt-2); }
  .gear__gate[aria-pressed="true"]:hover .gear__pos { background: var(--ink); color: var(--paper); }
}

/* viewport / slides */
.gear__view { position: relative; }
.gear__slides {
  position: relative;
  display: grid;
}
.tar {
  grid-area: 1 / 1;
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--t-mid) var(--ease-out),
              transform var(--t-mid) var(--ease-out),
              visibility 0s linear var(--t-mid);
  pointer-events: none;
}
.tar.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
  pointer-events: auto;
}
.tar__main {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: clamp(24px, 3.2vw, 44px);
  max-width: 760px;
}
.tar__tag {
  justify-self: start;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--acc-wash);
  color: var(--acc-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tar__h {
  font-size: clamp(23px, 2.6vw, 32px);
  letter-spacing: -.028em;
}
.tar__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-head);
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tar__price span {
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.tar__d {
  font-size: 16px;
  line-height: 1.6;
  color: var(--txt-2);
  max-width: 52ch;
  margin-bottom: var(--sp-1);
}
.tar__main .btn { justify-self: start; margin-top: var(--sp-3); }
.tar--wide .tar__main { max-width: none; }

.gear--single .gear__view { max-width: 760px; }

.tariffs__note {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--txt-3);
  max-width: 76ch;
}

/* ── Fleet ──────────────────────────────────────────────── */
.fleet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.car {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .car:hover { transform: translateY(-3px); box-shadow: var(--sh-m); }
}
.car__img { overflow: hidden; background: var(--paper-2); }
.car__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .car:hover .car__img img { transform: scale(1.04); }
}
.car__body {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px;
}
.car__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.car__top h3 {
  font-size: 19px;
  letter-spacing: -.02em;
}
.car__body > p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--txt-2);
}
.car__meta {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 13.5px !important;
  color: var(--txt-3) !important;
}
.car__meta b { color: var(--txt-2); font-weight: 800; }

.fleet__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: clamp(24px, 3vw, 38px);
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
  border-radius: var(--r-l);
  background: var(--ink);
  color: var(--txt-on-ink);
}
.fleet__band p {
  font-size: 16px;
  line-height: 1.58;
  max-width: 62ch;
  color: var(--txt-on-ink-2);
}
.fleet__band b { color: var(--txt-on-ink); font-weight: 800; }
.fleet__band .btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .fleet__band .btn:hover { --btn-bg: var(--acc); }
}

/* ── Instructors ────────────────────────────────────────── */
.ins {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.ins__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-m);
}
.ins__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 50% 40%;
}
.ins__copy { min-width: 0; }
.ins__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--txt-2);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
  max-width: 52ch;
}
.ins__list { display: grid; gap: var(--sp-4); }
.ins__list li {
  padding-left: var(--sp-4);
  border-left: 2px solid var(--acc);
}
.ins__list h3 {
  font-size: 17.5px;
  letter-spacing: -.015em;
  margin-bottom: 3px;
}
.ins__list p {
  font-size: 15px;
  line-height: 1.58;
  color: var(--txt-2);
}

/* ── Exam bar ───────────────────────────────────────────── */
.exam-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.exam-bar__i { display: grid; gap: 7px; }
.exam-bar__ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--acc-wash);
  color: var(--acc-deep);
  margin-bottom: 4px;
}
.exam-bar__ico .ico { width: 20px; height: 20px; }
.exam-bar__k {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc-deep);
}
.exam-bar__i p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--txt-2);
  max-width: 48ch;
}

/* ── Discounts ──────────────────────────────────────────── */
.disc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.disc__i {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-l);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color var(--t-mid) ease, transform var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .disc__i:hover { border-color: var(--acc); transform: translateY(-2px); }
}
.disc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.disc__ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--acc-wash);
  color: var(--acc-deep);
  transition: background var(--t-mid) ease, color var(--t-mid) ease;
}
.disc__ico .ico { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .disc__i:hover .disc__ico { background: var(--acc); color: var(--ink); }
}
.disc__v {
  font-family: var(--f-head);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--acc-deep);
  font-variant-numeric: tabular-nums;
}
.disc__i h3 {
  font-size: 16.5px;
  letter-spacing: -.015em;
  margin-top: 4px;
}
.disc__i p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--txt-2);
}

/* ── Trial band ─────────────────────────────────────────── */
.trial {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--ink-2);
  color: var(--txt-on-ink);
  overflow: hidden;
}
.trial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 400px at 82% 40%, rgba(240,160,0,.16), transparent 66%);
  pointer-events: none;
}
/* Oversized route icon bleeding off the left edge, clipped by the section's
   overflow. Purely ornamental — sits behind the copy. */
.trial__deco {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(-260px, -15vw, -120px);
  height: 100%;
  width: auto;
  opacity: .26;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .trial__deco {
    left: -34%;
    height: 92%;
    top: 4%;
    opacity: .16;
  }
}
.trial__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.trial__copy { min-width: 0; }
.trial__lead {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--txt-on-ink-2);
  max-width: 46ch;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.trial__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
}
.trial__tel {
  font-family: var(--f-head);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  letter-spacing: -.02em;
  border-bottom: 2px solid var(--line-ink-2);
  padding-bottom: 2px;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .trial__tel:hover { border-color: var(--acc); color: var(--acc); }
}
.trial__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-l);
}
.trial__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Reviews ────────────────────────────────────────────── */
.rev-wrap {
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.rev-frame {
  width: 100%;
  height: 560px;
  border: 0;
}
.rev-fallback {
  padding: var(--sp-5);
  font-size: 15px;
  color: var(--txt-2);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.faq__i {
  background: var(--paper-2);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 20px 0;
  font-family: var(--f-head);
  font-size: clamp(16.5px, 1.7vw, 19px);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color var(--t-fast) ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chev {
  width: 18px; height: 18px;
  flex: none;
  color: var(--acc-deep);
  transform: rotate(90deg);
  transition: transform var(--t-mid) var(--ease-out);
}
.faq__i[open] .faq__chev { transform: rotate(-90deg); }
@media (hover: hover) and (pointer: fine) {
  .faq__q:hover { color: var(--acc-deep); }
}
.faq__a {
  padding: 0 0 22px;
  max-width: 78ch;
}
.faq__a p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--txt-2);
}
.faq__i[open] .faq__a { animation: faqIn var(--t-mid) var(--ease-out) both; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ── Contacts ───────────────────────────────────────────── */
.cont {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.cont__copy { min-width: 0; }
.cont__lead {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--txt-on-ink-2);
  max-width: 44ch;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.cont__list {
  display: grid;
  gap: 1px;
  margin-bottom: var(--sp-6);
  background: var(--line-ink);
  border-block: 1px solid var(--line-ink);
}
.cont__list > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--sp-4);
  align-items: baseline;
  padding: 14px 0;
  background: var(--ink);
}
.cont__list dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-on-ink-2);
}
.cont__ico {
  width: 15px; height: 15px;
  flex: none;
  color: var(--acc);
  stroke-width: 1.9;
}
.cont__list dd {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.cont__list dd a {
  transition: color var(--t-fast) ease;
  border-bottom: 1px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
  .cont__list dd a:hover { color: var(--acc); border-bottom-color: var(--acc); }
}

.cont__map-in {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-l);
  background: var(--ink-2);
  border: 1px solid var(--line-ink);
  min-height: 340px;
}
.cont__map-k {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-on-ink-2);
}
.cont__map-v {
  font-family: var(--f-head);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.24;
}
.cont__map-act {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.cont__map-note {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-ink);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--txt-on-ink-2);
}

/* ── Footer ─────────────────────────────────────────────── */
.ftr {
  padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 32px);
  background: var(--ink);
  color: var(--txt-on-ink);
  border-top: 1px solid var(--line-ink);
}
.ftr__in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-ink);
}
.ftr__brand { min-width: 0; }
.ftr__brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--sp-4);
  opacity: .95;
}
.ftr__brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--txt-on-ink-2);
  max-width: 34ch;
}
.ftr__nav {
  display: grid;
  align-content: start;
  gap: 11px;
}
.ftr__nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--txt-on-ink-2);
  transition: color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
  justify-self: start;
}
@media (hover: hover) and (pointer: fine) {
  .ftr__nav a:hover { color: var(--acc); transform: translateX(2px); }
}
.ftr__cont {
  display: grid;
  align-content: start;
  gap: 11px;
}
.ftr__cont a {
  font-family: var(--f-head);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color var(--t-fast) ease;
}
.ftr__cont a:nth-child(n+2) { font-family: var(--f-body); font-size: 14.5px; font-weight: 600; color: var(--txt-on-ink-2); }
@media (hover: hover) and (pointer: fine) {
  .ftr__cont a:hover { color: var(--acc); }
}
.ftr__cont p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--txt-3);
}
.ftr__low {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
}
.ftr__low p {
  font-size: 12.5px;
  color: #7C746A;
}

/* ── Dialog ─────────────────────────────────────────────── */
.dlg {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.dlg::backdrop {
  background: rgba(20,18,15,.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dlg[open] { animation: dlgIn var(--t-mid) var(--ease-out) both; }
.dlg[open]::backdrop { animation: fadeIn var(--t-mid) ease both; }
@keyframes dlgIn {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dlg__box {
  position: relative;
  padding: clamp(24px, 3.6vw, 44px);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-l);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dlg__x {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--txt-2);
  transition: background var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.dlg__x svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.dlg__x:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) {
  .dlg__x:hover { background: var(--ink); color: var(--paper); }
}
.dlg__h {
  font-size: clamp(25px, 3.2vw, 34px);
  margin-bottom: var(--sp-3);
}
.dlg__lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--txt-2);
  max-width: 48ch;
  margin-bottom: var(--sp-6);
}
.dlg__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dlg__link {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--t-mid) ease,
              transform var(--t-mid) var(--ease-out),
              background var(--t-mid) ease;
}
.dlg__link--main {
  grid-column: span 2;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--txt-on-ink);
}
.dlg__link:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .dlg__link:hover { border-color: var(--acc); transform: translateY(-2px); }
  .dlg__link--main:hover { background: var(--ink-3); border-color: var(--acc); }
}
.dlg__link-k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.dlg__ico {
  width: 13px; height: 13px;
  flex: none;
  stroke-width: 2;
}
.dlg__link--main .dlg__link-k { color: var(--acc); }
.dlg__link-v {
  font-family: var(--f-head);
  font-size: clamp(16px, 1.9vw, 21px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
  word-break: break-word;
}
.dlg__link-n {
  font-size: 12.5px;
  color: var(--txt-3);
  margin-top: 2px;
}
.dlg__link--main .dlg__link-n { color: var(--txt-on-ink-2); }
.dlg__foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--txt-3);
}

/* ── Quick action bar (mobile) ──────────────────────────── */
.quick {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(247,244,238,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.quick__i {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 700;
  background: var(--paper-2);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) ease;
}
.quick__i:first-child { background: var(--acc); color: var(--ink); }
.quick__i:active { transform: scale(.97); }
.quick__i svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Scroll reveal ──────────────────────────────────────── */
.js-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ═════════════════════════════════════════════════════════
   Responsive
   ═════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .hdr__tel { display: none; }
  .nav a { padding: 9px 10px; font-size: 14.5px; }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__i:nth-child(2) { padding-right: 0; }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .adv__i:nth-child(2) { padding-right: 0; }
  .adv__i:nth-child(3) { padding-left: 0; }
  .disc { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__act { margin-left: auto; }
  .hdr__act .btn { display: none; }

  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  /* headline first on small screens — the image must never push the h1
     below the fold */
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__lead { max-width: none; }

  .sect__head--split { grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
  .sect__sub { max-width: none; padding-bottom: 0; }

  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0; }
  .step + .step { border-top: 1px solid var(--line-ink); }
  .steps--light .step + .step { border-top-color: var(--line); }
  .prog-note { grid-template-columns: 1fr; }
  .prog-note__media { order: -1; }

  .ins { grid-template-columns: 1fr; }
  .ins__media img { aspect-ratio: 16 / 10; }

  .trial__in { grid-template-columns: 1fr; }
  .trial__media { order: -1; }
  .trial__media img { aspect-ratio: 16 / 10; }

  .cont { grid-template-columns: 1fr; }
  .cont__map-in { min-height: 0; }

  /* Two columns: the brand spans the full row, nav + contacts share the
     second row. The paragraph is allowed to fill the row so the wide
     brand cell does not leave a dead gap on the right. */
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: span 2; }
  .ftr__brand p { max-width: none; }

  .exam-bar { grid-template-columns: 1fr; gap: var(--sp-5); }

  .quick { display: grid; }
  body { padding-bottom: 70px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 76px; }

  .hero { padding-top: 26px; }
  .hero__t { font-size: clamp(34px, 9.4vw, 46px); }
  .hero__lead { font-size: 16px; }
  .hero__media { aspect-ratio: 16 / 11; }
  .hero__cap { left: 12px; bottom: 12px; padding: 9px 14px; }

  .hdr__in { min-height: 66px; }
  .brand img { height: 34px; }
  .hdr.is-stuck .brand img { height: 30px; }

  .gear__rail { padding-bottom: 14px; }
  .gear__track { left: 12.5%; right: 12.5%; top: 13px; }
  .gear__knob { width: 28px; height: 28px; }
  .gear__knob span { inset: 7px; }
  .gear__gate { padding: 0 3px; }
  .gear__gate .gear__pos { width: 28px; height: 28px; font-size: 12px; }
  .gear__gate .gear__name { font-size: 12px; }
  .gear__gate .gear__price { font-size: 11.5px; }

  .dlg__links { grid-template-columns: 1fr; }
  .dlg__link--main { grid-column: span 1; }

  .rev-frame { height: 460px; }

  .cont__list > div { grid-template-columns: 1fr; gap: 3px; }

  .faq__q { padding: 17px 0; gap: 12px; }
  .faq__a { padding-bottom: 18px; }

  .ftr__in { grid-template-columns: 1fr; }
  .ftr__brand { grid-column: span 1; }
  .ftr__low { flex-direction: column; gap: 6px; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__i { padding: 16px 0; }
  .stats__i:nth-child(odd) { padding-right: 12px; }
  .stats__i > dt { font-size: 24px; }
  .stats__i > dd { font-size: 12.5px; }

  .adv { grid-template-columns: 1fr; }
  .adv__i { padding: 20px 0; }
  .adv__i + .adv__i { border-top: 1px solid var(--line); }
  .adv__i::after { display: none; }
  .adv__ico { width: 40px; height: 40px; border-radius: 12px; }
  .adv__ico .ico { width: 20px; height: 20px; }

  .step__ico { width: 34px; height: 34px; border-radius: 10px; }
  .step__ico .ico { width: 18px; height: 18px; }

  .disc__ico { width: 36px; height: 36px; border-radius: 11px; }
  .disc__ico .ico { width: 18px; height: 18px; }

  .disc { grid-template-columns: 1fr; }
  .fleet { grid-template-columns: 1fr; }

  .hero__cta { gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .hero__notes { gap: 11px; }

  .cat-tabs { width: 100%; }
  .cat-tab { flex: 1; padding: 10px 12px; font-size: 14px; }

  /* «Максимальный» переносится в две строки — фиксируем высоту подписи,
     чтобы цены во всех четырёх гейтах стояли на одной линии */
  .gear__gate .gear__name {
    min-height: 2.5em;
    display: grid;
    align-content: start;
  }

  .fleet__band .btn { width: 100%; }
  .tar__main .btn { width: 100%; justify-self: stretch; }
  .trial__cta { gap: var(--sp-4); }
  .trial__cta .btn { width: 100%; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@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; }
  .hero__img { animation: none; transform: none; }
  .hero__t em::after { animation: none; }
  .gear__knob { transition: none; }
  .btn:hover .ico { transform: none; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .hdr, .quick, .dlg, .rev-wrap, .trial { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
}
