/* Belbike UI kit — tokens live here, every component reads them. */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --surface-3: #26262a;
  --line: #2a2a2e;
  --line-strong: #3a3a40;
  --text: #f5f5f4;
  --muted: #a1a1aa;
  --dim: #9a9aa3;
  --orange: #ff7e00;
  --orange-hi: #ff9a33;
  --orange-lo: #e06e00;
  --orange-soft: rgba(255, 126, 0, 0.12);
  --ink: #160b00;
  --green: #4ade80;
  --red: #ff4d4f;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --studio: radial-gradient(circle at 50% 38%, #ffffff 0%, #ececee 55%, #dcdcdf 100%);
  --max: 1320px;
  --pad: clamp(16px, 3vw, 32px);
  --head: "Rubik", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tabbar: 0px;
  --head-h: 103px;
  --stick: calc(var(--head-h) + 16px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: var(--tabbar);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: var(--stick); }

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  margin: 0;
}

.upper { text-transform: uppercase; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 16px; height: 16px; }
.icon-l { width: 26px; height: 26px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-s);
  background: var(--orange); color: var(--ink);
  font: 800 14px/1 var(--head); letter-spacing: 0.04em; text-transform: uppercase;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--orange-hi); box-shadow: 0 10px 28px rgba(255, 126, 0, 0.28); }
.btn:active { background: var(--orange-lo); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(245, 245, 244, 0.35); }
.btn-ghost:hover { background: rgba(245, 245, 244, 0.06); border-color: var(--text); box-shadow: none; }
.btn-dark { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-dark:hover { background: var(--surface-3); box-shadow: none; }
.btn-s { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-done { background: var(--surface-3); color: var(--text); box-shadow: none; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-s);
  background: transparent; border: 1px solid transparent; color: var(--text);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--orange); }

.cart-btn {
  width: 44px; height: 44px; border-radius: var(--radius-s);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--ink); border: 0; flex: none;
  transition: background-color 0.2s var(--ease);
}
.cart-btn:hover { background: var(--orange-hi); }
.cart-btn.is-done { background: var(--green); }

.badge-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--orange); color: var(--ink);
  font: 800 11px/18px var(--body); text-align: center;
}
.badge-count[hidden] { display: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-weight: 700; font-size: 14px;
}
.link-arrow:hover { color: var(--orange-hi); }
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Tags & chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 6px;
  font: 800 11px/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--orange); color: var(--ink);
}
.tag-sale { background: var(--red); color: #fff; }
.tag-dark { background: rgba(10, 10, 11, 0.72); color: var(--text); border: 1px solid var(--line-strong); }
.tag-green { background: rgba(74, 222, 128, 0.14); color: var(--green); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.chip > span { font-size: 11px; opacity: 0.7; }
.chip-s { min-height: 30px; padding: 0 11px; font-size: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); font: 800 12px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--orange); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 5px; }
.field > span, .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 0 12px; font-size: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--text); outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.input[aria-invalid="true"] { border-color: var(--red); }
.select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.error-text { color: var(--red); font-size: 13px; font-weight: 600; }

.radio-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.radio-card input { accent-color: var(--orange); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.radio-card:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.radio-card strong { display: block; }
.radio-card small { color: var(--muted); font-size: 13px; }

.size-grid { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.size-grid legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.size span {
  display: grid; place-items: center; min-width: 50px; height: 42px; padding: 0 12px;
  border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--bg-2);
  font-weight: 800; transition: all 0.2s var(--ease);
}
.size:hover span { border-color: var(--text); }
.size input:checked + span { background: var(--text); color: #111; border-color: var(--text); }
.size input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.qty {
  display: inline-flex; align-items: center; height: 46px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2);
}
.qty button { width: 44px; height: 100%; background: none; border: 0; font-size: 20px; color: var(--text); }
.qty button:hover { color: var(--orange); }
.qty input { width: 38px; text-align: center; background: none; border: 0; font-weight: 800; outline: none; }

/* ---------- Topbar & header ---------- */
.masthead { position: sticky; top: 0; z-index: 40; }
.topbar { background: #050505; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 36px; }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.topbar-links { min-width: 0; overflow: hidden; }
.topbar-info span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover, .topbar a[aria-current="page"] { color: var(--text); }
.topbar .icon { width: 15px; height: 15px; color: var(--orange); }
.topbar .topbar-phone { color: var(--text); font-weight: 800; }

.header {
  background: rgba(10, 10, 11, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
}
.header-bar { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { width: 152px; height: auto; }
.catalog-btn { min-height: 42px; padding: 0 16px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav a {
  padding: 10px 11px; border-radius: var(--radius-s);
  font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--orange); }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .nav-hot { color: var(--orange); }
.header-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.header-call { display: none; }
.icon-btn[aria-current="page"] { color: var(--orange); }
.acc-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 12px 0 5px; margin-left: 2px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.acc-btn:hover, .acc-btn[aria-current="page"] { border-color: var(--orange); }
.acc-ava {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font: 800 13px/1 var(--head); letter-spacing: 0.02em;
}
.acc-name { display: grid; font-weight: 800; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.acc-name small { color: var(--green); font-size: 11px; font-weight: 700; }
.header-search { position: relative; }
.search-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(420px, 90vw);
  padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.search-pop[hidden] { display: none; }
.search-pop form { display: flex; gap: 8px; }
.burger { display: none; }

.mobile-nav { display: none; }

.strip { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #050505; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 18%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.7) 32%, rgba(5, 5, 5, 0) 58%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 22%);
}
.hero-inner {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: clamp(460px, 62vh, 640px); padding: 72px 0 88px;
}
.hero h1 { margin-top: 20px; font-size: clamp(36px, 4.4vw, 64px); text-transform: uppercase; max-width: 14ch; hyphens: manual; }
.hero h1 em { font-style: normal; color: var(--orange); display: block; }
.hero-lede { margin-top: 20px; max-width: 40ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: #d4d4d8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Picker ---------- */
.picker-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head actions" "groups groups";
  align-items: center; gap: 18px 24px; padding: 22px; border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(255, 126, 0, 0.08), rgba(255, 126, 0, 0) 40%), var(--bg-2);
  border: 1px solid var(--line);
}
.picker-head { grid-area: head; display: flex; align-items: center; gap: 14px; min-width: 0; }
.picker-head .ring { width: 46px; height: 46px; background: var(--orange); color: var(--ink); }
.picker-head .ring .icon { width: 24px; height: 24px; }
.picker-head h2 { font-size: 20px; text-transform: uppercase; }
.picker-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.picker-actions { grid-area: actions; display: flex; align-items: center; gap: 22px; }
.picker-actions .link-arrow { font-size: 14px; white-space: nowrap; }
.picker-actions .btn { min-height: 50px; padding: 0 24px; min-width: 220px; }
.picker-actions .btn[disabled] { opacity: 0.7; cursor: not-allowed; }
.picker { grid-area: groups; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.picker-group {
  min-width: 0; margin: 0; padding: 14px 16px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.picker-group legend, .filter-group legend { padding: 0; margin-bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.picker-group legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; color: #d4d4d8; }
.picker-group legend + * { clear: both; }
.picker-group legend b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); font: 800 12px/1 var(--head); letter-spacing: 0;
}
.picker-group legend small { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.picker .type-pick label, .picker .size-boxes label { flex: 1; }
.picker .type-pick span { width: auto; padding: 9px 4px 8px; gap: 5px; font-size: 12px; }
.picker .size-boxes { flex-wrap: nowrap; gap: 6px; }
.picker .size-boxes span { height: 66px; min-width: 0; font-size: 14px; }
.picker .range { padding-top: 6px; gap: 14px; }

.type-pick { display: flex; gap: 6px; }
.type-pick label, .size-boxes label, .seg-pick label { position: relative; }
.type-pick input, .size-boxes input, .seg-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.type-pick span {
  display: grid; justify-items: center; gap: 3px; width: 70px; padding: 6px 4px 5px;
  border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg-2);
  font-size: 12px; font-weight: 700; color: var(--muted); transition: all 0.2s var(--ease);
}
.type-pick .icon { width: 24px; height: 24px; color: var(--text); }
.type-pick label:hover span { border-color: var(--line-strong); color: var(--text); }
.type-pick input:checked + span { border-color: var(--orange); background: var(--orange-soft); color: var(--text); }
.type-pick input:checked + span .icon { color: var(--orange); }
.type-pick input:focus-visible + span, .size-boxes input:focus-visible + span, .seg-pick input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.size-boxes { display: flex; flex-wrap: wrap; gap: 5px; }
.size-boxes span {
  display: grid; place-items: center; min-width: 38px; height: 34px; padding: 0 8px;
  border-radius: 7px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 13px; font-weight: 800; transition: all 0.2s var(--ease);
}
.size-boxes label:hover span { border-color: var(--text); }
.size-boxes input:checked + span { background: var(--text); border-color: var(--text); color: #111; }

/* ---------- Dual range ---------- */
.range { display: grid; gap: 10px; }
.range-track { position: relative; height: 22px; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--surface-3); }
.range-track i { position: absolute; top: 9px; height: 4px; border-radius: 4px; background: var(--orange); }
.range-track input {
  position: absolute; inset: 0; width: 100%; height: 22px; margin: 0; background: none;
  -webkit-appearance: none; appearance: none; pointer-events: none; z-index: 2;
}
.range-track input::-webkit-slider-runnable-track { background: none; height: 22px; }
.range-track input::-moz-range-track { background: none; }
.range-track input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--text); border: 4px solid var(--orange); cursor: grab; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.range-track input::-moz-range-thumb {
  pointer-events: auto; width: 12px; height: 12px; border-radius: 50%;
  background: var(--text); border: 4px solid var(--orange); cursor: grab;
}
.range-track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--orange-soft); }
.range-out { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: #d4d4d8; }
.range-out label { flex: 1; }
.range-out .input { min-height: 34px; padding: 0 10px; font-weight: 700; -moz-appearance: textfield; }
.range-out .input::-webkit-inner-spin-button { -webkit-appearance: none; }
.range-out > span { color: var(--dim); }

/* ---------- Sections ---------- */
.section { padding: clamp(28px, 4vw, 48px) 0; }
.section-tight { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(16px, 2vw, 24px); }
.section-head h2 { font-size: clamp(24px, 2.8vw, 36px); text-transform: uppercase; }
.section-head .kicker { display: flex; margin-bottom: 10px; }
.section-head > :first-child { min-width: 0; }
.section-head .carousel-nav { display: flex; gap: 8px; }
.section-head > .link-arrow, .section-head > .tag { flex: none; white-space: nowrap; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.round-btn:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 250px 250px;
}
.cat-grid .cat:first-child { grid-row: span 2; }
.cat {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.cat img { filter: brightness(0.72) saturate(0.9); }
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.8) 32%, rgba(5, 5, 5, 0.2) 70%, rgba(5, 5, 5, 0) 100%);
}
.cat:hover img { transform: scale(1.04); filter: brightness(0.82) saturate(1); }
.cat h3 { font-size: clamp(18px, 1.7vw, 24px); text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.cat p { color: #e4e4e7; font-size: 14px; margin-top: 6px; max-width: 32ch; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.cat .go {
  position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--ink);
  transition: transform 0.2s var(--ease);
}
.cat:hover .go { transform: translateX(3px); }
.cat-body { padding-right: 52px; }

.quick { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-top: 16px; }
.quick::-webkit-scrollbar { display: none; }
.quick a {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.quick a:hover { border-color: var(--orange); color: var(--orange); }
.quick img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; }

/* ---------- Product card ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px * 4) / 5);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); }
.card-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--studio);
}
.card-media img {
  position: absolute; inset: 8%; width: 84%; height: 84%;
  object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-tags { position: absolute; z-index: 1; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.card-tags .tag { height: 22px; padding: 0 7px; font-size: 11px; }
.card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.card-cat { color: var(--muted); font-size: 12px; font-weight: 600; }
.card-title { font: 700 14px/1.3 var(--body); letter-spacing: 0; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--orange); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.card-foot .cart-btn { position: relative; z-index: 2; }
.price-old { display: block; color: var(--dim); text-decoration: line-through; font-size: 13px; font-weight: 600; }
.card-foot .cart-btn { width: 40px; height: 40px; }
.card .price { font-size: 19px; }
.price { font: 800 22px/1.1 var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-sale { color: var(--orange); }
.stock { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-sizes { color: var(--muted); font-size: 12px; }

/* ---------- Promo ---------- */
.promo {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l);
  border: 1px solid var(--line); min-height: 380px; display: flex; align-items: center;
  padding: clamp(28px, 4vw, 56px);
}
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.8) 42%, rgba(5, 5, 5, 0) 75%); }
.promo h2 { font-size: clamp(32px, 4.4vw, 60px); text-transform: uppercase; max-width: 12ch; }
.promo h2 em { font-style: normal; color: var(--orange); }
.promo p { color: #d4d4d8; max-width: 44ch; margin-top: 14px; }
.promo h2 { margin-top: 14px; }
.promo .promo-actions { margin-top: 24px; }
.promo-price { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.promo-price strong { font: 800 clamp(44px, 5vw, 64px)/1 var(--head); color: var(--orange); }
.promo-price span { color: var(--muted); font-size: 14px; max-width: 22ch; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.step { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step b { display: block; font: 800 28px/1 var(--head); color: var(--orange); margin-bottom: 12px; }
.step strong { display: block; font-size: 15px; }
.step p { color: var(--muted); font-size: 13px; margin-top: 6px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offer {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l);
  border: 1px solid var(--line); padding: 28px; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--surface);
}
.offer > img { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); height: 112%; width: auto; max-width: 62%; object-fit: contain; z-index: -1; opacity: 0.95; }
.offer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 35%, rgba(22, 22, 24, 0) 80%); }
.offer h3 { margin-top: 12px; font-size: clamp(22px, 2.3vw, 32px); text-transform: uppercase; max-width: 13ch; }
.offer h3 em { font-style: normal; color: var(--orange); }
.offer p { color: var(--muted); max-width: 30ch; margin-top: 10px; font-size: 14px; }
.offer .link-arrow { margin-top: 18px; }
.offer-hot { background: linear-gradient(120deg, #2a1300 0%, #161618 60%); border-color: rgba(255, 126, 0, 0.35); }
.offer > img { transition: transform 0.5s var(--ease); }
.offer:hover > img { transform: translateY(-50%) scale(1.04); }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.brand-tile {
  display: grid; place-items: center; height: 84px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  font: 800 22px/1 var(--head); letter-spacing: 0.04em; color: #d4d4d8; text-transform: uppercase;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.brand-tile:hover { color: var(--orange); border-color: var(--line-strong); }
.brand-tile.is-italic { font-style: italic; }
.brand-tile.is-wide { letter-spacing: 0.18em; font-size: 18px; }

/* ---------- Articles ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s var(--ease); }
.post:hover { border-color: var(--line-strong); }
.post figure { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1206; }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post:hover figure img { transform: scale(1.04); }
.post figure .tag { position: absolute; left: 12px; top: 12px; }
.post div { padding: 16px 18px 20px; }
.post h3 { font: 800 18px/1.25 var(--body); }
.post:hover h3 { color: var(--orange); }
.post p { color: var(--muted); font-size: 14px; margin-top: 8px; }

.cat, .offer, .post, .promo-card, .cat-tile, .sub-tile, .partner-teaser, .svc-mini li { transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.cat:hover, .offer:hover, .post:hover, .promo-card:hover, .cat-tile:hover, .sub-tile:hover, .svc-mini li:hover { border-color: var(--line-strong); }
.offer-hot:hover, .partner-teaser:hover { border-color: var(--orange); }
.cat:focus-visible, .offer:focus-visible, .post:focus-visible, .promo-card:focus-visible, .cat-tile:focus-visible, .sub-tile:focus-visible, .partner-teaser:focus-visible, .card:has(:focus-visible) {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft);
}
.card :focus-visible { outline-offset: 2px; }

/* ---------- Why ---------- */
.posts-2 { grid-template-columns: repeat(2, 1fr); }
.posts-2 .post { flex-direction: row; }
.posts-2 .post figure { width: 44%; flex: none; aspect-ratio: auto; min-height: 190px; }
.posts-2 .post div { align-self: center; }
.trust-wrap { margin-top: 14px; }
.trust {
  display: flex; gap: 1px; overflow: hidden;
  border-radius: var(--radius); background: var(--line); border: 1px solid var(--line);
}
.trust li { flex: 1 1 0; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; background: var(--bg-2); }
.trust .ring { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.trust .ring .icon { width: 19px; height: 19px; }
.trust strong { display: block; font-size: 14px; line-height: 1.25; }
.trust small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.rail-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -8px 0 18px; }
.rail-bar .link-arrow { font-size: 14px; white-space: nowrap; }

/* ---------- Store ---------- */
.store {
  display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
  border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface);
}
.store-info { padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; align-content: start; }
.store-info h2 { font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; }
.store-rows { display: grid; gap: 14px; }
.store-row { display: flex; gap: 14px; align-items: flex-start; }
.store-row .ring { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--orange); }
.store-row strong { display: block; }
.store-row small { color: var(--muted); font-size: 14px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map {
  position: relative; min-height: 360px; overflow: hidden;
  background:
    linear-gradient(rgba(10, 10, 11, 0.35), rgba(10, 10, 11, 0.35)),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 255, 255, 0.05) 62px 64px),
    #121214;
}
.map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 54%; height: 26px; background: #232327; transform: rotate(-14deg); }
.map::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 46%; width: 18px; background: #232327; transform: rotate(8deg); }
.map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -100%);
  display: grid; justify-items: center; gap: 8px;
}
.map-pin span { padding: 8px 12px; border-radius: var(--radius-s); background: var(--orange); color: var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow); }
.map-pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 8px rgba(255, 126, 0, 0.25), 0 0 0 18px rgba(255, 126, 0, 0.1); }

/* ---------- Quiet blocks ---------- */
.quiet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiet-box { padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.quiet-box h3 { font: 800 18px/1.25 var(--body); }
.quiet-box p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.quiet-box .link-arrow { margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; background: #050505; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.2fr; gap: 28px; padding: 54px 0 36px; }
.footer h4 { font: 800 13px/1 var(--head); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-links { display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.footer-about p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 30ch; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.socials a:hover { background: var(--orange); color: var(--ink); }
.footer-contacts { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-contacts a.big { font: 800 20px/1.2 var(--head); color: var(--text); }
.footer-contacts a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay span { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: #d4d4d8; }
.disclaimer { color: var(--dim); font-size: 12px; }

/* ---------- Tab bar (mobile) ---------- */
.tabbar { display: none; }

/* ---------- Page head ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; padding-top: 22px; }
.crumbs a:hover { color: var(--orange); }
#product-crumb { display: contents; }
.crumbs span[aria-hidden] { color: var(--dim); }
.page-head { padding: 14px 0 24px; }
.page-head h1 { font-size: clamp(30px, 4vw, 48px); text-transform: uppercase; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 60ch; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters {
  position: sticky; top: var(--stick); display: grid; gap: 16px; padding: 16px;
  max-height: calc(100vh - var(--stick) - 16px); overflow-y: auto; scrollbar-width: thin;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters h2 { font: 800 14px/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em; }
.filter-group { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group + .filter-group { padding-top: 14px; border-top: 1px solid var(--line); }
.filter-group[hidden] { display: none; }
.filters-toggle { display: none; }
.text-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0;
  color: var(--orange); font-size: 13px; font-weight: 700;
}
.text-btn:hover { color: var(--orange-hi); }
.badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: var(--ink); font-size: 11px; line-height: 18px; }
.badge-dot[hidden] { display: none; }

.brand-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.logo-tile {
  position: relative; display: flex; align-items: center; justify-content: center; height: 64px; padding: 10px 14px; min-width: 0; overflow: hidden;
  border-radius: var(--radius-s); background: var(--surface-2); border: 2px solid var(--line); color: var(--text);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.1); opacity: 0.8; transition: filter 0.2s var(--ease), opacity 0.2s var(--ease); }
.logo-tile b { font: 800 italic 18px/1 var(--head); letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.8; }
.logo-tile:hover, .logo-tile[aria-pressed="true"], .logo-tile[aria-selected="true"] { background: #f4f4f5; border-color: #f4f4f5; color: #18181b; }
.logo-tile:hover img, .logo-tile[aria-pressed="true"] img, .logo-tile[aria-selected="true"] img { filter: none; opacity: 1; }
.logo-tile:hover b, .logo-tile[aria-pressed="true"] b, .logo-tile[aria-selected="true"] b { opacity: 1; }
.logo-tile[aria-pressed="true"], .logo-tile[aria-selected="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.logo-tile:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.logo-tile-s { height: 46px; padding: 3px 5px; }
.logo-tile-s b { font-size: 13px; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 34px; height: 20px; flex: none; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); transition: background-color 0.2s var(--ease); }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 0.2s var(--ease), background-color 0.2s var(--ease); }
.switch input:checked + span { background: var(--orange); border-color: var(--orange); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--ink); }
.switch input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.mini-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.2s var(--ease); }
.mini-card:hover { border-color: var(--orange); }
.mini-card .ring { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.mini-card .icon { width: 18px; height: 18px; }
.mini-card strong { display: block; font-size: 13px; }
.mini-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.toolbar .count { color: var(--muted); font-weight: 700; font-size: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.active-chips[hidden] { display: none; }
.chip-x { color: var(--text); border-color: var(--line-strong); }
.chip-x .icon { width: 13px; height: 13px; }
.chip-x:hover { border-color: var(--orange); }

.page-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.page-head-row > div { flex: 1; min-width: 0; }
.page-head-row > div { flex: 1; min-width: 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.cat-tile {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; text-align: left;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cat-tile > span:last-child { display: grid; min-width: 0; font-weight: 800; font-size: 14px; line-height: 1.2; }
.cat-tile small { color: var(--muted); font-size: 12px; font-weight: 600; }
.cat-tile-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--bg-2); color: var(--orange); }
.cat-tile-ico .icon { width: 24px; height: 24px; }
.cat-tile:hover { border-color: var(--line-strong); }
.cat-tile[aria-pressed="true"] { border-color: var(--orange); background: linear-gradient(135deg, rgba(255, 126, 0, 0.16), rgba(255, 126, 0, 0.03)); }
.cat-tile[aria-pressed="true"] .cat-tile-ico { background: var(--orange); color: var(--ink); }
.sub-tiles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding: 2px 0; }
.sub-tiles::-webkit-scrollbar { display: none; }
.sub-tiles[hidden] { display: none; }
.sub-tile {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-weight: 700; font-size: 13px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.sub-tile .icon { width: 22px; height: 22px; color: var(--orange); }
.sub-tile small { color: var(--muted); font-size: 12px; }
.sub-tile:hover { border-color: var(--line-strong); }
.sub-tile[aria-pressed="true"] { background: var(--text); color: #111; border-color: var(--text); }
.sub-tile[aria-pressed="true"] .icon, .sub-tile[aria-pressed="true"] small { color: #111; }
.sub-tile:disabled { opacity: 0.4; cursor: not-allowed; }
.cat-tiles:not(:has(+ .sub-tiles:not([hidden]))) { margin-bottom: 18px; }
.grid-catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.empty { padding: 40px; text-align: center; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--muted); }
.empty[hidden] { display: none; }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 44px); padding-bottom: 8px; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-self: start; position: sticky; top: var(--stick); }
.gallery-main {
  position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; border-radius: var(--radius-l); border: 1px solid var(--line);
  overflow: hidden; background: var(--studio);
}
.gallery-main img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; background: var(--ink); color: var(--orange); font-size: 12px; font-weight: 800; }
.thumbs { grid-column: 1; grid-row: 1; display: grid; gap: 8px; align-content: start; }
.thumbs button { width: 76px; height: 76px; padding: 6px; border-radius: var(--radius-s); border: 2px solid transparent; background: var(--studio); }
.thumbs button.is-on { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.buy-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-chip { display: grid; place-items: center; height: 40px; min-width: 76px; padding: 7px 12px; border-radius: var(--radius-s); background: #f4f4f5; color: #18181b; }
.brand-chip img { max-height: 100%; max-width: 92px; object-fit: contain; }
.brand-chip b { font: 800 italic 15px/1 var(--head); text-transform: uppercase; }
.buy-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.buy h1 { font-size: clamp(24px, 2.5vw, 34px); text-transform: uppercase; overflow-wrap: anywhere; }
.buy-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.key-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.key-specs div { padding: 10px 12px; background: var(--surface); min-width: 0; }
.key-specs dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.key-specs dd { margin: 3px 0 0; font-size: 13px; font-weight: 700; line-height: 1.35; }
.buy > .text-btn { justify-self: start; margin-top: -6px; }
.buy-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.buy-price .price { font-size: clamp(30px, 3vw, 40px); }
.buy-price .price-old { font-size: 16px; }
.buy-price .save { padding: 3px 8px; border-radius: 6px; background: rgba(255, 77, 79, 0.14); color: var(--red); font-weight: 800; font-size: 13px; }
.card-price {
  display: flex; align-items: center; gap: 8px; justify-self: start; margin-top: -6px; padding: 6px 12px;
  border-radius: 99px; background: rgba(74, 222, 128, 0.1); color: var(--green); font-size: 13px; font-weight: 700;
}
.card-price b { color: var(--text); font-size: 15px; }
.card-price:hover { background: rgba(74, 222, 128, 0.16); }
.size-grid legend { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.size-grid legend .text-btn { font-size: 12px; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.ask-row { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: #d4d4d8; }
.ask-row a { display: inline-flex; align-items: center; gap: 7px; }
.ask-row a:hover { color: var(--orange); }
.ask-row .icon { color: var(--orange); }
.test-card {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 126, 0, 0.16), rgba(255, 126, 0, 0.04)); border: 1px solid rgba(255, 126, 0, 0.4);
  transition: border-color 0.2s var(--ease);
}
a.test-card:hover { border-color: var(--orange); }
.test-card > .icon:last-child { margin-left: auto; color: var(--orange); }
.test-card .ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); flex: none; }
.test-card strong { display: block; font-size: 14px; }
.test-card small, .test-card p { display: block; color: #d4d4d8; font-size: 13px; margin-top: 2px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.fact .icon { color: var(--orange); margin-top: 1px; width: 18px; height: 18px; }
.fact strong { display: block; font-size: 13px; }
.fact small { color: var(--muted); font-size: 12px; }
.promo-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-line { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; border: 1px dashed rgba(255, 126, 0, 0.5); color: #fed7aa; font-size: 12px; font-weight: 700; }
.promo-line:hover { border-style: solid; color: var(--orange); }
.promo-line .icon { color: var(--orange); }

.product-tabs { padding-top: 36px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; position: relative; padding: 12px 16px; background: none; border: 0; color: var(--muted);
  font: 800 13px/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); }
.tab-panel[hidden] { display: none; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; max-width: 980px; }
.spec-table div { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); font-size: 14px; }
.spec-table dd { margin: 0; font-size: 14px; font-weight: 700; }
.tab-panel .source { margin-top: 14px; }
.size-tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); max-width: 860px; }
.size-tip .icon { color: var(--orange); }
.size-tip p { color: #d4d4d8; font-size: 14px; }
.size-table { margin-bottom: 20px; }
.size-table h3 { font: 800 15px/1.3 var(--body); margin-bottom: 8px; }
.size-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.size-note .icon { margin-top: 2px; color: var(--orange); }
.table-size { min-width: 520px; }
.table-size th, .table-size td { text-align: center; padding: 9px 8px; white-space: nowrap; }
.table-size th:first-child { text-align: left; position: sticky; left: 0; background: var(--bg); z-index: 1; }
.table-size thead th { color: var(--text); font-size: 13px; letter-spacing: 0; }
.table-size tbody th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: none; letter-spacing: 0; white-space: normal; min-width: 130px; }
.table-size .is-have { background: var(--orange-soft); color: var(--orange); font-weight: 800; }
.ship-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ship { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ship .icon { color: var(--orange); margin-bottom: 10px; }
.ship strong { display: block; font-size: 14px; }
.ship p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 22px; }
.grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prose { max-width: 760px; display: grid; gap: 14px; color: #d4d4d8; }
.prose h2 { font-size: 26px; text-transform: uppercase; color: var(--text); }
.source { color: var(--dim); font-size: 13px; }
.source a { color: var(--orange); }
.alert { color: var(--red); font-weight: 700; font-size: 14px; }
.alert[hidden] { display: none; }

.buybar { display: none; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.line-media { width: 110px; height: 110px; border-radius: var(--radius-s); display: grid; place-items: center; padding: 8px; background: var(--studio); }
.line-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line h2 { font: 700 16px/1.3 var(--body); }
.line h2 a:hover { color: var(--orange); }
.line-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.line-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.line-ctrl .qty { height: 40px; }
.line-ctrl .qty button { width: 36px; }
.remove { background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.remove:hover { color: var(--red); }
.line > .price { font-size: 20px; }
.summary { position: sticky; top: var(--stick); display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.summary h2 { font: 800 18px/1 var(--head); text-transform: uppercase; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.sum-row strong { color: var(--text); }
.sum-card strong { color: var(--green); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-total .price { font-size: 30px; }
.progress { display: grid; gap: 8px; font-size: 13px; color: #d4d4d8; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--orange); border-radius: inherit; transition: width 0.4s var(--ease); }
.progress.is-free { color: var(--green); }
.progress.is-free .progress-bar i { background: var(--green); }
.form { display: grid; gap: 12px; }
.note { color: var(--dim); font-size: 13px; }
.confirm { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0 20px; display: grid; gap: 14px; justify-items: center; }
.confirm .ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(74, 222, 128, 0.14); color: var(--green); }
.confirm h1 { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; }
.confirm p { color: #d4d4d8; }
.confirm-list { width: 100%; text-align: left; display: grid; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.contact-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.contact-card .ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.contact-card h2 { font: 800 16px/1.2 var(--head); text-transform: uppercase; }
.contact-card p, .contact-card li { color: #d4d4d8; font-size: 15px; }
.contact-card a { color: var(--text); font-weight: 700; }
.contact-card a:hover { color: var(--orange); }

/* ---------- Info pages ---------- */
.audit-hero { padding: 48px 0 26px; }
.audit-hero h1 { font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; max-width: 16ch; }
.audit-hero p { color: #d4d4d8; max-width: 64ch; margin-top: 16px; font-size: 18px; }
.panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.panel + .panel { margin-top: 12px; }
.panel h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 12px; }
.panel p, .panel li { color: #d4d4d8; font-size: 15px; }
.panel ul.list { display: grid; gap: 8px; }
.panel ul.list li { position: relative; padding-left: 18px; }
.panel ul.list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.table td { color: #d4d4d8; }
.table td strong { color: var(--text); }
.table-wrap { overflow-x: auto; }

/* ---------- UI kit page ---------- */
.kit-section { padding: 30px 0; border-top: 1px solid var(--line); }
.kit-section > h2 { font-size: 24px; text-transform: uppercase; margin-bottom: 18px; }
.kit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch i { display: block; height: 76px; }
.swatch div { padding: 10px 12px; font-size: 13px; }
.swatch code { color: var(--muted); font-size: 12px; }
.type-scale { display: grid; gap: 14px; }
.type-scale div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.type-scale span { overflow-wrap: anywhere; }
@media (max-width: 600px) { .type-scale div { grid-template-columns: 1fr; gap: 4px; } }
.type-scale code { color: var(--muted); font-size: 12px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kit-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.kit-icons div { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.kit-icons .icon { width: 24px; height: 24px; color: var(--text); }
.kit-note { color: var(--muted); font-size: 14px; max-width: 70ch; margin-bottom: 16px; }

/* ---------- Shared bits ---------- */
.ring { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.ring-l { width: 48px; height: 48px; }
.ring-l .icon { width: 24px; height: 24px; }
.link-inline { color: var(--orange); font-weight: 700; }
.link-inline:hover { text-decoration: underline; }
.check-list, .x-list { display: grid; gap: 9px; }
.check-list li, .x-list li { position: relative; padding-left: 28px; color: #d4d4d8; font-size: 14px; line-height: 1.45; }
.check-list li::before, .x-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.x-list li::before {
  background: rgba(255, 77, 79, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4d4f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.check-list a { color: var(--orange); font-weight: 700; }
.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.split-wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.panel > .ring { margin-bottom: 14px; }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel h3 .icon { color: var(--red); }
.panel > p { margin-bottom: 14px; }
.panel-accent { border-color: rgba(255, 126, 0, 0.4); background: linear-gradient(140deg, rgba(255, 126, 0, 0.1), var(--surface) 55%); }

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.flow-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow li { position: relative; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.flow b { display: block; font: 800 24px/1 var(--head); color: var(--orange); margin-bottom: 10px; }
.flow strong { display: block; font-size: 15px; }
.flow p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.flow-v { grid-template-columns: 1fr; gap: 0; }
.flow-v li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.flow-v b { grid-row: span 2; margin: 0; font-size: 28px; }

.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.info-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; align-content: start; gap: 10px 12px;
  height: 100%; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.info-card strong { font-size: 15px; line-height: 1.25; }
.info-card p { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.info-card p a { color: var(--orange); font-weight: 700; }
a.info-card { transition: border-color 0.2s var(--ease); }
a.info-card:hover { border-color: var(--orange); }

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.value-grid li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; align-content: start; gap: 12px 14px;
  padding: 20px 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line);
}
.value-grid h3 { font-size: 18px; text-transform: uppercase; }
.value-grid p { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.value-grid a { color: var(--orange); font-weight: 700; }

.help-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--radius-l); background: linear-gradient(120deg, #2a1300, var(--surface) 60%); border: 1px solid rgba(255, 126, 0, 0.35); }
.help-bar strong { display: block; font: 800 18px/1.2 var(--head); text-transform: uppercase; }
.help-bar span { color: var(--muted); font-size: 14px; }
.help-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Doc hero ---------- */
.doc-hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 30px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, rgba(255, 126, 0, 0.14), transparent 55%), var(--bg-2); }
.doc-hero .crumbs { margin-bottom: 22px; }
.doc-hero h1 { margin-top: 12px; font-size: clamp(30px, 4.4vw, 54px); text-transform: uppercase; max-width: 18ch; }
.doc-hero h1 em { font-style: normal; color: var(--orange); }
.doc-hero p { color: #d4d4d8; margin-top: 12px; max-width: 58ch; font-size: 16px; }
.doc-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.doc-hero-img { padding-bottom: 36px; }
.doc-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.doc-hero-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 11, 0.96) 0%, rgba(10, 10, 11, 0.82) 50%, rgba(10, 10, 11, 0.45) 100%); }
.section-first { padding-top: 28px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.stat-row li { padding: 14px 16px; border-radius: var(--radius); background: rgba(22, 22, 24, 0.8); border: 1px solid var(--line); }
.stat-row b { display: block; font: 800 clamp(20px, 2vw, 26px)/1 var(--head); color: var(--orange); }
.stat-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

.free-meter { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid rgba(255, 126, 0, 0.4); flex: none; max-width: 340px; }
.free-meter-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--orange); color: var(--ink); flex: none; }
.free-meter-ico .icon { width: 28px; height: 28px; }
.free-meter b { display: block; font: 800 28px/1 var(--head); color: var(--orange); }
.free-meter span { display: block; color: #d4d4d8; font-size: 13px; margin-top: 4px; }

.route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.route { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.route header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.route h2 { font: 800 18px/1.1 var(--head); text-transform: uppercase; }
.route header small { color: var(--muted); font-size: 12px; }
.route-price { grid-column: 1 / -1; margin-top: 8px; font: 800 22px/1.1 var(--head); color: var(--text); }
.route-price em { display: block; font: 600 12px/1.3 var(--body); color: var(--muted); font-style: normal; }
.route-hot { border-color: rgba(255, 126, 0, 0.45); }
.route-hot .route-price { color: var(--green); }

.legal { padding: 22px; border-radius: var(--radius-l); border: 1px dashed var(--line-strong); }
.legal h2 { font: 800 15px/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.legal dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.legal dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }

/* ---------- Home additions ---------- */
.promos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.promo-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; height: 100%; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.promo-card:hover { transform: translateY(-2px); }
.promo-card .ring { grid-row: span 2; }
.promo-card b { font: 800 24px/1 var(--head); color: var(--orange); }
.promo-card strong { font-size: 14px; }
.promo-card small { grid-column: 1 / -1; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.app-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 340px; padding: clamp(24px, 4vw, 52px); border-radius: var(--radius-l); border: 1px solid var(--line); }
.app-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.app-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.75) 45%, rgba(5, 5, 5, 0.05) 80%); }
.app-copy { max-width: 470px; }
.app-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 126, 0, 0.16); border: 1px solid rgba(255, 126, 0, 0.45); color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.app-badge .icon { width: 16px; height: 16px; }
.app-copy h2, .app-hero h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 66px); letter-spacing: 0.02em; }
.app-copy h2 small, .app-hero h1 small { display: block; margin-top: 6px; font: 700 15px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.app-copy p { margin-top: 14px; color: #d4d4d8; }
.app-copy .promo-actions { margin-top: 22px; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.logo-grid-home .logo-tile { height: 76px; }

.svc-teaser .section-head { margin-bottom: 16px; }
.svc-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svc-mini li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.svc-mini .svc-logo { width: 52px; height: 52px; }
.svc-mini .svc-logo img { filter: grayscale(1); opacity: 0.85; transition: filter 0.2s var(--ease), opacity 0.2s var(--ease); }
.svc-mini li:hover .svc-logo img { filter: none; opacity: 1; }
.svc-mini strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-mini small { display: block; color: var(--muted); font-size: 12px; }
.svc-mini li > span:last-child { min-width: 0; }
.partner-teaser { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: var(--radius-l); background: linear-gradient(150deg, #2a1300, var(--surface) 65%); border: 1px solid rgba(255, 126, 0, 0.35); transition: border-color 0.2s var(--ease); }
.partner-teaser:hover { border-color: var(--orange); }
.partner-teaser h3 { font-size: clamp(22px, 2.2vw, 28px); text-transform: uppercase; }
.partner-teaser ul { display: grid; gap: 8px; }
.partner-teaser li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.partner-teaser li .icon { color: var(--green); width: 18px; height: 18px; }

/* ---------- Services ---------- */
.svc-filters { display: grid; gap: 10px; margin-bottom: 18px; }
.svc-filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.svc-filters .chips::-webkit-scrollbar { display: none; }
.svc-filters .chip { flex: none; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.svc { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s var(--ease); }
.svc:hover { border-color: var(--line-strong); }
.svc[hidden] { display: none; }
.svc-logo { width: 76px; height: 76px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.svc-logo img { width: 100%; height: 100%; object-fit: contain; }
.svc-logo b { font: 800 22px/1 var(--head); color: #18181b; }
.svc-body { display: grid; gap: 4px; justify-items: start; min-width: 0; padding-right: 30px; }
.svc-type { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 12px; font-weight: 700; }
.svc h3 { font: 800 15px/1.25 var(--body); overflow-wrap: anywhere; }
.svc-city { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.svc .tag { margin-top: 4px; text-transform: none; letter-spacing: 0; font-family: var(--body); }
.svc-link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.svc:hover .svc-link { background: var(--orange); color: var(--ink); }
.add-svc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px dashed rgba(255, 126, 0, 0.6); flex: none; transition: border-color 0.2s var(--ease); }
.add-svc:hover { border-style: solid; }
.add-svc strong { display: block; font-size: 15px; }
.add-svc small { display: block; color: var(--muted); font-size: 12px; }
.add-svc > .icon { color: var(--orange); }
.app-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.app-strip > div { flex: 1 1 320px; }
.app-strip strong { display: block; font-size: 16px; }
.app-strip p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Size guide ---------- */
.measure { display: grid; grid-template-columns: 170px minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.measure-art svg { width: 100%; height: auto; }
.measure-body h2 { font-size: 22px; text-transform: uppercase; }
.measure-body > p { color: #d4d4d8; font-size: 14px; margin-top: 8px; }
.measure-tips { display: grid; gap: 6px; margin: 14px 0; }
.measure-tips li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.measure-tips b { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-size: 12px; }
.table-mini caption { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; padding-bottom: 6px; }
.table-mini th, .table-mini td { padding: 6px 8px; font-size: 13px; }
.table-mini tbody th { color: var(--orange); font-size: 14px; letter-spacing: 0; }
.sizes-page .logo-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin-bottom: 20px; }
.sizes-page .logo-tile { height: 56px; }
.size-panel { padding: 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.size-panel[hidden] { display: none; }
.size-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.size-panel-head img { width: 96px; height: 52px; padding: 8px; border-radius: var(--radius-s); background: #f4f4f5; object-fit: contain; }
.size-panel-head h2 { font-size: 22px; text-transform: uppercase; }
.size-panel-head p { color: var(--muted); font-size: 13px; }
.size-panel .table-size th:first-child { background: var(--surface); }

/* ---------- Certificate ---------- */
.cert-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; }
.cert-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cert-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.cert-pills .icon { color: var(--orange); width: 17px; height: 17px; }
.cert-stage { position: relative; padding: 20px 10px 30px; perspective: 1200px; }
.cert {
  position: relative; overflow: hidden; aspect-ratio: 1.6 / 1; padding: 7%; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 20px; color: var(--text);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 126, 0, 0.55), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #1d1d20, #0b0b0c);
  border: 1px solid rgba(255, 126, 0, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
}
.cert-back { position: absolute; inset: 20px 10px 30px; transform: rotate(5deg) translate(18px, 14px); background: linear-gradient(135deg, var(--orange), #b34f00); border: 0; opacity: 0.9; }
.cert-back .cert-logo { opacity: 0.35; }
.cert-stripe { position: absolute; left: 0; right: 0; bottom: 22%; height: 14%; background: rgba(0, 0, 0, 0.25); }
.cert-top { display: flex; align-items: center; justify-content: space-between; }
.cert-logo { width: 34%; height: auto; }
.cert-chip { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--orange); color: var(--ink); }
.cert-mid span { display: block; font: 700 clamp(10px, 1vw, 13px)/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cert-mid b { display: block; margin-top: 8px; font: 800 clamp(30px, 4vw, 52px)/0.95 var(--head); text-transform: uppercase; color: var(--orange); }
.cert-bottom { display: flex; justify-content: space-between; font-size: clamp(10px, 1vw, 12px); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #d4d4d8; }
.cert-helmet { position: absolute; right: -6%; bottom: -14%; width: 52%; height: auto; fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1.2; }
.idea-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.idea-grid a { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); height: 100%; transition: border-color 0.2s var(--ease); }
.idea-grid a:hover { border-color: var(--orange); }
.idea-grid span { color: var(--orange); margin-bottom: 8px; }
.idea-grid .icon { width: 28px; height: 28px; }
.idea-grid strong { font-size: 15px; }
.idea-grid small { color: var(--muted); font-size: 13px; }

/* ---------- Partner ---------- */
.partner-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius-l); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.kpi li { padding: 18px; background: var(--surface); }
.kpi b { display: block; font: 800 clamp(24px, 2.6vw, 34px)/1 var(--head); color: var(--orange); }
.kpi span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.who-grid li { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.who-grid .ring { margin-bottom: 8px; }
.who-grid strong { font-size: 15px; }
.who-grid small { color: var(--muted); font-size: 13px; }
.cabinet { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.cabinet h3 .icon { color: var(--orange); }
.cabinet-list { display: grid; gap: 8px; }
.cabinet-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.cabinet-list .icon { color: var(--orange); width: 18px; height: 18px; }
.assort { display: flex; flex-wrap: wrap; gap: 8px; }
.assort li { padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.apply { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.apply-info h2 { margin: 10px 0 18px; font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.apply-form .btn { justify-self: start; }
.seg-pick { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.seg-pick legend { width: 100%; margin-bottom: 6px; }
.seg-pick span { display: grid; place-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; font-weight: 700; transition: all 0.2s var(--ease); }
.seg-pick label:hover span { border-color: var(--line-strong); }
.seg-pick input:checked + span { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.seg-pick-s span { min-width: 42px; min-height: 34px; padding: 0 8px; }
.apply-ok { display: grid; justify-items: start; gap: 8px; align-content: center; }
.apply-ok[hidden] { display: none; }
.apply-ok .ring { background: rgba(74, 222, 128, 0.14); color: var(--green); width: 52px; height: 52px; }
.apply-ok h3 { font-size: 22px; text-transform: uppercase; }
.apply-ok p { color: #d4d4d8; }
.form[hidden] { display: none; }

/* ---------- News ---------- */
.news-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-big { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 340px; padding: 24px; border-radius: var(--radius-l); border: 1px solid var(--line); }
.news-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s var(--ease); }
.news-big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 5, 5, 0.96) 10%, rgba(5, 5, 5, 0.55) 55%, rgba(5, 5, 5, 0.1) 100%); }
.news-big:hover img { transform: scale(1.04); }
.news-big h2 { margin-top: 12px; font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; max-width: 18ch; }
.news-big p { color: #d4d4d8; margin-top: 8px; font-size: 14px; }
.news-big .link-arrow { margin-top: 14px; }
.deal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deal { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.deal:target { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.deal-head { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.deal-head b { font: 800 22px/1 var(--head); color: var(--orange); white-space: nowrap; }
.deal h3 { font: 800 18px/1.25 var(--body); }
.deal p { color: #d4d4d8; font-size: 14px; margin-top: 6px; }
.deal-steps { display: grid; gap: 4px; margin-top: 10px; counter-reset: s; }
.deal-steps li { counter-increment: s; display: flex; gap: 8px; font-size: 13px; color: #d4d4d8; }
.deal-steps li::before { content: counter(s); width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; font-weight: 800; }
.deal-scale { display: flex; gap: 6px; margin-top: 12px; }
.deal-scale li { flex: 1; display: grid; gap: 2px; padding: 8px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.deal-scale span { color: var(--muted); font-size: 12px; font-weight: 700; }
.deal-scale b { color: var(--orange); font-size: 16px; }
.deal-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px !important; color: var(--muted) !important; font-size: 12px !important; }
.deal-note .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--orange); }

/* ---------- Article ---------- */
.article-hero { position: relative; isolation: isolate; overflow: hidden; padding: 0 0 40px; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line); }
.article-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.article-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0.75) 45%, rgba(10, 10, 11, 0.35) 100%), linear-gradient(90deg, rgba(10, 10, 11, 0.85), rgba(10, 10, 11, 0) 70%); }
.article-hero .crumbs { margin-bottom: 120px; }
.article-hero h1 { margin-top: 14px; font-size: clamp(30px, 4.6vw, 58px); text-transform: uppercase; max-width: 16ch; }
.article-hero h1 em { font-style: normal; color: var(--orange); }
.article-hero p { margin-top: 14px; max-width: 52ch; color: #e4e4e7; font-size: 17px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 32px; }
.article-body { display: grid; gap: 34px; }
.article-body h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; text-transform: uppercase; margin-bottom: 14px; }
.article-body h2 .icon { color: var(--orange); }
.article-side { position: sticky; top: var(--stick); }
.why-test { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.why-test li { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-test .icon { color: var(--orange); width: 24px; height: 24px; margin-bottom: 6px; }
.why-test strong { font-size: 15px; }
.why-test span { color: var(--muted); font-size: 13px; }
.callout { padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); }
.callout-tag p { color: #d4d4d8; }
.hashtag { display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 99px; background: var(--orange); color: var(--ink); font: 800 16px/1 var(--head); }
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.need-grid li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.need-grid .icon { color: var(--orange); }
.article-body .note { margin-top: 10px; }
.price-card { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid rgba(255, 126, 0, 0.4); box-shadow: var(--shadow); }
.price-card > b { font: 800 56px/1 var(--head); color: var(--orange); }
.price-card > p { color: #d4d4d8; font-size: 14px; margin-top: -4px; }
.price-card-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.price-card-row strong { color: var(--text); white-space: nowrap; }
.price-card-row .ok { color: var(--green); }
.price-card .form { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- App page ---------- */
.app-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.app-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 11, 0.97) 0%, rgba(10, 10, 11, 0.8) 50%, rgba(10, 10, 11, 0.55) 100%); }
.app-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; padding: 0 0 48px; }
.app-hero .crumbs { margin-bottom: 40px; }
.app-hero p { margin-top: 14px; color: #e4e4e7; font-size: 18px; max-width: 40ch; }
.phone { justify-self: center; width: 270px; padding: 10px; border-radius: 40px; background: #050505; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); margin-top: 24px; }
.phone-screen { display: grid; gap: 10px; align-content: start; min-height: 460px; padding: 14px; border-radius: 32px; background: linear-gradient(180deg, #17212b, #0e1621); }
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.phone-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-weight: 800; }
.phone-head strong { display: block; font-size: 14px; }
.phone-head small { color: #7f91a4; font-size: 11px; }
.phone-msg { overflow: hidden; border-radius: 14px; background: #182533; }
.phone-msg img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.phone-msg p { padding: 10px 12px; font-size: 13px; color: #e4e4e7; }
.phone-btn { margin-top: auto; padding: 12px; border-radius: 12px; text-align: center; background: #2b5278; font-weight: 700; font-size: 14px; }

.info-links { margin-top: 0; }
.mobile-nav { max-height: calc(100vh - 70px); overflow-y: auto; }

/* ---------- Favorites & toast ---------- */
.fav-btn {
  position: absolute; z-index: 2; right: 8px; top: 8px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10, 10, 11, 0.6); border: 1px solid transparent; color: #fff;
  backdrop-filter: blur(4px); transition: color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.fav-btn .icon { width: 18px; height: 18px; }
.fav-btn:hover { color: var(--orange); transform: scale(1.06); }
.fav-btn[aria-pressed="true"] { color: var(--orange); background: rgba(10, 10, 11, 0.8); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn-l { position: static; margin-left: auto; width: 44px; height: 44px; background: var(--surface-2); border-color: var(--line); }
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 700;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { color: var(--green); flex: none; }
.toast a { color: var(--orange); white-space: nowrap; }

/* ---------- Account ---------- */
.acc { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; padding: 18px 0 40px; }
.acc-side {
  position: sticky; top: calc(var(--head-h, 103px) + 16px);
  display: grid; gap: 14px; padding: 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line);
}
.acc-user { display: flex; align-items: center; gap: 12px; }
.acc-ava-l { width: 48px; height: 48px; font-size: 17px; }
.acc-user strong { display: block; font-size: 15px; }
.acc-user small { color: var(--muted); font-size: 12px; }
.acc-card-mini {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(120deg, #2a1300, var(--bg-2) 70%); border: 1px solid rgba(255, 126, 0, 0.3); font-size: 13px; color: var(--muted);
}
.acc-card-mini b { color: var(--text); font: 800 15px/1.2 var(--head); text-align: right; }
.acc-card-mini:hover { border-color: var(--orange); }
.acc-nav { display: grid; gap: 2px; }
.acc-nav a {
  display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 10px; border-radius: var(--radius-s);
  font-weight: 700; font-size: 14px; color: #d4d4d8; transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.acc-nav a .icon { width: 19px; height: 19px; color: var(--dim); flex: none; }
.acc-nav a span { flex: 1; min-width: 0; }
.acc-nav a:hover { background: var(--surface-2); color: var(--text); }
.acc-nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange); }
.acc-nav a[aria-current="page"] .icon { color: var(--orange); }
.acc-nav em, .seg-wide em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--text); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.acc-nav em:empty, .seg-wide em:empty { display: none; }
.acc-out { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.acc-out:hover { color: var(--red); }
.acc-out .icon { width: 19px; height: 19px; }
.acc-demo { display: flex; gap: 7px; color: var(--dim); font-size: 12px; line-height: 1.4; }
.acc-demo .icon { flex: none; margin-top: 1px; }

.acc-main { display: grid; gap: 18px; min-width: 0; }
.acc-head h1, .ord-page-head h1 { font-size: clamp(28px, 3.2vw, 40px); text-transform: uppercase; }
.acc-head p, .ord-page-head p { margin-top: 8px; color: var(--muted); max-width: 64ch; }
.acc-block { padding: 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-width: 0; }
.acc-block h2 { font-size: 20px; text-transform: uppercase; }
.acc-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.acc-block-head .link-arrow { white-space: nowrap; }
.grid-acc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acc-tip { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; }
.acc-tip .icon { color: var(--orange); flex: none; }
.acc-tip a { color: var(--text); font-weight: 800; white-space: nowrap; }
.acc-proto { display: flex; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.acc-proto .icon { flex: none; width: 16px; height: 16px; color: var(--orange); margin-top: 2px; }
.acc-why { background: var(--bg-2); }
.acc-why h2 { font-size: 16px; }
.opt { font-style: normal; color: var(--dim); font-weight: 500; }

/* Status pills */
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--surface-3); color: var(--muted); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-orange { background: var(--orange-soft); color: var(--orange); }
.st-green { background: rgba(74, 222, 128, 0.14); color: var(--green); }
.st-red { background: rgba(255, 77, 79, 0.12); color: var(--red); }

/* Orders */
.orders { display: grid; gap: 8px; }
.ord-row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.1fr) auto 20px; gap: 16px; align-items: center;
  padding: 10px 16px 10px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ord-row:hover { border-color: var(--line-strong); background: var(--surface-2); }
.ord-row:hover .ord-go { color: var(--orange); transform: translateX(3px); }
.ord-row[data-status="cancel"] .ord-pics, .ord-row[data-status="cancel"] .ord-price { opacity: 0.55; }
.ord-pics { display: flex; align-items: center; }
.ord-pics img, .ord-pics i {
  width: 44px; height: 44px; flex: none; border-radius: var(--radius-s); background: #fff; object-fit: contain; padding: 3px;
  border: 2px solid var(--surface); box-sizing: content-box;
}
.ord-pics > * + * { margin-left: -14px; }
.ord-pics i { display: grid; place-items: center; padding: 0; background: var(--surface-3); color: var(--text); font: 800 12px/1 var(--body); font-style: normal; }
.ord-main, .ord-state { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.ord-main strong { font: 800 16px/1.1 var(--head); letter-spacing: 0.02em; }
.ord-main small, .ord-state small { color: var(--muted); font-size: 13px; }
.ord-price { font: 800 18px/1 var(--head); white-space: nowrap; text-align: right; }
.ord-go { width: 18px; height: 18px; color: var(--dim); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.link-back { justify-self: start; }
.link-back .icon { transform: rotate(180deg); }
.link-back:hover .icon { transform: rotate(180deg) translateX(3px); }
.ord-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.ord-page-head .st { height: 32px; padding: 0 14px; font-size: 13px; }
.ord-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ord-cols h2 { font-size: 16px; }
.ord-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.ord-track li { position: relative; display: grid; justify-items: center; gap: 3px; text-align: center; padding-top: 2px; }
.ord-track li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line-strong); }
.ord-track li:first-child::before { display: none; }
.ord-track i { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-strong); }
.ord-track span { font-size: 12px; font-weight: 700; color: var(--dim); line-height: 1.25; }
.ord-track small { font-size: 12px; color: var(--dim); min-height: 1em; }
.ord-track .is-done::before, .ord-track .is-now::before { background: var(--orange); }
.ord-track .is-done i { background: var(--orange); border-color: var(--orange); }
.ord-track .is-now i { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.ord-track .is-done span { color: #d4d4d8; }
.ord-track .is-now span { color: var(--orange); }
.ord-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.ord-note .icon { flex: none; color: var(--orange); margin-top: 2px; }
.ord-lines { display: grid; gap: 10px; }
.ord-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ord-lines li + li { padding-top: 10px; border-top: 1px solid var(--line); }
.ord-lines img { width: 56px; height: 56px; border-radius: 6px; background: #fff; object-fit: contain; padding: 3px; }
.ord-lines a { font-weight: 700; font-size: 14px; }
.ord-lines a:hover { color: var(--orange); }
.ord-lines small { display: block; color: var(--muted); font-size: 12px; }
.ord-dl { display: grid; gap: 10px; margin: 0; }
.ord-total { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ord-total div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ord-total dt { color: var(--muted); }
.ord-total dd { margin: 0; font-weight: 700; white-space: nowrap; }
.ord-total .is-sum { padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.ord-total .is-sum dt { color: var(--text); font-weight: 800; }
.ord-total .is-sum dd { font: 800 20px/1 var(--head); }
.ord-dl dt { color: var(--dim); font-size: 12px; }
.ord-dl dd { margin: 2px 0 0; font-size: 14px; }
.ord-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Personal data */
.doc-list, .consents { display: grid; }
.doc-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.doc-list li:first-child, .consent:first-child { border-top: 0; padding-top: 0; }
.doc-list li:last-child, .consent:last-child { padding-bottom: 0; }
.doc-list strong, .consent strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.doc-list p, .consent p { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 62ch; }
.doc-list small { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.doc-list small .icon { width: 14px; height: 14px; }
.consent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.consent small { display: block; margin-top: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.consent.is-off small { color: var(--dim); }
.consent .tag { height: 20px; font-size: 10.5px; }
.consent .switch input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.btn-fit { justify-self: start; }

/* Garage */
.bikes { display: grid; gap: 12px; }
.bike { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.bike.is-main { border-color: rgba(255, 126, 0, 0.45); }
.bike-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--orange-soft); color: var(--orange); }
.bike-ico .icon { width: 30px; height: 30px; }
.bike-info { display: grid; gap: 3px; justify-items: start; }
.bike-info h3 { font-size: 18px; }
.bike-info small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.bike-nick { color: #d4d4d8; font-size: 13px; }
.bike-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bike-actions .icon-btn:hover { color: var(--red); }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; }
.seg-wide button .icon { width: 17px; height: 17px; }
.seg [role="tab"][aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.garage-form { gap: 14px; }
.garage-form .btn { justify-self: start; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.select:disabled { opacity: 0.5; cursor: not-allowed; }
.input-vin { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; font-size: 16px; }
.vin-hint { color: var(--dim); font-size: 13px; }
.vin-result { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s); background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.3); font-size: 13px; color: #d4d4d8; }
.vin-result[hidden] { display: none; }
.vin-result .icon { flex: none; color: var(--green); margin-top: 1px; }

/* Discount */
.disc-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.club-card {
  position: relative; overflow: hidden; display: grid; gap: 12px; align-content: space-between; align-self: start; width: 100%; aspect-ratio: 1.586;
  padding: 20px; border-radius: var(--radius-l); color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 126, 0, 0.55), rgba(255, 126, 0, 0) 55%), linear-gradient(135deg, #1f1f23, #0b0b0c);
  border: 1px solid rgba(255, 126, 0, 0.4); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.club-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.club-card-top img { width: 104px; height: auto; }
.club-card-top span { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.club-card-pct { font: 800 56px/1 var(--head); color: var(--orange); }
.club-card-bottom { display: flex; justify-content: space-between; gap: 12px; }
.club-card-bottom small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.club-card-bottom strong { font-size: 14px; letter-spacing: 0.04em; }
.club-barcode { height: 34px; border-radius: 4px; background: #fff repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); background-clip: content-box; padding: 4px 8px; }
.disc-now p { color: #d4d4d8; font-size: 14px; }
.disc-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.disc-scale li { display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line); }
.disc-scale span { font: 800 18px/1 var(--head); color: var(--dim); }
.disc-scale small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.disc-scale .is-done span { color: var(--text); }
.disc-scale .is-now { border-color: var(--orange); background: var(--orange-soft); }
.disc-scale .is-now span { color: var(--orange); }
.perk-list { display: grid; gap: 10px; }
.perk-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.perk-list strong { font-size: 15px; }
.perk-list p { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.45; }
.perk-list .tag:empty { display: none; }

/* Balance */
.bal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bal-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.bal-card .ring { grid-row: span 2; }
.bal-card small { color: var(--muted); font-size: 13px; }
.bal-card b { font: 800 28px/1.1 var(--head); }
.bal-card p { grid-column: 1 / -1; margin-top: 10px; color: var(--dim); font-size: 12px; }
.bal-card-accent { background: linear-gradient(140deg, #2a1300, var(--surface) 70%); border-color: rgba(255, 126, 0, 0.4); }
.bal-card-accent b { color: var(--orange); }
.certs, #certs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cert-mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.cert-mini-face { display: grid; align-content: space-between; gap: 10px; aspect-ratio: 1.586; padding: 10px; border-radius: 8px; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 126, 0, 0.6), rgba(255, 126, 0, 0) 60%), #19191c; border: 1px solid rgba(255, 126, 0, 0.35); }
.cert-mini-face img { width: 64px; height: auto; }
.cert-mini-face b { font: 800 18px/1 var(--head); color: #fff; }
.cert-mini > div:last-child { display: grid; gap: 4px; justify-items: start; }
.cert-mini strong { font-family: ui-monospace, Menlo, monospace; font-size: 14px; letter-spacing: 0.04em; }
.cert-mini small { color: var(--muted); font-size: 12px; }
.cert-mini.is-used { opacity: 0.6; }
.cert-mini.is-used .cert-mini-face { filter: grayscale(1); }
.cert-activate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.cert-activate .btn { min-height: 42px; }
.cert-activate .error-text { grid-column: 1 / -1; }
.hist { display: grid; }
.hist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hist li:first-child { border-top: 0; padding-top: 0; }
.hist .ring { width: 36px; height: 36px; }
.hist strong { display: block; font-size: 14px; font-weight: 700; }
.hist small { color: var(--dim); font-size: 12px; }
.hist b { font: 800 15px/1 var(--head); white-space: nowrap; }
.hist .is-in { color: var(--green); }
.hist .is-out { color: var(--muted); }

/* Reviews */
.rv-list { display: grid; gap: 10px; }
.rv-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rv-item > img { width: 64px; height: 64px; border-radius: var(--radius-s); background: #fff; object-fit: contain; padding: 4px; }
.rv-item a { font-weight: 800; }
.rv-item a:hover { color: var(--orange); }
.rv-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.rv-done { align-items: start; }
.rv-text { margin-top: 6px; font-size: 14px; color: #d4d4d8; line-height: 1.45; }
.stars { display: inline-flex; gap: 2px; margin-top: 4px; }
.stars i .icon { width: 15px; height: 15px; color: var(--line-strong); }
.stars i.on .icon { color: var(--orange); fill: currentColor; }
.sheet { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border-radius: var(--radius-l); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); }
.sheet form { padding: 20px; gap: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-size: 20px; text-transform: uppercase; }
.sheet-head .icon-btn { margin-right: -10px; }
.rv-product { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--bg-2); }
.rv-product img { width: 52px; height: 52px; border-radius: 6px; background: #fff; object-fit: contain; padding: 3px; }
.stars-pick { border: 0; padding: 0; margin: 0; }
.stars-pick legend { margin-bottom: 6px; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-row label { cursor: pointer; padding: 2px; color: var(--line-strong); transition: color 0.15s var(--ease), transform 0.15s var(--ease); }
.stars-row label .icon { width: 34px; height: 34px; fill: currentColor; }
.stars-row label:hover, .stars-row label:hover ~ label, .stars-row input:checked ~ label { color: var(--orange); }
.stars-row label:hover { transform: scale(1.1); }
.stars-row input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sheet .btn { justify-self: stretch; }

/* Personal */
.acc-form { gap: 18px; }
.acc-form .acc-block { gap: 12px; }
.acc-form .acc-block h2 { font-size: 16px; }
.toggles { display: grid; gap: 4px; }
.toggles .switch { justify-content: space-between; flex-direction: row-reverse; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggles .switch:first-child { border-top: 0; padding-top: 0; }
.toggles .switch div { flex: 1; min-width: 0; }
.toggles strong { display: block; font-size: 14px; }
.toggles small { color: var(--muted); font-weight: 500; font-size: 13px; }
.acc-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.acc-save .error-text { flex-basis: 100%; }
.acc-save .error-text[hidden] { display: none; }
.acc-danger { grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--bg-2); }
.acc-danger h2 { font-size: 16px; }
.acc-danger p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.acc-danger-actions { display: grid; justify-items: end; gap: 6px; }
.acc-danger-actions .text-btn { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .acc-name { display: none; }
  .acc-btn { padding: 0 4px; border-radius: 50%; width: 44px; justify-content: center; }
}

@media (max-width: 1240px) {
  .header-tools .hide-l { display: none; }
}

@media (max-width: 1280px) {
  .topbar-hours, .topbar-links a:nth-child(4), .topbar-links a:nth-child(6) { display: none; }
  .nav a { padding: 10px 8px; font-size: 13px; }
  .rail { grid-auto-columns: calc((100% - 14px * 3) / 4); }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer-top > :last-child { grid-column: 1 / -1; }
  .cat-tile { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 10px 6px; }
  .cat-tile > span:last-child { justify-items: center; font-size: 13px; }
}

@media (max-width: 1200px) {
  .acc { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
  .grid-acc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .disc-top { grid-template-columns: minmax(0, 1fr); }
  .club-card { max-width: 380px; }
  .grid-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .header-bar { gap: 14px; }
  .nav { gap: 2px; }
  .nav a { padding: 10px 6px; }
}

@media (max-width: 1100px) {
  .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker-price { grid-column: 1 / -1; }
  .topbar-info { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav { display: none; }
  .header-call { display: inline-flex; }
  .header-bar .catalog-btn { margin-right: auto; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-catalog, .grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog { grid-template-columns: 1fr; gap: 0; }
  .catalog-main { display: contents; }
  .catalog .toolbar { order: -1; }
  .filters { position: static; display: none; max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; margin-bottom: 14px; }
  .filters.is-open { display: grid; }
  .filters-head { grid-column: 1 / -1; }
  .filter-group + .filter-group { padding-top: 0; border-top: 0; }
  .brand-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters-toggle { display: inline-flex; }
  .toolbar .count { margin-right: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .issue-cols { grid-template-columns: 1fr; }
  .burger { display: inline-flex; }
  .mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 0 16px; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { display: grid; gap: 2px; }
  .mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .route-grid, .info-grid, .promos, .ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-list { grid-template-columns: 1fr; }
  .measure { grid-template-columns: 150px minmax(0, 1fr); }
  .measure-table { grid-column: 2; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
}

@media (max-width: 900px) {
  :root { --tabbar: 68px; --head-h: 61px; }
  .topbar { display: none; }
  .header-tools .hide-m, .catalog-btn { display: none; }
  .header-bar { min-height: 60px; }
  .logo { margin-right: auto; }
  .logo img { width: 128px; }
  .header-call, .hide-l { display: none; }
  .strip {
    display: grid; justify-items: center; overflow: hidden;
    padding: 9px var(--pad); background: var(--bg-2); border-bottom: 1px solid var(--line);
    font-size: 12px; font-weight: 700; color: #d4d4d8;
  }
  .strip span {
    grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
    opacity: 0; transform: translateY(6px); visibility: hidden;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .strip span.is-on { opacity: 1; transform: none; visibility: visible; }
  .strip:not(:has(.is-on)) span:first-child { opacity: 1; transform: none; visibility: visible; }
  .strip .icon { width: 15px; height: 15px; color: var(--orange); }
  .hero-inner { min-height: 0; padding: 44px 0 52px; }
  .hero-bg img { object-position: 72% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.8) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.1) 100%); }
  .picker-box { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "groups" "actions"; gap: 14px; padding: 16px; }
  .trust { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .trust::-webkit-scrollbar { display: none; }
  .trust li { flex: 0 0 auto; width: min(260px, 72vw); scroll-snap-align: start; }
  .posts-2 { grid-template-columns: 1fr; }
  .picker-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .picker-actions .link-arrow { align-self: center; }
  .picker-actions .btn { order: -1; min-width: 0; min-height: 52px; }
  .picker { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .picker .size-boxes span { height: 42px; }
  .type-pick label, .size-boxes label { flex: 1; }
  .type-pick span { width: auto; }
  .cat-tiles { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
  .cat-tile { padding: 10px 4px; }
  .cat-tile-ico { width: 34px; height: 34px; }
  .cat-tile-ico .icon { width: 20px; height: 20px; }
  .sub-tiles { flex-wrap: wrap; overflow: visible; }
  .cat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .cat-grid .cat:first-child { grid-row: auto; grid-column: 1 / -1; }
  .rail { grid-auto-columns: 40%; }
  .grid, .grid-3, .grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo, .quiet, .store, .cols-2, .split-2, .split-wide, .cert-row, .partner-row, .apply, .news-feature, .app-hero-row, .value-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .post { flex-direction: row; }
  .post figure { width: 40%; flex: none; aspect-ratio: auto; }
  .promo, .app-banner { min-height: 0; align-items: flex-end; padding-top: 220px; }
  .promo::after, .app-banner::after { background: linear-gradient(0deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.85) 45%, rgba(5, 5, 5, 0) 85%); }
  .promo > img { object-position: 76% 30%; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
  .step b { grid-row: span 2; margin: 0; }
  .flow, .flow-5 { grid-template-columns: 1fr; gap: 8px; }
  .flow li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 12px 14px; }
  .flow b { grid-row: span 2; margin: 0; font-size: 22px; }
  .flow-v li { padding: 12px 0; }
  .map { min-height: 240px; }
  .product, .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-main { grid-column: 1; }
  .thumbs { grid-column: 1; grid-row: 2; display: flex; }
  .thumbs button { width: 64px; height: 64px; }
  .spec-table, .legal dl { grid-template-columns: 1fr; }
  .summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-row, .who-grid, .idea-grid { grid-template-columns: 1fr 1fr; }
  .issue { grid-template-columns: 1fr; gap: 8px; }
  .doc-hero-row { flex-direction: column; align-items: stretch; }
  .free-meter { max-width: none; }
  .cert-stage { max-width: 440px; width: 100%; justify-self: center; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .article-hero { min-height: 360px; }
  .article-hero .crumbs { margin-bottom: 90px; }
  .phone { display: none; }
  .app-hero-row { padding-bottom: 36px; }
  .footer { margin-top: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 36px; }
  .footer-about { grid-column: 1 / -1; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10, 10, 11, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--orange); }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar .badge-count { top: 6px; right: calc(50% - 22px); }
  body[data-page="product"] { padding-bottom: calc(var(--tabbar) + 76px); }
  .buybar {
    position: fixed; left: 0; right: 0; bottom: var(--tabbar); z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--pad); background: rgba(17, 17, 19, 0.97); border-top: 1px solid var(--line);
    transform: translateY(100%); opacity: 0; visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .buybar.is-shown { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .buybar .price { font-size: 22px; }
  .buybar .btn { min-height: 46px; flex: 1; max-width: 220px; }
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line-media { width: 84px; height: 84px; }
  .line > .price { grid-column: 2; font-size: 18px; }
  .acc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 12px; }
  .acc-side { position: static; padding: 12px; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .acc-side nav { grid-column: 1 / -1; }
  .acc-nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
  .acc-nav a { min-height: 40px; padding: 0 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
  .acc-nav a[aria-current="page"] { border-color: var(--orange); }
  .acc-card-mini { grid-template-columns: auto auto; }
  .acc-out { display: none; }
  .acc-demo { grid-column: 1 / -1; }
  .grid-acc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bal-card-accent { grid-column: 1 / -1; }
  .acc-danger { grid-template-columns: minmax(0, 1fr); }
  .acc-danger-actions { justify-items: start; }
  .ord-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .hero::after { display: none; }
  .hero-bg { position: relative; inset: auto; z-index: 0; height: 56vw; }
  .hero-bg img { object-position: 60% 40%; }
  .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, 0) 45%, var(--bg) 100%); }
  .hero { background: var(--bg); }
  .hero-inner { position: relative; margin-top: -28px; padding: 0 0 36px; }
  .rail-bar { flex-wrap: wrap; }
  .rail-bar .seg { width: 100%; }
  .rail-bar .seg button { min-width: 0; padding: 0 6px; }
  .grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  .brand-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-grid, .info-grid, .promos, .ship-grid, .svc-mini { grid-template-columns: 1fr; }
  .measure { grid-template-columns: 1fr; }
  .measure-art { max-width: 130px; }
  .measure-table { grid-column: auto; }
  .rail { grid-auto-columns: 62%; }
  .toolbar .seg { order: 3; width: 100%; }
  .seg button { flex: 1; }
}

@media (max-width: 520px) {
  .section-head { flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 132px; }
  .hero h1 { font-size: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { gap: 8px 16px; font-size: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card-title { font-size: 13px; }
  .card .price { font-size: 17px; }
  .card-foot .cart-btn { width: 36px; height: 36px; }
  .card-sizes { display: none; }
  .facts { grid-template-columns: 1fr; }
  .post figure { width: 36%; }
  .post div { padding: 12px 14px; }
  .post h3 { font-size: 15px; }
  .post p { display: none; }
  .offer > img { max-width: 48%; opacity: 0.6; }
  .form-row { grid-template-columns: 1fr; }
  .legal dl div { grid-template-columns: 1fr; gap: 2px; }
  .deal { grid-template-columns: 1fr; gap: 12px; }
  .deal-head { display: flex; justify-content: flex-start; align-items: center; }
  .key-specs { grid-template-columns: 1fr; }
  .stat-row li, .kpi li { padding: 12px; }
  .svc { grid-template-columns: 60px minmax(0, 1fr); }
  .svc .svc-logo { width: 60px; height: 60px; }
  .help-bar-actions, .help-bar-actions .btn { width: 100%; }
  .type-pick span { font-size: 11px; }
  .header-fav { display: none; }
  .acc-side { grid-template-columns: minmax(0, 1fr); }
  .acc-card-mini { grid-template-columns: 1fr auto 1fr auto; }
  .acc-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-nav a { gap: 8px; padding: 0 8px; }
  .acc-nav a .icon { width: 17px; height: 17px; }
  .acc-block { padding: 14px; }
  .bal-card { padding: 14px; }
  .bal-card:not(.bal-card-accent) { grid-template-columns: minmax(0, 1fr); }
  .bal-card:not(.bal-card-accent) .ring { display: none; }
  .bal-card:not(.bal-card-accent) b { font-size: 22px; }
  .bal-card p { margin-top: 6px; }
  .ord-track span { font-size: 11px; }
  .ord-track small { display: none; }
  .ord-actions .btn { flex: 1 1 auto; }
  .ord-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pics main price" "pics state state"; gap: 6px 12px; padding: 10px 12px 10px 10px; }
  .ord-pics { grid-area: pics; align-self: start; }
  .ord-pics > :nth-child(n + 2) { display: none; }
  .ord-main { grid-area: main; }
  .ord-state { grid-area: state; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .ord-price { grid-area: price; align-self: start; font-size: 16px; }
  .ord-go { display: none; }
  .doc-list li { grid-template-columns: auto minmax(0, 1fr); }
  .doc-list li > .btn { grid-column: 2; justify-self: start; }
  .bike { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .bike-ico { width: 46px; height: 46px; }
  .bike-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: nowrap; }
  .bike-actions .icon-btn { margin-left: auto; }
  .form-row-3 { grid-template-columns: 1fr; }
  .garage-form .btn { justify-self: stretch; }
  .disc-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-card { padding: 16px; }
  .club-card-pct { font-size: 44px; }
  .perk-list li { grid-template-columns: auto minmax(0, 1fr); }
  .perk-list li > :last-child { grid-column: 2; justify-self: start; }
  .cert-mini { grid-template-columns: 96px minmax(0, 1fr); }
  .cert-activate { grid-template-columns: 1fr; }
  .hist li { grid-template-columns: auto minmax(0, 1fr); }
  .hist b { grid-column: 2; }
  .rv-item { grid-template-columns: 56px minmax(0, 1fr); }
  .rv-item > img { width: 56px; height: 56px; }
  .rv-item > .btn, .rv-item > .st { grid-column: 2; justify-self: start; }
  .seg-wide button { padding: 0 8px; font-size: 12px; }
  .acc-save .btn { flex: 1; }
}

@media (max-width: 420px) {
  .header-tools .acc-btn { display: none; }
  .header-bar { gap: 8px; }
  .header-tools { gap: 2px; }
}

@media (max-width: 359px) {
  .rail-bar .seg button { font-size: 12px; }
  .card-foot { flex-wrap: wrap; }
  .panel h3 { font-size: 17px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { flex: 1 1 100%; }
  .picker .type-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Deck (site review) ---------- */
.deck-body { --bar: 56px; padding-bottom: 0; }
.deck-bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar);
  display: flex; align-items: center; gap: 18px; padding: 0 max(var(--pad), calc((100% - 1280px) / 2));
  background: rgba(10, 10, 11, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.deck-bar img { width: 104px; height: auto; }
.deck-title { color: var(--muted); font-size: 13px; font-weight: 700; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.deck-count { margin-left: auto; display: inline-flex; gap: 6px; font: 800 13px/1 var(--head); color: var(--dim); font-variant-numeric: tabular-nums; }
.deck-count b { color: var(--text); }
.deck-full { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.deck-full:hover { color: var(--text); border-color: var(--line-strong); }
.deck-full .icon { width: 16px; height: 16px; }
.deck-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.deck-progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.25s var(--ease); }

.slide {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 32px);
  padding: calc(var(--bar) + clamp(24px, 4vh, 48px)) max(var(--pad), calc((100% - 1280px) / 2)) clamp(52px, 7vh, 72px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 0;
}
.slide::after {
  content: "Belbike · Разбор сайта · ноябрь 2026"; position: absolute; left: max(var(--pad), calc((100% - 1280px) / 2)); bottom: 22px;
  color: var(--dim); font-size: 12px; font-weight: 600;
}
.slide-head { display: flex; align-items: center; gap: 14px; }
.slide-no { font: 800 13px/1 var(--head); color: var(--orange); padding: 5px 8px; border: 1px solid rgba(255, 126, 0, 0.5); border-radius: 6px; font-variant-numeric: tabular-nums; }
.slide-sec { color: var(--muted); font: 800 12px/1.3 var(--head); letter-spacing: 0.14em; text-transform: uppercase; }
.slide h1 { font-size: clamp(44px, 6.6vw, 96px); text-transform: uppercase; max-width: 11ch; line-height: 0.96; margin-top: 18px; }
.slide h2 { font-size: clamp(30px, 4.2vw, 60px); text-transform: uppercase; max-width: 22ch; line-height: 1.02; }
.slide-lead { color: #d4d4d8; font-size: clamp(17px, 1.5vw, 21px); max-width: 48ch; margin-top: 22px; }
.slide-note { color: var(--muted); font-size: 14px; max-width: 92ch; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.slide-ask { display: grid; gap: 8px; padding: 20px 24px; border-radius: var(--radius-l); border: 1px solid rgba(255, 126, 0, 0.4); background: linear-gradient(120deg, rgba(255, 126, 0, 0.12), var(--surface) 60%); font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; }
.slide-ask span { color: var(--orange); font: 800 12px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; }

.slide-cover { justify-content: flex-end; gap: 36px; }
.slide-cover .slide-sec { color: var(--orange); }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 32px 48px; align-items: end; }
.cover-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.cover-meta div { padding: 14px 0; border-top: 1px solid var(--line); }
.cover-meta dt { color: var(--dim); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cover-meta dd { margin: 6px 0 0; font-weight: 700; }
.cover-shot { position: relative; margin: 0; height: clamp(160px, 24vh, 320px); overflow: hidden; border-radius: var(--radius-l) var(--radius-l) 0 0; border: 1px solid var(--line-strong); border-bottom: 0; }
.cover-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cover-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg)); }

.thesis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.thesis article { padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.thesis b { font: 800 14px/1 var(--head); color: var(--orange); }
.thesis h3 { font-size: 20px; text-transform: uppercase; margin: 14px 0 10px; }
.thesis p { color: #d4d4d8; font-size: 15px; }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note-card { padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.note-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 14px; }
.note-card p { color: #d4d4d8; font-size: 15px; }
.note-card .dash + p { margin-top: 14px; }
.note-warn { border-color: rgba(251, 191, 36, 0.35); }
.note-warn h3 { color: #fbbf24; }
.note-accent { border-color: rgba(255, 126, 0, 0.4); background: linear-gradient(140deg, rgba(255, 126, 0, 0.12), var(--surface) 60%); }
.big-line { font: 800 clamp(24px, 2.6vw, 34px)/1.05 var(--head); color: var(--text) !important; text-transform: uppercase; margin-bottom: 14px; }
.dash { display: grid; gap: 9px; }
.dash li { position: relative; padding-left: 20px; color: #d4d4d8; font-size: 15px; }
.dash li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 2px; background: var(--orange); }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.ledger li { position: relative; display: grid; gap: 4px; padding: 18px 0 18px 46px; border-top: 1px solid var(--line); }
.ledger li::before {
  position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 800 17px/1 var(--head);
}
.ledger-plus li::before { content: "+"; background: rgba(74, 222, 128, 0.14); color: var(--green); }
.ledger-minus li::before { content: "−"; background: rgba(255, 77, 79, 0.14); color: var(--red); }
.ledger strong { font-size: 17px; }
.ledger span { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split h2 { margin-bottom: 26px; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.shot { margin: 0; min-width: 0; }
.shot-frame { position: relative; border-radius: 10px; border: 1px solid var(--line-strong); border-top: 20px solid var(--surface-2); background: var(--surface-2); box-shadow: var(--shadow); }
.shot-frame::before { content: ""; position: absolute; left: 10px; top: -13px; width: 36px; height: 6px; background: radial-gradient(circle, var(--line-strong) 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x; }
.shot-frame img { width: 100%; height: auto; border-radius: 0 0 9px 9px; }
.shot figcaption, .deck-phone figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px; }
figcaption em { font: 800 11px/1 var(--head); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; }
figcaption .was { background: rgba(255, 77, 79, 0.14); color: #ff8a8b; }
figcaption .now { background: rgba(74, 222, 128, 0.14); color: var(--green); }

.pin, .pins-legend b {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font: 800 13px/1 var(--head);
}
.pin { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.3), 0 4px 14px rgba(0, 0, 0, 0.5); }
.pin-ok, .pins-ok b { background: var(--green); color: #052e16; }
.pin-ok { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.3), 0 4px 14px rgba(0, 0, 0, 0.5); }
.pins-legend { display: grid; gap: 14px; }
.pins-legend li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; color: #d4d4d8; font-size: 15px; }
.pins-legend b { width: 26px; height: 26px; font-size: 12px; }
.pins-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.pins-row li { font-size: 14px; }

.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.deck-phone { margin: 0; min-width: 0; }
.phone-frame { border-radius: 26px; border: 6px solid var(--surface-2); overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); max-height: 43vh; }
.phone-frame img { width: 100%; height: auto; }

.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nums div { padding-top: 16px; border-top: 2px solid var(--orange); }
.nums b { display: block; font: 800 clamp(44px, 5.4vw, 80px)/1 var(--head); }
.nums span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 24ch; }
.nums code { color: var(--text); }

.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.matrix tbody th { width: 26%; font-weight: 700; }
.matrix td { color: #d4d4d8; }
.matrix td:nth-child(2) { color: var(--muted); }
.mk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
.mk-good { background: var(--green); }
.mk-bad { background: var(--red); }
.mk-mid { background: #fbbf24; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { padding-top: 18px; border-top: 2px solid var(--line-strong); }
.steps li:first-child { border-color: var(--orange); }
.steps span { color: var(--orange); font: 800 12px/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase; }
.steps h3 { font-size: 20px; text-transform: uppercase; margin: 12px 0 10px; }
.steps p { color: #d4d4d8; font-size: 15px; }

.asks { counter-reset: ask; display: grid; max-width: 900px; }
.asks li { counter-increment: ask; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.asks li::before { content: counter(ask, decimal-leading-zero); position: absolute; left: 0; top: 14px; color: var(--orange); font: 800 15px/1.6 var(--head); }
.asks b { color: var(--text); }
.end-links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1100px) {
  .thesis, .cols-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-frame { max-height: none; }
  .nums, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pair, .ledger, .split-even, .cover-grid { grid-template-columns: 1fr; }
  .slide { min-height: auto; }
  .slide-cover { min-height: 100svh; }
}

@media (max-width: 620px) {
  .deck-bar { gap: 12px; }
  .deck-title, .deck-full span { display: none; }
  .deck-full { padding: 0 9px; }
  .slide::after { display: none; }
  .slide { padding-bottom: 40px; }
  .pin { width: 24px; height: 24px; font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
  .nums { gap: 18px; }
  .cover-meta { grid-template-columns: 1fr; }
}

@media print {
  .deck-bar { display: none; }
  .slide { min-height: auto; padding-top: 32px; break-after: page; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
