/* ============================================================================
   СТАРАТЕЛЬ — каталог запчастей для тяжёлой горной техники CAT / Komatsu
   Дизайн-система: шахтная темень + карьерная пыль + добытое золото.
   Шрифты: Barlow Condensed (дисплей) · Inter (текст) · JetBrains Mono (данные).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ----------------------------- Токены ----------------------------- */
:root {
  /* Поверхности — карьерная пыль и тёплый камень */
  --bg:        #EDEBE6;   /* карьерная пыль */
  --bg-2:      #E3DFD8;   /* слой потемнее */
  --card:      #FAFAF8;
  --navy:      #1A1208;   /* глубина шахты */
  --navy-2:    #2C1E0C;   /* чуть светлее */

  /* Акцент — добытое золото */
  --orange:    #C4860A;   /* рудное золото */
  --orange-dk: #9D6B08;   /* тёмное золото */
  --orange-lt: #FDF3DC;   /* бледное золото — hover */

  /* Текст */
  --text:      #1A1208;
  --muted:     #5C4E3A;   /* тёплый тёмно-коричневый */
  --muted-2:   #9A8B76;   /* земля, вторичный */
  --on-dark:   #EDE6D8;
  --on-dark-m: #8A7B62;

  /* Линии */
  --line:      #D2CCBF;
  --line-soft: #DAD5C8;
  --line-dark: rgba(255,255,255,.10);

  /* Статусы */
  --ok:        #1A7F4B;
  --wait:      #966A00;

  /* Метрики */
  --maxw: 1240px;
  --gut:  clamp(20px, 5vw, 56px);
  --r:    3px;
  --r-lg: 6px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow:    0 1px 3px rgba(26,18,8,.07), 0 8px 24px -12px rgba(26,18,8,.16);
  --shadow-lg: 0 2px 6px rgba(26,18,8,.08), 0 24px 48px -20px rgba(26,18,8,.24);
}

/* ----------------------------- Сброс ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--orange); color: #fff; }
/* выделение текста — золотой как самородок */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.ico-svg { width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ----------------------------- Типографика ----------------------------- */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--orange);
  display: inline-block;
  flex: none;
}

/* ----------------------------- Верхняя полоса ----------------------------- */
.topbar {
  background: var(--navy);
  color: var(--on-dark-m);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.topbar span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .05em; }
.tb-contacts { display: flex; gap: 22px; }
.tb-contacts a { color: var(--on-dark); transition: color .2s; }
.tb-contacts a:hover { color: var(--orange); }

/* ----------------------------- Шапка ----------------------------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238,241,245,.92);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex; align-items: center;
  gap: clamp(14px, 3vw, 32px);
  min-height: 72px;
}

.logo {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--navy); white-space: nowrap;
}
.logo .mark {
  width: 32px; height: 32px; display: grid; place-items: center;
}
.logo .mark svg { width: 32px; height: 32px; }
.logo .logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo b {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: 0.06em;
  color: var(--navy); transition: color .2s;
}
.logo .logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  margin-top: 4px;
}
.logo:hover b { color: var(--orange-dk); }
@media (max-width: 560px) { .logo .logo-sub { display: none; } }

.search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 6px 0 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(224,123,0,.18); }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 14px; outline: none; }
.search input::placeholder { color: var(--muted-2); }
.search button {
  border: 0; background: var(--navy); color: #fff;
  width: 34px; height: 34px; border-radius: 2px;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.search button:hover { background: var(--orange); }
.search button .ico-svg { width: 17px; height: 17px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 2px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--navy); background: var(--bg-2); }
.nav a.active { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--orange); }

.cart-btn {
  position: relative; border: 1px solid var(--line);
  background: var(--card); width: 44px; height: 44px;
  border-radius: var(--r); display: grid; place-items: center;
  cursor: pointer; color: var(--navy);
  transition: border-color .2s, background .2s;
}
.cart-btn:hover { border-color: var(--navy); background: var(--bg-2); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--orange); color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  border-radius: 10px; display: none; place-items: center;
  border: 2px solid var(--bg);
}
.burger {
  display: none; border: 1px solid var(--line);
  background: var(--card); width: 44px; height: 44px;
  border-radius: var(--r); cursor: pointer; color: var(--navy);
}
.burger svg { margin: auto; }

/* ----------------------------- Кнопки ----------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: 0.01em; line-height: 1;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-accent:hover { background: var(--orange-dk); border-color: var(--orange-dk); box-shadow: 0 4px 16px -4px rgba(224,123,0,.45); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-2); }

.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-2); }

.btn-block { width: 100%; }
.btn-accent.invert { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ----------------------------- Секции ----------------------------- */
.section { padding: clamp(60px, 8vw, 112px) 0; }
.section.bg-soft { background: var(--bg-2); }

.section-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); max-width: 56ch; }

/* ----------------------------- HERO — search-first centered ----------------------------- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 clamp(60px, 8vw, 100px);
}

/* геологический разрез — пласты породы под наклоном */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      -7deg,
      transparent 0px,
      transparent 52px,
      rgba(196,134,10,.07) 52px,
      rgba(196,134,10,.07) 53px,
      transparent 53px,
      transparent 88px,
      rgba(196,134,10,.04) 88px,
      rgba(196,134,10,.04) 89px
    );
  pointer-events: none;
}
/* золотое свечение из глубины */
.hero::after {
  content: "";
  position: absolute; bottom: -25%; left: 50%;
  transform: translateX(-50%);
  width: 90%; max-width: 900px; aspect-ratio: 3/1;
  background: radial-gradient(ellipse, rgba(196,134,10,.22), transparent 65%);
  pointer-events: none;
}

/* силуэты техники на фоне hero */
.hero-silhouette {
  position: absolute;
  bottom: 0;
  color: #C4860A;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.hero-silhouette--left {
  left: -40px;
  width: clamp(220px, 28vw, 380px);
  transform-origin: bottom left;
}
.hero-silhouette--right {
  right: -20px;
  width: clamp(180px, 22vw, 320px);
  transform-origin: bottom right;
}
@media (max-width: 820px) {
  .hero-silhouette { opacity: 0.05; }
  .hero-silhouette--left { left: -60px; }
  .hero-silhouette--right { right: -50px; }
}

/* золотая жила — декоративная полоса поперёк hero */
.hero-vein {
  position: absolute; top: 38%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(196,134,10,.35) 20%, rgba(196,134,10,.6) 50%, rgba(196,134,10,.35) 80%, transparent 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 0;
}

.hero .eyebrow { color: var(--on-dark-m); margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 20px;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--orange); }

.hero .lead {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--on-dark-m);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Поисковая строка — главный элемент hero */
.hero-search {
  width: 100%; max-width: 680px;
  display: flex; gap: 0;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(224,123,0,.25), var(--shadow-lg);
  margin-bottom: 28px;
}
.hero-search input {
  flex: 1; border: 0; outline: none;
  padding: 18px 22px;
  font-size: 16px; color: var(--navy);
  background: transparent;
}
.hero-search input::placeholder { color: #9AAABB; }
.hero-search button {
  border: 0; cursor: pointer;
  background: var(--orange); color: #fff;
  padding: 0 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 10px;
  transition: background .2s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--orange-dk); }
.hero-search button .ico-svg { width: 18px; height: 18px; }

/* Категории-пилюли */
.hero-cats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 52px;
}
.hero-cats a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-dark-m);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 2px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.hero-cats a:hover { color: #fff; border-color: var(--orange); background: rgba(224,123,0,.12); }

/* Статы — горизонтальная полоса с разделителями */
.hero-stats {
  display: flex; align-items: stretch;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  width: 100%; max-width: 560px;
}
.hero-stats .stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,.10);
}
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat b {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700; color: #fff; line-height: 1;
}
.hero-stats .stat span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .06em;
  color: var(--on-dark-m); text-transform: uppercase;
  text-align: center;
}

/* ----------------------------- Hero с видео-фоном ----------------------------- */
.hero--video { min-height: 92vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #100A04; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(16,10,4,.78) 0%,
    rgba(16,10,4,.70) 12%,
    rgba(16,10,4,.58) 26%,
    rgba(16,10,4,.48) 42%,
    rgba(16,10,4,.46) 55%,
    rgba(16,10,4,.54) 70%,
    rgba(16,10,4,.67) 84%,
    rgba(16,10,4,.84) 100%);
}
/* убрать декор, который мешает поверх видео */
.hero--video::before,
.hero--video::after,
.hero--video .hero-silhouette,
.hero--video .hero-vein { display: none; }
.hero--video .container { position: relative; z-index: 2; }
/* слоган-кикер */
.hero-slogan {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}

/* ----------------------------- Бренды — горизонтальный тейбл ----------------------------- */
.brands {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.brand-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 22px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: 0.01em;
  border: 1px solid var(--line); border-right: 0;
  background: var(--card);
  cursor: default;
  transition: background .2s, border-left-color .2s;
  border-left: 3px solid transparent;
  position: relative;
}
.brand-card:last-child { border-right: 1px solid var(--line); }
.brand-card span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 400;
  letter-spacing: .05em; color: var(--muted-2);
  text-transform: uppercase;
}
.brand-card:hover { background: var(--orange-lt); border-left-color: var(--orange); }

/* ----------------------------- Преимущества — горизонтальные строки ----------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--card);
  padding: 28px 26px;
  transition: background .2s;
}
.feature:hover { background: #FAFBFC; }
.feature .ico {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r);
  background: var(--navy);
  color: var(--orange);
  display: grid; place-items: center;
}
.feature .ico .ico-svg { width: 22px; height: 22px; }
.feature-text { display: flex; flex-direction: column; }
.feature h3 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ----------------------------- Сетка товаров ----------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  position: relative;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #BFC8D5; }
.card:hover::before { transform: scaleX(1); }

.card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.brand-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--bg);
  border: 1px solid var(--line); padding: 4px 9px; border-radius: 2px;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .03em; color: var(--muted-2);
  white-space: nowrap;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status.ok { color: #1A7F4B; }
.status.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(26,127,75,.15); }
.status.wait { color: var(--wait); }
.status.wait .dot { background: var(--wait); box-shadow: 0 0 0 3px rgba(176,90,0,.15); }

.card-name {
  font-family: 'Inter', sans-serif; font-size: 15px;
  font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 12px; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.art-field {
  display: flex; align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  margin-bottom: 12px; background: var(--bg);
}
.art-field .art-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  color: #fff; background: var(--navy);
  padding: 7px 8px; display: flex; align-items: center; flex: none;
}
.art-field .art {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text);
  padding: 7px 10px; line-height: 1.4; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 10px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}
.price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--navy); white-space: nowrap;
}
.price small { font-size: 11px; font-weight: 400; color: var(--muted-2); letter-spacing: 0; }
.price.req { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-btn { padding: 8px 12px; font-size: 12px; }
.add-cart { flex: none; }

/* ----------------------------- Каталог ----------------------------- */
.catalog-head {
  padding-top: clamp(36px, 5vw, 60px);
  padding-bottom: clamp(24px, 3vw, 36px);
}
.catalog-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: clamp(20px, 3vw, 36px); align-items: start;
}
.filters {
  position: sticky; top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
}
.filters > h3 {
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px;
}
.filter-group > div {
  display: grid; gap: 2px;
  max-height: 220px; overflow-y: auto;
  margin-right: -6px; padding-right: 6px;
}
.filter-group > div::-webkit-scrollbar { width: 5px; }
.filter-group > div::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.opt {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text);
  padding: 6px; border-radius: 3px; cursor: pointer;
  transition: background .15s;
}
.opt:hover { background: var(--bg); }
.opt b { font-weight: 600; }
.opt input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--muted-2); border-radius: 3px;
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background .15s, border-color .15s;
}
.opt input[type="checkbox"]:checked { background: var(--orange); border-color: var(--orange-dk); }
.opt input[type="checkbox"]:checked::after {
  content: "";
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}
.opt input[type="checkbox"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.filters .btn { margin-top: 16px; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.toolbar .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--muted); letter-spacing: .02em;
}
#sort {
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--r); padding: 10px 34px 10px 13px;
  font-size: 13.5px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234F5F78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color .2s;
}
#sort:hover { border-color: var(--navy); }
#sort:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.empty, .cart-empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--muted); padding: 60px 20px; font-size: 15px; line-height: 1.7;
}
.empty svg, .cart-empty svg { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--muted-2); stroke-width: 1.4; }

/* ----------------------------- CTA ----------------------------- */
.cta {
  background: var(--navy); color: var(--on-dark);
  text-align: center; padding: clamp(56px, 8vw, 96px) 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 140% at 50% -10%, rgba(224,123,0,.18), transparent 60%);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta h2 { font-size: clamp(28px, 4.2vw, 48px); color: #fff; margin-bottom: 14px; }
.cta p { color: var(--on-dark-m); max-width: 52ch; margin: 0 auto 30px; font-size: clamp(15px,1.6vw,17px); }

/* ----------------------------- Контакты ----------------------------- */
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.contact-info > h3 { font-size: 24px; margin-bottom: 22px; }
.contact-info ul { display: grid; gap: 4px; margin-bottom: 26px; }
.contact-info li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.contact-info li .ico {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r);
  display: grid; place-items: center; color: var(--navy); background: var(--bg);
}
.contact-info li div { display: flex; flex-direction: column; }
.contact-info li b { font-weight: 600; font-size: 15px; }
.contact-info li span { font-size: 12.5px; color: var(--muted); }

.msgs { display: flex; gap: 10px; }
.msgs a {
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r); display: grid; place-items: center;
  color: var(--navy); background: var(--bg);
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.msgs a:hover { transform: translateY(-2px); border-color: var(--navy); }
.msgs a.wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.msgs a.tg:hover { background: #229ED9; border-color: #229ED9; color: #fff; }
.msgs a.mail:hover { background: var(--navy); color: var(--orange); }

.form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); padding: 12px 14px; font-size: 14.5px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(224,123,0,.18); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form .hint { font-size: 12px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }

/* ----------------------------- Подвал ----------------------------- */
.footer {
  background: var(--navy); color: var(--on-dark-m);
  padding: clamp(44px, 6vw, 72px) 0 28px;
  border-top: 3px solid var(--orange);
}
.footer-cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  padding-bottom: 36px; border-bottom: 1px solid var(--line-dark);
}
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo b { color: #fff; }
.footer .logo:hover b { color: var(--orange); }
.footer .desc { font-size: 13.5px; line-height: 1.7; max-width: 38ch; color: var(--on-dark-m); }
.footer h4 {
  color: #fff; font-size: 11px; font-family: 'JetBrains Mono', monospace;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a, .footer-cols li { font-size: 14px; color: var(--on-dark-m); transition: color .2s; }
.footer-cols a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .03em;
  color: var(--on-dark-m);
}

/* ----------------------------- Корзина ----------------------------- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(13,32,64,.55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s; z-index: 60;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 92vw); background: var(--bg);
  z-index: 70; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,.35);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 17px; display: inline-flex; align-items: center; gap: 10px; }
.cart-head h3 svg { width: 20px; height: 20px; }
.cart-close {
  border: 1px solid var(--line); background: var(--card);
  width: 38px; height: 38px; border-radius: var(--r);
  cursor: pointer; display: grid; place-items: center; color: var(--text);
  transition: border-color .2s, background .2s;
}
.cart-close:hover { border-color: var(--navy); background: var(--bg-2); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-row {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "info del" "info qty" "info sum";
  gap: 4px 12px; padding: 16px 0;
  border-bottom: 1px solid var(--line-soft); position: relative;
}
.cart-info { grid-area: info; display: flex; flex-direction: column; gap: 3px; }
.cart-info b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-info .art { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); word-break: break-all; }
.cart-info .cart-price { font-size: 12px; color: var(--muted-2); }
.cart-qty {
  grid-area: qty; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: 34px;
}
.qty-btn {
  width: 30px; height: 100%; border: 0; background: var(--bg);
  cursor: pointer; font-size: 16px; color: var(--text); transition: background .15s;
}
.qty-btn:hover { background: var(--orange); color: #fff; }
.qty-input {
  width: 40px; height: 100%; text-align: center;
  border: 0; border-inline: 1px solid var(--line);
  background: var(--card);
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-sum { grid-area: sum; align-self: end; text-align: right; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; }
.cart-del {
  grid-area: del; justify-self: end; align-self: start;
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted-2); width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 3px;
  transition: color .15s, background .15s;
}
.cart-del:hover { color: #c0392b; background: rgba(192,57,43,.08); }
.cart-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
/* вторичная текстовая кнопка «Очистить корзину» */
.cart-clear {
  display: block; width: 100%; margin-top: 10px; padding: 8px 0;
  background: none; border: 0; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .04em;
  color: var(--muted-2); transition: color .15s;
}
.cart-clear:hover { color: var(--orange-dk); text-decoration: underline; }
.cart-note { font-size: 12px; color: var(--wait); margin-bottom: 12px; line-height: 1.5; }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cart-total-row span { font-size: 14px; color: var(--muted); }
.cart-total-row b { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; }

/* ----------------------------- Scroll-reveal ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Каскад: сам контейнер не двигается — дочерние карточки «выплывают» по очереди */
.stagger.reveal { opacity: 1; transform: none; transition: none; }
.stagger.reveal > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.stagger.reveal.in > * { opacity: 1; transform: none; }
.stagger.reveal.in > *:nth-child(1) { transition-delay: .04s; }
.stagger.reveal.in > *:nth-child(2) { transition-delay: .10s; }
.stagger.reveal.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.reveal.in > *:nth-child(4) { transition-delay: .22s; }
.stagger.reveal.in > *:nth-child(5) { transition-delay: .28s; }
.stagger.reveal.in > *:nth-child(6) { transition-delay: .34s; }
.stagger.reveal.in > *:nth-child(7) { transition-delay: .40s; }
.stagger.reveal.in > *:nth-child(8) { transition-delay: .46s; }

/* ----------------------------- Тост «Добавлено» ----------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; max-width: calc(100vw - 32px);
  background: var(--navy); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-left: 3px solid var(--orange);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500;
  transform: translate(-50%, 150%); opacity: 0;
  transition: transform .42s var(--ease), opacity .42s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--orange); }

/* Пульс бейджа корзины при добавлении */
@keyframes badge-bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }
.cart-count.bump { animation: badge-bump .4s var(--ease); }

/* Тактильный отклик кнопок */
.btn:active { transform: translateY(1px); }

/* ================= Скролл-видео разбора (showcase) ================= */
.ex-scene { position: relative; height: 420vh; background: #100A04; }
.ex-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
}
/* Видео-фон на весь экран */
.ex-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; background: #100A04;
}
/* Затемнение поверх видео — чтобы текст читался */
.ex-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,10,4,.55) 0%, rgba(16,10,4,0) 26%, rgba(16,10,4,0) 60%, rgba(16,10,4,.78) 100%);
}
/* Контент поверх видео */
.ex-overlay {
  position: relative; z-index: 2; grid-row: 1 / 2;
  align-self: start; text-align: center; padding: 44px 20px 0; pointer-events: none;
}
.ex-overlay .eyebrow { color: var(--orange); }
.ex-overlay h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(26px, 5vw, 54px); letter-spacing: .5px;
  text-transform: uppercase; color: #fff; line-height: 1.05; margin-top: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.ex-foot { position: relative; z-index: 2; grid-row: 2 / 3; text-align: center; padding: 0 20px 34px; }
.ex-progress {
  height: 3px; background: rgba(255,255,255,.16); border-radius: 3px;
  max-width: 460px; margin: 0 auto 14px; overflow: hidden;
}
.ex-progress i { display: block; height: 100%; width: 0; background: var(--orange); }
.ex-hint { font-size: 14px; letter-spacing: .3px; color: #C8BCA6; min-height: 20px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ex-foot .btn { margin-top: 16px; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .ex-scene { height: auto; }
  .ex-stage { position: static; height: 84vh; }
}

/* ============= Скролл-переход день→ночь (CITY OF LIGHT) ============= */
.rv-scene { position: relative; height: 320vh; background: #0C0A06; }
.rv-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.rv-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; will-change: transform, opacity;
}
.rv-img.night { opacity: 0; }
.rv-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.rv-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 6vw, 80px);
}
.rv-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
  opacity: 0; transform: translateY(16px);
}
.rv-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(48px, 12vw, 150px); line-height: .92; color: #fff;
  text-transform: uppercase; letter-spacing: 1px; margin: 0;
  text-shadow: 0 6px 40px rgba(0,0,0,.55);
  clip-path: inset(100% 0 0 0);
}
.rv-title em { color: var(--orange); font-style: normal; }
.rv-sub {
  margin-top: 16px; max-width: 520px; color: #E9E1D2; font-size: clamp(15px, 2vw, 19px);
  opacity: 0; transform: translateY(16px);
}
/* Телефон-макет — эхо референса (десктоп + мобайл синхронно) */
.rv-phone {
  position: absolute; right: clamp(20px, 5vw, 70px); top: 50%; z-index: 4;
  width: clamp(120px, 15vw, 190px); aspect-ratio: 9 / 19;
  transform: translateY(-50%);
  border-radius: 26px; border: 6px solid #14100A; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); background: #000;
}
.rv-phone .rv-img { border-radius: 0; }
/* Пыль в воздухе — лёгкая жизнь кадра */
.rv-dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.rv-dust span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 226, 170, .55); filter: blur(1px);
  animation: rv-float linear infinite;
}
@keyframes rv-float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-102vh) translateX(30px); opacity: 0; }
}
.rv-dust span:nth-child(1){ left:12%; animation-duration:15s; animation-delay:0s;  }
.rv-dust span:nth-child(2){ left:24%; animation-duration:19s; animation-delay:3s; width:3px;height:3px; }
.rv-dust span:nth-child(3){ left:38%; animation-duration:13s; animation-delay:6s; }
.rv-dust span:nth-child(4){ left:52%; animation-duration:21s; animation-delay:1s; width:2px;height:2px; }
.rv-dust span:nth-child(5){ left:63%; animation-duration:17s; animation-delay:8s; }
.rv-dust span:nth-child(6){ left:74%; animation-duration:23s; animation-delay:4s; width:5px;height:5px; }
.rv-dust span:nth-child(7){ left:85%; animation-duration:16s; animation-delay:10s; }
.rv-dust span:nth-child(8){ left:46%; animation-duration:25s; animation-delay:12s; width:3px;height:3px; }

.rv-progress {
  position: absolute; left: 0; bottom: 0; z-index: 5; height: 3px; width: 100%;
  background: rgba(255,255,255,.12);
}
.rv-progress i { display: block; height: 100%; width: 0; background: var(--orange); }
.rv-hint {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 5;
  font-size: 13px; letter-spacing: .5px; color: #C8BCA6; pointer-events: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
@media (max-width: 720px) { .rv-phone { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rv-scene { height: auto; }
  .rv-stage { position: static; height: 92vh; }
  .rv-img.night { opacity: 1; }
  .rv-title { clip-path: none; }
  .rv-eyebrow, .rv-sub { opacity: 1; transform: none; }
}

/* ============= Тень по краям экрана (все страницы, широкие экраны) ============= */
.edge-shade {
  position: fixed; top: 0; bottom: 0; z-index: 0;
  width: calc((100vw - 1240px) / 2);
  pointer-events: none;
}
.edge-shade--left  { left: 0;  background: linear-gradient(90deg,  rgba(16,11,4,.95) 0%, rgba(16,11,4,.86) 22%, rgba(16,11,4,.66) 45%, rgba(16,11,4,.40) 65%, rgba(16,11,4,.16) 84%, rgba(16,11,4,0) 100%); }
.edge-shade--right { right: 0; background: linear-gradient(270deg, rgba(16,11,4,.95) 0%, rgba(16,11,4,.86) 22%, rgba(16,11,4,.66) 45%, rgba(16,11,4,.40) 65%, rgba(16,11,4,.16) 84%, rgba(16,11,4,0) 100%); }

@media (max-width: 1439px) { .edge-shade { display: none; } }

/* ============ Роликовый конвейер (референс: жёлтые рельсы + сталь + синяя рама) ============ */
.conveyor {
  position: fixed; left: 0; right: 0; bottom: 0; height: 96px; z-index: 50;
  pointer-events: none; transform: translateY(120%);
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  filter: drop-shadow(0 -7px 18px rgba(26,18,8,.45));
}
.conveyor.show { transform: translateY(14px); }  /* лента сидит чуть ниже — ноги уходят за край */

/* верхняя жёлтая направляющая (боковой отбойник) */
.cv-railtop {
  position: absolute; left: 0; right: 0; top: 0; height: 11px;
  background: linear-gradient(180deg, #D9A22B 0, #C4860A 48%, #8A5D08 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 2px 3px rgba(0,0,0,.35);
}

/* дека из тёплых бронзовых роликов (под палитру сайта) */
.cv-deck {
  position: absolute; left: 0; right: 0; top: 11px; height: 40px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26,18,8,.5) 0, rgba(26,18,8,0) 20%, rgba(26,18,8,0) 76%, rgba(26,18,8,.55) 100%),
    repeating-linear-gradient(90deg,
      #2a2318 0, #4a3f2c 2px, #b7ab90 6px, #ddd4bf 7px, #b7ab90 8px, #4a3f2c 12px, #2a2318 14px);
  box-shadow: inset 0 6px 10px -7px rgba(26,18,8,.85);
}
.cv-deck::after {                        /* лёгкий скользящий блик = «катятся» */
  content: ""; position: absolute; inset: 0; opacity: .0;
  background: linear-gradient(90deg, transparent 0, rgba(255,255,255,.16) 48%, rgba(255,255,255,.16) 52%, transparent 100%);
  background-size: 220px 100%;
}
.conveyor.show .cv-deck::after { opacity: 1; animation: cv-glint 2s linear infinite; }  /* лента едет медленнее */
@keyframes cv-glint { to { background-position: 220px 0; } }

/* жёлтый трим-профиль под роликами */
.cv-trim {
  position: absolute; left: 0; right: 0; top: 51px; height: 5px;
  background: linear-gradient(180deg, #C4860A, #8A5D08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* рама «шахты» с золотым кантом и рядом болтов */
.cv-skirt {
  position: absolute; left: 0; right: 0; top: 56px; height: 23px;
  background: linear-gradient(180deg, #2C1E0C 0, #1A1208 100%);
  border-top: 2px solid #C4860A;
  box-shadow: inset 0 3px 5px -3px rgba(0,0,0,.5);
}
.cv-skirt::before {                      /* болты с золотым ободком */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 23px 12px,
     #0c0a06 0 2.3px, rgba(196,134,10,.4) 2.3px 3.2px, transparent 3.3px);
  background-size: 46px 100%;
}

/* ноги-опоры (тёплый навий металл) */
.cv-leg {
  position: absolute; top: 79px; height: 17px; width: 9px;
  background: linear-gradient(90deg, #120c05 0, #2C1E0C 45%, #120c05 100%);
}
.cv-leg::after {
  content: ""; position: absolute; bottom: 0; left: -4px; right: -4px; height: 3px;
  background: #0c0a06; border-radius: 2px;
}
.cv-leg.left  { left: 14%; }
.cv-leg.right { right: 14%; }

/* деталь-бирка, едущая по роликам (штампованная пластина с OEM-номером) */
.cv-part {
  position: fixed; left: 0; top: 0; z-index: 55; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px 7px 9px; border-radius: 4px; white-space: nowrap;
  background: linear-gradient(180deg, #f7f4ee, #e6e0d5);
  border: 1px solid #ccc4b4; border-left: 4px solid var(--orange);
  box-shadow: 0 8px 16px -4px rgba(10,20,28,.55), inset 0 1px 0 rgba(255,255,255,.7);
  font-family: 'JetBrains Mono', monospace; will-change: transform, opacity;
}
.cv-part .oem {
  font-size: 9px; letter-spacing: .1em; font-weight: 700; color: #fff;
  background: var(--navy); padding: 2px 5px; border-radius: 2px;
}
.cv-part .art { font-size: 13px; font-weight: 600; color: var(--navy); }
/* отдельная бирка цены — золото добытого металла, тот же штампованный вид */
.cv-part.cv-pricechip { border-left-color: var(--orange); }
.cv-part.cv-pricechip .amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; color: var(--orange-dk); white-space: nowrap;
}

/* строчка цены: падает следом за биркой и рассыпается по ленте посимвольно */
.cv-price { position: fixed; left: 0; top: 0; z-index: 55; pointer-events: none; white-space: nowrap; }
.cv-price span {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 700;
  color: #FFD756; text-shadow: 0 1px 0 #3a2c14, 0 3px 6px rgba(0,0,0,.6);
  will-change: transform, opacity; opacity: 0;
}

@media (max-width: 640px) { .conveyor { height: 82px; } .cv-leg { display: none; } }
@media (prefers-reduced-motion: reduce) { .conveyor, .cv-part, .cv-price { display: none; } }

/* ----------------------------- Доступность ----------------------------- */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger.reveal > * { opacity: 1; transform: none; }
}

/* ----------------------------- Адаптив ----------------------------- */
@media (max-width: 1080px) {
  .brands { grid-template-columns: repeat(3, 1fr); }
  .brand-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .brand-card:nth-child(3n+3) { border-right: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-group > div { max-height: none; }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header .container { flex-wrap: wrap; min-height: auto; padding-block: 12px; row-gap: 10px; }
  .nav { order: 4; flex-basis: 100%; flex-direction: column; margin-left: 0; display: none; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 4px; }
  .burger { display: grid; place-items: center; margin-left: auto; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .hero-search { flex-direction: column; border-radius: var(--r); overflow: visible; gap: 8px; }
  .hero-search input { border-radius: var(--r); border: 1px solid rgba(255,255,255,.2); padding: 16px 18px; }
  .hero-search button { border-radius: var(--r); padding: 16px 28px; justify-content: center; }
}

@media (max-width: 560px) {
  :root { --gut: 18px; }
  .hero-stats { flex-direction: column; max-width: 100%; }
  .hero-stats .stat { flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); padding: 14px 16px; }
  .hero-stats .stat:last-child { border-bottom: 0; }
  .brands { grid-template-columns: 1fr; }
  .brand-card { border-right: 1px solid var(--line) !important; border-bottom: 0; }
  .brand-card:last-child { border-bottom: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; gap: 1px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .grid { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-btn { width: 100%; }
}
