/* ============================================================
   СТРОЙФЛЕКС — оптовый склад строительной химии

   Два мира в одном сайте:
   · главная — ночной склад: объём, свет, движение;
   · каталог — светлый рабочий стол: плотно, быстро, читаемо.

   Всё движение выключается системной настройкой
   «уменьшить движение» — блок в самом низу файла.
   ============================================================ */

:root {
  /* ночь */
  --void:    #08090B;
  --night:   #0E1116;
  --carbon:  #14181E;
  --slab:    #1A1F26;
  --edge:    #262C34;
  --edge-2:  #333A44;

  /* день */
  --paper:   #ECEAE5;
  --paper-2: #F5F3EF;
  --white:   #FFFFFF;
  --ink:     #12151A;
  --ink-70:  #474C54;
  --steel:   #6E747C;
  --line:    #D3CFC7;
  --line-2:  #E4E0D9;

  /* свет */
  --signal:  #FFC400;
  --signal-d:#E0AB00;
  --beam:    #46B8E8;
  --alarm:   #E24B23;
  --ok:      #17A05A;

  --mist:    #9AA2AC;
  --mist-2:  #C3C9D1;

  --shell: min(1560px, 100% - 48px);

  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

/* сигнальная лента — единственный громкий элемент интерфейса */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--void) 14px 28px);
  background-size: 39.6px 39.6px;
  animation: hazardRun 1.6s linear infinite;
}
@keyframes hazardRun { to { background-position: 39.6px 0; } }

/* ============================================================
   ШАПКА
   ============================================================ */
.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 9, 11, .92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.top__in { display: flex; align-items: center; gap: 26px; min-height: 66px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
  font: 600 22px/1 var(--f-display);
  letter-spacing: .05em; text-transform: uppercase;
}
.logo__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--signal); color: var(--void);
  font: 600 18px/1 var(--f-display);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  transition: transform .3s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.08); }
.logo b { font-weight: 600; }
.logo i { font-style: normal; color: var(--signal); }

.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a {
  position: relative;
  font: 500 13px/1 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--mist-2);
  padding: 8px 0;
  transition: color .18s;
}
.top nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .28s var(--ease);
}
.top nav a:hover, .top nav a[aria-current] { color: var(--white); }
.top nav a:hover::after, .top nav a[aria-current]::after { transform: none; }

.top__phone {
  font: 500 15px/1 var(--f-mono);
  text-decoration: none; white-space: nowrap;
  transition: color .18s;
}
.top__phone:hover { color: var(--signal); }
.burger { display: none; }
/* номер внутри выпадающего меню — только на узких экранах */
.nav__phone { display: none; }

.cartbtn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--edge-2); background: transparent; color: var(--white);
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 14px; cursor: pointer;
  transition: border-color .18s, color .18s, box-shadow .18s;
}
.cartbtn:hover { border-color: var(--signal); color: var(--signal); }
.cartbtn b {
  display: grid; place-items: center;
  min-width: 21px; height: 21px; padding: 0 5px;
  background: var(--signal); color: var(--void);
  font: 600 12px/1 var(--f-mono);
  transform: scale(0);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.cartbtn[data-has] b { transform: scale(1); }
.cartbtn[data-has] { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 196, 0, .12); }

/* полоса прочтения страницы */
.progress {
  position: fixed; left: 0; top: 0; z-index: 90;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--signal), var(--beam));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}

/* ============================================================
   ГЕРОЙ — НОЧНОЙ СКЛАД
   ============================================================ */
.hero {
  position: relative; isolation: isolate;
  background: var(--void);
  color: var(--white);
  padding: 46px 0 58px;
  overflow: hidden;
}

/* дальний свет: холодный сверху, тёплый у пола */
.hero__sky {
  position: absolute; inset: -20% -10% 0; z-index: -3;
  background:
    radial-gradient(58% 46% at 74% 6%, rgba(70, 184, 232, .17), transparent 68%),
    radial-gradient(46% 40% at 22% 92%, rgba(255, 196, 0, .12), transparent 70%),
    radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, .05), transparent 60%);
}

/* пол уезжает вдаль */
.hero__floor {
  position: absolute; left: -40%; right: -40%; bottom: -14%; height: 70%; z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, rgba(154, 162, 172, .16) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg,  rgba(154, 162, 172, .13) 0 1px, transparent 1px 96px);
  transform: perspective(760px) rotateX(75deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.5) 45%, transparent 88%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.5) 45%, transparent 88%);
  animation: floorRun 9s linear infinite;
}
@keyframes floorRun { to { background-position: 0 96px, 0 96px; } }

/* конус света на паллету */
.hero__beam {
  position: absolute; z-index: -2;
  right: 0; top: -8%; width: 600px; height: 92%;
  background: linear-gradient(178deg, rgba(190, 225, 245, .16), rgba(190, 225, 245, 0) 74%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(14px);
  animation: beamBreathe 7s ease-in-out infinite;
}
@keyframes beamBreathe { 50% { opacity: .62; } }

/* пыль в луче */
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dust i {
  position: absolute; bottom: -12px;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(220, 236, 246, .45);
  animation: dustUp linear infinite;
}
@keyframes dustUp {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: .8; }
  88%  { opacity: .5; }
  to   { transform: translateY(-78vh) translateX(28px); opacity: 0; }
}
.dust i:nth-child(1)  { left: 58%; animation-duration: 15s; animation-delay: 0s;    }
.dust i:nth-child(2)  { left: 63%; animation-duration: 19s; animation-delay: -3s;   }
.dust i:nth-child(3)  { left: 70%; animation-duration: 13s; animation-delay: -6s;   }
.dust i:nth-child(4)  { left: 76%; animation-duration: 21s; animation-delay: -9s;   }
.dust i:nth-child(5)  { left: 82%; animation-duration: 16s; animation-delay: -12s;  }
.dust i:nth-child(6)  { left: 67%; animation-duration: 24s; animation-delay: -2s;   }
.dust i:nth-child(7)  { left: 88%; animation-duration: 18s; animation-delay: -14s;  }
.dust i:nth-child(8)  { left: 54%; animation-duration: 22s; animation-delay: -7s;   }
.dust i:nth-child(9)  { left: 73%; animation-duration: 26s; animation-delay: -17s;  }
.dust i:nth-child(10) { left: 92%; animation-duration: 14s; animation-delay: -5s;   }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 48px;
  align-items: center;
}

/* бейдж с живой точкой */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--edge-2);
  background: rgba(255, 255, 255, .03);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist-2);
}
.pill__dot {
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(23, 160, 90, .6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  70%  { box-shadow: 0 0 0 9px rgba(23, 160, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 160, 90, 0); }
}

.hero h1 {
  font: 600 clamp(40px, 5.1vw, 80px)/0.94 var(--f-display);
  letter-spacing: -.01em; text-transform: uppercase;
  margin: 16px 0 0;
}
.hero h1 u {
  display: block; text-decoration: none;
  background: linear-gradient(94deg, #FFFFFF 18%, #C8D3DC 62%, #8E9AA6 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero h1 em {
  position: relative; display: inline-block;
  margin-top: .12em; padding-bottom: .1em;
  font-style: normal; font-size: .68em; line-height: 1.06; color: var(--signal);
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%;
  animation: ruleIn 1s var(--ease) .5s forwards;
}
@keyframes ruleIn { to { transform: none; } }

.hero__lead {
  margin: 18px 0 0; max-width: 50ch;
  font-size: 17px; color: var(--mist-2);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero__facts {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  max-width: 560px; margin-top: 26px;
  border-top: 1px solid var(--edge);
}
.fact { padding: 14px 20px 0 0; }
.fact b {
  display: block;
  font: 600 clamp(28px, 3.2vw, 40px)/1 var(--f-display);
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.fact span { font-size: 12.5px; color: var(--mist); }

/* ── 3D: паллета коробов ──────────────────────────────────── */
.rig {
  /* размеры одного короба — от них считается весь штабель */
  --w: 108px; --h: 80px; --d: 86px;
  position: relative;
  display: grid; place-items: center;
  min-height: 430px;
  perspective: 1150px;
  perspective-origin: 50% 42%;
}
.rig__tilt {
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.rig__spin {
  position: relative; width: 1px; height: 1px;
  transform-style: preserve-3d;
  animation: rigSpin 38s linear infinite;
}
@keyframes rigSpin {
  from { transform: rotateX(-15deg) rotateY(-26deg); }
  to   { transform: rotateX(-15deg) rotateY(334deg); }
}
.rig:hover .rig__spin { animation-play-state: paused; }

/* тень на полу */
.rig__shadow {
  position: absolute; left: 50%; top: 50%;
  width: 340px; height: 340px; margin: -170px 0 0 -170px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent 72%);
  transform: translateY(calc(var(--h) + 26px)) rotateX(90deg);
  filter: blur(7px);
}

/* паллета: настил лежит ровно под нижним рядом коробов */
.pal {
  --pw: calc(var(--w) * 2 + 24px);
  --pd: calc(var(--d) * 2 + 24px);
  position: absolute; left: 50%; top: 50%;
  width: var(--pw); height: var(--pd);
  margin: calc(var(--pd) / -2) 0 0 calc(var(--pw) / -2);
  transform-style: preserve-3d;
  transform: translateY(var(--h)) rotateX(90deg);
}
.pal__deck {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, #6B5637 0 26px, #4C3921 26px 33px);
  box-shadow: 0 0 0 1px #43321D;
}
.pal__rail {
  position: absolute; left: 0; right: 0; height: 16px;
  background: #46351F;
  transform-origin: 50% 100%;
}
.pal__rail--a { top: 0;    transform: rotateX(90deg); }
.pal__rail--b { bottom: 0; transform: translateY(16px) rotateX(90deg); }

/* короб */
.bx {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d;
  transform: translate3d(var(--x, 0px), var(--y, 0px), var(--z, 0px));
  animation: bxDrop .95s var(--ease) backwards;
  animation-delay: var(--dly, 0ms);
}
@keyframes bxDrop {
  from {
    opacity: 0;
    transform: translate3d(var(--x, 0px), calc(var(--y, 0px) - 260px), var(--z, 0px));
  }
}
.bx__f {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: #C29C71;
  box-shadow: inset 0 0 44px rgba(96, 68, 38, .45), inset 0 0 0 1px #8E6E4B;
}
.bx__f--fr { transform: translateZ(calc(var(--d) / 2)); }
.bx__f--bk { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #A8865F; }
.bx__f--rt {
  width: var(--d); left: calc((var(--w) - var(--d)) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: #B18D64;
}
.bx__f--lf {
  width: var(--d); left: calc((var(--w) - var(--d)) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: #9E7D57;
}
.bx__f--tp {
  height: var(--d); top: calc((var(--h) - var(--d)) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: #D6B287;
}
.bx__f--bt {
  height: var(--d); top: calc((var(--h) - var(--d)) / 2);
  transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #7D6142;
}
.bx__mark {
  font: 600 12px/1 var(--f-display);
  letter-spacing: .2em; text-transform: uppercase; color: #4B3A21;
}
.bx__n { font: 600 30px/1 var(--f-display); color: #382A16; }
.bx__sub {
  font: 400 8px/1 var(--f-mono);
  letter-spacing: .22em; text-transform: uppercase; color: #6D573A;
}
.bx__tape {
  position: absolute; left: 0; right: 0; top: 50%; height: 22px;
  transform: translateY(-50%);
  background: rgba(232, 214, 189, .7);
  border-block: 1px solid rgba(126, 98, 66, .5);
}
.bx__warn {
  width: 22px; height: 19px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--signal);
}
.bx__bars {
  display: flex; gap: 2px; height: 14px;
}
.bx__bars s {
  display: block; width: 2px; height: 100%;
  background: #4B3A21; text-decoration: none;
}
.bx__bars s:nth-child(2n) { width: 4px; opacity: .7; }
.bx__bars s:nth-child(3n) { height: 70%; }

/* ── поиск прямо в герое ──────────────────────────────────── */
.finder { position: relative; margin-top: 34px; }
.finder__box {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 2px solid var(--white);
  padding: 0 18px;
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .05);
  transition: box-shadow .3s;
}
.finder__box:focus-within { box-shadow: 0 26px 60px -26px rgba(0,0,0,.9), 0 0 0 6px rgba(255, 196, 0, .22); }
.finder__box svg { flex: none; }
.finder input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 21px 0;
  font: 500 19px/1.2 var(--f-body); color: var(--ink);
}
.finder input::placeholder { color: #9AA0A6; }
.finder input:focus { outline: 0; }
.finder__count {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em; color: var(--steel); white-space: nowrap;
}
.finder__hits {
  position: absolute; inset-inline: 0; top: calc(100% - 2px);
  background: var(--white);
  border: 2px solid var(--white); border-top: 1px solid var(--line-2);
  max-height: 396px; overflow: auto;
  z-index: 40; display: none;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.finder__hits[data-open] { display: block; animation: hitsIn .26s var(--ease); }
@keyframes hitsIn { from { opacity: 0; transform: translateY(-10px); } }

.hit {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 14px; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-2);
  transition: background .14s, padding-left .2s var(--ease);
}
.hit:last-child { border-bottom: 0; }
.hit:hover { background: var(--paper-2); padding-left: 22px; }
.hit__link { text-decoration: none; color: inherit; font-size: 15px; }
.hit__meta { font: 400 12px/1 var(--f-mono); color: var(--steel); }
.hit__add {
  border: 1.5px solid var(--ink); background: var(--white); color: var(--ink);
  font: 500 11px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase;
  padding: 9px 11px; cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s, transform .16s;
}
.hit__add:hover { background: var(--ink); color: var(--white); }
.hit__add:active { transform: scale(.95); }
.hit__add[data-in] { background: var(--signal); border-color: var(--signal); }
.finder__more {
  display: block; padding: 13px 16px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--steel); background: var(--paper-2);
  text-decoration: none;
}
a.finder__more:hover { color: var(--ink); }

/* ============================================================
   МИНИАТЮРА ТОВАРА
   Пока фотографий нет — рисуем «этикетку» категории.
   Как только в data появится поле photo, тут окажется картинка.
   ============================================================ */
.thumb {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  background: var(--tint, #E8E5DF);
  overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 28px; height: 28px; color: var(--hue, #4A5058); }
.thumb__pack {
  position: absolute; right: 0; bottom: 0;
  padding: 2px 4px;
  background: var(--ink); color: var(--white);
  font: 500 9px/1 var(--f-mono); letter-spacing: .04em;
}
.thumb--none .thumb__pack { background: var(--steel); }
.hit:hover .thumb, .row:hover .thumb {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 16px -10px rgba(18, 21, 26, .7);
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 13px/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 26px;
  border: 2px solid var(--ink);
  background: var(--ink); color: var(--white);
  text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--void); }
.btn--signal:hover { background: var(--white); border-color: var(--white); color: var(--void); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--onink { background: transparent; border-color: var(--edge-2); color: var(--white); }
.btn--onink:hover { background: var(--white); border-color: var(--white); color: var(--void); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* блик пробегает по главной кнопке */
.btn--signal::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 4.4s ease-in-out 1.2s infinite;
}
@keyframes sheen {
  0%, 72% { transform: translateX(-130%); }
  94%, 100% { transform: translateX(130%); }
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.band { padding: 88px 0; }
/* якорь из меню не должен уезжать под липкую шапку */
section[id] { scroll-margin-top: 78px; }
.band--night { background: var(--night); color: var(--white); }
.band--void  { background: var(--void);  color: var(--white); }
.band--paper { background: var(--paper); }
.band--paper2{ background: var(--paper-2); }
.band--night .eyebrow, .band--void .eyebrow { color: var(--signal); }

.band__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: 42px;
}
.band h2 {
  font: 600 clamp(30px, 3.8vw, 54px)/1 var(--f-display);
  text-transform: uppercase; margin: 10px 0 0;
}
.band__note { max-width: 54ch; font-size: 15.5px; color: var(--ink-70); margin: 0; }
.band--night .band__note, .band--void .band__note { color: var(--mist); }

/* ── бренды ───────────────────────────────────────────────── */
.brands {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px; background: var(--edge); border: 1px solid var(--edge);
  perspective: 1400px;
}
.brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 268px; padding: 26px;
  background: var(--carbon);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), background .2s;
  will-change: transform;
}
.brand:hover { background: var(--slab); }
.brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 196, 0, .2), transparent 62%);
  opacity: 0; transition: opacity .28s;
}
.brand:hover::after { opacity: 1; }
.brand__mark {
  font: 600 clamp(30px, 3.3vw, 50px)/1 var(--f-display);
  text-transform: uppercase;
  transition: transform .35s var(--ease), color .2s;
}
.brand:hover .brand__mark { transform: translateZ(46px); color: var(--signal); }
.brand__desc { margin: 16px 0 0; font-size: 13.5px; color: var(--mist); }
.brand__foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 28px; padding-top: 15px;
  border-top: 1px solid var(--edge);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--mist);
}
.brand__foot b {
  font: 600 28px/1 var(--f-display); color: var(--white); letter-spacing: 0;
  transition: transform .35s var(--ease);
}
.brand:hover .brand__foot b { transform: translateZ(26px) scale(1.1); }

.otherbrands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.otherbrands a {
  font: 400 13px/1 var(--f-mono); text-decoration: none;
  padding: 9px 13px; border: 1px solid var(--edge-2); color: var(--mist-2);
  transition: border-color .18s, color .18s, transform .18s var(--ease);
}
.otherbrands a:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }

/* ── бегущая лента ────────────────────────────────────────── */
.ticker {
  overflow: hidden; background: var(--void);
  border-block: 1px solid var(--edge);
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__line { display: flex; width: max-content; animation: tick 44s linear infinite; }
.ticker span {
  font: 500 15px/1 var(--f-display);
  letter-spacing: .1em; text-transform: uppercase;
  color: #5C646E; padding: 0 26px; white-space: nowrap;
}
.ticker span::after { content: '·'; margin-left: 26px; color: #363D46; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker__line { animation-play-state: paused; }

/* ── товарные группы ──────────────────────────────────────── */
.cats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: transform .26s var(--ease), box-shadow .26s, border-color .2s;
}
.cat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--hue, var(--ink));
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .3s var(--ease);
}
.cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px -26px rgba(18, 21, 26, .6);
  border-color: var(--line);
}
.cat:hover::before { transform: none; }
.cat__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  background: var(--tint, #EFEDE8);
  transition: transform .3s var(--ease);
}
.cat__ico svg { width: 32px; height: 32px; color: var(--hue, #4A5058); }
.cat:hover .cat__ico { transform: rotate(-7deg) scale(1.06); }
.cat__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat h3 { font: 500 18px/1.15 var(--f-display); text-transform: uppercase; margin: 0; }
.cat__n {
  font: 500 12px/1 var(--f-mono); color: var(--white);
  background: var(--ink); padding: 5px 7px;
}
.cat p { margin: 0; font-size: 13px; color: var(--ink-70); }

/* ── условия работы ───────────────────────────────────────── */
.terms {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px; background: var(--edge);
  border: 1px solid var(--edge);
  perspective: 1200px;
}
.term {
  position: relative; overflow: hidden;
  padding: 32px 28px 30px;
  background: var(--carbon);
  transform-style: preserve-3d;
  transition: background .2s, transform .32s var(--ease);
}
.term:hover { background: var(--slab); transform: translateZ(18px); }
.term__ico {
  width: 40px; height: 40px; margin-bottom: 20px;
  color: var(--signal);
}
.term__ico svg { width: 100%; height: 100%; }
.term b {
  display: block;
  font: 600 clamp(26px, 2.6vw, 36px)/1 var(--f-display);
  text-transform: uppercase; color: var(--white);
}
.term h3 {
  margin: 12px 0 8px;
  font: 500 13px/1 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal);
}
.term p { margin: 0; font-size: 14px; color: var(--mist); }

/* ── как заказать: три шага ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--ink); }
.step__n {
  position: absolute; right: 0; top: 18px;
  font: 600 clamp(52px, 6vw, 84px)/1 var(--f-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  transition: -webkit-text-stroke-color .3s, transform .4s var(--ease);
}
.step:hover .step__n { -webkit-text-stroke-color: var(--signal-d); transform: translateY(-5px); }
.step h3 {
  font: 500 21px/1.15 var(--f-display); text-transform: uppercase;
  margin: 0 0 10px; max-width: 14ch;
}
.step p { margin: 0; font-size: 14.5px; color: var(--ink-70); max-width: 40ch; }

/* ── контакты ─────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; }
.cline {
  display: grid; grid-template-columns: 168px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--edge);
}
.cline dt {
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--mist);
}
.cline dd { margin: 0; font-size: 16.5px; }
.cline dd a { text-decoration: none; border-bottom: 1px solid var(--edge-2); transition: color .18s, border-color .18s; }
.cline dd a:hover { color: var(--signal); border-color: var(--signal); }

.cta-card {
  padding: 34px; background: var(--carbon);
  border: 1px solid var(--edge);
}
.cta-card h3 { font: 600 26px/1.1 var(--f-display); text-transform: uppercase; margin: 0 0 12px; }
.cta-card p { margin: 0 0 24px; font-size: 15px; color: var(--mist); }
.cta-card .btn { width: 100%; }
.cta-card .btn + .btn { margin-top: 10px; }

/* ── подвал ───────────────────────────────────────────────── */
.foot { background: var(--void); color: var(--mist); padding: 34px 0; font-size: 13px; border-top: 1px solid var(--edge); }
.foot__in { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; }
.foot a { color: var(--mist-2); }
.foot a:hover { color: var(--signal); }
.foot__note {
  flex-basis: 100%;
  font-size: 12.5px; line-height: 1.5; color: #6C737C;
}

/* ============================================================
   КАТАЛОГ — светлый рабочий стол
   ============================================================ */
.cat-head { padding: 44px 0 28px; }
.cat-head h1 {
  font: 600 clamp(36px, 5.2vw, 66px)/1 var(--f-display);
  text-transform: uppercase; margin: 10px 0 0;
}
.cat-head p { margin: 14px 0 0; color: var(--ink-70); max-width: 64ch; }

.tools { position: sticky; top: 66px; z-index: 50; background: var(--paper); }
.tools__in {
  padding: 14px 0; border-bottom: 2px solid var(--ink);
  box-shadow: 0 12px 20px -16px rgba(18, 21, 26, .55);
}
.tools__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.search {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 340px; min-width: 240px;
  background: var(--white); border: 2px solid var(--ink); padding: 0 14px;
  transition: box-shadow .2s;
}
.search:focus-within { box-shadow: 0 0 0 4px rgba(255, 196, 0, .28); }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 13px 0; font: 400 16px/1.2 var(--f-body); color: var(--ink);
}
.search input:focus { outline: 0; }
.search button {
  border: 0; background: transparent; cursor: pointer; padding: 4px;
  font: 400 18px/1 var(--f-body); color: var(--steel);
}
.search button:hover { color: var(--ink); }

.sel {
  appearance: none;
  font: 400 14px/1 var(--f-body);
  padding: 14px 38px 14px 14px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink-70);
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s, transform .16s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip--star[aria-pressed="true"] { background: var(--signal); color: var(--void); border-color: var(--signal); }

.toggle {
  display: inline-flex; align-items: center; gap: 9px;
  font: 400 14px/1 var(--f-body); cursor: pointer; user-select: none;
  padding: 12px 0;
}
.toggle input { width: 17px; height: 17px; accent-color: var(--ink); cursor: pointer; }

.result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel);
}
.result-bar button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding: 0 0 2px;
}

.group { margin-bottom: 36px; }
.group__head {
  position: sticky; top: calc(66px + var(--tools-h, 152px)); z-index: 20;
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--white);
  padding: 11px 16px;
}
.group__head .group__ico { width: 22px; height: 22px; color: var(--signal); flex: none; }
.group__head .group__ico svg { width: 100%; height: 100%; }
.group__head h2 { font: 500 16px/1.2 var(--f-display); text-transform: uppercase; margin: 0; }
.group__n { font: 400 12px/1 var(--f-mono); color: var(--mist); margin-left: auto; }

.rows { border: 1px solid var(--line); border-top: 0; background: var(--white); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 132px 108px 150px;
  gap: 18px; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-2);
  transition: background .16s;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--paper-2); }
.row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--signal);
  transform: scaleY(0); transition: transform .22s var(--ease);
}
.row:hover::before { transform: none; }

/* точечная линия до колонки бренда — как в бумажном прайсе,
   иначе на широком экране глаз теряет строку */
.row__name { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; }
.row__name::after {
  content: ''; flex: 1 1 auto; min-width: 24px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}
.row__brand {
  justify-self: start;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 8px; border: 1px solid var(--line); color: var(--ink-70);
}
.row__brand--star { border-color: var(--ink); background: var(--ink); color: var(--white); }
.row__stock { font: 400 12px/1.3 var(--f-mono); color: var(--ok); }
.row__stock--order { color: var(--alarm); }
.row__act { justify-self: end; }
.add {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 14px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--white); color: var(--ink);
  white-space: nowrap;
  transition: background .16s, color .16s, transform .16s;
}
.add:hover { background: var(--ink); color: var(--white); }
.add:active { transform: scale(.95); }
.add[data-in] { background: var(--signal); border-color: var(--signal); color: var(--void); }

.empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line); background: var(--white); }
.empty h3 { font: 500 22px/1.2 var(--f-display); text-transform: uppercase; margin: 0 0 8px; }
.empty p { margin: 0 0 18px; color: var(--ink-70); }

/* ============================================================
   ПРАВОВЫЕ СТРАНИЦЫ
   ============================================================ */
.legal { padding: 52px 0 96px; }
.legal .shell { max-width: 860px; }
.legal h1 {
  font: 600 clamp(28px, 3.6vw, 46px)/1.06 var(--f-display);
  text-transform: uppercase; margin: 10px 0 0;
}
.legal h2 {
  font: 500 20px/1.2 var(--f-display);
  text-transform: uppercase;
  margin: 42px 0 12px; padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.legal p, .legal li { font-size: 15.5px; color: var(--ink-70); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.legal__meta {
  margin-top: 16px; padding: 12px 15px;
  background: var(--white); border-left: 3px solid var(--signal);
  font: 400 13.5px/1.5 var(--f-mono); color: var(--steel);
}
.legal__dl { margin: 0 0 16px; }
.legal__dl > div {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.legal__dl dt {
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.legal__dl dd { margin: 0; font-size: 15.5px; }

@media (max-width: 620px) {
  .legal__dl > div { grid-template-columns: 1fr; gap: 4px; }
  .legal h2 { margin-top: 34px; }
}

/* ============================================================
   ЗАЯВКА
   ============================================================ */
.tray {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  transform: translateY(115%);
  transition: transform .45s var(--ease);
}
.tray[data-open] { transform: none; }
.tray__in {
  background: var(--void); color: var(--white);
  display: flex; align-items: center; gap: 20px;
  padding: 15px 0;
}
.tray__count {
  display: inline-block;
  font: 600 30px/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.tray__count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump {
  0%   { transform: none; }
  35%  { transform: scale(1.45) translateY(-3px); color: var(--signal); }
  100% { transform: none; }
}
.tray__label { font: 400 13px/1.35 var(--f-mono); color: var(--mist); }
.tray__sum {
  font: 400 12px/1.35 var(--f-mono); color: var(--mist);
  border-left: 1px solid var(--edge); padding-left: 16px; white-space: nowrap;
}
.tray__acts { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tray__clear {
  border: 0; background: transparent; color: var(--mist); cursor: pointer;
  font: 400 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--edge-2); padding-bottom: 3px;
}
.tray__clear:hover { color: var(--white); }

.modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: flex-start; justify-content: center;
  padding: 24px; overflow: auto;
  background: rgba(8, 9, 11, .8);
  backdrop-filter: blur(8px) saturate(.85);
  -webkit-backdrop-filter: blur(8px) saturate(.85);
  opacity: 0; transition: opacity .28s ease;
  perspective: 1400px;
}
.modal[data-open] { display: flex; opacity: 1; }
.modal__card {
  width: min(760px, 100%); margin: auto;
  background: var(--paper-2);
  border: 2px solid var(--void);
  box-shadow: 0 44px 90px -44px rgba(0, 0, 0, .9);
  transform: translateY(28px) rotateX(10deg) scale(.96);
  transform-origin: 50% 0; opacity: 0;
  transition: transform .45s var(--ease), opacity .3s ease;
}
.modal[data-open] .modal__card { transform: none; opacity: 1; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--void); color: var(--white); padding: 17px 22px;
}
.modal__head h2 { font: 600 22px/1 var(--f-display); text-transform: uppercase; margin: 0; }
.modal__close {
  border: 0; background: transparent; color: var(--white);
  font: 400 26px/1 var(--f-body); cursor: pointer; padding: 2px 6px;
  transition: color .16s, transform .2s;
}
.modal__close:hover { color: var(--signal); transform: rotate(90deg); }
.modal__body { padding: 22px; }

.picked { max-height: 240px; overflow: auto; border: 1px solid var(--line); background: var(--white); }
.picked__row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px 92px 32px;
  gap: 12px; align-items: center;
  padding: 8px 13px; border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  animation: pickIn .38s var(--ease) backwards;
  animation-delay: var(--d, 0ms);
}
.picked__row:last-child { border-bottom: 0; }
@keyframes pickIn { from { opacity: 0; transform: translateX(-14px); } }
.picked__row.is-out { animation: pickOut .26s ease forwards; }
@keyframes pickOut { to { opacity: 0; transform: translateX(24px); height: 0; padding-block: 0; } }
.picked__row .thumb { width: 40px; height: 40px; }
.picked__row .thumb svg { width: 22px; height: 22px; }
.picked__row .thumb__pack { display: none; }
.picked__units { font: 400 11px/1 var(--f-mono); color: var(--steel); white-space: nowrap; }

.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button {
  width: 28px; height: 30px; border: 0; background: var(--paper-2);
  cursor: pointer; font: 400 16px/1 var(--f-body); color: var(--ink);
}
.qty button:hover { background: var(--signal); }
.qty input {
  width: 36px; height: 30px; border: 0; text-align: center;
  font: 500 14px/1 var(--f-mono); background: var(--white); color: var(--ink);
  -moz-appearance: textfield;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
.qty input.is-bump { transform: scale(1.22); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.picked__del {
  border: 0; background: transparent; cursor: pointer; color: var(--steel);
  font: 400 18px/1 var(--f-body);
}
.picked__del:hover { color: var(--alarm); }

.order-sum {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 14px; padding: 13px 15px;
  background: var(--void); color: var(--white);
}
.order-sum:empty { display: none; }
.order-sum span { font: 400 12px/1.4 var(--f-mono); color: var(--mist); }
.order-sum b { font: 600 17px/1 var(--f-display); color: var(--white); margin-right: 6px; }

.order-terms {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 10px;
  font: 400 12px/1.5 var(--f-mono); color: var(--steel);
}
.order-terms:empty { display: none; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.field input, .field textarea {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  padding: 12px 13px; font: 400 15px/1.4 var(--f-body);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 196, 0, .2);
}
.field textarea { resize: vertical; min-height: 74px; }
/* согласие на обработку данных — обязательная отметка */
.consent {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 13px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 13.5px; line-height: 1.45; color: var(--ink-70);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.consent input {
  flex: none; width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--ink); cursor: pointer;
}
.consent a { color: var(--ink); }
.consent.is-err { border-color: var(--alarm); background: #FDF3F1; }

.form__foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px;
}
.form__note { font-size: 12.5px; color: var(--steel); max-width: 42ch; margin: 0; }
.form__msg { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.form__msg--ok { color: var(--ok); }
.form__msg--err { color: var(--alarm); }

.done { display: grid; place-items: center; padding: 36px 20px 8px; }
.done svg { width: 78px; height: 78px; }
.done circle, .done path {
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: draw .8s var(--ease) forwards;
}
.done path { animation-delay: .34s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done p { margin: 18px 0 0; text-align: center; font-size: 15.5px; }

/* короб, летящий в заявку */
.fly {
  position: fixed; z-index: 200;
  display: grid; place-items: center;
  width: 46px; height: 34px;
  background: var(--signal); border: 1.5px solid var(--void);
  font: 600 15px/1 var(--f-display); color: var(--void);
  pointer-events: none;
}

/* ============================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1320px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }
  .rig { --w: 96px; --h: 72px; --d: 78px; }
}

@media (max-width: 1180px) {
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 48px minmax(0, 1fr) 118px 148px; }
  .row__stock { display: none; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  /* на узком экране сначала суть и кнопки, сцена — следом */
  .rig { min-height: 320px; }
  .rig { --w: 92px; --h: 68px; --d: 74px; }
  .hero__beam { right: -10%; width: 460px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .contacts { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  :root { --shell: min(1560px, 100% - 32px); }
  .top nav { display: none; }
  .top nav[data-open] {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; inset-inline: 0;
    background: var(--void); padding: 8px 24px 20px;
    border-bottom: 1px solid var(--edge);
  }
  .top nav[data-open] a { padding: 13px 0; border-bottom: 1px solid var(--edge); }
  .burger {
    display: block; margin-left: auto; order: 3;
    border: 1.5px solid var(--edge-2); background: transparent; color: var(--white);
    font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
    padding: 11px 13px; cursor: pointer;
  }
  .top__phone { order: 1; margin-left: auto; font-size: 14px; }
  .cartbtn { order: 2; }
  .hero { padding: 40px 0 56px; }
  .hero__facts { grid-auto-flow: row; max-width: none; }
  .fact { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--edge); }
  .fact b { font-size: 28px; min-width: 84px; }
  .band { padding: 60px 0; }
  .band__head { flex-direction: column; align-items: flex-start; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { position: static; }
  .tools__in { box-shadow: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .chip { flex: none; }
  .group__head { top: 66px; }
  .row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: 'thumb name' '. meta';
    row-gap: 9px;
  }
  .row > .thumb { grid-area: thumb; }
  .row__name { grid-area: name; }
  .row__name::after { display: none; }
  .row__brand, .row__act { grid-area: meta; }
  .row__brand { align-self: center; }
  .row__act { justify-self: end; }
  .form { grid-template-columns: 1fr; }
  .picked__row { grid-template-columns: 40px minmax(0, 1fr) 92px 32px; }
  .picked__units { display: none; }
  .tray__sum { display: none; }
}

@media (max-width: 620px) {
  /* на узкой шапке телефон не помещается — он уходит первой строкой в меню */
  .top__in { gap: 14px; }
  .top__phone { display: none; }
  .logo { font-size: 19px; }
  .top nav[data-open] .nav__phone {
    display: block;
    font-family: var(--f-mono); font-size: 16px;
    letter-spacing: 0; text-transform: none;
    color: var(--signal);
  }
}

@media (max-width: 560px) {
  .brands { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 1fr; gap: 4px; }
  .tray__in { flex-wrap: wrap; }
  .tray__acts { width: 100%; }
  .tray__acts .btn { flex: 1; }
  .hero__cta .btn { width: 100%; }
  .rig { min-height: 300px; }
  .rig { --w: 80px; --h: 60px; --d: 66px; }
}

/* ============================================================
   «УМЕНЬШИТЬ ДВИЖЕНИЕ» — гасим всё, что двигается
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hazard, .hero__floor, .hero__beam, .rig__spin, .ticker__line,
  .dust, .btn--signal::after, .pill__dot { animation: none !important; }
  .dust { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .modal__card { transform: none; opacity: 1; }
  .done circle, .done path { stroke-dashoffset: 0; }
  .hero h1 em::after { transform: none; }
  .rig__spin { transform: rotateX(-15deg) rotateY(-26deg); }
  .bx { animation: none; }
}
