/* ==========================================================================
   BRICKFRAME – «PIT LANE»
   Дизайн-система: асфальт, карбон, свет от LED-подсветки самих рамок.
   Каждый товар несёт цвет своей ливреи (--accent) и «зажигается» на ховере.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Токены */
:root {
  /* Поверхности: от асфальта к карбону */
  --bg:          #06070A;
  --bg-soft:     #0A0C11;
  --surface:     #101318;
  --surface-2:   #171B22;
  --surface-3:   #1F242D;

  /* Обводки */
  --line:        rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);

  /* Текст */
  --ink:         #F5F7FA;
  --ink-2:       #A5ADB9;
  --ink-3:       #6C7381;

  /* Фирменные */
  --red:         #FF2E38;   /* racing red – основное действие */
  --red-deep:    #C20D16;
  --amber:       #FFC400;   /* lego yellow – акценты, цифры */
  --go:          #00E36A;   /* зелёный старт */

  /* Цвет ливреи текущего блока. Переопределяется на карточках и товаре. */
  --accent:      #FF2E38;

  /* Типографика */
  --f-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --f-text:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Ритм */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1320px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Движение */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 74px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  /* наклонённые ленты шире экрана – обрезаем, но без горизонтальной прокрутки */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

::selection { background: var(--red); color: #fff; }

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

/* Перепрыгнуть шапку с клавиатуры: видно только при фокусе */
.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 1000;
  padding: .7rem 1.1rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Точка перехода не должна рисовать рамку вокруг всей страницы */
main:focus { outline: none; }

/* Асфальт: едва заметная «крошка» на фоне всей страницы */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(255, 46, 56, .05), transparent 42%),
    radial-gradient(circle at 85% 78%, rgba(0, 160, 255, .045), transparent 46%);
}

/* --------------------------------------------------------- 3. Типографика */
.display,
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.h-hero {
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.012em;
}

.h-1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); }
.h-2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
.h-3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: 0; }

.lead {
  font-family: var(--f-text);
  font-size: clamp(1rem, 1.35vw, 1.185rem);
  line-height: 1.62;
  color: var(--ink-2);
  text-transform: none;
  font-weight: 400;
}

/* Телеметрия – мелкие подписи в стиле приборной панели */
.tele {
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.tele--accent { color: var(--accent); }

/* Номер секции: «01 /» */
.sec-num {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--red);
  font-weight: 700;
}

/* Текст с «прострочкой» справа – как разметка на трассе */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--red);
  flex: none;
}

/* --------------------------------------------------------- 4. Раскладка */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  position: relative;
}

.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.sec-head__text { max-width: 42ch; }
.sec-head__text .lead { margin-top: 1rem; }
.sec-head .h-1, .sec-head .h-2 { margin-top: .8rem; }

/* Разделитель – гоночная лента «старт/финиш» */
.chequer {
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--line-strong) 0 12px,
      transparent 12px 24px),
    repeating-linear-gradient(90deg,
      transparent 0 12px,
      var(--line-strong) 12px 24px);
  background-size: 24px 4px, 24px 4px;
  background-position: 0 0, 12px 4px;
  background-repeat: repeat-x;
  opacity: .5;
}

/* ---------------------------------------------------------- 5. Кнопки */
.btn {
  --btn-bg: var(--red);
  --btn-ink: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.9rem;
  font-family: var(--f-text);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border-radius: var(--r-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s;
  will-change: transform;
}

/* Световой блик, пробегающий по кнопке – «промельк» */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .3) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -10px color-mix(in srgb, var(--btn-bg) 75%, transparent);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
  background: rgba(255, 255, 255, .05);
}

.btn--light { --btn-bg: var(--ink); --btn-ink: #0A0C11; }
.btn--amber { --btn-bg: var(--amber); --btn-ink: #14100A; }
.btn--lg { padding: 1.15rem 2.3rem; font-size: .95rem; }
.btn--sm { padding: .7rem 1.25rem; font-size: .78rem; }
.btn--block { display: flex; width: 100%; }

/* Ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: gap .3s var(--ease-out), border-color .3s, color .3s;
}
.link-arrow:hover { gap: .95rem; border-color: var(--red); color: var(--red); }

/* Пилюля-тег */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .03);
  white-space: nowrap;
}

.pill--live { color: var(--go); border-color: color-mix(in srgb, var(--go) 35%, transparent); }
.pill--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 10px var(--go);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ------------------------------------------------ 6. Стартовые огни (интро) */
.lights {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  gap: 2.2rem;
  background: #05060a;
  transition: opacity .55s var(--ease-out), visibility .55s;
}

.lights__gantry {
  display: flex;
  gap: clamp(.65rem, 2.4vw, 1.35rem);
}

.lights__pod {
  width: clamp(42px, 9vw, 74px);
  padding: 10px 0;
  border-radius: 10px;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, .09);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.lights__bulb {
  width: clamp(20px, 4.4vw, 34px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1b0508;
  transition: background .18s, box-shadow .18s;
}

.lights__pod.is-on .lights__bulb {
  background: var(--red);
  box-shadow: 0 0 22px 2px rgba(255, 46, 56, .85), inset 0 0 8px rgba(255, 255, 255, .5);
}

.lights.is-go .lights__pod .lights__bulb {
  background: var(--go);
  box-shadow: 0 0 26px 3px rgba(0, 227, 106, .85), inset 0 0 8px rgba(255, 255, 255, .5);
}

.lights__label {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-3);
}
.lights.is-go .lights__label { color: var(--go); }

.lights.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------------------------------------------------------- 7. Шапка */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(6, 7, 10, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Логотип: «кирпич» + слово */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  font-family: var(--f-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  flex: none;
}

.logo__mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--red);
  position: relative;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset;
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
/* два «стада» лего-кирпича */
.logo__mark::before,
.logo__mark::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 9px; height: 6px;
  border-radius: 3px 3px 1px 1px;
  background: var(--red);
}
.logo__mark::before { left: 5px; }
.logo__mark::after  { right: 5px; }

.logo:hover .logo__mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 24px -4px var(--red), 0 0 0 1px rgba(255, 255, 255, .18) inset;
}

.logo b { font-weight: 700; }
.logo span { color: var(--red); }

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: .55rem .85rem;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  border-radius: 6px;
  transition: color .25s;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: .6rem; flex: none; }

/* Полоса прогресса чтения – «круг по трассе» */
.header__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--amber));
}

/* Бургер */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  place-content: center;
  gap: 5px;
  flex: none;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 890;
  background: rgba(6, 7, 10, .97);
  backdrop-filter: blur(20px);
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .35s var(--ease-out), visibility .35s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav a {
  font-family: var(--f-display);
  font-size: 1.75rem;
  text-transform: uppercase;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.mobile-nav a span { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); }
.mobile-nav .btn { margin-top: 1.6rem; }

/* ------------------------------------------------------------- 8. Герой */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  overflow: hidden;
  isolation: isolate;
}

/* Сетка «трассы» на фоне */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(120% 90% at 50% 35%, #000 25%, transparent 72%);
  opacity: .55;
}

/* Свет от рамки, окрашивает всю сцену в цвет ливреи */
.hero__glow {
  position: absolute;
  z-index: -2;
  top: 42%; right: 12%;
  width: min(78vw, 900px);
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 62%);
  filter: blur(28px);
  opacity: .82;
  transition: background 1s var(--ease-in-out);
  pointer-events: none;
}

/* Световые «стрики» – след скорости */
.hero__streaks { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero__streak {
  position: absolute;
  height: 1px;
  width: 45%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent);
  opacity: 0;
  animation: streak 5.5s var(--ease-in-out) infinite;
}
.hero__streak:nth-child(1) { top: 22%; animation-delay: 0s; }
.hero__streak:nth-child(2) { top: 47%; animation-delay: 1.6s; }
.hero__streak:nth-child(3) { top: 71%; animation-delay: 3.1s; }
.hero__streak:nth-child(4) { top: 86%; animation-delay: 4.3s; }

@keyframes streak {
  0%   { transform: translateX(-60%); opacity: 0; }
  12%  { opacity: .85; }
  55%  { opacity: .5; }
  100% { transform: translateX(230%); opacity: 0; }
}

.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__copy { max-width: 40rem; }

.hero h1 { margin: 1.35rem 0 0; }

/* Слово, подсвеченное как LED */
.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(180deg, #fff 0%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 45%, transparent));
  transition: filter .8s var(--ease-in-out);
}

.hero__lead { margin-top: 1.5rem; max-width: 34rem; }

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .55rem;
}

/* Витрина в герое: стопка рамок */
.hero__stage {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero__frames {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
}

.hero__frame {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  opacity: 0;
  transform: scale(.94) translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(255, 255, 255, .07) inset;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame.is-active { opacity: 1; transform: none; }

/* Бегущий по рамке блик – «включённый LED» */
.hero__frames::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .13) 48%, transparent 58%);
  background-size: 260% 100%;
  animation: sheen 6.5s var(--ease-in-out) infinite;
  mix-blend-mode: screen;
}
@keyframes sheen {
  0%, 62% { background-position: 190% 0; }
  100%    { background-position: -60% 0; }
}

/* Табличка с моделью – как на пит-волле */
.hero__plate {
  position: absolute;
  left: -6%; bottom: 14%;
  width: max-content;
  max-width: 47%;
  padding: .85rem 1.15rem;
  background: rgba(10, 12, 17, .82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  transition: border-color .8s var(--ease-in-out),
              opacity .22s var(--ease-out), transform .22s var(--ease-out);
}

/* Подпись гасим на время смены кадра: иначе название успевает
   поменяться раньше, чем доедет новая фотография. */
.hero__plate.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}
.hero__plate .tele { display: block; margin-bottom: .3rem; }
.hero__plate strong {
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  display: block;
  line-height: 1.12;
  text-wrap: balance;
}
.hero__plate .hero__price {
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--ink-2);
  margin-top: .4rem;
  display: block;
}
.hero__plate .hero__price b { color: var(--ink); font-weight: 700; }

/* Индикаторы – полоски как на табло хронометража */
.hero__dots {
  position: absolute;
  left: 50%; bottom: -30px;
  translate: -50% 0;
  display: flex;
  gap: .4rem;
}
.hero__dot {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background .4s, width .45s var(--ease-out);
  cursor: pointer;
  padding: 0;
}
.hero__dot.is-active { background: var(--accent); width: 44px; }

/* Скролл-подсказка */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: .5rem;
  z-index: 2;
}
.hero__scroll span {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero__scroll i {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--ink-3), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--red);
  animation: scroll-run 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-run {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* ------------------------------------------------------- 9. Бегущая лента */
.ticker {
  position: relative;
  padding-block: 1.05rem;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid rgba(0, 0, 0, .25);
  transform: rotate(-1.15deg) scale(1.035);
  z-index: 3;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

.ticker__item {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
}
.ticker__item::after {
  content: '';
  width: 7px; height: 7px;
  background: #fff;
  transform: rotate(45deg);
  flex: none;
  opacity: .75;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* Вариант ленты: тёмная, с фактами */
.ticker--dark {
  background: var(--surface);
  color: var(--ink-2);
  transform: rotate(.75deg) scale(1.035);
  border-block-color: var(--line);
}
.ticker--dark .ticker__item { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; font-weight: 500; }
.ticker--dark .ticker__item::after { background: var(--red); }

/* ------------------------------------------- 10. Карточка товара (сетка) */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
  will-change: transform;
}

/* Свечение ливреи – «подсветка включена» */
.card::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--accent) 46%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease-out);
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 26px 60px -28px color-mix(in srgb, var(--accent) 70%, transparent);
}
.card:hover::before,
.card:focus-within::before { opacity: 1; }

.card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .45s;
}
.card:hover .card__media img { transform: scale(1.05); }

/* Второй кадр – «вид с подсветкой» */
.card__media img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.card:hover .card__media img + img { opacity: 1; }

.card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  z-index: 2;
  padding: .3rem .6rem;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.card__badge--new { background: var(--amber); color: #14100A; }

.card__types {
  position: absolute;
  right: .75rem; bottom: .75rem;
  z-index: 2;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.card:hover .card__types { opacity: 1; transform: none; }

.card__type {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(8, 10, 14, .8);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: .64rem;
  font-weight: 700;
  color: var(--ink-2);
}

.card__body {
  padding: 1.05rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}

.card__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.card__name {
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: .005em;
}
.card__name a::after { content: ''; position: absolute; inset: 0; z-index: 3; }

.card__set {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--ink-3);
  letter-spacing: .08em;
  flex: none;
}

.card__price {
  margin-top: auto;
  padding-top: .55rem;
  display: flex;
  align-items: baseline;
  gap: .55rem;
  border-top: 1px solid var(--line);
}
.card__price b {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.card__price s { color: var(--ink-3); font-size: .82rem; font-family: var(--f-mono); }
.card__price em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .66rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- 11. Табы */
.tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.tab {
  padding: .6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .25s, border-color .25s, background .25s;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.tab span { opacity: .55; margin-left: .35rem; }

/* --------------------------------------------- 12. Анатомия / комплект */
.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.anatomy__stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 1;
}
.anatomy__stage img { width: 100%; height: 100%; object-fit: cover; }

.anatomy__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 70% at 50% 55%, transparent 30%, rgba(4, 5, 8, .55) 100%);
  pointer-events: none;
}

/* Точка-хотспот */
.hotspot {
  position: absolute;
  z-index: 3;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 10, 14, .7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 700;
  transition: background .3s, transform .35s var(--ease-out), border-color .3s;
}
.hotspot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--red);
  opacity: .55;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(.75); opacity: .7; }
  75%  { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
.hotspot:hover, .hotspot.is-active {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.15);
}

.spec-list { display: grid; gap: .55rem; }

.spec {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .35s, background .35s, transform .35s var(--ease-out);
  cursor: default;
}
.spec:hover, .spec.is-active {
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
  background: var(--surface-2);
  transform: translateX(4px);
}

.spec__num {
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  padding-top: .12rem;
}
.spec h3 { font-size: 1.02rem; letter-spacing: .01em; }
.spec p { margin-top: .3rem; color: var(--ink-2); font-size: .9rem; line-height: 1.55; }

/* ------------------------------------------------------ 13. Цифры / KPI */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.stat {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: 0; }

.stat::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.stat.is-in::after { transform: scaleX(1); }

.stat__val {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: .1em;
}
.stat__val i { font-style: normal; font-size: .45em; color: var(--red); }
.stat__label { margin-top: .55rem; color: var(--ink-2); font-size: .88rem; }

/* --------------------------------------------------------- 14. На стене */
.showcase {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: clamp(380px, 56vw, 620px);
  display: grid;
  align-items: end;
  isolation: isolate;
}
.showcase__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.showcase__bg img { width: 100%; height: 100%; object-fit: cover; }
.showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 5, 8, .35) 0%, rgba(4, 5, 8, .55) 45%, rgba(4, 5, 8, .95) 100%);
}
.showcase__body {
  padding: clamp(1.6rem, 4vw, 3.4rem);
  max-width: 46rem;
}
.showcase__body .lead { margin-top: 1rem; }
.showcase__body .btn { margin-top: 1.8rem; }

/* --------------------------------------------------------- 15. Кастом */
.custom {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(255, 46, 56, .16), transparent 55%),
    radial-gradient(80% 120% at 95% 100%, rgba(255, 196, 0, .12), transparent 55%),
    var(--surface);
  padding: clamp(2rem, 5vw, 4.2rem);
  overflow: hidden;
}

.custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.custom__steps { display: grid; gap: .9rem; margin-top: 2rem; }
.custom__step {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.custom__step i {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  color: var(--amber);
}
.custom__step p { color: var(--ink-2); font-size: .95rem; }
.custom__step p b { color: var(--ink); font-weight: 700; }

/* Плитка вариантов «Тип» */
.type-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}
.type-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.type-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.type-tile:hover img { transform: scale(1.06); }
.type-tile span {
  position: absolute;
  left: .6rem; bottom: .6rem;
  padding: .22rem .5rem;
  border-radius: 4px;
  background: rgba(6, 7, 10, .78);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--ink);
}

/* -------------------------------------------------------- 16. Отзывы */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.review {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .35s, transform .45s var(--ease-out), background .35s;
}
.review:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
}

.review__stars { display: flex; gap: 2px; color: var(--amber); }
.review__stars svg { width: 15px; height: 15px; fill: currentColor; }
.review p { color: var(--ink-2); font-size: .93rem; line-height: 1.62; flex: 1; }
.review footer {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.review__ava {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-family: var(--f-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  flex: none;
}
.review__who b { display: block; font-size: .88rem; font-weight: 700; }
.review__who span { font-family: var(--f-mono); font-size: .66rem; color: var(--ink-3); letter-spacing: .08em; }

/* Последняя карточка в сетке отзывов – приглашение написать,
   заодно закрывает пустую ячейку в ряду. */
.review--cta {
  justify-content: space-between;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 46, 56, .14), transparent 60%),
    var(--surface);
  border-color: color-mix(in srgb, var(--red) 28%, transparent);
}
.review--cta:hover { border-color: var(--red); }
.review--cta p { flex: 0; color: var(--ink-2); }
.review--cta p b { color: var(--ink); display: block; margin-bottom: .35rem; font-size: 1rem; }
.review--cta .link-arrow { align-self: flex-start; }

/* ----------------------------------------------------------- 17. FAQ */
.faq { display: grid; gap: .55rem; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s, background .35s;
}
.faq__item.is-open { border-color: var(--line-strong); background: var(--surface-2); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color .25s;
}
.faq__q:hover { color: var(--red); }

.faq__icon {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background .3s, border-color .3s, transform .4s var(--ease-out);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% 5px auto;
  height: 1.5px;
  background: currentColor;
  translate: 0 -50%;
  transition: transform .35s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 1.35rem 1.3rem;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.65;
}
.faq__a p + p { padding-top: 0; }

/* ------------------------------------------------------- 18. CTA / футер */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(2.4rem, 6vw, 4.8rem);
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(255, 46, 56, .2), transparent 60%),
    var(--surface);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--amber), var(--red), transparent);
}
.cta-band .lead { margin: 1.1rem auto 0; max-width: 46ch; }
.cta-band__actions { margin-top: 2.2rem; display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.8rem, 5vw, 4.5rem) 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--bg-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer__about .lead { margin-top: 1rem; font-size: .92rem; max-width: 32ch; }
.footer__socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer__social {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  transition: color .3s, border-color .3s, transform .35s var(--ease-out), background .3s;
}
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__social:hover { color: #fff; border-color: var(--red); background: var(--red); transform: translateY(-3px); }

.footer h4 {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer__col li + li { margin-top: .55rem; }
.footer__col a { font-size: .92rem; color: var(--ink-2); transition: color .25s, padding-left .3s var(--ease-out); }
.footer__col a:hover { color: var(--ink); padding-left: 5px; }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: .7rem;
  color: var(--ink-3);
  letter-spacing: .06em;
}
.footer__bottom a:hover { color: var(--ink-2); }

/* ------------------------------------------------- 19. Страница каталога */
.page-head {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.page-head h1 { margin-top: 1rem; }
.page-head .lead { margin-top: 1.1rem; max-width: 52ch; }

.breadcrumbs {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { opacity: .45; }

.filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  position: sticky;
  top: var(--header-h);
  background: rgba(6, 7, 10, .9);
  backdrop-filter: blur(14px);
  z-index: 40;
}
.filters__count { margin-left: auto; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .1em; }

.select {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select select {
  appearance: none;
  padding: .6rem 2.2rem .6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}
.select::after {
  content: '';
  position: absolute;
  right: 1rem;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}

.empty {
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty h3 { margin-bottom: .8rem; }
.empty p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }

/* -------------------------------------------------- 20. Страница товара */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem));
}

.gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.gallery__main {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  isolation: isolate;
}
.gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .5s var(--ease-out);
}

/* Свет вокруг рамки, когда «подсветка включена» */
.gallery__main::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .7s var(--ease-out);
  pointer-events: none;
}
.product.led-on .gallery__main::before { opacity: 1; }
.product.led-on .gallery__main {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 70px -18px color-mix(in srgb, var(--accent) 85%, transparent);
}

.gallery__thumbs {
  margin-top: .7rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .55rem;
}
.gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: .5;
  transition: opacity .3s, border-color .3s, transform .35s var(--ease-out);
  padding: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; transform: translateY(-2px); }
.gallery__thumb.is-active { opacity: 1; border-color: var(--accent); }

.product__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.product h1 { margin-top: 1rem; }
.product__sub { margin-top: .9rem; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

.price-box {
  margin-top: 1.8rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .5s;
}
.product.led-on .price-box { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

.price-box__row { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.price-box__now {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
}
.price-box__old { font-family: var(--f-mono); font-size: .95rem; color: var(--ink-3); text-decoration: line-through; }
.price-box__save {
  padding: .25rem .55rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--go) 18%, transparent);
  color: var(--go);
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 700;
}
.price-box__note { margin-top: .5rem; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .06em; }

.opt { margin-top: 1.6rem; }
.opt__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .7rem;
}
.opt__label .tele { color: var(--ink-2); }
.opt__label b { font-family: var(--f-mono); font-size: .72rem; color: var(--ink); letter-spacing: .08em; }

.opt__row { display: flex; gap: .5rem; flex-wrap: wrap; }

.opt-btn {
  min-width: 48px;
  padding: .65rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .25s, border-color .25s, background .25s, transform .3s var(--ease-out);
}
.opt-btn:hover { color: var(--ink); transform: translateY(-2px); }
.opt-btn.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px var(--accent);
}

/* Тумблер подсветки */
.led-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .4s, background .4s, box-shadow .5s;
}
.product.led-on .led-toggle {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 30px -14px var(--accent);
}

.led-toggle__text { text-align: left; }
.led-toggle__text b { display: block; font-size: .95rem; font-weight: 700; }
.led-toggle__text span { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .06em; }

.switch {
  flex: none;
  width: 54px; height: 30px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background .35s, border-color .35s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: transform .38s var(--ease-out), background .35s, box-shadow .35s;
}
.product.led-on .switch { background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent); }
.product.led-on .switch::after {
  transform: translateX(24px);
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

/* Текстовая выжимка со страницы товара: её видит поисковик и человек
   без JS, а для остальных она работает как короткое резюме под опциями. */
.product__summary {
  margin-top: 1.6rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, .025);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: border-color .5s;
}
.product__summary p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.buy { margin-top: 1.6rem; display: grid; gap: .6rem; }
.buy__note {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: .06em;
}

.trust {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.trust__item {
  padding: .85rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.trust__item b { display: block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; }
.trust__item span { font-size: .78rem; color: var(--ink-3); }

/* ------------------------------------------------------ 21. Контакты */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.contact-card {
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .35s, transform .45s var(--ease-out), background .35s;
  display: block;
}
.contact-card:hover { border-color: var(--red); background: var(--surface-2); transform: translateY(-4px); }
.contact-card h3 { margin: 1rem 0 .4rem; font-size: 1.15rem; }
.contact-card p { color: var(--ink-2); font-size: .92rem; }
.contact-card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong);
  color: var(--red);
}
.contact-card__icon svg { width: 20px; height: 20px; fill: currentColor; }

/* ----------------------------------------------- 22. Появление по скроллу */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }

/* --------------------------------------------------------- 23. Адаптив */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__stage { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero { min-height: auto; padding-bottom: 5rem; }
  .hero__plate { left: 0; }
  .anatomy, .custom__grid, .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header__cta .btn { display: none; }
  .burger { display: grid; margin-left: auto; }
  .hero__scroll { display: none; }
  .hero__plate { left: 0; max-width: 72%; }
  /* на узком экране кнопки в один столбец одинаковой ширины */
  .hero__actions,
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn,
  .cta-band__actions .btn { width: 100%; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .filters { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .card__body { padding: .8rem .85rem 1rem; }
  .card__name { font-size: .92rem; }
  .card__price b { font-size: 1.1rem; }
  .gallery__thumbs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, 1fr); }
  .hero__plate { min-width: 0; width: 82%; }
}

/* -------------------------------------- 24. Уважение к настройкам движения */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__frame { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ------------------------------------------------------------ 25. Печать */
@media print {
  .header, .footer, .ticker, .hero__scroll, .lights { display: none; }
  body { background: #fff; color: #000; }
}
