/* ПИТ-СТОП: the well-kept board. Tokens first; everything below references them.
   Every colour of the site lives in this first block (palette «Петроль и сталь»: petrol and cold steel;
   the other palettes are in tools/themes.mjs). Sections pick their ground from it: :root is the light stone,
   .tone the deeper steel, .dark the petrol, .studio the near-black of the first screen. */
:root {
  /* light stone: the page itself */
  --light-bg: #dde3e6;
  --light-surface: #cfd7db;
  --light-surface-2: #c1cbd0;
  --light-ink: #0f1d24;
  --light-muted: #38474f;
  --light-paper: #f3f6f7;
  --light-paper-ink: #0f1d24;
  /* the deeper stone of every other light section */
  --tone-bg: #cdd6db;
  --tone-surface: #bfc9cf;
  --tone-surface-2: #b2bec5;
  /* graphite sections: the service, the footer */
  --dark-bg: #102630;
  --dark-surface: #173440;
  --dark-surface-2: #1f404d;
  --dark-ink: #eef3f5;
  --dark-muted: #a9bdc6;
  --dark-paper: #eef3f5;
  --dark-paper-ink: #0b1a21;
  /* the first screen: must stay as black as the car photo's own studio */
  --studio-bg: #0d1215;
  --studio-surface: #162027;
  --studio-surface-2: #1e2a32;

  /* the one accent and its relatives */
  --accent: #9fc4d7;
  --accent-hover: #b7d5e4;
  --accent-deep: #1c5a73;
  --accent-ink: #0b1a21;
  --accent-ink-2: #23404d;
  --accent-on-dark: #9fc4d7;
  --focus-light: #1c5a73;
  --focus-dark: #9fc4d7;
  --focus-cta: #0b1a21;
  --tab-count-on: #b9c9d1;
  --light-ink-hover: #20404d;
  --dark-ink-hover: #20404d;

  /* graphite panels on light ground: order bar, submit, aside cards, open symptom */
  --graphite: #102630;
  --graphite-hover: #1f404d;
  --on-graphite: #eef3f5;
  --on-graphite-2: #c6d4db;
  --on-graphite-3: #a9bdc6;
  --track: #33505c;

  /* lines, picked rows, form cells, hovers on paper */
  --line: #b6c2c8;
  --picked: #cde2ec;
  --cell: #e4eff4;
  --cell-ink: #0b1a21;
  --cell-placeholder: #3d535e;
  --cell-focus: #ffffff;
  --paper-hover: #fafcfc;
  --paper-hover-2: #fafcfc;

  /* the paper order document and its statuses */
  --doc-ink: #0f1d24;
  --doc-meta: #4c5f68;
  --doc-line: #d3dde2;
  --stamp: #1c5a73;
  --stamp-ink: #1c5a73;
  --danger: #b3261e;
  --warning: #8a5a00;
  --warning-dot: #c98a00;
  --success: #2e6b34;
  --success-dot: #2e7d32;

  /* the car drawing on /services/ */
  --car-shadow: #b6c2c8;
  --car-body: #1b2c35;
  --car-line: #2d434f;
  --car-glass: #6f8a99;
  --car-part: #243843;
  --car-detail: #3a5260;
  --car-light: #e6f0f4;
  --car-metal: #8a9aa3;
  --car-tire: #0b1318;
  --car-disc: #9aa8b0;
  --car-caliper: #c0503f;
  --car-hover-body: #1d4a5c;
  --car-hover-glass: #8fb0c0;
  --car-hover-light: #f0f7fa;
  --car-hover-tire: #183340;
  --car-on-light: #ffe08a;

  /* the footer mark: four blocks and the letters knocked out of them */
  --mark-1: #9fc4d7;
  --mark-2: #eef3f5;
  --mark-3: #1f404d;
  --mark-4: #1c5a73;
  --mark-ink-1: #0b1a21;
  --mark-ink-2: #0b1a21;
  --mark-ink-3: #eef3f5;
  --mark-ink-4: #eef3f5;

  /* the roles every rule reads; sections below re-point them */
  --bg: var(--light-bg);
  --surface: var(--light-surface);
  --surface-2: var(--light-surface-2);
  --ink: var(--light-ink);
  --muted: var(--light-muted);
  --paper: var(--light-paper);
  --paper-ink: var(--light-paper-ink);
  --ink-hover: var(--light-ink-hover);
  --focus: var(--focus-light);

  --font: "Onest", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: 1.375rem;
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);

  --gap: 12px;
  --margin: clamp(12px, 1.6vw, 24px);
  --section: clamp(7.5rem, 11vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;

  color-scheme: light;
}

/* graphite "studio" sections: the first screen, the service, the footer */
.dark {
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --surface-2: var(--dark-surface-2);
  --ink: var(--dark-ink);
  --muted: var(--dark-muted);
  --paper: var(--dark-paper);
  --paper-ink: var(--dark-paper-ink);
  --ink-hover: var(--dark-ink-hover);
  --focus: var(--focus-dark);
  background: var(--bg); color: var(--ink); color-scheme: dark;
}
/* a deeper stone for every other light section */
.tone {
  --bg: var(--tone-bg);
  --surface: var(--tone-surface);
  --surface-2: var(--tone-surface-2);
  background: var(--bg);
}
.section.tone { margin-top: var(--section); padding-bottom: var(--section); }
.section.tone + .section { padding-top: var(--section); }
.section.tone + .section.dark { margin-top: 0; }

/* the first screen is set in the studio's own black, so the car photo needs no cut-out and stays sharp */
.studio {
  --bg: var(--studio-bg);
  --surface: var(--studio-surface);
  --surface-2: var(--studio-surface-2);
}

/* colours drawn into inline SVG follow the tokens too */
.logo path + path { fill: var(--accent); }
.gis-card__pin path { fill: var(--accent); }
.gis-card__pin circle { fill: var(--studio-bg); }
.mark .m1 { fill: var(--mark-1); } .mark .m2 { fill: var(--mark-2); } .mark .m3 { fill: var(--mark-3); } .mark .m4 { fill: var(--mark-4); }
.mark .i1 { fill: var(--mark-ink-1); } .mark .i2 { fill: var(--mark-ink-2); } .mark .i3 { fill: var(--mark-ink-3); } .mark .i4 { fill: var(--mark-ink-4); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
:target { scroll-margin-top: 24px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.head { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.04em; }
.lead { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.015em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* one treatment for every picture on the page */
.photo { filter: brightness(0.9) contrast(1.04); }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap;
  user-select: none; -webkit-user-select: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--ink { background: var(--paper-ink); color: var(--paper); }
.link {
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hover); }
  .button--ink:hover { background: var(--ink-hover); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ================= BAR: wordmark, links, phone, one action ================= */
.bar {
  display: flex; align-items: center; gap: 32px; padding: 16px var(--margin);
}
.bar__mark { display: inline-flex; align-items: center; gap: 12px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.logo { width: 36px; height: 36px; flex: none; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__brand .logo { width: 28px; height: 28px; }
.bar__nav { display: flex; gap: 28px; font-size: var(--step-body); }
.bar__tel { font-size: var(--step-body); font-weight: 500; text-decoration: none; white-space: nowrap; }
@media (max-width: 1080px) { .bar__nav { display: none; } }
@media (max-width: 620px) { .bar { gap: 16px; } .bar .button { display: none; } }

/* ================= HERO: the promise, the pains it closes, one picture ================= */
.hero {
  display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: 8px; align-items: stretch;
  min-height: calc(100svh - 80px); padding: 0 var(--margin);
}
.hero__text { display: flex; flex-direction: column; padding: clamp(32px, 6vh, 72px) 0 40px clamp(0px, 6.5vw, 120px); }
.hero__h { font-size: clamp(2.25rem, 0.4rem + 3.7vw, 4rem); line-height: 0.98; letter-spacing: -0.045em; }
.only-wide { display: inline; }
.hero__lead { margin-top: 28px; max-width: 40ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.button--big { min-height: 60px; padding: 0 2rem; font-size: var(--step-body); }
.pains { position: relative; z-index: 1; margin-top: auto; padding-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pains li { background: var(--surface); padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; font-size: var(--step-body); line-height: 1.45; }
.pains strong { font-weight: 600; line-height: 1.3; }
/* the car is blended onto the page ground in tools/images.py, so it needs no frame or fill */
.hero__pic { align-self: center; margin-right: calc(var(--margin) * -1); }
.hero { overflow-x: clip; }
.hero__pic img { width: 100%; height: auto; background: none; }
@media (min-width: 1081px) {
  .hero { overflow: hidden; }
  .hero__pic img { width: 118%; max-width: none; margin-left: -12%; }
}
@media (max-width: 1080px) {
  /* phone and tablet: headline, offer and action first, then the car, then the three answers */
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 24px var(--margin) 32px; }
  .hero__text { display: contents; }
  .hero__pic { order: 4; margin: 24px calc(var(--margin) * -1) 0; }
  .pains { order: 5; }
  .pains { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
}
@media (max-width: 620px) {
  .hero__h { font-size: 2.25rem; }
  .only-wide { display: none; }
  .hero__lead { font-size: var(--step-body); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .button--big { width: 100%; }
  .hero__call { align-items: center; text-align: center; }
}

/* ================= shared section frame ================= */
.section { padding: var(--section) var(--margin) 0; }
.section.dark { margin-top: var(--section); padding-bottom: var(--section); }
.section.dark + .section { padding-top: var(--section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head .head { max-width: 14ch; }
.soft { color: var(--muted); }

/* ================= PRICES: tabs and banded list ================= */
.prices__note { margin-top: 24px; max-width: 56ch; }
.prices__season { color: var(--accent-deep); }
.prices__body { margin-top: 56px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; }
.tab {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left;
  min-height: 64px; padding: 10px 16px; background: var(--surface); border-radius: var(--radius);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tab:active { transform: scale(0.98); }
.tab__name { font-size: var(--step-body); font-weight: 500; line-height: 1.2; }
.tab__count { font-size: var(--step-small); color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab[aria-selected="true"] .tab__count { color: var(--tab-count-on); }
@media (hover: hover) and (pointer: fine) { .tab:hover:not([aria-selected="true"]) { background: var(--surface-2); } }
.no-js .tabs { display: none; }

.cat + .cat { margin-top: 40px; }
.cat__title { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 16px; }
.js .cat__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.js .cat[hidden] { display: none; }
.js .cat + .cat { margin-top: 0; }
.js .is-all .cat + .cat { margin-top: 32px; }
.js .is-all .cat__title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.season-link { color: var(--accent-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; }
.bands { display: flex; flex-direction: column; gap: 4px; }
.band {
  display: grid; grid-template-columns: 22% minmax(0, 1fr) auto; align-items: center; column-gap: 24px;
  min-height: 76px; padding: 12px 12px 12px 20px; background: var(--surface);
}
.band:nth-child(even) { background: var(--surface-2); }
.band__title { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.band__link { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .band__link:hover { text-decoration: underline; text-decoration-color: var(--accent-deep); text-underline-offset: 0.2em; } }
.band__note { display: block; font-size: var(--step-small); color: var(--muted); font-weight: 400; margin-top: 2px; }
.band__price { font-size: var(--step-body); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add {
  display: none; min-height: 44px; min-width: 116px; padding: 0 14px; background: var(--ink); color: var(--bg); font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.js .add { display: inline-flex; align-items: center; justify-content: center; }
.add:active { transform: scale(0.96); }
.add[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .add:hover:not([aria-pressed="true"]) { background: var(--graphite-hover); } }

.order {
  display: none; margin-top: 12px; position: static; bottom: 12px; z-index: 2;
  background: var(--graphite); color: var(--on-graphite); padding: 18px 20px;
  grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
}
.js .order { display: grid; }
.js .order[data-empty="false"] { position: sticky; }
.order__sum { font-size: var(--step-body); font-weight: 500; font-variant-numeric: tabular-nums; }
.order__hint { font-size: var(--step-small); color: var(--on-graphite-2); margin-top: 2px; }
.order .button { background: var(--accent); color: var(--accent-ink); }
.order[data-empty="true"] .button { display: none; }
.order__clear { font-size: var(--step-small); text-decoration: underline; text-underline-offset: 0.2em; margin-left: 4px; }

@media (max-width: 1080px) {
  .band { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "price add"; row-gap: 8px; padding: 16px; }
  .band__title { grid-area: title; }
  .band__price { grid-area: price; }
  .add { grid-area: add; }
}
@media (max-width: 760px) {
  .prices__body { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .tabs { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tab { min-height: 60px; padding: 10px 12px; }
  .band { grid-template-areas: "title title" "price add"; }
  .order { grid-template-columns: minmax(0, 1fr); bottom: 8px; }
  .order .button { width: 100%; }
}

/* ================= HOW: three real documents of one visit ================= */
.how__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.how__intro > * { grid-column: 1 / span 6; }
.how__intro p { margin-top: 24px; }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; }
.step { background: var(--surface); padding: 24px; display: flex; flex-direction: column; }
.step h3 { margin-top: 28px; font-size: var(--step-lead); letter-spacing: -0.015em; }
.step p { margin-top: 8px; }
.how__note { margin-top: 16px; }
@media (min-width: 1081px) {
  .step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
}

/* the documents are the service's own paper, so they keep their own lines */
[data-ui].doc { background: var(--paper); color: var(--paper-ink); padding: 18px 18px 20px; min-height: 236px; font-size: var(--step-small); line-height: 1.4; }
[data-ui] .doc__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--doc-ink); font-weight: 600; font-size: var(--step-body); max-width: none; }
[data-ui] .doc__meta { font-weight: 400; font-size: var(--step-small); color: var(--doc-meta); text-align: right; }
[data-ui] .doc__list { margin: 0; padding: 0; list-style: none; }
[data-ui] .doc__list li { padding: 10px 0; border-bottom: 1px solid var(--doc-line); }
[data-ui] .doc__list--status li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; }
[data-ui] .st { font-weight: 600; white-space: nowrap; }
[data-ui] .st::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
[data-ui] .st--red { color: var(--danger); }
[data-ui] .st--red::before { background: var(--danger); }
[data-ui] .st--amber { color: var(--warning); }
[data-ui] .st--amber::before { background: var(--warning-dot); }
[data-ui] .st--green { color: var(--success); }
[data-ui] .st--green::before { background: var(--success-dot); }
[data-ui] .doc__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
[data-ui] .doc__table td { padding: 10px 0; border-bottom: 1px solid var(--doc-line); vertical-align: baseline; }
[data-ui] .doc__table td + td { text-align: right; white-space: nowrap; padding-left: 12px; }
[data-ui] .doc__table tfoot td { border-bottom: 0; font-weight: 600; font-size: var(--step-body); padding-top: 12px; }
[data-ui] .doc__stamp { display: inline-block; margin-top: 12px; padding: 6px 10px; border: 2px solid var(--stamp); color: var(--stamp-ink); font-weight: 600; transform: rotate(-2deg); }
@media (max-width: 1080px) {
  .how__intro > * { grid-column: 1 / span 10; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .step .doc { grid-row: span 2; }
  .step h3 { margin-top: 0; }
}
@media (max-width: 760px) {
  .how__intro > * { grid-column: 1 / -1; }
  .step { display: flex; padding: 16px; }
  .step h3 { margin-top: 20px; }
}

/* ================= ABOUT: how to get here — two live maps lead, the gate is a small extra ================= */
.about__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.about__head .head { grid-column: 1 / span 6; }
.about__lead { grid-column: 7 / -1; max-width: 40ch; }
.maps { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.map { display: flex; flex-direction: column; background: var(--surface); }
.map__frame { position: relative; height: clamp(320px, 34vw, 480px); background: var(--surface-2); overflow: hidden; }
.map__frame iframe, .map__frame .dg-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__hold { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; padding: 24px; color: var(--muted); }
.map__hold a { color: var(--ink); font-weight: 500; }
.map__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 20px; }
.map__name { font-weight: 600; font-size: var(--step-body); }
.about__more { margin-top: 32px; display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.about__gate { margin: 0; }
.about__gate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__gate figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; font-size: var(--step-body); }
.facts dt { color: var(--muted); font-size: var(--step-small); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.about__text { max-width: 46ch; }
@media (max-width: 900px) {
  .about__head .head, .about__lead { grid-column: 1 / -1; }
  .about__lead { margin-top: 20px; }
  .maps { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .map__frame { height: 320px; }
  .about__more { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .about__text { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .map__bar { flex-wrap: wrap; }
  .map__bar .button { flex: 1 1 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ================= FAQ: accordion of filled tiles ================= */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.faq__head { grid-column: 1 / span 4; position: sticky; top: 96px; }
.faq__head .head { max-width: 8ch; }
.faq__head p { margin-top: 20px; max-width: 28ch; }
.faq__list { grid-column: 5 / -1; display: flex; flex-direction: column; gap: 8px; }
.qa { background: var(--surface); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.qa summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.qa[open] { background: var(--accent); color: var(--accent-ink); }
.qa[open] .plus::after { transform: rotate(0deg); }
.qa__a { padding: 0 24px 24px; }
.qa__a p { max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .qa:not([open]):hover { background: var(--surface-2); } }
@media (max-width: 900px) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .faq__head { position: static; margin-bottom: 32px; }
  .faq__list { gap: 6px; }
  .qa summary { min-height: 64px; padding: 16px 20px; }
  .qa__a { padding: 0 20px 20px; }
}

/* ================= HISTORY: every generation of one model, running past ================= */
.history { overflow: hidden; }
.history__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.history__head .head { grid-column: 1 / span 7; }
.history__head p { grid-column: 8 / -1; max-width: 44ch; }
.models { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 6px; }
.model {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 9px 16px;
  background: var(--surface); color: var(--ink); text-align: left; font-weight: 500; font-size: var(--step-body); line-height: 1.2;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.model span { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.model:active { transform: scale(0.97); }
.model[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.model[aria-selected="true"] span { color: var(--accent-ink-2); }
@media (hover: hover) and (pointer: fine) { .model:hover:not([aria-selected="true"]) { background: var(--surface-2); } }
.timelines { margin: 32px calc(var(--margin) * -1) 0; }
.timeline + .timeline { margin-top: 40px; }
.timeline__name { padding: 0 var(--margin); margin-bottom: 16px; font-size: var(--step-lead); }
.track { display: flex; gap: 8px; width: max-content; padding: 0 var(--margin); list-style: none; margin: 0; }
.gen { flex: none; width: clamp(260px, 26vw, 400px); background: var(--surface); }
.gen img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.gen__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px 16px; max-width: none; }
.gen__code { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; }
.gen__years { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.js .timeline:not(.is-on) { display: none; }
.js .timeline + .timeline { margin-top: 0; }
.js .timeline__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.no-js .timelines, .js .timeline.is-static { overflow-x: auto; }
@media (max-width: 900px) {
  .history__head .head, .history__head p { grid-column: 1 / -1; }
  .history__head p { margin-top: 20px; }
}
@media (max-width: 620px) {
  .models { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--margin) * -1); padding-right: var(--margin); scrollbar-width: none; overscroll-behavior-x: contain; }
  .models::-webkit-scrollbar { display: none; }
  .model { flex: none; }
}

/* ================= CONTACT: photo strip, three-cell bar ================= */
.contact { --focus: var(--focus-cta); margin-top: 0; background: var(--accent); color: var(--accent-ink); min-height: 80svh; padding: 48px 0 72px; overflow: hidden; }
.contact__body { padding: 24px var(--margin) 0; }
.contact__body .head { max-width: 12ch; }
.contact__lead { margin-top: 20px; max-width: 48ch; }
.lead-form { margin-top: 40px; }
.cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.cell.cell--text { text-align: left; padding: 14px 18px; resize: none; line-height: 1.35; font-size: var(--step-body); }
.cell {
  height: 96px; width: 100%; border: 0; border-radius: var(--radius); background: var(--cell); color: var(--cell-ink);
  font-size: var(--step-lead); text-align: center; padding: 0 16px; outline-offset: -4px;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.cell::placeholder { color: var(--cell-placeholder); opacity: 1; }
.cell:focus { background: var(--cell-focus); }
.cell--submit { background: var(--graphite); color: var(--on-graphite); font-weight: 500; }
.cell--submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .cell--submit:hover { background: var(--graphite-hover); } }
.form-notes { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 8px; font-size: var(--step-small); }
.form-notes .n3 { grid-column: 3 / span 2; }
@media (max-width: 1080px) and (min-width: 761px) {
  .cells, .form-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--text, .cell--submit { grid-column: 1 / -1; }
  .form-notes .n3 { grid-column: 2; }
}
.form-notes a { font-weight: 500; }
.form-order { margin-top: 16px; max-width: 70ch; }
.form-order:empty { display: none; }
.form-status { margin-top: 16px; font-weight: 500; }
.form-status:empty { display: none; }
@media (max-width: 760px) {
  .contact { padding: 32px 0 48px; }
  .contact__body { padding-top: 16px; }
  .cells { grid-template-columns: 1fr; }
  .cell { height: 60px; }
  .cell--text { height: 120px; }
  .form-notes { grid-template-columns: 1fr; }
  .form-notes .n3 { grid-column: auto; }
}

/* ================= FOOTER: the mark, built large ================= */
.footer { margin-top: 0; padding: 72px var(--margin) calc(28px + env(safe-area-inset-bottom)); }
.mark svg { width: 100%; height: auto; }
.footer__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; font-size: var(--step-small); }
.footer__links { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer__links ul { display: flex; flex-direction: column; gap: 8px; }
.footer__contact { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 8px; }
.footer__contact .big { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; text-decoration: none; }
.credits { margin-top: 56px; color: var(--muted); }
.credits summary { cursor: pointer; font-size: var(--step-small); }
.credits p { margin-top: 12px; max-width: 64ch; font-size: var(--step-body); }
.credits a { color: var(--muted); }
.footer__last { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }
.footer__last .button { min-height: 44px; padding: 0 1rem; }
@media (max-width: 760px) {
  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .footer__links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact { grid-column: 1 / -1; }
}

/* ================= motion ================= */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__h, .js .hero__lead, .js .hero__actions, .js .pains li { transform: translateY(22px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 100ms); }
  .js .hero__pic img { transform: translateX(48px) scale(1.03); animation: drive-in 1400ms var(--ease-out) 200ms forwards; }
  .js [data-reveal] { transform: translateY(24px); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { transform: none; }
  .js .step[data-reveal] .doc li, .js .step[data-reveal] .doc tr { transform: translateX(-10px); transition: transform 600ms var(--ease-out); }
  .js .step[data-reveal].is-in .doc li, .js .step[data-reveal].is-in .doc tr { transform: none; }
  .js .step .doc li:nth-child(2), .js .step .doc tr:nth-child(2) { transition-delay: 120ms; }
  .js .step .doc li:nth-child(3), .js .step .doc tr:nth-child(3) { transition-delay: 240ms; }
  .js .step .doc li:nth-child(4) { transition-delay: 360ms; }
  .js .step[data-reveal] .doc__stamp { transform: rotate(-2deg) scale(1.3); transition: transform 400ms var(--ease-out) 700ms; }
  .js .step[data-reveal].is-in .doc__stamp { transform: rotate(-2deg); }
  .band { transition: background-color var(--t-hover) ease; }
  .js .cat:not([hidden]) .band { animation: band-in 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drive-in { to { opacity: 1; transform: none; } }
@keyframes band-in { from { transform: translateX(-12px); } to { transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .js .timeline.is-on .track.is-running { animation: marquee var(--run, 60s) linear infinite; }
  .js .timeline.is-on .track.is-running:hover, .js .timeline.is-on .track.is-paused { animation-play-state: paused; }
  .js .timeline.is-on .gen { animation: gen-in 600ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 70ms); }
}
@keyframes gen-in { from { transform: translateX(32px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .timeline.is-on { overflow-x: auto; } }

/* footer mark: one row on wide screens, two rows on a phone */
.mark .mark--tall { display: none; }
@media (max-width: 620px) { .mark .mark--wide { display: none; } .mark .mark--tall { display: block; } }

/* ================= INNER PAGES: services, journal, 404 ================= */
.page-hero { padding: 24px var(--margin) clamp(48px, 7vw, 96px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--step-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
.page-hero__h { margin-top: clamp(28px, 4vw, 56px); font-size: clamp(2.25rem, 1rem + 4vw, 4.25rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 18ch; }
.page-hero__h--article { max-width: 22ch; font-size: clamp(2rem, 1rem + 3.2vw, 3.75rem); }
.page-hero__lead { margin-top: 24px; max-width: 46ch; }
.page-hero__meta { margin-top: clamp(28px, 4vw, 56px); color: var(--muted); }
.page-hero__meta a { color: var(--accent-on-dark); }
.page-hero__meta + .page-hero__h { margin-top: 16px; }
.page-hero__row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.page-hero__price { font-size: var(--step-lead); font-weight: 600; display: flex; flex-direction: column; }
.page-hero__price span { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.page-hero__tel { font-size: var(--step-body); }

.page-body { padding: clamp(48px, 7vw, 96px) var(--margin); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.page-body--article { grid-template-columns: 260px minmax(0, 1fr); }
.prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.6; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: var(--step-lead); letter-spacing: -0.015em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent-deep); }
.prose strong { font-weight: 600; }
.prose .table-wrap { overflow-x: auto; margin-top: 1.4em; margin-bottom: 0.4em; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--surface); }
.prose .cover { margin: 0 0 2em; }
.prose .cover img { display: block; width: 100%; height: auto; }
.link-in { color: inherit; text-decoration: underline; text-decoration-color: var(--accent-deep); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
@media (hover: hover) and (pointer: fine) { .link-in:hover { text-decoration-color: currentColor; } }

.page-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--graphite); color: var(--on-graphite); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.aside-card__price { font-size: var(--step-lead); font-weight: 600; }
.aside-card__note { font-size: var(--step-small); color: var(--on-graphite-2); }
.aside-card .button { align-self: stretch; }
.aside-card__facts { display: grid; gap: 10px; margin: 6px 0 0; font-size: var(--step-small); }
.aside-card__facts dt { color: var(--on-graphite-3); }
.aside-card__facts dd { margin: 0; }
.toc { background: var(--surface); padding: 20px 22px; }
.toc__title { font-weight: 600; }
.toc ol { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--step-small); }
.toc a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }

.page-faq { padding: clamp(48px, 7vw, 96px) var(--margin); background: var(--tone-bg); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.page-faq .head { grid-column: 1 / span 4; }
.page-faq .faq__list { grid-column: 5 / -1; }
.page-faq .qa { background: var(--tone-surface); }
.page-faq .qa[open] { background: var(--accent); }

.page-more { padding: clamp(48px, 7vw, 96px) var(--margin); }
.page-more__h2 { margin-top: clamp(48px, 6vw, 80px); }
.tiles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.tile a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--surface); color: inherit; text-decoration: none; transition: background-color var(--t-hover) ease; }
.tile__name { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.tile__note { color: var(--muted); }
.tile__price { margin-top: auto; padding-top: 12px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .tile a:hover { background: var(--surface-2); } }
.posts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.post a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--paper); color: inherit; text-decoration: none; transition: background-color var(--t-hover) ease; }
.post__meta { font-size: var(--step-small); color: var(--muted); }
.post__title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.post__excerpt { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .post a:hover { background: var(--paper-hover-2); } }

.page-cta { padding: clamp(48px, 7vw, 96px) var(--margin); background: var(--accent); color: var(--accent-ink); }
.page-cta p { margin-top: 20px; max-width: 52ch; }
.page-cta__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.page-cta__tel { font-size: var(--step-lead); font-weight: 600; color: inherit; text-decoration: none; }

.rubrics { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 6px; }
.rubric { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; transition: background-color var(--t-hover) ease; }
.rubric.is-on { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .rubric:not(.is-on):hover { background: var(--surface-2); } }
.journal { padding: clamp(40px, 6vw, 80px) var(--margin) clamp(48px, 7vw, 96px); }
.posts--grid { margin-top: 0; }
.pager { margin-top: 32px; display: flex; gap: 6px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; background: var(--surface); color: inherit; text-decoration: none; font-weight: 500; }
.pager span { background: var(--ink); color: var(--bg); }

@media (max-width: 960px) {
  .page-body, .page-body--article { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; order: 2; }
  .page-aside--left { order: 0; }
  .page-faq .head, .page-faq .faq__list { grid-column: 1 / -1; }
  .page-faq .head { margin-bottom: 24px; }
}
@media (max-width: 620px) {
  .prose { font-size: var(--step-body); }
}


/* 2GIS: a route card until a key brings the live map (content/site.json → dgisKey) */
.map__frame--gis { background: var(--surface-2); }
.gis-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 40px); }
.map__frame--gis.is-live .gis-card { display: none; }
@media (max-width: 900px) { .map__frame--gis:not(.is-live) { height: auto; } .map__frame--gis:not(.is-live) .gis-card { position: static; } }
.gis-card__pin { width: 40px; height: auto; }
.gis-card__addr { margin-top: 20px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.gis-card__metro { margin-top: 10px; color: var(--muted); }
.gis-card__how { margin-top: auto; padding-top: 24px; font-size: var(--step-small); color: var(--muted); }
.gis-card__modes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gis-card__modes a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.gis-card__modes a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .gis-card__modes a:hover { background: var(--accent); color: var(--accent-ink); } }
.gis-card__open { margin-top: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-color: var(--accent); }

/* the phone next to the main button: a quiet twin of it, label over number */
.hero__call { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 8px 22px; background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.hero__call:active { transform: scale(0.98); }
.hero__call-label { font-size: var(--step-small); color: var(--muted); line-height: 1.2; }
.hero__call-num { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
@media (hover: hover) and (pointer: fine) { .hero__call:hover { background: var(--surface-2); } .hero__call:hover .hero__call-num { color: var(--accent-on-dark); } }

/* «Другое» in the price list: a short field to describe the job */
.band--other { background: var(--surface-2); }
.other { display: flex; gap: 8px; margin-top: 12px; max-width: 520px; }
.other[hidden] { display: none; }
.other__input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; background: var(--paper); color: var(--paper-ink); font-size: max(16px, var(--step-small)); }
.other__input:focus { outline: 2px solid var(--accent-deep); outline-offset: 0; }
.other__add { flex: none; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: var(--step-small); transition: transform var(--t-press) var(--ease-out); }
.other__add:active { transform: scale(0.97); }
.band__price--ask { color: var(--muted); font-weight: 400; }

/* ================= SERVICES NAVIGATOR (/services/) ================= */
.carmap { padding: clamp(48px, 7vw, 96px) var(--margin); }
.carmap__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.zones { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-chip { min-height: 44px; padding: 0 16px; background: var(--surface); color: var(--ink); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.zone-chip:active { transform: scale(0.97); }
.zone-chip[aria-selected="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .zone-chip:not([aria-selected="true"]):hover { background: var(--surface-2); } }
.carmap__body { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.carmap__figure { background: var(--surface); padding: clamp(16px, 3vw, 40px); }
.car-svg { width: 100%; height: auto; overflow: visible; }
.car-shadow { fill: var(--car-shadow); }
.car-body { fill: var(--car-body); }
.car-line { fill: none; stroke: var(--car-line); stroke-width: 3; stroke-linecap: round; }
.car-glass { fill: var(--car-glass); }
.car-part { fill: var(--car-part); }
.car-detail { fill: none; stroke: var(--car-detail); stroke-width: 4; stroke-linecap: round; }
.car-light { fill: var(--car-light); }
.car-spring { fill: none; stroke: var(--car-metal); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.car-arm { fill: none; stroke: var(--car-metal); stroke-width: 7; stroke-linecap: round; }
.car-tire { fill: var(--car-tire); }
.car-disc { fill: var(--car-disc); }
.car-caliper { fill: var(--car-caliper); }
.car-hub { fill: var(--car-body); }
.zone { cursor: pointer; outline: none; }
.zone > * { transition: fill var(--t-hover) ease, stroke var(--t-hover) ease; }
.zone:focus-visible > * { stroke: var(--accent-deep); stroke-width: 4; }
@media (hover: hover) and (pointer: fine) {
  .zone[data-zone="body"]:hover .car-body, .zone[data-zone="engine"]:hover .car-part { fill: var(--car-hover-body); }
  .zone[data-zone="cabin"]:hover .car-glass { fill: var(--car-hover-glass); }
  .zone[data-zone="electric"]:hover .car-light { fill: var(--car-hover-light); }
  .zone[data-zone="suspension"]:hover .car-spring, .zone[data-zone="suspension"]:hover .car-arm { stroke: var(--accent); }
  .zone[data-zone="wheels"]:hover .car-tire { fill: var(--car-hover-tire); }
  .zone[data-zone="brakes"]:hover .car-disc { fill: var(--accent); }
}
.zone.is-on .car-body, .zone.is-on .car-part { fill: var(--accent-deep); }
.zone.is-on .car-glass { fill: var(--accent); }
.zone.is-on .car-light { fill: var(--car-on-light); }
.zone.is-on .car-spring, .zone.is-on .car-arm { stroke: var(--accent); }
.zone.is-on .car-tire { fill: var(--accent-deep); }
.zone.is-on .car-disc { fill: var(--accent); }
.ui .zone-panel[data-off] { display: none; }
.zone-panel + .zone-panel { margin-top: 32px; }
.ui .zone-panel + .zone-panel { margin-top: 0; }
.zone-panel__h { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; }
.zone-panel__text { margin-top: 10px; color: var(--muted); }
.picks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name go" "note go"; column-gap: 16px; padding: 14px 18px; background: var(--paper); color: inherit; text-decoration: none; transition: background-color var(--t-hover) ease; }
.pick::after { content: "→"; grid-area: go; align-self: center; color: var(--accent-deep); font-size: var(--step-lead); transition: transform var(--t-hover) var(--ease-out); }
.pick__name { grid-area: name; font-weight: 600; }
.pick__note { grid-area: note; font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .pick:hover { background: var(--paper-hover); } .pick:hover::after { transform: translateX(4px); } }

.symptoms { padding: clamp(48px, 7vw, 96px) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.symptoms__head { grid-column: 1 / span 4; position: sticky; top: 24px; }
.symptoms__head p { margin-top: 20px; max-width: 34ch; }
.symptoms__body { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.sym { background: var(--surface); }
.sym[open] { grid-column: 1 / -1; background: var(--graphite); color: var(--on-graphite); }
.sym__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px; font-weight: 500; line-height: 1.3; }
.sym__q::-webkit-details-marker { display: none; }
.sym__q::after { content: "+"; font-size: var(--step-lead); line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.sym[open] .sym__q::after { transform: rotate(45deg); }
.sym__a { padding: 0 20px 22px; }
.sym__cause { max-width: 60ch; font-size: var(--step-body); }
.sym__go { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sym[open] .button--ink { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .sym:not([open]) .sym__q:hover { background: var(--surface-2); } .sym[open] .button--ink:hover { background: var(--accent-hover); } }

.steps-run { padding: clamp(48px, 7vw, 96px) var(--margin); }
.steps-run__lead { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.track-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.track-step { position: relative; padding: 36px 16px 0 0; }
.track-step::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 4px; background: var(--track); }
.track-step:last-child::before { right: auto; width: 16px; }
.track-step__dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.track-step__h { font-size: var(--step-body); font-weight: 600; }
.track-step p { margin-top: 8px; font-size: var(--step-small); color: var(--muted); max-width: 22ch; }

.catalog { padding: clamp(48px, 7vw, 96px) var(--margin); }
.catalog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 40px; padding: 0 14px; background: transparent; color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 2px var(--surface-2); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.filter.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .filter:not(.is-on):hover { background: var(--surface); } }
.svc-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.svc-card[hidden] { display: none; }
.svc-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 200px; padding: 22px; background: var(--paper); color: inherit; text-decoration: none; transition: background-color var(--t-hover) ease; }
.svc-card__cat { font-size: var(--step-small); color: var(--accent-deep); font-weight: 500; }
.svc-card__name { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; overflow-wrap: anywhere; }
.svc-card__note { color: var(--muted); }
.svc-card__more { margin-top: auto; padding-top: 12px; font-weight: 500; }
.svc-card__more::after { content: " →"; color: var(--accent-deep); }
@media (hover: hover) and (pointer: fine) { .svc-card a:hover { background: var(--paper-hover); } }
.catalog__prices { margin-top: 24px; }

@media (max-width: 1080px) {
  .track-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .track-step { padding: 0 0 28px 44px; }
  .track-step::before { top: 0; bottom: 0; left: 8px; right: auto; width: 4px; height: auto; }
  .track-step:last-child::before { height: 16px; bottom: auto; width: 4px; }
  .track-step p { max-width: 50ch; }
}
@media (max-width: 900px) {
  .carmap__body { grid-template-columns: minmax(0, 1fr); }
  .symptoms__head, .symptoms__body { grid-column: 1 / -1; }
  .symptoms__head { position: static; margin-bottom: 28px; }
}
@media (max-width: 620px) {
  .zone-chip { min-height: 40px; padding: 0 12px; font-size: var(--step-small); }
  .symptoms__body { grid-template-columns: minmax(0, 1fr); }
}

/* ================= PRICE LIST (/prices/) ================= */
.price-hero__notes { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 1100px; }
.price-hero__notes p { background: var(--surface); padding: 16px 18px; font-size: var(--step-small); color: var(--on-graphite-2); max-width: none; }
.price-hero__notes strong { color: var(--ink); font-weight: 600; }
.pt-wrap { padding: clamp(32px, 5vw, 64px) var(--margin) clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pt-nav { position: sticky; top: 16px; }
.pt-nav__title { font-size: var(--step-small); color: var(--muted); margin-bottom: 10px; }
.pt-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pt-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; color: inherit; text-decoration: none; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.pt-nav b { font-weight: inherit; }
.pt-nav__short { display: none; }
.pt-nav a span { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.pt-nav a.is-on { background: var(--ink); color: var(--bg); }
.pt-nav a.is-on span { color: var(--tab-count-on); }
@media (hover: hover) and (pointer: fine) { .pt-nav a:not(.is-on):hover { background: var(--surface); } }
.pt-search { position: sticky; top: 16px; z-index: 2; padding-bottom: 12px; background: var(--bg); }
.pt-search input { width: 100%; min-height: 52px; padding: 0 18px; border: 0; background: var(--paper); color: var(--paper-ink); font-size: max(16px, var(--step-body)); }
.pt-search input:focus { outline: 2px solid var(--accent-deep); outline-offset: 0; }
.pt-search__none { margin-top: 12px; color: var(--muted); }
html:not(.ui) .pt-search { display: none; }
.pt-cat { scroll-margin-top: 90px; }
.pt-cat + .pt-cat { margin-top: 40px; }
.pt-cat[hidden] { display: none; }
.pt-cat__h { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.025em; margin-bottom: 10px; }
.pt { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.pt thead th { text-align: left; font-size: var(--step-small); font-weight: 500; color: var(--muted); padding: 0 10px 8px; }
.pt thead th.pt__price { text-align: right; }
.pt td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.pt-row[hidden] { display: none; }
.pt__pick { width: 44px; }
.pt__pick input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
html:not(.ui) .pt__pick { display: none; }
.pt__name { font-weight: 500; cursor: pointer; }
.pt__more { margin-left: 6px; font-size: var(--step-small); color: var(--accent-deep); white-space: nowrap; }
.pt__note { display: block; margin-top: 2px; font-size: 1rem; color: var(--muted); }
.pt__price { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt__price.is-ask { font-weight: 400; color: var(--muted); }
.pt-row.is-picked td { background: var(--picked); }
@media (hover: hover) and (pointer: fine) { .pt-row:not(.pt-row--other):not(.is-picked):hover td { background: var(--surface); } }
.pt-row--other td { background: var(--surface); }
.pt__plus { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--ink); color: var(--bg); font-weight: 600; line-height: 1; }
.pt-other { display: flex; gap: 8px; margin-top: 10px; max-width: 560px; }
html:not(.ui) .pt-other { display: none; }
.pt-other input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; background: var(--paper); color: var(--paper-ink); font-size: max(16px, var(--step-small)); }
.pt-other input:focus { outline: 2px solid var(--accent-deep); outline-offset: 0; }
.pt-other__add { flex: none; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--bg); font-weight: 500; transition: transform var(--t-press) var(--ease-out); }
.pt-other__add:active { transform: scale(0.97); }

.pt-bar { position: sticky; bottom: 0; z-index: 5; padding: 0 var(--margin) calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
html:not(.ui) .pt-bar { display: none; }
.pt-bar__in { pointer-events: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "sum clear go" "list clear go"; column-gap: 16px; align-items: center; padding: 14px 16px 14px 20px; background: var(--graphite); color: var(--on-graphite); }
.pt-bar__sum { grid-area: sum; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-bar__list { grid-area: list; font-size: var(--step-small); color: var(--on-graphite-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
.pt-bar__clear { grid-area: clear; min-height: 44px; padding: 0 12px; color: var(--on-graphite-2); text-decoration: underline; text-underline-offset: 0.2em; }
.pt-bar .button { grid-area: go; }
.pt-bar[data-empty="true"] .button, .pt-bar[data-empty="true"] .pt-bar__clear { display: none; }
.pt-bar[data-empty="true"] .pt-bar__sum { font-weight: 400; color: var(--on-graphite-2); }

@media (max-width: 900px) {
  .price-hero__notes { grid-template-columns: minmax(0, 1fr); }
  .pt-wrap { grid-template-columns: minmax(0, 1fr); }
  .pt-nav { position: sticky; top: 0; z-index: 3; margin: 0 calc(var(--margin) * -1); padding: 8px var(--margin); background: var(--bg); }
  .pt-nav__title { display: none; }
  .pt-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .pt-nav a { padding: 8px 10px; gap: 8px; white-space: nowrap; background: var(--surface); font-size: var(--step-small); }
  .pt-nav__long { display: none; }
  .pt-nav__short { display: inline; }
  .pt-search { position: static; padding-bottom: 0; }
  .pt-cat { scroll-margin-top: 110px; }
}
@media (max-width: 620px) {
  .pt thead { display: none; }
  .pt td { padding: 12px 6px; }
  .pt__pick { width: 34px; }
  .pt__price { font-size: var(--step-small); }
  .pt-row--other td[colspan] { padding-left: 6px; }
  .pt-other { flex-direction: column; }
  .pt-bar__in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sum clear" "list list" "go go"; row-gap: 8px; }
  .pt-bar[data-empty="true"] .pt-bar__in { padding: 10px 14px; }
  .pt-bar[data-empty="true"] .pt-bar__sum { font-size: var(--step-small); }
  .pt-bar .button { width: 100%; }
}

.form-consent { display:flex; align-items:flex-start; gap:10px; margin-top:16px; max-width:70ch; font-size:var(--step-small); line-height:1.5; }
.form-consent input { flex:none; width:18px; height:18px; margin:2px 0 0; }
