/* =================================================================
   ARIA — автомобильная аудиотехника
   Общая таблица стилей (style.css)
   -----------------------------------------------------------------
   Палитра, типографика и компоненты бренда.
   Стиль: премиальный, агрессивный, технологичный.
   Чёрный фон, белый текст, красные акценты, острые углы.
   ================================================================= */

/* ---------- 1. ПЕРЕМЕННЫЕ (легко править под бренд) ---------- */
:root {
  /* Цвета */
  --bg:        #08080a;   /* основной фон */
  --bg-2:      #0e0e11;   /* секции-чередование */
  --surface:   #141417;   /* карточки, панели */
  --surface-2: #1b1b1f;   /* hover поверхностей */
  --line:      #26262b;   /* разделители, рамки */
  --white:     #f4f4f5;   /* основной текст */
  --muted:     #8a8a93;   /* вторичный текст */
  --muted-2:   #5c5c64;   /* приглушённый текст */
  --red:       #e30613;   /* фирменный красный */
  --red-2:     #ff2b22;   /* яркий красный (hover/glow) */
  --red-deep:  #9c0009;   /* тёмно-красный */

  /* Типографика */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif; /* заголовки */
  --font-body:    'Manrope', 'Segoe UI', sans-serif;    /* текст */
  --font-mono:    'Space Mono', ui-monospace, monospace;/* подписи/ТТХ */

  /* Сетка/размеры */
  --maxw: 1280px;
  --header-h: 76px;
  --gap: 24px;
  --section-space: clamp(48px, 6vw, 88px);
  --radius: 4px;       /* острые углы — минимальный радиус */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. СБРОС ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- 3. ТИПОГРАФИКА ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title { font-size: clamp(32px, 5vw, 64px); }
.text-red { color: var(--red-2); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- 4. РАЗМЕТКА ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding: var(--section-space) 0; }
.page-hero + .section { padding-top: 48px; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 20px; }
.grid { display: grid; gap: var(--gap); }

/* Диагональный/угловой акцент-разделитель */
.diag-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 40%, var(--red-2) 60%, transparent);
  opacity: .6;
}

/* Фоновое красное свечение (как в рефах) */
.glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,6,19,.55), rgba(227,6,19,0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 5. КНОПКИ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all .35s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-2); box-shadow: 0 0 0 1px var(--red-2), 0 10px 40px -8px rgba(227,6,19,.7); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--red); color: #fff; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--lg { padding: 20px 38px; font-size: 16px; }

/* ---------- 6. ШАПКА (sticky header) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,10,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.header.scrolled { background: rgba(8,8,10,.92); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Логотип ARIA — острый угловатый шрифт + красный росчерк */
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-style: italic;            /* наклон = агрессия */
  transform: skewX(-6deg);
  color: var(--white);
}
.logo__underline {
  height: 3px;
  width: 100%;
  background: var(--red);
  margin-top: 4px;
  transform: skewX(-20deg);      /* красный росчерк под углом */
}

/* Навигация (red pill — как в рефе) */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  border-radius: 100px;
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--white); }
.nav a.active { color: #fff; background: var(--red); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .btn { font-size: 16px; }

/* Бургер */
.burger { display: none; width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.burger span { width: 22px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a.active { color: var(--red-2); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- 7. HERO ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px,8vh,110px) 0 clamp(56px,7vh,96px); }
.hero__glow { width: 720px; height: 720px; top: -180px; right: -160px; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin: 22px 0 24px; }
.hero__lead { font-size: clamp(18px,2.2vw,24px); color: var(--muted); max-width: 560px; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; margin-top: 72px; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--font-display); font-size: 48px; font-weight: 700; }
.hero__stat .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.mobile-break { display: none; }

/* На ноутбуках первый экран вмещает заголовок, кнопки и показатели бренда. */
@media (min-width: 901px) and (max-width: 1600px) {
  .hero { padding-top: clamp(68px, 8vh, 100px); padding-bottom: clamp(32px, 5vh, 60px); }
  .hero .display { font-size: clamp(58px, 5.2vw, 82px); line-height: 1.1; }
  .hero h1 { margin: 14px 0 16px; }
  .hero__lead { margin-bottom: 24px; }
  .hero__stats { margin-top: 36px; }
}

/* ---------- 8. ПЛЕЙСХОЛДЕРЫ ИЗОБРАЖЕНИЙ ----------
   Полосатые SVG-заглушки с моноширинной подписью.
   Заменяются на реальные фото товара.
*/
.ph {
  position: relative;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 6px 10px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: rgba(8,8,10,.6);
}
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }

/* ---------- 9. БЛОК «О БРЕНДЕ» (на главной) ---------- */
.about-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-brief__copy p:first-child { margin-top: 0; }
.about-brief p { color: var(--muted); font-size: 18px; margin-top: 22px; }
.about-brief .cert { margin-top: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); letter-spacing: .08em; }

/* ---------- 10. ФЛАГМАН ---------- */
.flagship { position: relative; overflow: hidden; }
.flagship__glow { width: 600px; height: 600px; bottom: -220px; left: -120px; opacity: .7; }
.flagship__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.flagship h2 { font-size: clamp(40px,6vw,84px); margin: 18px 0 24px; }
.flagship .spec-row { display: flex; gap: 40px; margin: 32px 0; flex-wrap: wrap; }
.flagship .spec-row .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.flagship .spec-row .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.flagship__media { position: relative; }
.flagship__media .ph { aspect-ratio: 5 / 6; }

/* ---------- 11. КАТЕГОРИИ ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card[hidden] { display: none; }
.cat-card {
  position: relative;
  min-width: 0;
  background:
    radial-gradient(ellipse 75% 32% at 50% 105%, rgba(247, 15, 34, .53), transparent 78%),
    linear-gradient(180deg, #171316 0%, #1c1013 69%, #340b11 100%);
  border: 1px solid rgba(187, 86, 97, .38);
  border-radius: 22px;
  box-shadow: inset 0 -8px 16px -12px rgba(255, 46, 59, .8), 0 11px 24px -15px rgba(227, 6, 19, .38);
  padding: 28px 24px 24px;
  height: 200px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: stretch;
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 48%);
  pointer-events: none;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: -38px; left: 50%;
  width: 88%; height: 94px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 30, 48, .58), rgba(227, 6, 19, .15) 52%, transparent 76%);
  filter: blur(19px);
  pointer-events: none;
  transition: opacity .3s;
}
.cat-card:hover, .cat-card:focus-visible { border-color: rgba(255, 79, 91, .78); box-shadow: inset 0 -10px 20px -12px rgba(255, 46, 59, .9), 0 14px 30px -13px rgba(227, 6, 19, .5); transform: translateY(-4px); }
.cat-card:hover::after { opacity: 1.25; }
.cat-card__icon { position: relative; z-index: 1; display: block; align-self: center; justify-self: center; width: 90px; height: 90px; object-fit: contain; object-position: center; pointer-events: none; filter: brightness(0) saturate(100%) invert(15%) sepia(99%) saturate(7100%) hue-rotate(354deg) brightness(108%) drop-shadow(0 0 8px rgba(235, 0, 19, .72)); opacity: .92; transition: opacity .3s; }
.cat-card:hover .cat-card__icon { opacity: 1; }
.cat-card > div { position: relative; z-index: 1; }
.cat-card h3 { min-width: 0; font-size: clamp(19px, 1.75vw, 24px); font-weight: 700; line-height: 1.16; overflow-wrap: normal; }
.cat-card--long-title h3 { white-space: normal; letter-spacing: -.04em; }

/* ---------- 12. FOOTER ---------- */
.footer { background: #060608; border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer__brand p { color: var(--muted); margin-top: 20px; max-width: 280px; font-size: 14px; }
.footer__col h4 { font-size: 14px; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 400; }
.footer__col a { display: block; color: var(--muted); padding: 7px 0; font-size: 14px; transition: color .2s; }
.footer__address { font-style: normal; color: var(--muted); padding: 7px 0; font-size: 14px; line-height: 1.5; }
.footer__col a:hover { color: var(--red-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.footer__bottom p { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); letter-spacing: .05em; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--muted); transition: all .25s; }
.footer__social a:hover { border-color: var(--red); color: #fff; background: var(--red); }

/* ---------- 13. ПОДВАЛ СТРАНИЦЫ / ШАПКА РАЗДЕЛА ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px,6vw,80px) 0 clamp(40px,4vw,56px); border-bottom: 1px solid var(--line); }
.page-hero__glow { width: 560px; height: 560px; top: -200px; right: -100px; }
.page-hero .eyebrow { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(44px,8vw,110px); position: relative; z-index: 1; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 620px; margin-top: 24px; position: relative; z-index: 1; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 28px; position: relative; z-index: 1; }

/* ---------- 14. О БРЕНДЕ (страница) ---------- */
.about-intro { max-width: 840px; }
.about-intro p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; }
.about-intro p + p { margin-top: 24px; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; }
.value-card h3 { font-size: 24px; margin: 0 0 14px; }
.value-card p { color: var(--muted); font-size: 15px; }
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 920px; }
.timeline-item { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-item .year { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--red-2); }
.timeline-item h3 { font-size: 22px; margin-bottom: 10px; }
.timeline-item p { color: var(--muted); }

/* ---------- 15. КАТАЛОГ ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); }
.filters h4 { font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 16px; text-transform: uppercase; }
.filter-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.filter-btn {
  text-align: left;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s;
  box-shadow: inset 0 0 0 1px transparent;
}
.filter-btn:hover { color: var(--white); background: var(--surface); }
.filter-btn.active { color: #fff; background: var(--surface); box-shadow: inset 0 0 0 1px var(--red); }
.sort-control { display: flex; align-items: center; gap: 10px; }
.sort-control label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.sort-control select { background: var(--surface); color: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }
.sort-control select:focus { outline: none; border-color: var(--red); }

/* Мобильный селект категорий (показывается на узких экранах) */
.filter-select-mobile { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease);
}
.product-card:hover { border-color: var(--red); transform: translateY(-4px); }
.product-card .media { position: relative; }
.product-card .media .ph { border: none; border-radius: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4/3; }
.product-card .cat-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: rgba(8,8,10,.75); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 3px; backdrop-filter: blur(6px);
}
.product-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 19px; line-height: 1.05; margin-bottom: 8px; }
.product-card:hover h3 { color: var(--red-2); }
.product-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.product-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; }
.product-card .view { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 6px; }
.product-card:hover .view { color: var(--red-2); }

.load-more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); font-family: var(--font-mono); }

/* ---------- 16. СТРАНИЦА ТОВАРА ---------- */
.product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.viewer-wrap { min-width: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.product-info { min-width: 0; }
#viewer { width: 100%; aspect-ratio: 1/1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
#viewer img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
#viewer img[hidden], #p-image-empty[hidden] { display: none; }
.product-photo-empty { color: var(--muted); font-family: var(--font-mono); font-size: 14px; text-align: center; padding: 24px; }

.product-info h1 { font-size: clamp(34px,4.5vw,56px); margin: 0 0 20px; }
.product-info .lead { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

.spec-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 8px 0 32px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 14px 0; font-size: 15px; }
.spec-table td:first-child { color: var(--muted); width: 58%; font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em; overflow-wrap: anywhere; padding-right: 18px; }
.spec-table td:last-child { color: var(--white); width: 42%; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 8px; position: relative; overflow: hidden; }
.buy-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); }
.buy-box .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.buy-box .note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }

/* Rich-блок (технический разбор) */
.rich-block { max-width: 880px; margin: 0 auto; }
.rich-block h2 { font-size: clamp(28px,4vw,48px); margin-bottom: 24px; }
.rich-block p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.rich-block .rich-figure { margin: 36px 0; }
.rich-block .rich-figure .ph { aspect-ratio: 16/9; }
.rich-block .rich-figure figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 12px; text-align: center; letter-spacing: .05em; }
.rich-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0; }

/* Видеоблок */
.video-block { max-width: 980px; margin: 0 auto; }
.video-frame { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 17. ГДЕ КУПИТЬ ---------- */
.dealers-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.dealer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; gap: 24px; transition: border-color .3s; }
.dealer-card:hover { border-color: var(--red); }
.dealer-card .mark { width: 56px; height: 56px; flex: none; border-radius: var(--radius); background: var(--bg-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--red-2); border: 1px solid var(--line); }
.dealer-card h3 { font-size: 22px; margin-bottom: 8px; }
.dealer-card .meta { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.dealer-card .meta span { display: flex; gap: 8px; }
.dealer-card .meta .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); min-width: 58px; }

.shop-cta { background: linear-gradient(120deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.shop-cta__glow { width: 400px; height: 400px; right: -100px; top: -150px; opacity: .5; }
.shop-cta h2 { font-size: clamp(28px,4vw,44px); position: relative; z-index: 1; }
.shop-cta p { color: var(--muted); margin-top: 12px; position: relative; z-index: 1; }

/* ---------- 18. ФОРМЫ ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--red); }
.form textarea { resize: vertical; min-height: 120px; }

/* ---------- 19. КОНТАКТЫ ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-item { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; }
.contact-item:first-child { border-top: 0; padding-top: 0; }
.contact-item .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.contact-item .v { font-size: 20px; }
.contact-item .v a:hover { color: var(--red-2); }
.contact-item .v small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.social-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.social-row a { padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; transition: all .25s; }
.social-row a:hover { border-color: var(--red); background: var(--red); color: #fff; }
.contact-item--social { align-items: center; }
.contact-item--social .social-row { margin-top: 0; }
.contact-invite h2 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 54px); font-weight: 600; line-height: 1.12; }
.contact-invite > a { display: inline-block; margin-top: 30px; font-size: clamp(21px, 2.7vw, 38px); font-weight: 700; overflow-wrap: anywhere; color: var(--red); border-bottom: 0; }
.contact-invite > a:hover { color: var(--red-2); }
.map-ph { aspect-ratio: 4/3; }

/* ---------- 20. ИНСТРУКЦИЯ ---------- */
.doc { max-width: 860px; margin: 0 auto; }
.doc h2 { font-size: 32px; margin: 48px 0 18px; }
.doc h3 { font-size: 20px; margin: 30px 0 12px; color: var(--red-2); font-family: var(--font-display); }
.doc p { color: var(--muted); margin-bottom: 16px; }
.doc ul.bullets { margin: 0 0 18px 0; display: flex; flex-direction: column; gap: 8px; }
.doc ul.bullets li { color: var(--muted); padding-left: 20px; position: relative; }
.doc ul.bullets li::before { content: '—'; position: absolute; left: 0; color: var(--red-2); }
.doc pre { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 22px; overflow-x: auto; margin: 16px 0 24px; }
.doc pre code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #d6d6dc; white-space: pre; }
.doc code.inline { font-family: var(--font-mono); font-size: 13px; background: var(--surface); border: 1px solid var(--line); padding: 2px 7px; border-radius: 3px; color: var(--red-2); }

/* ---------- 21. АДАПТИВ ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  :root { --section-space: 48px; }
  .nav { display: none; }
  .burger { display: flex; }
  .header__cta .btn { display: none; }
  .hero { padding-top: 56px; }
  .about-brief, .flagship__inner, .product-page, .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .viewer-wrap, .filters { position: static; }
  .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .filter-list { display: none; }
  .filter-select-mobile { display: block; position: relative; width: 100%; margin-bottom: 8px; }
  .filter-select-mobile::after { content: ''; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
  .filter-select-mobile select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--surface); color: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 56px 14px 16px; cursor: pointer; }
  .dealers-grid, .rich-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --section-space: 40px; }
  .page-hero + .section { padding-top: 40px; }
  .container { padding-inline: 20px; }
  .cats { gap: 10px; }
  .cat-card { padding: 18px 12px; }
  .cat-card__icon { width: 66px; height: 66px; }
  .cat-card h3 { font-size: clamp(14px, 4.2vw, 22px); line-height: 1.15; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
  .hero__stat { min-width: 0; }
  .hero__stat .num { font-size: clamp(34px, 10vw, 44px); line-height: 1.1; }
  .hero__stat .lbl { font-size: 10px; line-height: 1.45; letter-spacing: .04em; }
  .mobile-break { display: block; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .form-row.two { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr; gap: 6px; }
  .shop-cta { padding: 32px 24px; }
}

.logo img { display: block; width: 148px; height: auto; }

/* Карточки линеек с подтверждёнными сведениями из истории бренда */
.series-card { min-height: 220px; padding: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.series-card__year { display: inline-block; color: var(--red-2); font-family: var(--font-mono); font-size: 13px; margin-bottom: 22px; }
.series-card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.series-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { min-width: 0; }
  .product-card .body { min-width: 0; padding: 12px; }
  .product-card h3 { font-size: 16px; line-height: 1.12; overflow-wrap: anywhere; }
  .product-card .sub { font-size: 10px; line-height: 1.35; margin-bottom: 16px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .product-card .foot { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
  .product-card .view { font-size: 10px; }
  .product-card .cat-tag { top: 7px; left: 7px; padding: 3px 6px; font-size: 9px; max-width: calc(100% - 14px); line-height: 1.2; }
  .product-card .media .ph { aspect-ratio: 1; }
  .spec-table { table-layout: fixed; }
  .spec-table td { min-width: 0; overflow-wrap: anywhere; vertical-align: top; font-size: 14px; }
  .spec-table td:first-child { width: 56%; padding-right: 10px; font-size: 12px; }
  .spec-table td:last-child { width: 44%; }
  .product-info h1 { overflow-wrap: anywhere; }
  .buy-box { padding: 18px; }
  .buy-box .btn--block { white-space: normal; text-align: left; line-height: 1.2; padding: 16px 12px; font-size: 14px; }
  .buy-box .note { overflow-wrap: anywhere; }
  .breadcrumb { overflow-wrap: anywhere; }
}

.series-card { display: flex; flex-direction: column; color: inherit; transition: border-color .2s, transform .2s; }
.series-card:hover, .series-card:focus-visible { border-color: var(--red); transform: translateY(-3px); }
.series-card__more { margin-top: auto; padding-top: 24px; color: var(--red-2); font-family: var(--font-mono); font-size: 13px; }
.series-detail { max-width: 850px; }
.series-detail__category { color: var(--red-2); font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.series-detail h1 { margin: 16px 0 24px; }
.series-detail__description { font-size: 20px; line-height: 1.55; margin: 20px 0 32px; }
.series-detail__year { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; display: flex; gap: 32px; align-items: baseline; }
.series-detail__year strong { font-family: var(--font-display); color: var(--red-2); font-size: 34px; }
.series-detail__note { color: var(--muted); margin: 32px 0; }

.product-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.product-thumbnail { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: var(--muted-2); font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-thumbnail.active, .product-thumbnail:focus-visible { border-color: var(--red); outline: none; }
.product-thumbnail:not(:disabled):hover { border-color: var(--red-2); }
.product-thumbnail--empty { cursor: default; border-style: dashed; }

.footer__col .footer-social-label { margin: 20px 0 8px; color: var(--muted-2); font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer__col .footer-social-name { display: inline-block; margin-top: 20px; color: var(--white); font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.footer__col .footer-social-name:hover { color: var(--red-2); }
.social-row a { padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }

/* Читаемость карточки товара и кнопки мобильного меню. */
.product-description-title { font-size: clamp(28px, 4vw, 38px); }
#p-desc { font-size: 16px; line-height: 1.65; }
@media (max-width: 900px) {
  .mobile-menu a:not(.btn) { font-size: 18px; line-height: 1.2; letter-spacing: .12em; }
  .mobile-menu .btn { width: 100%; justify-content: space-between; gap: 10px; padding: 16px 20px; font-size: 18px; line-height: 1.2; white-space: normal; text-align: left; }
}
@media (max-width: 640px) {
  .hero__actions .btn--lg { padding-inline: 20px; }
}

/* Единый красный акцент при управлении клавиатурой. */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.burger:focus-visible { box-shadow: inset 0 0 0 1px var(--red); }

@media (max-width: 680px) {
  .buy-box .btn--block { justify-content: space-between; text-align: left; }
  .buy-box .btn--block .arrow { flex: 0 0 auto; }
}

/* Категории: чёткие подписи и векторная графика. */
.cats--art { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
.cats--art .cat-card { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) 10px; grid-template-rows: 1fr; align-items: center; gap: 14px; height: 100px; padding: 16px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #131315, #101012); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .25s; }
.cats--art .cat-card::before { display: none; }
.cats--art .cat-card::after { content: ''; position: static; display: block; width: 10px; height: 10px; border-right: 2px solid var(--red-2); border-top: 2px solid var(--red-2); background: none; filter: none; transform: rotate(45deg); opacity: 1; transition: none; }
.cats--art .cat-card:hover, .cats--art .cat-card:focus-visible { transform: none; box-shadow: inset 0 0 0 1px var(--red); }
.cats--art .cat-card__icon { display: block; width: 60px; height: 60px; filter: none; opacity: 1; transition: none; }
.cats--art .cat-card > div { min-width: 0; }
.cats--art .cat-card h3 { font-family: var(--font-display); color: var(--white); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
@media (max-width: 1050px) {
  .cats--art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cats--art { grid-template-columns: 1fr; gap: 8px; }
  .cats--art .cat-card { height: 78px; grid-template-columns: 48px minmax(0, 1fr) 10px; gap: 16px; padding: 12px 18px; }
  .cats--art .cat-card__icon { width: 48px; height: 48px; }
  .cats--art .cat-card h3 { font-size: 19px; }
}

/* Управление галереей товара */
#viewer { position: relative; touch-action: pan-y pinch-zoom; }
#viewer:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(18,18,20,.88); color: #fff; cursor: pointer; z-index: 1; }
.gallery-arrow--prev { left: 10px; }
.gallery-arrow--next { right: 10px; }
.gallery-arrow:hover, .gallery-arrow:focus-visible { border-color: var(--red); outline: 2px solid transparent; }
.gallery-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery-counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 20px; background: rgba(18,18,20,.88); color: #fff; font-size: 14px; pointer-events: none; }
#p-image { cursor: zoom-in; }
#p-image:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.photo-lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0e; color: #fff; overflow: hidden; }
.photo-lightbox::backdrop { background: #0b0b0e; }
.photo-lightbox__toolbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: #0b0b0e; }
.photo-lightbox button { width: 44px; height: 44px; border: 1px solid #45454a; border-radius: 10px; background: #202024; color: #fff; font-size: 24px; cursor: pointer; flex-shrink: 0; }
.photo-lightbox button:focus-visible { outline: 2px solid #ff2b22; outline-offset: 2px; }
.photo-lightbox button:disabled { opacity: .35; cursor: default; }
.photo-lightbox button[data-action="reset"] { font-size: 14px; }
.photo-lightbox__count { margin-right: auto; font-size: 14px; }
.photo-lightbox__stage { position: absolute; inset: 80px 60px 55px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-in; }
.photo-lightbox__stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; flex-shrink: 0; transform-origin: center; pointer-events: none; }
.photo-lightbox__stage.is-zoomed { cursor: grab; }
.photo-lightbox__stage.is-zoomed:active { cursor: grabbing; }
.photo-lightbox__prev, .photo-lightbox__next { position: absolute; top: 50%; z-index: 2; }
.photo-lightbox__prev { left: 10px; } .photo-lightbox__next { right: 10px; }
.photo-lightbox button[hidden] { display: none; }
.photo-lightbox__hint { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 16px; right: 16px; text-align: center; font-size: 14px; color: #bcbcc3; margin: 0; pointer-events: none; }
@media (max-width: 600px) { .photo-lightbox__stage { inset: 80px 0 70px; } .photo-lightbox__prev, .photo-lightbox__next { top: auto; bottom: 68px; } .photo-lightbox__hint { font-size: 13px; } }

/* Настольная адаптация: читаемые карточки и плавная ширина рабочей области. */
@media (min-width: 901px) {
  :root { --maxw: 1760px; --muted: #aaaab3; }
  body { font-size: 17px; }
  .container { width: 94%; padding-inline: 24px; }
  .page-hero { padding-block: clamp(36px, 3vw, 56px); }
  .page-hero h1 { font-size: clamp(52px, 4.2vw, 80px); line-height: 1.12; }
  .page-hero + .section { padding-top: 36px; }
  .catalog-layout { grid-template-columns: clamp(230px, 17vw, 290px) minmax(0, 1fr); gap: clamp(24px, 2.2vw, 40px); }
  .catalog-layout > * { min-width: 0; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 1.4vw, 26px); }
  .product-card .body { padding: clamp(18px, 1.4vw, 26px); }
  .product-card h3 { font-size: clamp(22px, 1.5vw, 27px); line-height: 1.2; overflow-wrap: anywhere; }
  .product-card .sub { font-family: var(--font-body); font-size: clamp(16px, 1vw, 18px); line-height: 1.55; color: #bcbcc5; letter-spacing: normal; text-transform: none; }
  .product-card .cat-tag { font-size: 12px; letter-spacing: .02em; }
  .filters h4, .sort-control label { font-size: 14px; color: #aaaab3; }
  .filter-btn { font-size: 17px; line-height: 1.4; padding: 13px 14px; gap: 8px; }
  .nav a, .btn { font-size: 16px; }
  .sort-control select { font-size: 16px; }
  .cats--art .cat-card h3 { font-size: clamp(18px, 1.15vw, 21px); }
  .product-page { gap: clamp(32px, 3vw, 56px); }
  .product-info .lead, #p-desc { font-size: 18px; line-height: 1.65; }
  #p-desc { max-width: 72ch; }
  .spec-table td { font-size: 17px; }
  .spec-table td:first-child { font-size: 15px; }
  .buy-box .note { font-size: 15px; color: #aaaab3; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
