:root {
  --ink: #0d0d0f;
  --paper: #f5f2ef;
  --muted: #6d6a68;
  --line: rgba(13, 13, 15, .12);
  --pink: #f4b6cb;
  --pink-soft: #fbe1ea;
  --pink-deep: #d9638f;
  --radius: 28px;
  --hs: clamp(72px, 18.5vw, 360px);   /* размер заголовка в hero */
  --hero-top: 14vh;
}
/* акцентный цвет текста: у Porsche розовый, у BMW — голубой BMW; при смене модели плавно перетекает */
@property --pink-deep { syntax: '<color>'; inherits: true; initial-value: #d9638f; }
html { transition: --pink-deep .9s ease; }
/* пока main.js грузится, тексты и картинки в разметке — от розового Porsche; у других моделей прячем их,
   чтобы после обновления страницы не мелькало чужое (main.js подставит своё и снимет is-loading) */
html.is-loading[data-model="choco"] :is(.headline, #car, [data-craft], [data-sets-title], [data-sets-lead]),
html.is-loading[data-model="bmw"] :is(.headline, #car, .set-media, [data-model-name], [data-tee-name], .cc-name) { visibility: hidden; }
/* возвращаемся после обновления к своему месту — пока не прокрутили туда, страница скрыта (main.js снимет класс) */
html.is-restoring { background: var(--paper); }
html.is-restoring body { opacity: 0; }
/* первый кадр после загрузки — без переходов: тема модели сразу на месте */
html.is-loading, html.is-loading *, html.is-loading *::before, html.is-loading *::after { transition: none !important; }
html[data-model="bmw"] { --pink-deep: #3a72c0; }
html[data-model="choco"] { --pink-deep: #8b4a2b; }

*, *::before, *::after { box-sizing: border-box; }
/* без серого прямоугольника системной подсветки касания (на iPhone он поворачивался вместе с кнопками) */
html { -webkit-tap-highlight-color: transparent; }
/* фото нельзя выделить, перетащить или сохранить долгим нажатием на телефоне */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html, body { margin: 0; overscroll-behavior-x: none; }   /* свайп по трекпаду не уводит браузер «назад» */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.is-locked { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .25s, box-shadow .35s;
}
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.btn--dark:hover { transform: translateY(-2px); background: #26262b; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 14px; right: 14px; height: 58px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 10px 0 26px; border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 30px -18px rgba(30, 40, 80, .35);
  opacity: 0; transform: translateY(-24px); pointer-events: none;
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.nav.is-on { opacity: 1; transform: none; pointer-events: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-mark img { height: 38px; width: auto; }
.nav-cart { justify-self: end; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.nav-cart:hover { background: rgba(0,0,0,.06); }
.nav-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* ---------- Интро / сцена ---------- */
.intro { position: relative; height: 300vh; }
.intro.is-passed { height: 100vh; height: 100lvh; }   /* интро пройдено — остаётся только hero */
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #050506; }

.scene { position: absolute; inset: 0; overflow: hidden; opacity: 0; }
/* повторный заход в той же вкладке: сразу сцена, без заставки */
.is-return .veil, .is-return .intro-ui, .is-return .glow { display: none !important; }
.is-return .scene { opacity: 1; }
.is-return .stage { background: linear-gradient(180deg, #0f6bbf 0%, #8cc3ea 62%, #f0bfd3 100%); }
html.is-return[data-model="bmw"] .stage { background: linear-gradient(180deg, #0d2552 0%, #86aedb 64%, #dbe7f5 100%); }
html.is-return[data-model="choco"] .stage { background: linear-gradient(180deg, #5a1f33 0%, #e597a8 62%, #f2c7c9 100%); }
/* когда сцена раскрыта, фон под ней — цвет неба: если браузер на кадр не успеет её дорисовать, не будет чёрного моргания */
.stage.is-open { background: linear-gradient(180deg, #0f6bbf 0%, #8cc3ea 62%, #f0bfd3 100%); }
html[data-model="bmw"] .stage.is-open { background: linear-gradient(180deg, #0d2552 0%, #86aedb 64%, #dbe7f5 100%); }
html[data-model="choco"] .stage.is-open { background: linear-gradient(180deg, #5a1f33 0%, #e597a8 62%, #f2c7c9 100%); }
.veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.veil.is-off { display: none; }
.scene-inner { position: absolute; inset: 0; transform-origin: 50% 62%; will-change: transform; }

.sky { position: absolute; inset: 0; }
.sky--porsche {
  background: linear-gradient(180deg,
    #0f6bbf 0%, #2484d3 22%, #4c9fdf 44%, #8cc3ea 62%, #c3def1 74%, #f1d6e4 86%, #f0bfd3 100%);
}
.sun {
  position: absolute; width: 70vw; height: 70vw; right: -24vw; top: -36vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 226, .55), rgba(255, 244, 226, 0));
}

/* ---------- Погода моделей: слои .w-porsche / .w-bmw плавно сменяют друг друга ---------- */
.w-porsche, .w-bmw { transition: opacity 1.6s ease, visibility 0s; }
.w-bmw { opacity: 0; visibility: hidden; }
html[data-model="bmw"] .w-bmw { opacity: 1; visibility: visible; }
html[data-model="bmw"] .w-porsche { opacity: 0; visibility: hidden; }
/* уходящий слой гаснет 1.6 с и только потом перестаёт рисоваться; появляющийся виден сразу */
html:not([data-model="bmw"]) .w-bmw, html[data-model="bmw"] .w-porsche { transition: opacity 1.6s ease, visibility 0s 1.6s; }
/* облачное море: ледяное лежит поверх розового. Новое проявляется поверх старого, а нижнее
   не гаснет, пока его закрывают — облака не становятся полупрозрачными и не пропадают */
html[data-model="bmw"] .bank-track.w-porsche { transition: opacity 0s 1.6s, visibility 0s 1.6s; }
html:not([data-model="bmw"]) .bank-track.w-porsche { transition: none; }
/* бесконечные CSS-анимации за пределами экрана ставим на паузу */
.is-idle *, .is-idle *::before, .is-idle *::after { animation-play-state: paused !important; }
/* шоколадный Porsche: ягодное небо поверх розового (облака и солнце остаются) */
.w-choco { opacity: 0; visibility: hidden; transition: opacity 1.6s ease, visibility 0s 1.6s; }
html[data-model="choco"] .w-choco { opacity: 1; visibility: visible; transition: opacity 1.6s ease, visibility 0s; }
.sky--choco {
  background: linear-gradient(180deg,
    #5a1f33 0%, #84304d 22%, #b9566f 44%, #e095a6 62%, #f2c0c3 76%, #f7d8cf 88%, #f2c7c9 100%);
}
.drip { position: absolute; top: 0; height: 100%; width: clamp(60px, 11vw, 210px); pointer-events: none; }
.drip--l { left: 0; }
.drip--r { right: 0; transform: scaleX(-1); }
.sky--bmw {
  background: linear-gradient(180deg,
    #0d2552 0%, #1b437f 24%, #3f70ad 46%, #86aedb 64%, #c9dcf1 78%, #e4edf8 90%, #dbe7f5 100%);
}
.frost-light {
  position: absolute; width: 80vw; height: 80vw; left: -30vw; top: -44vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 238, 255, .5), rgba(225, 238, 255, 0));
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

 с объёмным светом (tools/clouds) */
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute; left: 0; width: var(--w); height: auto;
  animation: drift var(--dur) linear infinite;
  will-change: transform; user-select: none;
}
@keyframes drift {
  from { transform: translate3d(calc(-1 * var(--w) - 4vw), 0, 0); }
  to   { transform: translate3d(104vw, 0, 0); }
}

/* Заголовок */
.headline {
  position: absolute; left: 0; right: 0; top: var(--hero-top); margin: 0;
  display: flex; justify-content: center; gap: .16em;
  font-size: var(--hs); font-weight: 900; line-height: .82; letter-spacing: -.045em;
  pointer-events: none; user-select: none;
}
/* CHOCO 911 чуть меньше — по краям стекает шоколад и не должен закрывать буквы */
html[data-model="choco"] .headline { font-size: calc(var(--hs) * .78); top: calc(var(--hero-top) + var(--hs) * .08); }
.hl-word { display: inline-flex; overflow: hidden; padding: 0 .14em .04em; margin: 0 -.12em; color: transparent; }   /* «сырой» текст до разбиения на буквы не виден — иначе мелькал чёрным */
/* заливка буквы (background-clip: text) рисуется только внутри её прямоугольника, а при плотной разрядке
   жирные буквы вылезают за него — края срезались. Расширяем область заливки полями, а отрицательными
   отступами возвращаем буквы на прежние места */
.ch {
  display: inline-block; padding: 0 .12em; margin: 0 -.12em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.96) 38%, rgba(220, 236, 252, .5) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Розовые облака: бесшовная панорама, бесконечно плывёт */
.bank { position: absolute; left: 0; right: 0; pointer-events: none; }
.bank--back  { bottom: 9vh; height: 28vh; --tile: calc(28vh * 5);    --dur: 140s; }
.bank--front { bottom: -7vh; height: 42vh; --tile: calc(42vh * 3.171); --dur: 90s;  }
.bank-track {
  position: absolute; top: 0; bottom: 0; left: -4vw;
  width: calc(108vw + var(--tile));
  background-repeat: repeat-x; background-size: var(--tile) 100%;
  animation: bank var(--dur) linear infinite;
  will-change: transform;
}
.bank--back .bank-track  { background-image: url(../assets/clouds/bank-back.webp); }
.bank--front .bank-track { background-image: url(../assets/clouds/bank-front.webp); }
.bank--back .bank-track--ice  { background-image: url(../assets/clouds/bank-back-ice.webp); }
.bank--front .bank-track--ice { background-image: url(../assets/clouds/bank-front-ice.webp); }
.haze.haze--ice { background: linear-gradient(0deg, rgba(196, 218, 244, .6), rgba(196, 218, 244, 0)); }
html[data-model="bmw"] .car-glow { background: radial-gradient(closest-side, rgba(70, 120, 190, .45), rgba(70, 120, 190, 0)); }
html[data-model="bmw"] .car { filter: drop-shadow(0 30px 40px rgba(30, 60, 110, .3)); }
html[data-model="choco"] .car-glow { background: radial-gradient(closest-side, rgba(120, 50, 40, .5), rgba(120, 50, 40, 0)); }
html[data-model="choco"] .car { filter: drop-shadow(0 30px 40px rgba(70, 25, 15, .38)); }
@keyframes bank { to { transform: translate3d(calc(-1 * var(--tile)), 0, 0); } }
.haze { position: absolute; inset: auto 0 0 0; height: 22vh; background: linear-gradient(0deg, rgba(240, 176, 202, .55), rgba(240, 176, 202, 0)); pointer-events: none; }

/* Машина */
.car-par {
  --cw: min(56vw, 940px);
  position: absolute; width: var(--cw); left: calc(50% - var(--cw) / 2); top: 31vh;
}
.car-out { position: relative; }
.car-float { position: relative; will-change: transform; }
.car { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(120, 40, 80, .28)); }
.car-glow {
  position: absolute; left: 12%; right: 12%; top: 98%; height: 36%;
  background: radial-gradient(closest-side, rgba(214, 84, 136, .5), rgba(214, 84, 136, 0));
  filter: blur(6px);
}

/* Подписи в hero */
.hero-ui { position: absolute; inset: 0; pointer-events: none; color: #fff; }
.hero-ui a { pointer-events: auto; }
.hero-kicker, .hero-sub { position: absolute; margin: 0; font-size: 13px; letter-spacing: .42em; text-transform: uppercase; }
.hero-kicker { right: 4vw; top: calc(var(--hero-top) - 36px); font-weight: 500; }
.hero-kicker b { font-weight: 900; }
.hero-sub { left: 4.5vw; top: calc(var(--hero-top) + var(--hs) * .86 + 18px); font-weight: 900; }
.hero-cta { position: absolute; right: 4vw; top: 54vh; }
.hero-down {
  position: absolute; left: calc(50% - 32px); bottom: 4.5vh; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(120, 40, 80, .5);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hero-down:hover { transform: translateY(4px); }
.hero-down svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Стартовая надпись */
.glow { position: absolute; filter: blur(26px); pointer-events: none; will-change: opacity; }
.glow-in {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, #9fd4ff, #ff9cc6);
  -webkit-mask: url(../assets/logo-collab.svg) center / 100% 100% no-repeat;
          mask: url(../assets/logo-collab.svg) center / 100% 100% no-repeat;
}
.intro-ui { position: absolute; inset: 0; pointer-events: none; color: #fff; }
.intro-cap {
  position: absolute; top: 2.6vh; left: 0; right: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 800; letter-spacing: .45em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
/* разрядка добавляет пустоту после последней буквы — компенсируем, чтобы строки стояли ровно по центру */
.intro-cap span { margin-right: -.45em; white-space: nowrap; }
.intro-cap .ic-drops { font-size: 12px; color: rgba(255,255,255,.85); }
.intro-cap .ic-drops i { font-style: normal; margin: 0 .5em; color: rgba(255,255,255,.4); }
.intro-cap .ic-sub { font-size: 10px; color: rgba(255,255,255,.5); }
.logo-stack { position: absolute; }
.lp { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-x { transform-origin: 49.9% 60.3%; }
.scroll-hint {
  position: absolute; left: 0; right: 0; bottom: 5vh; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0;
  font-size: 11px; font-weight: 800; letter-spacing: .45em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.scroll-hint i { width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); transform-origin: top; animation: line 2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Переключатель моделей ---------- */
.model-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr 1fr; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .38); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 12px 30px -14px rgba(20, 30, 60, .45);
}
.ms-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px;
  background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
html[data-model="bmw"] .ms-thumb { transform: translateX(100%); }
html[data-model="choco"] .ms-thumb { transform: translateX(200%); }
.model-switch button i { font-style: normal; }
.model-switch button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 18px 7px 10px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 800; letter-spacing: .01em; color: rgba(13, 13, 15, .55); white-space: nowrap;
  transition: color .3s;
}
.model-switch button img { width: 46px; transform: rotate(-4deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.model-switch button:hover img { transform: rotate(-8deg) translateY(-2px); }
.model-switch button[aria-checked="true"] { color: var(--ink); }
.hero-switch { position: absolute; left: 4.5vw; bottom: 6vh; pointer-events: auto; }
.sets-switch { margin-top: 28px; }
html { --car-ar: 1908 / 615; }
html[data-model="bmw"] { --car-ar: 1908 / 601; }
html[data-model="choco"] { --car-ar: 1731 / 574; }

/* холодная палитра раздела сетов для BMW */
.blob { transition: --c 1.4s ease; }
html[data-model="bmw"] .blob--pink  { --c: #97bcec; }
html[data-model="bmw"] .blob--blue  { --c: #c3dbf6; }
html[data-model="bmw"] .blob--lilac { --c: #b7c4f3; }
html[data-model="bmw"] .blob--mint  { --c: #b6e0ee; }
html[data-model="bmw"] .set--full { background: linear-gradient(160deg, rgba(224, 238, 253, .72) 0%, rgba(176, 204, 240, .42) 60%, rgba(160, 192, 236, .34) 100%); }
/* шоколадная палитра: ягоды, карамель, сливки */
html[data-model="choco"] .blob--pink  { --c: #ee9db4; }
html[data-model="choco"] .blob--blue  { --c: #f0cfb0; }
html[data-model="choco"] .blob--lilac { --c: #d99aa6; }
html[data-model="choco"] .blob--mint  { --c: #f6dcc6; }
html[data-model="choco"] .set--full { background: linear-gradient(160deg, rgba(253, 236, 228, .72) 0%, rgba(232, 190, 176, .42) 60%, rgba(214, 160, 150, .34) 100%); }
.marquee { transition: background-color 1.4s ease; }
html[data-model="bmw"] .marquee { background-color: #b7d1f1; }
html[data-model="choco"] .marquee { background-color: #e9b9b4; }


.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--pink); padding: 22px 0; border-block: 1px solid rgba(0,0,0,.08); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee span, .marquee i { font-size: clamp(26px, 4vw, 56px); font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { font-style: normal; color: #fff; margin: 0 .55em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Общие ---------- */
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--pink-deep); }
h2 { margin: 0; font-size: clamp(38px, 4.8vw, 76px); font-weight: 900; line-height: .98; letter-spacing: -.035em; }
h2 em { font-style: normal; color: var(--pink-deep); }
.lead { margin: 22px 0 0; max-width: 34em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--muted); }
.js .reveal { opacity: 0; }

/* ---------- Ручная работа ---------- */
.craft { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: center; padding: 16vh 5vw 14vh; }
.craft-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1024 / 1536; width: min(100%, 88vh * 1024 / 1536); justify-self: center; background: #eee; }
/* Фото автомата 1024×1536: фон без крюка + крюк отдельным слоем (tools/claw_cutout.py) */
/* без постоянного will-change: Chrome после резких прыжков по странице рисовал этот слой со сдвигом */
.craft-scene { position: absolute; inset: 0; }
html[data-model="bmw"] .claw-scene, html:not([data-model="bmw"]) .freezer-scene { pointer-events: none; }
/* шоколадный Porsche: вместо автомата — фото с начинкой */
/* у шоколадного Porsche раздел зеркальный: текст слева, фото справа (на телефоне фото всё так же сверху) */
@media (min-width: 861px) {
  html[data-model="choco"] .craft { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  html[data-model="choco"] .craft-left { order: 2; }
}
html[data-model="choco"] .claw-scene { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0s 1.6s, visibility 0s 1.6s; }   /* прячем, когда фото уже проявилось */
.choco-img { width: 100%; height: 100%; object-fit: cover; }
.freezer-img { width: 100%; height: 100%; }
.frost {
  position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='17' fill='rgba(255,255,255,.25)' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 20 20, pointer;
}
.frost-hint {
  position: absolute; left: 50%; top: 37%; margin: 0; display: flex; align-items: center; gap: 8px; translate: -50% 0;
  padding: 10px 16px; border-radius: 999px; pointer-events: none;
  background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px -12px rgba(30, 60, 110, .45);
  font-size: 13px; font-weight: 800; color: #2a4a74; white-space: nowrap;
  transition: opacity .6s ease;
}
.frost-hint.is-off { opacity: 0; }
.frost-hint--touch svg { animation: rub 1.4s ease-in-out infinite; }
@keyframes rub { 0%, 100% { transform: translateX(-4px) rotate(-8deg); } 50% { transform: translateX(4px) rotate(8deg); } }
.claw-bg { width: 100%; height: 100%; }
.claw-hook {
  position: absolute; left: 13.77%; top: 21.094%; width: 22.266%;   /* bbox 141,324 – 369,583 */
  transform-origin: 50% 2.7%;                                        /* крепление под кареткой (255, 331) */
  will-change: transform;
}
.scale-note { display: flex; align-items: baseline; gap: 14px; margin: 30px 0 0; }
.scale-note b { font-size: clamp(44px, 5vw, 80px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.scale-note span { font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; margin: 44px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { font-size: 13px; font-weight: 800; color: var(--pink-deep); padding-top: 4px; }
.steps b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.steps p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

/* ---------- Сеты ---------- */
.sets {
  position: relative; isolation: isolate; overflow: hidden; padding: 14vh 4vw 16vh;
  background: linear-gradient(180deg, var(--paper) 0%, #eaf2fb 16%, #f4e6f1 58%, #fbeef3 86%, var(--paper) 100%);
}
/* Фон под стеклом */
.sets-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* профиль края повторяет blur(70px): 84% / 50% / 16% на расстоянии σ от границы круга */
@property --c { syntax: '<color>'; inherits: false; initial-value: transparent; }
.blob {
  position: absolute; border-radius: 50%; margin: -140px; padding: 140px; box-sizing: content-box; opacity: .9;
  background: radial-gradient(closest-side, var(--c) calc(100% - 280px), color-mix(in srgb, var(--c) 84%, transparent) calc(100% - 210px),
    color-mix(in srgb, var(--c) 50%, transparent) calc(100% - 140px), color-mix(in srgb, var(--c) 16%, transparent) calc(100% - 70px), transparent);
  will-change: transform; animation: blob var(--t, 20s) ease-in-out infinite alternate;
}
.blob--pink  { width: 44vw; height: 44vw; left: -10vw; top: 30%; --c: #f5a3c3; --t: 19s; --dx: 8vw;  --dy: -6vh; }
.blob--blue  { width: 40vw; height: 40vw; right: -8vw; top: 18%; --c: #94c0ee; --t: 23s; --dx: -7vw; --dy: 8vh; }
.blob--lilac { width: 28vw; height: 28vw; left: 36%;  top: 10%; --c: #d4bff3; --t: 17s; --dx: -5vw; --dy: 6vh; }
.blob--mint  { width: 32vw; height: 32vw; left: 30%;  bottom: -4%; --c: #a3dbbd; --t: 26s; --dx: 9vw;  --dy: -5vh; }
@keyframes blob { to { transform: translate3d(var(--dx), var(--dy), 0) scale(1.14); } }
.sets-cloud { position: absolute; left: 0; width: var(--w); opacity: .95; will-change: transform; animation: drift var(--dur) linear infinite; }

.sets-head { text-align: center; max-width: 820px; margin: 0 auto 7vh; }
.sets-head .lead { margin-inline: auto; }
.sets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1400px; margin: 0 auto; align-items: stretch; }

/* Карточка-«жидкое стекло»: размытие фона, светлая кромка, блик за курсором */
.set {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .34) 55%, rgba(255, 255, 255, .26) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .9),
    inset 0 -1px 1px rgba(255, 255, 255, .3),
    0 1px 2px rgba(60, 20, 40, .06),
    0 30px 60px -34px rgba(80, 30, 60, .4);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s;
}
/* кромка: тонкий светящийся контур, ярче по диагонали */
.set::after {
  content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,255,255,.18) 35%, rgba(255,255,255,.06) 60%, rgba(255,255,255,.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* блик, который следует за курсором */
.set::before {
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 60%);
  opacity: .55; transition: opacity .4s ease;
}
.set:hover::before { opacity: 1; }
.set:hover { transform: translateY(-8px); box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.3), 0 1px 2px rgba(60,20,40,.06), 0 44px 80px -36px rgba(80, 30, 60, .5); }
.set--full { background: linear-gradient(160deg, rgba(255, 220, 233, .7) 0%, rgba(248, 182, 207, .42) 60%, rgba(246, 170, 200, .34) 100%); }
/* шоколадный Porsche — одна карточка с машинкой вместо трёх сетов (класс is-solo ставит main.js, смена — swapSets) */
.set--solo { display: none; }
.sets-grid.is-solo, html[data-model="choco"]:not(.sets-ready) .sets-grid { grid-template-columns: minmax(0, 620px); justify-content: center; }
.sets-grid.is-solo .set:not(.set--solo), html[data-model="choco"]:not(.sets-ready) .sets-grid .set:not(.set--solo) { display: none; }
.sets-grid.is-solo .set--solo, html[data-model="choco"]:not(.sets-ready) .sets-grid .set--solo { display: flex; }
/* ↑ html[data-model]:not(.sets-ready) — пока main.js ещё грузится (модель уже известна из адреса), дальше — класс is-solo */
.set--solo { background: linear-gradient(160deg, rgba(253, 236, 228, .72) 0%, rgba(240, 200, 186, .44) 60%, rgba(224, 170, 160, .34) 100%); }
.set-media.set-media--solo { aspect-ratio: 1 / .6; background: radial-gradient(80% 70% at 50% 45%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.solo-car {
  position: absolute; left: 7%; width: 86%; top: 50%; height: auto;
  transform: translateY(-50%) rotate(-4deg); filter: drop-shadow(0 22px 18px rgba(70, 25, 15, .3));
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.set--solo:hover .solo-car { transform: translateY(calc(-50% - 10px)) rotate(-6deg); }

.set-media { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: transparent; }
.set-media--tee { background: radial-gradient(90% 70% at 50% 30%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%); }
.set-media--hoodie { background: radial-gradient(90% 70% at 50% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.set-media--full { background: radial-gradient(90% 70% at 50% 30%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%); }
.tee-swap { position: absolute; inset: 0; }
.tee { position: absolute; }
/* футболки — вырезанные PNG без фона, стоят прямо на стекле */
.tee { left: 12%; top: 4%; width: 76%; height: auto; filter: drop-shadow(0 22px 22px rgba(60, 20, 40, .2)); opacity: 0; transition: opacity .5s ease; }
.tee.is-on { opacity: 1; }
/* Машинка в карточке: 4 цвета стопкой, видна одна (.is-on) */
.car-stack {
  position: absolute; z-index: 2; left: 50%; bottom: 5%; width: 74%; aspect-ratio: var(--car-ar, 1908 / 615);
  transform: translateX(-50%) rotate(-4deg);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.car-stack.is-pop { animation: pop .7s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { 0% { scale: .93; } 55% { scale: 1.03; } 100% { scale: 1; } }
.set:hover .car-stack { transform: translateX(-50%) translateY(-12px) rotate(-6deg); }
.set-car {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 18px 16px rgba(110, 40, 70, .22));
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .45s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.set-car.is-on { opacity: 1; transform: none; }
.hoodie { position: absolute; width: 58%; height: auto; left: 21%; top: 4%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.18)); }
.full-tee { position: absolute; width: 50%; left: 5%; top: 6%; transform: rotate(-7deg); filter: drop-shadow(0 18px 18px rgba(0,0,0,.22)); }
.hoodie--sm { width: 44%; left: auto; right: 6%; top: 7%; transform: rotate(7deg); }

.set-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.set-tag { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .28em; color: #9a9592; }
.set--full .set-tag { color: #9b5c74; }
.set h3 { margin: 10px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.set-list { list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.set--full .set-list { color: #6e4a58; }
.set-list li::before { content: "— "; }
.set-opts { display: grid; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.7); }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.opt-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8d8885; white-space: nowrap; }
.opt-label b { color: var(--ink); font-weight: 800; }
.set--full .opt-label { color: #94606f; }
.set--full .set-opts { border-top-color: rgba(255,255,255,.6); }
.car-colors, .swatches { display: flex; flex-wrap: wrap; gap: 14px; padding-left: 5px; }   /* отступ под кольцо выбора */
.cc {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.14) inset, 0 3px 8px -4px rgba(0,0,0,.35);
  transition: box-shadow .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.cc:hover { transform: scale(1.1); }
.cc--white { background: radial-gradient(circle at 35% 30%, #fff, #e8e4de 70%); }
.cc--blue  { background: radial-gradient(circle at 35% 30%, #dbe7f2, #a9bfd3 70%); }
.cc--pink  { background: radial-gradient(circle at 35% 30%, #fde3eb, #eeb2c6 70%); }
.cc--green { background: radial-gradient(circle at 35% 30%, #dcefe0, #a7caae 70%); }
.cc.is-on { box-shadow: 0 0 0 1px rgba(0,0,0,.14) inset, 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

.sw { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset; transition: box-shadow .25s; }
.sw--white { background: #f4f4f4; }
.sw--black { background: #111; }
.sw.is-on { box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset, 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.sizes { display: flex; gap: 6px; }
.sizes button { min-width: 40px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.42); box-shadow: 0 1px 2px rgba(60,20,40,.06); font-size: 13px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.sizes button:hover { border-color: var(--ink); }
.sizes button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.fit { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fit b { color: var(--ink); font-weight: 800; }
.set--full .fit { color: #8a5d6c; }
.sg-link {
  margin-left: 8px; padding: 0; border: 0; background: none;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none;
  color: var(--pink-deep); text-decoration: underline; text-underline-offset: 3px;
}
.sg-link:hover { color: var(--ink); }

/* пока открыто окно (корзина, размерная сетка), страница позади не прокручивается — колесо и свайп крутят только окно */
html:has(dialog[open]) { overflow: hidden; }

/* ---------- Размерная сетка (окно) ---------- */
.sg { width: min(1040px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.sg::backdrop { background: rgba(28, 12, 20, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sg-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px;
  max-height: calc(100dvh - 32px); overflow: auto; padding: 32px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(60, 20, 40, .5);
}
.sg-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f2efec; display: grid; place-items: center; transition: background .2s, transform .3s; }
@media (hover: hover) { .sg-close:hover { background: #e8e3df; transform: rotate(90deg); } }
.sg-draw { display: grid; place-items: center; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, #fff6f9, #f5e5ec); }
.sg-tee { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.sg-tee text { font: 800 17px "Inter Tight", system-ui, sans-serif; fill: currentColor; }
.dim { transition: opacity .3s ease; }
.sg-tee.has-hot .dim:not(.is-hot) { opacity: .12; }
.sg-side { display: flex; flex-direction: column; padding-top: 6px; }
.sg-side .eyebrow { margin-bottom: 10px; }
.sg-tabs { display: inline-flex; align-self: flex-start; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 999px; background: #f2efec; }
.sg-tabs[hidden], .sg-tabs button[hidden], .sg-tee[hidden] { display: none; }
.sg-tabs button { padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 800; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.sg-tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.sg-side h3 { margin: 0 0 20px; font-size: clamp(28px, 3vw, 38px); font-weight: 900; letter-spacing: -.03em; }
.sg-sizes { display: flex; gap: 8px; margin-bottom: 14px; }
.sg-sizes button { flex: 1; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: transparent; font-size: 16px; font-weight: 800; transition: background .2s, color .2s, border-color .2s; }
.sg-sizes button:hover { border-color: var(--ink); }
.sg-sizes button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sg-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sg-table th, .sg-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; transition: background .2s; }
.sg-table thead th { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.sg-table tbody th { text-align: left; font-weight: 900; }
.sg-table tbody th i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--c); }
.sg-table tbody th span { display: block; margin: 2px 0 0 18px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.sg-table tbody tr:hover th, .sg-table tbody tr.is-hot th { background: #faf6f4; }
.sg-table .is-col { background: #fbe9f0; font-weight: 800; }
.sg-table thead .is-col { color: var(--ink); }
.sg-note { margin: 16px 0 20px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.sg-apply { width: 100%; margin-top: auto; }
@media (max-width: 760px) {
  .sg-in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .sg-draw { padding: 12px; }
  .sg-tee { max-height: 32vh; }
  .sg-side h3 { margin-bottom: 14px; }
}
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 26px; }
.price { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.fly { position: fixed; z-index: 100; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; }

/* ---------- Корзина (панель справа) ---------- */
.cart {
  position: fixed; inset: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.cart::backdrop { background: rgba(28, 12, 20, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cart[open]::backdrop { animation: cart-dim .45s ease both; }
@keyframes cart-dim { from { opacity: 0; } }
.cart-in { will-change: transform; }
/* пока открыта корзина или летит машинка — фон страницы замирает (на телефоне иначе подтормаживает) */
html.is-busy .cloud, html.is-busy .bank-track, html.is-busy .blob, html.is-busy .sets-cloud, html.is-busy .marquee-track { animation-play-state: paused !important; }
html.is-swapping .cloud, html.is-swapping .bank-track, html.is-swapping .blob, html.is-swapping .sets-cloud, html.is-swapping .marquee-track { animation-play-state: paused !important; }   /* на время смены сетов */
/* на время смены сетов «стекло» без живого размытия: размывать фон под тремя движущимися карточками каждый кадр —
   самое тяжёлое для видеокарты телефона; фон под ними и так мягкий, разница почти не видна */
html.is-swapping .sets-grid .set { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* на телефонах — без размытия фона под корзиной: выглядит почти так же, но в разы легче */
@media (pointer: coarse) {
  .cart::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(28, 12, 20, .45); }
  .cart-in { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: linear-gradient(170deg, #fff, #fff6f9) !important; }
}
.cart-in {
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(170deg, rgba(255,255,255,.95), rgba(255,244,248,.93));
  -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  border-left: 1px solid rgba(255,255,255,.8);
  box-shadow: -30px 0 80px -30px rgba(60, 20, 40, .45);
}
.cart-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(13,13,15,.07); }
.cart-title { margin: 0; text-align: center; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.cart-close, .cart-back { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(13,13,15,.05); display: grid; place-items: center; transition: background .2s, transform .3s; }
/* поворот крестика — только на устройствах с мышью: на телефоне «наведение» залипает после касания */
@media (hover: hover) { .cart-close:hover { background: rgba(13,13,15,.1); transform: rotate(90deg); } }
.cart-back:hover { background: rgba(13,13,15,.1); }
.cart-back { visibility: hidden; }
.cart-in:not([data-step="list"]) .cart-back { visibility: visible; }
.cart-in[data-step="done"] .cart-back { visibility: hidden; }

.cart-step { display: none; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 8px 20px 20px; }
.cart-in[data-step="list"] .cart-step--list,
.cart-in[data-step="form"] .cart-step--form,
.cart-in[data-step="done"] .cart-step--done { display: block; }

.cart-items { list-style: none; margin: 0; padding: 0; }
.ci { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid rgba(13,13,15,.07); }
.ci-thumb { width: 96px; height: 76px; border-radius: 16px; background: radial-gradient(80% 80% at 50% 40%, #fff, rgba(255,255,255,.4)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 6px 16px -10px rgba(60,20,40,.4); display: grid; place-items: center; overflow: hidden; }
.ci-thumb img { width: 88%; transform: rotate(-4deg); filter: drop-shadow(0 6px 6px rgba(110,40,70,.2)); }
.ci-name { margin: 2px 0 4px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.ci-opts { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ci-opts b { color: var(--ink); font-weight: 700; }
.ci-opts span { white-space: nowrap; }
.ci-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(13,13,15,.1); }
.qty button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 17px; font-weight: 700; line-height: 1; }
.qty button:hover { background: rgba(13,13,15,.06); }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ci-price { margin: 2px 0 0; font-size: 15px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ci-del { border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ci-del:hover { color: var(--pink-deep); }

.cart-empty { display: none; padding: 9vh 10px 0; text-align: center; }
.pillow { position: relative; width: min(300px, 80%); aspect-ratio: 720 / 390; margin: 0 auto 22px; }
/* мягкое «небо» за подушкой, в цвет модели — чтобы белые облако и гипс не сливались с фоном */
.pillow::before {
  content: ""; position: absolute; left: -12%; right: -12%; top: -38%; bottom: -14%; border-radius: 50%;
  background: radial-gradient(closest-side, #f7bfd3 0%, rgba(247, 191, 211, .75) 45%, rgba(247, 191, 211, 0) 100%);
  transition: opacity .6s;
}
html[data-model="bmw"] .pillow::before { background: radial-gradient(closest-side, #a9c8ee 0%, rgba(169, 200, 238, .75) 45%, rgba(169, 200, 238, 0) 100%); }
html[data-model="choco"] .pillow::before { background: radial-gradient(closest-side, #e7b9a8 0%, rgba(231, 185, 168, .75) 45%, rgba(231, 185, 168, 0) 100%); }
.pillow-cloud { position: absolute; left: 0; bottom: 0; width: 100%; transform-origin: 50% 100%; }
/* передний край облака мягко наплывает на колёса — машинка «утопает» в подушке */
.pillow-cloud--front { -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 56%); mask-image: linear-gradient(180deg, transparent 40%, #000 56%); }
.pillow-float { position: absolute; left: 14%; width: 72%; bottom: 31%; animation: pillow-bob 3.6s ease-in-out infinite; }
.pillow-float::before {   /* тень машинки на облаке */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -6%; height: 22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 120, 150, .28), rgba(110, 120, 150, 0));
}
.pillow-car { position: relative; width: 100%; height: auto; transform: rotate(-1.5deg); filter: drop-shadow(0 6px 8px rgba(90, 100, 130, .2)); }
@keyframes pillow-bob { 50% { transform: translateY(-4px) rotate(-.8deg); } }
.cart-empty p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.cart-empty p b { display: block; margin-bottom: 4px; font-size: 18px; color: var(--ink); }
.cart.is-empty .cart-empty { display: block; }
.cart.is-empty .cart-foot { display: none; }

.cart-foot { padding: 16px 20px 22px; border-top: 1px solid rgba(13,13,15,.07); background: rgba(255,255,255,.5); }
.cart-sum { display: flex; align-items: baseline; justify-content: space-between; }
.cart-sum span { font-size: 14px; font-weight: 700; color: var(--muted); }
.cart-sum b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cart-hint { margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); }
.cart-cta { width: 100%; height: 56px; font-size: 16px; }
.cart-cta:disabled { opacity: .55; cursor: progress; }
.cart-in[data-step="done"] .cart-foot { display: none; }

/* оформление */
.checkout fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.checkout legend { margin: 10px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-deep); }
.field { display: block; margin-bottom: 10px; }
.field[hidden], .self-note[hidden] { display: none; }
.field span { display: block; margin: 0 0 5px 2px; font-size: 12.5px; font-weight: 700; color: #6b6663; }
.field span i { font-style: normal; font-weight: 500; color: #a19b98; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; resize: vertical;
  background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(13,13,15,.1);
  font: inherit; font-size: 15px; color: var(--ink); transition: box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field.is-bad input { box-shadow: inset 0 0 0 2px #e0446a; }
.field.is-bad span { color: #e0446a; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 16px; background: rgba(13,13,15,.06); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 10px 6px; border-radius: 12px; text-align: center; font-size: 13px; line-height: 1.25; font-weight: 800; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.self-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(13,13,15,.08); font-size: 13px; line-height: 1.45; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cart-hint.is-error { color: #d0345e; }
.terms-note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.terms-note a, .agree a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.self-note b { display: block; margin-top: 4px; color: var(--ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--pink-deep); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.agree.is-bad span { color: #e0446a; }

/* готово */
.done { padding: 10vh 8px 0; text-align: center; }
.done-mark { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #f2a2c1, #d9638f); box-shadow: 0 16px 30px -12px rgba(217,99,143,.7); }
html[data-model="bmw"] .done-mark { background: linear-gradient(140deg, #a6c8f0, #3a72c0); box-shadow: 0 16px 30px -12px rgba(58,114,192,.7); }
html[data-model="choco"] .done-mark { background: linear-gradient(140deg, #d8a07a, #6e3a1f); box-shadow: 0 16px 30px -12px rgba(110,58,31,.7); }
.done h3 { margin: 0 0 10px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.done p { margin: 0 auto 26px; max-width: 30em; color: var(--muted); line-height: 1.55; }

/* всплывашка */
.toast {
  position: fixed; z-index: 60; right: 18px; top: 84px; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 20px; max-width: calc(100vw - 36px);
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 20px 40px -20px rgba(60,20,40,.45);
  opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast img { width: 64px; transform: rotate(-4deg); }
.toast p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.toast p b { display: block; font-size: 14px; color: var(--ink); }
.toast button { border: 0; border-radius: 999px; padding: 10px 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }

@media (max-width: 560px) {
  .cart { width: 100vw; }
  .ci { grid-template-columns: 76px 1fr; }
  .ci-thumb { width: 76px; height: 62px; }
  .ci-price { grid-column: 2; }
  .toast { left: 12px; right: 12px; top: 80px; }
}

/* ---------- Футер ---------- */
.footer { padding: 14vh 5vw 5vh; text-align: center; }
/* ---------- Левая колонка раздела «Сделано руками» ---------- */
.craft-left { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.promo-note { display: none; }

/* Промокод в оформлении */
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.promo-row .field { margin-bottom: 0; }
.promo-row[hidden] { display: none; }
.promo-row input { text-transform: uppercase; letter-spacing: .06em; }
.promo-apply { height: 46px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font: 700 14px "Inter Tight", sans-serif; cursor: pointer; transition: opacity .2s, transform .15s; }
.promo-apply:active { transform: translateY(1px); }
.promo-apply:disabled { opacity: .5; cursor: default; }
.promo-msg { min-height: 18px; margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.promo-msg.is-ok { color: #2f8f5b; font-weight: 700; }
.promo-msg.is-bad { color: #d0345e; }
.cart-sum s { margin-right: 8px; font-size: .6em; font-weight: 600; color: var(--muted); }

/* Контакты */
.contacts { max-width: 1240px; margin: 0 auto 9vh; text-align: left; }
.contacts h2 { margin: 0 0 6vh; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 6vw; align-items: start; }
.c-line { margin: 0 0 6px; font-size: 17px; line-height: 1.5; }
.c-row { display: flex; align-items: center; gap: 14px; margin: 24px 0 26px; padding: 18px 0 18px 4px; border-block: 1px solid var(--line); font-size: 19px; color: inherit; text-decoration: none; }
.c-row:hover b { color: var(--pink-deep); }
.c-sub { margin: 0 0 18px; font-size: 16px; color: var(--muted); }
.c-social { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; font-size: 22px; font-weight: 600; }
.c-social span { display: flex; flex-direction: column; line-height: 1.2; }
.c-social i { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); }
.c-social:hover span { color: var(--pink-deep); }
.contacts-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contacts-docs a { display: flex; align-items: flex-start; gap: 12px; color: inherit; text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.35; }
.contacts-docs svg { flex: none; margin-top: 1px; color: var(--muted); }
.contacts-docs a:hover { color: var(--pink-deep); }
@media (max-width: 860px) {
  .contacts-grid { grid-template-columns: minmax(0, 1fr); gap: 7vh; }
  .c-line { font-size: 15px; }
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .sets-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 860px) {
  :root { --hs: 18.6vw; --hero-top: 17vh; }
  .nav { grid-template-columns: auto 1fr auto; padding-left: 18px; }
  .nav-links { display: none; }
  .nav-mark { grid-column: 1; }
  .nav-cart { grid-column: 3; }
  .car-par { --cw: 96vw; top: 42vh; }
  .hero-kicker { right: auto; left: 4.5vw; font-size: 10px; letter-spacing: .32em; }
  .hero-sub { font-size: 10px; letter-spacing: .32em; }
  .hero-cta { right: 0; left: 0; margin-inline: auto; width: max-content; top: auto; bottom: 17vh; }
  .hero-switch { left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 26vh; }
  .model-switch button { padding: 6px 14px 6px 8px; font-size: 12px; }
  .model-switch button img { width: 38px; }
  .model-switch button i { display: none; }   /* на телефоне три кнопки: «911 · M4 · Choco» */
  html[data-model="choco"] .headline { font-size: calc(var(--hs) * .64); top: calc(var(--hero-top) + var(--hs) * .12); }
  .hero-down { width: 54px; height: 54px; left: calc(50% - 27px); bottom: 5vh; }
  .bank--back  { bottom: 18vh; height: 22vh; --tile: calc(22vh * 5); }
  .bank--front { height: 34vh; --tile: calc(34vh * 3.171); }
  .craft { grid-template-columns: minmax(0, 1fr); padding: 12vh 5vw; }
  .intro-cap { gap: 7px; font-size: 10px; letter-spacing: .3em; }
  .intro-cap span { margin-right: -.3em; }
  .intro-cap .ic-drops { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .bank-track, .car-stack, .blob, .sets-cloud, .ms-thumb, .pillow-float, .marquee-track, .hero-down svg, .scroll-hint i { animation: none !important; }
  .intro { height: 100vh; }
}
