/* ========== BMW X1 THEME OVERRIDES ========== */
:root {
  --bg: #f6f8fb;
  --bg-2: #edf2f7;
  --paper: #ffffff;
  --ink: #121926;
  --ink-2: #435064;
  --ink-3: #7c8798;
  --line: #dbe3ee;
  --line-2: #c8d3e0;
  --accent: #1f5eff;
  --accent-ink: #0b3d91;
  --gold: #d9a441;
  --ok: #168253;
  --err: #d73b3e;
  --serif: 'Russo One', 'Arial Black', Impact, sans-serif;
  --sans: 'Manrope', system-ui, Arial, sans-serif;
}

/* ========== HERO SHADOW FIX ========== */
.hero-stage-floor {
  display: none !important;
}

.hero-stage-img-cutout {
  filter: drop-shadow(0 30px 34px rgba(12,16,20,.24));
}

html,
body {
  background:
    radial-gradient(circle at 85% 8%, rgba(31, 94, 255, .14), transparent 30vw),
    radial-gradient(circle at 10% 0%, rgba(217, 164, 65, .12), transparent 26vw),
    linear-gradient(180deg, #fbfcff 0%, #eef3f9 48%, #f7f9fc 100%);
  color: var(--ink);
  font-family: var(--sans);
}

.serif,
.hero-headline,
.section-head h2,
.cab-title,
.cab-h2,
.auth-title {
  font-family: var(--serif);
  letter-spacing: 0;
}

.topbar {
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(18, 25, 38, .08);
  box-shadow: 0 18px 44px rgba(18, 25, 38, .06);
}

.topbar-inner {
  height: 76px;
}

.topbar-nav a {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.btn-auth,
.btn,
.btn-pill,
.btn-submit-accent,
.btn-edit {
  font-weight: 800;
}

.btn-accent,
.btn-submit-accent,
.btn-auth-solid,
.connect-btn {
  background: linear-gradient(135deg, #1f5eff 0%, #0f2e69 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 42px rgba(31, 94, 255, .22);
}

.btn-accent:hover,
.btn-submit-accent:hover,
.btn-auth-solid:hover,
.connect-btn:hover {
  background: linear-gradient(135deg, #0f2e69 0%, #071831 100%);
  transform: translateY(-2px);
}

.btn-auth-ghost,
.btn-secondary,
.soon-btn {
  background: rgba(255, 255, 255, .64);
  border: 1px solid var(--line-2);
  color: var(--ink);
}

.hero {
  padding: 72px 0 8px;
}

.hero-grid {
  grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
}

.hero-headline {
  font-size: clamp(42px, 6vw, 92px);
  line-height: .94;
  color: var(--ink);
}

.hero-headline em {
  color: var(--accent);
  text-shadow: none;
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(17px, 1.35vw, 22px);
  color: var(--ink-2);
}

.hero-stage {
  min-height: 520px;
  border: 1px solid rgba(18, 25, 38, .08);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(226,234,244,.72)),
    radial-gradient(circle at 50% 80%, rgba(31, 94, 255, .16), transparent 36%);
  box-shadow: 0 40px 100px rgba(18, 25, 38, .13);
  overflow: hidden;
}

.hero-stage::before {
  content: "BMW X1";
  position: absolute;
  left: 30px;
  top: 26px;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: .18em;
  color: rgba(18, 25, 38, .28);
}

.hero-stage-img {
  width: min(900px, 108%);
  max-width: none;
  margin: 74px 0 0 -26px;
  filter: drop-shadow(0 28px 34px rgba(18, 25, 38, .22));
  transform: none;
}

.hero-stage-floor {
  background: linear-gradient(90deg, transparent, rgba(31, 94, 255, .18), transparent);
}

.hero-metrics {
  margin-top: 36px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(18, 25, 38, .06);
}

.hero-metric-value {
  color: var(--ink);
}

.countdown-strip {
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(17, 24, 39, .18);
}

.countdown-strip .label,
.countdown-strip .unit,
.draw-info {
  color: rgba(255,255,255,.7);
}

.countdown-cell {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

.section-head,
.spec-grid,
.steps,
.form-grid,
.creator-grid,
.faq-grid,
.footer-top {
  position: relative;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: .98;
}

.step,
.chances-card,
.spec-photo,
.spec-list,
.faq-item,
.creator-card,
.auth-card,
.cab-section,
.cab-progress,
.cab-score,
.orders-summary-card,
.order-detail-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(18, 25, 38, .1);
  box-shadow: 0 24px 70px rgba(18, 25, 38, .08);
}

.step {
  border-radius: 26px;
}

.step-num,
.index,
.eyebrow,
.chances-tag,
.chances-item-num,
.spec-row dt,
.creator-card-lbl {
  color: var(--accent-ink);
}

.spec-photo {
  border-radius: 32px;
  overflow: hidden;
}

.spec-photo img,
.gphoto img {
  object-fit: cover;
  object-position: center;
}

.spec-list {
  border-radius: 32px;
  padding: 18px;
}

.spec-row {
  border-color: rgba(18, 25, 38, .1);
}

.gallery-8 {
  grid-template-columns: 1.1fr .9fr;
}

.gphoto {
  border-radius: 28px;
  border: 1px solid rgba(18, 25, 38, .1);
  box-shadow: 0 20px 52px rgba(18, 25, 38, .08);
  overflow: hidden;
}

.gphoto-cap {
  background: rgba(255,255,255,.84);
  color: var(--ink);
}

.chances-card {
  border-radius: 34px;
}

.chances-progress-fill,
.cab-progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.chances-item {
  background: rgba(246, 248, 251, .86);
  border-color: rgba(18, 25, 38, .08);
}

.chances-item-active {
  background: rgba(31, 94, 255, .08);
  border-color: rgba(31, 94, 255, .24);
}

.chances-item-tag,
.bonus-pill {
  color: var(--accent-ink);
  background: rgba(31, 94, 255, .1);
}

.footer {
  background:
    radial-gradient(circle at 80% 0%, rgba(31, 94, 255, .25), transparent 34vw),
    linear-gradient(180deg, #101827 0%, #07111f 100%);
}

.auth-page,
.cabinet-page {
  background:
    radial-gradient(circle at 82% 12%, rgba(31,94,255,.16), transparent 28vw),
    radial-gradient(circle at 12% 0%, rgba(217,164,65,.13), transparent 24vw),
    #f6f8fb;
  color: var(--ink);
}

.auth-card {
  border-radius: 30px;
}

.field-input,
.field-select,
.field textarea {
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink);
}

.field-input:focus,
.field-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, .12);
}

.cab-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(227,234,244,.66)),
    radial-gradient(circle at right top, rgba(31,94,255,.16), transparent 34%);
  border: 1px solid rgba(18,25,38,.08);
  border-radius: 34px;
  padding: clamp(28px, 4vw, 54px);
  box-shadow: 0 26px 74px rgba(18,25,38,.08);
}

.cab-title em {
  color: var(--accent);
  font-style: normal;
}

.social-card {
  background: rgba(255,255,255,.82);
  border-color: rgba(18,25,38,.1);
}

.social-card.linked {
  background: rgba(31,94,255,.08);
  border-color: rgba(31,94,255,.2);
}

.ticket-card,
.orders-row,
.archive-group {
  background: rgba(255,255,255,.78);
  border-color: rgba(18,25,38,.1);
}

.ticket-num-pill,
.order-ticket-range {
  background: rgba(31,94,255,.09);
  border-color: rgba(31,94,255,.25);
  color: var(--accent-ink);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 360px;
  }

  .hero-stage-img {
    width: 118%;
    margin: 76px 0 0 -40px;
  }

  .topbar-inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topbar-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .auth-cta-pair,
  .topbar-user {
    margin-left: auto;
  }

  .hero-metrics,
  .countdown-strip {
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 34px;
  }

  .hero-headline {
    font-size: clamp(38px, 13vw, 56px);
  }

  .btn-lg,
  .btn-submit-accent {
    width: 100%;
    justify-content: center;
  }

  .gallery-8 {
    grid-template-columns: 1fr;
  }
}

/* ========== RESET & TOKENS ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Fallback с подогнанными метриками — чтобы при FOUT (пока Google Fonts не загрузились)
   локальные системные шрифты занимали столько же места по ширине/высоте,
   что и Oswald (заголовки) / Barlow (текст). Без этого на холодной загрузке всё прыгает. */
@font-face {
  font-family: 'Oswald Fallback';
  font-style: normal;
  font-weight: 400 700;
  src: local('Arial Narrow'), local('Impact'), local('Arial');
  size-adjust: 88%;
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback';
  font-style: normal;
  font-weight: 300 700;
  src: local('Arial'), local('Helvetica'), local('sans-serif');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: oklch(98.4% 0.005 80);
  --bg-2: oklch(96% 0.008 80);
  --paper: oklch(99.5% 0.003 80);
  --ink: oklch(18% 0.01 80);
  --ink-2: oklch(38% 0.01 80);
  --ink-3: oklch(60% 0.008 80);
  --line: oklch(88% 0.006 80);
  --line-2: oklch(82% 0.008 80);
  --accent: #d24a43;                /* brand red — Гараж 54 logo */
  --accent-ink: #732925;
  --ok: oklch(58% 0.12 150);
  --err: oklch(56% 0.18 25);

  /* По образцу garage54.shi-no.ru: Oswald — заголовки, Barlow — основной текст */
  --serif: 'Oswald', 'Oswald Fallback', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', 'Barlow Fallback', system-ui, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========== UTILS ========== */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; }
.italic { font-style: italic; }
.divider { height: 1px; background: var(--line); width: 100%; }
.ruler {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-2); text-transform: uppercase;
}
.ruler::before, .ruler::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ruler::before { flex: 0 0 24px; }

/* ========== TOPBAR ========== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0;
  text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.topbar-nav { display: flex; gap: 28px; font-size: 13px; color: var(--ink-2); }
.topbar-nav a:hover { color: var(--ink); }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 13px; transition: all .2s;
}
.topbar-cta:hover { background: var(--ink); color: var(--bg); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); }
}

/* ========== HERO ========== */
.hero {
  padding: 56px 0 0;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: stretch;
}
.hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* текст сверху */
  padding: 0;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2);
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  display: inline-block;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.hero-headline .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero-sub {
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
  max-width: 480px; margin: 24px 0 0;
}
.hero-actions {
  display: flex; gap: 16px; align-items: center; margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px; letter-spacing: 0.01em;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-ink); border-color: var(--accent-ink); }

/* Акцентная (красная) кнопка — для главного CTA */
.btn-accent {
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-accent:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px color-mix(in oklab, var(--accent-ink) 70%, transparent);
}
.btn-accent .btn-arrow { background: #fff; color: var(--accent); }

/* Крупная кнопка (модификатор) */
.btn-lg {
  padding: 22px 38px;
  font-size: 16px;
  letter-spacing: 0.02em;
  gap: 16px;
}
.btn-lg .btn-arrow { width: 30px; height: 30px; font-size: 14px; }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  display: grid; place-items: center;
  font-size: 12px;
}
.btn-primary .btn-arrow { background: var(--bg); color: var(--ink); }
.btn-ghost .btn-arrow { background: var(--ink); color: var(--bg); }

/* === Hero stage: светлая "аукционная карточка" вместо тёмной студии. */
.hero-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(420px, 35vw, 520px);
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: -2%;
  top: -2%;
  bottom: -1%;
  z-index: 0;
  border-radius: 48% 52% 44% 56% / 42% 46% 54% 58%;
  background:
    radial-gradient(ellipse 48% 42% at 78% 24%,
      color-mix(in oklab, var(--accent) 22%, var(--bg) 10%) 0%,
      transparent 68%),
    radial-gradient(ellipse 54% 50% at 20% 46%,
      color-mix(in oklab, white 88%, var(--bg) 12%) 0%,
      transparent 70%),
    radial-gradient(ellipse 86% 42% at 56% 83%,
      color-mix(in oklab, var(--ink) 15%, transparent) 0%,
      transparent 70%),
    linear-gradient(118deg,
      color-mix(in oklab, var(--bg-2) 70%, white) 0%,
      color-mix(in oklab, var(--paper) 62%, var(--accent) 7%) 54%,
      transparent 100%);
  filter: blur(8px);
  opacity: .98;
}
.hero-stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 3%;
  top: 9%;
  height: 76%;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(115deg,
    transparent 0%,
    color-mix(in oklab, var(--accent) 14%, transparent) 34%,
    color-mix(in oklab, var(--paper) 90%, transparent) 60%,
    transparent 100%);
  transform: rotate(-3deg);
  opacity: .95;
  pointer-events: none;
}
.hero-stage-img {
  position: absolute;
  left: 52%;
  bottom: 10px;
  width: min(94%, 860px);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  display: block;
  z-index: 3;
  filter: drop-shadow(0 22px 26px color-mix(in oklab, var(--ink) 24%, transparent));
}
.hero-stage-floor {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 78%;
  height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    color-mix(in oklab, var(--ink) 28%, transparent) 0%,
    color-mix(in oklab, var(--ink) 14%, transparent) 42%,
    transparent 72%
  );
  filter: blur(10px);
  z-index: 2;
  pointer-events: none;
}
.hero-stage-mark {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
  line-height: 1;
}
.hero-stage-meta {
  position: absolute;
  top: calc(20px + clamp(16px, 1.45vw, 22px) + 8px);
  left: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent-ink) 72%, transparent);
}
/* Подпись с тех. характеристиками — снаружи stage, под фото */
.hero-figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero-stage-cap {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
}

@media (max-width: 800px) {
  .hero-stage {
    min-height: 360px;
    margin-top: 24px;
  }
  .hero-stage-img {
    left: 53%;
    width: min(108%, 700px);
  }
  .hero-stage-mark { font-size: 16px; }
}

/* (Старые стили рамки оставляем для совместимости — не используются) */
.hero-photo {
  position: relative;
  aspect-ratio: 5/4;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-2);
}
.hero-photo > img:not(.hero-photo-cutout-img):not(.hero-photo-cutout-reflect) {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* === ВАРИАНТ: вырезанное фото на светлой студийной подложке (под цвет ленда) === */
.hero-photo-cutout {
  background: linear-gradient(180deg,
    oklch(97% 0.005 80) 0%,
    oklch(94% 0.006 80) 60%,
    oklch(90% 0.008 80) 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.hero-photo-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 35% at 50% 15%,
      color-mix(in oklab, var(--accent) 10%, transparent) 0%,
      transparent 65%),
    radial-gradient(ellipse 55% 25% at 50% 100%,
      color-mix(in oklab, var(--ink) 8%, transparent) 0%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-photo-cutout-img {
  position: absolute;
  bottom: 6%; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: auto;
  max-height: 92%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 3;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.2));
}
/* Отражение убираем — на cutout с человеком оно ломает композицию */
.hero-photo-cutout-reflect { display: none; }

/* Овальная тень — прижата к низу под машиной */
.hero-photo-shadow {
  position: absolute;
  bottom: 5%; left: 50%;
  width: 80%; height: 18px;
  background: radial-gradient(ellipse,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.18) 40%,
    transparent 70%);
  filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 800px) {
  .hero-photo-cutout-img { height: 80%; bottom: 7%; }
  .hero-photo-cutout-reflect { top: calc(7% + 80%); height: 18%; }
}
.hero-photo-tag {
  position: absolute; top: 16px; left: 16px;
  z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-photo-cap {
  position: absolute; bottom: 16px; right: 16px;
  z-index: 4;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: 0 1px 6px rgba(255,255,255,.6);
  text-align: right;
}

/* hero metrics row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
}
.hero-metric { padding-right: 24px; }
.hero-metric + .hero-metric { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-metric-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.hero-metric-value {
  font-family: var(--serif); font-size: 32px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1;
}
.hero-metric-value sup { font-size: 0.5em; vertical-align: super; color: var(--ink-2); margin-left: 4px; }

/* ========== COUNTDOWN STRIP ========== */
.countdown-strip {
  margin-top: 80px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
}
.countdown-strip .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: oklch(75% 0.01 80);
  margin-bottom: 6px;
}
.countdown-strip .title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.countdown-clock {
  display: flex; gap: 4px;
  font-family: var(--serif); font-weight: 600;
}
.countdown-cell {
  width: 64px; padding: 10px 0;
  text-align: center;
  background: oklch(24% 0.01 80);
  border-radius: 2px;
}
.countdown-cell .num {
  font-size: 28px; line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.countdown-cell .unit {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(70% 0.01 80);
  margin-top: 6px;
}
.countdown-strip .draw-info {
  text-align: right;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(75% 0.01 80);
}
.countdown-strip .draw-info strong { color: var(--bg); display: block; font-weight: 500; margin-top: 4px; }

/* ========== SECTION HEADER ========== */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 12px 0 0;
}
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head .index {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.section-head p {
  font-size: 17px; color: var(--ink-2); line-height: 1.55;
  max-width: 520px; margin: 0;
}

/* ========== SPEC SECTION ========== */
.spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.spec-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 4px;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.spec-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-list { display: flex; flex-direction: column; min-width: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row:first-child { border-top: 1px solid var(--ink); }
.spec-row dt {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.spec-row dd {
  margin: 0;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0;
  text-align: right;
}
.spec-row dd .unit-sm {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-left: 6px;
}

/* ========== STEPS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.step {
  padding: 40px 32px 48px;
  position: relative;
}
.step + .step { border-left: 1px solid var(--line); }
.step-num {
  font-family: var(--serif); font-weight: 500;
  font-size: 48px; line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}
.step-num em { font-style: normal; color: var(--accent); }
.step h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: 0;
  text-transform: uppercase;
  margin: 28px 0 10px;
}
.step p {
  margin: 0;
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
}
.step-meta {
  margin-top: 28px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 16px;
}
.step-meta span { display: flex; align-items: center; gap: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gphoto {
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 3px;
  position: relative;
}
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gphoto:hover img { transform: scale(1.03); }
.gphoto-cap {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.g1 { grid-column: span 7; aspect-ratio: 16/10; }
.g2 { grid-column: span 5; aspect-ratio: 4/5; }
.g3 { grid-column: span 4; aspect-ratio: 3/4; }
.g4 { grid-column: span 4; aspect-ratio: 3/4; }
.g5 { grid-column: span 4; aspect-ratio: 3/4; }

/* 8-shot gallery — compact mosaic, fits one viewport */
.gallery-8 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(0, 220px));
  gap: 10px;
}
.gallery-section {
  padding-bottom: clamp(44px, 5vw, 76px);
}
.gallery-section + .section {
  padding-top: clamp(52px, 6vw, 88px);
}
.gallery-8 .gphoto { min-height: 0; min-width: 0; }
.gallery-8 .gphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Row 1 */
.g-a { grid-column: 1 / span 5; grid-row: 1; }   /* 01 pier — wide feature */
.g-b { grid-column: 6 / span 3; grid-row: 1; }   /* 02 3/4 */
.g-c { grid-column: 9 / span 2; grid-row: 1; }   /* 03 front */
.g-d { grid-column: 11 / span 2; grid-row: 1; }  /* 04 grille */
/* Row 2 */
.g-e { grid-column: 1 / span 2; grid-row: 2; }   /* 05 front-low */
.g-f { grid-column: 3 / span 3; grid-row: 2; }   /* 06 side */
.g-g { grid-column: 6 / span 4; grid-row: 2; }   /* 07 diffuser */
.g-h { grid-column: 10 / span 3; grid-row: 2; }  /* 08 interior */

/* ========== FORM ========== */
.form-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.form-side {
  position: sticky; top: 96px;
}
.form-side h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 16px 0 24px;
}
.form-side h2 em { font-style: normal; color: var(--accent); }
.form-side p { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0 0 32px; max-width: 440px; }
.form-side-stats {
  display: flex; gap: 40px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.form-side-stat .v {
  font-family: var(--serif); font-size: 36px; font-weight: 600;
  letter-spacing: 0;
}
.form-side-stat .l {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}
.form-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.form-card-head .step-of {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.form-card-head h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}
.field { margin-bottom: 20px; }
.field-primary {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px 20px;
  margin-bottom: 8px;
}
.field-primary .field-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.field-primary .req {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink);
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  padding: 3px 8px; border-radius: 3px;
}
.field-input-lg {
  padding: 16px 18px;
  font-size: 18px;
  background: var(--paper);
  border-color: var(--line);
}
.field-input-lg:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

.optional-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 18px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.optional-divider::before, .optional-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.field-label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px;
}
.field-input, .field-select {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-size: 16px;
  transition: border-color .2s, background .2s;
  outline: none;
}
.field-input:focus, .field-select:focus {
  border-color: var(--ink);
  background: var(--paper);
}
.field-input.invalid { border-color: var(--err); }
.field-error {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--err); margin-top: 6px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-help {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 6px;
}

.checks { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.check input { display: none; }
.check-box {
  flex: 0 0 18px; width: 18px; height: 18px;
  border: 1px solid var(--line-2); border-radius: 3px;
  display: grid; place-items: center;
  margin-top: 2px;
  transition: all .15s;
}
.check input:checked + .check-box {
  background: var(--ink); border-color: var(--ink);
}
.check input:checked + .check-box::after {
  content: ""; width: 9px; height: 5px;
  border-left: 1.5px solid var(--bg);
  border-bottom: 1.5px solid var(--bg);
  transform: rotate(-45deg) translateY(-1px);
}

.submit-row {
  display: flex; flex-direction: column;
  align-items: stretch; gap: 14px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.submit-row .small {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.6;
  text-align: center;
}
.btn-submit {
  background: var(--ink); color: var(--bg);
  padding: 18px 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 14px; transition: all .2s;
  width: 100%;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-ink); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* success */
.form-success {
  text-align: center;
  padding: 32px 0;
}
.form-success .ticket {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 24px 0 8px;
}
.form-success .ticket-num {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.2em; color: var(--accent-ink);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  padding: 8px 18px; border-radius: 999px;
  display: inline-block;
}
.form-success p { color: var(--ink-2); margin: 24px auto 32px; max-width: 380px; }
.form-success .seal {
  width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  margin: 0 auto;
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  letter-spacing: 0;
}

/* ========== FAQ ========== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.faq-q .toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0; margin-left: 16px;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-q .toggle {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 28px;
  color: var(--ink-2); font-size: 16px; line-height: 1.6;
  max-width: 640px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--ink); color: var(--bg);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid oklch(28% 0.01 80);
}
.footer h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: oklch(70% 0.01 80);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: oklch(85% 0.01 80); }
.footer ul a:hover { color: var(--bg); }
.footer-mega {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 48px 0 24px;
}
.footer-mega em { font-style: normal; color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(60% 0.01 80);
}

/* ========== MARQUEE ========== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--serif); font-style: normal; font-weight: 500;
  font-size: 26px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; color: var(--ink); }
.marquee-track .star { color: var(--accent-ink); }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .hero-grid, .spec-grid, .form-grid, .faq-grid, .section-head { grid-template-columns: 1fr; gap: 32px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-metric + .hero-metric { border-left: none; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; border-top: 1px solid var(--line); }
  .countdown-strip { grid-template-columns: 1fr; gap: 20px; }
  .countdown-strip .draw-info { text-align: left; }
  .gallery-8 {
    grid-template-rows: repeat(2, minmax(0, 160px));
    gap: 8px;
  }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: span 6; aspect-ratio: 4/3; grid-row: auto; }
}

@media (max-width: 640px) {
  .gallery-8 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 110px);
  }
  .g-a { grid-column: 1 / span 6; grid-row: 1; }
  .g-b { grid-column: 1 / span 3; grid-row: 2; }
  .g-c { grid-column: 4 / span 3; grid-row: 2; }
  .g-d { grid-column: 1 / span 3; grid-row: 3; }
  .g-e { grid-column: 4 / span 3; grid-row: 3; }
  .g-f { grid-column: 1 / span 2; grid-row: 4; }
  .g-g { grid-column: 3 / span 2; grid-row: 4; }
  .g-h { grid-column: 5 / span 2; grid-row: 4; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .topbar-nav { display: none; }
  .form-side { position: static; }
  .form-card { padding: 28px 20px; }
}


/* ====================== AUTH HEADER BUTTONS ====================== */
.auth-cta-pair { display: flex; gap: 10px; align-items: center; }
.btn-auth {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  transition: all .18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-auth-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-auth-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-auth-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-auth-solid:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
}

/* ====================== AUTH PAGE ====================== */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 800px 400px at 70% -10%, color-mix(in oklab, var(--accent) 14%, transparent), transparent),
    var(--bg);
  display: flex; flex-direction: column;
}
.auth-main {
  flex: 1;
  display: grid; place-items: center;
  padding: 64px 24px;
}
.auth-card {
  width: 100%; max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px 44px 36px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.18);
}
.auth-back {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  background: none; border: none; padding: 0; cursor: pointer;
  margin-bottom: 20px;
}
.auth-back:hover { color: var(--ink); }
.auth-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: 0;
  font-size: 28px; line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink);
}
.auth-sub {
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
  margin: 0 0 28px;
  max-width: 360px;
}

.oauth-btn {
  width: 100%;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}
.oauth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.4);
}
.oauth-btn:disabled { opacity: .5; cursor: not-allowed; }
.oauth-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth-error {
  background: color-mix(in oklab, var(--err) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--err) 30%, transparent);
  color: var(--err);
  padding: 12px 14px; border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}
.req-dot { color: var(--accent); margin-left: 2px; }

.btn-submit-accent {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 16px 24px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: all .18s;
  margin-top: 8px;
}
.btn-submit-accent:hover:not(:disabled) {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
}
.btn-submit-accent:disabled { opacity: .5; cursor: not-allowed; }

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13px; color: var(--ink-3);
}
.auth-foot a {
  color: var(--accent-ink);
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.auth-foot a:hover { color: var(--accent); }

/* ====================== CABINET ====================== */
.cabinet-page {
  min-height: 100vh;
  background: var(--bg);
}
.cabinet-main {
  padding: 56px 24px 80px;
}
.topbar-user {
  display: flex; align-items: center; gap: 16px;
}
.topbar-username {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Hero */
.cab-hero {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.cab-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em;
  font-size: 38px; line-height: 1.05;
  text-transform: uppercase;
  margin: 12px 0 14px;
  color: var(--ink);
}
.cab-title em { font-style: normal; color: var(--accent); }
.cab-subtitle {
  font-size: 17px; line-height: 1.5; color: var(--ink-2);
  max-width: 560px; margin: 0;
}
.cab-subtitle strong { color: var(--ink); font-weight: 600; }

.cab-score {
  display: flex; flex-direction: column; align-items: center;
  background: var(--ink); color: var(--bg);
  border-radius: 6px;
  padding: 20px 28px;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}
.cab-score::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%);
}
.cab-score-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 60px; line-height: 1;
  position: relative; z-index: 1;
  color: var(--accent);
}
.cab-score-label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); text-align: center;
  margin-top: 4px;
  position: relative; z-index: 1;
  line-height: 1.3;
}

/* Progress */
.cab-progress { margin-bottom: 56px; }
.cab-progress-track {
  width: 100%; height: 6px; border-radius: 999px;
  background: var(--line); overflow: hidden;
  margin-bottom: 10px;
}
.cab-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
  border-radius: 999px;
  transition: width .6s cubic-bezier(.2,.7,.2,1);
}
.cab-progress-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

/* Sections */
.cab-section { margin-bottom: 56px; }

/* 2-колоночный низ кабинета: история номеров (слева) + профиль (справа) */
.cab-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 56px;
  align-items: start;
}
.cab-bottom-grid .cab-section { margin-bottom: 0; }
.cab-bottom-grid .ticket-card {
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  padding: 14px 16px;
}
.cab-bottom-grid .ticket-rank { font-size: 26px; }
.cab-bottom-grid .ticket-source-name { font-size: 14px; }
.cab-bottom-grid .ticket-source-meta { font-size: 10px; }
.cab-bottom-grid .ticket-num-pill { font-size: 12px; padding: 6px 12px; }
.cab-bottom-grid .profile-row { grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; }
.cab-bottom-grid .profile-row dd { font-size: 14px; }

@media (max-width: 1000px) {
  .cab-bottom-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cab-bottom-grid .ticket-card { grid-template-columns: 60px 1fr auto; padding: 16px 20px; }
  .cab-bottom-grid .profile-row { grid-template-columns: 220px 1fr; }
}
.cab-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  gap: 24px; flex-wrap: wrap;
}
.cab-h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: 0;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0; color: var(--ink);
}
/* Акцентный подзаголовок-призыв в шапке секции */
.cab-section-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}
.cab-section-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
.cab-section-cta-arrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  animation: cab-arrow-nudge 1.6s ease-in-out infinite;
}
@keyframes cab-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}

.cab-section-sub {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.btn-edit {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}
.btn-edit:hover { border-color: var(--ink); color: var(--ink); }

/* Ticket grid */
.ticket-grid { display: flex; flex-direction: column; gap: 10px; }
.ticket-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  transition: all .3s;
}
.ticket-base {
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 8%, var(--paper)), var(--paper));
  border-color: color-mix(in oklab, var(--accent) 25%, var(--line));
}
.ticket-card.just-linked {
  animation: linkedPop .8s ease-out;
}
@keyframes linkedPop {
  0% { transform: scale(.96); box-shadow: 0 0 0 0 var(--accent); }
  50% { transform: scale(1.01); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 30%, transparent); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
.ticket-rank {
  font-family: var(--serif); font-weight: 600;
  font-size: 32px; line-height: 1;
  color: var(--ink-3);
  letter-spacing: 0;
}
.ticket-source {
  display: flex; align-items: center; gap: 14px;
}
.ticket-source-name {
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.ticket-source-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}
.ticket-num-pill {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em;
  background: var(--ink); color: var(--bg);
  padding: 8px 16px; border-radius: 999px;
  white-space: nowrap;
}

/* CTA-строка в "Твои номера" — мягкий призыв к привязке оставшихся соцсетей */
.ticket-cta-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border: 1px dashed color-mix(in oklab, var(--accent) 50%, var(--line-2));
  border-radius: 6px;
  background: color-mix(in oklab, var(--accent) 4%, var(--paper));
  color: var(--ink);
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}
.ticket-cta-row:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--paper));
  transform: translateY(-1px);
}
.ticket-cta-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 300;
  justify-self: center;
}
.ticket-cta-body { min-width: 0; }
.ticket-cta-name {
  font-size: 15px; font-weight: 500;
  color: var(--ink);
}
.ticket-cta-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.ticket-cta-arrow {
  font-family: var(--mono); font-size: 18px;
  color: var(--accent);
  transition: transform .2s ease;
}
.ticket-cta-row:hover .ticket-cta-arrow {
  transform: translateX(3px);
}

/* Social grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.social-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
}
.social-card:not(.soon):not(.linked):hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.25);
}
.social-card.linked {
  background: linear-gradient(135deg, color-mix(in oklab, var(--ok) 8%, var(--paper)), var(--paper));
  border-color: color-mix(in oklab, var(--ok) 35%, var(--line));
}
.social-card.soon {
  opacity: 0.55;
}
.social-card-row {
  display: flex; gap: 14px; align-items: center;
}
.social-card-info { flex: 1; min-width: 0; }
.social-card-name {
  font-size: 16px; font-weight: 500; color: var(--ink);
  margin-bottom: 4px;
}
.social-card-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.social-card-meta .ok { color: var(--ok); }
.bonus-pill {
  color: var(--accent);
  font-weight: 700;
}
.social-chip {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.25);
}

.btn-pill {
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.connect-btn {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.connect-btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
}
.linked-btn {
  background: color-mix(in oklab, var(--ok) 14%, transparent);
  color: var(--ok);
  border-color: color-mix(in oklab, var(--ok) 35%, transparent);
  cursor: default;
}
.soon-btn {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  cursor: not-allowed;
}
.linking-btn {
  background: var(--ink-2); color: var(--bg);
  border-color: var(--ink-2);
  cursor: wait;
}
.spinner {
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Profile */
.profile-grid {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 24px;
}
.profile-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.profile-row:last-child { border-bottom: none; }
.profile-row dt {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin: 0;
}
.profile-row dd {
  margin: 0; font-size: 16px; color: var(--ink);
}
.profile-row dd.mono {
  font-family: var(--mono); letter-spacing: 0.12em;
}
.profile-row dd .muted { color: var(--ink-3); font-size: 14px; }

.profile-edit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.cab-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.cab-foot a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .auth-card { padding: 28px 22px; }
  .auth-title { font-size: 30px; }
  .cab-hero { grid-template-columns: 1fr; gap: 24px; }
  .cab-score { flex-direction: row; gap: 16px; align-self: start; padding: 16px 20px; }
  .cab-score-num { font-size: 48px; }
  .cab-title { font-size: 38px; }
  .ticket-card { grid-template-columns: 40px 1fr; }
  .ticket-card .ticket-num-pill { grid-column: 2; justify-self: start; }
  .ticket-rank { font-size: 26px; }
  .profile-row { grid-template-columns: 1fr; gap: 6px; }
  .topbar-username { display: none; }
  .topbar-nav { display: none; }
  .cab-section-head { gap: 12px; }
  .cab-h2 { font-size: 22px; }
}


/* ====================== LEGAL PAGES ====================== */
.legal-page {
  min-height: 100vh;
  background: var(--bg);
}
.legal-main {
  padding: 56px 0 80px;
}
.legal-shell {
  max-width: 880px;
  padding: 0 24px;
}
.legal-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em;
  font-size: 32px; line-height: 1.15;
  text-transform: uppercase;
  margin: 12px 0 8px;
  color: var(--ink);
}
.legal-sub {
  font-size: 17px; color: var(--ink-2);
  margin: 0 0 40px;
  font-style: italic;
}
.legal-body {
  font-size: 15px; line-height: 1.75;
  color: var(--ink);
}
.legal-body h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 24px; letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 36px 0 14px;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  margin: 24px 0 10px;
  color: var(--ink);
}
.legal-body p { margin: 0 0 14px; color: var(--ink-2); }
.legal-body p strong { color: var(--ink); font-weight: 600; }
.legal-body ul {
  margin: 0 0 16px; padding-left: 22px;
  color: var(--ink-2);
}
.legal-body ul li { margin-bottom: 6px; }
.legal-body a {
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.legal-body a:hover { color: var(--accent); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-2);
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
}
.legal-table td:first-child {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  width: 60px;
}
.legal-table td:last-child {
  text-align: right;
  font-family: var(--mono); font-weight: 600;
  width: 60px;
}
.legal-table tr:hover td { background: var(--bg-2); }

.legal-pubdate {
  margin-top: 32px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

.legal-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 56px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal-nav a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border-bottom: 1px solid var(--line-2); /* override .legal-body a */
}
.legal-nav a:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.legal-nav a.active {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}

.legal-foot {
  display: flex; justify-content: space-between; gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.legal-req { line-height: 1.7; }
.legal-req strong { color: var(--ink); font-size: 14px; }
.legal-req a { color: var(--accent-ink); }
.legal-copy {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.6;
  text-align: right;
}

/* ====================== FOOTER LEGAL BLOCK (landing) ====================== */
.footer-legal {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.footer-legal-co {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: oklch(70% 0.01 80);
  line-height: 1.6;
}
.footer-legal-co strong {
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .legal-title { font-size: 32px; }
  .legal-body h2 { font-size: 20px; }
  .legal-table { font-size: 12px; }
  .legal-table th, .legal-table td { padding: 8px 8px; }
  .legal-foot { flex-direction: column; }
  .legal-copy { text-align: left; }
}

/* ====================== EMAIL-VERIFY BANNER ====================== */
.cab-banner-warn {
  display: flex; gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: color-mix(in oklab, #f5b800 14%, transparent);
  border: 1px solid color-mix(in oklab, #f5b800 35%, transparent);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px; line-height: 1.5;
}
.cab-banner-warn-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f5b800; color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.cab-banner-warn strong { font-weight: 600; }

/* ====================== CABINET MISC ====================== */
.cab-h-link {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.cab-h-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.cab-bottom-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}

/* Ticket-card как ссылка */
.ticket-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.ticket-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.25);
}
.ticket-pending {
  opacity: 0.85;
  cursor: default;
}
.ticket-pending .ticket-source-name { color: var(--ink); font-weight: 600; }

/* Слот 01 как форма «Участвовать» */
.ticket-cta-form {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 8%, var(--paper)),
    var(--paper));
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
}
.ticket-cta-form .ticket-source-name {
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-participate {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-participate:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px color-mix(in oklab, var(--accent-ink) 70%, transparent);
}

/* Empty state в истории заказов */
.ticket-empty {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  font-size: 14px; line-height: 1.5;
  color: var(--ink-2);
}
.ticket-empty-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px;
  color: var(--ink-3);
}
.ticket-empty strong { color: var(--ink); font-weight: 600; }

/* ====================== OAUTH-КНОПКИ НА /login ====================== */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.btn-oauth:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-oauth-glyph {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}

/* ====================== ORDERS LIST PAGES ====================== */
.orders-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.orders-summary-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
  text-align: center;
}
.orders-summary-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 38px; line-height: 1;
  color: var(--ink);
}
.orders-summary-lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

.orders-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.orders-table-head {
  display: grid;
  grid-template-columns: 160px 1fr 140px 32px;
  gap: 16px;
  padding: 14px 24px;
  background: var(--bg-2);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.orders-table-row {
  display: grid;
  grid-template-columns: 160px 1fr 140px 32px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background .12s;
}
.orders-table-row:last-child { border-bottom: none; }
.orders-table-row:hover { background: var(--bg-2); }
.orders-cell-date {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-2);
}
.orders-cell-source {
  font-size: 15px; font-weight: 500;
}
.orders-cell-ticket {
  font-family: var(--mono); font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: 0.06em;
}
.orders-cell-arrow {
  text-align: right;
  color: var(--ink-3);
  font-weight: 700;
}

.orders-empty {
  background: var(--paper);
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-2);
}
.orders-empty p { margin: 0 0 20px; font-size: 16px; }

/* Archive groups */
.archive-group { margin-bottom: 40px; }
.archive-group-past { opacity: 0.85; }
.archive-group-past .cab-h2 { color: var(--ink-2); }
.archive-group-past .orders-table { background: var(--bg-2); }

.archive-group-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.archive-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.archive-badge-live {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent-ink);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.archive-badge-past {
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--line-2);
}

/* ====================== ORDER DETAIL ====================== */
.order-detail-back {
  margin-bottom: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.order-detail-back a { color: var(--ink-2); }
.order-detail-back a:hover { color: var(--ink); }

.order-detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto 32px;
  box-shadow: 0 12px 40px -20px rgba(0,0,0,.2);
}
.order-detail-head {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.order-detail-ticket-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 56px; line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 12px 0 8px;
  text-transform: uppercase;
}
.order-detail-source {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.order-detail-grid { margin: 0; padding: 0; }
.order-detail-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.order-detail-row:last-child { border-bottom: none; }
.order-detail-row dt {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.order-detail-row dd {
  margin: 0; font-size: 15px; color: var(--ink);
}
.order-detail-row dd.mono {
  font-family: var(--mono); letter-spacing: 0.08em;
  font-weight: 600; color: var(--accent-ink);
}
.order-status-paid { color: var(--ok); font-weight: 600; }
.order-detail-download {
  color: var(--accent-ink);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.order-detail-download:hover { color: var(--accent); }
.order-detail-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-2);
  border-radius: 6px;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 700px) {
  .orders-summary { grid-template-columns: 1fr; }
  .orders-table-head { display: none; }
  .orders-table-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 14px 16px;
  }
  .orders-cell-date {
    grid-column: 1 / -1;
    font-size: 10px;
  }
  .orders-cell-source { grid-column: 1; }
  .orders-cell-ticket { grid-column: 2; text-align: right; }
  .orders-cell-arrow { display: none; }

  .order-detail-card { padding: 24px 18px; }
  .order-detail-ticket-num { font-size: 42px; }
  .order-detail-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ====================== «ПРОКАЧАЙ ШАНСЫ» (на лендинге, справа в секции form) ====================== */
.chances-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.chances-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 280px;
  background: radial-gradient(circle at top right,
    color-mix(in oklab, var(--accent) 18%, transparent) 0%,
    transparent 60%);
  pointer-events: none;
}

.chances-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
  position: relative;
  z-index: 1;
}
.chances-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: chances-pulse 1.6s infinite;
}
@keyframes chances-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
}

.chances-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1;
  margin: 14px 0 12px;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.chances-title em {
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 600;
}
.chances-sub {
  margin: 0 0 22px;
  color: var(--ink-2); font-size: 14px; line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Прогресс-бар */
.chances-progress {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.chances-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.chances-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 33.33%;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
  border-radius: 999px;
  animation: chances-fill 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes chances-fill {
  0%   { width: 33.33%; }
  80%  { width: 100%; }
  92%  { width: 100%; }
  100% { width: 33.33%; }
}
.chances-progress-thumb {
  position: absolute;
  top: 50%; left: 33.33%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px -2px color-mix(in oklab, var(--accent) 50%, transparent);
  animation: chances-thumb 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes chances-thumb {
  0%   { left: 33.33%; }
  80%  { left: 100%; }
  92%  { left: 100%; }
  100% { left: 33.33%; }
}

.chances-progress-meta {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.chances-progress-meta strong {
  color: var(--accent-ink);
  font-weight: 700;
}
.chances-progress-grow {
  color: var(--accent-ink);
  font-weight: 600;
}

/* Список тикетов-шансов */
.chances-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.chances-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all .25s;
}
.chances-item-clickable {
  cursor: pointer;
}
.chances-item-clickable:hover {
  border-color: rgba(31, 94, 255, .36);
  box-shadow: 0 12px 28px rgba(16, 38, 80, .08);
  transform: translateY(-1px);
}
.chances-item-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}
.chances-item-clickable .chances-item-num,
.chances-item-clickable .chances-item-body,
.chances-item-clickable .chances-item-tag {
  position: relative;
  z-index: 1;
}
.chances-item-num {
  font-size: 18px; font-weight: 600;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 0;
}
.chances-item-name {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.chances-item-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.chances-item-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.chances-item .chances-chip {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
}

/* Активный (за регу) */
.chances-item-active {
  background: color-mix(in oklab, var(--ok) 7%, var(--paper));
  border-color: color-mix(in oklab, var(--ok) 35%, var(--line));
}
.chances-item-active .chances-item-num {
  color: var(--ok);
}
.chances-item-tag-on {
  background: color-mix(in oklab, var(--ok) 18%, transparent);
  color: var(--ok);
  border-color: color-mix(in oklab, var(--ok) 38%, transparent);
}

/* Анимация: волна подсветки идёт сверху вниз (с задержкой по индексу).
   Применяется ТОЛЬКО к доступным сейчас карточкам (не active и не soon). */
.chances-item:not(.chances-item-active):not(.chances-item-soon) {
  animation: chances-glow 6s ease-in-out infinite;
}
.chances-item:not(.chances-item-active):not(.chances-item-soon):nth-child(2) { animation-delay: 0.6s; }
.chances-item:not(.chances-item-active):not(.chances-item-soon):nth-child(3) { animation-delay: 2.6s; }

/* «Скоро» — приглушённый стиль, без анимации */
.chances-item-soon {
  opacity: 0.55;
  background: var(--bg-2);
  border-style: dashed;
}
.chances-item-soon .chances-item-num,
.chances-item-soon .chances-item-name {
  color: var(--ink-3);
}
.chances-item-soon .chances-chip {
  filter: saturate(0.5);
}
.chances-item-tag-soon {
  background: transparent !important;
  color: var(--ink-3) !important;
  border: 1px dashed var(--line-2) !important;
  font-size: 9px !important;
  letter-spacing: 0.18em;
}

@keyframes chances-glow {
  0%, 8%, 100% {
    background: transparent;
    border-color: var(--line);
    transform: translateX(0);
  }
  3% {
    background: color-mix(in oklab, var(--accent) 8%, var(--paper));
    border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
    transform: translateX(2px);
  }
}

/* Футер */
.chances-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.chances-foot-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.chances-foot-link:hover {
  border-color: rgba(31, 94, 255, .28);
  box-shadow: 0 14px 32px rgba(16, 38, 80, .08);
  transform: translateY(-1px);
}
.chances-foot-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
  position: relative;
}
.chances-foot-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--accent) 60%, transparent);
  animation: chances-ring 2s ease-out infinite;
}
@keyframes chances-ring {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
.chances-foot strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 900px) {
  .chances-card { padding: 24px 20px; }
  .chances-title { font-size: 22px; }
  .chances-item { grid-template-columns: 32px 1fr auto; padding: 8px 12px; }
  .chances-item-num { font-size: 15px; }
  .chances-foot { padding: 14px; }
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .chances-progress-fill,
  .chances-progress-thumb,
  .chances-item,
  .chances-tag-dot,
  .chances-foot-icon::after {
    animation: none !important;
  }
  .chances-progress-fill { width: 100%; }
  .chances-progress-thumb { left: 100%; }
}

/* ====================== CREATOR / TRUST BLOCK ====================== */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.creator-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.creator-card:not(.creator-card-static):hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.25);
}
.creator-card-static { cursor: default; }

.creator-card-platform {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.creator-card-glyph {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

.creator-card-num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.creator-card-num sup {
  font-size: 0.5em; font-weight: 600;
  vertical-align: top;
  margin-left: 2px;
  position: relative;
  top: 0.4em;
}
.creator-card-lbl {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.creator-card-link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: lowercase;
  color: var(--accent-ink);
  display: flex; justify-content: space-between; align-items: center;
}
.creator-card-link span {
  font-weight: 700;
  transition: transform .2s;
}
.creator-card:hover .creator-card-link span { transform: translateX(4px); }

.creator-foot {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.creator-foot-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.creator-foot strong {
  color: var(--ink); font-weight: 600;
  margin-right: 4px;
}

@media (max-width: 1000px) {
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .creator-grid { grid-template-columns: 1fr; gap: 10px; }
  .creator-card { padding: 22px 20px; }
  .creator-card-num { font-size: 42px; }
}

/* ========== BMW ACTION NUMBERS SECTION ========== */
.bmw-action-section {
  position: relative;
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(54px, 7vw, 96px);
}

.section-anchor {
  position: absolute;
  top: -84px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.bmw-action-grid {
  display: grid;
  grid-template-columns: minmax(320px, .98fr) minmax(520px, 1fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: start;
}

.bmw-action-copy {
  padding-top: 18px;
}

.bmw-action-copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.55vw, 64px);
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 18px 0 24px;
  color: var(--ink);
}

.bmw-action-copy h2 em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--accent);
}

.bmw-action-title-steps {
  display: grid;
  gap: 7px;
  margin: 14px 0 12px;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.02;
  color: var(--ink);
}

.bmw-action-title-steps span {
  display: block;
}

.bmw-action-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.bmw-action-cta {
  margin-top: 42px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.bmw-action-cta:hover {
  background: #0b3d91;
  border-color: #0b3d91;
}

.bmw-action-card {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(31, 94, 255, .16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 96% 0%, rgba(31, 94, 255, .18), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,253,.9));
  box-shadow: 0 32px 90px rgba(18, 25, 38, .11);
}

.bmw-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 94, 255, .35);
  background: rgba(31, 94, 255, .08);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bmw-action-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.bmw-action-card h3 {
  margin: 18px 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.bmw-action-card h3 em {
  font-style: normal;
  color: var(--accent);
}

.bmw-action-card-sub {
  max-width: 620px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.bmw-action-progress {
  position: relative;
  height: 8px;
  margin-top: 28px;
  border-radius: 999px;
  background: #e5ebf3;
  overflow: hidden;
}

.bmw-action-progress-fill {
  width: 96%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #8f8a86 72%, #d9a441);
}

.bmw-action-progress-dot {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,255,255,.8);
  transform: translateY(-50%);
}

.bmw-action-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bmw-action-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.bmw-action-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.84);
}

.bmw-action-row-clickable {
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bmw-action-row-clickable:hover {
  border-color: rgba(31, 94, 255, .42);
  box-shadow: 0 14px 34px rgba(16, 38, 80, .08);
  transform: translateY(-1px);
}

.bmw-action-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.bmw-action-row-clickable .bmw-action-num,
.bmw-action-row-clickable .bmw-action-body,
.bmw-action-row-clickable .bmw-action-badge {
  position: relative;
  z-index: 1;
}

.bmw-action-row.active {
  border-color: rgba(31, 94, 255, .28);
  background: rgba(31, 94, 255, .08);
}

.bmw-action-row.soon {
  opacity: .46;
  border-style: dashed;
  background: rgba(255,255,255,.5);
}

.bmw-action-num {
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.bmw-action-row.active .bmw-action-num {
  color: #168253;
}

.bmw-action-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.bmw-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.bmw-action-meta {
  margin-top: 4px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bmw-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(31, 94, 255, .28);
  border-radius: 999px;
  background: rgba(31, 94, 255, .08);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.bmw-action-row.soon .bmw-action-badge {
  border-color: var(--line-2);
  background: #fff;
  color: var(--ink-3);
  letter-spacing: .14em;
}

.bmw-action-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(31, 94, 255, .12);
  border-radius: 10px;
  background: #eaf0f7;
}

.bmw-action-note-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bmw-action-note-link:hover {
  border-color: rgba(31, 94, 255, .28);
  box-shadow: 0 16px 38px rgba(16, 38, 80, .08);
  transform: translateY(-1px);
}

.bmw-action-note-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
}

.bmw-action-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 800;
}

.bmw-action-note span {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .bmw-action-grid {
    grid-template-columns: 1fr;
  }

  .bmw-action-copy {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .bmw-action-section {
    padding-top: 56px;
  }

  .bmw-action-card {
    padding: 20px;
    border-radius: 24px;
  }

  .bmw-action-copy h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .bmw-action-title-steps {
    gap: 5px;
    margin: 10px 0;
    font-size: clamp(20px, 7.2vw, 28px);
  }

  .bmw-action-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .bmw-action-badge {
    grid-column: 2;
    justify-self: start;
    height: 24px;
    margin-top: -2px;
  }

  .bmw-action-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bmw-action-note {
    grid-template-columns: 1fr;
  }
}

/* ========== BMW X1 FINAL CASCADE ========== */
:root {
  --bg: #f6f8fb;
  --bg-2: #edf2f7;
  --paper: #ffffff;
  --ink: #121926;
  --ink-2: #435064;
  --ink-3: #7c8798;
  --line: #dbe3ee;
  --line-2: #c8d3e0;
  --accent: #1f5eff;
  --accent-ink: #0b3d91;
  --gold: #d9a441;
  --ok: #168253;
  --err: #d73b3e;
  --serif: 'Russo One', 'Arial Black', Impact, sans-serif;
  --sans: 'Manrope', system-ui, Arial, sans-serif;
}

html,
body,
.auth-page,
.cabinet-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(31, 94, 255, .14), transparent 30vw),
    radial-gradient(circle at 10% 0%, rgba(217, 164, 65, .12), transparent 26vw),
    linear-gradient(180deg, #fbfcff 0%, #eef3f9 48%, #f7f9fc 100%);
  color: var(--ink);
  font-family: var(--sans);
}

.serif,
.hero-headline,
.section-head h2,
.cab-title,
.cab-h2,
.auth-title {
  font-family: var(--serif);
  letter-spacing: 0;
}

.topbar {
  background: rgba(255,255,255,.84);
  border-bottom: 1px solid rgba(18,25,38,.08);
  box-shadow: 0 18px 44px rgba(18,25,38,.06);
}

.topbar-inner { height: 76px; }
.topbar-nav a {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.btn-accent,
.btn-submit-accent,
.btn-auth-solid,
.connect-btn {
  background: linear-gradient(135deg, #1f5eff 0%, #0f2e69 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 42px rgba(31,94,255,.22);
}

.btn-accent:hover,
.btn-submit-accent:hover,
.btn-auth-solid:hover,
.connect-btn:hover {
  background: linear-gradient(135deg, #0f2e69 0%, #071831 100%);
  transform: translateY(-2px);
}

.btn-auth-ghost,
.btn-secondary,
.soon-btn {
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line-2);
  color: var(--ink);
}

.hero { padding: 72px 0 8px; }
.hero-grid {
  grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
}
.hero-headline {
  font-size: clamp(42px, 6vw, 92px);
  line-height: .94;
}
.hero-headline em {
  color: var(--accent);
  text-shadow: none;
}
.hero-sub {
  max-width: 560px;
  font-size: clamp(17px, 1.35vw, 22px);
  color: var(--ink-2);
}
.hero-stage {
  min-height: 520px;
  border: 1px solid rgba(18,25,38,.08);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(226,234,244,.72)),
    radial-gradient(circle at 50% 80%, rgba(31,94,255,.16), transparent 36%);
  box-shadow: 0 40px 100px rgba(18,25,38,.13);
  overflow: hidden;
}
.hero-stage::before {
  content: "BMW X1";
  position: absolute;
  left: 30px;
  top: 26px;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: .18em;
  color: rgba(18,25,38,.28);
}
.hero-stage-img {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(760px, 82%);
  max-width: none;
  margin: 0;
  border-radius: 22px;
  filter: drop-shadow(0 28px 34px rgba(18,25,38,.22));
  transform: translateX(-50%);
}
.hero-metrics,
.step,
.chances-card,
.spec-photo,
.spec-list,
.faq-item,
.creator-card,
.auth-card,
.cab-section,
.cab-progress,
.cab-score,
.orders-summary-card,
.order-detail-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(18,25,38,.1);
  box-shadow: 0 24px 70px rgba(18,25,38,.08);
}
.hero-metrics { border-radius: 24px; }
.countdown-strip {
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(17,24,39,.18);
}
.countdown-strip .label,
.countdown-strip .unit,
.draw-info { color: rgba(255,255,255,.7); }
.countdown-cell {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: .98;
}
.step,
.chances-card,
.spec-photo,
.spec-list,
.gphoto,
.auth-card,
.cab-hero,
.cab-section {
  border-radius: 28px;
}
.step-num,
.index,
.eyebrow,
.chances-tag,
.chances-item-num,
.spec-row dt,
.creator-card-lbl {
  color: var(--accent-ink);
}
.spec-photo,
.gphoto { overflow: hidden; }
.spec-photo img,
.gphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.chances-progress-fill,
.cab-progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.chances-item,
.ticket-card,
.orders-row,
.archive-group,
.social-card {
  background: rgba(255,255,255,.82);
  border-color: rgba(18,25,38,.1);
}
.chances-item-active,
.social-card.linked {
  background: rgba(31,94,255,.08);
  border-color: rgba(31,94,255,.22);
}
.chances-item-tag,
.bonus-pill,
.ticket-num-pill,
.order-ticket-range {
  background: rgba(31,94,255,.09);
  border-color: rgba(31,94,255,.25);
  color: var(--accent-ink);
}
.field-input,
.field-select,
.field textarea {
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.field-input:focus,
.field-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31,94,255,.12);
}
.cab-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(227,234,244,.66)),
    radial-gradient(circle at right top, rgba(31,94,255,.16), transparent 34%);
  border: 1px solid rgba(18,25,38,.08);
  padding: clamp(28px, 4vw, 54px);
}
.cab-title em {
  color: var(--accent);
  font-style: normal;
}
.footer {
  background:
    radial-gradient(circle at 80% 0%, rgba(31,94,255,.25), transparent 34vw),
    linear-gradient(180deg, #101827 0%, #07111f 100%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 360px; }
  .hero-stage-img {
    width: 92%;
    bottom: 32px;
    margin: 0;
  }
  .topbar-inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .topbar-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .auth-cta-pair,
  .topbar-user { margin-left: auto; }
}

@media (max-width: 560px) {
  .hero { padding-top: 34px; }
  .hero-headline { font-size: clamp(38px, 13vw, 56px); }
  .btn-lg,
  .btn-submit-accent {
    width: 100%;
    justify-content: center;
  }
  .gallery-8 { grid-template-columns: 1fr; }
}

/* ========== FINAL LAYOUT QA FIXES ========== */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.38fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: start;
}

.faq-list {
  border: 1px solid rgba(18, 25, 38, .1);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 28px 80px rgba(18,25,38,.09);
  overflow: hidden;
}

.faq-item {
  border: 0;
  border-bottom: 1px solid rgba(18,25,38,.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  min-height: 82px;
  padding: 0 clamp(22px, 2.4vw, 34px);
  gap: 24px;
}

.faq-q span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-a-inner {
  max-width: 720px;
  padding: 0 clamp(22px, 2.4vw, 34px) 30px;
}

@media (max-width: 980px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .faq-list {
    border-radius: 20px;
  }

  .faq-q {
    min-height: 72px;
    padding: 0 18px;
    font-size: 15px;
  }

  .faq-q .toggle {
    width: 30px;
    height: 30px;
    margin-left: 0;
  }

  .faq-a-inner {
    padding: 0 18px 24px;
    font-size: 15px;
  }
}

/* ========== TRUST BLOCK + FINAL CTA ========== */
.trust-section {
  padding-top: clamp(64px, 8vw, 118px);
  padding-bottom: clamp(72px, 8vw, 124px);
}

.trust-panel {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: stretch;
  padding: clamp(30px, 4.2vw, 58px);
  border: 1px solid rgba(18, 25, 38, .1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 12%, rgba(31, 94, 255, .13), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(236,242,249,.72));
  box-shadow: 0 36px 90px rgba(18, 25, 38, .09);
}

.trust-panel h2 {
  max-width: 620px;
  margin: 14px 0 22px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: .96;
  text-transform: uppercase;
  color: var(--ink);
}

.trust-panel h2 em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--accent);
}

.trust-lead {
  max-width: 600px;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.trust-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid rgba(18, 25, 38, .1);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}

.trust-card-primary {
  background:
    linear-gradient(145deg, rgba(31,94,255,.12), rgba(255,255,255,.78));
  border-color: rgba(31,94,255,.22);
}

.trust-card-soft {
  background:
    linear-gradient(145deg, rgba(217,164,65,.14), rgba(255,255,255,.78));
  border-color: rgba(217,164,65,.24);
}

.trust-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--accent-ink);
}

.trust-card strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}

.trust-card span:last-child {
  display: block;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.48;
}

.final-cta-section {
  padding: clamp(54px, 7vw, 96px) 0 clamp(72px, 8vw, 120px);
}

.final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(160px, .36fr) minmax(320px, 1fr) auto;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: 320px;
  padding: clamp(30px, 5vw, 68px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 10%, rgba(255,255,255,.2), transparent 30%),
    linear-gradient(135deg, #1f5eff 0%, #0b3d91 56%, #071827 100%);
  color: #fff;
  box-shadow: 0 42px 110px rgba(15, 46, 105, .28);
}

.final-cta::after {
  content: "";
  position: absolute;
  right: clamp(-80px, -5vw, -28px);
  bottom: clamp(-90px, -7vw, -34px);
  width: clamp(260px, 32vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}

.final-cta-mark {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  align-content: center;
  width: clamp(128px, 14vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.12);
  text-align: center;
}

.final-cta-mark span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.final-cta-mark strong {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 82px);
  line-height: .9;
}

.final-cta-copy,
.final-cta-actions {
  position: relative;
  z-index: 1;
}

.final-cta .index {
  color: rgba(255,255,255,.72);
}

.final-cta h2 {
  max-width: 720px;
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 72px);
  line-height: .95;
  text-transform: uppercase;
}

.final-cta p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.final-cta .btn-accent {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.final-cta .btn-accent:hover {
  background: #eef4ff;
  color: var(--ink);
}

.final-cta .btn-arrow {
  background: var(--accent);
  color: #fff;
}

.final-cta-link {
  color: rgba(255,255,255,.78);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.final-cta-link:hover {
  color: #fff;
}

.footer-top {
  margin-top: 0;
}

@media (max-width: 980px) {
  .trust-panel,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .trust-panel,
  .final-cta {
    border-radius: 24px;
    padding: 24px;
  }

  .trust-board {
    grid-template-columns: 1fr;
  }

  .trust-card {
    min-height: auto;
  }

  .final-cta {
    min-height: auto;
  }

  .final-cta-mark {
    width: 118px;
  }

  .final-cta-actions,
  .final-cta .btn-lg {
    width: 100%;
  }

  .final-cta-link {
    width: 100%;
    text-align: center;
  }
}

/* ========== FINAL HERO CUTOUT ========== */
.hero {
  position: relative;
  padding: clamp(54px, 6vw, 88px) 0 18px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 14%, rgba(31, 94, 255, .15), transparent 28vw),
    linear-gradient(90deg, rgba(255,255,255,.2), rgba(226,234,244,.54));
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.hero-grid {
  grid-template-columns: minmax(360px, .72fr) minmax(560px, 1.28fr);
  gap: clamp(36px, 5.5vw, 88px);
  align-items: center;
}

.hero-grid > div:first-child {
  position: relative;
  z-index: 3;
  padding-top: 10px;
}

.hero-headline {
  max-width: 640px;
  font-size: clamp(54px, 6.6vw, 112px);
  line-height: .9;
}

.hero-sub {
  max-width: 590px;
  font-size: clamp(17px, 1.32vw, 22px);
}

.hero-stage-cutout {
  isolation: isolate;
  min-height: clamp(500px, 42vw, 650px);
  margin-left: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-stage-cutout::before,
.hero-stage-cutout::after {
  display: none;
}

.hero-backplate {
  position: absolute;
  inset: 6% 0 13% 20%;
  z-index: 0;
  border: 1px solid rgba(18,25,38,.08);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(236,243,250,.72)),
    radial-gradient(circle at 82% 24%, rgba(31,94,255,.15), transparent 34%);
  box-shadow: 0 42px 120px rgba(18,25,38,.12);
}

.hero-accent-slab {
  position: absolute;
  left: 28%;
  top: 3%;
  bottom: 17%;
  width: min(220px, 28%);
  z-index: 1;
  background: linear-gradient(180deg, #08447a 0%, #1f5eff 100%);
  box-shadow:
    0 32px 80px rgba(31,94,255,.28),
    inset 0 0 0 1px rgba(255,255,255,.14);
}

.hero-stage-img-cutout {
  position: absolute;
  z-index: 3;
  left: auto;
  right: -5%;
  bottom: 12%;
  width: min(850px, 102%);
  max-width: none;
  border-radius: 0;
  filter: drop-shadow(0 34px 34px rgba(18,25,38,.24));
  transform: none;
}

.hero-stage-floor {
  z-index: 2;
  left: 16%;
  right: 2%;
  bottom: 11%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(18,25,38,.22), rgba(18,25,38,0) 66%);
  filter: blur(5px);
}

.hero-stage-caption {
  position: absolute;
  z-index: 4;
  left: 18%;
  bottom: 4%;
  display: grid;
  gap: 4px;
}

.hero-stage-caption strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 3vw, 48px);
  line-height: .9;
  text-transform: uppercase;
}

.hero-stage-caption span {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-stage-index {
  position: absolute;
  right: 0;
  bottom: 4%;
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 18px;
  color: rgba(18,25,38,.34);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
}

.hero-stage-index strong {
  color: var(--ink);
  font-size: clamp(44px, 4vw, 68px);
  font-weight: 500;
}

.hero-metrics {
  margin-top: clamp(12px, 2.2vw, 28px);
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-stage-cutout {
    min-height: 480px;
    margin-left: 0;
  }

  .hero-backplate {
    inset: 4% 0 14% 0;
  }

  .hero-accent-slab {
    left: 18%;
  }

  .hero-stage-img-cutout {
    right: -2%;
    width: min(900px, 106%);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 30px;
  }

  .hero-headline {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-stage-cutout {
    min-height: 320px;
    margin-top: 4px;
  }

  .hero-backplate {
    inset: 3% -8px 16% 22px;
    border-radius: 22px;
  }

  .hero-accent-slab {
    left: 17%;
    top: 0;
    bottom: 18%;
    width: 34%;
  }

  .hero-stage-img-cutout {
    right: -38%;
    bottom: 17%;
    width: 150%;
  }

  .hero-stage-caption {
    left: 24px;
    bottom: 3px;
  }

  .hero-stage-caption strong {
    font-size: 28px;
  }

  .hero-stage-caption span {
    max-width: 230px;
    font-size: 9px;
    line-height: 1.4;
  }

  .hero-stage-index {
    display: none;
  }

  .hero-stage-floor {
    left: 8%;
    right: 0;
    bottom: 17%;
  }
}

/* ========== FINAL COMPOSITION QA ========== */
.hero-backplate {
  display: none;
}

.hero-stage-cutout {
  min-height: clamp(500px, 40vw, 620px);
  margin-left: 0;
  overflow: visible;
}

.hero-accent-slab {
  left: 22%;
  top: 5%;
  bottom: 17%;
  width: min(190px, 23%);
  border-radius: 0;
  background: linear-gradient(180deg, #08447a 0%, #1d62ff 100%);
  box-shadow:
    0 34px 78px rgba(31, 94, 255, .24),
    inset 0 0 0 1px rgba(255,255,255,.16);
}

.hero-stage-img-cutout {
  right: -4%;
  bottom: 13%;
  width: min(860px, 102%);
}

.hero-stage-caption {
  left: 13%;
}

.hero-stage-index {
  right: 2%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin-top: clamp(22px, 2.4vw, 34px);
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(18,25,38,.08);
  border-radius: 0;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 70px rgba(18,25,38,.08);
}

.hero-metric {
  min-width: 0;
  min-height: 96px;
  padding: 22px clamp(20px, 2vw, 30px) 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

.hero-metric + .hero-metric {
  padding-left: clamp(20px, 2vw, 30px);
  border-left: 1px solid rgba(18,25,38,.1);
}

.hero-metric-label {
  margin: 0 0 9px;
  color: #718096;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .18em;
  white-space: normal;
}

.hero-metric-value {
  display: flex;
  align-items: baseline;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1;
  white-space: nowrap;
}

.hero-metric-value sup {
  flex: 0 1 auto;
  max-width: 90px;
  margin-left: 6px;
  overflow-wrap: normal;
  white-space: normal;
  line-height: 1.05;
}

.hero-metric-value--text {
  font-size: clamp(24px, 2vw, 32px);
  text-transform: uppercase;
}

#steps .section-head {
  margin-bottom: clamp(30px, 4vw, 52px) !important;
}

#steps .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
  border: 0;
}

#steps .step {
  min-width: 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid rgba(18,25,38,.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#steps .step + .step {
  border-left: 0;
}

#steps .step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}

#steps .step h3 {
  max-width: 320px;
  margin: 20px 0 12px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.04;
}

#steps .step p {
  max-width: 390px;
  color: #526072;
  font-size: 16px;
  line-height: 1.6;
}

#steps .step-meta {
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

@media (max-width: 980px) {
  .hero-stage-cutout {
    min-height: 430px;
  }

  .hero-accent-slab {
    left: 17%;
    width: min(180px, 28%);
  }

  .hero-stage-img-cutout {
    right: -8%;
    width: min(800px, 116%);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metric:nth-child(3) {
    border-left: 0;
  }

  .hero-metric:nth-child(n + 3) {
    border-top: 1px solid rgba(18,25,38,.1);
  }
}

@media (max-width: 680px) {
  .hero-stage-cutout {
    min-height: 330px;
  }

  .hero-accent-slab {
    left: 16%;
    top: 1%;
    bottom: 22%;
    width: 32%;
  }

  .hero-stage-img-cutout {
    right: -34%;
    bottom: 19%;
    width: 145%;
  }

  .hero-stage-caption {
    left: 4px;
    bottom: 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .hero-metric {
    min-height: 86px;
    padding: 18px 16px 16px;
  }

  .hero-metric + .hero-metric {
    padding-left: 16px;
  }

  .hero-metric-value {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-metric-value--text {
    font-size: clamp(20px, 6.4vw, 28px);
  }

  .hero-metric-value sup {
    max-width: 68px;
    font-size: .42em;
  }

  #steps .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #steps .step {
    padding-top: 22px;
  }
}

/* ========== HERO COMPOSITION REBUILD ========== */
.hero {
  padding-top: clamp(60px, 6.2vw, 92px);
}

.hero-grid {
  grid-template-columns: minmax(380px, .76fr) minmax(640px, 1.24fr);
  gap: clamp(58px, 7vw, 112px);
  align-items: center;
}

.hero-grid > div:first-child {
  max-width: 560px;
}

.hero-headline {
  max-width: 560px;
  font-size: clamp(50px, 5.2vw, 86px);
  line-height: .94;
  letter-spacing: 0;
}

.hero-headline em {
  display: inline-block;
  color: var(--accent);
}

.hero-sub {
  max-width: 510px;
  margin-top: 24px;
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.48;
}

.hero-stage-cutout {
  min-height: clamp(460px, 37vw, 570px);
}

.hero-accent-slab {
  left: 57%;
  top: 8%;
  bottom: 20%;
  width: min(150px, 18%);
  opacity: .96;
}

.hero-stage-img-cutout {
  right: -8%;
  bottom: 13%;
  width: min(790px, 94%);
}

.hero-stage-caption {
  left: 22%;
  bottom: 5%;
}

.hero-stage-index {
  right: 6%;
  bottom: 7%;
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(340px, .82fr) minmax(520px, 1.18fr);
    gap: clamp(34px, 5vw, 64px);
  }

  .hero-headline {
    font-size: clamp(48px, 5.8vw, 72px);
  }

  .hero-stage-img-cutout {
    right: -10%;
    width: min(720px, 102%);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-grid > div:first-child {
    max-width: 680px;
  }

  .hero-headline {
    max-width: 620px;
    font-size: clamp(50px, 10vw, 78px);
  }

  .hero-stage-cutout {
    min-height: 420px;
  }

  .hero-accent-slab {
    left: 54%;
    top: 6%;
    bottom: 20%;
    width: 18%;
  }

  .hero-stage-img-cutout {
    right: -5%;
    width: min(820px, 106%);
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 32px;
  }

  .hero-headline {
    max-width: 360px;
    font-size: clamp(48px, 14.2vw, 62px);
    line-height: .93;
  }

  .hero-sub {
    max-width: 340px;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-stage-cutout {
    min-height: 305px;
  }

  .hero-accent-slab {
    left: 52%;
    top: 0;
    bottom: 22%;
    width: 24%;
  }

  .hero-stage-img-cutout {
    right: -46%;
    bottom: 18%;
    width: 145%;
  }

  .hero-stage-caption {
    left: 0;
    bottom: 0;
  }
}

/* ========== HERO SIDE CAR REFERENCE ========== */
.hero {
  min-height: min(760px, calc(100svh - 24px));
  padding: clamp(48px, 5vw, 76px) 0 22px;
  background:
    radial-gradient(circle at 72% 38%, rgba(255,255,255,.34), transparent 32vw),
    linear-gradient(135deg, #a8afb3 0%, #d3d8dc 44%, #b8c0c6 100%);
}

.hero::before {
  display: none;
}

.hero .shell {
  max-width: 100%;
  padding-left: clamp(44px, 5.2vw, 88px);
  padding-right: 0;
}

.hero-grid {
  min-height: clamp(520px, 54vw, 660px);
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-grid > div:first-child {
  max-width: 430px;
  z-index: 4;
}

.hero-headline {
  max-width: 390px;
  color: rgba(255,255,255,.96);
  font-size: clamp(58px, 8.2vw, 128px);
  line-height: .82;
  letter-spacing: 0;
  text-shadow: 0 16px 42px rgba(24,31,36,.18);
}

.hero-headline em {
  display: block;
  color: rgba(255,255,255,.96);
}

.hero-sub {
  max-width: 360px;
  margin-top: 22px;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.38;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .btn-accent {
  background: #14171a;
  box-shadow: 0 22px 46px rgba(14,18,23,.22);
}

.hero-figure {
  position: relative;
  min-width: 0;
  height: 100%;
}

.hero-stage-cutout {
  position: absolute;
  inset: 0;
  min-height: 0;
  margin: 0;
  overflow: visible;
}

.hero-backplate,
.hero-accent-slab,
.hero-stage-caption,
.hero-stage-index {
  display: none !important;
}

.hero-stage-img-cutout {
  right: -16vw;
  bottom: 3%;
  width: min(1180px, 92vw);
  max-width: none;
  filter: drop-shadow(0 32px 38px rgba(12,16,20,.28));
}

.hero-stage-floor {
  left: 14%;
  right: -8vw;
  bottom: 2%;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(10,14,18,.34), rgba(10,14,18,0) 70%);
  filter: blur(8px);
}

.hero-metrics {
  position: relative;
  z-index: 5;
  width: calc(100% - clamp(44px, 5.2vw, 88px));
  margin-top: 0;
  background: rgba(245,247,249,.88);
}

@media (max-width: 1100px) {
  .hero .shell {
    padding-left: 32px;
  }

  .hero-grid {
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  }

  .hero-headline {
    font-size: clamp(52px, 7.4vw, 86px);
  }

  .hero-stage-img-cutout {
    right: -30vw;
    width: min(1050px, 108vw);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero .shell {
    padding: 0 20px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-grid > div:first-child {
    max-width: 350px;
  }

  .hero-headline {
    max-width: 340px;
    font-size: clamp(58px, 18vw, 76px);
  }

  .hero-sub {
    max-width: 330px;
    font-size: 17px;
    line-height: 1.46;
  }

  .hero-figure {
    height: 290px;
    margin: 0 -20px;
    overflow: hidden;
  }

  .hero-stage-cutout {
    inset: 0;
  }

  .hero-stage-img-cutout {
    right: -106%;
    bottom: 4%;
    width: 210%;
  }

  .hero-stage-floor {
    left: 4%;
    right: -44%;
    bottom: 2%;
  }

  .hero-metrics {
    width: 100%;
  }
}

/* ========== HERO SIDE CAR OPTICAL TUNING ========== */
@media (min-width: 761px) {
  .hero-headline {
    max-width: 540px;
    font-size: clamp(54px, 6vw, 88px);
    line-height: .9;
  }

  .hero-sub {
    max-width: 420px;
  }

  .hero-stage-img-cutout {
    right: -24vw;
    bottom: 6%;
    width: min(1120px, 86vw);
  }

  .hero-stage-floor {
    right: -22vw;
    bottom: 5%;
  }
}

@media (min-width: 1280px) {
  .hero-stage-img-cutout {
    right: -21vw;
    width: min(1180px, 84vw);
  }
}

/* ========== HERO COMMON VIEWPORTS POSITIONING ========== */
@media (min-width: 1280px) and (max-width: 1599px) {
  .hero-stage-img-cutout {
    right: -18vw;
    width: min(1260px, 90vw);
  }

  .hero-stage-floor {
    right: -16vw;
  }
}

@media (min-width: 1600px) {
  .hero .shell {
    padding-left: clamp(76px, 6vw, 116px);
  }

  .hero-grid {
    grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
    gap: clamp(20px, 2.8vw, 54px);
  }

  .hero-stage-img-cutout {
    right: -8vw;
    bottom: 6%;
    width: min(1280px, 72vw);
  }

  .hero-stage-floor {
    right: -6vw;
  }
}

@media (min-width: 1900px) {
  .hero-stage-img-cutout {
    right: -6vw;
    width: min(1340px, 70vw);
  }
}

/* Keep laptop/standard desktop widths from colliding with the text column. */
@media (min-width: 1280px) and (max-width: 1599px) {
  .hero-stage-img-cutout {
    right: -21vw;
    width: min(1180px, 84vw);
  }

  .hero-stage-floor {
    right: -19vw;
  }
}

/* ========== HERO TITLE EMPHASIS ========== */
.hero-title-model {
  display: inline-block;
  color: #1f5eff;
  background: linear-gradient(135deg, #1f5eff 0%, #0f2e69 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* ========== HERO CAR FULL ROOF CROP FIX ========== */
@media (min-width: 761px) {
  .hero-stage-img-cutout {
    bottom: 0;
    right: -14vw;
    width: min(1080px, 77vw);
  }

  .hero-stage-floor {
    bottom: 0;
    right: -12vw;
  }
}

@media (min-width: 1600px) {
  .hero-stage-img-cutout {
    right: -5vw;
    width: min(1160px, 62vw);
  }

  .hero-stage-floor {
    right: -4vw;
  }
}

@media (min-width: 1900px) {
  .hero-stage-img-cutout {
    right: -4vw;
    width: min(1210px, 61vw);
  }
}

@media (max-width: 760px) {
  .hero-stage-img-cutout {
    right: -58%;
    bottom: 1%;
    width: 154%;
  }

  .hero-stage-floor {
    right: -26%;
    bottom: 0;
  }
}

/* ========== CABINET TRANSFER FIXES ========== */
.cabinet-main {
  padding-top: clamp(34px, 4vw, 64px);
}

.cab-hero {
  margin-bottom: clamp(30px, 3.6vw, 46px);
}

.cab-progress {
  margin: 0 0 clamp(38px, 4vw, 58px);
  padding: 0 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cab-progress-track {
  height: 10px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(31,94,255,.14);
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 12px 26px rgba(18,25,38,.05);
}

.cab-progress-meta {
  margin-top: 10px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.25;
}

.cab-section {
  padding: clamp(22px, 2.4vw, 34px);
  overflow: visible;
}

.cab-section-head {
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.cab-h2 {
  line-height: 1.05;
}

.cab-section-cta {
  max-width: min(560px, 100%);
  margin-left: auto;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}

.social-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.social-card {
  min-height: 142px;
  justify-content: space-between;
}

.social-card-name,
.social-card-meta {
  overflow-wrap: anywhere;
}

.cab-bottom-grid {
  gap: clamp(22px, 2.5vw, 32px);
  align-items: start;
}

.cab-bottom-grid .cab-section {
  min-height: 0;
}

.cab-bottom-grid .cab-section-head {
  align-items: center;
  min-height: 44px;
  padding: 0 0 18px;
  margin-bottom: 24px;
}

.cab-bottom-grid .cab-h2 {
  flex: 1 1 auto;
}

.cab-bottom-grid .btn-edit,
.cab-bottom-grid .cab-h-link {
  flex: 0 0 auto;
  align-self: center;
}

.cab-bottom-grid .profile-grid,
.cab-bottom-grid .ticket-grid {
  margin-top: 0;
}

.cab-bottom-grid .empty-state {
  min-height: 126px;
}

@media (max-width: 1200px) {
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cabinet-main {
    padding-top: 26px;
  }

  .cab-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .cab-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cab-section-cta {
    margin-left: 0;
    width: 100%;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .cab-bottom-grid .cab-section-head {
    flex-direction: row;
    align-items: center;
  }
}

/* ========== HERO SHADOW FINAL OVERRIDE ========== */
.hero-stage-floor {
  display: none !important;
}

.hero-stage-img-cutout {
  filter: drop-shadow(0 30px 34px rgba(12,16,20,.24));
}
