/* ============================================================
   Насосы шестерённые типа Ш — информационный сайт по паспорту
   ТУ 36 3242-005-56284438-2014
   ============================================================ */

/* ---------- Шрифты (Roboto / Roboto Condensed, Apache 2.0) ---------- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1724;
  --ink-soft: #24384a;
  --ink-muted: #5b6f82;
  --paper: #f2f5f8;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --line: #dfe6ee;
  --line-strong: #c8d4e0;

  --brand: #0a4f9e;
  --brand-dark: #072f5f;
  --brand-soft: #e8f0fb;
  --steel: #5a7186;
  --accent: #d95f16;
  --accent-soft: #fdf0e6;
  --danger: #b3261e;
  --danger-soft: #fdeceb;
  --ok: #1c7357;
  --ok-soft: #e6f4ef;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 36, .06), 0 1px 3px rgba(11, 23, 36, .05);
  --shadow: 0 10px 30px -18px rgba(11, 23, 36, .45);
  --shadow-lg: 0 30px 60px -30px rgba(7, 30, 55, .5);

  --sans: "Roboto", "Segoe UI", system-ui, -apple-system, "Inter", Arial, sans-serif;
  --cond: "Roboto Condensed", "Roboto", "Segoe UI", system-ui, Arial, sans-serif;
  /* Цифры, артикулы и обозначения — Roboto с табличными цифрами.
     Моноширинные шрифты (Cascadia Mono, Consolas) дают перечёркнутый ноль,
     который в паспортной вёрстке читается как ошибка. */
  --mono: "Roboto", "Segoe UI", system-ui, Arial, sans-serif;

  --container: 1220px;
  --header-h: 66px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--paper);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.32rem); letter-spacing: -.012em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .35em 0; }
strong, b { color: var(--ink); font-weight: 650; }
small { font-size: .82em; }

/* Табличные цифры: числа в колонках и плашках не «пляшут» */
table.data .num,
td.code,
.stat__value,
.metric__value,
.v-kpi__value,
.dim__value,
.nameplate__row dd,
.model__specs dd,
.spec-list dd,
.model__code,
.chip b,
.dims-facts span,
.parts-count {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Служебное ---------- */
.visually-hidden {  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand__sub { font-size: 11px; color: var(--ink-muted); letter-spacing: .06em; text-transform: uppercase; }

.site-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: nowrap; overflow: hidden; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--panel-alt); color: var(--ink); }
.site-nav a.is-active { background: var(--brand-soft); color: var(--brand-dark); }

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 18px -10px var(--brand);
}
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; }

.btn--onDark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.btn--onDark:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn svg { flex-shrink: 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(28, 96, 172, .55), transparent 62%),
    linear-gradient(160deg, #071523 0%, #0a2a43 45%, #071b2e 100%);
  background-color: #081826;
  color: #c9d8e5;
  padding: 74px 0 66px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fb4d6;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .7;
}

.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: #7fb2e8; }

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: #b7cadb;
  max-width: 56ch;
  margin-bottom: 26px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  color: #d2e2f0;
  font-variant-numeric: tabular-nums;
}
.chip b { color: #fff; font-weight: 650; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
  gap: 18px;
}
.stat__value {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat__value span { font-size: .6em; color: #9db8ce; font-weight: 500; margin-left: 5px; letter-spacing: 0; }
.stat__label { font-size: 12.5px; color: #93aec6; margin-top: 6px; line-height: 1.35; }

/* --- Табличка (nameplate) --- */
.nameplate {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(150deg, #6f8598, #35495c 38%, #7d94a7 62%, #2c3d4d);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.nameplate__inner {
  border-radius: 14px;
  padding: 26px 26px 24px;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #1b2a37 0%, #101d28 55%, #16242f 100%);
  color: #dbe7f1;
}

.nameplate__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.nameplate__brand {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fa7bb;
}
.nameplate__type {
  font-family: var(--cond);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9fb8cc;
  margin-top: 4px;
}
.eac {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1.5px solid #8fa7bb;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #cfe0ee;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.nameplate__model {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  margin: 18px 0 4px;
  line-height: 1.1;
}
.nameplate__tu {
  font-size: 12px;
  color: #93aec6;
  font-family: var(--mono);
  letter-spacing: .02em;
}

.nameplate__rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  margin: 20px 0 0;
}
.nameplate__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .1);
  font-size: 13.5px;
}
.nameplate__row dt { color: #8fa7bb; }
.nameplate__rows .nameplate__row:last-child { grid-column: 1 / -1; }
.nameplate__row dd {
  margin: 0;
  font-family: var(--mono);
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nameplate__note {
  margin: 18px 0 0;
  font-size: 12px;
  color: #7d94a7;
  line-height: 1.5;
}

/* ============================================================
   Полоса разделов (sticky)
   ============================================================ */
.section-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(242, 245, 248, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.section-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 10px;
}
.section-bar .container::-webkit-scrollbar { display: none; }
.section-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.section-bar a .num {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--steel);
  opacity: .85;
}
.section-bar a:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.section-bar a.is-active {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.section-bar a.is-active .num { color: var(--accent); }

/* ============================================================
   Разделы
   ============================================================ */
.section { padding: 64px 0; }
.section--tight { padding: 42px 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }

.section-head { max-width: 74ch; margin-bottom: 30px; }
.section-head .num {
  font-family: var(--cond);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-muted); margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

/* ---------- Карточки ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; background: var(--panel-alt); }
.card--accent { border-left: 3px solid var(--accent); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ---------- Модели ---------- */
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.model {
  position: relative;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.model:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.model[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 12px 28px -20px var(--brand);
}
.model__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.model__code {
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.01em;
}
.model__series {
  font-size: 11px;
  font-family: var(--cond);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--panel-alt);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
}
.model__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 0; }
.model__specs div { min-width: 0; }
.model__specs dt { font-size: 11px; color: var(--ink-muted); letter-spacing: .02em; }
.model__specs dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.model__specs dd small { font-weight: 500; color: var(--ink-muted); font-family: var(--sans); font-size: 11px; }
.model__hint {
  margin-top: auto;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.model[aria-pressed="true"] .model__hint { color: var(--ok); }

/* ---------- Таблицы ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 12px;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
table.data th, table.data td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  background: var(--panel-alt);
  font-family: var(--cond);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #fbfcfe; }
table.data td.num, table.data th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
table.data td.code { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
table.data tr.is-active td { background: var(--brand-soft); }
.spec-table th[data-col].is-active-col {
  background: #dbe8f9;
  color: var(--brand-dark);
  box-shadow: inset 0 2px 0 var(--brand);
}
.spec-table td[data-col].is-active-col {
  background: #eef4fc;
  color: var(--brand-dark);
  font-weight: 600;
}
.spec-table tbody th { font-weight: 500; color: var(--ink-soft); font-size: 14.5px; }
table.data tr.is-active td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
table.data td .muted { color: var(--ink-muted); }
table.data th .sub { display: block; font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--steel); font-weight: 500; }

.legend-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.scroll-hint { display: none; }

/* Блоки габаритов */
.dims-block { margin-bottom: 42px; }
.dims-block:last-of-type { margin-bottom: 26px; }
.dims-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 14px;
}
.dims-head h3 { margin: 0; }
.dims-facts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.dims-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.dims-facts b { color: var(--ink); font-weight: 650; font-family: var(--mono); font-size: 12px; }
.dims-jump { font-size: 14px; color: var(--ink-muted); }

/* Список деталей в разделе «Устройство» */
.parts-list {
  columns: 2;
  column-gap: 30px;
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}
.parts-list li { break-inside: avoid; margin: 0 0 7px; }
.parts-list b { color: var(--brand); font-weight: 600; }

@media (max-width: 760px) {
  .parts-list { columns: 1; }
}

/* Габарит и масса в карточке модели — отдельными строками на всю ширину */
.model__specs div:nth-child(n+5) {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.model__specs div:nth-child(5) {
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.model__specs div:nth-child(n+5) dd { white-space: nowrap; }

/* Плотные таблицы: много числовых колонок */
table.data--dense { font-size: 12.5px; min-width: 0; }
table.data--dense th, table.data--dense td { padding: 8px 7px; }
table.data--dense thead th { font-size: 10px; letter-spacing: .02em; white-space: normal; }
table.data--dense td.num { font-size: 12px; }
table.data--dense td:first-child, table.data--dense th:first-child { padding-left: 14px; }

/* ---------- Заметки ---------- */
.note {
  display: flex;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid #cfe0f6;
  font-size: 14.5px;
  color: #163a5e;
  line-height: 1.55;
}
.note b { color: var(--brand-dark); }
.note--warn { background: var(--accent-soft); border-color: #f6d5bf; color: #7a3a0f; }
.note--warn b { color: #6b3009; }
.note--danger { background: var(--danger-soft); border-color: #f3c9c6; color: #7d1c17; }
.note--danger b { color: #66140f; }
.note--ok { background: var(--ok-soft); border-color: #c8e6db; color: #10513d; }
.note__icon { flex-shrink: 0; margin-top: 2px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Списки определений ---------- */
.spec-list { margin: 0; display: grid; gap: 0; }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--ink-muted); font-size: 14.5px; }
.spec-list dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.spec-list dd small { font-family: var(--sans); font-weight: 500; color: var(--ink-muted); }

/* ---------- Вкладки ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel-alt); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs button:hover { color: var(--ink); }
[data-tab-panel][hidden] { display: none; }

/* ---------- Рисунки ---------- */
.figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.figure__frame {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .015), rgba(0, 0, 0, .015)),
    repeating-linear-gradient(0deg, rgba(10, 79, 158, .04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(10, 79, 158, .04) 0 1px, transparent 1px 22px),
    #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
}
.figure img { display: block; max-width: 100%; height: auto; }
.figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }
.figure figcaption b { color: var(--ink); font-weight: 600; }
.figure__zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}
.figure--dark .figure__frame { background: #fff; }

.legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  counter-reset: lg;
}
.legend li { display: flex; gap: 9px; align-items: baseline; margin: 0; }
.legend .n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  width: 20px; height: 20px;
  flex: 0 0 20px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ---------- Таймлайн ---------- */
.steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps > li {
  position: relative;
  padding: 0 0 26px 58px;
  margin: 0;
}
.steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(var(--line-strong), var(--line));
}
.steps > li::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}
.steps h3 { margin: 4px 0 6px; font-size: 1.02rem; }
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.steps ul { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-muted); }

/* ---------- Аккордеон неисправностей ---------- */
.faults { display: grid; gap: 12px; }
.fault-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.filter-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.fault {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fault[hidden] { display: none; }
.fault summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
}
.fault summary::-webkit-details-marker { display: none; }
.fault summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--steel);
  transition: transform .2s;
}
.fault[open] summary::after { transform: rotate(45deg); }
.fault[open] summary { border-bottom: 1px solid var(--line); background: var(--panel-alt); }
.fault__tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--danger-soft);
  color: var(--danger);
  flex-shrink: 0;
}
.fault__tag--possible { background: var(--accent-soft); color: #96500f; }
.fault__body { padding: 18px; }
.fault__body ol { margin: 0; padding-left: 20px; }
.fault__body li { margin: 0 0 12px; font-size: 14.5px; }
.fault__body li:last-child { margin-bottom: 0; }
.fault__cause { color: var(--ink); font-weight: 600; }
.fault__fix { display: block; color: var(--ink-muted); margin-top: 2px; }

/* ---------- Метрики ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.metric__value {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric__value span { font-size: .5em; color: var(--ink-muted); margin-left: 4px; letter-spacing: 0; }
.metric__label { font-size: 13.5px; color: var(--ink-muted); margin-top: 8px; line-height: 1.45; }

/* ---------- Запчасти ---------- */
.parts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 10px 14px 10px 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--steel); }
.parts-count { font-size: 13.5px; color: var(--ink-muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.parts-count b { color: var(--ink); }
.copy-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  cursor: pointer;
  color: var(--steel);
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Документы ---------- */
.doc-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.doc-icon {
  width: 54px; height: 68px;
  border-radius: 7px;
  background: linear-gradient(150deg, #f4f7fa, #e4ebf2);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  position: relative;
  letter-spacing: .04em;
}
.doc-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.doc-card p { margin: 0; font-size: 13.5px; color: var(--ink-muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.toc {
  columns: 2;
  column-gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}
.toc li { break-inside: avoid; margin: 0 0 9px; display: flex; gap: 10px; align-items: baseline; }
.toc .n { font-family: var(--mono); font-size: 12px; color: var(--steel); flex: 0 0 46px; white-space: nowrap; }
.toc a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.toc a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin-bottom: 12px; font-weight: 650; }
.contact-card p { margin: 0 0 6px; font-size: 14.5px; }
.contact-card a { font-weight: 600; }

/* ---------- Подвал ---------- */
.site-footer {
  background: #07131f;
  color: #8ea6ba;
  padding: 46px 0 34px;
  font-size: 14px;
}
.site-footer a { color: #c6d8e6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7b93a8;
}

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 16, 26, .82);
  backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.modal__box img { display: block; max-width: 100%; height: auto; }
.modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  border: 0;
  background: var(--ink);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Наверх ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ============================================================
   Страницы исполнений
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #c9d8e5;
  padding: 40px 0 48px;
  background:
    radial-gradient(900px 420px at 82% -12%, rgba(28, 96, 172, .5), transparent 62%),
    linear-gradient(160deg, #071523 0%, #0a2a43 55%, #071b2e 100%);
  background-color: #081826;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-bottom: 14px; }
.page-hero h1 span { color: #7fb2e8; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 40px;
  align-items: center;
}
.page-hero__lead { color: #b7cadb; max-width: 58ch; }
.page-hero .hero__actions { margin-top: 24px; }
.page-hero .section-head { max-width: 78ch; }
.page-hero .section-head p { color: #b7cadb; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #8fb4d6;
  margin-bottom: 16px;
}
.crumbs a { color: #b7cadb; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

.v-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v-kpi__item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 16px 18px;
}
.v-kpi__value {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.v-kpi__value span { font-size: .5em; color: #9db8ce; margin-left: 4px; }
.v-kpi__label { font-size: 12px; color: #93aec6; margin-top: 5px; line-height: 1.35; }

.dim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dim {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.dim__key {
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--steel);
}
.dim__value {
  font-family: var(--mono);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.dim__value span { font-size: .5em; color: var(--ink-muted); margin-left: 3px; }
.dim--accent { border-color: #bcd2ef; background: var(--brand-soft); }
.dim--accent .dim__key { color: var(--brand-dark); }

.v-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.v-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.v-card__title { font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.v-card__motor { font-size: 13px; color: var(--ink-muted); }
.v-card__facts { font-size: 12.5px; color: var(--steel); font-variant-numeric: tabular-nums; margin-top: 6px; }
.v-card__link { font-size: 12.5px; font-weight: 600; color: var(--brand); margin-top: 8px; }
.hub-sub { margin: 34px 0 14px; font-size: 1.1rem; }

table.data a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 79, 158, .3);
}
table.data a:hover { color: var(--brand-dark); border-bottom-color: var(--brand-dark); background: var(--brand-soft); }

@media (max-width: 1080px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .v-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dim-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .nameplate { max-width: 560px; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
  .toc { columns: 1; }
}

@media (max-width: 1160px) {
  .site-nav { display: none; }
}

@media (max-width: 860px) {
  .header-actions .header-cta { display: none; }
  .header-pdf .btn__label { display: none; }
  .header-pdf { padding: 8px 10px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 14px; }
  .site-nav { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .section { padding: 46px 0; }
  .hero { padding: 48px 0 44px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .models { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .metrics, .contacts { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .doc-card { grid-template-columns: auto minmax(0, 1fr); }
  .doc-card .btn { grid-column: 1 / -1; justify-content: center; }
  .nameplate__rows { grid-template-columns: 1fr; }
  .steps > li { padding-left: 50px; }
  .steps > li::after { width: 34px; height: 34px; font-size: 12px; }
  .steps > li:not(:last-child)::before { left: 16px; top: 34px; }
  table.data { font-size: 14px; }
  table.data th, table.data td { padding: 10px 12px; }
  .scroll-hint {
    display: block;
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--steel);
    font-style: italic;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Печать
   ============================================================ */
@media print {
  :root { --paper: #fff; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .site-header, .section-bar, .to-top, .modal, .hero__actions, .parts-toolbar, .filter-btn, .header-actions, .doc-actions, .figure__zoom, .copy-btn { display: none !important; }
  .hero { background: #fff !important; color: #000; padding: 0 0 14pt; }
  .hero::before { display: none; }
  .hero, .hero * { color: #000 !important; background: transparent !important; }
  .page-hero { background: #fff !important; color: #000; padding: 0 0 12pt; }
  .page-hero::before { display: none; }
  .page-hero, .page-hero * { color: #000 !important; background: transparent !important; }
  .page-hero .v-kpi__item { border: 1px solid #999 !important; }
  .page-hero .crumbs a { color: #000 !important; }
  .hero__meta .chip { border: 1px solid #999 !important; }
  .hero__stats { border-top: 1px solid #999; }
  .nameplate, .nameplate__inner { background: #fff !important; color: #000; box-shadow: none; border: 1px solid #999; }
  .nameplate dt, .nameplate__brand, .nameplate__type, .nameplate__note, .nameplate__tu, .stat__label, .eyebrow { color: #444 !important; }
  .nameplate dd, .nameplate .nameplate__model { color: #000 !important; }
  .nameplate__note { border: 0; }
  .card, .figure, .metric, .fault, .contact-card, .table-wrap, .note { box-shadow: none; }
  .section { padding: 12pt 0; }
  .section-head { margin-bottom: 12pt; }
  h1, h2, h3, h4 { break-after: avoid; }
  .table-wrap { overflow: visible !important; border-color: #999; }
  table.data { font-size: 8.6pt; min-width: 0; }
  table.data--dense { font-size: 7.8pt; }
  table.data th, table.data td { padding: 3pt 4pt; }
  table.data tr, .figure, .fault, .metric, .card, .note, .steps > li { break-inside: avoid; }
  .fault__body { display: block !important; }
  details:not([open]) > *:not(summary) { display: block !important; }
  a { color: #000; text-decoration: none; }
  .figure img { max-height: 200mm; }
  .to-top, .modal { display: none !important; }
}
