/* ==========================================================================
   KBR Sport — визуальный язык: тёмный графит + volt, «спортивный техцентр»
   Секции: 1 токены · 2 база · 3 примитивы · 4 шапка · 5 герой · 6 лента
   7 категории · 8 бренды · 9 каталог · 10 сравнение · 11 квиз · 12 оплата
   13 преимущества · 14 доставка · 15 FAQ · 16 о магазине · 17 контакты
   18 подвал · 19 корзина · 20 модалка · 21 карусель · 22 toast/dock
   23 адаптив · 24 печать/reduced-motion
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --bg: #05070b;
  --bg-2: #080b11;
  --panel: #0c1017;
  --panel-2: #111722;
  --panel-3: #172030;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #f2f5f9;
  --muted: #98a4b5;
  --faint: #78859a;

  --volt: #b7e337;
  --volt-bright: #d6f96a;
  --volt-deep: #78a512;
  --volt-ink: #0a1000;
  --blue: #3b8ef0;
  --blue-soft: #86bcf6;
  --blue-deep: #1a5aa8;
  --amber: #f7b73d;
  --hot: #ff6a3d;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.6);
  --sh-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --sh-3: 0 30px 80px rgba(0, 0, 0, 0.62);
  --inner-hl: inset 0 1px 0 rgba(255, 255, 255, 0.055);

  --glow-volt: 0 12px 34px rgba(183, 227, 55, 0.22);
  --grad-volt: linear-gradient(135deg, var(--volt-bright), var(--volt) 45%, var(--volt-deep));

  --dur: 0.22s;
  --dur-slow: 0.42s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --section-pad: clamp(36px, 4.4vw, 64px);
  --gap: clamp(16px, 1.6vw, 24px);
  --container: 1240px;
  --header-h: 72px;

  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', -apple-system, Roboto, sans-serif;
}

/* ---------- 2. База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
}

ul,
ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

p { margin: 0; }

strong { font-weight: 700; }

s { color: var(--faint); text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(183, 227, 55, 0.4);
  color: #fff;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: #222c3a;
  border: 2px solid var(--bg-2);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--volt-deep); }

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -180%);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--volt-ink);
  font-weight: 800;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1500;
  height: 2px;
  width: 0;
  background: var(--grad-volt);
  box-shadow: 0 0 14px rgba(183, 227, 55, 0.6);
}

/* ---------- 3. Примитивы ---------- */
.container {
  width: min(var(--container), 100% - clamp(28px, 5vw, 72px));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(18px, 2vw, 28px);
}
.section__head--center { flex-direction: column; align-items: center; text-align: center; }

.section__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--volt);
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
}

.section__title {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  max-width: 22ch;
}
.section__title--all { max-width: none; }

.section__title .accent { color: var(--volt); }

.section__lead {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

/* сетка-«миллиметровка» как фирменная текстура */
.grid-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 26px; height: 26px; stroke-width: 1.5; }
.icon--xl { width: 34px; height: 34px; stroke-width: 1.4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur), border-color var(--dur), color var(--dur);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--grad-volt);
  color: var(--volt-ink);
  box-shadow: var(--glow-volt);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(183, 227, 55, 0.34);
}

.btn--ghost {
  border: 1px solid var(--line-3);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover {
  border-color: var(--volt);
  color: var(--volt-bright);
  background: rgba(183, 227, 55, 0.08);
}

.btn--blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(59, 142, 240, 0.25);
}
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(59, 142, 240, 0.36); }

.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.82rem; }
.btn--full { width: 100%; }
.btn--icon { min-height: 44px; width: 44px; padding: 0; border-radius: 50%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  color: var(--muted);
}
.chip svg { color: var(--volt); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--sale { background: var(--hot); color: #170500; }
.badge--hit { background: var(--amber); color: #1a1000; }
.badge--new { background: rgba(59, 142, 240, 0.2); color: var(--blue-soft); border: 1px solid rgba(59, 142, 240, 0.45); }
.badge--stock { background: var(--volt); color: #101203; }
.badge--order { background: rgba(255, 178, 71, 0.16); color: var(--amber); border: 1px solid rgba(255, 178, 71, 0.4); }
.chip--stock { color: var(--volt); }

.tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--volt);
}

.linklike {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text);
  text-align: left;
  transition: color var(--dur);
}
.linklike:hover { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; }

.nowrap { white-space: nowrap; }

/* reveal (только при включённом JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s var(--ease) calc(var(--i, 0) * 60ms), transform 0.62s var(--ease) calc(var(--i, 0) * 60ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 4. Шапка ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.8rem;
  color: var(--muted);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { color: var(--volt); width: 15px; height: 15px; }
.topbar__spacer { margin-left: auto; }
.topbar__accent { color: var(--volt-bright); }
.topbar__phone {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color var(--dur);
}
.topbar__phone:hover { color: var(--volt); }

.header {
  position: sticky;
  top: 0;
  z-index: 1200;
  transition: background var(--dur), border-color var(--dur), box-shadow var(--dur);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}
.header.is-stuck {
  background: rgba(6, 9, 14, 0.82);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.header.is-stuck .header__inner { height: 62px; }

.logo { display: inline-flex; align-items: center; }
.logo__svg { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.header__phone svg { color: var(--volt); }
.header__phone:hover {
  border-color: var(--volt);
  color: var(--volt-bright);
  background: rgba(183, 227, 55, 0.07);
}

.btn-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease);
}
.btn-cart:hover { border-color: var(--volt); background: rgba(183, 227, 55, 0.1); }
.btn-cart.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.14); }
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--volt-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Герой ---------- */
.hero {
  position: relative;
  padding-block: clamp(34px, 4.2vw, 58px) clamp(30px, 3.6vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 8%, rgba(59, 142, 240, 0.16) 0%, transparent 60%),
    radial-gradient(70% 60% at 12% 100%, rgba(183, 227, 55, 0.12) 0%, transparent 62%),
    var(--bg);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(183, 227, 55, 0.3);
  border-radius: 999px;
  background: rgba(183, 227, 55, 0.07);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--volt-bright);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 4px rgba(183, 227, 55, 0.2);
}

.hero__title {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -0.012em;
}
.hero__title em {
  font-style: normal;
  color: var(--volt);
}
.hero__title .hl {
  position: relative;
  white-space: nowrap;
}
.hero__title .hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.1em;
  background: linear-gradient(90deg, rgba(183, 227, 55, 0.85), rgba(59, 142, 240, 0.7));
  border-radius: 2px;
  transform: skewX(-16deg);
}
.hero__lead {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero__perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero__perks li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.hero__perks svg { color: var(--volt); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.hero__stats div { padding-right: 12px; border-right: 1px solid var(--line); }
.hero__stats div:last-child { border-right: 0; }
.hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero__stats dt span { color: var(--volt); font-size: 0.7em; }
.hero__stats dd { margin: 6px 0 0; font-size: 0.78rem; color: var(--faint); line-height: 1.35; }

/* «стенд» с товаром */
.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 55% at 50% 12%, rgba(183, 227, 55, 0.14) 0%, transparent 70%),
    linear-gradient(165deg, var(--panel-2), var(--panel));
  box-shadow: var(--sh-3), var(--inner-hl);
  padding: 14px;
  overflow: hidden;
}
.stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.stage__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  margin: 6px 0 2px;
}
.stage__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.6));
}
.stage__glow {
  position: absolute;
  inset: 12% 8% 4%;
  background: radial-gradient(50% 50% at 50% 60%, rgba(183, 227, 55, 0.3), transparent 70%);
  filter: blur(28px);
  z-index: -1;
}
.stage__flag {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 3;
  padding: 7px 20px 7px 14px;
  background: var(--hot);
  color: #170500;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.stage__specs {
  position: absolute;
  left: 0;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stage__price {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  background: rgba(5, 7, 11, 0.6);
  border: 1px solid var(--line);
}
.stage__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.stage__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.stage__price-now {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--volt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stage__price-old { font-size: 0.95rem; }
.stage__note { margin-top: 8px; font-size: 0.76rem; color: var(--faint); line-height: 1.45; }
.stage__actions { display: flex; gap: 10px; margin-top: 10px; }
.stage__actions .btn { flex: 1; }

/* ---------- 6. Лента-тикер ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding: 13px 0;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker__track span.strong { color: var(--volt); }
.ticker__sep {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--volt-deep);
  flex: 0 0 auto;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 7. Категории ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
  gap: var(--gap);
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 208px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.cat::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 227, 55, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-slow);
}
.cat:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 227, 55, 0.4);
  box-shadow: var(--sh-2);
}
.cat:hover::after { opacity: 1; }
.cat__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--volt);
}
.cat__count { font-size: 0.78rem; color: var(--faint); }
.cat__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  text-transform: uppercase;
}
.cat__from { margin-top: auto; font-size: 0.86rem; color: var(--muted); }
.cat__from b { color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }
.cat__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--volt);
  transition: transform var(--dur) var(--ease);
}
.cat:hover .cat__arrow { transform: translateX(5px); }
.cat--assist { background: linear-gradient(150deg, rgba(59, 142, 240, 0.18), var(--panel)); }
.cat--assist .cat__icon { color: var(--blue-soft); border-color: rgba(59, 142, 240, 0.4); }

/* ---------- 8. Бренды ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}
.brand {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  transition: background var(--dur);
}
.brand:last-child { border-right: 0; }
.brand:hover { background: var(--panel-2); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand__meta { margin-top: 4px; font-size: 0.78rem; color: var(--faint); }

/* ---------- 9. Каталог ---------- */
.promo {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  padding: 20px clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 106, 61, 0.35);
  border-radius: var(--r-lg);
  background:
    linear-gradient(110deg, rgba(255, 106, 61, 0.16), rgba(183, 227, 55, 0.08) 60%, transparent),
    var(--panel);
}
.promo__percent {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--hot);
}
.promo__info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.promo__info p { margin-top: 6px; color: var(--muted); font-size: 0.9rem; max-width: 74ch; }

.toolbar {
  position: sticky;
  top: calc(var(--header-h) - 6px);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 13, 19, 0.86);
  backdrop-filter: blur(12px);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: color var(--dur), border-color var(--dur), background var(--dur), transform var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-3); }
.filter-btn .n {
  font-family: var(--font-body);
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--faint);
}
.filter-btn.is-active {
  color: var(--volt-ink);
  background: var(--grad-volt);
  border-color: transparent;
}
.filter-btn.is-active .n { background: rgba(10, 16, 0, 0.22); color: rgba(10, 16, 0, 0.75); }

.sort {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--faint);
}
.sort select {
  padding: 9px 34px 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a4b5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 11px center / 15px;
  font-size: 0.85rem;
  appearance: none;
  cursor: pointer;
}
.sort select:hover { border-color: var(--volt); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
  gap: var(--gap);
}

.card {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  box-shadow: var(--inner-hl);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 227, 55, 0.42);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
}
.card__media {
  position: relative;
  /* Фото в карточке — строго 4:3; владелец позже приведёт все изображения к этому формату */
  aspect-ratio: 4 / 3;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--bg-2);
  overflow: hidden;
  cursor: pointer;
}
.card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.6);
  color: var(--muted);
  transition: color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.card__fav:hover { color: var(--amber); border-color: var(--amber); transform: scale(1.08); }
.card__fav[aria-pressed='true'] { color: var(--amber); border-color: var(--amber); background: rgba(247, 183, 61, 0.16); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 14px;
}
.card__cat {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.16;
  cursor: pointer;
  transition: color var(--dur);
}
.card__name:hover { color: var(--volt); }
.card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; overflow: hidden; }
.card__specs li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--faint);
}
.card__rating svg { color: var(--amber); fill: var(--amber); stroke: none; width: 14px; height: 14px; }
.card__rating b { color: var(--text); font-weight: 700; }

.card__pricing { margin-top: auto; padding-top: 8px; }
.card__prices { display: flex; align-items: baseline; gap: 10px; }
.price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price--old { font-size: 0.95rem; font-weight: 400; }
.card__save {
  margin-top: 7px;
  font-size: 0.76rem;
  color: var(--volt);
  line-height: 1.4;
}
.card__save b { font-weight: 800; }
.card__month {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--faint);
}
.card__month svg { color: var(--blue); width: 14px; height: 14px; }
.card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}
.card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--grad-volt);
  color: var(--volt-ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur);
}
.card__add:hover { transform: translateY(-2px); box-shadow: var(--glow-volt); }
.card__add.is-added { background: var(--volt); }
.card__call {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--dur), border-color var(--dur);
}
.card__call:hover { color: var(--blue-soft); border-color: var(--blue); }

.catalog__more-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 20px;
}
.catalog__count { font-size: 0.8rem; color: var(--faint); }

.catalog__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--panel);
  font-size: 0.85rem;
  color: var(--muted);
}
.catalog__foot svg { color: var(--volt); }
.catalog__foot b { color: var(--text); }

.empty {
  padding: 54px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
}
.noscript {
  padding: 18px 22px;
  border: 1px solid rgba(247, 183, 61, 0.4);
  border-radius: var(--r-md);
  background: rgba(247, 183, 61, 0.08);
  color: var(--amber);
  font-size: 0.9rem;
}

/* ---------- 10. Сравнение ---------- */
.compare__wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
}
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.compare caption {
  padding: 16px 20px;
  text-align: left;
  color: var(--faint);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.compare th,
.compare td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.compare thead th {
  position: sticky;
  top: 0;
  background: var(--panel-2);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}
.compare tbody th {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.compare tbody tr { transition: background var(--dur); }
.compare tbody tr:hover { background: rgba(183, 227, 55, 0.05); }
.compare tbody tr.is-lead { background: rgba(183, 227, 55, 0.07); }
.compare .c-price { font-family: var(--font-display); font-size: 1.05rem; color: var(--volt); font-variant-numeric: tabular-nums; }
.compare .c-old { color: var(--faint); font-size: 0.8rem; }
.compare .btn { margin-top: 4px; }
.compare__hint {
  display: none;
  padding: 10px 16px;
  font-size: 0.76rem;
  color: var(--faint);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ---------- 11. Квиз ---------- */
.quiz {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}
.quiz__aside {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(59, 142, 240, 0.14), var(--panel));
}
.quiz__aside h3 { font-size: 1.2rem; text-transform: uppercase; }
.quiz__aside p { margin-top: 8px; color: var(--muted); font-size: 0.88rem; }
.quiz__steps { margin-top: 12px; display: grid; gap: 6px; }
.quiz__steps li { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--muted); }
.quiz__steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(183, 227, 55, 0.16);
  color: var(--volt);
  font-family: var(--font-display);
  font-size: 0.8rem;
}
.quiz__panel {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--inner-hl);
}
.quiz__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.quiz__progress i {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: var(--line-2);
  transition: background var(--dur-slow);
}
.quiz__progress i.is-done { background: var(--volt); }
.quiz__q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
}
.quiz__hint { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.quiz__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 8px;
  margin-top: 12px;
}
.quiz__opt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease);
}
.quiz__opt:hover {
  border-color: var(--volt);
  background: rgba(183, 227, 55, 0.08);
  transform: translateY(-3px);
}
.quiz__opt b { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; }
.quiz__opt span { font-size: 0.78rem; color: var(--faint); }
.quiz__weight { margin-top: 12px; display: grid; gap: 10px; }
.quiz__weight-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quiz__weight-row input {
  width: 150px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(5, 7, 11, 0.55);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}
.quiz__weight-row input:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgba(183, 227, 55, 0.16); }
.quiz__unit { font-family: var(--font-display); color: var(--faint); }
.quiz__presets { display: flex; flex-wrap: wrap; gap: 7px; }
.quiz__preset {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.quiz__preset:hover { color: var(--volt); border-color: var(--volt); background: rgba(183, 227, 55, 0.08); }
.quiz__note { font-size: 0.76rem; color: var(--faint); }
.quiz__result { margin-top: 14px; }
.quiz__result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}
.result-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(183, 227, 55, 0.3);
  border-radius: var(--r-md);
  background: rgba(183, 227, 55, 0.06);
  text-align: left;
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.result-card:hover { transform: translateY(-3px); border-color: var(--volt); }
.result-card img { width: 64px; height: 54px; object-fit: contain; }
.result-card b { display: block; font-family: var(--font-display); font-size: 0.96rem; }
.result-card span { display: block; font-size: 0.76rem; color: var(--muted); }
.result-card .reserve { color: var(--volt); font-weight: 700; }
.result-card .p { margin-top: 4px; font-family: var(--font-display); color: var(--volt); font-size: 1rem; }
.quiz__empty { padding: 14px; border: 1px solid rgba(255, 106, 61, 0.4); border-radius: var(--r-md); background: rgba(255, 106, 61, 0.08); color: var(--muted); font-size: 0.9rem; }
.quiz__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.quiz__reset {
  font-size: 0.84rem;
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz__reset:hover { color: var(--volt); }
.quiz__why {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(183, 227, 55, 0.25);
  border-radius: var(--r-md);
  background: rgba(183, 227, 55, 0.05);
}
.quiz__why > b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text);
}
.quiz__why p { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
.quiz__why ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.quiz__why li { font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.quiz__why li b { color: var(--text); }
.quiz__summary { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.quiz__summary--none { color: var(--amber); }
.quiz__verdict {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(183, 227, 55, 0.14);
  color: var(--volt);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quiz__verdict--spec { background: rgba(255, 178, 71, 0.14); color: var(--amber); }
.quiz__verdict--budget,
.quiz__verdict--softBudget { background: rgba(59, 142, 240, 0.16); color: #8cbcff; }
.quiz__verdict--soft { background: rgba(255, 106, 61, 0.14); color: #ff9a76; }
.result-card .reason { font-size: 0.72rem; line-height: 1.4; color: var(--faint); }
.result-card .quiz__stock { margin-top: 4px; font-size: 0.72rem; color: var(--volt); }
.result-card .p { margin-top: 5px; }
.quiz__alt { margin-top: 16px; }
.quiz__alt h4 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--muted);
}
.quiz__result-grid--alt .result-card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.quiz__compare { margin-top: 16px; }
.quiz .compare { min-width: 720px; }
.quiz .compare td { white-space: normal; }
.quiz .compare .c-reserve,
.quiz .compare .c-stock { color: var(--volt); font-family: var(--font-display); font-weight: 700; }

/* ---------- 12. Оплата ---------- */
.pay-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--gap);
}
.pay-card {
  position: relative;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  overflow: hidden;
}
.pay-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-volt);
}
.pay-card--blue::before { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }
.pay-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(183, 227, 55, 0.14);
  color: var(--volt);
}
.pay-card--blue .pay-card__tag { background: rgba(59, 142, 240, 0.16); color: var(--blue-soft); }
.pay-card h3 { margin-top: 14px; font-size: 1.6rem; text-transform: uppercase; }
.pay-card__desc { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.pay-card__list { margin-top: 16px; display: grid; gap: 9px; }
.pay-card__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text);
}
.pay-card__list svg { color: var(--volt); margin-top: 4px; width: 16px; height: 16px; }
.pay-card--blue .pay-card__list svg { color: var(--blue-soft); }
.pay-card__calc {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.pay-card__calc .big {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}
.pay-card__calc small { color: var(--faint); font-size: 0.78rem; }
.pay-why {
  margin-top: var(--gap);
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(59, 142, 240, 0.3);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(59, 142, 240, 0.14), transparent 60%),
    var(--panel);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
}
.pay-why__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(59, 142, 240, 0.18);
  color: var(--blue-soft);
}
.pay-why h3 { font-size: 1.24rem; text-transform: uppercase; }
.pay-why p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; max-width: 92ch; }
.pay-why b { color: var(--text); }

/* ---------- 12.1 Исламская рассрочка (мурабаха) ---------- */
.islam {
  margin-top: var(--gap);
  border: 1px solid rgba(183, 227, 55, 0.28);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(183, 227, 55, 0.09), transparent 60%),
    var(--panel);
  overflow: hidden;
}
.islam__head { padding: clamp(16px, 2vw, 22px); border-bottom: 1px solid var(--line); }
.islam__head h3 { margin-top: 8px; font-size: 1.35rem; text-transform: uppercase; }
.islam__head p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; max-width: 100ch; }
.islam__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.islam__controls {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border-right: 1px solid var(--line);
}
.islam__field { display: grid; gap: 10px; }
.islam__field > span {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.islam__field output {
  color: var(--volt);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.islam__field select,
.islam__field input[type='number'] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.islam__field select:focus-visible,
.islam__field input:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.islam__field input[type='range'] { width: 100%; accent-color: var(--volt); cursor: pointer; }
.islam__quick,
.islam__terms { display: flex; flex-wrap: wrap; gap: 8px; }
.islam__quick button,
.islam__terms button {
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.islam__quick button:hover,
.islam__terms button:hover { color: var(--text); border-color: var(--line-3); }
.islam__quick button.is-active,
.islam__terms button.is-active {
  background: var(--grad-volt);
  border-color: transparent;
  color: var(--volt-ink);
  font-weight: 700;
}
.islam__result {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 22px);
  background: linear-gradient(160deg, rgba(183, 227, 55, 0.07), transparent 55%);
}
.islam__result-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.islam__monthly {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
}
.islam__schedule { margin-top: 8px; color: var(--muted); font-size: 0.85rem; }
.islam__breakdown { margin-top: 14px; display: grid; gap: 7px; }
.islam__breakdown li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.islam__breakdown b { color: var(--text); font-variant-numeric: tabular-nums; }
.islam__breakdown em { font-style: normal; color: var(--volt); }
.islam__total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--text); font-weight: 600; }
.islam__total b { font-family: var(--font-display); font-size: 1.15rem; color: var(--volt); }
.islam__note { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; color: var(--faint); font-size: 0.78rem; line-height: 1.5; }
.islam__note svg { flex: 0 0 auto; color: var(--volt); }
.islam__result .btn { margin-top: 14px; }

/* ---------- 13. Преимущества (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.bento__item {
  position: relative;
  grid-column: span 2;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.bento__item:hover { transform: translateY(-4px); border-color: rgba(183, 227, 55, 0.35); }
.bento__item--wide { grid-column: span 3; }
.bento__item--hero {
  grid-column: span 3;
  background:
    radial-gradient(80% 130% at 0% 0%, rgba(183, 227, 55, 0.16), transparent 55%),
    linear-gradient(165deg, var(--panel-2), var(--panel));
}
.bento__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(183, 227, 55, 0.13);
  color: var(--volt);
}
.bento__item--alt .bento__icon { background: rgba(59, 142, 240, 0.16); color: var(--blue-soft); }
.bento__item h3 { font-size: 1.2rem; text-transform: uppercase; }
.bento__item p { margin-top: 8px; font-size: 0.89rem; color: var(--muted); }
.bento__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.07);
}

/* ---------- 14. Доставка (таймлайн) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--volt);
}
.step h3 { font-size: 1.06rem; text-transform: uppercase; }
.step p { margin-top: 7px; font-size: 0.86rem; color: var(--muted); }
.step::after {
  content: '';
  position: absolute;
  top: 34px;
  right: -12px;
  width: 24px;
  height: 1px;
  background: var(--line-2);
}
.step:last-child::after { display: none; }

.deliv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: stretch;
}
.info-card {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}
.info-card h3 { font-size: 1.3rem; text-transform: uppercase; }
.info-card ul { margin-top: 16px; display: grid; gap: 12px; }
.info-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; }
.info-card li svg { color: var(--volt); margin-top: 3px; width: 17px; height: 17px; }
.info-card li b { display: block; }
.info-card li span { color: var(--muted); font-size: 0.86rem; }
.big-stat {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(183, 227, 55, 0.35);
  background: radial-gradient(70% 70% at 50% 30%, rgba(183, 227, 55, 0.12), transparent 65%);
}
.big-stat b {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--volt);
}
.big-stat span { color: var(--muted); font-size: 0.9rem; max-width: 26ch; margin-inline: auto; }

/* ---------- 15. FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: start;
}
.faq__list { display: grid; gap: 10px; width: 100%; }
.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(183, 227, 55, 0.28);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(183, 227, 55, 0.12), transparent 65%),
    linear-gradient(170deg, var(--panel-2), var(--panel));
  box-shadow: var(--inner-hl);
}
.faq__aside p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.faq__aside-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.faq__aside-note { font-size: 0.78rem; color: var(--faint); }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
  transition: border-color var(--dur);
}
.faq__item:hover { border-color: var(--line-2); }
.faq__item[open] { border-color: rgba(183, 227, 55, 0.4); background: var(--panel-2); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '';
  margin-left: auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--volt);
  border-bottom: 2px solid var(--volt);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  padding: 0 18px 16px 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.faq__a p + p { margin-top: 10px; }
.faq__n {
  font-family: var(--font-display);
  color: var(--volt);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---------- 16. О магазине ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
}
.about__text p { margin-top: 16px; color: var(--muted); max-width: 62ch; }
.about__text p:first-of-type { margin-top: 20px; }
.about__text strong { color: var(--text); }
.about__quote {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(59, 142, 240, 0.18), transparent 60%),
    linear-gradient(165deg, var(--panel-2), var(--panel));
}
.about__quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.22;
  text-transform: uppercase;
}
.about__quote blockquote::before { content: '«'; color: var(--volt); }
.about__quote blockquote::after { content: '»'; color: var(--volt); }
.about__quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.84rem;
  color: var(--faint);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.kpis div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
}
.kpis b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
}
.kpis span { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--faint); line-height: 1.35; }

/* ---------- 17. Контакты ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(183, 227, 55, 0.14), transparent 60%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--sh-2), var(--inner-hl);
}
.contact h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; }
.contact__lead { margin-top: 14px; color: var(--muted); }
.contact__list { margin-top: 24px; display: grid; gap: 14px; }
.contact__list a,
.contact__list p { display: flex; align-items: center; gap: 13px; font-size: 0.95rem; }
.contact__list svg { color: var(--volt); }
.contact__list a { transition: color var(--dur); }
.contact__list a:hover { color: var(--volt); }
.contact__phones { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.field input,
.field textarea,
.field select {
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(5, 7, 11, 0.55);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(183, 227, 55, 0.16);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #56627380; color: #5b6779; }
.form__hint { font-size: 0.78rem; color: var(--faint); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 18. Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: clamp(44px, 5vw, 70px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  padding-bottom: 34px;
}
.footer__col h4 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt);
}
.footer__col a,
.footer__col p {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--dur);
}
.footer__col a:hover { color: var(--volt); }
.footer__slogan {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer__note { margin-top: 10px; font-size: 0.84rem; color: var(--faint); max-width: 34ch; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- 19. Корзина ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1450;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  transform: translateX(102%);
  transition: transform var(--dur-slow) var(--ease);
}
.cart.is-open { transform: none; }
.cart__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart__head h3 { font-size: 1.35rem; text-transform: uppercase; }
.cart__head small { color: var(--faint); }
.cart__close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.cart__close:hover { color: var(--hot); border-color: var(--hot); transform: rotate(90deg); }
.cart__items { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; gap: 14px; align-content: start; }
.cart__empty {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.cart__empty-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  color: var(--faint);
}
.cart__empty p { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.cart__empty small { color: var(--faint); font-size: 0.84rem; }
.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-item__img {
  width: 74px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}
.cart-item__img img { max-height: 60px; object-fit: contain; }
.cart-item__name { font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.cart-item__price { margin-top: 4px; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cart-item__price strong { color: var(--volt); font-family: var(--font-display); font-size: 1rem; }
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.cart-item__qty button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--dur), color var(--dur);
}
.cart-item__qty button:hover { background: rgba(183, 227, 55, 0.16); color: var(--volt-bright); }
.cart-item__qty span { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-item__remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--faint);
  transition: color var(--dur), background var(--dur);
}
.cart-item__remove:hover { color: var(--hot); background: rgba(255, 106, 61, 0.12); }
.cart-item__note { font-size: 0.74rem; color: var(--faint); margin-top: 6px; }
.cart__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
.cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cart__total span { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cart__total strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--volt); font-variant-numeric: tabular-nums; }
.cart__lines { margin-top: 10px; display: grid; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.cart__lines div { display: flex; justify-content: space-between; gap: 12px; }
.cart__lines b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.cart__note { margin-top: 12px; font-size: 0.76rem; color: var(--faint); line-height: 1.5; }
.cart__note.note--warn { color: var(--amber); }
.cart__foot .btn { margin-top: 14px; }

/* ---------- 20. Модалка товара ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 34px);
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  height: min(92dvh, 900px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  box-shadow: var(--sh-3);
  transform: translateY(22px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur);
}
.modal-overlay.is-open .modal { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.65);
  color: var(--muted);
  transition: color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.modal__close:hover { color: var(--hot); border-color: var(--hot); transform: rotate(90deg); }
.modal__image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(65% 60% at 50% 45%, rgba(183, 227, 55, 0.12), transparent 68%),
    var(--bg-2);
  border-right: 1px solid var(--line);
}
.modal__badges {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: flex;
  gap: 6px;
}
.modal__body {
  padding: clamp(20px, 2.6vw, 32px);
  overflow-y: auto;
}
.modal__cat {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt);
}
.modal__body h3 { margin-top: 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; }
.modal__desc { margin-top: 12px; color: var(--muted); font-size: 0.94rem; }
.modal__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--faint);
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--amber); stroke: none; }
.stars svg.off { fill: rgba(255, 255, 255, 0.16); }
.specs {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.specs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}
.specs li:last-child { border-bottom: 0; }
.specs li:nth-child(odd) { background: rgba(255, 255, 255, 0.018); }
.specs li span { color: var(--faint); }
.specs li strong { font-family: var(--font-display); font-size: 0.98rem; text-align: right; }
.pay-options {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(183, 227, 55, 0.28);
  border-radius: var(--r-md);
  background: rgba(183, 227, 55, 0.06);
  display: grid;
  gap: 9px;
}
.pay-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.88rem;
}
.pay-option > span { color: var(--muted); }
.pay-option > strong { font-family: var(--font-display); font-size: 1.08rem; white-space: nowrap; }
.pay-option--cash strong { color: var(--volt); }
.pay-option--split strong { color: var(--blue-soft); }
.pay-option__sub { display: block; font-size: 0.72rem; color: var(--faint); }
.pay-legend { margin-top: 4px; font-size: 0.76rem; color: var(--faint); line-height: 1.5; }
.modal__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal__price {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--volt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.modal__price s { font-size: 1rem; }
.modal__buttons { display: flex; gap: 10px; margin-left: auto; }
.modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--faint);
}
.modal__foot span { display: inline-flex; align-items: center; gap: 6px; }
.modal__foot svg { color: var(--volt); width: 14px; height: 14px; }

/* ---------- 21. Карусель ---------- */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
/* в плитке товара и в модалке карусель обязана вписываться в рамку, а не растягивать её.
   Высота задаётся явно, иначе фото с процентной высотой вылезают за рамку и перекрывают текст. */
.card__media > .carousel {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}
/* В модалке карусель живёт внутри #modalImage — растягиваем его на всю доступную высоту,
   чтобы слайды не схлопывались и не перекрывали миниатюры. */
.modal__image { grid-template-rows: minmax(0, 1fr) auto; }
#modalImage {
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: 0;
}
#modalImage > .carousel {
  position: absolute;
  inset: 0;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  pointer-events: none;
}
.carousel__slide.is-active { opacity: 1; transform: none; }
.carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.7);
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.carousel__nav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__nav--prev { left: 6px; }
.carousel__nav--next { right: 6px; }
.carousel:hover .carousel__nav,
.carousel:focus-within .carousel__nav { opacity: 1; }
.carousel__nav:hover { color: var(--volt); border-color: var(--volt); }
.carousel--modal .carousel__nav { width: 42px; height: 42px; margin-top: -21px; opacity: 1; }

/* Ватермарка только в модальном окне — правый нижний угол */
.carousel__watermark {
  position: absolute;
  bottom: 8%;
  right: 16px;
  width: 120px;
  height: 40px;
  object-fit: contain;
  opacity: 0.45;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(11px 0px 6px blue);
}
.carousel__dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  transition: background var(--dur), transform var(--dur) var(--ease);
}
.carousel__dot.is-active { background: var(--volt); transform: scale(1.3); }
.carousel__count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 4;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.7);
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}
.thumb {
  width: 62px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.thumb img { max-height: 44px; object-fit: contain; opacity: 0.62; transition: opacity var(--dur); }
.thumb.is-active { border-color: var(--volt); transform: translateY(-2px); }
.thumb.is-active img { opacity: 1; }
.thumb:hover { border-color: var(--line-3); }

/* ---------- 22. Toast + мобильный dock ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 1800;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 22px;
  border: 1px solid rgba(183, 227, 55, 0.4);
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.95);
  box-shadow: var(--sh-3);
  font-size: 0.88rem;
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 12px var(--volt);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 14, 0.92);
  backdrop-filter: blur(14px);
}
.dock .btn { flex: 1; min-height: 46px; padding: 10px 12px; font-size: 0.8rem; }
.dock__cart { position: relative; flex: 0 0 auto; }

/* ---------- 23. Адаптив ---------- */
@media (max-width: 1180px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { max-width: 560px; }
  .about,
  .quiz,
  .deliv-grid,
  .contact { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__aside { position: static; }
  .bento__item,
  .bento__item--hero,
  .bento__item--wide { grid-column: span 3; }
  .modal { grid-template-columns: minmax(0, 1fr); max-height: 92dvh; overflow-y: auto; }
  .modal__image {
    height: auto;
    grid-template-rows: minmax(220px, 46dvh) auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: calc(var(--header-h) + 20px) clamp(24px, 6vw, 48px) 30px;
    background: rgba(6, 9, 14, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    transition: transform var(--dur-slow) var(--ease);
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 1.35rem; padding: 10px 0; width: 100%; }
  .nav__link::after { left: 0; right: auto; width: 40px; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .topbar { display: none; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .hero__stats div:nth-child(2) { border-right: 0; }
  .compare__hint { display: block; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .pay-why { grid-template-columns: minmax(0, 1fr); }
  .islam__body { grid-template-columns: minmax(0, 1fr); }
  .islam__controls { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; padding-bottom: 74px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__item,
  .bento__item--hero,
  .bento__item--wide { grid-column: span 1; }
  .toolbar { position: static; }
  .sort { margin-left: 0; width: 100%; }
  .sort select { flex: 1; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: flex-start; }
  .dock { display: flex; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--brand { grid-column: span 2; }
  .hero__cta .btn,
  .stage__actions .btn { flex: 1; }
  .modal__buttons { margin-left: 0; width: 100%; }
  .modal__buttons .btn { flex: 1; }
  .step::after { display: none; }
  .toast { bottom: 88px; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: clamp(2.1rem, 9.6vw, 2.9rem); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__actions { grid-template-columns: minmax(0, 1fr); }
  .card__call { display: none; }
  .cats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 24. Движение и печать ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media print {
  .header, .topbar, .ticker, .cart, .cart-overlay, .modal-overlay, .dock, .toast, .scroll-progress { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 24. Кнопка 3D и просмотр glb-модели ---------- */
.btn--3d {
  grid-row: 3;
  width: 100%;
  margin-top: 12px;
  justify-content: center;
  border-color: rgba(183, 227, 55, 0.45);
  color: var(--volt);
  white-space: nowrap;
}
.btn--3d:hover { border-color: var(--volt); background: rgba(183, 227, 55, 0.08); }
.model3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.model3d-overlay.is-open { opacity: 1; }
.model3d-overlay[hidden] { display: none; }
.model3d {
  width: min(960px, 100%);
  height: min(680px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 14px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.model3d__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 10px;
}
.model3d__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.model3d__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
  cursor: pointer;
}
.model3d__close:hover { color: var(--hot); border-color: var(--hot); transform: rotate(90deg); }
.model3d__stage {
  position: relative;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(65% 60% at 50% 45%, rgba(183, 227, 55, 0.1), transparent 68%), var(--bg);
  overflow: hidden;
}
.model3d__stage model-viewer {
  width: 100%;
  height: 100%;
  --progress-bar-color: var(--volt);
}
.model3d__load {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.model3d__load--err { color: var(--hot); }
.model3d__hint {
  padding: 10px 4px 2px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ============================================================
   25. Светлая тема
   ============================================================ */

/* Кнопка переключения темы */
.btn-theme {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur), color var(--dur), transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.btn-theme:hover { border-color: var(--volt); color: var(--volt); background: rgba(183, 227, 55, 0.08); }
.btn-theme .btn-theme__sun { display: none; }
.btn-theme .btn-theme__moon { display: block; }

/* В светлой теме — показываем солнце, прячем луну */
[data-theme="light"] .btn-theme .btn-theme__sun { display: block; }
[data-theme="light"] .btn-theme .btn-theme__moon { display: none; }

/* Токены светлой темы */
[data-theme="light"] {
  --bg:      #f4f1ec;
  --bg-2:    #ede9e2;
  --panel:   #ffffff;
  --panel-2: #f7f5f1;
  --panel-3: #edeae4;
  --line:    rgba(0, 0, 0, 0.08);
  --line-2:  rgba(0, 0, 0, 0.14);
  --line-3:  rgba(0, 0, 0, 0.22);

  --text:    #1a1f2b;
  --muted:   #5a6275;
  --faint:   #8590a2;

  --volt:        #5a9e00;
  --volt-bright: #6db800;
  --volt-deep:   #3d6e00;
  --volt-ink:    #ffffff;

  --blue:      #1a6fd4;
  --blue-soft: #4a90d9;
  --blue-deep: #0f4fa0;
  --amber:     #d4860a;
  --hot:       #d94020;

  --sh-1: 0 1px 3px rgba(0, 0, 0, 0.10);
  --sh-2: 0 8px 24px rgba(0, 0, 0, 0.12);
  --sh-3: 0 20px 60px rgba(0, 0, 0, 0.16);
  --inner-hl: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --glow-volt: 0 8px 24px rgba(90, 158, 0, 0.18);
  --grad-volt: linear-gradient(135deg, var(--volt-bright), var(--volt) 45%, var(--volt-deep));
}

/* Шапка в светлой теме */
[data-theme="light"] .header {
  background: rgba(244, 241, 236, 0.92);
  border-bottom-color: var(--line-2);
}
[data-theme="light"] .header.is-stuck {
  background: rgba(244, 241, 236, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

/* Навигация */
[data-theme="light"] .nav__link { color: var(--muted); }
[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.is-active { color: var(--text); }

/* Карточки */
[data-theme="light"] .card {
  background: var(--panel);
  border-color: var(--line);
}
[data-theme="light"] .card:hover { box-shadow: var(--sh-2); }
[data-theme="light"] .card__cat { color: var(--muted); }
[data-theme="light"] .card__desc { color: var(--muted); }
[data-theme="light"] .card__specs li { background: var(--panel-2); color: var(--muted); border-color: var(--line); }
[data-theme="light"] .card__save { color: var(--volt-deep); }

/* Модальное окно */
[data-theme="light"] .modal {
  background: var(--panel);
  border-color: var(--line-2);
}
[data-theme="light"] .modal-overlay { background: rgba(180, 175, 168, 0.65); }

/* Корзина */
[data-theme="light"] .cart { background: var(--panel); border-color: var(--line-2); }
[data-theme="light"] .cart-overlay { background: rgba(180, 175, 168, 0.55); }
[data-theme="light"] .cart-item { border-color: var(--line); }

/* Герой */
[data-theme="light"] .hero {
  background: linear-gradient(160deg, #eae5dc 0%, #f4f1ec 60%, #dfe8f5 100%);
}

/* Кнопки */
[data-theme="light"] .btn-cart,
[data-theme="light"] .burger {
  border-color: var(--line-2);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}
[data-theme="light"] .btn-cart:hover { border-color: var(--volt); background: rgba(90, 158, 0, 0.08); }
[data-theme="light"] .btn-theme { border-color: var(--line-2); color: var(--muted); }
[data-theme="light"] .btn-theme:hover { border-color: var(--volt); color: var(--volt); background: rgba(90, 158, 0, 0.08); }
[data-theme="light"] .burger span { background: var(--text); }

/* Тикер */
[data-theme="light"] .ticker { background: var(--panel-2); border-color: var(--line); }
[data-theme="light"] .ticker__item { color: var(--muted); }

/* Категории */
[data-theme="light"] .cat { background: var(--panel); border-color: var(--line); }
[data-theme="light"] .cat:hover { border-color: var(--volt); box-shadow: var(--sh-2); }
[data-theme="light"] .cat__count { color: var(--muted); }

/* Секции */
[data-theme="light"] .payment { background: var(--bg-2); }
[data-theme="light"] .perks { background: var(--bg); }
[data-theme="light"] .delivery { background: var(--bg-2); }
[data-theme="light"] .faq { background: var(--bg); }
[data-theme="light"] .about { background: var(--bg-2); }
[data-theme="light"] .contacts { background: var(--bg); }
[data-theme="light"] .footer { background: var(--panel-2); border-top-color: var(--line); }

/* Аккордеон FAQ */
[data-theme="light"] .faq__q { color: var(--text); }
[data-theme="light"] .faq__a { color: var(--muted); }
[data-theme="light"] details[open] { border-color: var(--volt); }

/* Таблица сравнения */
[data-theme="light"] .compare th,
[data-theme="light"] .compare td { border-color: var(--line); }
[data-theme="light"] .compare thead { background: var(--panel-2); }
[data-theme="light"] .compare tbody tr:hover { background: var(--panel-2); }

/* Toast */
[data-theme="light"] #toast {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
}

/* Плавный переход всего сайта при смене темы */
body {
  transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}

/* Toolbar (панель фильтров каталога) */
[data-theme="light"] .toolbar {
  background: rgba(237, 233, 226, 0.92);
  border-color: var(--line-2);
}
[data-theme="light"] .filter-btn {
  background: transparent;
  border-color: var(--line-2);
  color: var(--muted);
}
[data-theme="light"] .filter-btn:hover {
  color: var(--text);
  border-color: var(--line-3);
  background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .filter-btn.is-active {
  color: var(--volt-ink);
  background: var(--grad-volt);
  border-color: transparent;
}
[data-theme="light"] .filter-btn .n { color: var(--faint); }
[data-theme="light"] .filter-btn.is-active .n { background: rgba(0, 0, 0, 0.12); color: rgba(255,255,255,0.75); }

/* Select сортировки */
[data-theme="light"] .sort { color: var(--muted); }
[data-theme="light"] .sort select {
  background-color: var(--panel);
  border-color: var(--line-2);
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6275' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
[data-theme="light"] .sort select:hover { border-color: var(--volt); }
  background: #ede9e2;
  border-bottom-color: var(--line-2);
  color: var(--muted);
}
[data-theme="light"] .topbar__item svg { color: var(--volt); }
[data-theme="light"] .topbar__accent { color: var(--volt-deep); }
[data-theme="light"] .topbar__phone { color: var(--text); }
[data-theme="light"] .topbar__phone:hover { color: var(--volt); }

/* Кнопки закрытия — модалка и корзина */
[data-theme="light"] .modal__close,
[data-theme="light"] .cart__close {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--line-2);
  color: var(--muted);
}
[data-theme="light"] .modal__close:hover,
[data-theme="light"] .cart__close:hover {
  color: var(--hot);
  border-color: var(--hot);
  background: rgba(217, 64, 32, 0.07);
}

/* Кнопки избранного (галочки/сердечки на карточках) */
[data-theme="light"] .card__fav {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line-2);
  color: var(--muted);
}
[data-theme="light"] .card__fav:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.95);
}
[data-theme="light"] .card__fav[aria-pressed='true'] {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(212, 134, 10, 0.12);
}

/* Плавный переход всего сайта при смене темы */
body {
  transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}
