/* Toyota Corolla: шоу-страница (обзор). Светлая дневная студия, цвет кузова ведёт акцент страницы.
   Мотив: прерывистая разметка полосы. Она прочерчивается под машиной на первом экране,
   бежит на схеме помощи водителю и служит маркером в списках. */
:root {
  --studio: #e6e8eb;  /* фон студии на рендерах, по замеру углов кадра */
  --paper: #f3f4f6;
  --card: #fbfbfc;
  --ink: #14191f;
  --mute: #58616b;
  --line: rgba(20, 25, 31, .13);
  --asphalt: #1c2127;
  --asphalt-2: #262c33;
  --red: #c4283e;     /* красный металлик из палитры завода */
  --lapis: #48525e;   /* серо-синий металлик из палитры завода */
  --acc: var(--red);
  --acc-ink: #fff;
  --acc-on-dark: #ff6a7c;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --disp: 'Geologica', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
body[data-c="lapis"] { --acc: var(--lapis); --acc-on-dark: #9fb1c6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--studio); color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--acc); text-underline-offset: 3px; transition: color .5s; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 800; line-height: 1.02; letter-spacing: -.022em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--acc); color: var(--acc-ink); border-radius: 8px; }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* разметка полосы как маркер: два штриха */
.quads li::before, .nums li::before, .fam-list li::before {
  content: ''; flex: none; width: 14px; height: 3px; border-radius: 1px; background: var(--acc);
  box-shadow: 22px 0 var(--acc); margin-right: 22px;
  transition: background .5s, box-shadow .5s;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .5s, color .5s, box-shadow .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1.5px rgba(20, 25, 31, .28) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1.5px var(--acc) inset; color: var(--acc); }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--ink); box-shadow: 0 0 0 1.5px rgba(20, 25, 31, .25) inset;
}
.round:hover { box-shadow: 0 0 0 1.5px var(--acc) inset; color: var(--acc); }
.round svg { width: 20px; height: 20px; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; background: var(--studio); overflow: hidden;
  /* машина вписывается в первый экран вместе с заголовком и ценой */
  --carw: min(96vw, 1440px, max(640px, calc((100svh - 260px) * 1.791)));
}
.bar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 16px var(--gut);
}
.brand { font-family: var(--disp); font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--acc); transition: color .5s; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 15px; }
.bar nav a { color: var(--mute); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.bar .tg-mini { color: var(--acc-ink); background: var(--acc); padding: 8px 18px; border-radius: 999px; font-weight: 600; transition: background .5s; }
.bar .tg-mini:hover { color: var(--acc-ink); }

.hero-copy { position: relative; z-index: 2; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 8px var(--gut) 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--mute); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
h1 { margin-top: clamp(16px, 2.6vw, 26px); }
.h-name { display: block; font-size: clamp(52px, 8.4vw, 128px); line-height: .88; letter-spacing: -.045em; }
.h-tail { display: block; margin-top: 14px; font: 400 clamp(17px, 1.7vw, 22px)/1.35 var(--body); letter-spacing: 0; color: var(--mute); max-width: 34ch; }

.scene { position: relative; margin-top: calc(var(--carw) / 1.791 * -0.1); }
.car {
  position: relative; width: var(--carw); aspect-ratio: 2400 / 1340; margin: 0 auto; isolation: isolate;
  /* фон студии на кадрах заранее приведён к цвету страницы (process.py), маска только смягчает край */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 92%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 92%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
.car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair .lapis { opacity: 0; transition: opacity .7s ease; }
body[data-c="lapis"] .pair .lapis { opacity: 1; }
body[data-c="lapis"] .pair .red { opacity: 0; transition: opacity .7s ease; }

/* разметка под колёсами: прочерчивается слева направо, когда машина въехала */
.lane {
  position: absolute; left: 0; right: 0; bottom: calc(var(--carw) / 1.791 * .085); height: 5px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(20, 25, 31, .22) 0 56px, transparent 56px 96px);
}
.js .car[data-wake] { opacity: 0; transform: translate3d(3.5%, 0, 0); }
.js .car.awake { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.5s cubic-bezier(.16, .8, .2, 1); }
.js .lane { clip-path: inset(0 100% 0 0); }
.js .car.awake + .lane { clip-path: inset(0 0 0 0); transition: clip-path 1.6s cubic-bezier(.45, .05, .25, 1) .5s; }

.offer {
  position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 22px 40px;
  max-width: calc(var(--max) + 2 * var(--gut)); margin: calc(var(--carw) / 1.791 * -0.08) auto 0; padding: 0 var(--gut) clamp(40px, 6vw, 80px);
}
.price { margin: 0; grid-row: span 2; }
.price small { display: block; color: var(--mute); font-size: 15px; }
.price b { display: block; font-family: var(--disp); font-weight: 800; letter-spacing: -.03em; font-size: clamp(40px, 5.8vw, 74px); line-height: 1.02; color: var(--acc); transition: color .5s; white-space: nowrap; }
.price span { display: block; margin-top: 6px; font-size: 15px; }
.swatches { display: flex; gap: 8px; justify-self: end; flex-wrap: wrap; }
.sw {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 10px; border: 0; border-radius: 22px; cursor: pointer;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px var(--line) inset; font-size: 15px;
}
.sw i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18) inset; }
.sw[data-c="red"] i { background: var(--red); }
.sw[data-c="lapis"] i { background: var(--lapis); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--acc) inset; background: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-self: end; }
.viz-note { margin: 10px 0 0; color: var(--mute); font-size: 12px; }
.offer .viz-note { grid-column: 1 / -1; margin: 0; }

/* ---------- общие блоки ---------- */
.block { padding: clamp(64px, 9vw, 128px) 0; }
.block + .block { border-top: 1px solid var(--line); }
h2 { font-size: clamp(32px, 4.8vw, 58px); max-width: 24ch; margin-bottom: 18px; }
h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 18px; letter-spacing: -.015em; }
.lead { max-width: 62ch; margin: 0 0 clamp(28px, 4vw, 44px); color: var(--mute); font-size: clamp(16px, 1.5vw, 19px); }
.note, .fine { color: var(--mute); font-size: 14px; }

/* коротко */
.summary { background: var(--paper); }
.answer { max-width: 60ch; margin: 0 0 clamp(36px, 5vw, 60px); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; }
.nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.nums li { display: grid; gap: 10px; align-content: start; }
.nums li::before { margin-bottom: 10px; }
.nums b { font-family: var(--disp); font-weight: 800; letter-spacing: -.03em; font-size: clamp(32px, 3.8vw, 50px); line-height: 1; white-space: nowrap; }
.nums span { color: var(--mute); font-size: 15px; max-width: 26ch; }

/* размеры */
.dim-fig { position: relative; margin: 0; }
.dim-fig img { width: 100%; height: auto; }
.dim-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dim-svg line { stroke: var(--acc); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .5s; }
.js .dim-svg .d { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.js .dim-fig.in .d { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .1, .2, 1); }
.js .dim-fig.in .d-base { transition-delay: .35s; }
.js .dim-fig.in .d-h { transition-delay: .7s; }
.dim-l {
  position: absolute; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-family: var(--disp); font-weight: 700; font-size: clamp(12px, 1.35vw, 17px); color: var(--acc-ink); background: var(--acc);
  transition: background .5s;
}
.l-len { left: 50.6%; top: 86.4%; }
.l-base { left: 50%; top: 93.5%; }
.l-h { left: 96.6%; top: 55%; }
.js .dim-l { opacity: 0; }
.js .dim-fig.in .dim-l { opacity: 1; transition: opacity .5s ease 1.1s, background .5s; }
.dims .fig-note { margin: 12px 0 clamp(32px, 5vw, 56px); }
.spec-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.spec-list div { display: grid; grid-template-columns: minmax(150px, 40%) 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--mute); font-size: 15px; }
.spec-list dd { margin: 0; font-size: 15px; }

/* ракурсы */
.angles { background: var(--paper); }
.viewer { position: relative; aspect-ratio: 2400 / 1340; overflow: hidden; border-radius: 14px; cursor: grab; touch-action: pan-y; user-select: none; background: var(--studio); }
.viewer:active { cursor: grabbing; }
.ang { position: absolute; inset: 0; opacity: 0; transform: translate3d(var(--from, 0), 0, 0); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ang.on { opacity: 1; transform: none; }
.ang img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fig-note { margin-top: 12px; }
.ang-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; cursor: pointer; font-size: 15px;
  background: transparent; color: var(--mute); box-shadow: 0 0 0 1px rgba(20, 25, 31, .2) inset;
}
.chips button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.arrows { display: flex; gap: 8px; flex: none; }

/* помощь водителю: единственный тёмный блок, дорога ночью */
.assist { background: var(--asphalt); color: #eef0f2; padding: clamp(64px, 9vw, 128px) 0; }
.assist .lead { color: #a7afb8; }
.road { position: relative; margin: 0 0 clamp(32px, 4vw, 48px); border-radius: 14px; background: var(--asphalt-2); overflow: hidden; }
.road svg { width: 100%; height: auto; }
.road .edge { stroke: rgba(255, 255, 255, .55); stroke-width: 4; }
.road .dash { stroke: rgba(255, 255, 255, .6); stroke-width: 4; stroke-dasharray: 48 40; }
.road .centre { stroke: var(--acc-on-dark); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; opacity: .9; transition: stroke .5s; }
.road .ego rect:first-child { fill: var(--acc); transition: fill .5s; }
.road .ahead rect:first-child { fill: #59626c; }
.road .glass { fill: rgba(10, 14, 18, .55); }
.road .lamp { fill: #fff; }
.road .rs { stop-color: var(--acc-on-dark); transition: stop-color .5s; }
.road .gap line { stroke: #fff; stroke-width: 1.5; }
.road .beam { transform-origin: 360px 180px; }
.js .road .dash { animation: run 1.1s linear infinite; animation-play-state: paused; }
.js .road.play .dash { animation-play-state: running; }
@keyframes run { to { stroke-dashoffset: 88; } }
.js .road .beam, .js .road .gap, .js .road .rl { opacity: 0; }
.js .road.in .rad { opacity: 1; transition: opacity .9s ease .2s; }
.js .road.in .cam { opacity: 1; transition: opacity .9s ease .6s; }
.js .road.in .gap, .js .road.in .rl { opacity: 1; transition: opacity .6s ease 1.1s; }
.js .road .ahead { transform: translate(1010px, 150px); }
.js .road.in .ahead { transform: translate(846px, 150px); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.rl { position: absolute; transform: translate(-50%, -50%); font-size: clamp(11px, 1.2vw, 14px); color: #eef0f2; background: rgba(28, 33, 39, .85); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.rl-gap { left: 50.4%; top: 20%; }
.rl-lane { left: 20%; top: 64%; color: var(--acc-on-dark); transition: color .5s; }
.aids { list-style: none; margin: 0 0 clamp(40px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.aids li { padding-top: 16px; border-top: 3px solid rgba(255, 255, 255, .18); color: #a7afb8; font-size: 15px; }
.aids b { display: block; color: #fff; margin-bottom: 8px; font-size: 16px; }
.tank { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(255, 255, 255, .14); }
.tank h3 { color: #fff; margin-bottom: 10px; }
.tank p { margin: 0; color: #a7afb8; font-size: 15px; max-width: 46ch; }
.tank-road { position: relative; height: 26px; margin: 26px 0; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 28px, transparent 28px 44px); }
.tank-road i { position: absolute; left: 0; height: 10px; border-radius: 2px; transform-origin: left; }
.tank-road .t25 { top: 0; width: calc(850 / 900 * 100%); background: var(--acc-on-dark); transition: background .5s; }
.tank-road .t26 { bottom: 0; width: calc(820 / 900 * 100%); background: rgba(255, 255, 255, .55); }
.js .tank-road i { transform: scaleX(0); }
.js .tank.in .tank-road i { transform: none; transition: transform 1.8s cubic-bezier(.3, .1, .2, 1); }
.js .tank.in .tank-road .t26 { transition-delay: .25s; }
.tank-road span { position: absolute; font: 700 13px/1 var(--disp); color: #a7afb8; white-space: nowrap; }
.tank-road .k0 { left: 0; top: calc(100% + 6px); }
.tank-road .k850 { right: calc(50 / 900 * 100%); bottom: calc(100% + 6px); color: var(--acc-on-dark); transition: color .5s; }
.tank-road .k820 { right: calc(80 / 900 * 100%); top: calc(100% + 6px); }

/* салон */
.int-fig { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.int-fig img { width: 100%; height: auto; }
.spot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; color: var(--acc); box-shadow: 0 0 0 2px var(--acc) inset, 0 6px 20px rgba(0, 0, 0, .35);
  font: 800 16px/1 var(--disp); transition: background .2s, color .2s, transform .2s;
}
.spot:hover { transform: translate(-50%, -50%) scale(1.08); }
.spot[aria-expanded="true"] { background: var(--acc); color: var(--acc-ink); }
.tips { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tips li { position: relative; padding: 18px 18px 18px 58px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; color: var(--mute); font-size: 15px; transition: box-shadow .25s, background .25s; }
.tips li i { position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--disp); font-style: normal; color: var(--acc); box-shadow: 0 0 0 2px var(--acc) inset; }
.tips li b { display: block; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.tips li.on { box-shadow: 0 0 0 2px var(--acc) inset; background: #fff; }
.interior .viz-note { margin-top: 12px; }

/* деньги */
.money { background: var(--paper); }
/* порядок платежей: линия между точками дорисовывается по шагам, комиссия последней точкой в цвете акцента */
.pay { list-style: none; margin: 0 0 clamp(40px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pay li { position: relative; padding-top: 36px; }
.pay li::before { content: ''; position: absolute; left: 0; top: 0; z-index: 1; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
.pay li:not(:last-child)::after { content: ''; position: absolute; left: 16px; right: -24px; top: 7px; height: 2px; background: var(--ink); transform-origin: left; }
.pay b { display: block; margin-bottom: 6px; font-family: var(--disp); font-weight: 700; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.2; }
.pay span { display: block; color: var(--mute); font-size: 15px; line-height: 1.45; }
.pay li:last-child::before { width: 24px; height: 24px; top: -4px; left: -4px; background: var(--acc); border-color: var(--acc); }
.pay li:last-child b { color: var(--acc); font-size: clamp(22px, 2.5vw, 32px); }
.js .pay li::before { border-color: var(--line); }
.js .pay li:last-child::before { background: var(--paper); border-color: var(--line); }
.js .pay li:not(:last-child)::after { transform: scaleX(0); }
.js .pay.play li::before { border-color: var(--ink); transition: border-color .3s, background .3s; }
.js .pay.play li:last-child::before { background: var(--acc); border-color: var(--acc); }
.js .pay.play li:not(:last-child)::after { transform: none; transition: transform .45s linear; }
.js .pay.play li:nth-child(2)::before, .js .pay.play li:nth-child(2)::after { transition-delay: .45s; }
.js .pay.play li:nth-child(3)::before, .js .pay.play li:nth-child(3)::after { transition-delay: .9s; }
.js .pay.play li:nth-child(4)::before { transition-delay: 1.35s; }
@media (max-width: 760px) {
  .pay { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pay li { padding: 0 0 0 40px; }
  .pay li::before { top: 5px; }
  .pay li:last-child::before { top: 1px; }
  .pay li:not(:last-child)::after { left: 7px; right: auto; top: 21px; bottom: -31px; width: 2px; height: auto; transform-origin: top; }
  .js .pay li:not(:last-child)::after { transform: scaleY(0); }
}
.quads { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.quads li { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quads li::before { margin-right: 34px; }  /* второй штрих тенью уходит на 36 px: отступ до текста после него */

/* версии и расчёт */
.ver-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.ver-list { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.ver {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .2s, background .3s;
}
.ver input { position: absolute; opacity: 0; pointer-events: none; }
.ver:hover { box-shadow: 0 0 0 1px rgba(20, 25, 31, .35) inset; }
.ver:has(input:checked) { box-shadow: 0 0 0 2px var(--acc) inset; background: #fff; }
.ver:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 3px; }
.ver .nm { font-weight: 600; }
.ver .nm em { font-style: normal; font-weight: 400; color: var(--mute); margin-left: 4px; }
.ver .pr { font-family: var(--disp); font-weight: 700; white-space: nowrap; }
.ver:has(input:checked) .pr { color: var(--acc); }
.ver .eq { grid-column: 1 / -1; color: var(--mute); font-size: 14px; }
.calc {
  position: sticky; top: 18px; padding: clamp(20px, 2.6vw, 30px); border-radius: 16px;
  background: #fff; box-shadow: 0 0 0 1px var(--line) inset, 0 24px 60px -30px rgba(20, 25, 31, .35);
}
.calc-car { position: relative; aspect-ratio: 1200 / 670; margin: -8px -8px 10px; }
.calc-car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.colours { margin: 0 0 18px; color: var(--mute); font-size: 13px; }
.lbl { display: block; color: var(--mute); font-size: 14px; }
label.lbl { margin-bottom: 8px; }
.swatches.mini .sw { min-height: 40px; font-size: 14px; background: var(--paper); }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select {
  width: 100%; min-height: 52px; padding: 0 44px 0 16px; border: 0; border-radius: 10px; appearance: none; cursor: pointer;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; font-size: 16px;
}
.sum { margin: 20px 0 0; display: grid; gap: 8px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 16px; }
.sum div span:first-child { color: var(--mute); }
.sum div span:last-child { white-space: nowrap; }
.total { margin: 16px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.total small { color: var(--mute); font-size: 14px; }
.total .out { font-family: var(--disp); font-weight: 800; letter-spacing: -.025em; font-size: clamp(34px, 3.8vw, 46px); line-height: 1.1; color: var(--acc); transition: color .5s; white-space: nowrap; }
.calc > .btn { width: 100%; }
.calc .fine { margin: 14px 0 0; }
.ver-more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; }
.ver-bar { display: none; }

/* порядок заказа: настоящая последовательность, поэтому с номерами */
.order { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: st; }
.steps li { counter-increment: st; padding-top: 16px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(st); display: block; font: 800 36px/1 var(--disp); color: var(--acc); margin-bottom: 14px; transition: color .5s; }
.steps b { display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--mute); font-size: 15px; }

/* модели марки */
.fam-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fam-list li { display: inline-flex; align-items: center; padding: 12px 20px 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px var(--line) inset; font-family: var(--disp); font-weight: 700; }
.fam-list li::before { width: 10px; box-shadow: 16px 0 var(--acc); margin-right: 26px; }
.fam-list a { color: inherit; }

/* вопросы */
.faq { background: var(--paper); }
.faq-list { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font-weight: 600; font-size: clamp(16px, 1.6vw, 19px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--acc); transition: transform .25s, background .5s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 22px; color: var(--mute); max-width: 70ch; }

/* финал */
.final { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--studio); border-top: 1px solid var(--line); overflow: hidden; }
.final .media { position: relative; order: 2; aspect-ratio: 16 / 9; }
.final .media img, .final .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final .media video { opacity: 0; transition: opacity .8s; }
.final .media video.on { opacity: 1; }
/* сверху в кадре ролика край софтбокса и тёмная стена, снизу пол светлее фона: края уходят в фон блока */
.final .media img, .final .media video { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 12%, #000 27%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, transparent 12%, #000 27%, #000 88%, transparent 100%); }
.final .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--studio), transparent 22%); pointer-events: none; }
.final .wrap { order: 1; margin: 0; max-width: none; padding: clamp(48px, 7vw, 96px) var(--gut) clamp(48px, 7vw, 96px) max(var(--gut), calc((100vw - var(--max)) / 2)); }
.fin-copy .lead { margin-bottom: 26px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.fin-copy .viz-note { margin-top: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 15px; }
.links a { color: var(--mute); }
.links a:hover { color: var(--ink); }
footer { padding: 28px var(--gut) 40px; color: var(--mute); font-size: 13px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--mute); }

/* ---------- окно выбора способа связи ---------- */
.cd {
  width: min(460px, calc(100vw - 2 * var(--gut)));
  max-height: calc(100svh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 16px;
  color: var(--ink); overflow: auto; overscroll-behavior: contain;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line) inset, 0 30px 90px -20px rgba(20, 25, 31, .5);
}
.cd::backdrop { background: rgba(20, 25, 31, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cd[open] { animation: cd-in .35s cubic-bezier(.2, .75, .2, 1); }
.cd[open]::backdrop { animation: cd-fade .3s ease; }
@keyframes cd-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes cd-fade { from { opacity: 0; } }
.cd [hidden] { display: none !important; }
.cd-body { padding: clamp(20px, 5vw, 30px); }
.cd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cd h2 { font-size: clamp(20px, 5vw, 24px); line-height: 1.15; padding-top: 6px; margin: 0; }
.cd-close { flex: none; width: 44px; height: 44px; margin: -4px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--mute); cursor: pointer; display: grid; place-items: center; }
.cd-close:hover { color: var(--ink); background: var(--paper); }
.cd-close svg { width: 20px; height: 20px; }
.cd-ways { display: grid; gap: 10px; margin-top: 22px; }
.cd-ways .btn { width: 100%; }
.cd-hint, .cd-note { margin: 0; color: var(--mute); font-size: 13px; }
.cd-hint { color: var(--acc); }
.cd-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.cd-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.cd-row { display: flex; gap: 8px; }
.cd-row input {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; font-size: 16px;
}
.cd-row input::placeholder { color: var(--mute); }
.cd-row input:focus { outline: none; box-shadow: 0 0 0 2px var(--acc) inset; }
.cd-row .btn { flex: none; padding: 0 20px; }
.cd-row .btn:disabled { opacity: .55; cursor: default; }
.cd-honey { display: none; } /* как на сайте: автозаполнение пропускает скрытое поле, заявка не теряется */
.cd-err { margin: 10px 0 0; color: #b3261e; font-size: 14px; }
.cd-err a { color: inherit; }
.cd-ok { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--acc); font-size: 15px; }
@media (max-width: 420px) {
  .cd-row { flex-direction: column; }
  .cd-row .btn { width: 100%; }
}

/* ---------- планшет ---------- */
@media (max-width: 1080px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: 1fr 1fr; }
  .aids { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 960px) {
  .offer { grid-template-columns: 1fr; }
  .price { grid-row: auto; }
  .swatches, .btns { justify-self: start; }
  .spec-list { grid-template-columns: 1fr; }
  .ver-grid { grid-template-columns: 1fr; }
  .calc { position: static; }
  .quads { grid-template-columns: 1fr; }
  .tank { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; }
  .final .media { order: 0; }
  .final .media::after { background: linear-gradient(0deg, var(--studio), transparent 30%); }
  .final .wrap { padding: 8px var(--gut) 56px; }
  /* телефон: итог и кнопка под пальцем, пока на экране список версий */
  .ver-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .3s ease; visibility: hidden;
  }
  .ver-bar.show { transform: none; visibility: visible; }
  .ver-bar small { display: block; color: var(--mute); font-size: 12px; }
  .ver-bar b { font-family: var(--disp); font-weight: 800; font-size: 22px; color: var(--acc); white-space: nowrap; }
  .ver-bar .btn { min-height: 46px; padding: 0 20px; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hide-m { display: none; }
  .hero { --carw: 132vw; }
  .car { margin-left: calc(50% - 66vw); }
  .scene { margin-top: 0; }
  .offer { margin-top: -6vw; gap: 18px; }
  .btns .btn { flex: 1 1 auto; }
  .nums { gap: 26px 16px; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .dim-l { padding: 2px 7px; }
  .l-h { left: 93%; }
  .tips { grid-template-columns: 1fr; }
  .aids { grid-template-columns: 1fr; gap: 20px; }
  .rl { display: none; }
  .spot { width: 38px; height: 38px; font-size: 14px; }
  .ang-ctrl { flex-direction: column; align-items: stretch; }
  .arrows { justify-content: flex-end; margin-top: -4px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .fam-list li { font-size: 15px; }
}

/* ---------- без анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .car[data-wake], .js .car.awake { opacity: 1; transform: none; transition: none; }
  .js .lane { clip-path: none; }
  .js .dim-svg .d { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .dim-l { opacity: 1; }
  .js .road .dash { animation: none; }
  .js .road .beam, .js .road .gap, .js .road .rl { opacity: 1; }
  .js .road .ahead { transform: translate(846px, 150px); }
  .js .tank-road i { transform: none; }
  .js .pay li::before, .js .pay li::after { transition: none; }
  .js .pay li:not(:last-child)::after { transform: none; }
  .ang, .ang.on, .pair .lapis, .pair .red, .ver-bar { transition: none; }
  .cd[open], .cd[open]::backdrop { animation: none; }
  .final .media video { display: none; }
}
