/* ============================================================
   handrail-contour — components
   r1 · light / strict / modern
   Нейминг:  l-  раскладка · c-  компонент · u-  утилита · is-/has- состояние
   Все значения — только из tokens.css. Магических чисел нет.
   ============================================================ */

/* ------------------------------------------------------------
   0. БАЗА
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--ui-page);
  color: var(--ui-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;          /* страховка: причина скролла всё равно устраняется */
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ui-text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h);
  letter-spacing: var(--ls-h);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -.01em; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-tight); letter-spacing: 0; }

p { margin: 0; }
p + p { margin-top: var(--sp-4); }

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color var(--dur-1) var(--ease-out),
              text-decoration-color var(--dur-1) var(--ease-out);
}
a:hover { color: var(--c-link-hover); }

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--c-bg-2); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

hr {
  height: 1px;
  margin: var(--sp-8) 0;
  border: 0;
  background: var(--ui-border);
}

/* Фокус: видимый, единый, не «прыгающий» */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

::selection { background: var(--c-support-soft); color: var(--c-ink); }

/* ------------------------------------------------------------
   1. РАСКЛАДКА
   ------------------------------------------------------------ */
.l-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.l-container--narrow { max-width: var(--container-narrow); }

.l-section { padding-block: var(--section-y); }
.l-section--tight { padding-block: var(--section-y-tight); }
.l-section--alt { background: var(--c-bg-2); }
.l-section--surface { background: var(--c-surface); }
.l-section--flush-top { padding-top: 0; }

.l-stack > * + * { margin-top: var(--stack); }
.l-stack--lg > * + * { margin-top: var(--sp-8); }
.l-stack--sm > * + * { margin-top: var(--sp-3); }

.l-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
}
.l-grid > * { min-width: 0; }
.l-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.l-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.l-grid--tight { gap: var(--sp-3); }

/* Курируемые сетки: число колонок кратно числу карточек — ряда без «дырок».
   Нужны там, где состав подобран вручную (showcase, похожие товары).
   Для каталога не применять: там количество меняют фильтры. */
.l-grid--x3 { grid-template-columns: 1fr; }
.l-grid--x6 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .l-grid--x3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-grid--x6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .l-grid--x6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.l-split {
  display: grid;
  gap: clamp(var(--sp-6), 3vw, var(--sp-12));
  grid-template-columns: 1fr;
  align-items: start;
}

.l-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: clamp(var(--sp-6), 2.4vw, var(--sp-10));
}
.l-head__text { max-width: var(--measure); }
.l-head__text > * + * { margin-top: var(--sp-3); }

/* ------------------------------------------------------------
   2. УТИЛИТЫ
   ------------------------------------------------------------ */
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.u-skip {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: calc(var(--z-header) + 10);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-2);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}
.u-skip:focus-visible { transform: translateY(0); }

.u-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  color: var(--c-text-3);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.u-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
}

.u-lead {
  max-width: var(--measure);
  color: var(--ui-text-muted);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.u-muted { color: var(--ui-text-muted); }
.u-faint { color: var(--ui-text-faint); }
.u-small { font-size: var(--fs-sm); }
.u-tiny  { font-size: var(--fs-xs); }
.u-nowrap { white-space: nowrap; }
.u-num { font-variant-numeric: tabular-nums; }

.u-measure { max-width: var(--measure); }
.u-measure-narrow { max-width: var(--measure-narrow); }

/* Плейсхолдер вместо фото — осознанная заглушка, не «сломанная картинка» */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg,
      rgba(89, 122, 155, .07) 0 2px,
      transparent 2px 12px),
    linear-gradient(160deg, var(--c-bg-2), var(--c-surface-2) 55%, var(--c-bg-2));
  color: var(--c-text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--sp-3);
}
.ph::after {
  content: attr(data-ph);
  max-width: 90%;
}
.ph--ratio { aspect-ratio: var(--card-media-ratio); }

/* ------------------------------------------------------------
   3. КНОПКИ
   ------------------------------------------------------------ */
.c-btn {
  --_bg: var(--c-primary);
  --_fg: var(--brand-white);
  --_bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--ctrl-h);
  min-width: var(--tap);
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--_bd);
  border-radius: var(--r-2);
  background: var(--_bg);
  color: var(--_fg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.c-btn:hover { color: var(--_fg); }
.c-btn:active { transform: translateY(1px); }
.c-btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }

/* Главный CTA — фирменный красный */
.c-btn--accent {
  --_bg: var(--ui-action);
  --_fg: var(--brand-white);
}
.c-btn--accent:hover { --_bg: var(--ui-action-hover); box-shadow: var(--sh-2); }

/* Основная — фирменный сине-серый */
.c-btn--primary { --_bg: var(--c-primary); --_fg: var(--brand-white); }
.c-btn--primary:hover { --_bg: var(--c-primary-hover); box-shadow: var(--sh-2); }

/* Вторичная — контур */
.c-btn--ghost {
  --_bg: transparent;
  --_fg: var(--c-primary);
  --_bd: var(--ui-border-ctrl);
}
.c-btn--ghost:hover {
  --_bg: var(--c-support-soft);
  --_bd: var(--c-support);
  --_fg: var(--c-secondary);
}

/* Тихая — на светлом */
.c-btn--quiet {
  --_bg: var(--c-surface);
  --_fg: var(--c-primary);
  --_bd: var(--ui-border);
  box-shadow: var(--sh-1);
}
.c-btn--quiet:hover {
  --_bd: var(--ui-border-ctrl);
  --_fg: var(--c-secondary);
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}

.c-btn--block { width: 100%; }
.c-btn--lg { min-height: 56px; padding-inline: var(--sp-8); font-size: var(--fs-body); }
.c-btn--sm { min-height: var(--tap); padding-inline: var(--sp-4); font-size: var(--fs-xs); }

.c-btn[disabled],
.c-btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Иконочная кнопка: всегда квадрат ≥44px */
.c-icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--r-2);
  background: var(--c-surface);
  color: var(--c-primary);
  transition: background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.c-icon-btn:hover {
  border-color: var(--c-support);
  background: var(--c-support-soft);
  color: var(--c-secondary);
}
.c-icon-btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.c-icon-btn svg { width: 20px; height: 20px; }

/* Текстовая ссылка-действие */
.c-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  color: var(--c-link);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out), gap var(--dur-2) var(--ease-out);
}
.c-link::after {
  content: "→";
  transition: transform var(--dur-2) var(--ease-out);
}
.c-link:hover { color: var(--c-link-hover); }
.c-link:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------
   4. ПРОГРЕСС ЧТЕНИЯ (D11)
   ------------------------------------------------------------ */
.c-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-progress);
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.c-progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--c-support), var(--c-accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ------------------------------------------------------------
   5. ХЕДЕР: sticky + уплотнение (D11)
   ------------------------------------------------------------ */
.c-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.c-header.is-stuck {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--ui-border);
  box-shadow: 0 1px 0 rgba(36, 53, 72, .04), 0 6px 18px rgba(36, 53, 72, .06);
}

.c-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: var(--header-h);
  transition: min-height var(--dur-2) var(--ease-out);
}
.c-header.is-stuck .c-header__inner { min-height: var(--header-h-compact); }

.c-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--tap);
  color: var(--ui-text-strong);
  font-weight: var(--fw-bold);
  letter-spacing: -.02em;
  text-decoration: none;
  flex: 0 0 auto;
}
.c-header__brand:hover { color: var(--c-primary); }

.c-header__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  background: var(--c-primary);
  color: var(--brand-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  flex: 0 0 auto;
  transition: background-color var(--dur-2) var(--ease-out);
}
.c-header__brand:hover .c-header__mark { background: var(--c-secondary); }

.c-header__name { display: flex; flex-direction: column; line-height: 1.1; }
.c-header__name b { font-size: var(--fs-sm); }
.c-header__name span {
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: .02em;
}

.c-header__nav { margin-inline-start: auto; }
.c-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.c-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--sp-3);
  border-radius: var(--r-2);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out),
              background-color var(--dur-1) var(--ease-out);
}
.c-nav__link:hover { color: var(--c-secondary); background: var(--c-support-soft); }
.c-nav__link[aria-current="page"] {
  color: var(--c-secondary);
  font-weight: var(--fw-semibold);
  background: var(--c-support-soft);
  box-shadow: inset 0 -2px 0 var(--c-accent);
}
.c-nav__link[aria-current="page"]:hover {
  color: var(--brand-white);
  background: var(--c-primary);
}

.c-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
}
.c-header__phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ui-text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.c-header__phone:hover { color: var(--c-accent); }

.c-header__burger { display: none; }

/* Мобильное меню */
.c-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  overflow: hidden;            /* клип: панель не расширяет документ */
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--dur-3);
}
.c-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 27, 36, .38);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
.c-drawer.is-open { visibility: visible; pointer-events: auto; }
.c-drawer.is-open::before { opacity: 1; }

.c-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100%, 420px);
  background: var(--c-surface);
  box-shadow: var(--sh-3);
  transform: translateX(100%);
  will-change: transform;
  transition: transform var(--dur-3) var(--ease-out);
}
.c-drawer.is-open .c-drawer__panel { transform: translateX(0); }
.c-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--gutter);
  border-bottom: 1px solid var(--ui-border);
  min-height: var(--header-h);
}
.c-drawer__body {
  overflow-y: auto;
  padding: var(--sp-4) var(--gutter) var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.c-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: var(--sp-2) var(--sp-2);
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-text-strong);
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  text-decoration: none;
}
.c-drawer__link::after {
  content: "→";
  color: var(--ui-text-faint);
  transition: transform var(--dur-2) var(--ease-out);
}
.c-drawer__link:hover { color: var(--c-accent); }
.c-drawer__link:hover::after { transform: translateX(3px); }
.c-drawer__cta { margin-top: var(--sp-6); }

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.c-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(var(--sp-10), 6vw, var(--sp-24));
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(89, 122, 155, .14), transparent 60%),
    linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--ui-border);
}
.c-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(var(--sp-8), 4vw, var(--sp-16));
  grid-template-columns: 1fr;
  align-items: center;
}
.c-hero__content { max-width: 42rem; position: relative; z-index: var(--z-base); }
.c-hero__content > * + * { margin-top: var(--sp-5); }
.c-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.c-hero__title em {
  font-style: normal;
  color: var(--c-accent);
}
.c-hero__lead {
  max-width: 34rem;
  color: var(--ui-text-muted);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}
.c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}
.c-hero__note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
}

.c-hero__media { position: relative; }
.c-hero__figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-4);
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 3;
  background: var(--c-bg-2);
}
.c-hero__figure > * { width: 100%; height: 100%; }

/* Плавающая карточка-факт поверх медиа */
.c-hero__badge {
  position: absolute;
  left: clamp(0px, 2vw, var(--sp-6));
  bottom: calc(-1 * var(--sp-5));
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-3);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
  max-width: min(100%, 20rem);
}
.c-hero__badge-num {
  color: var(--c-accent);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.c-hero__badge-text {
  color: var(--ui-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.3;
}

/* Показатели под hero */
.c-metrics {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  padding-top: clamp(var(--sp-6), 3vw, var(--sp-10));
}
.c-metric {
  padding: var(--sp-4) 0 0;
  border-top: 2px solid var(--c-primary);
}
.c-metric__value {
  display: block;
  color: var(--ui-text-strong);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.c-metric__label {
  display: block;
  margin-top: var(--sp-2);
  color: var(--ui-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

/* ------------------------------------------------------------
   7. ХЛЕБНЫЕ КРОШКИ
   ------------------------------------------------------------ */
.c-breadcrumbs {
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--ui-border);
  background: var(--c-surface);
}
.c-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ui-text-faint);
}
.c-breadcrumbs__item { display: inline-flex; align-items: center; gap: var(--sp-2); }
.c-breadcrumbs__item + .c-breadcrumbs__item::before {
  content: "/";
  color: var(--c-line-2);
  opacity: .7;
}
.c-breadcrumbs__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding-inline: var(--sp-1);
  margin-inline: calc(-1 * var(--sp-1));
  justify-content: center;
  color: var(--c-text-2);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.c-breadcrumbs__link:hover { color: var(--c-accent); }
.c-breadcrumbs__current {
  color: var(--ui-text-strong);
  font-weight: var(--fw-medium);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* ------------------------------------------------------------
   8. КАРТОЧКА ТОВАРА
   ------------------------------------------------------------ */
.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--r-3);
  background: var(--c-surface);
  overflow: hidden;
  transition: transform var(--dur-3) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out),
              border-color var(--dur-3) var(--ease-out),
              opacity var(--dur-2) var(--ease-out);
}
.c-card--lift:hover,
.c-card--lift:focus-within {
  transform: translateY(-4px);
  border-color: var(--c-line-2);
  box-shadow: var(--sh-3);
}

.c-card__media {
  position: relative;
  aspect-ratio: var(--card-media-ratio);
  overflow: hidden;
  background: var(--c-bg-2);
}
.c-card__media .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  transition: transform var(--dur-3) var(--ease-out);
}
.c-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--sp-4);
  transition: transform var(--dur-3) var(--ease-out);
}
.c-card--lift:hover .c-card__media .ph,
.c-card--lift:hover .c-card__media img { transform: scale(1.035); }

.c-card__flags {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  z-index: var(--z-base);
  max-width: calc(100% - var(--sp-6));
}

.c-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  flex: 1 1 auto;
}
.c-card__title {
  font-size: var(--fs-h4);
  line-height: 1.32;
  letter-spacing: 0;
  font-weight: var(--fw-semibold);
}
.c-card__title a {
  color: inherit;
  text-decoration: none;
}
/* растянутая ссылка: вся карточка кликабельна, но фокус — на ссылке */
.c-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}
.c-card__title a:hover { color: var(--c-accent); }

.c-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  color: var(--ui-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.c-card__specs li { display: inline-flex; align-items: center; gap: var(--sp-1); }
.c-card__specs li + li::before {
  content: "·";
  color: var(--c-line-2);
}

.c-card__foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--ui-border);
}
.c-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.c-card__price b {
  color: var(--ui-text-strong);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.c-card__price span {
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
}
.c-card__cta {
  position: relative;
  z-index: calc(var(--z-base) + 1);
}

/* ------------------------------------------------------------
   9. БЕЙДЖИ И ЧИПЫ
   ------------------------------------------------------------ */
.c-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 24px;
  padding: 2px var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--c-support-soft);
  color: var(--c-secondary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.c-badge--accent { background: var(--c-accent); color: var(--brand-white); }
.c-badge--outline {
  background: var(--c-surface);
  border-color: var(--ui-border-ctrl);
  color: var(--c-text-2);
}
.c-badge--success { background: #e7f2ec; color: var(--c-success); }

.c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.c-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: 0 var(--sp-4);
  border: 1px solid var(--ui-border-ctrl);
  border-radius: var(--r-full);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.c-chip:hover {
  border-color: var(--c-support);
  background: var(--c-support-soft);
  color: var(--c-secondary);
}
.c-chip[aria-pressed="true"],
.c-chip.is-active {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: var(--brand-white);
}
.c-chip[aria-pressed="true"]:hover { background: var(--c-primary-hover); }
.c-chip__count {
  color: inherit;
  opacity: .65;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   10. КАТАЛОГ: тулбар, фильтры, сортировка
   ------------------------------------------------------------ */
.c-catalog { padding-block: var(--section-y-tight) var(--section-y); }

.c-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: var(--z-sticky);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--ui-border);
}
.c-toolbar__count {
  color: var(--ui-text-muted);
  font-size: var(--fs-sm);
  margin-inline-end: auto;
}
.c-toolbar__count b {
  color: var(--ui-text-strong);
  font-variant-numeric: tabular-nums;
}
.c-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.c-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.c-select select {
  min-height: var(--tap);
  padding: var(--sp-2) var(--sp-8) var(--sp-2) var(--sp-3);
  border: 1px solid var(--ui-border-ctrl);
  border-radius: var(--r-2);
  background: var(--c-surface);
  color: var(--ui-text);
  font-size: var(--fs-sm);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.c-select select:hover { border-color: var(--c-support); }
.c-select select:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.c-select::after {
  content: "";
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--c-text-3);
  border-bottom: 2px solid var(--c-text-3);
  transform: rotate(45deg);
  pointer-events: none;
}

.c-filters {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}
.c-filters__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ctrl-h);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ui-border-ctrl);
  border-radius: var(--r-2);
  background: var(--c-surface);
  color: var(--ui-text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
/* Раскрыто → шеврон вверх; свёрнуто → вниз */
.c-filters__toggle::after {
  content: "";
  width: 8px; height: 8px;
  margin-top: 2px;
  border-right: 2px solid var(--c-text-3);
  border-bottom: 2px solid var(--c-text-3);
  transform: rotate(-135deg);
  transition: transform var(--dur-2) var(--ease-out);
}
.c-filters.is-collapsed .c-filters__toggle::after {
  margin-top: -4px;
  transform: rotate(45deg);
}
.c-filters.is-collapsed .c-filters__panel { display: none; }

.c-filters__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-3);
  background: var(--c-surface);
}
.c-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--ui-border);
}
.c-filters__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
}
.c-filters__reset {
  color: var(--c-text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding-inline: var(--sp-2);
  border-radius: var(--r-1);
  transition: color var(--dur-1) var(--ease-out);
}
.c-filters__reset:hover { color: var(--c-accent); }

.c-filter-group {
  border-bottom: 1px solid var(--ui-border);
  padding-block: var(--sp-1);
}
.c-filter-group:last-child { border-bottom: 0; }
.c-filter-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: var(--sp-2) 0;
  color: var(--ui-text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
}
.c-filter-group__summary::-webkit-details-marker { display: none; }
.c-filter-group__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px; height: 8px;
  margin-right: var(--sp-2);
  border-right: 2px solid var(--c-text-3);
  border-bottom: 2px solid var(--c-text-3);
  transform: rotate(45deg);
  transition: transform var(--dur-2) var(--ease-out);
}
.c-filter-group[open] > .c-filter-group__summary::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}
.c-filter-group__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--sp-3);
}

/* Чекбокс/радио — строка целиком тач-цель */
.c-check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--tap);
  padding: var(--sp-1) var(--sp-2);
  margin-inline: calc(-1 * var(--sp-2));
  border-radius: var(--r-2);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.c-check:hover { background: var(--c-bg-2); color: var(--ui-text-strong); }
.c-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--ui-border-ctrl);
  border-radius: var(--r-1);
  background: var(--c-surface);
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.c-check input[type="radio"] { border-radius: var(--r-full); }
.c-check input:checked {
  border-color: var(--c-primary);
  background: var(--c-primary);
  box-shadow: inset 0 0 0 2px var(--c-surface);
}
.c-check input:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.c-check input:checked:focus-visible {
  box-shadow: var(--sh-focus), inset 0 0 0 2px var(--c-surface);
}
.c-check__count {
  margin-inline-start: auto;
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

/* Диапазон/ползунок */
.c-range {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
}
.c-range__values {
  display: flex;
  justify-content: space-between;
  color: var(--ui-text-muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.c-range input[type="range"] {
  width: 100%;
  height: var(--tap);
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.c-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--r-full);
  background: var(--c-line);
}
.c-range input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid var(--c-surface);
  border-radius: var(--r-full);
  background: var(--c-primary);
  box-shadow: var(--sh-1);
  appearance: none;
  transition: background-color var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.c-range input[type="range"]:hover::-webkit-slider-thumb { background: var(--c-secondary); }
.c-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--sh-focus); }

/* Пустое состояние */
.c-empty {
  display: grid;
  place-items: center;
  gap: var(--sp-3);
  padding: clamp(var(--sp-10), 8vw, var(--sp-24)) var(--sp-6);
  border: 1px dashed var(--ui-border-ctrl);
  border-radius: var(--r-3);
  background: var(--c-surface);
  text-align: center;
}
.c-empty__title { font-size: var(--fs-h3); }
.c-empty__text {
  max-width: 34rem;
  color: var(--ui-text-muted);
  font-size: var(--fs-sm);
}

/* Сетка каталога: на 1024+ — сайдбар + товары */
.c-catalog__layout {
  display: grid;
  gap: clamp(var(--sp-5), 2.4vw, var(--sp-8));
  grid-template-columns: 1fr;
  align-items: start;
}
.c-catalog__grid { min-width: 0; }
.c-catalog__grid .l-grid { --_cols: 3; }

/* ------------------------------------------------------------
   11. СТРАНИЦА ТОВАРА
   ------------------------------------------------------------ */
.c-product {
  display: grid;
  gap: clamp(var(--sp-6), 3vw, var(--sp-12));
  grid-template-columns: 1fr;
  align-items: start;
}

.c-gallery { min-width: 0; }
.c-gallery__main {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--r-4);
  background: var(--c-surface);
  aspect-ratio: 4 / 3;
}
.c-gallery__main .ph { border-radius: 0; }
.c-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--sp-6);
}
.c-gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-1);
  scrollbar-width: thin;
}
.c-gallery__thumb {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--r-2);
  background: var(--c-surface);
  transition: border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.c-gallery__thumb:hover { border-color: var(--c-support); }
.c-gallery__thumb[aria-current="true"] {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary);
}

.c-product__aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
}
.c-product__head > * + * { margin-top: var(--sp-3); }
.c-product__title { font-size: var(--fs-h2); line-height: 1.14; }
.c-product__sku {
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

.c-price-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-3);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}
.c-price-box__label {
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: var(--fw-semibold);
}
.c-price-box__value {
  color: var(--ui-text-strong);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.c-price-box__note {
  color: var(--ui-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.c-price-box__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

/* Таблица характеристик */
.c-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.c-specs caption {
  caption-side: top;
  padding-bottom: var(--sp-3);
  color: var(--ui-text-strong);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  text-align: left;
}
.c-specs th,
.c-specs td {
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--ui-border);
  text-align: left;
  vertical-align: top;
}
.c-specs th {
  width: 45%;
  color: var(--ui-text-muted);
  font-weight: var(--fw-regular);
}
.c-specs td { color: var(--ui-text-strong); font-weight: var(--fw-medium); }
.c-specs tr:last-child th,
.c-specs tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------
   12. ФОРМА
   ------------------------------------------------------------ */
.c-form {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  min-width: 0;
}
.c-form__row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.c-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.c-form__hint {
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
  line-height: 1.45;
  max-width: 34rem;
}
/* Любая ссылка внутри мелкого текста — самостоятельная тач-цель */
.c-form__hint a,
.c-form-card p a,
.u-small a,
.c-field__hint a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 2px;
}

.c-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}
.c-field__label {
  color: var(--ui-text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.c-field__label .c-req { color: var(--c-accent); }
.c-field__hint {
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.c-input,
.c-textarea {
  width: 100%;
  min-height: var(--ctrl-h);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ui-border-ctrl);
  border-radius: var(--r-2);
  background: var(--c-surface);
  color: var(--ui-text);
  font-size: var(--fs-body);
  line-height: 1.45;
  transition: border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out),
              background-color var(--dur-1) var(--ease-out);
}
.c-textarea {
  min-height: 132px;
  resize: vertical;
  padding-block: var(--sp-3);
}
.c-input::placeholder,
.c-textarea::placeholder { color: var(--c-text-3); opacity: 1; }
.c-input:hover,
.c-textarea:hover { border-color: var(--c-support); }
.c-input:focus-visible,
.c-textarea:focus-visible {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--sh-focus);
}
.c-input[aria-invalid="true"],
.c-textarea[aria-invalid="true"] {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(143, 18, 18, .12);
}
.c-field__error {
  display: none;
  color: var(--c-error);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1.4;
}
.c-field.has-error .c-field__error { display: block; }

/* Honeypot: спрятан от людей, виден ботам */
.c-honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Согласие */
.c-consent {
  display: flex;
  align-items: start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  color: var(--ui-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
  cursor: pointer;
  min-height: var(--tap);
}
/* Тач-цель: сам input визуально 20px, но кликабельна вся строка label
   (min-height 44px) + увеличенная область вокруг чекбокса. */
.c-consent input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--ui-border-ctrl);
  border-radius: var(--r-1);
  background: var(--c-surface);
  appearance: none;
  cursor: pointer;
  box-shadow: 0 0 0 12px transparent;   /* расширяет хит-область до 44px */
  transition: background-color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.c-consent input:checked {
  border-color: var(--c-primary);
  background: var(--c-primary);
  box-shadow: inset 0 0 0 2px var(--c-surface);
}
.c-consent input:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.c-consent a { color: var(--c-link); }

/* Состояния отправки (D8): idle → sending → sent | error */
.c-form__status {
  display: none;
  align-items: start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.c-form__status.is-visible { display: flex; }
.c-form__status--error {
  border-color: rgba(143, 18, 18, .32);
  background: #fdf3f3;
  color: var(--c-error);
}
.c-form__status--success {
  border-color: rgba(31, 107, 70, .28);
  background: #f1f8f4;
  color: var(--c-success);
}
.c-form.is-sending .c-btn--submit { pointer-events: none; opacity: .7; }
.c-form.is-sending .c-btn--submit::after {
  content: "";
  width: 14px; height: 14px;
  margin-left: var(--sp-2);
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--r-full);
  animation: c-spin 700ms linear infinite;
}
@keyframes c-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------
   13. БЛОКИ КОНТЕНТА
   ------------------------------------------------------------ */
.c-features {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.c-feature {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--ui-border);
  border-radius: var(--r-3);
  background: var(--c-surface);
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.c-feature:hover {
  border-color: var(--c-line-2);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.c-feature__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-2);
  background: var(--c-support-soft);
  color: var(--c-primary);
}
.c-feature__icon svg { width: 20px; height: 20px; }
.c-feature__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
}
.c-feature__text {
  color: var(--ui-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.c-steps {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  counter-reset: step;
}
.c-step {
  position: relative;
  padding-top: var(--sp-6);
  border-top: 2px solid var(--ui-border);
  counter-increment: step;
}
.c-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--sp-3);
  left: 0;
  color: var(--c-accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.c-step__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
}
.c-step__text {
  margin-top: var(--sp-2);
  color: var(--ui-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* FAQ */
.c-faq {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: var(--container-narrow);
}
.c-faq__item {
  border: 1px solid var(--ui-border);
  border-radius: var(--r-2);
  background: var(--c-surface);
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.c-faq__item:hover { border-color: var(--c-line-2); }
.c-faq__item:hover .c-faq__q { color: var(--c-accent); }
.c-faq__item[open] { box-shadow: var(--sh-1); }
.c-faq__q {
  transition: color var(--dur-2) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 56px;
  padding: var(--sp-3) var(--sp-5);
  color: var(--ui-text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
}
.c-faq__q::-webkit-details-marker { display: none; }
.c-faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-text-3);
  border-bottom: 2px solid var(--c-text-3);
  transform: rotate(45deg);
  transition: transform var(--dur-2) var(--ease-out);
}
.c-faq__item[open] .c-faq__q::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
.c-faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--ui-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: var(--measure);
}

/* CTA-полоса */
.c-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--sp-8), 4vw, var(--sp-14)) clamp(var(--sp-5), 3vw, var(--sp-12));
  border-radius: var(--r-4);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(89, 122, 155, .34), transparent 62%),
    linear-gradient(135deg, var(--c-secondary), var(--c-primary));
  color: var(--brand-white);
  isolation: isolate;
}
.c-cta::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-full);
  pointer-events: none;
}
.c-cta__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  z-index: var(--z-base);
}
.c-cta__text { max-width: 40rem; }
.c-cta__text > * + * { margin-top: var(--sp-3); }
.c-cta__title {
  color: var(--brand-white);
  font-size: var(--fs-h2);
  line-height: 1.16;
}
.c-cta__text p {
  color: rgba(255, 255, 255, .82);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.c-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.c-cta .c-btn--quiet {
  --_bg: var(--brand-white);
  --_fg: var(--c-secondary);
  --_bd: transparent;
}
.c-cta .c-btn--ghost {
  --_fg: var(--brand-white);
  --_bd: rgba(255, 255, 255, .42);
}
.c-cta .c-btn--ghost:hover {
  --_bg: rgba(255, 255, 255, .12);
  --_bd: var(--brand-white);
  --_fg: var(--brand-white);
}

/* ------------------------------------------------------------
   14. КОНТАКТЫ
   ------------------------------------------------------------ */
.c-contacts {
  display: grid;
  gap: clamp(var(--sp-6), 3vw, var(--sp-10));
  grid-template-columns: 1fr;
  align-items: start;
}
.c-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.c-contact-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--ui-border);
  align-items: start;
}
.c-contact-item:last-child { border-bottom: 0; }
.c-contact-item__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: var(--r-2);
  background: var(--c-support-soft);
  color: var(--c-primary);
}
.c-contact-item__icon svg { width: 18px; height: 18px; }
.c-contact-item__label {
  color: var(--ui-text-faint);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: var(--fw-semibold);
}
.c-contact-item__value {
  margin-top: var(--sp-1);
  color: var(--ui-text-strong);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}
.c-contact-item__value a {
  color: inherit;
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.c-contact-item__value a:hover { color: var(--c-accent); }
.c-contact-item__note {
  margin-top: var(--sp-1);
  color: var(--ui-text-muted);
  font-size: var(--fs-xs);
}

.c-form-card {
  padding: clamp(var(--sp-5), 3vw, var(--sp-8));
  border: 1px solid var(--ui-border);
  border-radius: var(--r-4);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}
.c-form-card__head { margin-bottom: var(--sp-5); }
.c-form-card__head > * + * { margin-top: var(--sp-2); }

/* ------------------------------------------------------------
   15. ФУТЕР
   ------------------------------------------------------------ */
.c-footer {
  margin-top: auto;
  padding-block: clamp(var(--sp-10), 4vw, var(--sp-16)) var(--sp-6);
  background: var(--c-secondary);
  color: var(--c-support-soft);
}
.c-footer a { color: inherit; text-decoration: none; }
.c-footer a:hover { color: var(--brand-white); }

.c-footer__top {
  display: grid;
  gap: clamp(var(--sp-6), 3vw, var(--sp-10));
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.c-footer__brand { max-width: 26rem; }
.c-footer__brand > * + * { margin-top: var(--sp-3); }
.c-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--tap);
  color: var(--brand-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  letter-spacing: -.02em;
}
.c-footer__logo .c-header__mark { background: rgba(255, 255, 255, .14); }
.c-footer__about {
  color: rgba(255, 255, 255, .68);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.c-footer__cols {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
.c-footer__title {
  margin-bottom: var(--sp-2);
  color: rgba(255, 255, 255, .52);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.c-footer__list { display: flex; flex-direction: column; }
.c-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: rgba(255, 255, 255, .82);
  font-size: var(--fs-sm);
  transition: color var(--dur-1) var(--ease-out);
}
.c-footer__list a:hover { color: var(--brand-white); }

.c-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  color: rgba(255, 255, 255, .52);
  font-size: var(--fs-xs);
}
.c-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}
.c-footer__legal a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .62);
}

/* ------------------------------------------------------------
   16. АНИМАЦИИ D11
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-4) var(--ease-out),
              transform var(--dur-4) var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translate3d(-22px, 0, 0); }
[data-reveal="left"].is-revealed { transform: none; }
[data-reveal="right"] { transform: translate3d(22px, 0, 0); }
[data-reveal="right"].is-revealed { transform: none; }
[data-reveal="scale"] { transform: scale(.97); }
[data-reveal="scale"].is-revealed { transform: none; }

/* Поочерёдное появление карточек: --reveal-delay задаёт JS */
.c-catalog__grid [data-reveal],
.l-grid [data-reveal] { --reveal-delay: 0; }

[data-parallax] {
  transform: translate3d(0, var(--_py, 0px), 0) scale(1.06);
  will-change: transform;
}

/* Плавная фильтрация: карточка «уходит» и «приходит» */
.is-filtering .c-card {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(.985);
}
.c-card.is-entering {
  animation: c-card-in var(--dur-3) var(--ease-out) both;
}
@keyframes c-card-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Счётчик результатов */
[data-count-to] { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------
   17. АДАПТИВ
   ------------------------------------------------------------ */

/* --- 768+ --------------------------------------------------- */
@media (min-width: 768px) {
  .c-form__row--2 { grid-template-columns: 1fr 1fr; }
  .c-footer__cols { grid-template-columns: repeat(3, 1fr); }
  .c-footer__top { grid-template-columns: 1fr; }
  .c-hero__badge { bottom: calc(-1 * var(--sp-4)); }
}

/* --- 1024+ -------------------------------------------------- */
@media (min-width: 1024px) {
  .c-hero__inner { grid-template-columns: 1.05fr .95fr; }
  .c-hero__media { padding-left: var(--sp-4); }

  .c-catalog__layout {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: var(--sp-8);
  }
  .c-filters__toggle { display: none; }
  .c-filters__panel { display: flex !important; }
  .c-filters.is-collapsed .c-filters__panel { display: flex !important; }

  .c-product { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .c-contacts { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .c-footer__top { grid-template-columns: 1.15fr 1.85fr; }
  .c-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* --- 1440+ -------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
  .c-catalog__layout { grid-template-columns: 288px minmax(0, 1fr); }
  .c-hero__inner { grid-template-columns: 1fr .92fr; }
}

/* --- 1024–1199: хедер без телефона, плотнее навигация -------- */
@media (max-width: 1199px) {
  .c-header__phone { display: none; }
  .c-nav__link { padding-inline: var(--sp-2); }
  .c-header__inner { gap: var(--sp-4); }
}

/* --- < 1024: мобильная навигация и фильтры ------------------ */
@media (max-width: 1023px) {
  .c-header__nav,
  .c-header__phone { display: none; }
  .c-header__cta { display: none; }
  .c-header__burger { display: inline-grid; }
  .c-header__actions { margin-inline-start: auto; }

  .c-filters { position: static; }
  .c-filters__toggle { display: flex; }
  .c-filters__panel {
    margin-top: var(--sp-2);
    padding: var(--sp-4);
  }
  .c-filters__panel.is-collapsed { display: none; }

  .c-toolbar { top: calc(var(--header-h) - 1px); }
  .c-toolbar__count { width: 100%; margin-inline-end: 0; }
  .c-toolbar__right { margin-inline-start: auto; }
}

/* --- < 768 -------------------------------------------------- */
@media (max-width: 767px) {
  .c-hero { padding-block: var(--sp-8) var(--sp-10); }
  .c-hero__actions .c-btn { flex: 1 1 100%; }
  .c-hero__figure { aspect-ratio: 3 / 2; }
  .c-hero__badge {
    position: static;
    margin-top: var(--sp-4);
    max-width: none;
    box-shadow: var(--sh-1);
  }

  .c-card__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
  .c-card__foot { flex-direction: column; align-items: stretch; }
  .c-card__cta { width: 100%; }

  .c-toolbar { gap: var(--sp-2); }
  .c-toolbar__right { width: 100%; }
  .c-toolbar__right .c-select { flex: 1 1 auto; }
  .c-toolbar__right .c-select select { width: 100%; }

  .c-specs th { width: 50%; }
  .c-form__foot .c-btn { width: 100%; }
  .c-cta__inner { flex-direction: column; align-items: stretch; }
  .c-cta__actions .c-btn { flex: 1 1 100%; }
  .c-footer__bottom { flex-direction: column; align-items: flex-start; }
  .c-breadcrumbs__list { font-size: 11px; }
}

/* --- < 420: самые узкие ------------------------------------- */
@media (max-width: 419px) {
  .c-header__name span { display: none; }
  .c-card__flags .c-badge { font-size: 11px; padding-inline: var(--sp-2); }
  .c-gallery__thumbs { grid-auto-columns: 64px; }
}

/* ------------------------------------------------------------
   18. ДОСТУПНОСТЬ: уменьшенное движение (D9)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-parallax] { transform: none !important; }
  .c-card--lift:hover,
  .c-feature:hover { transform: none; }
}

/* ------------------------------------------------------------
   19. ПЕЧАТЬ
   ------------------------------------------------------------ */
@media print {
  .c-header, .c-footer, .c-progress, .c-toolbar, .c-filters { display: none !important; }
  body { background: #fff; color: #000; }
  .c-card, .c-price-box, .c-form-card { box-shadow: none; border-color: #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; }
}
