/* Hyundai Elantra: шоу-страница (обзор). Графит и холодный свет, цвет кузова ведёт акцент страницы.
   Мотив: светодиодная полоса во всю ширину, как у седана спереди и сзади, и косые грани кузова.
   Отсюда полоса света на первом экране, косые метки в списках и срезанные углы у кнопок и панелей. */
:root {
  --asphalt: #14171b;  /* фон страницы: графит */
  --under: #0f1215;    /* подложка чередующихся блоков */
  --panel: #1a1e24;    /* карточки версий и расчёт */
  --line: rgba(169, 214, 245, .13);
  --paper: #e8ecf0;
  --fog: #97a1ac;
  --ice: #a9d6f5;      /* акцент при белом кузове */
  --signal: #86a2ff;   /* акцент при синем кузове */
  --body-white: #eef1f4;
  --body-navy: #1758ba;  /* 冰海蓝, заводской цвет из каталога */
  --brake: #ff4f4a;    /* стоп-сигнал: только для суммы, которую человек не платит */
  --acc: var(--ice);
  --acc-ink: #0b1a26;
  --cut: 12px;         /* срез угла, как грань на кузове */
  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --disp: 'Exo 2', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
body[data-c="navy"] { --acc: var(--signal); --acc-ink: #0a1233; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--asphalt); color: var(--paper);
  font: 400 17px/1.6 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; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 700; line-height: 1.04; letter-spacing: -.015em; }
: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); }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* срезанные углы: правый верхний и левый нижний, как косая линия боковины */
.btn, .chips button, .ver, .calc, .city-card, .tips li, .sw, .select select, .cd-row input {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.sw, .chips button, .select select, .cd-row input { --cut: 8px; }

/* косая метка: короткий отрезок светодиодной полосы */
.nums li::before, .ticks li::before {
  content: ''; flex: none; width: 22px; height: 4px; background: var(--acc);
  transform: skewX(-38deg); transition: background .6s;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .6s, color .4s, transform .15s;
}
.btn:active { transform: translateY(1px); }
/* обводка фокуса внутри: срезанный угол обрезал бы внешнюю */
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: color-mix(in srgb, var(--acc) 82%, #fff); }
.btn-ghost { background: rgba(232, 236, 240, .08); color: var(--paper); }
.btn-ghost:hover { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(232, 236, 240, .08); color: var(--paper);
}
.round:hover { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); }
.round svg { width: 20px; height: 20px; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 45% at 50% 82%, rgba(169, 214, 245, .06), transparent 70%), var(--asphalt);
  /* машина вписывается в первый экран вместе с заголовком и ценой */
  --carw: min(96vw, 1520px, 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: 700; font-size: 20px; color: var(--paper); text-decoration: none; }
.brand span { color: var(--acc); transition: color .6s; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 15px; }
.bar nav a { color: var(--fog); text-decoration: none; }
.bar nav a:hover { color: var(--paper); }
.bar .tg-mini {
  color: var(--acc-ink); background: var(--acc); padding: 8px 18px; font-weight: 600; transition: background .6s, color .6s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.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(--fog); }
.crumbs a { color: var(--fog); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
h1 { margin-top: clamp(16px, 2.6vw, 28px); }
.h-name { display: block; font-size: clamp(48px, 7.2vw, 112px); line-height: .92; letter-spacing: -.03em; }
.h-tail { display: block; margin-top: 12px; font: 400 clamp(17px, 1.7vw, 22px)/1.35 var(--body); letter-spacing: 0; color: var(--fog); max-width: 32ch; }

/* --floor: линия пола на рендере front34, по ней идёт полоса света */
.scene { position: relative; --floor: 82%; margin-top: calc(var(--carw) / 1.791 * -0.08); }
.car {
  position: relative; width: var(--carw); aspect-ratio: 2400 / 1340; margin: 0 auto; isolation: isolate;
  /* края кадра растворяются в фоне страницы */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair .navy { opacity: 0; transition: opacity .7s ease; }
body[data-c="navy"] .pair .navy { opacity: 1; }

/* полоса света: без скрипта просто горит тонкой линией на полу */
.beam {
  position: absolute; left: 0; right: 0; top: var(--floor); z-index: 2; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 70%, transparent) 18%, #fff 50%, color-mix(in srgb, var(--acc) 70%, transparent) 82%, transparent);
  opacity: .5; transition: background .6s;
}
.beam::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: -40px; height: 80px;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%);
}
/* пробуждение: сцена тёмная, полоса разворачивается от центра, затем из темноты выходит машина */
.js .scene[data-wake] .car::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--asphalt); opacity: .92;
}
.js .scene.awake .car::after { opacity: 0; transition: opacity 1.8s cubic-bezier(.3, .1, .2, 1) .7s; }
.js .scene[data-wake] .beam { transform: scaleX(0); opacity: 0; }
.js .scene.awake .beam { animation: beam 2.6s cubic-bezier(.2, .7, .2, 1) .1s forwards; }
@keyframes beam {
  0% { transform: scaleX(0); opacity: 1; }
  38% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: .5; }
}

.offer {
  position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 22px 32px;
  max-width: calc(var(--max) + 2 * var(--gut)); margin: calc(var(--carw) / 1.791 * -0.1) auto 0; padding: 0 var(--gut) clamp(40px, 6vw, 80px);
}
.price { margin: 0; }
.price small { display: block; color: var(--fog); font-size: 15px; }
.price b { display: block; font-family: var(--disp); font-weight: 500; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.02em; color: var(--acc); transition: color .6s; white-space: nowrap; }
.price span { display: block; margin-top: 6px; font-size: 15px; }
.swatches { display: flex; gap: 8px; }
.sw {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 10px; border: 0; cursor: pointer;
  background: rgba(232, 236, 240, .07); font-size: 15px; transition: background .3s;
}
.sw i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(232, 236, 240, .35) inset; }
.sw[data-c="white"] i { background: var(--body-white); }
.sw[data-c="navy"] i { background: var(--body-navy); }
.sw[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--paper); }
.sw:focus-visible { outline: 2px solid var(--acc); outline-offset: -4px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.viz-note { margin: 10px 0 0; color: var(--fog); font-size: 12px; }
.offer .viz-note { grid-column: 1 / -1; margin: 0; }

/* ---------- общие блоки ---------- */
.block { padding: clamp(64px, 9vw, 124px) 0; }
.block + .block { border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 24ch; margin-bottom: 18px; }
h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 18px; }
.lead { max-width: 62ch; margin: 0 0 clamp(28px, 4vw, 44px); color: var(--fog); font-size: clamp(16px, 1.5vw, 19px); }
.note, .fine { color: var(--fog); font-size: 14px; }

/* коротко */
.summary { background: var(--under); }
.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: 0 0 8px 6px; }
.nums b { font-family: var(--disp); font-weight: 500; font-size: clamp(32px, 3.8vw, 48px); line-height: 1; letter-spacing: -.02em; color: var(--acc); transition: color .6s; white-space: nowrap; }
.nums span { color: var(--fog); font-size: 15px; max-width: 26ch; }

/* размеры: линии задаются переменными у figure, см. разметку */
.dim-fig { position: relative; margin: 0; --len-y: 5%; --base-y: 11%; }
.dim-fig img { width: 100%; height: auto; border-radius: 2px; }
.dl { position: absolute; background: var(--acc); transition: background .6s; }
.dl::before, .dl::after { content: ''; position: absolute; background: inherit; }
.dl-len, .dl-base { height: 1.5px; }
.dl-len { left: var(--x0); width: calc(var(--x1) - var(--x0)); top: calc(var(--floor) + var(--len-y)); }
.dl-base { left: var(--a0); width: calc(var(--a1) - var(--a0)); top: calc(var(--floor) + var(--base-y)); }
.dl-len::before, .dl-len::after, .dl-base::before, .dl-base::after { top: -7px; width: 1.5px; height: 15px; }
.dl-len::before, .dl-base::before { left: 0; }
.dl-len::after, .dl-base::after { right: 0; }
.dl-h { width: 1.5px; left: calc(var(--x1) + 3%); top: var(--top); height: calc(var(--floor) - var(--top)); }
.dl-h::before, .dl-h::after { left: -7px; width: 15px; height: 1.5px; }
.dl-h::before { top: 0; }
.dl-h::after { bottom: 0; }
.js .dl-len, .js .dl-base { transform: scaleX(0); }
.js .dl-h { transform: scaleY(0); }
.js .dim-fig.in .dl { transform: none; transition: transform 1.2s cubic-bezier(.3, .1, .2, 1), background .6s; }
.js .dim-fig.in .dl-base { transition-delay: .3s; }
.js .dim-fig.in .dl-h { transition-delay: .6s; }
.dim-l {
  position: absolute; transform: translate(-50%, -50%); padding: 3px 9px; white-space: nowrap;
  font-family: var(--disp); font-weight: 500; font-size: clamp(12px, 1.35vw, 17px); color: var(--acc); background: rgba(20, 23, 27, .9);
  transition: color .6s;
}
.l-len { left: calc((var(--x0) + var(--x1)) / 2); top: calc(var(--floor) + var(--len-y)); }
.l-base { left: calc((var(--a0) + var(--a1)) / 2); top: calc(var(--floor) + var(--base-y)); }
.l-h { left: calc(var(--x1) + 3%); top: calc((var(--top) + var(--floor)) / 2); }
.js .dim-l { opacity: 0; }
.js .dim-fig.in .dim-l { opacity: 1; transition: opacity .5s ease 1s; }
.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(--fog); font-size: 15px; }
.spec-list dd { margin: 0; font-size: 15px; }

/* ракурсы */
.angles { background: var(--under); }
.viewer { position: relative; aspect-ratio: 2400 / 1340; overflow: hidden; border-radius: 2px; cursor: grab; touch-action: pan-y; user-select: none; background: var(--asphalt); }
.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 20px; border: 0; cursor: pointer; font-size: 15px;
  background: rgba(232, 236, 240, .07); color: var(--fog);
}
.chips button:hover { color: var(--paper); }
.chips button[aria-checked="true"] { background: var(--acc); color: var(--acc-ink); }
.chips button:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.arrows { display: flex; gap: 8px; flex: none; }

/* город и расход: карточка справа поверх кадра */
.city { position: relative; background: var(--asphalt); padding-bottom: clamp(64px, 9vw, 124px); }
.city picture img { width: 100%; height: min(62vw, 86vh); object-fit: cover; object-position: 50% 55%; }
.city .wrap { position: relative; margin-top: calc(-1 * min(16vw, 200px)); }
.city-card {
  max-width: 540px; margin-left: auto; padding: clamp(22px, 3.2vw, 40px);
  background: rgba(15, 18, 21, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  --cut: 18px;
}
.city-card h2 { margin-bottom: 14px; }
.city-card > p { margin: 0; color: var(--fog); }
.city-card .viz-note { margin-top: 16px; }
.fuel { margin: 34px 0 0; }
.fuel p { margin: 16px 0 0; color: var(--fog); font-size: 15px; }
.fuel b { font-family: var(--disp); font-weight: 500; color: var(--paper); }
/* 47 делений, по одному на литр бака; подсвечено 5,36 из 47 */
.fuel-bar {
  position: relative; height: 22px; margin-top: 30px;
  background: repeating-linear-gradient(90deg, rgba(232, 236, 240, .12) 0 calc(100% / 47 - 2px), transparent calc(100% / 47 - 2px) calc(100% / 47));
}
.fuel-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% * 5.36 / 47); transform-origin: left;
  background: repeating-linear-gradient(90deg, var(--acc) 0 calc(100% / 5.36 - 2px), transparent calc(100% / 5.36 - 2px) calc(100% / 5.36));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--acc) 55%, transparent));
}
.js .fuel-bar i { transform: scaleX(0); }
.js .fuel.in .fuel-bar i { transform: none; transition: transform 1.6s cubic-bezier(.3, .1, .2, 1) .2s; }
.fuel-bar span { position: absolute; bottom: calc(100% + 6px); font: 500 14px/1 var(--disp); white-space: nowrap; }
.f-use { left: calc(100% * 5.36 / 47); transform: translateX(-50%); color: var(--acc); transition: color .6s; }
.f-full { right: 0; color: var(--fog); }

/* салон */
.int-fig { position: relative; margin: 0; overflow: hidden; border-radius: 2px; }
.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: rgba(20, 23, 27, .74); color: var(--acc); box-shadow: 0 0 0 1.5px var(--acc) inset, 0 0 22px color-mix(in srgb, var(--acc) 35%, transparent);
  font: 500 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: 14px; }
.tips li { position: relative; padding: 18px 18px 18px 58px; background: rgba(232, 236, 240, .045); color: var(--fog); font-size: 15px; transition: background .25s; }
.tips li::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); opacity: 0; transition: opacity .25s, background .6s; }
.tips li i { position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 14px/1 var(--disp); font-style: normal; color: var(--acc); box-shadow: 0 0 0 1.5px var(--acc) inset; }
.tips li b { display: block; color: var(--paper); margin-bottom: 6px; font-weight: 600; }
.tips li.on { background: color-mix(in srgb, var(--acc) 9%, transparent); }
.tips li.on::after { opacity: 1; }
.interior .viz-note { margin-top: 12px; }

/* деньги */
.money { background: var(--under); }
/* порядок платежей: линия между точками дорисовывается по шагам, комиссия последней точкой в цвете акцента */
.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(--paper); border-radius: 2px; background: var(--under); transform: rotate(45deg); }
.pay li:not(:last-child)::after { content: ''; position: absolute; left: 16px; right: -24px; top: 7px; height: 2px; background: var(--paper); transform-origin: left; }
.pay b { display: block; margin-bottom: 6px; font-family: var(--disp); font-weight: 500; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.2; }
.pay span { display: block; color: var(--fog); 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(--under); border-color: var(--line); }
.js .pay li:not(:last-child)::after { transform: scaleX(0); }
.js .pay.play li::before { border-color: var(--paper); 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); }
}
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.ticks li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ticks li::before { margin-left: 6px; }

/* версии и расчёт */
.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: 6px 16px; padding: 18px 20px 18px 24px; cursor: pointer;
  background: var(--panel); transition: background .3s;
}
.ver::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); opacity: 0; transition: opacity .25s, background .6s; }
.ver input { position: absolute; opacity: 0; pointer-events: none; }
.ver:hover { background: #20252c; }
.ver:has(input:checked) { background: color-mix(in srgb, var(--acc) 10%, var(--panel)); }
.ver:has(input:checked)::before { opacity: 1; }
.ver:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: -5px; }
.ver .nm { font-family: var(--disp); font-weight: 700; font-size: 20px; }
.ver .nm em { font: 400 15px var(--body); font-style: normal; color: var(--fog); margin-left: 6px; }
.ver .pr { font-family: var(--disp); font-weight: 500; font-size: 20px; white-space: nowrap; }
.ver:has(input:checked) .pr { color: var(--acc); }
.ver .eq { grid-column: 1 / -1; color: var(--fog); font-size: 14px; }
/* версия без суммы: строка справочная, не выбирается */
.ver-ask { cursor: default; }
.ver-ask:hover { background: var(--panel); }
.ver-ask .pr { font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--fog); }
.calc {
  position: sticky; top: 18px; padding: clamp(20px, 2.6vw, 30px);
  background: var(--panel); --cut: 18px;
}
.calc-car { position: relative; aspect-ratio: 1200 / 670; margin: -8px -8px 0; }
.calc-car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.calc-note { margin: 6px 0 14px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.lbl { display: block; color: var(--fog); font-size: 14px; }
label.lbl { margin-bottom: 8px; }
.swatches.mini .sw { min-height: 40px; font-size: 14px; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--fog); border-bottom: 2px solid var(--fog); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select {
  width: 100%; min-height: 52px; padding: 0 44px 0 16px; border: 0; appearance: none; cursor: pointer;
  background: rgba(232, 236, 240, .08); font-size: 16px;
}
.select select:focus-visible { outline: 2px solid var(--acc); outline-offset: -4px; }
.select select option { background: var(--panel); color: var(--paper); }
.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(--fog); }
.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(--fog); font-size: 14px; }
.total .out { font-family: var(--disp); font-weight: 500; font-size: clamp(34px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.02em; color: var(--acc); transition: color .6s; 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(--under); }
.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; }
.steps li::before { content: counter(st); display: block; font: 700 40px/1 var(--disp); color: var(--acc); margin-bottom: 14px; transition: color .6s; }
.steps b { display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--fog); font-size: 15px; }

/* вопросы */
.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 .6s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 22px; color: var(--fog); max-width: 70ch; }

/* финал */
.final { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--under); 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, #000 0, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 86%, transparent 100%); }
.final .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--under), 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(--fog); }
.links a:hover { color: var(--paper); }
footer { padding: 28px var(--gut) 40px; color: var(--fog); 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(--fog); }

/* ---------- окно выбора способа связи ---------- */
.cd {
  width: min(460px, calc(100vw - 2 * var(--gut)));
  max-height: calc(100svh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 4px;
  color: var(--paper); overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 60%), var(--under);
  box-shadow: 0 0 0 1px var(--line) inset, 0 30px 90px -20px rgba(0, 0, 0, .8);
}
.cd::backdrop { background: rgba(8, 10, 12, .76); -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(--fog); cursor: pointer; display: grid; place-items: center; }
.cd-close:hover { color: var(--paper); background: rgba(232, 236, 240, .06); }
.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(--fog); 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;
  background: rgba(232, 236, 240, .08); font-size: 16px;
}
.cd-row input::placeholder { color: var(--fog); }
.cd-row input:focus { outline: none; background: color-mix(in srgb, var(--acc) 14%, transparent); }
.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: #ff9b9b; 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%; }
}

/* ---------- планшет ---------- */
/* цена, цвета и две кнопки в одну строку помещаются от 1180 px */
@media (max-width: 1180px) {
  .offer { grid-template-columns: 1fr auto; }
  .btns { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 960px) {
  .offer { grid-template-columns: 1fr; }
  .btns { grid-column: auto; }
  .spec-list { grid-template-columns: 1fr; }
  .ver-grid { grid-template-columns: 1fr; }
  .calc { position: static; }
  .ticks { grid-template-columns: 1fr; }
  .city .wrap { margin-top: -48px; }
  .city-card { max-width: none; }
  .final { grid-template-columns: 1fr; }
  .final .media { order: 0; }
  .final .media::after { background: linear-gradient(0deg, var(--under), 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(15, 18, 21, .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(--fog); font-size: 12px; }
  .ver-bar b { font-family: var(--disp); font-weight: 500; 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: 140vw; }
  .car { margin-left: calc(50% - 70vw); }
  .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 6px; }
  /* подписи длины и базы на узком кадре разводятся дальше, чтобы не наезжали друг на друга */
  .dim-fig { --len-y: 3%; --base-y: 15%; }
  .l-h { left: calc(var(--x1) - 1%); }
  .city picture img { height: 72vw; }
  .tips { grid-template-columns: 1fr; }
  .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; font-size: 34px; }
  .ver { padding: 16px 16px 16px 20px; }
  .ver .nm, .ver .pr { font-size: 18px; }
}

/* ---------- без анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .scene[data-wake] .car::after { display: none; }
  .js .scene[data-wake] .beam, .js .scene.awake .beam { animation: none; transform: none; opacity: .5; }
  .js .dl-len, .js .dl-base, .js .dl-h { transform: none; }
  .js .dim-l { opacity: 1; }
  .js .fuel-bar 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 .navy, .ver-bar { transition: none; }
  .cd[open], .cd[open]::backdrop { animation: none; }
  .final .media video { display: none; }
}
