/* ==========================================================================
   MAGIC TECHNIQUE — дисконт бытовой техники
   Дизайн-концепция: «складская накладная»
   Оглавление:
   01. Переменные
   02. Сброс и база
   03. Утилиты и повторяющиеся элементы
   04. Шапка, навигация, бегущая строка, мобильное меню
   05. Первый экран
   06. Блок цифр
   07. Почему так дёшево (состояния A/B/C)
   08. Категории — реестр
   09. Каталог
   10. Акции — стикеры
   11. Отзывы — ленты
   12. Контакты и карта
   13. О нас — таймлайн и шаги
   14. Подвал
   15. Кнопка «наверх»
   16. Страница 404
   17. Адаптивность
   18. prefers-reduced-motion
   ========================================================================== */

/* Шрифты хранятся на нашем сервере: браузер не обращается к Google Fonts. */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   01. ПЕРЕМЕННЫЕ
   ========================================================================== */

:root {
  /* Палитра */
  --ink: #0B0B0B;
  --ink-2: #161616;
  --paper: #FAFAFA;
  --paper-2: #EFEFEF;
  --accent: #FFC300;
  --muted: #8A8A8A;
  --muted-dk: #5E5E5E;
  --line: #2A2A2A;
  --line-lt: #DCDCDC;
  --sale: #E5322D;

  /* Шрифты */
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-text: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', ui-monospace, monospace;

  /* Длительности и кривые */
  --dur-xs: 120ms;
  --dur-sm: 200ms;
  --dur-md: 250ms;
  --dur-lg: 350ms;
  --dur-xl: 500ms;
  --dur-scan: 900ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-stamp: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-lin: linear;

  /* Размеры */
  --header-h: 80px;
  --header-h-sm: 56px;
  --ticker-h: 36px;
  --hazard-h: 12px;
  --radius: 0px;
  --radius-sm: 2px;
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1680px;

  /* Тени */
  --shadow-sticker: 0 6px 18px rgba(11, 11, 11, .18);
  --shadow-sticker-hi: 0 18px 40px rgba(11, 11, 11, .32);

  /* Брейкпоинты (справочно, для документации) */
  --bp-xs: 360px;
  --bp-sm: 768px;
  --bp-md: 1024px;
  --bp-lg: 1440px;
}

/* ==========================================================================
   02. СБРОС И БАЗА
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input, select { font: inherit; color: inherit; }

/* Видимый фокус на всех интерактивных элементах */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* На жёлтом фоне жёлтая рамка не видна — переключаем на чёрную */
.btn--accent:focus-visible,
.chip input:focus-visible + .chip__box,
.hdr__phone:focus-visible,
.tg-link:focus-visible {
  outline-color: var(--ink);
}

/* ==========================================================================
   03. УТИЛИТЫ И ПОВТОРЯЮЩИЕСЯ ЭЛЕМЕНТЫ
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 128px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper2 { background: var(--paper-2); color: var(--ink); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-lt);
}
.section--dark .eyebrow::after { background: var(--line); }
.eyebrow__num { color: var(--accent); }
.section--paper .eyebrow__num,
.section--paper2 .eyebrow__num { color: var(--ink); background: var(--accent); padding: 2px 6px; }

.h-sec { font-size: clamp(1.9rem, 5.2vw, 4.2rem); }
.h-sub {
  font-family: var(--font-text);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.section--dark .h-sub { color: #C9C9C9; }

/* Полоса складской разметки — разделитель секций */
.hazard {
  height: var(--hazard-h);
  background-image: repeating-linear-gradient(45deg,
    var(--accent) 0 14px,
    var(--ink) 14px 28px);
  background-size: 39.6px 39.6px;
}
.hazard--lt {
  background-image: repeating-linear-gradient(45deg,
    var(--accent) 0 14px,
    var(--paper) 14px 28px);
}

/* Ссылка «к основному содержимому» */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  transform: translateY(-200%);
  transition: transform var(--dur-sm) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-md) var(--ease), border-color var(--dur-md) var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-lg) var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent::before { background: var(--ink); }
.btn--ghost { color: var(--paper); border-color: rgba(250, 250, 250, .45); }
.btn--ghost-dk { color: var(--ink); border-color: var(--ink); }

@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); }
  .btn--accent:hover { color: var(--accent); }
  .btn--ghost:hover { color: var(--ink); border-color: var(--accent); }
  .btn--ghost-dk:hover { color: var(--ink); border-color: var(--accent); }
}
.btn__ico { width: 18px; height: 18px; flex: none; }

/* CSS-штрих-код — визуальный якорь вместо фотографии */
.bc {
  display: block;
  width: 100%;
  height: 48px;
  color: currentColor;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
}
.bc-1  { background-image: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px, currentColor 5px 6px, transparent 6px 10px, currentColor 10px 13px, transparent 13px 15px); }
.bc-2  { background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4px, currentColor 4px 7px, transparent 7px 8px, currentColor 8px 10px, transparent 10px 14px); }
.bc-3  { background-image: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 6px, transparent 6px 9px, currentColor 9px 11px, transparent 11px 16px); }
.bc-4  { background-image: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 3px, currentColor 3px 4px, transparent 4px 8px, currentColor 8px 12px, transparent 12px 13px); }
.bc-5  { background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px, currentColor 3px 6px, transparent 6px 11px, currentColor 11px 12px, transparent 12px 17px); }
.bc-6  { background-image: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 6px, currentColor 6px 7px, transparent 7px 9px, currentColor 9px 10px, transparent 10px 14px); }
.bc-7  { background-image: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px, currentColor 6px 8px, transparent 8px 9px, currentColor 9px 13px, transparent 13px 15px); }
.bc-8  { background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 2px, currentColor 2px 5px, transparent 5px 7px, currentColor 7px 11px, transparent 11px 12px); }
.bc-9  { background-image: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 4px, currentColor 4px 8px, transparent 8px 10px, currentColor 10px 11px, transparent 11px 16px); }
.bc-10 { background-image: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 6px, currentColor 6px 9px, transparent 9px 13px); }
.bc-11 { background-image: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 7px, currentColor 7px 8px, transparent 8px 12px, currentColor 12px 13px, transparent 13px 18px); }
.bc-12 { background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 5px, currentColor 5px 9px, transparent 9px 10px, currentColor 10px 12px, transparent 12px 14px); }

/* Бланк с точечными выносками (строки «ключ .... значение») */
.blank { display: flex; flex-direction: column; gap: 14px; }
.blank__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.blank__key {
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
  white-space: nowrap;
}
.blank__dots {
  flex: 1 1 auto;
  min-width: 16px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}
.section--paper .blank__dots,
.section--paper2 .blank__dots { border-bottom-color: var(--line-lt); }
.blank__val { flex: none; font-weight: 700; text-align: right; }

/* ==========================================================================
   04. ШАПКА, НАВИГАЦИЯ, БЕГУЩАЯ СТРОКА, МОБИЛЬНОЕ МЕНЮ
   ========================================================================== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hdr__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  transition: height var(--dur-md) var(--ease);
}
.hdr.is-shrunk .hdr__bar { height: var(--header-h-sm); }

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
}
.logo__a { color: var(--paper); }
.logo__b { color: var(--accent); }

.nav { position: relative; margin-inline: auto; }
.nav__list { display: flex; gap: clamp(10px, 1.8vw, 30px); }
.nav__link {
  display: block;
  padding: 6px 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BDBDBD;
  transition: color var(--dur-md) var(--ease);
}
.nav__link.is-active { color: var(--paper); }
@media (hover: hover) { .nav__link:hover { color: var(--accent); } }

.nav__num {
  display: block;
  height: 14px;
  overflow: hidden;
  font-size: 10px;
  color: var(--accent);
  opacity: .8;
  transition: height var(--dur-md) var(--ease), opacity var(--dur-md) var(--ease);
}
.hdr.is-shrunk .nav__num { height: 0; opacity: 0; }

/* Общий индикатор — жёлтая линия, проезжающая между пунктами */
.nav__ind {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: translateX(0) scaleX(0);
  transition: transform var(--dur-lg) var(--ease);
  pointer-events: none;
}

.hdr__phone {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  white-space: nowrap;
  transition: transform var(--dur-sm) var(--ease-stamp);
}
.hdr__phone svg { width: 15px; height: 15px; }
@media (hover: hover) { .hdr__phone:hover { transform: translateY(-2px); } }

/* Бургер */
.burger {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.burger__box { position: relative; width: 26px; height: 16px; }
.burger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  transition: transform var(--dur-md) var(--ease), opacity var(--dur-xs) linear;
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 7px; }
.burger__line:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Бегущая строка акций */
.ticker {
  height: var(--ticker-h);
  background: var(--accent);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--ink);
}
.ticker__track {
  display: flex;
  flex: none;
  white-space: nowrap;
  will-change: transform;
}
.ticker__group { display: flex; flex: none; }
.ticker__item {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-inline: 18px;
}
.ticker__item::after { content: "·"; margin-left: 18px; opacity: .55; }

/* Мобильное меню */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease), visibility 0s linear var(--dur-md);
}
.mmenu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-md) var(--ease), visibility 0s;
}
.mmenu__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.mmenu__list { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.mmenu__item { overflow: hidden; }
.mmenu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 8vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  transform: translateX(-110%);
  transition: transform var(--dur-xl) var(--ease);
}
.mmenu.is-open .mmenu__link { transform: translateX(0); }
.mmenu__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.mmenu__link.is-active { color: var(--accent); }
.mmenu__foot { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 14px; }

/* Жёлтые плашки мессенджеров */
.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform var(--dur-sm) var(--ease-stamp);
}
.tg-link svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) { .tg-link:hover { transform: translateY(-2px); } }

/* Крупные кликабельные телефоны с заезжающей снизу подложкой */
.phone-lg {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 700;
  padding: 4px 8px;
  color: inherit;
  z-index: 0;
  transition: color var(--dur-sm) var(--ease);
}
.phone-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-sm) var(--ease);
  z-index: -1;
}
@media (hover: hover) {
  .phone-lg:hover { color: var(--ink); }
  .phone-lg:hover::before { transform: scaleY(1); }
}
.phone-lg:focus-visible { color: var(--ink); }
.phone-lg:focus-visible::before { transform: scaleY(1); }

/* ==========================================================================
   05. ПЕРВЫЙ ЭКРАН
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  min-height: min(90vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px);
}

/* Слой фона с лёгким параллаксом */
.hero__bg {
  position: absolute;
  inset: -15% 0 -15% 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 120px 120px;
  will-change: transform;
  pointer-events: none;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 20% 30%, rgba(255, 195, 0, .07), transparent 70%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: end;
}

.hero__col { max-width: 1100px; }

.hero__title {
  /* Размер подобран так, чтобы самая длинная строка помещалась в колонку 3/4 ширины */
  font-size: clamp(1.6rem, 4vw, 4.4rem);
  line-height: 0.95;
}
.hero__line { display: block; }
.js .hero__line { clip-path: inset(0 0 100% 0); }
.hero.is-revealed .hero__line { clip-path: inset(0 0 -10% 0); animation: heroReveal 420ms var(--ease) forwards; }
.hero.is-revealed .hero__line--1 { animation-delay: 160ms; }
.hero.is-revealed .hero__line--2 { animation-delay: 340ms; }
.hero.is-revealed .hero__line--3 { animation-delay: 520ms; }
.hero__line--1,
.hero__line--2 {
  font-size: 1.12em;
}
.hero__line--3 {
  margin-top: 0.18em;
  padding-left: clamp(24px, 8vw, 160px);
  font-size: 0.68em;
  line-height: 1;
}
.hero__accent { color: var(--accent); }

@keyframes heroReveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 -10% 0); }
}

/* Перечёркивание слова «ПОМЯТОЙ» */
.strike { position: relative; display: inline-block; }
.strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: clamp(3px, 0.7vw, 8px);
  background: var(--paper);
  transform-origin: left;
}
.js .strike::after { transform: scaleX(0); }
.hero.is-revealed .strike::after { transform: scaleX(1); animation: strikeIn 300ms var(--ease) 1200ms forwards; }
@keyframes strikeIn { to { transform: scaleX(1); } }

.hero__text {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 56ch;
  font-size: clamp(0.98rem, 1.3vw, 1.2rem);
  color: #C9C9C9;
}
.js .hero__text { clip-path: inset(0 0 100% 0); }
.hero.is-revealed .hero__text { clip-path: inset(0 0 -10% 0); animation: heroReveal 420ms var(--ease) 640ms forwards; }

.hero__actions {
  margin-top: clamp(26px, 3.5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.js .hero__actions { opacity: 0; }
.hero.is-revealed .hero__actions { opacity: 1; animation: fadeIn 300ms var(--ease) 760ms forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Этикетка-наклейка */
.label-box {
  justify-self: end;
  width: min(420px, 100%);
  background: var(--ink-2);
  border: 1px solid rgba(250, 250, 250, .75);
  padding: 22px;
}
.js .label-box { opacity: 0; }
.hero.is-revealed .label-box { opacity: 1; animation: fadeIn 300ms var(--ease) 820ms forwards; }
.label-box__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label-box .blank__val { color: var(--paper); }
.label-box__bc {
  margin-top: 20px;
  color: var(--paper);
  height: 44px;
}
.js .label-box__bc { background-size: 0% 100%; }
.hero.is-revealed .label-box__bc { background-size: 100% 100%; animation: bcDraw 600ms var(--ease) 1000ms forwards; }
@keyframes bcDraw { to { background-size: 100% 100%; } }
.label-box__sku {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* Жёлтая линия-сканер по первому экрану */
.hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 24px 2px rgba(255, 195, 0, .55);
  transform: translateY(0);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.hero.is-revealed .hero__scan { animation: heroScan var(--dur-scan) linear forwards; }
@keyframes heroScan {
  0%   { transform: translateY(0); opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(min(90vh, 900px)); opacity: 0; }
}

/* ==========================================================================
   06. БЛОК ЦИФР
   ========================================================================== */

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats__cell {
  position: relative;
  padding: clamp(20px, 3vw, 40px) clamp(12px, 2vw, 28px);
  text-align: center;
}
.stats__cell + .stats__cell::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-lt);
  transform-origin: top;
  transition: transform var(--dur-xl) var(--ease);
}
.js .stats__cell + .stats__cell::before { transform: scaleY(0); }
.stats.is-inview .stats__cell + .stats__cell::before { transform: scaleY(1); }

.stats__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.stats__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dk);
}

/* ==========================================================================
   07. ПОЧЕМУ ТАК ДЁШЕВО — СОСТОЯНИЯ A/B/C
   ========================================================================== */

.cond__grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  /* Карточки наклонены и стартуют увеличенными — обрезаем только по горизонтали,
     оставляя запас, чтобы углы штампов не срезались в покое */
  overflow-x: clip;
  overflow-clip-margin: 14px;
}

.cond {
  --rot: 0deg;
  --sc: 1;
  position: relative;
  background: var(--ink-2);
  border: 2px solid var(--paper);
  padding: 6px;
  transform: rotate(var(--rot)) scale(var(--sc));
}
.js .cond { --sc: 1.15; opacity: 0; }
.cond--a { --rot: -2deg; }
.cond--b { --rot: -1deg; }
.cond--c { --rot: -3deg; }

/* Удар штампа сделан на transition, а не на animation: конечное состояние
   задано классом, поэтому карточка не может «залипнуть» невидимой */
.cond {
  transition:
    opacity var(--dur-xs) var(--ease-stamp),
    transform var(--dur-xs) var(--ease-stamp);
}
.cond--b { transition-delay: 100ms; }
.cond--c { transition-delay: 200ms; }
.cond.is-stamped { --sc: 1; opacity: 1; }

.cond__inner { border: 1px solid rgba(250, 250, 250, .55); }

.cond__head {
  width: 100%;
  display: block;
  text-align: left;
  padding: clamp(20px, 2.4vw, 30px);
  color: var(--paper);
}
.cond__letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 8vw, 96px);
  line-height: 0.85;
  color: var(--accent);
  display: block;
  letter-spacing: -0.06em;
}
.cond__name {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.cond__lead {
  /* Лежит внутри <h3><button>, поэтому текстовые свойства задаём явно */
  margin-top: 14px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: #C4C4C4;
  line-height: 1.55;
}
.cond__meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cond__disc { background: var(--accent); color: var(--ink); padding: 4px 10px; font-weight: 700; }
.cond__toggle { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.cond__toggle svg { width: 14px; height: 14px; transition: transform var(--dur-md) var(--ease); }
.cond__head[aria-expanded="true"] .cond__toggle svg { transform: rotate(180deg); }

/* Раскрытие «разрезом скотча» через clip-path */
.cond__panel {
  border-top: 1px dashed var(--line);
  padding: clamp(18px, 2.2vw, 26px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-lg) var(--ease);
}
.cond__panel.is-open { clip-path: inset(0 0 0 0); }
.cond__panel h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cond__panel p { font-size: 0.92rem; color: #C4C4C4; }
.cond__panel p + h4 { margin-top: 18px; }

/* Шкала «внешний вид → цена» */
.scale { margin-top: clamp(40px, 5vw, 64px); }
.scale__labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.scale__bar {
  position: relative;
  height: 4px;
  background: linear-gradient(to right, #3a3a3a, var(--accent));
}
.scale__ticks {
  position: relative;
  height: 44px;
  margin-top: -2px;
}
.scale__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: color var(--dur-md) var(--ease);
}
.scale__tick::before {
  content: "";
  width: 2px;
  height: 16px;
  background: var(--line);
  transition: background var(--dur-md) var(--ease), transform var(--dur-md) var(--ease-stamp);
}
.scale__tick--a { left: 16.6%; }
.scale__tick--b { left: 50%; }
.scale__tick--c { left: 83.3%; }
.scale__tick.is-on { color: var(--accent); }
.scale__tick.is-on::before { background: var(--accent); transform: scaleY(1.4); }

/* Строка условий */
.terms {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.terms__item { background: var(--ink); padding: 22px; }
.terms__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.terms__txt { font-size: 0.9rem; color: #C4C4C4; }

/* ==========================================================================
   08. КАТЕГОРИИ — РЕЕСТР
   ========================================================================== */

.reg { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line-lt); }
.section--dark .reg { border-top-color: var(--line); }

.reg__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 88px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line-lt);
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-lg) var(--ease);
}
.section--dark .reg__row { border-bottom-color: var(--line); }
.reg__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-lg) var(--ease);
  z-index: -1;
}

.reg__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
  transition: color var(--dur-lg) var(--ease);
}
.reg__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  flex: none;
}
.reg__brands {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(110%);
  opacity: 0;
  transition: transform var(--dur-xl) var(--ease) 100ms, opacity var(--dur-md) var(--ease) 100ms, color var(--dur-lg) var(--ease);
}
.reg__count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  flex: none;
  transition: color var(--dur-lg) var(--ease);
}
.reg__arrow { flex: none; width: 26px; height: 26px; transition: transform var(--dur-lg) var(--ease); }

.reg__row.is-on { color: var(--ink); }
.reg__row.is-on::before { transform: scaleX(1); }
.reg__row.is-on .reg__num,
.reg__row.is-on .reg__count,
.reg__row.is-on .reg__brands { color: var(--ink); }
.reg__row.is-on .reg__brands { transform: translateX(0); opacity: 1; }
.reg__row.is-on .reg__arrow { animation: arrowSpring var(--dur-lg) var(--ease) forwards; }
@keyframes arrowSpring {
  0%   { transform: translateX(0); }
  60%  { transform: translateX(8px); }
  100% { transform: translateX(4px); }
}

@media (hover: hover) {
  .reg__row:hover { color: var(--ink); }
  .reg__row:hover::before { transform: scaleX(1); }
  .reg__row:hover .reg__num,
  .reg__row:hover .reg__count,
  .reg__row:hover .reg__brands { color: var(--ink); }
  .reg__row:hover .reg__brands { transform: translateX(0); opacity: 1; }
  .reg__row:hover .reg__arrow { animation: arrowSpring var(--dur-lg) var(--ease) forwards; }
}
.reg__row:focus-visible { outline-offset: -3px; }

/* Расширенный вариант на странице категорий */
.reg__desc {
  padding: 0 8px 26px;
  border-bottom: 1px solid var(--line-lt);
  max-width: 90ch;
}
.section--dark .reg__desc { border-bottom-color: var(--line); }
.reg__desc p { color: var(--muted-dk); font-size: 0.95rem; }
.section--dark .reg__desc p { color: #B4B4B4; }
.reg__desc .reg__tags {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ==========================================================================
   09. КАТАЛОГ
   ========================================================================== */

/* Панель фильтров — шапка накладной */
.filters {
  position: sticky;
  top: calc(var(--header-h-sm) + var(--ticker-h));
  z-index: 40;
  background: var(--paper-2);
  border: 1px solid var(--line-lt);
  border-top: 3px solid var(--ink);
  padding: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* В закреплённом состоянии панель складывается до строки со счётчиком,
   иначе она выше экрана и перекрывает саму витрину */
.filters__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}
.filters__toggle svg { width: 16px; height: 16px; }
@media (hover: hover) { .filters__toggle:hover { background: var(--ink); color: var(--paper); } }

.filters.is-stuck .filters__toggle { display: inline-flex; }
.filters.is-stuck .filters__grid { display: none; }
.filters.is-stuck.is-expanded .filters__grid {
  display: grid;
  max-height: calc(100vh - var(--header-h-sm) - var(--ticker-h) - 140px);
  overflow-y: auto;
  padding-right: 4px;
}
.filters.is-stuck.is-expanded .filters__toggle { background: var(--ink); color: var(--paper); }
.filters__grid { display: grid; gap: 14px; }
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset__legend {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dk);
  margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip__box {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line-lt);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease), transform var(--dur-xs) var(--ease-stamp);
  cursor: pointer;
}
.chip input:checked + .chip__box {
  background: var(--accent);
  border-color: var(--ink);
}
@media (hover: hover) { .chip:hover .chip__box { border-color: var(--ink); } }
.chip input:focus-visible + .chip__box { outline: 2px solid var(--ink); outline-offset: 2px; }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line-lt);
  padding: 0 12px;
  min-height: 42px;
}
.field svg { width: 16px; height: 16px; flex: none; color: var(--muted-dk); }
.field input,
.field select {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.field:focus-within { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 1px; }
.field--num { max-width: 140px; }
.field--num input { text-align: right; }

.filters__bottom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-lt);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.count {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.count__n { background: var(--accent); padding: 2px 8px; }

.view-toggle { display: flex; gap: 0; margin-left: auto; border: 1px solid var(--line-lt); background: var(--paper); }
.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  min-width: 44px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--dur-sm) var(--ease);
}
.view-toggle button svg { width: 16px; height: 16px; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.reset-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  padding: 4px 8px;
}
.reset-btn[hidden] { display: none; }

/* Сетка карточек */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.grid[hidden], .tablewrap[hidden] { display: none; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: transform var(--dur-lg) var(--ease), opacity var(--dur-md) var(--ease);
}
.card.is-hidden { display: none; }
.card.is-out { opacity: 0; transform: scale(0.94); }

.card__pic {
  position: relative;
  padding: 22px 18px 16px;
  border-bottom: 1px dashed var(--line);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding-right: 30px;
}
.card__model {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-right: 30px;
}
.card__bcwrap { margin-top: auto; padding-top: 20px; position: relative; }
.card__bc { height: 42px; color: rgba(250, 250, 250, .55); transition: color var(--dur-md) var(--ease); }
.card__scan {
  position: absolute;
  left: 0; right: 0;
  top: 20px;
  height: 2px;
  background: var(--sale);
  opacity: 0;
  pointer-events: none;
}
.card__sku {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.card__cat {
  /* Начинается ниже плашки состояния, иначе она перекрывает первые буквы */
  position: absolute;
  top: 46px;
  bottom: 12px;
  right: 8px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  overflow: hidden;
}
.card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.card__badge b { font-size: 13px; }

@media (hover: hover) {
  .card:hover .card__bc { color: rgba(250, 250, 250, 1); }
  .card:hover .card__scan { animation: bcScan 700ms linear; }
}
@keyframes bcScan {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(62px); opacity: 0; }
}

.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card__name {
  /* Это <h3>, поэтому текстовые свойства перебиваем явно на основной шрифт */
  font-family: var(--font-text);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  min-height: 2.7em;
}
.card__name mark { background: var(--accent); color: var(--ink); padding: 0 2px; }
.card__specs {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.card__prices {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.card__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}
.card__old {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sale);
  text-decoration: line-through;
}
.card__foot {
  border-top: 1px dashed var(--line);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.card__foot-t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.card__tel {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  border-bottom: 1px solid var(--accent);
  min-height: 24px;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  color: var(--accent);
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}
.icon-link svg { width: 17px; height: 17px; }
@media (hover: hover) { .icon-link:hover { background: var(--accent); color: var(--ink); } }
.card__links { display: flex; gap: 8px; margin-left: auto; }

/* Табличный вид — товарная накладная */
.tablewrap { border: 1px solid var(--line-lt); background: var(--paper); }
.tablewrap__hint {
  display: none;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dk);
  border-bottom: 1px solid var(--line-lt);
}
/* overflow создаёт скролл-контейнер и ломает sticky у thead,
   поэтому включаем горизонтальную прокрутку только там, где таблица не влезает */
.tablewrap__scroll { overflow-x: visible; }
@media (max-width: 1023.98px) {
  .tablewrap__scroll { overflow-x: auto; }
  .tablewrap__hint { display: block; }
}
.ttable {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.ttable thead th {
  /* --filters-h держит в курсе высоту закреплённой панели фильтров,
     иначе шапка таблицы уезжает под неё */
  position: sticky;
  top: calc(var(--header-h-sm) + var(--ticker-h) + var(--filters-h, 0px));
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 14px;
  white-space: nowrap;
}
.ttable td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-lt);
  vertical-align: middle;
}
.ttable tbody tr:nth-child(even) { background: var(--paper-2); }
.ttable tbody tr { transition: transform var(--dur-lg) var(--ease); }
.ttable__name { font-family: var(--font-text); font-size: 14px; min-width: 260px; }
.ttable__name mark { background: var(--accent); color: var(--ink); }
.ttable__old { color: var(--sale); text-decoration: line-through; white-space: nowrap; }
.ttable__new { font-weight: 700; white-space: nowrap; }
.ttable__cond { font-weight: 700; }
.ttable__cond span { background: var(--accent); padding: 2px 8px; }
.ttable__disc { font-weight: 700; white-space: nowrap; }

/* Пустой результат — красный штамп */
.empty {
  display: none;
  padding-block: clamp(48px, 8vw, 96px);
  text-align: center;
}
.empty.is-on { display: block; }
.empty__stamp {
  display: inline-block;
  transform: rotate(-4deg) scale(1);
  border: 3px solid var(--sale);
  padding: 4px;
  color: var(--sale);
}
.empty.is-on .empty__stamp { animation: stampInFlat var(--dur-xs) var(--ease-stamp); }
@keyframes stampInFlat {
  from { transform: rotate(-4deg) scale(1.15); opacity: 0; }
  to   { transform: rotate(-4deg) scale(1); opacity: 1; }
}
.empty__inner {
  border: 1px solid var(--sale);
  padding: 22px clamp(20px, 5vw, 56px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.empty__hint { margin-top: 24px; color: var(--muted-dk); }
.empty__actions { margin-top: 20px; }

/* ==========================================================================
   10. АКЦИИ — СТИКЕРЫ
   ========================================================================== */

.stickers {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(26px, 3vw, 44px);
  padding-block: 10px;
  /* Стикеры въезжают со сдвигом по X и наклонены — обрезаем только по горизонтали,
     чтобы стартовая позиция не давала горизонтальную прокрутку, но тень осталась видна */
  overflow-x: clip;
  overflow-clip-margin: 24px;
}
.sticker {
  --rot: 0deg;
  position: relative;
  background: var(--accent);
  color: var(--ink);
  padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 26px);
  box-shadow: var(--shadow-sticker);
  transition:
    transform var(--dur-md) var(--ease),
    box-shadow var(--dur-md) var(--ease),
    opacity var(--dur-md) var(--ease);
}
.js .sticker {
  transform: translateX(var(--from, -60px)) rotate(var(--rot));
  opacity: 0;
}
.js .sticker__tape { transform: translateY(-6px) rotate(-1.5deg); opacity: 0; }
.sticker:nth-child(odd) { --from: -60px; --rot: -2deg; }
.sticker:nth-child(even) { --from: 60px; --rot: 2deg; }
.sticker:nth-child(3n) { --rot: 3deg; }
.sticker:nth-child(4n) { --rot: -3deg; }
.sticker:nth-child(5n) { --rot: 1deg; }

.sticker.is-in {
  transform: translateX(0) rotate(var(--rot));
  opacity: 1;
  transition-duration: var(--dur-xl);
}
.sticker.is-in:nth-child(2) { transition-delay: 80ms; }
.sticker.is-in:nth-child(3) { transition-delay: 160ms; }
.sticker.is-in:nth-child(4) { transition-delay: 240ms; }
.sticker.is-in:nth-child(5) { transition-delay: 320ms; }
.sticker.is-in:nth-child(6) { transition-delay: 400ms; }

/* Полоска «скотча» */
.sticker__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 60px;
  height: 22px;
  margin-left: -30px;
  background: rgba(255, 255, 255, .55);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, .7);
  transform: rotate(-1.5deg);
  transition: opacity var(--dur-md) var(--ease) 150ms, transform var(--dur-md) var(--ease) 150ms;
}
.sticker.is-in .sticker__tape { opacity: 1; transform: translateY(0) rotate(-1.5deg); }

.sticker__val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.sticker__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.sticker__txt { margin-top: 10px; font-size: 0.94rem; line-height: 1.5; }
.sticker__term {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 11, 11, .35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .sticker.is-in:hover {
    transform: perspective(600px) rotateX(4deg) translateX(0) rotate(calc(var(--rot) + 2deg));
    box-shadow: var(--shadow-sticker-hi);
    transition-duration: var(--dur-md);
    transition-delay: 0s;
  }
}

/* ==========================================================================
   11. ОТЗЫВЫ — ЛЕНТЫ
   ========================================================================== */

.aspects {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(14px, 2vw, 28px);
}
.aspect__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.aspect__pct { font-weight: 700; font-size: 15px; }
.aspect__track { margin-top: 8px; height: 8px; background: var(--line-lt); }
.aspect__fill {
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--v, 1));
  transition: transform 700ms var(--ease);
}
.js .aspect__fill { transform: scaleX(0); }
.aspect.is-in .aspect__fill { transform: scaleX(var(--v, 1)); }
.aspect:nth-child(2).is-in .aspect__fill { transition-delay: 80ms; }
.aspect:nth-child(3).is-in .aspect__fill { transition-delay: 160ms; }
.aspect:nth-child(4).is-in .aspect__fill { transition-delay: 240ms; }
.aspect:nth-child(5).is-in .aspect__fill { transition-delay: 320ms; }
.aspect__cnt { font-family: var(--font-mono); font-size: 11px; color: var(--muted-dk); margin-top: 6px; }

.lanes { margin-top: clamp(36px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.lane { overflow: hidden; }
.lane__track { display: flex; flex: none; gap: 18px; width: max-content; will-change: transform; }

.rev {
  flex: none;
  width: clamp(300px, 26vw, 380px);
  background: #fff;
  border: 1px solid var(--line-lt);
  padding: 22px;
  transform: rotate(var(--rot, 0deg));
  transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}
.rev:nth-child(3n) { --rot: -0.8deg; }
.rev:nth-child(3n+1) { --rot: 0.6deg; }
@media (hover: hover) {
  .rev:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-sticker); }
}
.rev__stars { display: flex; gap: 3px; color: var(--accent); }
.rev__stars svg { width: 16px; height: 16px; }
.rev__txt { margin-top: 14px; font-size: 0.94rem; line-height: 1.55; }
.rev__meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-lt);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-dk);
}

.lanes__bar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}
.pause-btn svg { width: 14px; height: 14px; }
@media (hover: hover) { .pause-btn:hover { background: var(--ink); color: var(--paper); } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-md) var(--ease); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(6px); } }

/* ==========================================================================
   12. КОНТАКТЫ И КАРТА
   ========================================================================== */

.contacts__grid {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.contacts__blank { max-width: 560px; }
.contacts__phones { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.contacts__msgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.infobox {
  margin-top: 28px;
  border: 1px solid var(--line);
  padding: 20px;
}
.section--paper .infobox,
.section--paper2 .infobox { border-color: var(--line-lt); }
.infobox__t {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section--paper .infobox__t,
.section--paper2 .infobox__t { color: var(--ink); }
.infobox ul { display: flex; flex-direction: column; gap: 8px; }
.infobox li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  color: #C4C4C4;
}
.section--paper .infobox li,
.section--paper2 .infobox li { color: var(--muted-dk); }
.infobox li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 2px;
  background: var(--accent);
}

/* Карта */
.map {
  position: relative;
  min-height: clamp(320px, 46vw, 560px);
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}
.map__stub {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(20px, 3vw, 40px);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map__addr { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.4rem); text-transform: uppercase; letter-spacing: -0.02em; max-width: 20ch; }
.map__geo { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.map__frame { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; }
.map__iframe-wrap {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(1.1) invert(0.92);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-scan) linear;
}
.map__iframe-wrap.is-shown { clip-path: inset(0 0 0 0); }
.map__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 24px 2px rgba(255, 195, 0, .55);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.map.is-loading .map__scan { animation: mapScan var(--dur-scan) linear forwards; }
@keyframes mapScan {
  0% { transform: translateY(0); opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translateY(clamp(320px, 46vw, 560px)); opacity: 0; }
}
.map__pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 34px;
  margin: -34px 0 0 -13px;
  color: var(--accent);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6));
}
.map__pin[hidden] { display: none; }

/* ==========================================================================
   13. О НАС — ТАЙМЛАЙН И ШАГИ
   ========================================================================== */

.tl { position: relative; margin-top: clamp(36px, 4vw, 56px); padding-left: 44px; }
.tl__rail {
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.tl__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
.tl__item { position: relative; padding-bottom: clamp(28px, 4vw, 44px); }
.tl__dot {
  position: absolute;
  left: -44px;
  top: 6px;
  width: 20px; height: 20px;
  margin-left: 0;
  border: 2px solid var(--line);
  background: var(--ink);
}
.js .tl__dot { transform: scale(0); }
/* Конечное состояние задаётся классом, анимация только добавляет щелчок */
.tl__item.is-on .tl__dot {
  transform: scale(1);
  border-color: var(--accent);
  animation: dotPop 200ms var(--ease-stamp);
}
@keyframes dotPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.tl__item.is-on .tl__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
}
.tl__date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.tl__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.tl__txt { margin-top: 10px; color: #C4C4C4; max-width: 68ch; font-size: 0.96rem; }

/* Четыре шага с пунктирной линией */
.steps { position: relative; margin-top: clamp(36px, 4vw, 56px); }
.steps__line {
  position: absolute;
  left: 0; right: 0;
  top: 34px;
  height: 20px;
  width: 100%;
  overflow: visible;
}
.steps__line path { stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 8; fill: none; }
.steps__line .steps__prog { stroke: var(--accent); stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--off, 1000); }
.steps__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.step { position: relative; }
.step__num {
  width: 68px; height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  transition: color var(--dur-md) var(--ease), border-color var(--dur-md) var(--ease), transform var(--dur-md) var(--ease-stamp);
}
.step.is-on .step__num { color: var(--ink); background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.step__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.step__txt { margin-top: 10px; font-size: 0.92rem; color: #C4C4C4; }
.section--paper .step__txt, .section--paper2 .step__txt { color: var(--muted-dk); }

/* Блок «что мы не делаем» */
.nots {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-lt);
  border: 1px solid var(--line-lt);
}
.not { background: var(--paper); padding: clamp(20px, 2.4vw, 30px); }
.not__x { color: var(--sale); font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1; }
.not__t {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.not__p { margin-top: 10px; font-size: 0.93rem; color: var(--muted-dk); }

/* Хлебные крошки */
.crumbs {
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li::after { content: "/"; margin-left: 8px; opacity: .5; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { border-bottom: 1px solid transparent; }
@media (hover: hover) { .crumbs a:hover { border-bottom-color: var(--accent); } }

/* Шапка внутренней страницы */
.phead { background: var(--ink); color: var(--paper); padding-block: clamp(36px, 5vw, 72px); }
.phead h1 { font-size: clamp(2rem, 6vw, 4.6rem); }

/* ==========================================================================
   14. ПОДВАЛ
   ========================================================================== */

.foot { background: var(--ink); color: var(--paper); overflow: hidden; }
.foot__cols {
  padding-block: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.foot__t {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.foot__list { display: flex; flex-direction: column; gap: 8px; }
.foot__list a, .foot__list span {
  display: inline-block;
  font-size: 0.92rem;
  color: #C4C4C4;
  min-height: 24px;
  transition: color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}
@media (hover: hover) { .foot__list a:hover { color: var(--accent); transform: translateX(4px); } }

.foot__meta {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.foot__meta b { color: var(--paper); }

.foot__disclaimer {
  border-top: 1px solid var(--line);
  padding-block: 20px 28px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 110ch;
}

/* Гигантский обрезанный логотип */
.foot__giant {
  width: 100%;
  overflow: hidden;
  height: 0.62em;
  /* «MAGIC TECHNIQUE» занимает ~11.6em при letter-spacing -0.055em,
     поэтому кегль ограничен так, чтобы слово ровно вписывалось в ширину экрана */
  font-size: 8.2vw;
  line-height: 1;
  user-select: none;
}
.foot__giant-inner {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1;
}
.gl { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1; }
.gl > span { display: inline-block; transform: translateY(110%); transition: transform 420ms var(--ease); }
.foot.is-in .gl > span { transform: translateY(0); }

/* ==========================================================================
   15. КНОПКА «НАВЕРХ»
   ========================================================================== */

.totop {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 90;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--ink);
  transform: translateY(60px) rotate(-90deg);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-lg) var(--ease), opacity var(--dur-md) var(--ease);
}
.totop.is-on { transform: translateY(0) rotate(0deg); opacity: 1; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; }
.totop.is-fired svg { animation: arrowFly 480ms var(--ease); }
@keyframes arrowFly {
  0%   { transform: translateY(0); opacity: 1; }
  45%  { transform: translateY(-34px); opacity: 0; }
  55%  { transform: translateY(34px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   16. СТРАНИЦА 404
   ========================================================================== */

.e404 {
  background: var(--ink);
  color: var(--paper);
  min-height: calc(100vh - var(--header-h) - var(--ticker-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vw, 100px) var(--gutter);
}
.e404__stamp {
  display: inline-block;
  border: 3px solid var(--sale);
  padding: 5px;
  transform: rotate(-4deg);
  animation: stampInFlat var(--dur-xs) var(--ease-stamp) 200ms;
}
.e404__inner {
  border: 1px solid var(--sale);
  padding: clamp(22px, 4vw, 46px) clamp(20px, 6vw, 72px);
}
.e404__title {
  color: var(--sale);
  font-size: clamp(1.15rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  margin: 0;
}
.e404__title span { display: inline-block; }
.e404__title span:nth-child(3n) { transform: translateY(2px); }
.e404__title span:nth-child(3n+1) { transform: translateY(-2px); }
.e404__title span:nth-child(4n) { transform: translateY(3px); }
.e404__title span:nth-child(5n) { transform: translateY(-1px); }
.e404__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 24px;
}
.e404__note { margin-top: 26px; color: var(--muted); }
.e404__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   17. АДАПТИВНОСТЬ
   ========================================================================== */

@media (min-width: 768px) {
  .filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__grid .fset--wide { grid-column: 1 / -1; }
  .contacts__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
}

@media (max-width: 1023.98px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps__line { display: none; }
}

@media (max-width: 899.98px) {
  .nav { display: none; }
  .hdr__phone { display: none; }
  .burger { display: flex; }
  .logo { margin-right: auto; }
  .filters { position: static; }
  .ttable thead th { top: 0; }
}

@media (max-width: 767.98px) {
  :root { --header-h: 64px; --header-h-sm: 56px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__cell:nth-child(2n)::before { display: block; }
  .stats__cell:nth-child(3)::before,
  .stats__cell:nth-child(4) { }
  .stats__cell:nth-child(3), .stats__cell:nth-child(4) { border-top: 1px solid var(--line-lt); }
  .cond__grid { grid-template-columns: minmax(0, 1fr); }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .reg__brands { display: none; }
  .reg__row { min-height: 72px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .rev { width: 280px; }
  .foot__giant { font-size: 8vw; }
  .e404 { min-height: 70vh; }
}

@media (max-width: 479.98px) {
  .hero__line--3 { padding-left: 16px; }
  .label-box { padding: 16px; }
  .blank__row { font-size: 12px; }
}

/* ==========================================================================
   18. PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__line, .hero__text { clip-path: none !important; }
  .hero__actions, .label-box, .cond, .sticker { opacity: 1 !important; }
  .cond { transform: rotate(var(--rot)) scale(1) !important; opacity: 1 !important; }
  .sticker { transform: translateX(0) rotate(var(--rot)) !important; }
  .strike::after { transform: scaleX(1) !important; }
  .label-box__bc { background-size: 100% 100% !important; }
  .gl > span { transform: translateY(0) !important; }
  .hero__scan, .map__scan { display: none !important; }
  .reg__brands { transform: translateX(0) !important; opacity: 1 !important; }
}

/* ==========================================================================
   19. МЕЛКИЕ УТИЛИТЫ И ТОЧЕЧНЫЕ ПРАВКИ
   ========================================================================== */

.mt-l { margin-top: clamp(28px, 4vw, 44px); }

/* Крестик в мобильном меню — статичное состояние «закрыть» */
.mmenu__close { display: flex; }
.mmenu__close .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mmenu__close .burger__line:nth-child(2) { opacity: 0; }
.mmenu__close .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Нумерованный вариант маркера в блоке-сетке «что мы можем» */
.not__x--num { color: var(--ink); }
.section--tight { padding-top: 0; }

/* Тач-устройства и узкие экраны: минимальная тапабельная зона 44 px
   во вторичной навигации (списки подвала, крошки, телефон в карточке) */
@media (pointer: coarse), (max-width: 767.98px) {
  .foot__list a,
  .crumbs a,
  .card__tel {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .icon-link { width: 44px; height: 44px; }
}

/* ==========================================================================
   БАННЕР-ОБЪЯВЛЕНИЕ (управляется из админки /admin)
   ========================================================================== */
.cms-banner {
  background: var(--accent);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.cms-banner[hidden] { display: none; }
.cms-banner__in {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  font-family: var(--font-text);
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.35;
}
.cms-banner__txt { margin: 0; flex: 1 1 auto; font-weight: 500; }
.cms-banner__link {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.cms-banner__link[hidden] { display: none; }
.cms-banner__x {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 11, 11, .35);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-sm) var(--ease);
}
.cms-banner__x:hover { background: rgba(11, 11, 11, .1); }
@media (max-width: 560px) {
  .cms-banner__in { flex-wrap: wrap; }
  .cms-banner__txt { flex: 1 1 100%; }
}

/* ==========================================================================
   ОБРАТНЫЙ ЗВОНОК
   ========================================================================== */
.hdr__phone,
.hdr__cb {
  height: 44px;
  min-height: 44px;
}
.hdr__cb { padding: 8px 14px; font-size: .8rem; }
@media (max-width: 1200px) { .hdr__cb { display: none; } }
.mmenu__cb { width: 100%; margin-top: 14px; }

.cb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 11, 11, .72);
  overflow-y: auto;
}
.cb[hidden] { display: none; }

.cb__win {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(24px, 4vw, 38px) clamp(20px, 3vw, 34px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.cb__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-lt);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-sm) var(--ease);
}
.cb__x:hover { background: var(--paper-2); }

.cb__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dk);
}
.cb__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.15;
}
.cb__sub { margin: 0 0 22px; font-size: .9rem; line-height: 1.5; color: var(--muted-dk); }

.cb__fld { display: block; margin-bottom: 14px; }
.cb__lab {
  display: block;
  margin-bottom: 5px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-dk);
}
.cb__in {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-lt);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  outline: none;
  transition: border-color var(--dur-sm) var(--ease);
}
.cb__in:focus { border-color: var(--ink); }
textarea.cb__in { resize: vertical; min-height: 74px; line-height: 1.45; }

/* Приманка для ботов: люди её не видят и не заполняют */
.cb__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cb__agree {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--muted-dk);
  cursor: pointer;
}
.cb__agree input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--ink); }

.cb__err {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-left: 3px solid var(--sale);
  background: rgba(229, 50, 45, .1);
  font-size: .84rem;
}
.cb__err[hidden] { display: none; }
.cb__submit { width: 100%; padding: 13px; }

.cb__ok { text-align: center; padding: 10px 0 4px; }
.cb__ok[hidden] { display: none; }
.cb__oktitle {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.cb__oktext { margin: 0 0 20px; font-size: .9rem; line-height: 1.5; color: var(--muted-dk); }
