/* ============================================================
   BOLZEN.RU — дизайн-система
   Стиль: Trust & Authority / Enterprise Gateway
   Шрифты: Manrope (заголовки) + Inter (текст), кириллица
   ============================================================ */

:root {
  /* Палитра v3: только белый, чёрный, жёлтый логотипа и нейтральный светло-серый.
     Без тёплых/приглушённых оттенков. */
  --ink: #000000;            /* основной текст, тёмные секции — чёрный */
  --ink-2: #3a3a3a;          /* вторичный текст (нейтральный серый) */
  --ink-3: #707070;          /* приглушённый текст (контраст ≥4.5:1 на белом) */
  --accent: #000000;         /* ссылки, киккеры, иконки — чёрный */
  --accent-hover: #000000;
  --accent-soft: #fbe117;    /* фон активных чипов/киккеров — жёлтый логотипа */
  --brand-yellow: #fbe117;   /* фирменный жёлтый логотипа (CTA) */
  --brand-yellow-hover: #f2d900;
  --bg: #ffffff;
  --bg-soft: #f3f3f3;        /* фон чередующихся секций — светло-серый */
  --bg-dark: #000000;        /* тёмные секции (hero, stats, футер) — чёрный */
  --border: #e3e3e3;
  --white: #ffffff;

  /* Бейджи брендов — монохром (фирменные цвета брендов вне палитры сайта) */
  --brand-rgn: #000000;
  --brand-meite: #000000;
  --brand-byemax: #000000;

  /* Типографика */
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Геометрия */
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px -8px rgba(0,0,0,.14);
  --shadow-lg: 0 16px 48px -12px rgba(0,0,0,.22);

  --transition: 200ms ease;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Секции */
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #ffffff; }
.section--dark h2 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section--dark .section__kicker { color: var(--brand-yellow); }
.section__sub { color: var(--ink-3); font-size: 1.05rem; }
.section--dark .section__sub { color: #bdbdbd; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn--primary { background: var(--brand-yellow); color: var(--ink); }
.btn--primary:hover { background: var(--brand-yellow-hover); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #333333; color: var(--white); }
.btn--outline { background: transparent; color: var(--ink); border-color: #cfcfcf; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: relative; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__in {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}
.logo { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.1; flex: none; }
.logo__img { height: 44px; width: auto; flex: none; }
.logo__tag { font-size: .6rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* Поиск в шапке: отдельная широкая строка под основной */
.header__bar { border-top: 1px solid var(--border); padding: 10px 0; }
.header__search { position: relative; width: 100%; }
.header__search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
}
.header__search input {
  width: 100%; padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg-soft);
  transition: border-color var(--transition), background var(--transition);
}
.header__search input:focus { outline: none; border-color: var(--accent); background: var(--white); }

/* Живые подсказки */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 440px; overflow-y: auto;
  display: none;
}
.suggest.is-open { display: block; }
.suggest__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  padding: 8px 14px; cursor: pointer; color: var(--ink);
}
.suggest__item:hover, .suggest__item.is-active { background: var(--bg-soft); color: var(--ink); }
.suggest__thumb {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--bg-soft);
  background: var(--white);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.suggest__thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.suggest__name { min-width: 0; }
.suggest__name b { display: block; font-size: .88rem; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__name span { font-size: .76rem; color: var(--ink-3); }
.suggest__all {
  display: block; padding: 11px 14px;
  border-top: 1px solid var(--border);
  font-weight: 700; font-size: .88rem; color: var(--accent); text-align: center;
}
.suggest__all:hover, .suggest__all.is-active { background: var(--accent-soft); color: var(--accent-hover); }
.suggest__empty { padding: 14px; color: var(--ink-3); font-size: .88rem; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 9px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: .92rem;
  white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.header__cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}

@media (max-width: 1300px) {
  .header__cta .btn--outline { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--bg-dark); color: #ffffff; overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding: 72px 0 64px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(251, 225, 23, .12);
  border: 1px solid rgba(251, 225, 23, .5);
  color: #fbe117;
  font-size: .82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero__sub { font-size: 1.1rem; color: #bdbdbd; max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.hero__brands { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__brands-label { font-size: .8rem; color: #9a9a9a; margin-right: 4px; }
.hero__brand-chip {
  background: var(--white); border-radius: 10px;
  padding: 8px 14px; height: 44px;
  display: flex; align-items: center;
}
.hero__brand-chip img { max-height: 26px; width: auto; }
.hero__visual { position: relative; }
.hero__plate {
  background: linear-gradient(160deg, #ffffff 0%, #f3f3f3 100%);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}
.hero__plate img { margin: 0 auto; max-height: 400px; width: auto; }
.hero__stat {
  position: absolute;
  background: var(--white); color: var(--ink);
  border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 10px 16px;
  font-size: .8rem; line-height: 1.3;
}
.hero__stat b { font-family: var(--font-head); font-size: 1.05rem; display: block; }
.hero__stat--tl { top: 18px; left: -18px; }
.hero__stat--br { bottom: 22px; right: -14px; }

/* ---------- УТП-плашки (trust bar) ---------- */
.trust { border-bottom: 1px solid var(--border); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 36px 0;
}
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.trust__item b { display: block; font-family: var(--font-head); font-size: .95rem; }
.trust__item span { font-size: .85rem; color: var(--ink-3); }

/* ---------- Карточки брендов ---------- */
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.brand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #cfcfcf; }
.brand-card__photo {
  background: linear-gradient(160deg, #fafafa, #f3f3f3);
  display: flex; align-items: center; justify-content: center;
  height: 230px; padding: 20px;
}
.brand-card__photo img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.brand-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.brand-card__logo { height: 34px; margin-bottom: 16px; display: flex; align-items: center; }
.brand-card__logo img { max-height: 100%; width: auto; border-radius: 4px; }
.brand-card__count {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.brand-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.brand-card .btn { align-self: flex-start; }

/* ---------- Категорийные плитки ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-tile {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--ink);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.cat-tile:hover { box-shadow: var(--shadow-md); border-color: #cfcfcf; transform: translateY(-2px); color: var(--ink); }
.cat-tile__img {
  flex: none; width: 76px; height: 76px; border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cat-tile__img img { max-width: 84%; max-height: 84%; mix-blend-mode: multiply; }
.cat-tile b { font-family: var(--font-head); display: block; font-size: .98rem; }
.cat-tile span { font-size: .82rem; color: var(--ink-3); }

/* ---------- Аудитории (3 сценария) ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
}
.aud-card--hl { border-top: 4px solid var(--accent); }
.aud-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.aud-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }

/* ---------- Цифры ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--white); line-height: 1.1;
}
.stat span { font-size: .9rem; color: #bdbdbd; }

/* ---------- Как купить (шаги) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  color: #d9d9d9; display: block; margin-bottom: 10px;
}
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- Форма дилера ---------- */
.dealer { background: var(--bg-dark); color: #ffffff; border-radius: 24px; overflow: hidden; }
.dealer__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; }
.dealer h2 { color: var(--white); }
.dealer__points { list-style: none; padding: 0; margin: 20px 0 0; }
.dealer__points li {
  display: flex; gap: 10px; align-items: flex-start;
  color: #bdbdbd; font-size: .95rem; margin-bottom: 12px;
}
.dealer__points svg { flex: none; color: #fbe117; margin-top: 4px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block; font-size: .8rem; font-weight: 600;
  margin-bottom: 6px; color: inherit;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--white);
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form__note { font-size: .78rem; color: #9a9a9a; margin: 0; }
.form__ok {
  display: none;
  background: rgba(251, 225, 23, .12); border: 1px solid rgba(251, 225, 23, .5);
  color: #fbe117; border-radius: 10px; padding: 14px 18px; font-size: .95rem;
}
.form.is-sent .form__ok { display: block; }
.form.is-sent .form__fields { display: none; }

/* ---------- Документы / поддержка ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.doc-card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.doc-card p { color: var(--ink-2); font-size: .92rem; margin: 0; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contacts__list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts__list svg { flex: none; color: var(--accent); margin-top: 3px; }
.contacts__list b { font-family: var(--font-head); display: block; font-size: .95rem; }
.contacts__list a, .contacts__list span { color: var(--ink-2); font-size: 1rem; }
.contacts__phone { font-family: var(--font-head); font-size: 1.35rem !important; font-weight: 700; color: var(--ink) !important; }

/* ---------- Футер ---------- */
.footer { background: var(--bg-dark); color: #bdbdbd; padding: 56px 0 28px; font-size: .92rem; }
.footer a { color: #d4d4d4; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer .logo { align-items: flex-start; }
.footer .logo__tag { color: #bdbdbd; }
.footer__col h4 { color: var(--white); font-size: .9rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer__note { margin: 28px 0 0; font-size: .8rem; color: #9a9a9a; max-width: 900px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: .8rem; color: #9a9a9a;
}

/* ============================================================
   КАТАЛОГ
   ============================================================ */

/* Хлебные крошки */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: .82rem; color: var(--ink-3);
  padding: 18px 0;
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li { display: flex; gap: 6px; align-items: center; list-style: none; }
.breadcrumbs ol { display: contents; margin: 0; padding: 0; }
.breadcrumbs .sep { color: #bdbdbd; }

/* Разметка каталога: сайдбар + сетка */
.catalog-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px;
  align-items: start; padding-bottom: 72px;
}
.filters { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 26px; }
.filters__group h4 {
  font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.filters__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.filters__list a, .filters__list button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 8px; border: none; background: none;
  font: inherit; font-size: .92rem; color: var(--ink-2); cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.filters__list a:hover, .filters__list button:hover { background: var(--bg-soft); color: var(--ink); }
.filters__list .is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filters__count { font-size: .75rem; color: var(--ink-3); }
.filters__brand-logo { height: 18px; width: auto; border-radius: 3px; }

/* Панель инструментов каталога */
.catalog-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.catalog-toolbar__found { font-size: .9rem; color: var(--ink-3); margin-left: auto; }
.search-input {
  flex: 1; min-width: 220px; max-width: 380px;
  padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; font-size: .95rem;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.chip {
  padding: 8px 14px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all var(--transition);
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Сетка и карточка товара */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cfcfcf; }
.product-card__photo {
  height: 200px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; border-bottom: 1px solid var(--bg-soft);
}
.product-card__photo img { max-height: 100%; width: auto; object-fit: contain; }
.product-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__meta { display: flex; gap: 8px; align-items: center; }
.badge {
  display: inline-block; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 5px; color: var(--white);
}
.badge--rgn { background: var(--brand-rgn); }
.badge--meite { background: var(--brand-meite); }
.badge--byemax { background: var(--brand-byemax); }
.product-card__code { font-size: .78rem; color: var(--ink-3); }
.product-card__title {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.35;
  color: var(--ink); flex: 1; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
a.product-card__link { color: inherit; }
.product-card__actions { display: flex; gap: 8px; margin-top: 6px; }
.product-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.product-card__price b { font-family: var(--font-head); font-size: 1.05rem; }
.product-card__price span { font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; }

/* Пагинация/показать ещё */
.catalog-more { text-align: center; margin-top: 36px; }

/* ============================================================
   СТРАНИЦА ТОВАРА
   ============================================================ */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.gallery__main {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  min-height: 420px; padding: 32px;
}
.gallery__main img { max-height: 420px; width: auto; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb {
  width: 76px; height: 76px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--white); cursor: pointer; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.gallery__thumb img { max-height: 100%; object-fit: contain; }
.gallery__thumb:hover, .gallery__thumb.is-active { border-color: var(--accent); }

.pp__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pp__code { font-size: .85rem; color: var(--ink-3); }
.pp__title { margin-bottom: 16px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pp__desc { color: var(--ink-2); }
.pp__desc p { margin-bottom: .8em; }

/* CTA-панель вместо цены */
.pp__cta {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin: 24px 0;
}
.pp__cta-note { font-size: .85rem; color: var(--ink-3); margin: 0 0 14px; }
.pp__cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Таблица характеристик */
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec caption {
  text-align: left; font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; margin-bottom: 14px;
}
.spec tr { border-bottom: 1px solid var(--border); }
.spec th {
  text-align: left; font-weight: 500; color: var(--ink-3);
  padding: 10px 16px 10px 0; width: 55%; vertical-align: top;
}
.spec td { padding: 10px 0; color: var(--ink); font-weight: 500; }

.pp__specs { grid-column: 1 / -1; max-width: 760px; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1023px) {
  .hero__in { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .hero__plate img { max-height: 300px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid, .aud-grid, .docs-grid, .steps { grid-template-columns: 1fr 1fr; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .dealer__in { grid-template-columns: 1fr; padding: 40px 32px; }
  .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-page { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .header__cta .btn--outline { display: none; }
}
@media (max-width: 767px) {
  .section { padding: 52px 0; }
  .brands-grid, .aud-grid, .docs-grid, .steps, .cats-grid, .form__row { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 18px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card__photo { height: 150px; }
  .hero__stat--tl { left: 8px; }
  .hero__stat--br { right: 8px; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
  }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 479px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* --- Дополнения для страниц каталога и товара --- */
.section--page { padding-top: 36px; }
.section--page h1 { font-family: 'Manrope', sans-serif; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.product-card__nophoto { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-3); font-size: 13px; }
.catalog-empty { grid-column: 1 / -1; color: var(--ink-3); padding: 40px 0; text-align: center; }

/* ============================================================
   СТРАНИЦА ТОВАРА v2: покупка на маркетплейсах + цельный блок
   описания и характеристик
   ============================================================ */
.buy-panel {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-top: 24px;
}
.buy-panel__title {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  margin: 0 0 12px;
}
.buy-panel__row { display: flex; gap: 10px; flex-wrap: wrap; }
.docs-panel { margin-top: 16px; }

.buy-panel__price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.buy-panel__price b { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; }
.buy-panel__price span { font-size: .8rem; color: var(--ink-3); }
.buy-panel__note { font-size: .82rem; color: var(--ink-3); margin: 14px 0 0; }
.buy-panel__note a { color: var(--accent); }
.buy-panel__divider {
  border: 0; border-top: 1px solid var(--border); margin: 16px 0;
}
.btn--market {
  background: var(--white); color: var(--ink);
  border-color: var(--border);
  padding: 10px 16px; font-size: .88rem;
}
.btn--market:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--market svg { color: var(--accent); }

/* Цельный блок «описание + характеристики» */
.pp-details {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 8px;
}
.pp-details__col { padding: 32px 36px; min-width: 0; }
.pp-details__col + .pp-details__col { border-left: 1px solid var(--border); background: var(--bg-soft); }
.pp-details h2 {
  font-size: 1.15rem; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.pp-details h2::before {
  content: ""; width: 22px; height: 4px; border-radius: 2px;
  background: var(--brand-yellow);
}
.pp-details .spec caption { display: none; }
.pp__desc ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.pp__desc li {
  position: relative; padding-left: 24px; margin-bottom: 8px;
  color: var(--ink-2); font-size: .95rem;
}
.pp__desc li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand-yellow);
}
.pp__desc h3 { font-size: 1rem; margin: 1.2em 0 .6em; }

/* Ручные описания (data/descriptions): мини-факты и акцентная плашка */
.desc-facts { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.desc-facts > div {
  flex: 1; min-width: 110px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
}
.desc-facts b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.desc-facts span { font-size: .78rem; color: var(--ink-3); }
.desc-note {
  border-left: 4px solid var(--brand-yellow); background: var(--bg-soft);
  border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 18px 0;
  font-size: .92rem; color: var(--ink-2);
}

@media (max-width: 1023px) {
  .pp-details { grid-template-columns: 1fr; }
  .pp-details__col + .pp-details__col { border-left: 0; border-top: 1px solid var(--border); }
  .pp-details__col { padding: 26px 22px; }
}

/* ============================================================
   ИНТЕРАКТИВНАЯ ДЕТАЛИРОВКА (взрыв-схема с запчастями)
   ============================================================ */
.scheme { grid-column: 1 / -1; margin-top: 8px; }
.scheme__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.scheme__head h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.scheme__head h2::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--brand-yellow); }
.scheme__downloads { display: flex; gap: 8px; flex-wrap: wrap; }

.scheme-layout {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--white);
}
.scheme-viewer {
  position: relative; overflow: hidden; background: var(--white);
  border-right: 1px solid var(--border);
  height: 820px; touch-action: none; cursor: grab;
}
.scheme-viewer.is-dragging { cursor: grabbing; }
.scheme-viewer__inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; width: 100%; }
.scheme-viewer__inner img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.scheme-zoom {
  position: absolute; right: 12px; top: 12px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
}
.scheme-zoom button {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--white); color: var(--ink);
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}
.scheme-zoom button:hover { background: var(--bg-soft); }
.scheme-hint {
  position: absolute; left: 12px; bottom: 10px; z-index: 5;
  font-size: .75rem; color: var(--ink-3);
  background: rgba(255,255,255,.85); border-radius: 6px; padding: 4px 10px;
}

/* Маркер — своя цифра поверх печатной (белая подложка её закрывает).
   Размер шрифта задаёт scheme.js через --mk: цифры совпадают с чертёжными.
   Наведение/выбор — жирный; остальные номера при этом сереют. */
.scheme-marker {
  position: absolute; z-index: 4;
  min-width: 1.4em; height: 1.15em;
  margin: -0.58em 0 0 -0.7em;
  border: none; border-radius: .2em;
  background: var(--white); color: var(--ink);
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--mk, 13px); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0 .1em;
  transition: color var(--transition), font-weight var(--transition);
}
.scheme-marker:hover, .scheme-marker.is-hot { font-weight: 800; }
.scheme-marker.is-active { font-weight: 800; z-index: 6; }
/* при наведении или выборе остальные позиции приглушаются */
.scheme-viewer__inner.has-focus .scheme-marker:not(.is-hot):not(.is-active) { color: #b3b3b3; }
.scheme-marker:focus-visible { outline: 2px solid var(--accent); }

.scheme-parts { display: flex; flex-direction: column; min-width: 0; height: 820px; }
.scheme-parts__toolbar { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.scheme-parts__toolbar .search-input { max-width: none; width: 100%; }
.scheme-parts__list { overflow-y: auto; flex: 1; }
.part-row {
  display: grid; grid-template-columns: 40px 42px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 16px; border-bottom: 1px solid var(--bg-soft);
  cursor: pointer; transition: background var(--transition);
}
.part-row__thumb {
  width: 42px; height: 42px; border-radius: 8px;
  border: 1px solid var(--bg-soft); background: var(--white);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.part-row__thumb img { max-width: 92%; max-height: 92%; object-fit: contain; }
.part-row:hover { background: var(--bg-soft); }
.part-row.is-active { background: var(--accent-soft); }
.part-row__pos {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-soft); border: 1.5px solid var(--border);
  font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.part-row.is-active .part-row__pos { background: var(--brand-yellow); border-color: var(--ink); }
.part-row__name { min-width: 0; }
.part-row__name b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.part-row__name span { font-size: .78rem; color: var(--ink-3); }
.part-row__buy {
  font-size: .82rem; font-weight: 700; color: var(--accent);
  white-space: nowrap; padding: 6px 10px; border-radius: 8px;
}
.part-row__buy:hover { background: var(--accent-soft); color: var(--accent-hover); }
.scheme-parts__empty { padding: 24px 18px; color: var(--ink-3); font-size: .9rem; display: none; }

@media (max-width: 1023px) {
  .scheme-layout { grid-template-columns: 1fr; }
  .scheme-viewer { border-right: 0; border-bottom: 1px solid var(--border); height: 480px; }
  .scheme-parts { height: 420px; }
}

/* ============================================================
   ШАПКА v3 (по образцу ognist.ru): топбар + каталог-кнопка +
   широкий поиск + строка категорий + мегаменю
   ============================================================ */
.topbar { background: var(--bg-dark); font-size: .8rem; color: #bdbdbd; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar__nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.topbar a { color: #d4d4d4; }
.topbar a:hover { color: var(--white); }
.topbar__phone { font-weight: 700; color: var(--white) !important; white-space: nowrap; }

.catalog-btn {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  background: var(--brand-yellow); color: var(--ink);
  border: none; border-radius: 10px; padding: 12px 18px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.catalog-btn:hover { background: var(--brand-yellow-hover); }
.catalog-btn__arrow { transition: transform var(--transition); }
.catalog-btn.is-open .catalog-btn__arrow { transform: rotate(180deg); }

.header { position: relative; }
.header__in { gap: 16px; }
.header__in .header__search { flex: 1; min-width: 0; }

.header__strip { border-top: 1px solid var(--border); }
.header__strip-in {
  display: flex; gap: 2px; overflow-x: auto;
  scrollbar-width: none;
}
.header__strip-in::-webkit-scrollbar { display: none; }
.header__strip a {
  padding: 10px 10px; border-radius: 8px;
  font-size: .86rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.header__strip a:hover { color: var(--ink); background: var(--bg-soft); }

/* Мегаменю */
.megamenu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 55;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: none;
  max-height: calc(100vh - 160px); overflow-y: auto;
}
.megamenu.is-open { display: block; }
.megamenu__brands {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 18px 20px 4px;
}
.megamenu__brands a {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600; font-size: .88rem; color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.megamenu__brands a:hover { border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.megamenu__brands img { height: 20px; width: auto; border-radius: 3px; }
.megamenu__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px;
  padding: 22px 20px 34px;
}
.mm-group__title {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: .97rem; color: var(--ink);
  margin-bottom: 10px;
}
.mm-group__title span { color: var(--ink-3); font-weight: 600; font-size: .78rem; }
.mm-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.mm-group ul a { color: var(--ink-2); font-size: .9rem; }
.mm-group ul a:hover { color: var(--accent); }
.mm-group__more { font-weight: 600; color: var(--accent) !important; }
.megamenu__links { display: none; border-top: 1px solid var(--border); padding: 12px 20px 18px; }
.megamenu__links a { display: block; padding: 9px 0; color: var(--ink-2); font-weight: 500; }

@media (max-width: 1023px) {
  .megamenu__grid { grid-template-columns: 1fr 1fr; }
  .header__in .btn--dealer { display: none; }
}
@media (max-width: 767px) {
  .topbar__nav { display: none; }
  .topbar__in { justify-content: center; text-align: center; }
  .header__in { flex-wrap: wrap; padding: 10px 0; }
  .header__in .header__search { order: 10; flex-basis: 100%; }
  .catalog-btn { margin-left: auto; padding: 10px 14px; }
  .megamenu__grid { grid-template-columns: 1fr; gap: 20px; }
  .megamenu__links { display: block; }
}

/* Hero: плитки направлений каталога вместо фото одной модели */
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile {
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(160deg, #ffffff 0%, #f3f3f3 100%);
  border-radius: 16px; padding: 16px 16px 14px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.hero-tile__img {
  height: 104px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.hero-tile__img img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.hero-tile b { font-family: var(--font-head); font-size: .92rem; line-height: 1.25; }
.hero-tile__count { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 1023px) {
  .hero-tiles { max-width: 560px; }
  .hero-tile__img { height: 88px; }
}
@media (max-width: 479px) {
  .hero-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-tile { padding: 12px; }
  .hero-tile__img { height: 72px; }
}

/* Каталог без сайдбара: теги-фильтры под заголовком */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips-row--brands { margin-bottom: 10px; }
.chips-row .chip { display: inline-flex; align-items: center; gap: 6px; }
.chip__count { font-size: .75rem; opacity: .65; font-weight: 500; }
.chip--back { border-style: dashed; color: var(--accent); }
.chip--back:hover { border-color: var(--accent); }
.chip img { height: 15px; width: auto; border-radius: 2px; }
.catalog-single { padding-bottom: 72px; margin-top: 14px; }
.product-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .product-grid { grid-template-columns: 1fr; } }

/* Внутренние страницы (О компании, Дилерам, Контакты, Оплата и доставка) */
.page-h2 { margin: 48px 0 22px; font-size: 1.4rem; }
.page-note { font-size: .85rem; color: var(--ink-3); margin-top: 14px; }
.about-stats {
  border-radius: var(--radius); padding: 36px 32px; margin-top: 8px;
  background: var(--bg-dark);
}
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--bg-dark); color: #bdbdbd;
  border-radius: var(--radius); padding: 36px 40px; margin-top: 56px;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: 1.35rem; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.doc-card--hl { border-top: 4px solid var(--brand-yellow); }
.docs-grid--cities { grid-template-columns: repeat(3, 1fr); }
.contact-lines { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.contact-line {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; color: var(--ink);
}
.contact-line svg { color: var(--accent); flex: none; }
.contact-line b { font-family: var(--font-head); display: block; font-size: 1.02rem; }
.contact-line small { color: var(--ink-3); font-size: .76rem; }
a.contact-line:hover { border-color: var(--ink-3); color: var(--ink); }
.section--page .spec th { width: 45%; }
@media (max-width: 1023px) { .docs-grid--cities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .docs-grid--cities { grid-template-columns: 1fr; } .cta-band { padding: 28px 24px; } }
.section--page .dealer { margin-top: 48px; }
.part-row__buy--na { color: var(--ink-3); font-weight: 500; font-size: .8rem; white-space: nowrap; }

/* «Прожектор» на схеме: осветляем всё, кроме выбранной детали */
.scheme-dim {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3;
  opacity: 0; transition: opacity 250ms ease;
}
.scheme-dim.is-on { opacity: 1; }
.scheme-dim path { fill: rgba(255, 255, 255, .82); }
.scheme-dim__outline {
  fill: none; stroke: var(--brand-yellow);
  stroke-width: 4; stroke-linejoin: round;
}

/* Векторная схема: подсветка деталей группами */
.scheme-viewer__inner svg.scheme-svg { width: 100%; height: auto; display: block; }
.scheme-svg g.pt, .scheme-svg g.base { transition: opacity 250ms ease; }
.scheme-svg.has-sel g.pt:not(.is-sel), .scheme-svg.has-sel g.base { opacity: .13; }
.scheme-svg g.pt.is-hot { filter: drop-shadow(0 0 2px rgba(251, 225, 23, .95)); }
.scheme-svg g.pt.is-sel { filter: drop-shadow(0 0 3px rgba(251, 225, 23, .95)); }

/* Всплывающая карточка запчасти на схеме */
.part-pop {
  position: absolute; z-index: 9; width: 216px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px; display: none;
  flex-direction: column; gap: 8px;
}
.part-pop.is-open { display: flex; }
.part-pop__close {
  position: absolute; top: 6px; right: 8px;
  border: none; background: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--ink-3); padding: 4px;
}
.part-pop__close:hover { color: var(--ink); }
.part-pop__img {
  height: 168px; border-radius: 10px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.part-pop__img img { max-width: 92%; max-height: 92%; object-fit: contain; }
.part-pop__img--empty { color: var(--ink-3); font-size: .82rem; }
.part-pop b { font-family: var(--font-head); font-size: .9rem; line-height: 1.3; }
.part-pop__sub { font-size: .75rem; color: var(--ink-3); line-height: 1.35; }
.part-pop .btn { width: 100%; }

/* Линия-выноска от номера к карточке запчасти */
.part-conn {
  position: absolute; inset: 0; z-index: 8;
  pointer-events: none; display: none;
}
.part-conn.is-on { display: block; }
.part-conn__halo { stroke: rgba(255, 255, 255, .95); stroke-width: 8; stroke-linecap: round; }
.part-conn__line {
  stroke: var(--brand-yellow-hover); stroke-width: 3.5;
  stroke-linecap: round; stroke-dasharray: 8 6;
}
.part-conn__dot { fill: var(--brand-yellow); stroke: var(--ink); stroke-width: 2; }
.part-conn__badge { fill: var(--brand-yellow); stroke: var(--ink); stroke-width: 2; }
.part-conn__num { font-family: var(--font-head), sans-serif; font-weight: 800; fill: var(--ink); }

/* ---------- Правовые страницы (политика, соглашение) и HTML-блоки ---------- */
.page-html { max-width: 860px; font-size: .98rem; line-height: 1.65; }
.page-html h2 { margin: 36px 0 14px; font-size: 1.25rem; }
.page-html h3 { margin: 24px 0 10px; font-size: 1.05rem; }
.page-html p { margin: 0 0 12px; }
.page-html ul, .page-html ol { margin: 0 0 14px; padding-left: 22px; }
.page-html li { margin-bottom: 6px; }
.page-html a { color: var(--ink); font-weight: 600; }
.page-html a:hover { color: var(--ink-3); }
.legal-meta { color: var(--ink-3); font-size: .85rem; margin: -8px 0 20px !important; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .92rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-soft); font-weight: 600; width: 36%; }
.legal-table--wide th { width: auto; }
.legal-table--wide thead th { font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 720px) {
  .legal-table--wide thead { display: none; }
  .legal-table--wide tr { display: block; border: 1px solid var(--border); margin-bottom: 12px; }
  .legal-table--wide td { display: block; border: 0; border-bottom: 1px solid var(--border); }
  .legal-table--wide td:last-child { border-bottom: 0; }
}
.form__note a { color: inherit; text-decoration: underline; text-decoration-color: #bdbdbd; }
.form__note a:hover { color: var(--ink); }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: #9a9a9a; }
.footer__legal a:hover { color: var(--white); }

/* ---------- Страницы разделов каталога и марок (catalog/<slug>/, brands/<code>/) ---------- */
.section--category .section__head--category { max-width: 860px; margin-bottom: 24px; }
.h1-page { font-size: .6em; font-weight: 600; color: var(--ink-3); }
.cats-grid--page { margin: 8px 0 28px; }
.cats-grid--page .cat-tile__img { width: 72px; height: 72px; flex: 0 0 72px; }
.catalog-single--static { margin-top: 20px; }
.section--category .chips-row--brands { margin-bottom: 18px; }
.chips-row--brands a.chip { text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pagination__item {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 600;
}
.pagination__item:hover { border-color: var(--ink-3); }
.pagination__item.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination__gap { align-self: center; color: var(--ink-3); padding: 0 4px; }
.seo-text { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
@media (max-width: 767px) { .cats-grid--page { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.section--404 { padding-bottom: 72px; }
.notfound { max-width: 720px; margin-bottom: 40px; }
.notfound__code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(64px, 12vw, 120px); line-height: 1; color: var(--brand-yellow); letter-spacing: -0.04em; margin-bottom: 8px; }
.notfound__search { display: flex; gap: 10px; margin: 24px 0 16px; }
.notfound__search .search-input { flex: 1; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .notfound__search { flex-direction: column; } }

/* ---------- Наличие (остатки из фида) ---------- */
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #bdbdbd; }
.avail--in { color: #1a7f37; }
.avail--in::before { background: #2da44e; }
.avail--soon { color: #8a6d00; }
.avail--soon::before { background: var(--brand-yellow); }
.product-card .avail { margin-top: 2px; }
.stock { margin: 0 0 16px; }
.stock .avail { font-size: .9rem; }
.stock__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.stock__list li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.stock__list b.is-in { color: #1a7f37; }
.stock__list b.is-out { color: var(--ink-3); font-weight: 500; }
.catalog-toolbar__check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.catalog-toolbar__check input { accent-color: #000; width: 16px; height: 16px; }


/* ---------- Заявка на оптовую поставку («корзина») ---------- */
.btn--cart { gap: 6px; }
.btn--cart svg { width: 16px; height: 16px; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand-yellow); color: #000; font-size: .72rem; font-weight: 800; }
.is-empty .cart-count { background: #e3e3e3; color: var(--ink-3); }
[data-add-cart].is-added { background: #000; color: var(--white); border-color: #000; }
.product-card__actions .btn--sm { flex: 1; justify-content: center; }
.cart-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #000; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; z-index: 90;
  box-shadow: var(--shadow-md); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast a { color: var(--brand-yellow); font-weight: 600; margin-left: 6px; }

/* страница order.html */
.section--order { padding-bottom: 80px; }   /* фон белый, как на остальных страницах; карточки отделены рамками */
.section--order .breadcrumbs { padding-top: 0; }
.order-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; margin-bottom: 28px; }
.order-head .section__head { margin-bottom: 0; }
.order-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.order-steps li { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px 8px 8px; font-size: .86rem; font-weight: 600; color: var(--ink-3); }
.order-steps li span { width: 26px; height: 26px; border-radius: 50%; background: #e9e9e9; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; }
.order-steps li:first-child, .order-steps.is-step2 li:nth-child(2), .order-steps.is-step3 li { color: var(--ink); border-color: #000; }
.order-steps li:first-child span, .order-steps.is-step2 li:nth-child(2) span, .order-steps.is-step3 li span { background: var(--brand-yellow); color: #000; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.order-layout[hidden] { display: none !important; }
.order-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.order-form[hidden] { display: none !important; }
.order-card { background: var(--white); border: 1px solid #d9d9d9; box-shadow: 0 1px 2px rgba(0,0,0,.03); border-radius: var(--radius); padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.order-card[hidden] { display: none !important; }
.order-card__head { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; }
.order-card__head h2 { margin: 0; font-size: 1.15rem; }
.order-card__num { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-yellow); color: #000; font-family: var(--font-head); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.order-form .field { display: flex; flex-direction: column; gap: 6px; }
.order-form .field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.order-form .field input, .order-form .field select, .order-form .field textarea {
  width: 100%; border: 1px solid #d6d6d6; border-radius: 10px; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--white);
}
.order-form .field input:focus, .order-form .field select:focus, .order-form .field textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(251, 225, 23, .35); }
.order-form .field input::placeholder, .order-form .field textarea::placeholder { color: #a8a8a8; }
.order-form .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__hint { font-size: .78rem; color: var(--ink-3); }
.req { color: #d92d20; font-weight: 700; }
.form__hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg__item { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid #d6d6d6; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--white); transition: border-color var(--transition), background var(--transition); }
.seg__item svg { width: 22px; height: 22px; flex: 0 0 22px; stroke: currentColor; }
.seg__item span { display: flex; flex-direction: column; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.seg__item small { font-weight: 500; font-size: .78rem; color: var(--ink-3); margin-top: 3px; }
.seg__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__item:hover { border-color: var(--ink-3); }
.seg__item.is-checked { border-color: #000; background: #000; color: var(--white); }
.seg__item.is-checked small { color: #cfcfcf; }
.seg__item:focus-within { box-shadow: 0 0 0 3px rgba(251, 225, 23, .5); }
.order-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; padding-top: 4px; }
.order-form__consent input { accent-color: #000; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.order-form__consent a { color: inherit; text-decoration: underline; text-decoration-color: #bdbdbd; }
.order-form__error { background: #fff3f3; border: 1px solid #f0b4b4; color: #b42318; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 0; }
.order-form .is-invalid { border-color: #d92d20 !important; }
.order-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order-form__submit { display: none; }           /* на десктопе кнопка в боковой панели */
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.order-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.order-summary { padding: 22px 22px 20px; gap: 0; }
.order-summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.order-summary__head h2 { margin: 0; font-size: 1.1rem; }
.order-summary__head span { font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.order-summary__list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.cart-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: start; }
.cart-item__pic img { width: 52px; height: 52px; object-fit: contain; background: var(--bg-soft); border-radius: 8px; display: block; }
.cart-item__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-item__title { font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__meta { font-size: .78rem; color: var(--ink-3); }
.cart-item__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.cart-item__qty { display: inline-flex; align-items: center; }
.cart-item__qty input { width: 48px; text-align: center; padding: 5px 2px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .9rem; margin: 0 4px; -moz-appearance: textfield; }
.cart-item__qty input::-webkit-outer-spin-button, .cart-item__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart__step { width: 28px; height: 28px; border: 1px solid var(--border); background: var(--white); border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; }
.cart__step:hover { border-color: #000; }
.cart-item__sum { font-size: .95rem; white-space: nowrap; }
.cart__remove { border: 0; background: none; color: #bdbdbd; cursor: pointer; font-size: .95rem; padding: 2px 0; line-height: 1; }
.cart__remove:hover { color: #d92d20; }
.order-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 6px; font-size: .95rem; }
.order-summary__total b { font-family: var(--font-head); font-size: 1.35rem; }
.order-summary__note { font-size: .78rem; color: var(--ink-3); margin: 0 0 14px; }
.order-summary__submit { width: 100%; justify-content: center; }
.order-summary__more { display: block; text-align: center; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.order-summary__more:hover { color: var(--ink); }
.order-help { background: var(--bg-soft); border: 1px dashed #cfcfcf; border-radius: var(--radius); padding: 16px 20px; font-size: .86rem; color: var(--ink-2); }
.order-help b { display: block; margin-bottom: 4px; color: var(--ink); }
.order-help p { margin: 0; }
.order-help a { color: var(--ink); font-weight: 600; }
.order-state { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 36px; max-width: 760px; text-align: center; margin: 0 auto 8px; }
.order-state[hidden] { display: none !important; }
.order-state h2 { margin: 14px 0 10px; font-size: 1.5rem; }
.order-state p { color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.order-state__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-yellow); display: inline-flex; align-items: center; justify-content: center; }
.order-state__icon svg { width: 30px; height: 30px; stroke: #000; }
.order-state__icon--soft { background: var(--bg-soft); }
.order-state__icon--soft svg { stroke: var(--ink-3); }
.order-state__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 1023px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-side { position: static; order: -1; }
  .order-summary__list { max-height: none; }
  .order-summary__submit { display: none; }       /* кнопка внизу формы, после реквизитов */
  .order-form__submit { display: inline-flex; align-self: flex-start; }
  .order-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 767px) {
  .order-card { padding: 20px 18px 22px; }
  .order-form .form__row, .seg { grid-template-columns: 1fr; }
  .order-state { padding: 32px 20px; }
  .header__in .btn--cart { padding: 8px 10px; }
}
/* ошибка валидации под полем */
.field__error { display: block; font-size: .8rem; color: #b42318; margin-top: 2px; }
.order-form .field.is-invalid label { color: #b42318; }
.order-form__consent.is-invalid { color: #b42318; }
.order-form__consent.is-invalid input { outline: 2px solid #d92d20; outline-offset: 1px; border-radius: 3px; }
/* статус автозаполнения по ИНН/БИК */
.field__status { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.field__status--ok { color: #1a7f37; }
.field__status--warn { color: #b45309; }
