/* BYD Seagull: шоу-страница (обзор). Ночная студия, полнокадровые рендеры со своим светом и отражениями. */
:root {
  --night: #090b12;      /* фон студии на рендерах */
  --deep: #0e111b;       /* подложка блоков */
  --steel: #1a2031;      /* линии, рамки */
  --paper: #eef1f6;      /* основной текст */
  --mute: #8d95a8;       /* вторичный текст */
  --cold: #b9ccff;       /* холодный контровой свет, как на рендере */
  --lime: #d6de3f;       /* цвет кузова, только как отражение */
  --mint: #9fdcc8;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", "Segoe UI", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1240px;
  /* рендер 2400x1340: машина занимает по высоте 22-81 %, центр кадра по машине 52 % */
  --ratio: 2400 / 1340;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 17px/1.55 var(--text);
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
/* hyphens здесь не ставим. При lang="ru" браузер переносит по слогам и рвёт
   слово посреди, а заголовок на узком экране — первое место, где это видно.
   overflow-wrap оставлен: он вступает только тогда, когда слово физически не
   влезает в строку целиком, и переносит его целиком на следующую. */
h2 { font-size: clamp(25px, 4.1vw, 54px); line-height: 1.06; overflow-wrap: break-word; }
.lead { color: var(--mute); font-size: clamp(16px, 1.4vw, 19px); max-width: 38em; margin: 18px 0 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.block { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
/* соседние блоки на одном фоне не складывают отступы */
.angles + .colors, .versions + .order, .order + .faq, .specs + .angles { padding-top: clamp(24px, 4vw, 56px); }

/* полнокадровый рендер: фон студии совпадает с --night, края растворяются маской */
.frame { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-light {
  background: linear-gradient(180deg, #ffffff, #d9e0ee);
  color: #0a0d16;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 40px -8px rgba(185,204,255,.55);
}
.btn-ghost { background: rgba(9,11,18,.35); color: var(--paper); box-shadow: 0 0 0 1px rgba(238,241,246,.28) inset; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- верхняя полоса ---------- */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gut);
}
.brand { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; }
.brand span { color: var(--mute); }
.bar nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--mute); }
.bar nav a:hover { color: var(--paper); }
.bar .tg-mini { color: var(--paper); box-shadow: 0 0 0 1px rgba(238,241,246,.25) inset; border-radius: 999px; padding: 8px 16px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; max-height: 1100px;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(150,175,235,.20), transparent 70%),
    var(--night);
}
/* низ первого экрана уходит в фон следующего блока, без шва */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20%; z-index: 4; pointer-events: none; background: linear-gradient(rgba(9,11,18,0), rgba(9,11,18,.75) 55%, var(--night)); }
/* холст внутри сцены: сцена с container-type сама контекст наложения, смешивание идёт только внутри неё */
.hero-gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero-gl.on { opacity: 1; }
.scene {
  position: absolute; inset: 0; container-type: size;
  --sw: min(92vw, 150cqh);                  /* ширина кадра с машиной */
  --sh: calc(var(--sw) * 0.5583);           /* его высота */
  --cy: 49%;                                /* где центр кадра по вертикали */
  --wf: clamp(64px, 14.2vw, 250px);         /* кегль SEAGULL */
}
.layer { position: absolute; inset: 0; will-change: transform; }
/* lighten: тёмный фон рендера пропускает свет шейдера и слово, светлый кузов остаётся впереди */
.car-layer { mix-blend-mode: lighten; }

.word {
  position: absolute; left: 50%; margin: 0;
  top: max(64px, calc(var(--cy) - 0.285 * var(--sh) - 0.78 * var(--wf))); /* не выше полосы меню */
  transform: translateX(-50%);
  font-family: var(--display); font-weight: 800;
  font-size: var(--wf); line-height: .9; letter-spacing: -0.035em;
  white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, rgba(222,231,255,.95) 0%, rgba(160,178,225,.55) 48%, rgba(40,48,72,.2) 82%, rgba(9,11,18,0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.stage {
  position: absolute; left: 50%; top: var(--cy);
  width: var(--sw); aspect-ratio: var(--ratio);
  translate: -50% -52%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 72%, transparent 100%);
}
.stage img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding: 0 var(--gut) clamp(20px, 4vh, 44px);
}
.hero-copy h1 { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.12; max-width: 13em; }
.hero-copy .sub { color: var(--mute); margin: 10px 0 0; font-size: 15px; max-width: 31em; }
.offer { text-align: right; }
.offer .price { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 44px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.offer .price small, .offer .price .qual { font-family: var(--text); font-weight: 400; font-size: 15px; color: var(--mute); letter-spacing: 0; display: block; }
.offer .price small { margin-bottom: 8px; }
.offer .price .qual { margin-top: 8px; font-size: 14px; }
.offer .btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.viz-note { margin: 12px 0 0; font-size: 13px; color: var(--mute); }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 10px; font-size: 13px; color: var(--mute); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--paper); }

.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 1px; height: 38px; z-index: 5; background: linear-gradient(rgba(238,241,246,.0), rgba(238,241,246,.5)); transform: translateX(-50%); }

/* вход: машина видна с первого кадра, двигается только transform */
.js .word { opacity: 0; transform: translateX(-50%) translateY(18px); transition: opacity 1.4s ease .15s, transform 1.6s cubic-bezier(.2,.7,.2,1) .15s; }
.js .stage { transform: translateY(12px) scale(1.035); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.ready .word { opacity: 1; transform: translateX(-50%); }
.ready .stage { transform: none; }

/* ---------- проезд (sticky): машина боком проходит через кадр ---------- */
.drive { position: relative; height: 360vh; background: var(--night); }
.drive-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.drive-head { position: relative; z-index: 2; padding: clamp(28px, 6vh, 64px) var(--gut) 0; max-width: calc(var(--max) + 2*var(--gut)); width: 100%; margin: 0 auto; }
.drive-head h2 { font-size: clamp(22px, 3vw, 38px); max-width: 16em; }
.road { position: relative; container-type: size; }
.shot {
  position: absolute; left: 50%; top: 50%;
  width: min(110vw, 230cqh); aspect-ratio: var(--ratio);
  translate: -50% -54%;
  will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 54%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 54%, #000 66%, transparent 100%);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.facts { position: relative; z-index: 2; min-height: clamp(150px, 22vh, 210px); padding: 0 var(--gut) clamp(24px, 5vh, 56px); max-width: calc(var(--max) + 2*var(--gut)); width: 100%; margin: 0 auto; }
/* факт привязан к верху: цифра не прыгает от длины подписи */
.fact { position: absolute; left: var(--gut); right: var(--gut); top: 0; margin: 0; opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: end; }
.fact.on { opacity: 1; transform: none; }
.fact b { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 8vw, 112px); line-height: .9; letter-spacing: -0.04em; white-space: nowrap; }
.fact > span { color: var(--mute); max-width: 24em; padding-bottom: .4em; }
.meter { position: absolute; left: var(--gut); right: var(--gut); bottom: 12px; height: 2px; background: rgba(185,204,255,.12); border-radius: 2px; overflow: hidden; }
.meter i { position: absolute; inset: 0; background: var(--cold); transform-origin: 0 50%; transform: scaleX(0); }
/* без скриптов проезд не крутится: все четыре факта стоят столбиком, как при «без движения» */
html:not(.js) .drive { height: auto; }
html:not(.js) .drive-stage { position: relative; height: auto; display: block; padding-bottom: 60px; }
html:not(.js) .road { height: min(56vw, 560px); }
html:not(.js) .facts { min-height: 0; display: grid; gap: 28px; }
html:not(.js) .fact { position: relative; left: auto; right: auto; top: auto; opacity: 1; transform: none; }
html:not(.js) .meter { display: none; }

/* ---------- характеристики списком ---------- */
.specs { padding-bottom: clamp(56px, 8vw, 112px); }
.drive + .specs { padding-top: clamp(48px, 7vw, 96px); }
.spec-list { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.spec-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--steel); }
.spec-list dt { color: var(--mute); font-size: 15px; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- ракурсы ---------- */
.angles { overflow: hidden; overflow: clip; }
.angles .viewer { position: relative; margin: clamp(8px, 2vw, 24px) calc(-1 * var(--gut)) 0; touch-action: pan-y; cursor: grab; user-select: none; }
.angles .viewer:active { cursor: grabbing; }
.pod { position: relative; width: 100%; aspect-ratio: 2.1; } /* поле сверху и снизу у рендеров пустое, режем его */
/* уходящий кадр гаснет, потом входит новый: двойной экспозиции нет */
.ang { position: absolute; inset: 0; opacity: 0; transform: translateX(var(--from, 6%)) scale(.97); transition: opacity .26s ease, transform .3s ease; pointer-events: none; }
.ang.on { opacity: 1; transform: none; transition: opacity .5s ease .26s, transform .9s cubic-bezier(.2,.75,.2,1) .26s; }
.ang img { width: 100%; height: 100%; object-fit: cover; }
.ang-ctrl { display: flex; align-items: center; gap: 10px; margin-top: clamp(4px, 1vw, 12px); }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.ang-ctrl [role="radio"] { flex: none; background: transparent; border: 0; box-shadow: 0 0 0 1px rgba(238,241,246,.18) inset; border-radius: 999px; padding: 10px 18px; cursor: pointer; color: var(--mute); white-space: nowrap; }
.ang-ctrl [role="radio"][aria-checked="true"] { color: #0a0d16; background: var(--paper); box-shadow: none; }
.ang-ctrl .arrows { margin-left: auto; display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; box-shadow: 0 0 0 1px rgba(238,241,246,.22) inset; cursor: pointer; display: grid; place-items: center; }
.round svg { width: 20px; height: 20px; }

/* ---------- цвета ---------- */
.colors { overflow: hidden; }
.colors .halo { position: absolute; inset: 0; pointer-events: none; transition: opacity .8s ease; }
.colors .halo.l { background: radial-gradient(45% 40% at 62% 60%, rgba(214,222,63,.10), transparent 70%); }
.colors .halo.m { background: radial-gradient(45% 40% at 62% 60%, rgba(159,220,200,.12), transparent 70%); opacity: 0; }
body[data-c="mint"] .colors .halo.l { opacity: 0; }
body[data-c="mint"] .colors .halo.m { opacity: 1; }
.col-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.swatches { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.sw { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 0; background: transparent; box-shadow: 0 0 0 1px rgba(238,241,246,.16) inset; cursor: pointer; color: var(--mute); }
.sw i { width: 34px; height: 34px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset; }
.sw[data-c="lime"] i { background: linear-gradient(180deg, #1a1c22 0 34%, #d6de3f 34%); }
.sw[data-c="mint"] i { background: #9fdcc8; }
.sw[aria-pressed="true"] { color: var(--paper); box-shadow: 0 0 0 1.5px var(--paper) inset; }
.col-stage { position: relative; aspect-ratio: var(--ratio); width: 116%; margin: 0 -8%; }
/* смена цвета шторкой: рендеры сняты с одной точки, машины совпадают до пикселя */
.pair { position: relative; }
.pair img { position: absolute; inset: 0; }
.pair .mint { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65,0,.25,1); }
body[data-c="mint"] .pair .mint { clip-path: inset(0 0 0 0); }

/* ---------- салон ---------- */
.interior { padding: 0; position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; }
.interior picture, .interior picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.interior picture img { object-fit: cover; object-position: 50% 45%; }
.interior::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(9,11,18,0) 22%, rgba(9,11,18,0) 45%, rgba(14,17,27,.92) 82%, var(--deep) 100%); }
.interior .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vw, 96px); }
.interior .viz-note { margin-top: 10px; }
.int-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; }
.int-list li { border-top: 1px solid rgba(238,241,246,.22); padding-top: 14px; color: var(--mute); font-size: 15px; }
.int-list li b { display: block; color: var(--paper); font-weight: 600; font-size: 17px; margin-bottom: 4px; }

/* ---------- деньги ---------- */
.money { background: linear-gradient(var(--deep) 0, var(--deep) calc(100% - 160px), var(--night)); }
/* порядок платежей: линия между точками дорисовывается по шагам, комиссия последней точкой в цвете акцента */
.pay { list-style: none; margin: clamp(36px, 6vw, 72px) 0 0; 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: 50%; background: var(--deep); }
.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(--display); font-weight: 600; 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(--lime); border-color: var(--lime); }
.pay li:last-child b { color: var(--lime); font-size: clamp(22px, 2.5vw, 32px); }
.js .pay li::before { border-color: var(--steel); }
.js .pay li:last-child::before { background: var(--deep); border-color: var(--steel); }
.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(--lime); border-color: var(--lime); }
.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); }
}
.incl { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.incl h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.incl ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.incl li { break-inside: avoid; padding: 12px 0 12px 28px; position: relative; border-top: 1px solid var(--steel); }
.incl li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px; border-left: 2px solid var(--cold); border-bottom: 2px solid var(--cold); transform: rotate(-45deg); }
.incl .note { grid-column: 2; color: var(--mute); margin: 0; }
.incl .note a { color: var(--paper); text-underline-offset: 3px; margin-left: 6px; }

/* ---------- версии ---------- */
.ver-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.ver-list { display: grid; gap: 0; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--steel); min-width: 0; }
.ver { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 20px 20px 20px 24px; border-bottom: 1px solid var(--steel); cursor: pointer; transition: background .3s ease; }
.ver input { position: absolute; opacity: 0; pointer-events: none; }
.ver::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--cold); transform: scaleY(0); transition: transform .35s cubic-bezier(.2,.75,.2,1); }
.ver:has(input:checked) { background: linear-gradient(90deg, rgba(185,204,255,.08), transparent 70%); }
.ver:has(input:checked)::before { transform: scaleY(1); }
.ver:has(input:focus-visible) { outline: 2px solid var(--cold); outline-offset: -2px; }
.ver .nm { font-weight: 600; font-size: 18px; }
.ver .nm em { font-style: normal; color: var(--mute); font-weight: 400; }
.ver .pr { font-family: var(--display); font-weight: 600; font-size: 19px; white-space: nowrap; align-self: start; }
.ver .eq { display: block; grid-column: 1 / -1; color: var(--mute); font-size: 15px; margin: 0; max-width: 46em; }
/* версия без цены поставщика: не выбирается, сумма по запросу */
.ver-ask { cursor: default; }
.ver-ask .pr { font-family: var(--text); font-weight: 400; font-size: 16px; color: var(--mute); }
.ver .stock { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 600; color: #0a0d16; background: var(--mint); border-radius: 999px; padding: 1px 10px; vertical-align: 2px; }
.ver-bar { display: none; }
.calc { position: sticky; top: 24px; padding: clamp(22px, 3vw, 34px); padding-top: 0; border-radius: 22px; background: radial-gradient(120% 70% at 50% 0%, rgba(185,204,255,.10), rgba(185,204,255,.02) 60%), var(--deep); box-shadow: 0 0 0 1px var(--steel) inset; overflow: hidden; }
.calc-car { aspect-ratio: var(--ratio); margin: 0 calc(-1 * clamp(22px, 3vw, 34px)) -6%; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lbl { display: block; color: var(--mute); font-size: 15px; margin-bottom: 8px; }
.calc-row .lbl { margin: 0; }
.swatches.mini { margin: 0; gap: 8px; }
/* min-height 44px: без него кнопка выходила 34px по высоте, а это меньше
   минимального размера цели для пальца. Padding не увеличиваем — строка
   калькулятора рассчитана на эту высоту, растёт только сама кнопка. */
.swatches.mini .sw { padding: 5px 14px 5px 5px; gap: 8px; font-size: 15px; min-height: 44px; }
.swatches.mini .sw i { width: 24px; height: 24px; }
.select { position: relative; }
.select select { appearance: none; width: 100%; min-height: 54px; padding: 0 44px 0 18px; border-radius: 14px; border: 0; background: rgba(238,241,246,.06); box-shadow: 0 0 0 1px rgba(238,241,246,.16) inset; font-size: 17px; cursor: pointer; }
.select select option { background: #151a28; color: var(--paper); }
.select::after { content: ""; position: absolute; right: 20px; 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; }
.sum { margin: 26px 0 0; display: grid; gap: 10px; }
.sum div { display: flex; justify-content: space-between; gap: 16px; color: var(--mute); font-size: 15px; }
.sum div > span:last-child { color: var(--paper); white-space: nowrap; }
#s-name { color: var(--paper); }
.total { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--steel); }
.total small { color: var(--mute); font-size: 15px; display: block; }
.total .out { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; white-space: nowrap; }
.calc .btn { width: 100%; margin-top: 22px; }
.calc .fine { color: var(--mute); font-size: 13px; margin: 14px 0 0; }
.ver-more { margin: clamp(24px, 4vw, 40px) 0 0; }
.ver-more a { color: var(--paper); text-underline-offset: 4px; font-weight: 600; }
.ver-more a:hover { color: var(--cold); }

/* ---------- как заказать ---------- */
.steps { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 22px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(185,204,255,.35) inset; font-family: var(--display); font-size: 15px; color: var(--cold); margin-bottom: 18px; position: relative; z-index: 1; background: var(--night); }
.steps li::after { content: ""; position: absolute; left: 40px; right: 0; top: 20px; height: 1px; background: linear-gradient(90deg, rgba(185,204,255,.35), rgba(185,204,255,.08)); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--mute); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--steel); max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--steel); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--cold), var(--cold)) 50% 50% / 14px 2px no-repeat, linear-gradient(var(--cold), var(--cold)) 50% 50% / 2px 14px no-repeat;
  transition: transform .3s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: var(--mute); max-width: 44em; }

/* ---------- финал с видео: ролик справа целиком, текст слева на чистом фоне ---------- */
.final { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: clamp(60px, 8vw, 100px) 0; isolation: isolate; }
.final .media {
  position: absolute; z-index: -1; right: -3vw; top: 50%; translate: 0 -50%;
  width: min(66vw, 1180px); aspect-ratio: 16 / 9;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 62%, transparent 100%);
}
.final .media > * { position: absolute; inset: 0; }
.final video { opacity: 0; transition: opacity 1.2s ease; }
.final video.on { opacity: 1; }
.fin-copy { max-width: min(42%, 560px); }
.final h2 { font-size: clamp(28px, 3.8vw, 54px); }
.final .lead { color: var(--mute); }
.final .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; color: var(--mute); font-size: 15px; }
.links a { color: var(--mute); text-underline-offset: 3px; }
.links a:hover { color: var(--paper); }
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: 22px;
  color: var(--paper); overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 60% at 50% 0%, rgba(185,204,255,.12), rgba(185,204,255,.02) 60%), var(--deep);
  box-shadow: 0 0 0 1px var(--steel) inset, 0 30px 90px -20px rgba(0,0,0,.8);
}
.cd::backdrop { background: rgba(5,7,12,.72); -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; }
.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(--paper); background: rgba(238,241,246,.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(--mute); font-size: 13px; }
.cd-hint { color: var(--mint); }
.cd-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--steel); }
.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: 14px;
  background: rgba(238,241,246,.06); box-shadow: 0 0 0 1px rgba(238,241,246,.16) inset; font-size: 16px;
}
.cd-row input::placeholder { color: var(--mute); }
.cd-row input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--cold) 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: #ff9b9b; font-size: 14px; }
.cd-err a { color: inherit; }
.cd-ok { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--steel); color: var(--mint); font-size: 15px; }
@media (max-width: 420px) {
  .cd-row { flex-direction: column; }
  .cd-row .btn { width: 100%; }
}

/* ---------- планшет и телефон ---------- */
@media (max-width: 960px) {
  .bar nav .hide-m { display: none; }
  /* первый экран: сетка, сцена занимает то, что осталось между текстом и ценой */
  .hero { display: grid; grid-template-rows: 62px auto minmax(0, 1fr) auto; min-height: 600px; max-height: none; }
  .hero-copy { display: contents; }
  .hero-text { grid-row: 2; position: relative; z-index: 5; padding: 6px var(--gut) 0; }
  .offer { grid-row: 4; position: relative; z-index: 5; text-align: left; padding: 0 var(--gut) 20px; }
  .scene { position: relative; inset: auto; grid-row: 3; --sw: min(148vw, 178cqh); --cy: 54%; --wf: min(15.2vw, 110px); }
  .word { top: calc(var(--cy) - 0.285 * var(--sh) - 0.78 * var(--wf)); }
  .hero::after { height: 12%; }
  .hero-gl { top: -40vh; height: calc(100% + 80vh); } /* свет студии за текстом тоже, без шва по краю сцены */
  .scroll-cue { display: none; }
  .offer .btns { justify-content: stretch; }
  .offer .btns .btn { flex: 1 1 auto; }
  .offer .price small { margin-bottom: 6px; }
  .offer .price .qual { margin-top: 6px; }
  .viz-note { margin-top: 10px; font-size: 12px; }

  .col-grid, .incl, .ver-grid { grid-template-columns: minmax(0, 1fr); }
  .col-stage { width: 112%; margin: 0 -6%; }
  .incl .note { grid-column: 1; }
  .calc { position: relative; top: 0; }
  .ver-bar {
    display: flex; position: sticky; bottom: 0; z-index: 3; align-items: center; justify-content: space-between; gap: 12px;
    margin: 12px calc(-1 * var(--gut)) 0; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
    background: rgba(14,17,27,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--steel);
  }
  .ver-bar small { display: block; color: var(--mute); font-size: 13px; }
  .ver-bar b { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
  .ver-bar .btn { min-height: 46px; padding: 0 20px; flex: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 0; }
  .steps li::before { grid-row: 1 / span 2; margin: 0; }
  .steps li::after { left: 20px; right: auto; top: 44px; bottom: -22px; width: 1px; height: auto; background: rgba(185,204,255,.2); }
  .int-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .final { display: block; min-height: 0; padding: 0 0 56px; }
  .final .media { position: relative; right: auto; top: auto; translate: none; width: 112vw; margin: 0 -6vw -10vw; }
  .fin-copy { max-width: none; position: relative; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .hero-copy h1 { font-size: 30px; }
  .hero-copy .sub { font-size: 16px; }
  .scene { --sw: min(118vw, 178cqh); }
  .offer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px; }
  .offer .viz-note { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .bar { padding-top: 14px; }
  .hero-copy h1 { font-size: 23px; }
  .hero-copy .sub { font-size: 14px; }
  .offer .price { font-size: 28px; }
  .offer .price small { font-size: 14px; }
  .offer .price .qual { font-size: 13px; }
  .offer .btns { margin-top: 14px; }
  .offer .btns .btn { padding: 0 18px; }

  .drive { height: 260vh; }
  .shot { width: min(190vw, 230cqh); }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fact > span { padding-bottom: 0; }
  .facts { min-height: 170px; }
  .ang-ctrl .arrows { display: none; }
  .ang-ctrl [role="radio"] { padding: 10px 14px; }
  .angles .viewer { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
  .pod { aspect-ratio: 1.3; }
  .ang[data-ang="side"] img { object-fit: contain; } /* сбоку машина длинная: целиком, без обрезки */
  .col-stage { width: calc(100% + 2 * var(--gut)); margin: 0 calc(-1 * var(--gut)); aspect-ratio: 1.45; }
  .incl ul { columns: 1; }
  .spec-list { grid-template-columns: minmax(0, 1fr); }
  .spec-list div { gap: 2px 16px; padding: 12px 0; }
  .int-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .interior { min-height: 0; padding-top: 58vw; }
  .interior picture { height: 80vw; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .interior::after { background: linear-gradient(180deg, var(--night) 0%, rgba(9,11,18,0) 12%, rgba(9,11,18,0) 30%, var(--deep) 58%); }
  .ver { padding: 18px 12px 18px 18px; }
  .ver .pr { font-size: 16px; }
  .ver .nm { font-size: 16px; }
  .final .row .btn { flex: 1 1 100%; }
}

/* ---------- без движения ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .pay li::before, .js .pay li::after { transition: none; }
  .js .pay li:not(:last-child)::after { transform: none; }
  .js .word { opacity: 1; transition: none; transform: translateX(-50%); }
  .js .stage { transition: none; transform: none; }
  .drive { height: auto; }
  .drive-stage { position: relative; height: auto; display: block; padding-bottom: 60px; }
  .road { height: min(56vw, 560px); }
  .shot { transform: none !important; }
  .facts { min-height: 0; display: grid; gap: 28px; }
  .fact { position: relative; left: auto; right: auto; top: auto; opacity: 1; transform: none; }
  .meter { display: none; }
  .ang, .ang.on, .pair .mint, .ver::before { transition: none; }
  .cd[open], .cd[open]::backdrop { animation: none; }
}
