/* clppr.ru v2 — B2B-портал CLIPPER. Дизайн-система на CSS custom properties, без сборщика.
   Цвета — по брендбуку Flamagas: Pantone Yellow C #FFDD00, Pantone 282 C #002E5F.
   Шрифты — Montserrat (заголовки) и Inter (текст), локально из /assets/fonts (OFL), без Google Fonts. */

/* ---------- Шрифты ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/montserrat-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --yellow: #ffdd00;          /* Pantone Yellow C */
  --yellow-600: #e6c700;
  --yellow-50: #fff8cc;
  --blue: #002e5f;            /* Pantone 282 C */
  --blue-800: #00254d;
  --blue-900: #001a38;
  --blue-50: #e9eef5;
  --blue-100: #d3dde9;
  --ink: #0f172a;             /* глубокий графит */
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;              /* светло-серый */
  --white: #ffffff;
  --ok: #15803d;

  --font-head: "Montserrat", "Arial Black", Arial, sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 48px -24px rgba(0, 26, 56, 0.45);
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; }
p { margin: 0; }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--blue); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Заметный маркер «нет данных» — не убирать без реальных данных (см. CLAUDE.md) */
.todo {
  display: inline;
  background: var(--yellow-50);
  color: var(--blue);
  border: 2px dashed var(--yellow-600);
  border-radius: 6px;
  padding: 0 0.35em;
  font-size: 0.85em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--blue); }
.btn--primary:hover { background: var(--yellow-600); }
.btn--dark { background: var(--blue); color: var(--white); }
.btn--dark:hover { background: var(--blue-800); }
.btn--outline { border-color: currentColor; color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.on-dark .btn--outline { color: var(--white); }
.on-dark .btn--outline:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.link-arrow::after { content: "→"; transition: transform 0.15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--yellow); }

/* ---------- Шапка ---------- */
.topbar {
  display: none;
  background: var(--blue-900);
  color: var(--blue-100);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar__contacts { display: flex; align-items: center; gap: 1.1rem; white-space: nowrap; }
.topbar__about { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1279px) { .topbar__about { display: none; } .topbar .container { justify-content: flex-end; } }
.topbar__price { color: var(--yellow) !important; font-weight: 600; }
.topbar .todo { background: transparent; color: var(--yellow); border-color: rgba(255, 221, 0, 0.6); }

@media (min-width: 1100px) {
  .topbar { display: block; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
/* официальный логотип (гайдлайн CLIPPER: жёлтая плашка, Pantone 282 C) — не перерисовывать в CSS */
.brand__logo { height: 34px; width: auto; }
.brand__descr {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--muted);
  max-width: 9.5rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .brand__logo { height: 40px; }
  .brand__descr { font-size: 0.75rem; }
}
@media (max-width: 379px) {
  .brand__descr { display: none; }
}

.nav { display: none; margin-left: auto; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a,
.nav summary {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  cursor: pointer;
}
.nav a:hover,
.nav summary:hover { background: var(--blue-50); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 10px 10px 0 0; }

.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-left: 0.2rem; }
.nav__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
}
.nav__drop a { display: block; white-space: normal; }
.nav__drop a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.header-cta { display: none; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; margin-left: 0.25rem; white-space: nowrap; }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .brand__descr { display: none; }
}

.menu-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  font-size: 1.35rem;
  cursor: pointer;
}
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.mobile-nav li a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav li a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.mobile-nav .sub a { padding-left: 1rem; font-weight: 400; }
.mobile-nav__contacts { padding: 0.5rem 0 1.25rem; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.mobile-nav__contacts a { color: var(--blue); font-weight: 600; text-decoration: none; }
@media (min-width: 1100px) {
  .mobile-nav { display: none !important; }
}

/* Полоса «Тестовая версия» — на любом адресе, кроме clppr.ru (добавляет main.js) */
.test-banner {
  background: #d4002a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem 1rem;
}
.test-banner a { color: #fff; }

/* ---------- Секции ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--bg { background: var(--bg); }
.section--blue {
  background: var(--blue);
  color: var(--white);
  position: relative;
  isolation: isolate;
}
.section--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/brand/pattern-blue.webp") center / 900px auto repeat;
  opacity: 0.6;
}
.section--light-pattern { position: relative; isolation: isolate; background: var(--white); }
.section--light-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/brand/pattern-light.webp") center / 760px auto repeat;
  opacity: 0.35;
}
.section--yellow { background: var(--yellow); color: var(--blue); }

.on-dark { color: var(--white); }
.on-dark .muted,
.on-dark .lead { color: var(--blue-100); }

.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 4px; background: var(--yellow); border-radius: 2px; margin-right: 0.55rem; vertical-align: middle; }
.on-dark .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); margin-top: 0.9rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 1.25rem; }
.on-dark .note { color: var(--blue-100); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: inherit; }
.on-dark .breadcrumb { color: var(--blue-100); }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid { gap: 1.25rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow);
}
.card h3 + p,
.card h3 + ul { margin-top: 0.5rem; }
.card p { color: var(--muted); }
.card--blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.card--blue p { color: var(--blue-100); }
.card--flat { box-shadow: none; }
.card__icon { width: 56px; height: 56px; margin-bottom: 1rem; }
.card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--blue);
  line-height: 1.1;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.25rem;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23002e5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.checklist b { display: block; }
.checklist span { color: var(--muted); }
.on-dark .checklist span { color: var(--blue-100); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--yellow { background: var(--yellow); }

/* «Определения» — пары «параметр — значение» */
.specs { display: grid; gap: 0; margin: 0; font-size: 0.9rem; }
.specs div { display: grid; grid-template-columns: minmax(7.5rem, 40%) 1fr; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

/* ---------- Главная: первый экран ---------- */
.hero {
  background: var(--blue);
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/brand/pattern-blue.webp") center / 900px auto repeat;
  opacity: 0.5;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--blue) 25%, rgba(0, 46, 95, 0.55) 70%, rgba(0, 46, 95, 0.2));
}
.hero__grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: var(--blue-100); max-width: 40rem; }
.hero .btn-row { margin-top: 1.75rem; }
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 300px;
}
.hero__car { width: auto; height: clamp(280px, 52vw, 520px); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45)); }
.hero__metal {
  position: absolute;
  right: max(0px, calc(50% - 14rem));
  bottom: -0.5rem;
  width: clamp(130px, 22vw, 210px);
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.5));
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__metal { right: -2.5rem; }
}

.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}
.badges li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--blue-100);
}
.badges b { display: block; color: var(--white); font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 0.1rem; }
.badges img { width: 44px; height: 44px; flex-shrink: 0; background: var(--white); border-radius: 50%; padding: 2px; }
.badges .todo { background: transparent; color: var(--yellow); border-color: rgba(255, 221, 0, 0.6); }
@media (min-width: 1100px) {
  .badges { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Внутренние страницы: шапка страницы ---------- */
.page-hero {
  background: var(--blue);
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/brand/pattern-blue.webp") center / 900px auto repeat;
  opacity: 0.45;
}
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .lead { color: var(--blue-100); max-width: 46rem; }
.page-hero .btn-row { margin-top: 1.5rem; }
.page-hero__grid { display: grid; gap: 1.5rem; align-items: center; }
.page-hero__img { justify-self: center; max-height: 320px; width: auto; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.4)); }
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: 1.4fr 0.6fr; }
}

/* ---------- Товарные семьи ---------- */
.families { display: grid; gap: 1rem; }
@media (min-width: 640px) { .families { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .families { grid-template-columns: repeat(3, 1fr); } }

.family {
  display: grid;
  grid-template-columns: 1fr 96px;
  grid-template-rows: auto 1fr auto;
  gap: 0.4rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.family:hover { border-color: var(--blue); transform: translateY(-2px); }
.family__head { grid-column: 1; }
.family__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.family__title { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.family__img { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: center; max-height: 150px; width: auto; }
.family p { grid-column: 1; font-size: 0.9rem; color: var(--muted); }
.family .chips { grid-column: 1; }
.family__icon { position: absolute; top: 1rem; right: 1rem; width: 18px; height: auto; opacity: 0.9; }
.family--gas .family__img { max-height: 110px; }

/* ---------- Стандарты качества ---------- */
.quality { display: grid; gap: 1rem; }
@media (min-width: 640px) { .quality { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .quality { grid-template-columns: repeat(3, 1fr); } }
.quality .card { display: flex; gap: 1rem; align-items: flex-start; }
.quality .card img { width: 88px; height: 88px; flex-shrink: 0; margin: -0.4rem -0.3rem 0 -0.5rem; }
.quality h3 { font-size: 1.05rem; }
.quality p { font-size: 0.92rem; margin-top: 0.35rem; }
.quality .src { display: block; margin-top: 0.4rem; font-size: 0.75rem; color: var(--muted); opacity: 0.85; }

/* ---------- Оборудование ---------- */
.pos { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .pos { gap: 1rem; } }
@media (max-width: 639px) { .pos figcaption { padding: 0.75rem; font-size: 0.82rem; } .pos__img { padding: 0.5rem; } }
@media (min-width: 1000px) { .pos { grid-template-columns: repeat(4, 1fr); } }
.pos figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.pos__img { background: var(--bg); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: hidden; }
.pos__img img { width: 100%; height: 100%; object-fit: contain; }
.pos figcaption { padding: 1rem 1.1rem 1.2rem; font-size: 0.9rem; color: var(--muted); }
.pos figcaption b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.2rem; }
.pos figcaption .chip { margin-top: 0.6rem; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc__inputs { display: grid; gap: 0.9rem; }
@media (min-width: 560px) { .calc__inputs { grid-template-columns: 1fr 1fr; } }
.calc__out { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
.calc__out div { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 0.9rem 1rem; }
.calc__out dt { font-size: 0.82rem; color: var(--blue-100); }
.calc__out dd { margin: 0.2rem 0 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--yellow); font-variant-numeric: tabular-nums; }
.calc__out .wide { grid-column: 1 / -1; }

/* ---------- Брендирование ---------- */
.split { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--flip > :first-child { order: 2; }
}
.media-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue); box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; }
.media-frame--white { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tiles div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.tiles b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--blue); }
.tiles span { font-size: 0.88rem; color: var(--muted); }
.section--blue .tiles div { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.section--blue .tiles b { color: var(--yellow); }
.section--blue .tiles span { color: var(--blue-100); }

.steps { list-style: none; counter-reset: step; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.2rem 0.8rem; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.steps b { font-family: var(--font-head); }
.steps span { color: var(--muted); font-size: 0.92rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, 0.12); }

/* ---------- Семпл-бокс ---------- */
.sample { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .sample { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; } }

/* ---------- Формы ---------- */
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.form-grid { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field { display: grid; gap: 0.35rem; }
.field label,
.field-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field label .req { color: #c0392b; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 46, 95, 0.15); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #c0392b; }
.field__error { font-size: 0.8rem; color: #c0392b; display: none; }
.field.is-invalid .field__error { display: block; }
.calc .field label { color: var(--white); }
.calc .field input { border-color: transparent; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.88rem;
  color: var(--muted);
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.check a { color: var(--blue); }
.check.is-invalid { color: #c0392b; }

.form-status { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.92rem; }
.form-status[data-state="ok"] { background: #e8f6ee; color: var(--ok); }
.form-status[data-state="error"] { background: #fdecea; color: #a12a1c; }
.form-status[data-state="sending"] { background: var(--blue-50); color: var(--blue); }
.form-status a { color: inherit; font-weight: 700; }
.form-legal { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }

.request { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .request { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; } }
.request__aside .checklist { margin-top: 1.5rem; }

/* ---------- Каталог ---------- */
.cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.view-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.view-toggle button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--muted);
}
.view-toggle button[aria-pressed="true"] { background: var(--blue); color: var(--white); }

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding-block: 0.75rem;
}
.filters__row { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; align-items: center; }
.filters__row::-webkit-scrollbar { display: none; }
.filters__row + .filters__row { margin-top: 0.5rem; }
.filters__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.25rem; white-space: nowrap; }
.filter-btn {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ink);
}
.filter-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.filter-btn:hover { border-color: var(--blue); }

.fam-block { padding-top: clamp(2rem, 5vw, 3rem); }
.fam-block[hidden] { display: none; }
.fam-block__head { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.fam-block__head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.models { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .models { grid-template-columns: repeat(4, 1fr); } }
.model {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
}
.model b { font-family: var(--font-head); font-size: 1rem; color: var(--blue); }
.model span { display: block; color: var(--muted); }

.products { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.product[hidden] { display: none; }
.product__img { aspect-ratio: 4 / 3; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 0.75rem; border-bottom: 1px solid var(--line); }
.product__img { overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: contain; }
.product__body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.product__series { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.product__name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--blue); line-height: 1.2; }
.product__sku { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.82rem; background: var(--bg); border-radius: 6px; padding: 0.1rem 0.4rem; justify-self: start; width: fit-content; }
.product .specs { font-size: 0.82rem; }
.product .specs div { grid-template-columns: 6.5rem 1fr; padding: 0.3rem 0; }
.product__cta { margin-top: auto; padding-top: 0.4rem; }
.product__todo { font-size: 0.78rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 760px; }
.ptable th, .ptable td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable th { background: var(--bg); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); position: sticky; top: 0; }
.ptable tr[hidden] { display: none; }
.ptable td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.ptable img { width: 64px; height: 44px; object-fit: contain; }

[data-view="table"] .products { display: none; }
[data-view="tiles"] .table-wrap { display: none; }

.empty-note { padding: 2rem; text-align: center; color: var(--muted); }

/* ---------- Таблицы условий ---------- */
.terms { display: grid; gap: 0.75rem; }
@media (min-width: 760px) { .terms { grid-template-columns: repeat(2, 1fr); } }
.terms > div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; }
.terms b { display: block; font-family: var(--font-head); color: var(--blue); margin-bottom: 0.25rem; }
.terms span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Ссылки-разделы (хаб /optom/) ---------- */
.hub { display: grid; gap: 1rem; }
@media (min-width: 640px) { .hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hub { grid-template-columns: repeat(4, 1fr); } }
.hub a { text-decoration: none; display: flex; flex-direction: column; gap: 0.5rem; }
.hub a:hover { border-color: var(--blue); }
.hub h3 { color: var(--blue); }
.hub .link-arrow { margin-top: auto; }

/* ---------- Контакты ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.contact-list b { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-list a { color: var(--blue); font-weight: 600; font-size: 1.1rem; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose ul, .prose ol { margin-top: 0.75rem; color: var(--ink); }
.prose li + li { margin-top: 0.35rem; }

/* ---------- CTA-полоса ---------- */
.cta-band { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--blue-900); color: var(--blue-100); font-size: 0.9rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer__grid h2 { font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); margin-bottom: 0.8rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__logo { height: 38px; width: auto; margin-bottom: 0.9rem; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.25rem 1.75rem; display: grid; gap: 0.6rem; font-size: 0.8rem; }
.footer__disclaimer { color: var(--white); font-weight: 600; }
.footer__disclaimer b { display: inline-block; background: var(--yellow); color: var(--blue); border-radius: 6px; padding: 0 0.35rem; margin-right: 0.35rem; }
.site-footer .todo { background: transparent; color: var(--yellow); border-color: rgba(255, 221, 0, 0.5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Каталог на телефоне: карточка в строку — фото слева, данные справа (каталог короче в 2 раза) */
@media (max-width: 639px) {
  .products { grid-template-columns: 1fr; gap: 0.75rem; }
  .product { display: grid; grid-template-columns: 112px 1fr; }
  .product__img { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 0.5rem; }
  .product__body { padding: 0.75rem 0.85rem 0.85rem; gap: 0.4rem; }
  .product__name { font-size: 0.98rem; }
  .product .specs div { grid-template-columns: 1fr; gap: 0; padding: 0.25rem 0; }
  .product .specs dt { font-size: 0.72rem; }
  .product__img img { max-height: 150px; }
}
