:root {
  color-scheme: dark;
  --bg: #101319;
  --panel: #181e28;
  --panel-strong: #202938;
  --border: #303b4a;
  --text: #f3f6fc;
  --muted: #aab5c5;
  --blue: #8ac4ff;
  --ink: #081b32;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 78% 0%, #162337 0, transparent 48rem), var(--bg); }
button, a, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.top, main { width: min(100%, 1140px); margin: auto; padding-inline: clamp(12px, 3vw, 28px); }
.top { height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { font-size: 25px; font-weight: 950; font-style: italic; letter-spacing: -.075em; }
.brand span { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 7px; }
.ozon, .chip { border: 1px solid var(--border); border-radius: 100px; padding: 8px 13px; font-size: 13px; white-space: nowrap; }
.ozon { font-weight: 700; }
.ozon:hover, .chip:hover { border-color: var(--blue); }
main { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
.hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: clamp(390px, 55vw, 525px); overflow: hidden; border-radius: 22px;
  border: 1px solid #40516a;
  background: radial-gradient(ellipse at 82% 29%, #245981 0%, #142e4a 33%, transparent 68%),
    linear-gradient(160deg, #17202c, #0e131c 58%, #1c2939);
}
.hero-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-scene::before {
  content: ""; position: absolute; inset: 67% 0 0;
  background: linear-gradient(0deg, #10151c, #253b4c55), radial-gradient(ellipse at 72% 0%, #6cbaff5c, transparent 65%);
}
.hero-wordmark {
  position: absolute; top: 5%; left: 50%; transform: translateX(-50%) skewX(-9deg);
  font-size: clamp(66px, 18vw, 205px); font-weight: 950; letter-spacing: -.09em; line-height: .9;
  color: #b9dbff; opacity: .43; white-space: nowrap; user-select: none; z-index: 1;
}
.hero-shadow {
  position: absolute; width: 66%; height: 15%; right: 0; bottom: 11%;
  transform: rotate(-4deg); background: radial-gradient(ellipse, #05070a 0%, #060a10ae 43%, transparent 72%);
  filter: blur(9px); z-index: 2;
}
.hero-car {
  position: absolute; width: 76%; height: 83%; right: -1%; bottom: 8%;
  object-fit: contain; object-position: right bottom; z-index: 3;
  filter: drop-shadow(0 18px 14px #070b12a0);
}
.hero-copy { position: relative; z-index: 4; padding: clamp(20px, 4vw, 46px); }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -22px -46px -15px -28px;
  background: radial-gradient(ellipse at 31% 60%, #0d141df2 3%, #0d141dbe 39%, transparent 73%);
}
.hero h1 { font-size: clamp(39px, 6.8vw, 74px); line-height: .96; letter-spacing: -.065em; margin: 0; font-weight: 900; }
.hero p, .muted { color: var(--muted); }
.hero p { margin: 14px 0 17px; }
.primary, .secondary {
  padding: 11px 15px; border-radius: 11px; font-weight: 760; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
}
.primary { background: linear-gradient(130deg, #b5e0ff, #7bb7fa); color: var(--ink); }
.primary:hover { background: #c1e5ff; }
.primary:disabled { opacity: .65; cursor: wait; }
.secondary { background: var(--panel-strong); border-color: var(--border); }
.heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 29px 0 12px; }
.heading h1, .heading h2 { font-size: 29px; letter-spacing: -.044em; margin: 0; }
.heading span, .format { color: var(--muted); font-size: 13px; }
.filters { display: flex; gap: 7px; overflow: auto; padding: 3px 1px 13px; scrollbar-width: thin; }
.chip { background: var(--panel); }
.chip.active { background: #a4d1ff; border-color: #a4d1ff; color: var(--ink); font-weight: 760; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--border);
  border-radius: 15px; overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { border-color: #6988ad; }
.card img { display: block; aspect-ratio: 1.36; width: 100%; object-fit: cover; background: var(--panel-strong); }
.card[data-id="frame"] img { object-position: center 73%; }
.card .copy { display: grid; gap: 7px; padding: 12px; width: 100%; }
.card strong { line-height: 1.22; }
.price, .total strong { color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
.tabs {
  position: fixed; z-index: 5; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(94%, 550px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px;
  border: 1px solid #40516a; border-radius: 18px; background: #182130f5;
  box-shadow: 0 10px 32px #05090f86; backdrop-filter: blur(14px);
}
.tabs a { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--muted); font-size: 11px; padding: 6px 4px; border-radius: 12px; }
.tabs a.active { background: #2a4260; color: #b7deff; }
.nav-icon { position: relative; display: grid; place-items: center; width: 28px; height: 25px; }
.nav-icon svg { width: 22px; height: 22px; }
.nav-icon b {
  position: absolute; top: -1px; left: 21px; font-size: 10px; line-height: 16px; min-width: 16px;
  border-radius: 20px; background: var(--blue); color: var(--ink);
}
.line, .total, .empty { margin: 10px 0; padding: 14px; border-radius: 13px; background: var(--panel); border: 1px solid var(--border); }
.line { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; }
.line img { width: 58px; height: 54px; object-fit: cover; border-radius: 7px; }
.line h3 { font-size: 14px; margin: 0 0 4px; }
.stepper { display: flex; gap: 6px; align-items: center; }
.stepper button, .close { background: #28364a; border: 1px solid var(--border); border-radius: 9px; min-width: 36px; min-height: 36px; }
.total { display: flex; align-items: center; justify-content: space-between; }
.checkout { width: 100%; }
dialog {
  padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--border);
  border-radius: 19px; width: min(calc(100% - 22px), 560px); max-height: 90dvh;
}
dialog::backdrop { background: #050912bb; }
.detail-image { position: relative; }
.detail-image img { width: 100%; height: min(49vh, 435px); object-fit: contain; display: block; background: #0d121b; }
.close { position: absolute; top: 10px; right: 10px; }
.detail-copy { padding: 18px; }
.detail-copy h2 { padding-right: 35px; margin: 0 0 8px; font-size: 24px; letter-spacing: -.035em; }
.detail-copy p { white-space: pre-line; color: var(--muted); line-height: 1.5; }
.preview-tag { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--blue); }
.pager { display: flex; align-items: center; justify-content: center; }
.gallery-dot { width: 30px; height: 36px; position: relative; background: transparent; border: 0; border-radius: 8px; }
.gallery-dot::after { content: ""; position: absolute; inset: 14px 10px; border-radius: 20px; background: #596a81; }
.gallery-dot[aria-pressed="true"]::after { background: var(--blue); }
.options { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
textarea, input, select { width: 100%; color: inherit; background: #111924; border: 1px solid var(--border); border-radius: 9px; padding: 10px; }
textarea { margin: 8px 0; resize: vertical; }
.order-form { max-width: 580px; margin: 16px auto; }
.order-form label { display: grid; gap: 6px; margin: 13px 0; font-size: 14px; font-weight: 680; }
.order-form input, .order-form select, .order-form textarea { min-height: 44px; }
.order-form textarea { margin: 0; }
.order-form .checkout { margin-top: 10px; }
.order-form .muted { font-size: 13px; }
.order-record { grid-template-columns: 1fr; gap: 6px; }
.order-record strong { overflow-wrap: anywhere; }
.order-record p { margin: 0; }
.order-record .order-state { color: var(--blue); }
.order-help { margin-top: 12px; }
.toast {
  position: fixed; z-index: 6; bottom: 93px; left: 50%; transform: translateX(-50%);
  background: #c8e4ff; color: var(--ink); border-radius: 10px; padding: 9px 15px;
  pointer-events: none; opacity: 0; transition: opacity .18s;
}
.toast.show { opacity: 1; }
@media (max-width: 670px) {
  .top { height: 57px; }
  .hero { min-height: clamp(365px, 75vw, 475px); }
  .hero-wordmark { top: 9%; font-size: clamp(58px, 17.2vw, 113px); }
  .hero-car { width: 99%; height: 66%; right: -7%; bottom: 26%; }
  .hero-shadow { bottom: 24%; }
  .hero-copy { padding: 18px; }
  .hero-copy::before { background: radial-gradient(ellipse at 29% 69%, #0c131ef2 8%, #0c131ebc 45%, transparent 75%); }
  .hero h1 { font-size: clamp(34px, 7.7vw, 49px); }
  .hero p { margin: 10px 0 13px; }
  .heading { margin-top: 23px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card .copy { padding: 9px; }
  .card strong { font-size: 14px; }
  .line { padding: 9px; }
  .stepper button { min-width: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

