@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('fonts/manrope-500-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('fonts/manrope-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-600-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-700-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/manrope-800-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/manrope-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --sand: #f2f5fa;
  --ink: #1c2127;
  --ink-2: #4a5059;
  --muted: #7a7f86;
  --line: #e3e8ef;
  --accent: #2f62b8;
  --accent-hover: #264f96;
  --accent-soft: #e8eef8;
  --ok: #1f9d55;
  --danger: #c0392b;
  --r: 20px;
  --r-sm: 14px;
  --header: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3, p, li { text-wrap: pretty; }
.nw { white-space: nowrap; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.i { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.section--tight { padding-top: clamp(48px, 7vw, 80px); }
.section--last { padding-bottom: clamp(64px, 9vw, 112px); }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow--light { color: rgba(255,255,255,.65); }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.head .eyebrow { margin-bottom: 12px; }
.title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.lead { margin-top: 14px; font-size: 1.05rem; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--wide { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--accent-soft); }
.btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }

.header { position: sticky; top: 0; z-index: 50; height: var(--header); background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; flex: 1; justify-content: center; gap: 26px; }
.nav a { white-space: nowrap; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.header__phone .i { width: 17px; height: 17px; color: var(--accent); }

.hero { padding: clamp(28px, 5vw, 56px) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy .eyebrow { margin-bottom: 18px; }
.hero__title { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.hero__lead { margin-top: 20px; font-size: 1.1rem; color: var(--ink-2); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts li { display: grid; }
.hero__facts b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.hero__facts li > span { font-size: .88rem; color: var(--muted); }

.hero__visual { position: relative; }
.hero__stage {
  position: relative; aspect-ratio: 16 / 11; border-radius: 28px;
  background: radial-gradient(70% 60% at 50% 45%, #fff 0%, var(--sand) 100%);
}
.hero__car { position: absolute; left: 6%; right: 6%; bottom: 10%; width: 88%; height: auto; max-height: 80%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease); filter: drop-shadow(0 22px 22px rgba(24,40,72,.18)); }
.hero__car.is-on { opacity: 1; }
.hero__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hero__tab { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface); text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s; }
.hero__tab b { font-weight: 800; font-size: .98rem; }
.hero__tab > span { font-size: .84rem; color: var(--muted); }
.hero__tab:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.hero__tab[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.hero__tab[aria-selected="true"] > span { color: rgba(255,255,255,.75); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px rgba(24,40,72,.25); }
.card__photo { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px 20px 6px; background: linear-gradient(180deg, var(--surface) 0%, var(--sand) 100%); }
.card__photo img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s var(--ease); }
.card__photo img.is-fading { opacity: 0; }
.card__body { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px 26px; flex: 1; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.card__body-type { font-size: .84rem; color: var(--muted); font-weight: 600; }
.card__pitch { color: var(--ink-2); font-size: .96rem; min-height: 4.8em; }
.swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow .2s; }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatches__name { margin-left: 6px; font-size: .86rem; color: var(--muted); }
.card__price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.price__old { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .82rem; }
.price__credit { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.card__more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: color .2s; }
.card__more:hover { color: var(--ink); }
.card__more .i { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.card__more:hover .i { transform: translateX(3px); }
.card__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.card__facts li { padding: 5px 11px; border-radius: 999px; background: var(--sand); font-size: .8rem; color: var(--ink-2); }

.tbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__btn { min-height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { background: var(--accent); color: #fff; }
.tnav { display: flex; align-items: center; gap: 8px; }
.tnav__count { margin-right: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tnav__btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, opacity .2s; }
.tnav__btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.tnav__btn:disabled { opacity: .4; cursor: default; }

.tlist { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 30px; margin: -2px -2px -30px; }
.tlist::-webkit-scrollbar { display: none; }
.trim { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; border-radius: var(--r); background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px rgba(24,40,72,.25); }
.trim__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trim__gear { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: .78rem; font-weight: 700; }
.trim__name { min-width: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trim__text { font-size: .92rem; color: var(--ink-2); min-height: 3.2em; }
.trim__price { padding-top: 16px; border-top: 1px solid var(--line); }
.trim__equip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 700; font-size: .9rem; color: var(--accent); }
.trim__equip .i { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.trim__equip:hover .i { transform: translateX(3px); }
.trim__actions { display: grid; gap: 8px; margin-top: auto; padding-top: 4px; }
.trim__actions .btn { min-height: 48px; }

.modal--wide .eyebrow { margin-bottom: 6px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: -6px 0 22px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.equip { columns: 2; column-gap: 32px; }
.equip section { break-inside: avoid; padding-bottom: 18px; }
.equip h3 { margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.equip li { position: relative; padding: 4px 0 4px 22px; font-size: .92rem; line-height: 1.45; }
.equip li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.equip__foot { position: sticky; bottom: -28px; margin: 4px -28px -28px; padding: 16px 28px 28px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--surface) 30%); }

.visit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--sand); }
.dots { display: none; }
.visit__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.visit__icon .i { width: 26px; height: 26px; }
.visit__title { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.visit__text { margin-top: 6px; color: var(--ink-2); font-size: .96rem; max-width: 60ch; }

.gov { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.gov__item { display: flex; flex-direction: column; padding: 22px 20px 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px rgba(24,40,72,.25); }
.gov--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gov__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.gov__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.gov__icon .i { width: 26px; height: 26px; }
.gov__num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.gov__item h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.gov__item p { margin: 8px 0 18px; font-size: .9rem; color: var(--ink-2); }
.gov__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); text-align: left; white-space: nowrap; }
.gov__btn .i { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.gov__btn:hover .i { transform: translateX(3px); }

.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.calc__form { display: grid; gap: 26px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px rgba(24,40,72,.25); }
.calc__label { display: block; margin-bottom: 10px; font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.calc__label--row { display: flex; justify-content: space-between; align-items: baseline; }
.calc__label b { font-size: 1.05rem; color: var(--ink); }
.calc__models { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__terms { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.calc__terms .pill span { display: flex; justify-content: center; min-height: 36px; padding: 0 4px; font-size: .8rem; white-space: nowrap; }
.pill--sm span { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.select { position: relative; min-width: 0; }
.calc__field { min-width: 0; }
.select__btn { display: flex; align-items: center; width: 100%; height: 52px; padding: 0 44px 0 16px; border-radius: var(--r-sm); background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); font: 600 1rem var(--font); color: var(--ink); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select__btn:focus-visible, .select__btn[aria-expanded="true"] { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.select__btn[aria-expanded="true"] ~ .i { transform: rotate(180deg); }
.select__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: var(--r-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(24,40,72,.25); }
.select__list li { padding: 11px 12px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.select__list li:hover { background: var(--sand); }
.select__list li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.select .i { position: absolute; right: 16px; top: 16px; color: var(--muted); pointer-events: none; transition: transform .2s var(--ease); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; --p: .2; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) calc(var(--p) * 100%), var(--line) 0); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) calc(var(--p) * 100%), var(--line) 0); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 4px 10px rgba(24,40,72,.2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 4px 10px rgba(24,40,72,.2); }
.range__hint { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.calc__result { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--accent); color: #fff; }
.calc__result .calc__label { color: rgba(255,255,255,.7); }
.calc__monthly { font-size: clamp(2.4rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__mode { margin-top: 6px; font-size: .9rem; color: rgba(255,255,255,.75); min-height: 1.4em; }
.calc__rows { display: grid; gap: 10px; margin: 24px 0 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.calc__rows dt { color: rgba(255,255,255,.7); }
.calc__rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__result .btn { margin-top: auto; background: #fff; color: var(--accent); }
.calc__result .btn:hover { background: var(--accent-soft); }
.calc__note { margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.45; }

.offer { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--accent); color: #fff; }
.offer__copy { position: relative; z-index: 1; max-width: 560px; }
.offer__title { margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.offer__text { margin-top: 12px; color: rgba(255,255,255,.8); }
.offer .btn { position: relative; z-index: 1; }
.offer__car { position: absolute; right: -4%; bottom: -12%; width: 36%; opacity: .12; pointer-events: none; }


.final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(24,40,72,.3); }
.final__copy .eyebrow { margin-bottom: 12px; }
.checks { margin-top: 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.checks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2.4; }
.contacts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.contacts li { display: flex; gap: 10px; align-items: center; }
.contacts .i { color: var(--muted); width: 18px; height: 18px; }
.contacts a { color: var(--ink); font-weight: 700; }
.contacts span a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.final__form { align-self: center; }

.form { display: grid; gap: 14px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--sand); font-weight: 600; font-size: .9rem; transition: background-color .2s, color .2s; }
.pill input:checked + span { background: var(--accent); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input { width: 100%; height: 54px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; outline: none; transition: box-shadow .2s; }
.input::placeholder { color: var(--muted); font-weight: 500; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--surface); }
.input.invalid { box-shadow: inset 0 0 0 1.5px var(--danger); animation: shake .35s var(--ease); }
.consent { position: relative; display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.consent input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.consent__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: #fff; transition: background-color .2s; }
.consent__box .i { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.consent input:checked + .consent__box { background: var(--accent); box-shadow: none; }
.consent input:checked + .consent__box .i { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent.invalid .consent__box { box-shadow: inset 0 0 0 1.5px var(--danger); animation: shake .35s var(--ease); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form__status { font-size: .88rem; font-weight: 600; color: var(--danger); }
.form__status:empty { display: none; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.footer { padding: 40px 0 32px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--ink-2); }
.footer__top .logo { color: var(--ink); margin-right: auto; }
.footer__phone { font-weight: 800; color: var(--ink); }
.footer__legal { margin-top: 22px; max-width: 90ch; font-size: .8rem; line-height: 1.5; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.footer__copy { margin-left: auto; }
.footer__links a { text-decoration: underline; text-underline-offset: 2px; }

.modal { border: 0; padding: 0; background: transparent; color: inherit; width: min(480px, calc(100% - 24px)); max-width: none; max-height: none; margin: auto; outline: none; }
.modal--wide { width: min(760px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(24,40,72,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } }
.modal__box { position: relative; padding: 32px 28px 28px; border-radius: 24px; background: var(--surface); max-height: calc(100dvh - 24px); overflow: auto; }
@supports (-moz-appearance: none) { .modal__box { scrollbar-width: thin; scrollbar-color: var(--line) transparent; } }
.modal__box:focus { outline: none; }
.modal__box::-webkit-scrollbar { width: 6px; }
.modal__box::-webkit-scrollbar-track { background: transparent; margin: 24px 0; }
.modal__box::-webkit-scrollbar-thumb { border-radius: 6px; background: #cfd6e0; }
.modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); }
.modal__close:hover { background: var(--accent-soft); }
.modal__car { margin: -6px 0 12px; height: 120px; }
.modal__car img { height: 100%; width: auto; margin: 0 auto; object-fit: contain; }
.modal__title { padding-right: 40px; font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.modal__text { margin: 8px 0 22px; color: var(--ink-2); font-size: .96rem; }
.modal .form__row { grid-template-columns: 1fr; }

.toast {
  position: fixed; top: 16px; left: 50%; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: var(--ok); color: #fff;
  padding: 14px 20px; border-radius: 999px;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 20px 40px -16px rgba(15,85,45,.5);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.legal { padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 3vw, 32px); }
.legal + .footer .wrap { max-width: 860px; }
.legal .wrap { max-width: 860px; }
.legal__crumbs { font-size: .86rem; color: var(--muted); }
.legal__crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.legal h1 { margin: 12px 0 28px; font-size: clamp(1.6rem, 4vw, 2.8rem); hyphens: auto; overflow-wrap: break-word; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.legal__body { padding: clamp(22px, 4vw, 44px); border-radius: var(--r); background: var(--surface); color: var(--ink-2); box-shadow: 0 1px 0 var(--line); }
.legal__body h2 { margin: 26px 0 8px; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p + p { margin-top: 6px; }
.legal__body ul { margin: 8px 0; display: grid; gap: 4px; padding-left: 20px; list-style: disc; }
.legal__body a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1200px) {
  .header__in { gap: 22px; }
  .nav { gap: 18px; }
  .nav a { font-size: .9rem; }
  .gov { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gov--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .header__in { gap: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: .86rem; }
}

@media (max-width: 1080px) {
  .gov--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .header__in { gap: 18px; }
  .header__phone { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tlist { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .final { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer .btn { justify-self: start; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .header__phone span { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--accent); margin-right: -8px; }
  .header__phone .i { width: 20px; height: 20px; color: #fff; transform: translate(-.45px, .45px); } /* трубка в иконке смещена вправо-вверх — выравниваем по центру круга */
  .header__cta.btn--primary { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--line); }
  .header__cta.btn--primary:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
  .header__cta { padding: 0 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stage { border-radius: 20px; }
  .hero__tab { padding: 10px 12px; }
  .hero__tab b { font-size: .9rem; }
  .hero__tab > span { font-size: .76rem; }
  .card__pitch { min-height: 0; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin-top: 28px; }
  .hero__facts b { font-size: 1.1rem; }
  .hero__facts li > span { font-size: .78rem; }
  .tbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg__btn { padding: 0 8px; }
  .tnav { justify-content: flex-end; }
  .trim { padding: 20px; }
  .equip { columns: 1; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .logo img { height: 34px; }
  .equip__foot .btn { width: 100%; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .offer .btn { justify-self: stretch; }
  .visit { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .visit__icon { width: 48px; height: 48px; }
  .visit .btn { grid-column: 1 / -1; }

  .hero { padding-top: 12px; }
  .hero__visual { order: -1; }
  .hero__stage { aspect-ratio: 16 / 10; }
  .hero__copy .eyebrow { margin-bottom: 12px; }

  .cards, .tlist, .gov { display: grid; grid-template-columns: none; grid-auto-flow: column; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: 2px clamp(16px, 4vw, 40px) 26px; scroll-padding: 0 clamp(16px, 4vw, 40px); }
  .cards::-webkit-scrollbar, .gov::-webkit-scrollbar { display: none; }
  .gov { grid-auto-columns: 74%; }
  .gov--4 { grid-template-columns: none; }
  .cards { grid-auto-columns: 86%; }
  .tlist { grid-auto-columns: 86%; }
  .card, .trim, .gov__item { scroll-snap-align: start; }
  .tnav { display: none; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: -8px; }
  .dots button { width: 7px; height: 7px; border-radius: 4px; background: #d3dae4; transition: width .25s var(--ease), background-color .25s; }
  .dots button.is-on { width: 20px; background: var(--accent); }

  .offer__car { display: none; }
  .calc__terms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calc__terms .pill span { min-height: 40px; font-size: .86rem; }
  /* Калькулятор на телефоне: контур блока чуть заметнее (белый блок на белом фоне) */
  .calc__form { box-shadow: 0 0 0 1px #d9e0ea, 0 24px 48px -36px rgba(24,40,72,.25); }
  /* Крестик привязан к самому окну (dialog), а не к прокручиваемому содержимому — всегда виден при прокрутке. */
  .modal__box { position: static; }
  .modal__close { top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; box-shadow: 0 2px 10px rgba(24,40,72,.14); }
  .toast { left: 16px; right: 16px; transform: translateY(-12px); width: auto; }
  .toast.is-visible { transform: translateY(0); }
}

@media (max-width: 420px) {
  .hero__tab { padding: 10px; }
  .hero__tab b { font-size: .8rem; white-space: nowrap; }
  .hero__tab > span { font-size: .72rem; }
}

@media (max-width: 380px) {
  .header__in { gap: 10px; }
  .logo img { height: 30px; }
  .header__phone { margin-right: -4px; }
  .header__cta { font-size: .8rem; padding: 0 12px; }
  .trim__name { font-size: 1.02rem; }
  .trim__gear { padding: 3px 8px; font-size: .72rem; }
  .hero__facts { gap: 8px; }
  .hero__facts b { font-size: .9rem; white-space: nowrap; }
  .hero__facts li > span { font-size: .72rem; }
  .trim { padding: 18px 16px; }
  .trim__equip { font-size: .84rem; }
  .trim__actions .btn { padding: 0 12px; font-size: .9rem; white-space: normal; }
}

/* iPhone/iPad (Safari): filter: drop-shadow на фото даёт видимую прямоугольную рамку вокруг машины. */
@supports (-webkit-touch-callout: none) {
  .hero__car { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
