/* PSFORD — ремонт PowerShift. Сборка: src/build.py */
:root {
  --ink: #0b0f14;
  --ink-2: #111821;
  --ink-3: #18212d;
  --ink-line: rgba(255, 255, 255, .09);
  --ink-text: #eef2f7;
  --ink-muted: #9aa6b6;
  --paper: #f4f5f7;
  --card: #ffffff;
  --text: #121821;
  --muted: #5a6575;
  --line: #e2e6ec;
  --line-2: #d3d9e1;
  --accent: #ff5a1f;
  --accent-hi: #ff7440;
  --accent-ink: #c94300;
  --accent-soft: #fff1ea;
  --accent-bg: #cf4510;      /* фон кнопок и полос с белым текстом: контраст 4,6:1 */
  --accent-bg-hi: #b83c0e;
  --ok: #1f9d55;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px rgba(4, 8, 14, .35);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Roboto Mono", monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0; color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-text);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 800 19px/1 var(--font-head); letter-spacing: .02em; }
.brand-name b { color: var(--accent); font-weight: 800; }
.brand-sub { font-size: 12px; color: var(--ink-muted); margin-top: 4px; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: #cfd6e0; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 90, 31, .16); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .35); }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 10px; background: var(--accent);
  transition: background .15s, transform .15s;
}
.header-phone:hover { background: var(--accent-bg-hi); color: #fff; }
.header-phone { background: var(--accent-bg); }
a[href^="tel:"] { white-space: nowrap; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-menu { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ink-line); background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-bg); color: #fff; box-shadow: 0 10px 30px rgba(207, 69, 16, .28); }
.btn-primary:hover { background: var(--accent-bg-hi); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-line { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--accent-hi); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(255, 90, 31, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(38, 137, 255, .10), transparent 60%),
    var(--ink);
  color: var(--ink-text);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; margin: 18px 0 18px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: #c4ccd8; max-width: 600px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink-muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ico { color: var(--accent-hi); }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.hero-visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .30), rgba(255, 90, 31, 0) 65%);
  filter: blur(8px);
}
.hero-visual .ring { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); }
.hero-visual .ring.r2 { width: 62%; border-style: solid; border-color: rgba(255, 90, 31, .28); }
.hero-visual img { position: relative; width: min(100%, 470px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.spec-card {
  position: absolute; right: 0; bottom: 6px; z-index: 2;
  background: rgba(17, 24, 33, .88); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 14px 16px; min-width: 240px; box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.spec-card dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 18px; font-size: 13.5px; }
.spec-card dt { color: var(--ink-muted); }
.spec-card dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.spec-card .spec-title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); font-weight: 700; margin-bottom: 8px; }

.hero-sm .wrap { display: block; padding-top: 52px; padding-bottom: 52px; }
.hero-sm h1 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 14px; }
.hero-sm .lead { margin-bottom: 0; max-width: 760px; }
.hero-sm .hero-actions { margin-top: 26px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: #c4ccd8; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Box switch ---------- */
.switch-band { background: var(--ink-2); border-bottom: 1px solid var(--ink-line); }
.switch { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px; align-items: stretch; padding-top: 18px; padding-bottom: 18px; }
.switch-label { color: var(--ink-muted); font-size: 14px; font-weight: 600; display: flex; align-items: center; padding-right: 8px; }
.switch a {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-text);
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .02);
  transition: border-color .15s, background .15s;
}
.switch a:hover { border-color: rgba(255, 255, 255, .28); color: #fff; }
.switch a[aria-current="page"] { border-color: rgba(255, 90, 31, .6); background: rgba(255, 90, 31, .08); }
.switch .sw-code { font: 800 18px/1 var(--font-head); color: #fff; }
.switch .sw-sub { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.switch .sw-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent-hi); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.switch .sw-arrow { margin-left: auto; color: var(--ink-muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.white { background: var(--card); }
.section.dark { background: var(--ink); color: var(--ink-text); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-top: 12px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 12px 0 0; font-size: 17px; }
.dark .section-head p { color: var(--ink-muted); }
.section-head .btn { flex: none; }

/* Models */
.models { display: flex; flex-wrap: wrap; gap: 10px; }
.models .chip { padding: 9px 14px; font-size: 15px; }
.models .chip b { font-weight: 650; }
.models .chip span { color: var(--muted); }
.note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px;
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid #ffd9c6; color: #5b2a12; font-size: 15px;
}
.note .ico { color: var(--accent-ink); margin-top: 2px; }
.note a { font-weight: 600; }

/* Symptoms */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.symptom { position: relative; transition: transform .2s, border-color .2s; }
.symptom:hover { transform: translateY(-2px); border-color: #ffc7ad; }
.symptom .sym-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.symptom .sym-ico .ico { width: 24px; height: 24px; }
.symptom h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.symptom p { color: var(--muted); margin: 0; font-size: 15px; }

/* Prices */
.price-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.price-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.price-row:first-child { border-top: 0; }
.price-row:hover { background: #fafbfc; }
.price-name { flex: 1; font-size: 16px; }
.price-val { flex: none; font-weight: 750; font-size: 16px; white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.price-val small { font-weight: 500; color: var(--muted); font-size: 14px; margin-right: 4px; }
.price-foot { padding: 14px 22px; background: #fafbfc; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.price-aside { background: var(--ink); color: var(--ink-text); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow-lg); }
.price-aside h3 { font-size: 22px; margin-bottom: 10px; color: #fff; }
.price-aside p { color: var(--ink-muted); font-size: 15px; }
.price-aside .phones { display: grid; gap: 8px; margin: 18px 0 20px; }
.price-aside .phones a { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
.price-aside .phones a:hover { color: var(--accent-hi); }
.price-aside .btn { width: 100%; }

/* Norms (Ford ECAT) */
.norm-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.norm-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.norm-table th { text-align: left; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.norm-table td { padding: 13px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.norm-table tbody tr:first-child td { border-top: 0; }
.norm-table tbody tr:hover { background: #fcfcfd; }
.norm-table .nv { text-align: right; white-space: nowrap; width: 1%; }
.norm-table .nv b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.op-name { display: block; line-height: 1.4; }
.op-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.op-meta code { font: 600 12.5px/1 var(--mono); color: var(--text); background: #f1f3f6; padding: 3px 6px; border-radius: 5px; }
.op-add { display: inline-block; font: 700 11.5px/1 var(--font); letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 6px; border-radius: 5px; }
.op-models { display: block; margin-top: 4px; font-size: 12.5px; color: #66707e; }
.vm-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px dashed var(--line-2); }
.vm-list li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.vm-list li b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.op-remark { display: block; margin-top: 6px; font-size: 13px; color: #7a4a12; background: #fff8ec; border-left: 3px solid #f0b45a; padding: 6px 10px; border-radius: 0 6px 6px 0; }
.norms.is-model .op-models { display: none; }
.nv-line { display: block; white-space: normal; text-align: right; }
.nv-line + .nv-line { margin-top: 6px; }
.nv-line small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; max-width: 300px; margin-left: auto; }
.norm-foot { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }
.norm-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.norm-legend p { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.norm-legend b { color: var(--text); }
.norm-box { margin-top: 40px; }
.norm-box .block-title { font-size: 26px; }
.nm-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; position: sticky; top: calc(var(--header-h) + 58px); z-index: 5; background: rgba(244, 245, 247, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 10px 0; }
.nm-btn { border: 1px solid var(--line-2); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.nm-btn span { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.nm-btn:hover { border-color: var(--accent); }
.nm-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.nm-btn.is-active span { color: var(--accent-hi); }
.norm-group { margin-bottom: 26px; }
.norm-group h3 { font-size: 18px; font-weight: 750; margin: 0 0 10px; }
.norm-group[hidden] { display: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 800 15px/1 var(--mono); color: var(--accent-hi); margin-bottom: 18px; letter-spacing: .08em;
}
.step h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* Article */
.article-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc li a:hover { color: var(--text); }
.toc li a.is-active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
.prose { font-size: 17.5px; line-height: 1.72; max-width: 760px; color: #1f2733; }
.prose .article-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin: 12px 0 30px; color: var(--text); }
.prose h3 { font-size: clamp(22px, 2.2vw, 27px); font-weight: 800; margin: 48px 0 16px; color: var(--text); }
.prose .article-title + h3 { margin-top: 0; }
.prose h4 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; color: var(--text); letter-spacing: -.01em; }
.prose p { margin: 0 0 1.05em; }
.checklist { list-style: none; margin: 4px 0 1.3em; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c94300' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.lead-box { margin-top: 36px; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: var(--ink-text); display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lead-box p { margin: 0; color: var(--ink-muted); max-width: 460px; }
.lead-box strong { display: block; color: #fff; font-size: 20px; margin-bottom: 4px; }

/* Parts */
.parts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.part {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.part:hover { transform: translateY(-2px); border-color: var(--line-2); }
.part-img { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.part-img img { max-height: 100%; width: auto; object-fit: contain; }
.part-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.part-art { font: 600 13px/1.2 var(--mono); color: var(--accent-ink); letter-spacing: .02em; }
.part-art span { color: var(--muted); font-family: var(--font); font-weight: 600; }
.part h3 { font-size: 16px; font-weight: 650; line-height: 1.35; margin: 8px 0 10px; letter-spacing: -.005em; }
.part details { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.part summary { cursor: pointer; color: var(--muted); font-weight: 600; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.part summary::-webkit-details-marker { display: none; }
.part summary::after { content: "+"; font-weight: 700; }
.part details[open] summary::after { content: "−"; }
.part details p { margin: 8px 0 0; line-height: 1.5; }
.part .btn { margin-top: auto; width: 100%; }

/* Docs + firmware */
.docs-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.doc-card { display: flex; flex-direction: column; gap: 14px; }
.doc-card h3 { font-size: 22px; }
.doc-card .stats { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.doc-card .stats b { color: var(--text); font-size: 20px; display: block; font-weight: 800; }
.doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin: 4px 0 6px; }
.doc-links a { font-size: 15px; text-decoration: none; color: var(--text); padding: 5px 0; display: flex; gap: 8px; align-items: baseline; }
.doc-links a::before { content: "›"; color: var(--accent); font-weight: 800; }
.doc-links a:hover { color: var(--accent-ink); }
.fw-list { display: grid; gap: 10px; }
.fw {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fbfbfc; text-decoration: none; color: var(--text);
  transition: border-color .15s, background .15s;
}
.fw:hover { border-color: var(--accent); background: #fff; color: var(--text); }
.fw .fw-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--accent-hi); flex: none; }
.fw b { font: 600 15px/1.2 var(--mono); display: block; }
.fw small { color: var(--muted); font-size: 13px; }
.fw .fw-size { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-4px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent-bg); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .09); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 52px; padding-bottom: 52px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; }
.cta-band p { margin: 10px 0 0; color: rgba(255, 255, 255, .88); font-size: 17px; }
.cta-band .btn { background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* Price page */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.subnav a:hover { border-color: var(--accent); color: var(--accent-ink); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.has-subnav [id] { scroll-margin-top: 64px; }
.block-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.block-title .tag { font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 9px; border-radius: 6px; }

/* Manual */
.manual-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.manual-card { display: flex; flex-direction: column; gap: 16px; padding: 30px; }
.manual-card .mc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.manual-card h2 { font-size: 28px; font-weight: 800; }
.manual-card .mc-sub { color: var(--muted); margin-top: 6px; }
.manual-card .badge { font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--accent-hi); white-space: nowrap; }
.manual-card ul { list-style: none; display: grid; gap: 6px; }
.manual-card li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.manual-card li b { color: var(--text); font-weight: 600; }
.manual-card .btn { align-self: flex-start; margin-top: 6px; }

.doc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 36px; padding-bottom: 84px; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.doc-nav-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.doc-nav-head a { text-decoration: none; color: var(--text); font-weight: 800; font-size: 17px; }
.doc-nav-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.doc-nav-body { padding: 8px 10px 14px; }
.doc-nav .dn-sec { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 6px; }
.h1-code { font-size: .55em; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: .15em .45em; border-radius: 8px; vertical-align: middle; letter-spacing: 0; }
.doc-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #f1f5fb; border: 1px solid #dbe5f3; color: #2c3d55; font-size: 14.5px; }
.doc-note .ico { color: #2f6fed; margin-top: 2px; }
.doc-nav ul { list-style: none; }
.doc-nav li a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.doc-nav li a small { color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 2px; }
.doc-nav li a:hover { background: #f3f4f6; }
.doc-nav li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.doc-nav-toggle { display: none; }
.doc-main { min-width: 0; }
.doc-head { margin-bottom: 22px; }
.doc-head .crumbs-light { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.doc-head .crumbs-light a { color: var(--muted); text-decoration: none; }
.doc-head .crumbs-light a:hover { color: var(--accent-ink); }
.doc-head h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.doc-meta .chip { font-size: 13.5px; }
.doc-meta .chip .ico { color: var(--accent-ink); }
.doc-meta .spacer { flex: 1; }
.pages { display: grid; gap: 18px; }
.page-sheet { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.page-sheet a { display: block; cursor: zoom-in; }
.page-sheet img { width: 100%; height: auto; background: #fff; }
.page-sheet.is-zoomed { overflow-x: auto; }
.page-sheet.is-zoomed a { cursor: zoom-out; width: max-content; }
.page-sheet.is-zoomed img { width: auto; max-width: none; }
.pages-hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.page-no { position: absolute; top: 10px; right: 10px; font: 600 12px/1 var(--font); color: var(--muted); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); padding: 5px 8px; border-radius: 6px; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.doc-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.doc-pager a:hover { border-color: var(--accent); }
.doc-pager small { color: var(--muted); font-size: 13px; }
.doc-pager b { font-weight: 650; }
.doc-pager .next { text-align: right; grid-column: 2; }
.doc-disclaimer { margin-top: 22px; color: var(--muted); font-size: 14px; }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.toc-group h3 { font-size: 17px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.toc-group h3 small { color: var(--muted); font-weight: 500; font-size: 13px; }
.toc-group ul { list-style: none; display: grid; gap: 2px; }
.toc-group li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.toc-group li a small { color: var(--muted); white-space: nowrap; }
.toc-group li a:hover { color: var(--accent-ink); }

/* Contacts */
.hero-photo { position: relative; color: var(--ink-text); background: var(--ink); overflow: hidden; }
.hero-photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 15, 20, .96) 0%, rgba(11, 15, 20, .75) 55%, rgba(11, 15, 20, .45) 100%); }
.hero-photo .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero-photo h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: #fff; margin: 14px 0 14px; }
.hero-photo .lead { color: #c4ccd8; font-size: 18px; max-width: 640px; }
.contact-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.contact-card { display: flex; flex-direction: column; gap: 22px; }
.contact-group h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-family: var(--font); }
.contact-group a.tel { display: block; font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.01em; line-height: 1.4; }
.contact-group a.tel:hover { color: var(--accent-ink); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.contact-line .ico { color: var(--accent-ink); margin-top: 3px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
.open-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.open-state i { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b6; }
.open-state.is-open { color: var(--ok); }
.open-state.is-open i { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 85, .15); }
.map-card { padding: 0; overflow: hidden; min-height: 460px; }
.map-card iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.map-card { position: relative; }
.js .map-card iframe { pointer-events: none; }
.js .map-card.is-map-active iframe { pointer-events: auto; }
.map-activation { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 18px; }
.map-activation span { display: grid; gap: 2px; text-align: center; background: rgba(11, 15, 20, .84); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); }
.map-activation small { color: var(--ink-muted); font-size: 12.5px; }
.map-activation:hover span, .map-activation:focus-visible span { background: var(--ink); }
.is-map-active .map-activation { display: none; }
.map-deactivation { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); border: 0; cursor: pointer; background: rgba(11, 15, 20, .84); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; }
html:not(.js) .map-activation { display: none; }
.cams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cam { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--ink-3); aspect-ratio: 16 / 9; text-decoration: none; border: 1px solid var(--ink-line); }
.cam img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cam:hover img { transform: scale(1.03); }
.cam span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; font-weight: 600; background: rgba(11, 15, 20, .72); padding: 5px 10px; border-radius: 8px; }
.cam span i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, .25); }
.cam.cam-off img { visibility: hidden; }
.cam.cam-off::before { content: "Кадр сейчас недоступен — откройте видео"; position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--ink-muted); font-size: 13.5px; }
.cam.cam-off span i { background: #9aa6b6; box-shadow: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.notfound .code { font: 800 120px/1 var(--font-head); color: var(--accent); letter-spacing: -.04em; }
.notfound h1 { font-size: 30px; margin: 10px 0 12px; }
.notfound p { color: var(--muted); }
.notfound .hero-actions { justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-muted); font-size: 15px; }
.site-footer .wrap { padding-top: 60px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .foot-h { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 4px 0; }
.site-footer a { color: #c4ccd8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin: 16px 0 0; max-width: 340px; }
.footer-contacts a.tel { color: #fff; font-weight: 700; font-size: 17px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.social { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Mobile nav ---------- */
.drawer { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-phone span { display: none; }
  .header-phone { padding: 10px 12px; margin-left: auto; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .drawer {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--ink); transform: translateX(100%); transition: transform .25s ease; overflow: auto;
    visibility: hidden;
  }
  .drawer.is-open { transform: none; visibility: visible; }
  .drawer nav { display: grid; padding: 18px 20px; gap: 4px; }
  .drawer nav a { color: #fff; text-decoration: none; font-size: 20px; font-weight: 650; padding: 14px 6px; border-bottom: 1px solid var(--ink-line); }
  .drawer nav a[aria-current="page"] { color: var(--accent-hi); }
  .drawer .drawer-contacts { padding: 10px 26px 30px; color: var(--ink-muted); display: grid; gap: 6px; }
  .drawer .drawer-contacts a { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 300px; order: -1; display: none; }
  .grid-4, .steps, .parts-grid, .cams { grid-template-columns: repeat(2, 1fr); }
  .price-layout { grid-template-columns: 1fr; }
  .price-aside { position: static; }
  .article-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .doc-nav { position: static; max-height: none; }
  .js .doc-nav-body { display: none; }
  .js .doc-nav.is-open .doc-nav-body { display: block; }
  .js .doc-nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--text); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; cursor: pointer; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .hero .wrap { grid-template-columns: 1fr .8fr; }
}
@media (max-width: 860px) {
  .grid-3, .twocol, .docs-grid, .manual-cards, .toc-grid { grid-template-columns: 1fr; }
  .switch { grid-template-columns: 1fr 1fr; }
  .switch-label { grid-column: 1 / -1; padding: 0; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .norm-legend { grid-template-columns: 1fr; }
  .nm-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .nm-switch::-webkit-scrollbar { display: none; }
  .nm-btn { flex: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 8px 16px; }
  .switch { grid-template-columns: 1fr; }
  .switch .sw-tag { display: none; }
  .grid-4, .steps, .parts-grid, .footer-grid, .cams { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .part-body { padding: 12px; }
  .part h3 { font-size: 14.5px; }
  .part details { font-size: 12.5px; margin-bottom: 10px; }
  .part .btn { font-size: 13px; padding: 8px 8px; gap: 6px; white-space: nowrap; min-height: 38px; }
  .part .btn .ico { width: 14px; height: 14px; }
  .price-row { padding: 14px 16px; flex-direction: column; gap: 2px; }
  .card { padding: 20px; }
  .grid-3 { gap: 12px; }
  .symptom { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; padding: 18px; }
  .symptom .sym-ico { width: 42px; height: 42px; margin: 0; grid-row: span 2; }
  .symptom h3 { font-size: 16.5px; margin-bottom: 4px; }
  .symptom p { font-size: 14.5px; }
  .models .chip { padding: 7px 12px; font-size: 14px; }
  .prose { font-size: 17px; }
  .doc-links { grid-template-columns: 1fr; }
  .doc-pager { grid-template-columns: 1fr; }
  .doc-pager .next { grid-column: auto; }
  .fw { flex-wrap: wrap; }
  .gallery { grid-template-columns: 1fr; }
  .lead-box { padding: 22px; }
  .lead-box .btn { width: 100%; }
  .manual-card { padding: 22px; }
  .contact-group a.tel { font-size: 20px; }
  .norm-table td, .norm-table th { padding-left: 14px; padding-right: 14px; }
  .norm-table { font-size: 14.5px; }
  .nv-line small { max-width: 150px; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .switch-band, .doc-nav, .subnav, .doc-pager, .menu-btn { display: none !important; }
  .hero, .hero-photo { background: #fff !important; color: #000 !important; }
  .hero h1, .hero-photo h1 { color: #000 !important; }
  .doc-layout { display: block; }
  .page-sheet { break-inside: avoid; box-shadow: none; border: 0; }
}
