/* ============================================================
   AZIMUT — снаряжение для дальних дистанций
   Язык: полевой документ / швейцарская сетка
   Темы: ДЕНЬ (светлая) и НОЧЬ (тёмная)
   ============================================================ */

:root,
[data-theme="light"] {
  --bg: #f3f0e7;
  --panel: #fbfaf4;
  --panel-2: #ffffff;
  --text: #16150e;
  --muted: #6f6c5c;
  --line: #dcd7c4;
  --line-2: #b9b39c;
  --accent: #ff4d00;
  --on-accent: #ffffff;
  --ok: #2e7d32;
  --band: #16150e;
  --band-text: #f3f0e7;
  --footer-bg: #16150e;
  --footer-text: #f3f0e7;
  --card-shadow: 8px 8px 0 rgba(22, 21, 14, .9);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e110c;
  --panel: #151a12;
  --panel-2: #1b2117;
  --text: #ece8d8;
  --muted: #8d927e;
  --line: #262c1f;
  --line-2: #3a4230;
  --accent: #ff5a1f;
  --on-accent: #0e110c;
  --ok: #9ee06a;
  --band: #1b2117;
  --band-text: #ece8d8;
  --footer-bg: #131810;
  --footer-text: #ece8d8;
  --card-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
  color-scheme: dark;
}

:root {
  --sb-h: 34px;
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .35s;
}

::selection { background: var(--accent); color: var(--on-accent); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }

.container { width: min(1280px, 92vw); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
mark { background: none; color: var(--accent); }

/* ============ СТРОКА СТАТУСА ============ */
.statusbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sb-h);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4vw;
  background: var(--band);
  color: var(--band-text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  white-space: nowrap;
  overflow: hidden;
}
.sb-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  animation: sbPulse 1.8s ease-in-out infinite;
}
@keyframes sbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 0, .5); }
  60% { box-shadow: 0 0 0 6px rgba(255, 77, 0, 0); }
}
.sb-mid { opacity: .55; }
.sb-right { opacity: .75; }

/* ============ ШАПКА ============ */
.header {
  position: fixed;
  top: var(--sb-h); left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .35s;
}
.header.scrolled { border-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 22px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; color: var(--text); }
.logo-word {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
  line-height: 1;
}
.logo-word .shop { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Тумблер темы */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  transition: border-color .25s, transform .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--text); }
.tt-track {
  position: relative;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: flex;
  overflow: hidden;
}
.tt-icon {
  position: relative;
  z-index: 1;
  width: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color .3s;
}
.tt-icon svg { width: 14px; height: 14px; }
.tt-sun { color: var(--on-accent); }
[data-theme="dark"] .tt-sun { color: var(--muted); }
[data-theme="dark"] .tt-moon { color: var(--on-accent); }
.tt-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--accent);
  transition: transform .3s var(--ease);
}
[data-theme="dark"] .tt-knob { transform: translateX(100%); }
.tt-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--text); }

.cart-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  transition: border-color .25s, color .25s, background .25s;
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
}
.burger span { width: 18px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  padding: calc(var(--sb-h) + 96px + 60px) 0 90px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 60px;
  align-items: center;
}

.hero-index {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 14px;
  margin-bottom: 30px;
  max-width: 420px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 11vw, 168px);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-title mark { color: var(--accent); }

.hero-sub {
  max-width: 500px;
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 38px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(255, 77, 0, .3); }
.btn-line { border-color: var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--bg); }

.hero-facts { display: flex; gap: 44px; flex-wrap: wrap; }
.fact { border-top: 2px solid var(--text); padding-top: 12px; min-width: 120px; }
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: .02em;
}
.fact span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Компас */
.hero-right { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.compass-card {
  border: 1px solid var(--text);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  transition: box-shadow .35s;
}
.cc-head, .cc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  border-bottom: 1px solid var(--line);
}
.cc-foot { border-bottom: 0; border-top: 1px solid var(--line); color: var(--muted); }
.cc-live { color: var(--ok); animation: sbPulse 1.8s ease-in-out infinite; }

.compass {
  position: relative;
  padding: 22px;
  display: grid;
  place-items: center;
}
.compass-svg { width: 100%; max-width: 380px; color: var(--text); }
.cs-dim { opacity: .5; }
.cs-label {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  fill: currentColor;
}
.cs-main { fill: var(--text); }
.cs-back { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.cs-needle-back { fill: var(--muted); }
.cs-hub { fill: var(--accent); }
.rose { animation: roseSpin 160s linear infinite; transform-origin: 200px 200px; }
#needle { transform-origin: 200px 200px; transition: transform .5s var(--ease); }
@keyframes roseSpin { to { transform: rotate(360deg); } }

.compass-read {
  position: absolute;
  bottom: 18px; right: 18px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cr-label { font-size: 9px; letter-spacing: .22em; opacity: .7; }
.compass-read b { font-size: 24px; letter-spacing: .06em; line-height: 1; }

.hero-note {
  text-align: center;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
}

/* ============ ЛЕНТА ============ */
.band {
  background: var(--band);
  color: var(--band-text);
  overflow: hidden;
  padding: 16px 0;
  transition: background .35s, color .35s;
}
.band-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .16em;
  animation: bandMove 26s linear infinite;
}
.band-track i {
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
@keyframes bandMove { to { transform: translateX(-50%); } }

/* ============ СЕКЦИИ ============ */
.section { padding: 120px 0; }
.section-kicker {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .24em;
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .015em;
}

/* ============ СИСТЕМА СЛОЁВ ============ */
.layers-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 54px;
}
.layers-lead {
  max-width: 380px;
  justify-self: end;
  color: var(--muted);
  font-size: 15px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

.layers-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}

.mannequin-card {
  position: sticky;
  top: calc(var(--sb-h) + 90px);
  border: 1px solid var(--text);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}
.mq-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
.mq-status { color: var(--accent); }

.mannequin { width: 100%; padding: 18px 12px 6px; }
.mq-grid path { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.zone { cursor: pointer; outline: none; }
.zone > * {
  fill: transparent;
  stroke: var(--line-2);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  transition: fill .25s, stroke .25s;
}
.zone:hover > *,
.zone:focus-visible > * { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); }
.zone.active > * { fill: color-mix(in srgb, var(--accent) 26%, transparent); stroke: var(--accent); stroke-dasharray: none; }
.mq-figure path,
.mq-figure circle {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  pointer-events: none;
}
.mq-calls path { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; }
.mq-calls circle { fill: var(--accent); }
.mq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 12px 16px 16px;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
}

/* Чипы слоёв */
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chips-count { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: .16em; }

/* ============ ДОСЬЕ ТОВАРОВ ============ */
.catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.doc {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transition: opacity .3s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.doc.hide { display: none; }
.doc:hover {
  border-color: var(--text);
  box-shadow: var(--card-shadow);
  transform: translate(-2px, -2px);
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-2);
}
.doc-sku { font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.doc-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 4px 9px;
  border: 1px solid var(--text);
}
.doc-badge.hit { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.doc-badge.new { background: var(--text); color: var(--bg); }
.doc-badge.last { color: var(--muted); border-color: var(--line-2); }

.doc-visual {
  position: relative;
  aspect-ratio: 16 / 7.4;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.doc-visual .camo-bg {
  position: absolute;
  inset: 0;
  transition: transform .7s var(--ease);
}
.doc:hover .doc-visual .camo-bg { transform: scale(1.07); }
.doc-visual .product-icon {
  position: relative;
  width: 27%;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .3));
  transition: transform .5s var(--ease);
}
.doc:hover .doc-visual .product-icon { transform: scale(1.07) rotate(-2deg); }

.doc-name {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-top: 4px;
}
.doc-desc { color: var(--muted); font-size: 13px; margin-top: -6px; }

/* Шкалы характеристик */
.doc-meters { display: grid; gap: 7px; margin-top: 4px; }
.meter { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 10px; }
.meter-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--muted);
}
.meter-track { height: 4px; background: var(--line); overflow: hidden; }
.meter-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.1s var(--ease);
}
.doc.in .meter-fill { width: var(--w); }
.meter-val {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-align: right;
  color: var(--text);
}

/* Тех. паспорт */
.doc-tech { border-top: 1px dashed var(--line-2); margin-top: 4px; }
.doc-tech summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--muted);
  transition: color .2s;
}
.doc-tech summary::-webkit-details-marker { display: none; }
.doc-tech summary:hover { color: var(--accent); }
.doc-tech summary::after { content: "+"; font-size: 15px; transition: transform .25s; }
.doc-tech[open] summary::after { transform: rotate(45deg); }
.tech-rows { display: grid; gap: 0; padding-bottom: 8px; }
.tech-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  padding: 6px 0;
  border-top: 1px dotted var(--line);
}
.tech-row span:first-child { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; }
.tech-row span:last-child { text-align: right; }

.doc-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.doc-price { font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; }
.doc-add {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.doc-add:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.catalog-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}

/* ============ ПРОМО ============ */
.promo { padding: 0 0 120px; }
.promo-inner {
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 64px 60px;
  position: relative;
}
.promo-inner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed color-mix(in srgb, var(--on-accent) 50%, transparent);
  pointer-events: none;
}
.promo-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  display: block;
  margin-bottom: 12px;
  opacity: .85;
}
.promo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .015em;
  margin-bottom: 10px;
}
.promo-text p { max-width: 440px; opacity: .9; font-size: 15px; }
.promo-code {
  position: relative;
  border: 2px solid var(--on-accent);
  padding: 28px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .2s var(--ease), background .25s;
}
.promo-code:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 rgba(0,0,0,.25); }
.promo-code:active { transform: scale(.97); box-shadow: none; }
.promo-code-value { font-family: var(--font-display); font-size: 44px; letter-spacing: .12em; line-height: 1; }
.promo-copy { font-size: 10px; font-weight: 500; letter-spacing: .2em; opacity: .8; }

/* ============ ЖУРНАЛ ============ */
.journal { background: var(--panel); border-block: 1px solid var(--line); }
.journal .section-title { margin-bottom: 54px; }
.journal-rows { display: grid; }
.j-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  align-items: start;
  padding: 30px 8px;
  border-top: 1px dashed var(--line-2);
  transition: background .25s, padding-left .3s var(--ease);
}
.j-row:last-child { border-bottom: 1px dashed var(--line-2); }
.j-row:hover { background: var(--panel-2); padding-left: 24px; }
.j-year {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: .9;
  color: var(--accent);
  letter-spacing: .02em;
}
.j-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.j-body p { color: var(--muted); font-size: 14.5px; max-width: 640px; }
.j-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.j-row:hover .j-tag { border-color: var(--accent); color: var(--accent); }

/* ============ ЛОГИСТИКА + FAQ ============ */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: start;
}
.log-grid { display: grid; gap: 16px; margin-top: 44px; }
.log-card {
  border: 1px dashed var(--line-2);
  background: var(--panel);
  padding: 24px 26px;
  transition: border-color .25s, transform .25s var(--ease);
}
.log-card:hover { border-color: var(--text); border-style: solid; transform: translateX(6px); }
.log-num { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.log-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 8px 0 6px;
}
.log-card p { color: var(--muted); font-size: 14px; }

.faq-list { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color .2s, padding-left .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); padding-left: 12px; }
.faq p { color: var(--muted); font-size: 14.5px; padding: 0 4px 22px; max-width: 560px; }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 110px 0 44px;
  overflow: hidden;
  transition: background .35s, color .35s;
}
.footer-cta { margin-bottom: 64px; }
.footer .section-kicker { color: var(--accent); }
.footer-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 64px;
  border-bottom: 1px solid color-mix(in srgb, var(--footer-text) 16%, transparent);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: .02em;
  display: block;
  margin-bottom: 10px;
  transition: color .25s;
}
.footer-big:hover { color: var(--accent); }
.footer-link {
  display: block;
  width: fit-content;
  color: color-mix(in srgb, var(--footer-text) 60%, transparent);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s, transform .2s;
}
.footer-link:hover { color: var(--footer-text); transform: translateX(4px); }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--footer-text) 30%, transparent);
  transition: background .25s, color .25s, border-color .25s;
}
.footer-pill:hover { background: var(--footer-text); color: var(--footer-bg); border-color: var(--footer-text); }
.footer-text { color: color-mix(in srgb, var(--footer-text) 60%, transparent); font-size: 14px; margin-bottom: 10px; }
.footer-coords { font-size: 11px; letter-spacing: .16em; opacity: .6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 10.5px;
  letter-spacing: .14em;
  opacity: .55;
}
.footer-watermark {
  position: absolute;
  bottom: -5vw; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 13.5vw, 230px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--footer-text) 9%, transparent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ============ КОРЗИНА ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 10, 6, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 160;
  width: min(450px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--text);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .45s var(--ease);
}
.cart.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--text);
  background: var(--panel-2);
}
.cart-head h3 { font-size: 13px; font-weight: 700; letter-spacing: .22em; }
.cart-close {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--panel);
  transition: transform .25s, background .2s, color .2s;
}
.cart-close:hover { background: var(--text); color: var(--bg); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-empty {
  padding: 80px 10px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  line-height: 2.1;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-2);
}
.cart-thumb {
  width: 62px; height: 62px;
  background-size: cover;
  border: 1px solid var(--text);
}
.cart-item-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cart-item-price { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 3px; }
.cart-item-qty { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 27px; height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: background .2s, color .2s;
}
.qty-btn:hover { background: var(--text); color: var(--bg); }
.qty-num { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-item-remove {
  grid-column: 2 / -1;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--muted);
  transition: color .2s;
}
.cart-item-remove:hover { color: var(--accent); }

.cart-foot { border-top: 1px solid var(--text); background: var(--panel-2); padding: 22px 24px 26px; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--muted);
}
.cart-total b { font-family: var(--font-display); font-size: 30px; color: var(--text); letter-spacing: .02em; }
.cart-checkout { width: 100%; justify-content: center; }
.cart-note { text-align: center; font-size: 10px; letter-spacing: .12em; color: var(--muted); margin-top: 14px; }

/* ============ ТОСТЫ ============ */
.toasts {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  border-left: 3px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 14px 22px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .35);
  animation: toastIn .35s var(--ease), toastOut .3s var(--ease) 2.4s forwards;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast::before { content: "▸"; color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.hero-title .line.reveal { transform: none; opacity: 1; }
.hero-title .line > span {
  transform: translateY(110%);
  transition: transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero-title .line.in > span { transform: none; }

/* ============ АДАПТИВ ============ */
@media (max-width: 1120px) {
  .layers-grid { grid-template-columns: 1fr; }
  .mannequin-card { position: static; max-width: 460px; }
  .layers-head { grid-template-columns: 1fr; gap: 24px; }
  .layers-lead { justify-self: start; }
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .compass-card { max-width: 480px; }
  .two-col { grid-template-columns: 1fr; gap: 70px; }
}

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

@media (max-width: 760px) {
  :root { --sb-h: 0px; }
  .statusbar { display: none; }
  .header { top: 0; }

  .nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--text);
    padding: 8px 0 22px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .3s;
    z-index: 90;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 16px 6vw; border-bottom: 1px dashed var(--line-2); }
  .burger { display: flex; }

  .hero { padding: 130px 0 70px; }
  .hero-facts { gap: 26px; }
  .j-row { grid-template-columns: 1fr; gap: 8px; }
  .j-tag { justify-self: start; }
  .promo-inner { padding: 46px 26px; }
  .promo-code { padding: 24px 32px; width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 84px 0; }
  .tt-label { display: none; }
  .theme-toggle { padding: 0 6px; }
  .mq-legend { display: none; }
}

/* ============ ДОСТУПНОСТЬ ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .hero-title .line > span { opacity: 1; transform: none; }
}

/* ============================================================
   ЭФФЕКТЫ
   ============================================================ */

body { transition: background .35s, color .35s, filter .45s; }

/* Якоря не прячутся под шапкой */
[id] { scroll-margin-top: calc(var(--sb-h) + 92px); }

/* Полоса прогресса скролла */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 140;
}

/* Загрузочный экран */
.boot {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .5s, visibility .5s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.boot-compass {
  width: 46px; height: 46px;
  color: var(--text);
  animation: bootSpin 1.1s linear infinite;
}
@keyframes bootSpin { to { transform: rotate(360deg); } }
.boot-brand { font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.boot-brand span { color: var(--accent); }
.boot-status {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Курсор-прицел */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.cursor.visible { opacity: 1; }
.cursor-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  border: 1.4px solid var(--text);
  border-radius: 50%;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.cursor-ring::before,
.cursor-ring::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text);
  transition: background .2s;
}
.cursor-ring::before { width: 1.4px; height: 9px; transform: translate(-50%, -50%); }
.cursor-ring::after  { width: 9px; height: 1.4px; transform: translate(-50%, -50%); }
.cursor-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.hover .cursor-ring { transform: translate(-50%, -50%) scale(1.5); border-color: var(--accent); }
.cursor.hover .cursor-ring::before,
.cursor.hover .cursor-ring::after { background: var(--accent); }
.cursor.down .cursor-ring { transform: translate(-50%, -50%) scale(.75); }
body.cursor-on,
body.cursor-on a,
body.cursor-on button,
body.cursor-on .zone,
body.cursor-on summary { cursor: none; }

/* Кнопки: рябь по клику */
.btn, .chip, .doc-add { position: relative; overflow: hidden; }
.chip { transition: color .2s, border-color .2s, background .2s, transform .25s var(--ease); }
.theme-toggle { transition: border-color .25s, transform .25s var(--ease); }
.cart-btn { transition: border-color .25s, color .25s, background .25s, transform .25s var(--ease); }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: .35;
  transform: scale(0);
  animation: rippleGo .65s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleGo { to { transform: scale(1); opacity: 0; } }

/* Карточки: 3D-наклон + блик */
.doc { perspective: 900px; }
.doc-visual { will-change: transform; }
.doc-visual::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .38) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease);
  pointer-events: none;
  z-index: 2;
}
[data-theme="dark"] .doc-visual::after {
  background: linear-gradient(115deg, transparent 42%, rgba(236, 232, 216, .18) 50%, transparent 58%);
}
.doc:hover .doc-visual::after { transform: translateX(130%); }

/* Частицы в hero */
.hero { position: relative; }
.hero-inner { position: relative; z-index: 1; }
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hp {
  position: absolute;
  color: var(--line-2);
  opacity: .4;
  font-family: var(--font-mono);
  animation: hpFloat var(--dur, 8s) ease-in-out var(--del, 0s) infinite alternate;
  pointer-events: none;
  user-select: none;
}
@keyframes hpFloat {
  from { transform: translateY(10px); opacity: .12; }
  to   { transform: translateY(-24px); opacity: .55; }
}

/* Смена темы «волной» от кнопки */
.theme-wipe {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  transition: clip-path .55s var(--ease), opacity .35s;
}

/* Лента — пауза при наведении */
.band:hover .band-track { animation-play-state: paused; }

/* Кнопка наверх */
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 120;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Режим ночной разведки (пасхалка) */
html { transition: filter .45s; }
html.nvg { filter: hue-rotate(105deg) saturate(1.35) brightness(1.03); }
html.nvg body::after {
  background-image: repeating-linear-gradient(0deg, rgba(60, 255, 160, .07) 0 2px, transparent 2px 4px);
  mix-blend-mode: normal;
  opacity: 1;
}

.konami-hint { opacity: .35; letter-spacing: .3em; }

/* Небольшие заголовки блоков (без пафоса) */
.block-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 6px 0 20px;
}
.delivery-note {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* Эффекты и сниженная анимация */
@media (prefers-reduced-motion: reduce) {
  .boot, .theme-wipe, .ripple, .cursor, .hp { display: none; }
  html.nvg { filter: none; }
}

/* ============================================================
   АНИМАЦИИ v2 — жизнь на всей странице
   ============================================================ */

/* Дышащая точечная сетка в hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.4px);
  background-size: 30px 30px;
  opacity: .3;
  animation: gridDrift 46s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift { to { background-position: 60px 60px; } }

/* Компас левитирует */
.compass-card { animation: floatY 7s ease-in-out infinite; }
.compass-card:hover { animation-play-state: paused; }
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Факты появляются каскадом */
.hero-facts .fact {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
.hero-facts .fact:nth-child(2) { transition-delay: .08s; }
.hero-facts .fact:nth-child(3) { transition-delay: .16s; }
.hero-facts .fact:nth-child(4) { transition-delay: .24s; }
.hero-facts.in .fact { opacity: 1; translate: 0 0; }

/* Заголовки секций — «шторка» сверху вниз */
.section-title.reveal {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: opacity .5s, clip-path .9s var(--ease);
}
.section-title.reveal.in { opacity: 1; clip-path: inset(0 0 -12% 0); }
.footer-cta .footer-title {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity .5s, clip-path .9s var(--ease);
  transition-delay: .1s;
}
.footer-cta.in .footer-title { opacity: 1; clip-path: inset(0 0 -12% 0); }

/* Каретка у колонтитулов */
.section-kicker::after {
  content: "▌";
  margin-left: 8px;
  color: var(--accent);
  animation: caretBlink 1.1s steps(2, start) infinite;
}
@keyframes caretBlink { to { visibility: hidden; } }

/* Схема: контур рисуется на глазах */
.mq-figure :is(path, circle) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mannequin-card.in .mq-figure :is(path, circle) { animation: drawStroke 1.3s var(--ease) forwards; }
.mannequin-card.in .mq-figure :nth-child(2) { animation-delay: .12s; }
.mannequin-card.in .mq-figure :nth-child(3) { animation-delay: .24s; }
.mannequin-card.in .mq-figure :nth-child(4) { animation-delay: .36s; }
.mannequin-card.in .mq-figure :nth-child(5) { animation-delay: .48s; }
.mannequin-card.in .mq-figure :nth-child(6) { animation-delay: .6s; }
.mannequin-card.in .mq-figure :nth-child(7) { animation-delay: .72s; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

/* Зоны: «муравьи» бегут по пунктиру */
.zone > * { animation: ants 1.3s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -16; } }

/* Карточки досье: каскадный вход (повторяется при смене фильтра) */
.doc { animation: docIn .45s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes docIn {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

/* Бейджи NEW / ХИТ пульсируют */
.doc-badge.new, .doc-badge.hit { animation: badgePulse 2.6s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 0, .4); }
  55% { box-shadow: 0 0 0 7px rgba(255, 77, 0, 0); }
}

/* Название досье оживает при наведении */
.doc-name { transition: letter-spacing .3s var(--ease), color .3s; }
.doc:hover .doc-name { letter-spacing: .07em; color: var(--accent); }

/* FAQ и характеристики открываются плавно */
.faq[open] p, .doc-tech[open] .tech-rows { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; translate: 0 -6px; } }

/* Корзина: позиции въезжают по очереди, счётчик пружинит */
.cart-item { animation: cartIn .35s var(--ease) both; }
.cart-item:nth-child(2) { animation-delay: .05s; }
.cart-item:nth-child(3) { animation-delay: .1s; }
.cart-item:nth-child(4) { animation-delay: .15s; }
.cart-item:nth-child(5) { animation-delay: .2s; }
@keyframes cartIn { from { opacity: 0; translate: 0 12px; } }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Шапка сжимается при скролле */
.header-inner { transition: height .3s var(--ease); }
.header.scrolled .header-inner { height: 62px; }

/* Логотип крутанётся при наведении */
.logo-mark { transition: transform .8s var(--ease); }
.logo:hover .logo-mark { transform: rotate(360deg); }

/* Стрелка «вниз» в hero */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--muted);
  animation: heroBounce 2.4s var(--ease) infinite;
  transition: color .2s, border-color .2s;
}
.hero-scroll:hover { color: var(--accent); border-color: var(--accent); }
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes heroBounce {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% 9px; }
}

/* Кнопка наверх: стрелка подпрыгивает */
.back-top svg { transition: translate .25s var(--ease); }
.back-top:hover svg { translate: 0 -3px; }

@media (max-width: 760px) {
  .hero-scroll { display: none; }
}

/* ============================================================
   ЗАКАЗЫ + ОФОРМЛЕНИЕ ЗАКАЗА
   ============================================================ */

/* Кнопка «Заказы» в шапке — зеркалит cart-btn */
.orders-btn {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.orders-btn svg { width: 19px; height: 19px; }
.orders-btn:hover { border-color: var(--accent); color: var(--accent); }
.orders-count {
  top: -6px;
  right: -6px;
  width: 17px;
  height: 17px;
  font-size: 9px;
}

/* Вкладка заказов — переиспользует корзину */
.cart.orders { width: min(460px, 100vw); }
.orders-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 16px;
  animation: cartIn .35s var(--ease) both;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.order-head b { font-size: 14px; letter-spacing: .1em; color: var(--accent); }
.order-copy {
  background: none;
  border: none;
  padding: 0 0 1px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px dashed var(--line-2);
  transition: opacity .15s ease;
}
.order-copy:hover { opacity: .75; }
.order-date { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.order-items { font-size: 13px; margin-top: 8px; line-height: 1.5; }
.order-meta { font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: .04em; }

/* Шаги статуса */
.order-steps { display: flex; margin-top: 16px; }
.ostep {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ostep::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-2);
}
.ostep:first-child::before { display: none; }
.ostep.done::before, .ostep.current::before { background: var(--accent); }
.ostep i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line-2);
}
.ostep.done i { background: var(--accent); border-color: var(--accent); }
.ostep.current i {
  background: var(--accent);
  border-color: var(--accent);
  animation: statusPulse 1.6s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 0, .45); }
  55% { box-shadow: 0 0 0 7px rgba(255, 77, 0, 0); }
}
.ostep span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.ostep.done span, .ostep.current span { color: var(--text); }
.ostep.current span { color: var(--accent); }
.order-cancelled {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #e03131;
  border: 1px dashed #e03131;
  padding: 7px 10px;
  text-align: center;
}

.order-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.order-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.order-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.order-btn-danger:hover { border-color: #e03131; color: #e03131; }

/* Модалка оформления */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(10, 10, 6, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed;
  z-index: 180;
  left: 50%;
  top: 50%;
  translate: -50% -46%;
  width: min(520px, 94vw);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--text);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transition: translate .4s var(--ease), opacity .3s;
}
.modal.open { translate: -50% -50%; opacity: 1; pointer-events: auto; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}
.modal-body { padding: 20px 22px 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  padding: 11px 12px;
  outline: none;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field :is(input, select, textarea):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, .15);
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 58px; }
.field.error :is(input, select, textarea) { border-color: #e03131; animation: shake .3s; }
@keyframes shake {
  25% { translate: -4px 0; }
  75% { translate: 4px 0; }
}

.checkout-summary {
  border: 1px dashed var(--line-2);
  background: var(--panel-2);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  margin: 4px 0 16px;
}
.checkout-summary .row { display: flex; justify-content: space-between; gap: 12px; }
.checkout-summary .row .note { color: var(--muted); }
.checkout-summary .row.discount { color: var(--accent); }
.checkout-summary .row.total {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 2px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
}
.checkout-submit { width: 100%; justify-content: center; }

/* Экран успеха */
.checkout-success {
  text-align: center;
  padding: 26px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  animation: popIn .5s var(--ease);
}
.success-icon svg { width: 30px; height: 30px; }
@keyframes popIn {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-title { font-family: var(--font-display); font-size: 26px; letter-spacing: .03em; }
.success-num { font-size: 14px; color: var(--accent); letter-spacing: .14em; }
.success-code { margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.success-code b { color: var(--text); font-size: 14px; letter-spacing: .2em; }
.success-text { font-size: 13px; color: var(--muted); max-width: 340px; line-height: 1.6; }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
