/* CONCORD — стилі сайту.
   Ідея: сайт як технічний аркуш. Поле — холодний папір, структура — тонкі лінії сітки,
   креслення — синя туш, акцент — жовтий цинк (пасивоване покриття кріпежу). */

:root {
  --paper: #F3F5F6;
  --sheet: #FBFCFC;
  --ink: #1E262D;
  --steel: #5E6B76;
  --line: #CDD3D8;
  --line-soft: #E2E6E9;
  --blue: #1F4E79;
  --blue-soft: #E8EEF4;
  --zinc: #F2B705;
  --zinc-deep: #D9A300;
  --ok: #2E7D4F;
  --err: #B3261E;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-dw: "PT Sans Narrow", "Arial Narrow", sans-serif;

  --wrap: 1240px;
  --gut: 16px;
  --hdr: 68px;
  --r: 4px;
}
@media (min-width: 768px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r); font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; }
.btn-main { background: var(--zinc); color: var(--ink); border-color: var(--zinc); }
.btn-main:hover { background: var(--zinc-deep); border-color: var(--zinc-deep); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--sheet); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--blue); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-size: 1.2rem; letter-spacing: .08em; }
.brand-txt small { font-size: .78rem; color: var(--steel); }
.nav { display: none; align-items: stretch; height: 100%; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 100%; color: var(--ink); text-decoration: none;
  font: 500 .98rem/1 var(--font); background: none; border: 0; cursor: pointer; border-bottom: 2px solid transparent; }
.nav-link:hover, .mega.is-open .mega-btn { color: var(--blue); border-bottom-color: var(--blue); }
.mega-btn svg { width: 12px; height: 12px; transition: transform .15s; }
.mega.is-open .mega-btn svg { transform: rotate(180deg); }
.hdr-contacts { display: none; align-items: center; gap: 8px; margin-left: auto; }
.hdr-phone { font-weight: 600; color: var(--ink); text-decoration: none; margin-right: 6px; white-space: nowrap; }
.msg { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; }
.msg svg { width: 20px; height: 20px; }
.msg-viber { background: #7360F2; }
.msg-wa { background: #25D366; }
.msg:hover { color: #fff; filter: brightness(.92); }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1080px) {
  .nav, .hdr-contacts { display: flex; }
  .burger { display: none; }
}

/* ---------- мегаменю ---------- */
.mega { position: static; display: flex; }
.mega-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet);
  border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(30, 38, 45, .35); }
.mega.is-open .mega-panel { display: block; }
.mega-list { position: relative; list-style: none; margin: 0 auto; padding: 12px var(--gut) 20px; max-width: var(--wrap); min-height: 560px; }
.mega-item { width: 290px; }
.mega-sec { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; }
.mega-item.is-active > .mega-sec { background: var(--blue-soft); color: var(--blue); }
.ico { width: 48px; height: 48px; flex: none; color: var(--blue); }
.ico-s { width: 24px; height: 24px; }
.ico-m { width: 32px; height: 32px; }
.ico-l { width: 64px; height: 64px; }
.mega-sub { display: none; position: absolute; top: 12px; left: calc(var(--gut) + 310px); right: var(--gut); bottom: 20px;
  padding: 8px 0 0 28px; border-left: 1px solid var(--line); overflow: auto; }
.mega-item.is-active > .mega-sub { display: block; }
.mega-sub-title { display: inline-block; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 14px; }
.mega-sub-title:hover { color: var(--blue); }
.mega-cols { columns: 3 220px; column-gap: 32px; }
.mega-group { break-inside: avoid; margin-bottom: 20px; }
.mega-group-title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.mega-group-title:hover { color: var(--blue); }
.mega-group ul { list-style: none; margin: 0; padding: 0; }
.mega-group li a { display: block; padding: 2px 0; font-size: .9rem; color: var(--steel); text-decoration: none; }
.mega-group li a b { color: var(--blue); font-weight: 600; }
.mega-group li a:hover { color: var(--ink); }

/* мобільне меню */
.mnav { border-top: 1px solid var(--line); background: var(--sheet); max-height: calc(100vh - var(--hdr)); overflow: auto; }
.mnav-h { margin: 16px 0 8px; font-weight: 700; }
.mnav-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.mnav-list > li { border-bottom: 1px solid var(--line-soft); }
.mnav summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 500; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--steel); border-bottom: 1.5px solid var(--steel); transform: rotate(45deg); transition: transform .15s; }
.mnav details[open] summary::after { transform: rotate(-135deg); }
.mnav details ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 36px; }
.mnav details a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.mnav-links { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 24px; }
.mnav-links a { padding: 8px 0; font-weight: 600; color: var(--ink); text-decoration: none; }

/* ---------- головний екран ---------- */
.hero { border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 32px,
  linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 100%, var(--paper); }
.hero-in { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
.hero h1 { max-width: 14ch; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); letter-spacing: -0.025em; }
.hero-lead { font-size: 1.12rem; color: #39444e; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1.5px solid var(--ink); }
.hero-facts div { padding: 12px 12px 0 0; }
.hero-facts div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.hero-facts dd { margin: 4px 0 0; font-size: .88rem; color: var(--steel); }
.hero-sheet { margin: 0; }
.hero-sheet figcaption, .std-sheet figcaption { margin-top: 10px; font-size: .88rem; color: var(--steel); }
@media (min-width: 980px) {
  .hero-in { grid-template-columns: 5fr 7fr; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
}

/* ---------- креслення ---------- */
.drawing { width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(31, 78, 121, .35); }
.dw-sheet { fill: var(--sheet); stroke: none; }
.dw-m { fill: none; stroke: var(--blue); stroke-width: .9; stroke-linejoin: round; }
.dw-t { fill: none; stroke: var(--blue); stroke-width: .35; }
.dw-c { stroke: var(--blue); stroke-width: .3; stroke-dasharray: 12 2 1.5 2; }
.dw-h { fill: none; stroke: var(--blue); stroke-width: .45; stroke-dasharray: 3 1.5; }
.dw-hatch { stroke: var(--blue); stroke-width: .3; }
.dw-arrow { fill: var(--blue); }
.dw-txt { fill: var(--blue); font-family: var(--font-dw); font-style: italic; }
.dw-brand { letter-spacing: .06em; }

/* ---------- секції ---------- */
.sec { padding: 56px 0; }
@media (min-width: 980px) { .sec { padding: 80px 0; } }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.more { font-weight: 600; white-space: nowrap; }

.grid-cat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .grid-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-cat { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 16px 16px; background: var(--sheet); color: var(--ink); text-decoration: none; }
.cat a:hover { background: var(--blue-soft); }
.cat-t { font-weight: 600; line-height: 1.25; }
.cat-d { margin-top: auto; font-size: .82rem; color: var(--steel); }
.cat-special a { background: var(--ink); color: #fff; }
.cat-special a:hover { background: #2a3540; }
.cat-special .ico { color: var(--zinc); }
.cat-special .cat-d { color: #aeb8c1; }

.sec-special { background: var(--ink); color: #e9edf0; }
.sec-special h2 { color: #fff; }
.special-in { display: grid; gap: 28px; }
@media (min-width: 980px) { .special-in { grid-template-columns: 4fr 8fr; gap: 56px; } }
.special-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3a4651; }
.special-list a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid #3a4651; color: #e9edf0; text-decoration: none; }
.special-list a:hover b { color: var(--zinc); }
.special-list b { font-size: 1.15rem; }
.special-list span { color: #aeb8c1; font-size: .95rem; }
@media (min-width: 640px) { .special-list a { grid-template-columns: 2fr 3fr; align-items: baseline; gap: 24px; } }

.steps { list-style: none; counter-reset: st; margin: 24px 0 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: st; padding: 16px 20px 8px 0; display: grid; gap: 6px; }
@media (min-width: 800px) { .steps li + li { padding-left: 20px; border-left: 1px solid var(--line); } }
.steps li::before { content: counter(st); font: italic 1.6rem/1 var(--font-dw); color: var(--blue); }
.steps b { font-size: 1.1rem; }
.steps span { color: #39444e; }

/* ---------- форма ---------- */
.req { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.req-in { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gut); display: grid; gap: 28px; }
@media (min-width: 980px) { .req-in { grid-template-columns: 4fr 7fr; gap: 56px; padding-top: 72px; padding-bottom: 72px; } }
.req-copy p { color: #39444e; max-width: 46ch; }
.req-alt { font-size: .95rem; }
.form { display: grid; gap: 14px; }
.f-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 6px; }
.f span { font-weight: 500; font-size: .95rem; }
.f i { font-style: normal; color: var(--steel); font-weight: 400; }
.f input, .f textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #b9c1c8; border-radius: var(--r); padding: 11px 12px; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"] { border-color: var(--err); }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.f-status { margin: 0; font-weight: 500; }
.f-status.is-ok { color: var(--ok); }
.f-status.is-err { color: var(--err); }
.hp { position: absolute; left: -9999px; }

/* ---------- внутрішні сторінки ---------- */
.page { padding-top: 20px; padding-bottom: 56px; }
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .88rem; color: var(--steel); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--steel); }
.lead { font-size: 1.08rem; color: #39444e; max-width: 70ch; }
.page-head { display: flex; gap: 20px; align-items: flex-start; }
.page-head .ico-l { display: none; }
@media (min-width: 640px) { .page-head .ico-l { display: block; } }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 32px; }
.subnav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); color: var(--ink); text-decoration: none; font-size: .92rem; }
.subnav a:hover { border-color: var(--blue); color: var(--blue); }
.sub-block { margin-top: 36px; }
.sub-block h2 a { color: var(--ink); text-decoration: none; }
.sub-block h2 a:hover { color: var(--blue); }

.cat-all { display: grid; gap: 0; margin-top: 24px; border-top: 1.5px solid var(--ink); }
@media (min-width: 720px) { .cat-all { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1080px) { .cat-all { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cat-block h2 { font-size: 1.2rem; margin-bottom: 10px; }
.cat-block h2 a { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.cat-block h2 a:hover { color: var(--blue); }
.cat-block ul { list-style: none; margin: 0; padding: 0 0 0 44px; }
.cat-block li a { display: block; padding: 3px 0; color: #39444e; text-decoration: none; }
.cat-block li a:hover { color: var(--blue); text-decoration: underline; }

/* таблиці позицій */
.items { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--line); margin: 8px 0 16px; }
.items th, .items td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.items thead th { font-size: .85rem; font-weight: 600; color: var(--steel); background: var(--paper); border-bottom: 1px solid var(--line); }
.items tbody tr:hover { background: #f6f8fa; }
.it-code { white-space: nowrap; font-weight: 600; }
.it-code a { text-decoration: none; }
.it-an { color: var(--steel); font-size: .92rem; }
.it-act { text-align: right; white-space: nowrap; }
.lnk { font-weight: 500; font-size: .92rem; }
@media (max-width: 719px) {
  .items thead { display: none; }
  .items, .items tbody, .items tr, .items td { display: block; }
  .items tr { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  .items td { padding: 0; border: 0; }
  .items td.it-an:not(:empty)::before { content: "Аналоги: "; }
  .it-act { text-align: left; margin-top: 6px; }
}

.std-cards { display: grid; gap: 16px; margin: 20px 0 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.std-card { display: grid; gap: 10px; color: var(--ink); text-decoration: none; }
.std-thumb .drawing { box-shadow: none; }
.std-card:hover .drawing { border-color: var(--blue); }
.std-card-t b { display: block; color: var(--blue); }

/* сторінка стандарту */
.std-head h1 { max-width: 30ch; }
.std-code { color: var(--blue); white-space: nowrap; }
.analogs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--steel); }
.tag { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); color: var(--ink); font-size: .9rem; font-weight: 500; }
.std-grid { display: grid; gap: 28px; margin: 28px 0 40px; }
@media (min-width: 980px) { .std-grid { grid-template-columns: 8fr 4fr; gap: 40px; align-items: start; } }
.std-sheet { margin: 0; }
.std-side { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.std-side h2 { font-size: 1.2rem; }
.side-h { margin: 14px 0 4px; font-weight: 600; }
.std-side ul { margin: 0 0 8px; padding-left: 18px; color: #39444e; }
.std-side .btn { margin-top: 18px; }
.side-note { margin-top: 12px; font-size: .9rem; color: var(--steel); }
.table-scroll { max-width: 760px; overflow-x: auto; border: 1px solid var(--line); background: var(--sheet); }
.dim-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dim-table th, .dim-table td { padding: 9px 16px; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.dim-table thead th { font: italic 1.15rem/1 var(--font-dw); color: var(--blue); background: var(--paper); border-bottom: 1px solid var(--line); }
.dim-table th[scope="row"] { text-align: left; font-weight: 600; }
.dim-table thead th:first-child { text-align: left; }
.dim-table tbody tr:hover { background: var(--blue-soft); }
.note { font-size: .9rem; color: var(--steel); margin-top: 10px; }
.sib { margin-top: 40px; }
.sib-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sib-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.sib-list b { color: var(--blue); margin-right: 6px; }

.prose { max-width: 75ch; margin-top: 24px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .items { max-width: none; }
.contacts { display: grid; gap: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.contacts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .contacts div { grid-template-columns: 200px 1fr; } }
.contacts dt { color: var(--steel); }
.contacts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }

/* ---------- підвал ---------- */
.ftr { background: var(--ink); color: #c9d1d8; padding-top: 48px; font-size: .95rem; }
.ftr a { color: #e9edf0; text-decoration: none; }
.ftr a:hover { color: var(--zinc); }
.ftr-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 3fr 5fr 3fr; } }
.ftr-brand { font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; color: #fff; margin-bottom: 8px; }
.ftr-note { max-width: 36ch; }
.ftr-h { font-weight: 600; color: #fff; margin-bottom: 10px; }
.ftr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr-cols { columns: 2 180px; display: block; }
.ftr-cols li { margin-bottom: 6px; }
.ftr-bottom { margin-top: 40px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid #3a4651; font-size: .85rem; color: #8f9aa4; }

/* плаваючі месенджери на телефоні */
body:has(.burger[aria-expanded="true"]) .fab { display: none; }
.fab { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.fab-btn svg { width: 26px; height: 26px; }
.fab-btn:hover { color: #fff; }
@media (min-width: 1080px) { .fab { display: none; } }

/* ---------- інтерактивне складальне креслення ---------- */
.asm-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 500; color: var(--blue); }
.asm-hint svg { width: 22px; height: 22px; flex: none; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.asm .part, .asm .balloon, .asm .spec-row { cursor: pointer; }
.asm .pf { fill: var(--sheet); transition: fill .2s; }
.asm .part.is-hl .pf { fill: #FBE29A; }
.asm .part.is-hl .dw-m { stroke: var(--ink); }
.asm .bl { fill: var(--sheet); stroke: var(--blue); stroke-width: .7; transition: fill .2s; }
.asm .balloon.is-hl .bl { fill: var(--zinc); stroke: var(--ink); }
.asm .balloon.is-hl .bl-t { fill: var(--ink); font-weight: 700; }
.asm .balloon.is-hl .lead { stroke: var(--ink); stroke-width: .6; }
.asm .lead-dot { fill: var(--blue); }
.asm .spec-bg { fill: transparent; transition: fill .2s; }
.asm .spec-row.is-hl .spec-bg { fill: #FBE29A; }
.asm .spec-row.is-hl .dw-txt { fill: var(--ink); }
.asm .spec-code { font-weight: 700; }
.asm a:focus-visible { outline: none; }
.asm a:focus-visible .pf, .asm a:focus-visible .bl, .asm a:focus-visible .spec-bg { fill: #FBE29A; }
.asm > line, .asm > rect, .asm > text, .asm .dw-c { pointer-events: none; }

/* ---------- меню вибору деталі ---------- */
.asm-wrap { position: relative; }
.pick { position: absolute; z-index: 20; width: min(400px, 92%); max-height: 86%; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--zinc); border-radius: var(--r);
  box-shadow: 0 20px 48px -16px rgba(30, 38, 45, .45); padding: 14px 16px 16px; }
.pick[hidden] { display: none; }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pick-t { margin: 0; font-size: 1.15rem; font-weight: 700; }
.pick-x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--steel); cursor: pointer; border-radius: 50%; }
.pick-x:hover { background: var(--paper); color: var(--ink); }
.pick-x svg { width: 14px; height: 14px; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.pick-sub { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.pick-sub:hover { color: var(--blue); }
.pick-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pick-codes a { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; color: var(--steel); text-decoration: none; background: var(--sheet); }
.pick-codes a.is-detail { color: var(--blue); border-color: #b9c9d9; font-weight: 600; }
.pick-codes a:hover { border-color: var(--blue); color: var(--blue); }
.pick-all { display: inline-block; margin-top: 12px; font-weight: 600; }
@media (max-width: 639px) {
  .pick { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 75vh; border-radius: 12px 12px 0 0;
    border: 0; border-top: 3px solid var(--zinc); padding-bottom: 24px; }
  body.pick-open::after { content: ""; position: fixed; inset: 0; background: rgba(30, 38, 45, .35); z-index: 19; }
  body.pick-open .fab { display: none; }
}
.ftr-sub { color: #8f9aa4; font-size: .85rem; margin-left: 4px; }
.dd-sub { display: block; font-weight: 400; font-size: .95rem; margin-top: 2px; }
.ftr-legal { color: #aeb8c1; margin: -4px 0 10px; }
a[href^="tel:"], .nowrap { white-space: nowrap; }
.sub-fig { margin: 24px 0 28px; max-width: 980px; }
.sub-fig figcaption { margin-top: 10px; font-size: .9rem; color: var(--steel); }

/* питання і відповіді */
.faq { max-width: 75ch; margin-top: 40px; border-top: 1.5px solid var(--ink); }
.faq h2 { margin: 18px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 20px; width: 8px; height: 8px; border-right: 1.5px solid var(--steel); border-bottom: 1.5px solid var(--steel); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 16px; color: #39444e; }

/* перемикач мови */
.lang { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: .82rem; font-weight: 600; }
.lang a, .lang span { padding: 4px 6px; border-radius: 3px; text-decoration: none; }
.lang a { color: var(--steel); }
.lang a:hover { color: var(--blue); background: var(--blue-soft); }
.lang span { color: var(--ink); background: var(--paper); }
.hdr-contacts { margin-left: 12px; }
.lang + .burger { margin-left: 4px; }
@media (min-width: 1080px) { .lang { margin-left: 16px; order: 3; } .hdr-contacts { margin-left: auto; } }
.mega-group li a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.items .it-desc { display: block; margin-top: 3px; font-size: .86rem; line-height: 1.4; color: #5a6670; }
.side-range { margin: 0 0 8px; font-weight: 600; }
.std-about h2:first-child { margin-top: 0; }

/* ---------- калькулятор ---------- */
.nav-calc svg { width: 18px; height: 18px; color: var(--blue); }
.calc-tabs { display: grid; gap: 0; margin: 24px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--sheet); }
@media (min-width: 760px) { .calc-tabs { grid-template-columns: repeat(3, 1fr); } }
.calc-tabs [role="tab"] { display: grid; gap: 2px; text-align: left; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font: inherit; color: var(--steel); cursor: pointer; position: relative; }
@media (min-width: 760px) { .calc-tabs [role="tab"] + [role="tab"] { border-left: 1px solid var(--line); } }
.calc-tabs [role="tab"] b { color: var(--ink); font-size: 1.05rem; }
.calc-tabs [role="tab"] span { font-size: .86rem; }
.calc-tabs [role="tab"]:hover b { color: var(--blue); }
.calc-tabs [aria-selected="true"] { background: var(--paper); border-bottom-color: var(--paper); }
.calc-tabs [aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--zinc); }
.calc-tabs [aria-selected="true"] b { color: var(--blue); }
.calc-panel { border: 1px solid var(--line); border-top: 0; padding: 24px 18px 28px; background: var(--paper); }
@media (min-width: 760px) { .calc-panel { padding: 28px 28px 32px; } }
.calc-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .calc-grid { grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; } }
.calc-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.calc-row .f-wide { grid-column: span 2; }
@media (max-width: 520px) { .calc-row .f-wide { grid-column: auto; } }
.calc .f select, .calc .f input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--sheet); font: inherit; color: var(--ink); }
.calc .f span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.calc-kit { border: 1px dashed var(--line); border-radius: var(--r); padding: 10px 14px 2px; margin: 4px 0 14px; }
.calc-kit legend { padding: 0 6px; font-size: .88rem; color: var(--steel); }
.calc-kit[hidden], [data-f][hidden] { display: none; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.calc-out { background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 18px 20px; }
.calc-out dl { margin: 0 0 12px; display: grid; gap: 10px; }
.calc-out dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.calc-out dt { color: var(--steel); }
.calc-out dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc-out .calc-big dd { font-size: 1.7rem; color: var(--blue); line-height: 1.1; }
.calc-out .calc-big dt { color: var(--ink); font-weight: 600; }
.calc-note { font-size: .86rem; color: var(--steel); margin: 8px 0 0; }
.calc-notes { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .94rem; }
.calc-notes li { padding-left: 14px; border-left: 3px solid var(--line); }
.calc-notes .is-ok { border-left-color: var(--ok); }
.calc-notes .is-bad { border-left-color: var(--err); }
.calc-list { margin-top: 28px; }
.calc-list h2 { font-size: 1.25rem; }
.calc-empty { color: var(--steel); }
.calc .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc tfoot th, .calc tfoot td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.calc-x { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--steel); }
.calc-x:hover { color: var(--err); border-color: var(--err); }
.dim-table tr.is-cur th, .dim-table tr.is-cur td { background: var(--blue-soft); font-weight: 700; }
.calc-scheme { margin: 28px 0 0; background: var(--sheet); border: 1px solid var(--line); padding: 12px; }
.calc-scheme svg { width: 100%; height: auto; }
.calc-scheme figcaption { font-size: .86rem; color: var(--steel); margin-top: 6px; }
.sc-part { fill: #DDE6EE; stroke: var(--blue); stroke-width: 1.4; }
.sc-bolt { fill: #E8EEF4; }
.sc-nut { fill: #F6E7B0; stroke: #8A6A00; }
.sc-washer { fill: #FBFCFC; stroke: var(--blue); stroke-width: 1.2; }
.sc-pack { fill: url(#sc-hatch); stroke: var(--ink); stroke-width: 1.4; }
.sc-hl { stroke: var(--steel); stroke-width: 1; }
.sc-axis { stroke: var(--blue); stroke-width: .8; stroke-dasharray: 12 3 2 3; }
.sc-ext { stroke: var(--steel); stroke-width: .7; }
.sc-dim { stroke: var(--ink); stroke-width: .9; }
.sc-arrow { fill: var(--ink); }
.sc-t { font: 600 14px var(--font-dw); fill: var(--ink); text-anchor: middle; }
.sc-small { font-weight: 400; font-size: 12px; fill: var(--steel); }
.calc-faq { margin-top: 36px; max-width: 78ch; }
.calc-scheme svg { max-height: 340px; }
