
/* style.css
   ВЫКУП АВТО 24 — SIGNAL YELLOW
   Mobile-first / Light UI / Existing HTML
   No external libraries / No CDN
   Version 3.0
*/

/* 01. FONTS */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0400-052F, U+1C80-1C8A, U+20BD,
    U+2116, U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-024F, U+0259, U+1E00-1EFF,
    U+2000-206F, U+2070-209F,
    U+20A0-20CF, U+2100-214F,
    U+2190-21FF, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* 02. DESIGN TOKENS */

:root {
  color-scheme: light;

  --bg: #FFFFFF;
  --bg-soft: #F5F6F7;
  --bg-muted: #EBEEF0;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-recessed: #EFF1F2;
  --surface-dark: #111820;

  --ink: #101419;
  --ink-2: #39434D;
  --ink-3: #596571;
  --mut: #66717D;
  --fg: #101419;
  --soft: #F5F6F7;

  --brand: #FFD83D;
  --brand-hover: #FFE66A;
  --brand-pressed: #E9BD18;
  --brand-ink: #111820;
  --acc: #FFD83D;
  --acc2: #FFD83D;
  --accent: #B48B00;
  --accent-soft: #FFF6C8;

  --steel: #A5B8C4;
  --steel-dark: #587182;

  --line: #DDE2E6;
  --line-strong: #C3CCD3;
  --grid-line: #E9EDF0;

  --ok: #14734C;
  --ok-soft: #E8F6EE;
  --bad: #BA3444;
  --bad-soft: #FFF0F1;
  --warn: #8C6100;

  --focus: #715400;
  --clear: transparent;

  --shadow-xs: 0 2px 8px #14212D0B;
  --shadow-sm: 0 7px 24px #14212D10;
  --shadow:
    0 10px 28px #14212D10,
    0 24px 62px #14212D0C;
  --shadow-deep: 0 24px 70px #11182024;

  --neumorph:
    7px 7px 17px #D6DCE0A8,
    -7px -7px 17px #FFFFFF;

  --inset:
    inset 3px 3px 7px #CBD2D86B,
    inset -3px -3px 7px #FFFFFF;

  --r-xs: 7px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --max: 1120px;
  --gut: 16px;
  --header-h: 68px;

  --sans: "Onest", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.2, 1.5, .4, 1);

  --hero-car-url: url("illustrations/hero-car.webp");
}

/* 03. RESET AND TYPOGRAPHY */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body.menu-open {
  overflow: hidden;
}

main, section, article, nav, header, footer,
form, fieldset {
  min-width: 0;
}

img, svg, video {
  max-width: 100%;
}

img {
  height: auto;
}

button, input, select, textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

a {
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #755900;
}

button, a, summary, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--brand);
  color: var(--ink);
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 8.3vw, 40px);
  letter-spacing: -.055em;
  line-height: 1.07;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(26px, 6.5vw, 34px);
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

small {
  font-size: 13px;
}

ul, ol {
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip {
  position: absolute;
  z-index: 200;
  top: -100px;
  left: 16px;
  padding: 12px 18px;
  background: var(--brand);
  border-radius: var(--r-sm);
  font-weight: 750;
}

.skip:focus {
  top: 12px;
}

.ico {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  fill: none;
}

.lead {
  max-width: 750px;
  margin-bottom: 23px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.meta, .price-note {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.65;
}

/* 04. BUTTON SYSTEM */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .25s var(--ease-spring),
    box-shadow .25s,
    background-color .2s,
    border-color .2s,
    color .2s;
}

.btn:hover {
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn:active:not(:disabled) {
  transform: scale(.965);
}

.btn-accent {
  border-color: #EBC62E;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow:
    0 6px 16px #CFA92829,
    inset 0 1px 0 #FFFFFF5C;
}

.btn-accent:hover {
  background: var(--brand-hover);
  color: var(--brand-ink);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow:
    0 10px 26px #CFA92842,
    0 0 0 4px #FFD83D21;
}

.btn-accent:active:not(:disabled) {
  background: var(--brand-pressed);
  transform: scale(.96);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--steel-dark);
  background: var(--bg-soft);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 15px;
  font-size: 13px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.btn[disabled], button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* 05. HEADER */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 9px;
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #F0D14E;
  border-radius: 11px;
  background: var(--brand);
  color: var(--ink);
  box-shadow:
    3px 3px 9px #D9DCE078,
    inset 0 1px 0 #FFFFFF80;
}

.logo-mark > img,
.logo-mark > svg {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  font-weight: 900;
}

.logo-city {
  margin-left: 2px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav a[aria-current] {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: inset 0 -2px var(--brand);
}

.top-cta {
  flex: none;
  min-height: 44px;
  margin-left: auto;
  padding-inline: 12px;
  border-color: var(--brand);
  background: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}

.top-cta:hover {
  background: var(--brand-hover);
}

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.top-phone:hover {
  color: var(--ink);
}

.top-phone .ico {
  width: 19px;
  height: 19px;
  color: var(--warn);
}

.top-phone small {
  display: none;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
}

.burger {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}

.burger:hover {
  background: var(--accent-soft);
}

.burger .ico {
  width: 23px;
  height: 23px;
}

.burger .ico-x {
  display: none;
}

.burger[aria-expanded="true"] .ico-menu {
  display: none;
}

.burger[aria-expanded="true"] .ico-x {
  display: block;
}

body.menu-open .top {
  z-index: 80;
}

/* 06. MOBILE MENU */

.mnav {
  display: none;
  position: fixed;
  z-index: 59;
  inset: var(--header-h) 0 0;
  padding:
    16px var(--gut)
    calc(34px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  box-shadow: var(--shadow-deep);
}

.mnav.open {
  display: block;
}

.mnav-group {
  padding: 14px 0 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mnav-group b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mnav-group a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--grid-line);
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.mnav-group a:hover,
.mnav-group a[aria-current] {
  color: #806000;
}

/* 07. BREADCRUMBS */

.crumbs {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

.crumbs .wrap {
  overflow-wrap: anywhere;
}

.crumbs a {
  color: var(--ink-2);
}

.crumbs .sep {
  margin-inline: 7px;
  color: var(--warn);
}

.crumbs [aria-current] {
  color: var(--ink-3);
}

/* 08. HERO — LIGHT MOTORWAY DIRECTION */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 0 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -72px;
  width: 56%;
  height: 340px;
  background: var(--brand);
  clip-path: polygon(
    34% 0, 73% 0,
    100% 100%, 62% 100%
  );
  opacity: .9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: 0;
  width: 55%;
  height: 220px;
  background: var(--bg-soft);
  clip-path: polygon(
    0 100%, 60% 0, 100% 0, 100% 100%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero .wrap > div:first-child {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero h1 {
  max-width: 750px;
  margin-bottom: 16px;
  font-size: clamp(32px, 8.3vw, 39px);
  line-height: 1.09;
  letter-spacing: -.056em;
  font-weight: 900;
}

.hero .lead {
  max-width: 640px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.56;
}

/* On mobile, keep H1 + CTA within 390 × 844 */

.hero .hero-cta {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.hero-cta .btn {
  flex: 1 1 100%;
  min-height: 54px;
  font-size: 16px;
  font-weight: 850;
}

.hero-cta .btn-accent {
  box-shadow: 0 8px 21px #CFA92832;
}

/* Keep original DOM order, change visual order only */

.hero .wrap > div:first-child {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  order: 1;
}

.hero .lead {
  order: 2;
}

.hero .hero-cta {
  order: 3;
}

.hero .plus {
  order: 4;
}

.hero .msg-row {
  order: 5;
}

/* Automobile on mobile:
   CSS-only image layer; no extra HTML required */

.hero .wrap > div:first-child::after {
  content: "";
  order: 3;
  display: block;
  width: 100%;
  height: 154px;
  margin: -5px 0 14px;
  background-image: var(--hero-car-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 9px 8px #26354023);
  pointer-events: none;
}

/* Main car illustration in separate desktop .hero-img */

.hero-img {
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 1.35;
  background-image: var(--hero-car-url);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 15px 17px #26354029);
  transform-origin: center bottom;
}

/* 09. FOUR BENEFITS — COMPACT FACT STRIP */

.plus {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.plus li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 52px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}

.plus li:last-child {
  border-bottom: 0;
}

.plus .ico {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 6px;
  border: 1px solid #F4E3A2;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #866300;
}

.plus li span {
  min-width: 0;
}

/* 10. MESSENGER LINKS */

.msg-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.msg-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform .2s var(--ease),
    border-color .2s,
    background-color .2s;
}

.msg-row a:hover {
  transform: translateY(-2px);
  border-color: var(--brand-pressed);
  background: var(--accent-soft);
}

.msg-row .ico {
  width: 19px;
  height: 19px;
  color: var(--ink-2);
}

/* 11. SECTION RHYTHM */

.sec {
  min-width: 0;
  padding: 0;
  margin-bottom: 54px;
}

.sec > h2, .sec-head {
  margin-bottom: 23px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sec-head h2 {
  margin: 0;
}

.sec-head a {
  font-size: 14px;
  font-weight: 750;
}

/* 12. SITUATION CARDS */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 23px 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition:
    transform .3s var(--ease),
    box-shadow .3s,
    border-color .3s;
}

.card::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 17px;
  border: 1px solid #F0E3A7;
  border-radius: 14px;
  background:
    var(--accent-soft)
    url("illustrations/ico-car-damage.svg")
    center / 35px 35px no-repeat;
}

.card::after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: 23px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.card h3 {
  position: relative;
  margin-bottom: 10px;
  padding-right: 24px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 850;
}

.card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.65;
}

.card a.stretch {
  color: var(--ink);
  text-decoration: none;
}

.card a.stretch::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
}

.card:focus-within {
  border-color: var(--brand-pressed);
  outline: 2px solid var(--brand-pressed);
  outline-offset: 2px;
}

.card:active {
  transform: scale(.985);
}

/* Иконка карточки по данным сегмента: <li class="card" data-ico="…"> (b01, поле ico в сегменты.json) */
.card[data-ico="car-damage"]::before {
  background-image: url("illustrations/ico-car-damage.svg");
}
.card[data-ico="car-crash"]::before {
  background-image: url("illustrations/ico-car-crash.svg");
}
.card[data-ico="tow"]::before {
  background-image: url("illustrations/ico-tow.svg");
}
.card[data-ico="loan"]::before {
  background-image: url("illustrations/ico-loan.svg");
}
.card[data-ico="lock"]::before {
  background-image: url("illustrations/ico-lock.svg");
}
.card[data-ico="pts"]::before {
  background-image: url("illustrations/ico-pts.svg");
}
.card[data-ico="fast"]::before {
  background-image: url("illustrations/ico-fast.svg");
}
.card[data-ico="price-up"]::before {
  background-image: url("illustrations/ico-price-up.svg");
}
.card[data-ico="odometer"]::before {
  background-image: url("illustrations/ico-odometer.svg");
}
.card[data-ico="market"]::before {
  background-image: url("illustrations/ico-market.svg");
}
/* Brand and model cards are neutral */
.t-brand .card::before,
.t-model .card::before,
.t-guide .card::before {
  background-image: url("illustrations/ico-odometer.svg");
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-pressed);
    box-shadow: var(--shadow);
  }
}

/* 13. CHIPS */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  min-width: 0;
  max-width: 100%;
}

.chips a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  white-space: normal;
  transition:
    transform .2s,
    background-color .2s,
    border-color .2s;
}

.chips a:hover {
  transform: translateY(-2px);
  border-color: var(--brand-pressed);
  background: var(--accent-soft);
  color: var(--ink);
}

/* 14. TWO-COLUMN SECTIONS */

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 17px;
  margin-bottom: 54px;
}

.two > .card {
  height: 100%;
}

.pain, .answer {
  position: relative;
  min-width: 0;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.pain {
  background: #FFF4F0;
  border-color: #F2D4CA;
  border-top: 4px solid #C75D45;
}

.answer {
  background: #EDF7F1;
  border-color: #CDE5D7;
  border-top: 4px solid var(--ok);
}

.pain h2, .answer h2 {
  margin-bottom: 19px;
  font-size: 23px;
  line-height: 1.22;
}

.pain ul, .answer ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 20px;
}

.pain li, .answer li {
  padding-left: 3px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.pain li::marker {
  color: #B84A32;
}

.answer li::marker {
  color: var(--ok);
}

/* 15. STEPS — YELLOW ROAD */

.steps {
  counter-reset: step;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  min-height: 115px;
  margin-left: 20px;
  padding: 8px 16px 27px 34px;
  border-left: 3px solid var(--brand);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.steps li:last-child {
  border-left-color: transparent;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: -22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 0 0 1px #EBC734;
  font-size: 16px;
  font-weight: 900;
}

.steps li::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 50px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--brand-pressed);
}

.steps li:last-child::after {
  display: none;
}

.steps b {
  display: block;
  margin: 2px 0 5px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.steps small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
}

/* 16. FACTS */

.facts {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--r);
  background: var(--bg-soft);
}

.facts h2 {
  margin-bottom: 18px;
}

.facts ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.facts li {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.facts li::marker {
  color: var(--warn);
}

.facts .meta {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

/* 17. DOCUMENTS AND CHECKS */

.docs ul, .checks ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs li, .checks li {
  position: relative;
  min-width: 0;
  padding: 15px 16px 15px 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.docs li::before, .checks li::before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: #795B00;
  font-weight: 900;
}

/* 18. RESPONSIVE TABLES */

.table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--bg-soft);
}

table {
  width: 100%;
  min-width: 590px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

th, td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 850;
}

tbody tr:nth-child(even) td {
  background: var(--bg-soft);
}

tr:last-child td {
  border-bottom: none;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 105px;
  max-width: 155px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.table-wrap thead th:first-child {
  z-index: 3;
  background: var(--accent-soft);
}

.table-wrap tbody tr:nth-child(even) td:first-child {
  background: var(--bg-soft);
}

/* 19. FAQ */

.faq {
  display: grid;
  gap: 11px;
}

.faq > h2 {
  margin-bottom: 11px;
}

.faq details {
  min-width: 0;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition:
    border-color .2s,
    background-color .2s,
    box-shadow .2s;
}

.faq details[open] {
  border-color: #E9CE66;
  background: #FFFCF1;
  box-shadow: var(--shadow-xs);
}

.faq summary {
  position: relative;
  display: block;
  min-height: 60px;
  padding: 18px 38px 18px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 23px;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--brand);
}

.faq .a {
  margin: 0;
  padding: 0 0 20px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

/* 20. CITY GRID */

.city-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 16px 0 36px;
  padding: 0;
  list-style: none;
}

.city-grid li {
  min-width: 0;
}

.city-grid a {
  position: relative;
  display: block;
  min-height: 76px;
  padding: 17px 44px 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  transition:
    transform .2s,
    border-color .2s,
    box-shadow .2s;
}

.city-grid a::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 17px;
  color: #947000;
  font-size: 21px;
}

.city-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--brand-pressed);
  box-shadow: var(--shadow-sm);
}

.city-grid small {
  display: block;
  margin-top: 5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* 21. ARTICLE / CALLOUT */

.callout {
  padding: 20px 22px;
  margin: 22px 0;
  border: 1px solid #EFDC91;
  border-left: 4px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.callout p:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: 780px;
  padding-bottom: 32px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.85;
}

.prose h2 {
  margin: 1.75em 0 .65em;
}

.prose h3 {
  margin: 1.4em 0 .55em;
}

.prose p {
  margin-bottom: 1.2em;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 23px;
}

.prose li {
  margin-bottom: 9px;
}

.prose li::marker {
  color: var(--warn);
}

.prose blockquote {
  margin: 24px 0;
  padding: 18px 23px;
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--bg-soft);
}

.prose img {
  border-radius: var(--r);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.prose th, .prose td {
  min-width: 115px;
}

/* 22. LEAD SECTION */

.lead-sec {
  position: relative;
  isolation: isolate;
  padding: 62px 0 76px;
  margin-top: 56px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.lead-sec::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -160px;
  width: 440px;
  height: 290px;
  background: var(--brand);
  clip-path: polygon(45% 0, 76% 0, 100% 100%, 67% 100%);
  opacity: .65;
}

.lead-sec h2 {
  max-width: 770px;
  margin-bottom: 14px;
  font-size: clamp(27px, 6.7vw, 40px);
}

.lead-sec > .wrap > .lead {
  max-width: 670px;
  margin-bottom: 28px;
}

/* 23. FORM */

.lead-form {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-form .row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.field {
  display: block;
  min-width: 0;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  outline: none;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  transition:
    border-color .2s,
    box-shadow .2s,
    background-color .2s;
}

.field textarea {
  min-height: 115px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #697681;
  opacity: 1;
}

.field select {
  padding-right: 34px;
  cursor: pointer;
}

.field select option {
  color: var(--ink);
  background: var(--bg);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--steel-dark);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #AB8500;
  background: var(--bg);
  box-shadow: 0 0 0 3px #FFD83D66;
}

.field [aria-invalid="true"],
[aria-invalid="true"] {
  border-color: var(--bad) !important;
  background: var(--bad-soft) !important;
  box-shadow: 0 0 0 2px #BA34442B;
}

/* 24. CONDITION TILES */

.cond {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  margin: 3px 0 24px;
  padding: 0;
  border: 0;
}

.cond label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.cond input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cond label span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 12px 47px 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition:
    transform .2s,
    border-color .2s,
    background-color .2s,
    box-shadow .2s;
}

.cond label span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
}

.cond input:checked + span {
  border-color: #CDA400;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #E6C439;
}

.cond input:checked + span::after {
  content: "✓";
  border-color: var(--brand);
  background: var(--brand);
  color: var(--ink);
  font-weight: 900;
}

.cond input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.cond label:active span {
  transform: scale(.985);
}

/* 25. MESSENGER RADIO CHOICES */

.msgr {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.msgr label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.msgr label:has(input:checked) {
  border-color: #CDA400;
  background: var(--accent-soft);
  color: var(--ink);
}

.msgr input,
.consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #AA8500;
  cursor: pointer;
}

/* 26. CONSENT */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0 20px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.consent input {
  margin-top: 2px;
}

.consent span {
  min-width: 0;
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
}

.lead-form button[type="submit"] {
  width: 100%;
  min-height: 56px;
  margin-top: 3px;
  font-size: 16px;
}

/* 27. FORM FEEDBACK */

.lf-status {
  min-height: 0;
  margin: 13px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.lf-status:empty {
  display: none;
}

.lf-status.ok,
.lf-status.err {
  padding: 13px 15px;
  border: 1px solid;
  border-radius: var(--r-sm);
  font-weight: 700;
}

.lf-status.ok {
  border-color: #A8D6BA;
  background: var(--ok-soft);
  color: var(--ok);
}

.lf-status.err {
  border-color: #E5ADB3;
  background: var(--bad-soft);
  color: var(--bad);
}

/* Keep anti-spam input hidden */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* 28. MOBILE STICKY CTA */

.sticky {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  gap: 9px;
  padding:
    10px 12px
    calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -10px 30px #14212D1C;
  transform: translateY(110%);
  opacity: 0;
}

.sticky.show {
  display: flex;
  animation: sticky-enter .35s var(--ease) both;
}

.sticky .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  padding: 10px 9px;
  font-size: 14px;
  font-weight: 800;
}

/* 29. FOOTER */

.foot {
  margin-top: 0;
  padding: 54px 0 110px;
  border-top: 5px solid var(--brand);
  background: var(--surface-dark);
  color: #CBD3DA;
  font-size: 14px;
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.foot-cols > div {
  min-width: 0;
}

.foot b {
  display: block;
  margin-bottom: 13px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 850;
}

.foot a {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 0;
  color: #C5D0D8;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot a:hover {
  color: var(--brand);
}

.foot-legal {
  margin: 32px 0 0;
  padding-top: 23px;
  border-top: 1px solid #39434D;
  color: #B7C4CC;
  font-size: 12px;
  line-height: 1.7;
}

/* 30. COOKIE */

.cookie {
  position: fixed;
  z-index: 100;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  max-width: 480px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-deep);
  font-size: 13px;
}

.cookie[hidden] {
  display: none !important;
}

.cookie p {
  flex: 1 1 160px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.cookie .btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

/* 31. 404 */

.not-found {
  position: relative;
  max-width: 730px;
  min-height: 500px;
  margin: 0 auto;
  padding: 65px 0 100px;
  text-align: center;
}

.nf-code {
  margin-bottom: 12px;
  color: #AE8700;
  font-size: clamp(90px, 22vw, 165px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.1em;
}

.not-found::before {
  content: "";
  display: block;
  width: 150px;
  height: 120px;
  margin: 0 auto 20px;
  background:
    url("illustrations/empty-state.svg")
    center / contain no-repeat;
}

.not-found h1 {
  margin-bottom: 18px;
}

.not-found .lead {
  margin-inline: auto;
}

.not-found .btn-row {
  justify-content: center;
  margin-top: 28px;
}

/* 32. FEDERAL ROOT / HUB */

.t-root main > .wrap,
.t-hub main > .wrap {
  padding-top: 38px;
}

.t-root main > .wrap > h1,
.t-hub main > .wrap > h1 {
  max-width: 940px;
  margin-bottom: 20px;
}

.t-root main > .wrap > .lead,
.t-hub main > .wrap > .lead {
  max-width: 740px;
  margin-bottom: 26px;
}

.t-root main > .wrap > .plus {
  max-width: 920px;
  margin: 25px 0 40px;
}

.t-root main > .wrap > h2 {
  margin-top: 32px;
}

/* 33. MOBILE REFINEMENTS */

@media (max-width: 399px) {
  :root {
    --gut: 14px;
  }

  .top-in {
    gap: 6px;
  }

  .logo {
    gap: 7px;
    font-size: 14px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-city {
    font-size: 10px;
  }

  .top-cta {
    padding-inline: 9px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .lead {
    font-size: 13px;
    line-height: 1.5;
  }

  .hero .wrap > div:first-child::after {
    height: 136px;
    margin: -8px 0 10px;
  }

  .hero .hero-cta {
    margin-bottom: 13px;
  }

  .hero-cta .btn {
    min-height: 50px;
  }

  .plus li {
    min-height: 46px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .plus .ico {
    width: 27px;
    height: 27px;
  }

  .lead-form {
    padding-inline: 15px;
  }
}

@media (min-width: 640px) {
  :root {
    --gut: 22px;
  }

  h1 {
    font-size: 45px;
  }

  h2 {
    font-size: 33px;
  }

  .hero {
    padding: 43px 0;
  }

  .hero h1 {
    font-size: clamp(42px, 6vw, 52px);
  }

  .hero .lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero .wrap > div:first-child::after {
    height: 210px;
  }

  .hero-cta .btn {
    flex: 0 1 auto;
    min-width: 230px;
  }

  .plus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plus li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .plus li:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-form {
    padding: 34px;
  }

  .lead-form .row2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cond {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie {
    left: auto;
    right: 20px;
    bottom: 20px;
  }

  .cookie .btn {
    flex: 0 0 auto;
  }
}

/* 34. DESKTOP */

@media (min-width: 900px) {
  :root {
    --gut: 24px;
    --header-h: 78px;
  }

  .top-in {
    gap: 17px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-mark > img,
  .logo-mark > svg {
    width: 33px;
    height: 33px;
  }

  .logo-city {
    font-size: 12px;
  }

  .nav {
    display: flex;
    margin-left: auto;
  }

  .top-cta {
    margin-left: 4px;
    padding-inline: 17px;
    font-size: 13px;
  }

  .top-phone {
    margin-left: 10px;
  }

  .top-phone small {
    display: inline;
  }

  .burger,
  .mnav,
  .mnav.open {
    display: none !important;
  }

  .crumbs {
    padding-block: 15px;
  }

  .hero {
    min-height: 610px;
    padding: 70px 0 40px;
    margin-bottom: 68px;
  }

  .hero::before {
    top: 0;
    right: -4%;
    width: 59%;
    height: 520px;
    clip-path: polygon(
      33% 0, 58% 0, 100% 100%,
      77% 100%
    );
  }

  .hero::after {
    right: -6%;
    bottom: 35px;
    width: 48%;
    height: 330px;
    opacity: .8;
  }

  .hero .wrap {
    display: grid;
    grid-template-columns:
      minmax(0, 1.12fr)
      minmax(0, .88fr);
    align-items: center;
    column-gap: 22px;
  }

  .hero .wrap > div:first-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .hero h1 {
    max-width: 730px;
    font-size: clamp(49px, 4.4vw, 58px);
    line-height: 1.07;
  }

  .hero .lead {
    max-width: 630px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero .wrap > div:first-child::after {
    display: none;
  }

  .hero-cta {
    margin-top: 5px;
  }

  .hero-cta .btn {
    min-height: 58px;
    font-size: 16px;
  }

  .hero .plus {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: calc(100% + 430px);
    margin-top: 34px;
    border: 0;
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .hero .plus li {
    min-height: 86px;
    padding: 13px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    font-size: 12px;
  }

  .hero .plus li:last-child {
    border-right: 0;
  }

  .hero-img {
    display: block;
    min-height: 350px;
    margin-left: -28px;
    transform: translateY(-8px) scale(1.13);
  }

  /* Existing HTML lacks .hero-img:
     image fallback without HTML modification */

  .hero .wrap > div:first-child {
    position: relative;
  }

  .hero:has(.hero-img) .wrap > div:first-child::before {
    display: none;
  }

  .hero:not(:has(.hero-img)) .wrap::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50px;
    right: 0;
    width: 48%;
    height: 430px;
    background: var(--hero-car-url)
      center / contain no-repeat;
    filter: drop-shadow(0 16px 15px #26354027);
    pointer-events: none;
  }

  .hero:not(:has(.hero-img))
  .wrap > div:first-child {
    padding-right: 0;
  }

  .hero:not(:has(.hero-img))
  .wrap > div:first-child > h1,
  .hero:not(:has(.hero-img))
  .wrap > div:first-child > .lead {
    max-width: 640px;
  }

  .sec {
    margin-bottom: 75px;
  }

  h2 {
    font-size: 38px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
  }

  .card {
    padding: 27px 23px;
  }

  .card::before {
    width: 58px;
    height: 58px;
    background-size: 43px 43px;
  }

  .card h3 {
    font-size: 20px;
  }

  .two {
    gap: 21px;
    margin-bottom: 70px;
  }

  .pain, .answer {
    padding: 33px 29px;
  }

  .pain h2, .answer h2 {
    font-size: 25px;
  }

  /* Horizontal four-step road */

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 48px;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 51px;
    left: 22px;
    right: 22px;
    height: 4px;
    border-radius: 99px;
    background: var(--brand);
    transform-origin: left center;
  }

  .steps li {
    min-height: 175px;
    margin: 0;
    padding: 35px 22px 10px 0;
    border: 0;
  }

  .steps li::before {
    top: -19px;
    left: 0;
    width: 46px;
    height: 46px;
  }

  .steps li::after {
    top: -2px;
    left: 54px;
    width: 8px;
    height: 8px;
    border: 0;
  }

  .steps b {
    margin-top: 5px;
    font-size: 19px;
  }

  .city-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lead-sec {
    padding: 87px 0 100px;
  }

  .lead-sec h2 {
    font-size: 42px;
  }

  .foot-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 29px;
  }

  .foot {
    padding-bottom: 55px;
  }

  .sticky, .sticky.show {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .hero {
    min-height: 630px;
  }

  .hero h1 {
    font-size: 59px;
  }

  .hero-img {
    min-height: 390px;
  }
}

/* 35. NARROW SCREEN SAFETY */

@media (max-width: 639px) {
  .wrap, .hero, .hero .wrap,
  .card, .two, .pain, .answer,
  .lead-form, .field, .faq, .facts {
    min-width: 0;
    max-width: 100%;
  }

  .lead-form .row2 > *,
  .cards > *, .plus > *, .two > * {
    min-width: 0;
  }

  .hero-cta,
  .hero-cta .btn,
  .btn-row,
  .btn-row .btn {
    width: 100%;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }

  .t-root .plus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .t-root main > .wrap > h1 {
    font-size: 33px;
  }

  .t-hub main > .wrap > h1 {
    font-size: 31px;
  }
}

/* 36. MOTION FOUNDATIONS */

@keyframes sticky-enter {
  from {
    opacity: 0;
    transform: translateY(110%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes light-enter {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes car-enter {
  from {
    opacity: 0;
    transform: translateX(110px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes headlight-breathe {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-7px) scale(1.025);
  }
}

@keyframes road-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Apply animations only after JS enhancement.
   Without anim.js all content remains visible. */

html.has-motion .hero h1 {
  animation: light-enter .9s var(--ease) both;
}

html.has-motion .hero .lead {
  animation: light-enter .9s var(--ease) .18s both;
}

html.has-motion .hero-cta {
  animation: light-enter .9s var(--ease) .34s both;
}

html.has-motion .hero .plus {
  animation: light-enter .9s var(--ease) .5s both;
}

html.has-motion .hero-img {
  animation: car-enter .95s var(--ease) .18s both;
}

html.has-motion .hero.is-ready .hero-img {
  animation:
    car-enter .95s var(--ease) .18s both,
    headlight-breathe 5s ease-in-out 1.2s infinite;
}

/* Reveal only when observer support exists */

html.has-motion .reveal-item {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.has-motion .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.has-motion .steps.is-visible::before {
  animation: road-draw 1.3s var(--ease) both;
}

/* 37. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.has-motion .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .sticky.show {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==== Правки vykup-spb после приёмки (28.10): минимальный кегль на телефоне 12 px (правило yatothemoon-mobile-rule) ==== */
@media (max-width: 639px) {
  .plus li, .plus li span { font-size: 12px; }
  .logo-city { font-size: 12px; }
  .top .btn-sm { font-size: 12px; }
}

/* Формы по теплоте лида (b01 formHtml): квиз .quiz (.qs шаги, .qs-nav), короткая форма с details.more, диалог «Заказать звонок» dialog.callback */
.lead-form legend.qs-title { margin-bottom: 14px; font-size: 19px; font-weight: 850; }
.qs-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 14px; color: var(--ink-3); }
.qs-count b { color: var(--ink); }
.qs-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.qs-bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.qs { min-width: 0; margin: 0 0 6px; padding: 0; border: 0; }
.qs-on .qs:not(.on) { display: none; }
.qs-hint { margin: 2px 0 14px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.qs-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.qs-nav .btn { flex: 1; min-height: 52px; }
.qs-nav[hidden], .qs-nav [hidden] { display: none; }
.feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.feats legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.feats label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; }
.feats label:has(input:checked) { border-color: var(--brand-pressed); background: var(--accent-soft); }
.feats input { accent-color: var(--ink); }
details.more { margin: 0 0 18px; }
details.more summary { padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; font-weight: 900; }
details.more[open] summary::before { content: "– "; }
details.more > :nth-child(2) { margin-top: 10px; }
dialog.callback { width: calc(100% - 32px); max-width: 440px; padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
dialog.callback::backdrop { background: #10141999; }
dialog.callback .lead-form { max-width: none; padding: 26px 22px; border: 0; border-top: 4px solid var(--brand); box-shadow: none; }
dialog.callback h3 { margin: 0 36px 8px 0; font-size: 22px; font-weight: 850; }
dialog.callback .dlg-lead { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.dlg-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }

/* Картинки ситуаций (ChatGPT 28.10, /assets/illustrations/art-<ico>.webp): в карточках вместо иконки и на первом экране сегмента через --hero-car-url */
.card-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: -6px 0 10px; }
.card:has(.card-art)::before { display: none; }
/* Анимация машины на первом экране: машина — псевдоэлемент (телефон: ::after текстового блока, ПК: ::after у .wrap), правила для .hero-img не срабатывали */
html.has-motion .hero .wrap > div:first-child::after, html.has-motion .hero:not(:has(.hero-img)) .wrap::after { animation: car-enter 1.2s var(--ease) .3s both; }
html.has-motion .hero.is-ready .wrap > div:first-child::after, html.has-motion .hero.is-ready:not(:has(.hero-img)) .wrap::after { animation: car-enter 1.2s var(--ease) .3s both, headlight-breathe 4s ease-in-out 1.6s infinite; }
/* Телефон: карточка с картинкой — компактно, машина слева, текст справа, чтобы 13 карточек не превращались в ленту картинок */
@media (max-width: 639px) {
  .card:has(.card-art) { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 16px 14px 16px 12px; }
  .card:has(.card-art) .card-art { grid-row: 1 / 3; aspect-ratio: 1 / 1; object-fit: contain; margin: 0; align-self: center; }
  .card:has(.card-art) h3 { grid-column: 2; margin: 0 0 6px; padding-right: 30px; font-size: 16px; }
  .card:has(.card-art) p { grid-column: 2; margin: 0; font-size: 13px; }
  .card:has(.card-art)::after { right: 12px; top: 14px; width: 28px; height: 28px; font-size: 16px; }
}

/* short-форма сразу после первого экрана (главная, сегменты под Директ): без зазора */
.hero + .lead-sec { margin-top: 0; }

/* Жёлтая кнопка заметнее: блик пробегает каждые 4 с, тень мягко пульсирует. Только при включённой анимации (has-motion), без reduced-motion. */
.btn-accent { overflow: hidden; }
.btn-accent::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, #FFFFFF00 0%, #FFFFFFB3 50%, #FFFFFF00 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
}
@keyframes btn-flash {
  0% { left: -70%; opacity: 0; }
  8% { opacity: 1; }
  28% { left: 130%; opacity: 1; }
  29%, 100% { left: 130%; opacity: 0; }
}
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 6px 16px #CFA92829, 0 0 0 0 #FFD83D80, inset 0 1px 0 #FFFFFF5C; }
  50% { box-shadow: 0 10px 24px #CFA92845, 0 0 0 9px #FFD83D00, inset 0 1px 0 #FFFFFF5C; }
}
html.has-motion .btn-accent::after { animation: btn-flash 4s ease-in-out 1.8s infinite; }
html.has-motion .hero-cta .btn-accent, html.has-motion .sticky .btn-accent, html.has-motion .lead-form .btn-accent { animation: btn-glow 2.6s ease-in-out 1.2s infinite; }

/* Всплывашка с оффером (b01 popupHtml, app.js через 45 с): ПК — как dialog.callback по центру; телефон — нижняя плашка ≤ 1/3 экрана, без затемнения, страница прокручивается */
dialog.popup { animation: pu-in .35s var(--ease) both; }
@keyframes pu-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) {
  dialog.popup { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 34vh; margin: 0; overflow: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -12px 36px #14212D33; }
  dialog.popup .lead-form { padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); }
  dialog.popup h3 { font-size: 17px; margin-bottom: 4px; }
  dialog.popup .dlg-lead { display: none; }
  dialog.popup .msgr { display: none; }
  dialog.popup .field { margin-bottom: 8px; }
  dialog.popup .consent { font-size: 11px; }
  dialog.popup .btn { min-height: 44px; }
  body.pu-open .sticky, body.pu-open .cookie { display: none !important; }
}


/* Картинка первого экрана теперь <img class="hero-img"> внутри текстового блока (Google берёт только видимые <img>): телефон — на месте бывшего ::after, ПК — справа, как бывший .wrap::after */
.hero .wrap > div:first-child > .hero-img { display: block; order: 3; width: 100%; height: 154px; min-height: 0; margin: -5px 0 14px; aspect-ratio: auto; object-fit: contain; background: none; filter: drop-shadow(0 9px 8px #26354023); transform: none; pointer-events: none; }
.hero:has(.hero-img) .wrap > div:first-child::after, .hero:has(.hero-img) .wrap::after { display: none; content: none; }
@media (max-width: 399px) { .hero .wrap > div:first-child > .hero-img { height: 136px; margin: -8px 0 10px; } }
@media (min-width: 640px) { .hero .wrap > div:first-child > .hero-img { height: 210px; } }
@media (min-width: 900px) {
  .hero:has(.hero-img) .wrap { position: relative; }
  .hero .wrap > div:first-child > .hero-img { position: absolute; z-index: -1; top: 50px; right: 0; width: 48%; height: 430px; margin: 0; filter: drop-shadow(0 16px 15px #26354027); }
  .hero:has(.hero-img) .wrap > div:first-child { padding-right: 0; }
  .hero:has(.hero-img) .wrap > div:first-child > h1, .hero:has(.hero-img) .wrap > div:first-child > .lead { max-width: 640px; }
}
.src-note { margin: 28px 0 8px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.ad-slot { margin: 24px 0; text-align: center; } .ad-slot-label { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; } .ad-slot-box { min-height: 100px; }
@media (min-width: 900px) { .hero:has(.hero-img) .wrap > div:first-child { position: static; } }
@media (max-width: 899px) { .hero .wrap > div:first-child > .hero-img { width: auto; max-width: 100%; margin-left: auto; margin-right: auto; } }
