/* Раздел «Крепёж без покрытия» (/metiz/krepeg-no-zn), /metiz/podbor-krepezha и главная /metiz.
   Шаблоны views/kn-*.pug, views/metiz-main.pug, views/podbor-krepezha.pug; скрипт public/scripts/krepeg-nozn.js;
   чертежи — public/scripts/bolt-draw.js (классы bd-*). По мокапу docs/reference/krepezh-bez-pokrytiya-mockup.html.
   Без Bootstrap: всё под .kn, свои классы с приставкой kn-. Строка заказа — .mprod-order из metall-product.css. */
@font-face { font-family: 'Unbounded'; src: url('/fonts/all_fonts/unbounded/unbounded-cyrillic.woff2') format('woff2'); font-weight: 500 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/all_fonts/unbounded/unbounded-latin.woff2') format('woff2'); font-weight: 500 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.kn {
  --ink: #2c3e50; --text: #333e48; --muted: #7f8c8d; --muted2: #8a939c; --faint: #b0bec9;
  --accent: #3b5473; --accent-d: #2c3e50; --accent-soft: #eef2f6; --accent-line: #d7e0e8;
  --yellow: #febf00; --line: #e0e0e0; --line2: #ebebeb; --soft: #f7f8fa; --paper: #fff;
  --ok: #1f7a45; --ok-bg: #e8f6ee; --warn: #8a5a00; --warn-bg: #fff4d6;
  --steel: #cfd6dd; --steel-l: #e6eaee; --grid: #f1f3f5;
  --f-head: 'Unbounded', 'Rubik', sans-serif; --f-num: 'Courier New', Consolas, monospace;
  color: var(--text); font-size: 14px; line-height: 1.55; padding-bottom: 40px;
}
.kn *, .kn *::before, .kn *::after { box-sizing: border-box; }
.kn h1, .kn h2, .kn h3 { color: var(--ink); margin: 0; text-wrap: balance; }
.kn p { margin: 0 0 10px; }
.kn button { font-family: inherit; }
.kn a { color: var(--accent); }
.kn-h1 { font-family: var(--f-head); font-weight: 600; font-size: 30px; line-height: 1.2; margin: 6px 0 0 !important; }
.kn-h1s { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 6px 0 10px !important; }
.kn-h2 { font-family: var(--f-head); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0 0 12px !important; }
.kn-h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px !important; }
.kn-lead { font-size: 15px; max-width: 70ch; margin: 10px 0 0; }
.kn-lead p { margin: 0 0 8px; }
.kn-muted { color: var(--muted); }
.kn-small { font-size: 12.5px; color: var(--muted); }
.kn-sec { margin-top: 32px; }
.kn-note { font-size: 13.5px; color: var(--muted); }
.kn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kn-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 12px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.kn-chip b { font-family: var(--f-num); color: var(--ink); }
.kn-badge { display: inline-block; padding: 1px 7px; border-radius: 3px; background: #f1f3f5; color: #6b7280; font-size: 11px; line-height: 17px; white-space: nowrap; }
.kn-badge--yes { background: var(--ok-bg); color: var(--ok); }
.kn-badge--q { background: var(--warn-bg); color: var(--warn); }
.kn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 6px; border: 2px solid var(--accent); background: var(--accent); color: #fff !important; font-weight: 500; font-size: 14px; text-decoration: none !important; cursor: pointer; white-space: nowrap; line-height: 1.3; }
.kn-btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.kn-btn--ghost { background: var(--paper); color: var(--accent) !important; border-color: var(--line); }
.kn-btn--ghost:hover { background: var(--paper); border-color: var(--accent); }
.kn-btn--yellow { background: var(--yellow); border-color: var(--yellow); color: #1d2630 !important; }
.kn-btn--yellow:hover { background: #f1b400; border-color: #f1b400; }
.kn-btn--s { padding: 6px 12px; font-size: 13px; }

/* раздел: hero и плитки */
.kn-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .kn-hero { grid-template-columns: minmax(0, 1fr); } }
.kn-photo { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.kn-photo img { display: block; width: 100%; height: auto; }
.kn-photo figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }
.kn-photo figcaption b { color: var(--ink); }
.kn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.kn-tile { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 6px; background: var(--paper); text-decoration: none !important; color: var(--text) !important; }
.kn-tile:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(59, 84, 115, .12); }
.kn-tile__ic { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; }
.kn-tile__ic svg { max-width: 72px; height: auto; }
.kn-tile__n { display: block; color: var(--accent); font-weight: 600; font-size: 15px; line-height: 1.25; }
.kn-tile__s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.kn-tile__p { display: block; margin-top: 6px; font-size: 13px; }
.kn-tile__p b { font-family: var(--f-num); }
.kn-ico-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kn-ico-fill { fill: var(--steel); stroke: var(--accent); stroke-width: 1.5; }
.kn-ico-acc { fill: none; stroke: #d39b00; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* соединение в сборе */
.kn-joint { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--paper); }
@media (max-width: 860px) { .kn-joint { grid-template-columns: minmax(0, 1fr); } }
.kn-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-seg button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 6px 12px; border-radius: 20px; font-size: 13px; cursor: pointer; font-family: var(--f-num); font-weight: 700; line-height: 1.2; }
.kn-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.kn-svgx { overflow-x: auto; }
.kn-svgx svg { display: block; width: 100%; min-width: 520px; height: auto; }
.kn-jl-list { display: grid; gap: 8px; align-content: start; }
.kn-jl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 8px; font-size: 13px; }
.kn-jl b { color: var(--ink); }
.kn-jl small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.kn-jl .kn-num { color: var(--ink); font-family: var(--f-num); font-weight: 700; }

/* плашки «Подбор крепежа» */
.kn-pb-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 12px; background: linear-gradient(110deg, var(--accent-soft), #f6f8fb 60%, #fffaf0); border: 1px solid var(--accent-line); text-decoration: none !important; color: var(--ink) !important; }
.kn-pb-banner:hover { border-color: var(--accent); }
.kn-pb-banner__ics { display: flex; gap: 8px; }
.kn-pb-banner__ics span { width: 52px; height: 52px; border-radius: 10px; background: var(--paper); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; }
.kn-pb-banner__ics svg { width: 36px; height: 36px; }
.kn-pb-banner b { display: block; font-size: 16px; margin-bottom: 3px; }
.kn-pb-banner small { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .kn-pb-banner { grid-template-columns: minmax(0, 1fr); } }
.kn-tools { border: 1px solid var(--accent-line); border-radius: 10px; overflow: hidden; background: var(--paper); line-height: 1.35; }
.kn-pb-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-top: 1px solid var(--accent-line); text-decoration: none !important; color: var(--ink) !important; }
.kn-pb-row:first-child { border-top: 0; }
.kn-pb-row:hover { background: var(--soft); }
.kn-pb-ic { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.kn-pb-ic svg { width: 18px; height: 18px; }
.kn-pb-row__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.kn-pb-row__t b { font-size: 13.5px; }
.kn-pb-row__t small { font-size: 11.5px; color: var(--muted); }
.kn-pb-go { color: var(--accent); font-weight: 700; }
.kn-bigcard { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; padding: 18px 20px; border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none !important; }
.kn-bigcard b.kn-bigcard__t { display: block; color: #fff; font-family: var(--f-head); font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.kn-bigcard p { margin: 0 0 12px; color: #d9e3ec; font-size: 13.5px; }
.kn-bigcard__res { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 12px; font-size: 12.5px; color: #d9e3ec; }
.kn-bigcard__res b { display: block; font-family: var(--f-num); font-size: 22px; color: #fff; margin: 2px 0; }
@media (max-width: 700px) { .kn-bigcard { grid-template-columns: minmax(0, 1fr); } }

/* раскладка с левой колонкой */
.kn-cols { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; align-items: start; }
@media (max-width: 991px) { .kn-cols { grid-template-columns: minmax(0, 1fr); } }

/* фильтр (как .pfilter у высокопрочного) */
.kn-pf { position: relative; background: var(--paper); border: 1px solid var(--line2); border-radius: 3px; padding: 20px 18px 22px; }
.kn-pf::before, .kn-pf::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--accent); opacity: .35; }
.kn-pf::before { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.kn-pf::after { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }
.kn-pf__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.kn-pf__title { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.kn-pf__reset { font-size: 11px; color: var(--faint); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.kn-pf__spec { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--f-num); font-size: 13px; line-height: 1.6; color: var(--faint); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 10px 10px; background-color: #fafbfc; border: 1px dashed #e3e8ed; border-radius: 2px; padding: 10px 12px; margin-bottom: 18px; }
.kn-pf__spec .on { color: var(--accent); font-weight: 700; }
.kn-pf__g { margin-bottom: 18px; }
.kn-pf__g:last-child { margin-bottom: 0; }
.kn-pf__gt { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--muted2); margin-bottom: 8px; }
.kn-dial { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.kn-dial button { display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid #d6dde3; background: var(--paper); color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; padding: 0; }
.kn-dial button:hover { border-color: var(--accent); }
.kn-dial button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.kn-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-pill { display: inline-flex; gap: 5px; align-items: center; padding: 6px 12px; border: 1px solid #e3e8ed; border-radius: 20px; background: var(--paper); color: var(--text); font-size: 12px; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.kn-pill:hover { border-color: var(--accent); color: var(--accent); }
.kn-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.kn-check { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; font-weight: 400; margin: 0; }

/* группа болтов */
.kn-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (max-width: 700px) { .kn-three { grid-template-columns: minmax(0, 1fr); } }
.kn-three figure { margin: 0; border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.kn-three figure > div { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 64px; overflow: hidden; }
.kn-three figcaption { font-size: 12.5px; color: var(--muted); }
.kn-three figcaption b { color: var(--ink); }
.kn-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 2px; margin: 22px 0 12px; font-size: 13px; color: var(--muted); }
.kn-bar b { color: var(--ink); }
.kn-rows { display: grid; gap: 10px; }
.kn-drow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--paper); }
.kn-drow[hidden] { display: none; }
@media (max-width: 640px) { .kn-drow { grid-template-columns: minmax(0, 1fr); } }
.kn-drow__h b { font-family: var(--f-num); font-size: 17px; color: var(--ink); }
.kn-drow__h small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.kn-drow__h a { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.kn-lchips { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.kn-lc { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 4px 6px 3px; border: 1px solid #d6dde3; border-radius: 6px; background: var(--paper); color: var(--ink) !important; line-height: 1.15; text-decoration: none !important; }
.kn-lc[hidden] { display: none; }
.kn-lc b { font-family: var(--f-num); font-size: 13px; }
.kn-lc small { font-size: 10.5px; color: var(--muted); }
.kn-lc:hover { border-color: var(--accent); background: var(--accent-soft); }
.kn-lc--out { border-style: dashed; opacity: .65; }
.kn-lc--pr b::after { content: " П"; font-size: 9px; color: var(--warn); font-family: 'Rubik', sans-serif; }
.kn-lc--ost { background: #fffaf0; }

/* таблицы */
.kn-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.kn-tbl { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 600px; }
.kn-tbl th, .kn-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: middle; }
.kn-tbl thead th { background: var(--soft); color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.kn-tbl td.n { font-family: var(--f-num); font-weight: 700; white-space: nowrap; color: var(--ink); }
.kn-tbl tr:last-child td { border-bottom: 0; }
.kn-tbl tr.is-sel { background: var(--accent-soft); }
/* строка под курсором — светло-жёлтая, чтобы не путать с выбранной (голубой); просьба пользователя 2026-10-20 */
.kn-tbl tbody tr:not(.is-sel):hover, .kn-ltab tbody tr:not(.is-sel):hover { background: #fff6d6; }

/* вопросы */
.kn-qa { display: grid; gap: 10px; max-width: 820px; }
.kn-qa details { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.kn-qa summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--ink); list-style: none; display: flex; gap: 10px; justify-content: space-between; }
.kn-qa summary::-webkit-details-marker { display: none; }
.kn-qa summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.kn-qa details[open] summary::after { content: "–"; }
.kn-qa .kn-ans { padding: 0 14px 12px; }
.kn-desc { margin-top: 26px; max-width: 820px; color: #444; }

/* страница диаметра */
.kn-dhead { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 14px; }
.kn-media { flex: 1 1 280px; max-width: 360px; display: grid; gap: 12px; align-content: start; }
.kn-frame { border-radius: 6px; border: 1px solid var(--line); background: var(--soft); overflow: hidden; }
.kn-frame img { display: block; width: 100%; height: auto; }
.kn-info { flex: 1 1 380px; min-width: 0; }
.kn-range { font-family: var(--f-num); font-size: 22px; font-weight: 700; color: #156192; margin: 12px 0 4px; }
.kn-range small { font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 400; color: var(--muted); }
.kn-specs-label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.kn-specs { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.kn-specs td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.kn-specs td:first-child { color: var(--muted); width: 42%; padding-right: 10px; }
.kn-specs td:last-child { color: var(--ink); font-family: var(--f-num); font-weight: 700; }
.kn-specs td small { font-family: 'Rubik', sans-serif; font-weight: 400; color: var(--muted); }
.kn-dchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kn-dchips a { font-family: var(--f-num); font-weight: 700; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 6px 12px; border-radius: 20px; text-decoration: none; line-height: 1.2; }
.kn-dchips a.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.kn-dchips a:hover { border-color: var(--accent); }
.kn-ltab-wrap { margin-top: 26px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kn-ltab-head { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line2); }
.kn-ltab-head h2 { font-size: 16px; }
.kn-ltab-scroll { overflow-x: auto; }
.kn-ltab { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13.5px; }
.kn-ltab th { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--paper); }
.kn-ltab td { padding: 7px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.kn-ltab tr:last-child td { border-bottom: 0; }
.kn-ltab tbody tr { cursor: pointer; }
.kn-ltab tbody tr.is-sel { background: var(--accent-soft); }
.kn-ltab tbody tr.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.kn-ltab .ic { width: 210px; }
.kn-ltab .n { font-family: var(--f-num); font-weight: 700; white-space: nowrap; color: var(--ink); }
.kn-ltab .nm { font-family: var(--f-num); font-weight: 700; color: var(--accent); white-space: nowrap; text-decoration: none; }
.kn-ltab .kg { font-family: var(--f-num); color: var(--muted); white-space: nowrap; }
.kn-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 500; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 0 6px; white-space: nowrap; }
.kn-sel { margin-top: 24px; scroll-margin-top: 90px; }
.kn-sel-title { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.kn-sel-title h2 { font-size: 20px; }
.kn-price { font-family: var(--f-num); font-size: 22px; font-weight: 700; color: #156192; }
.kn-price small { font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 400; color: var(--muted); }
.kn-stock { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ok); }
.kn-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.kn-stock--no { color: var(--muted); }
.kn-stock--no::before { background: var(--faint); }
.kn-draw { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.kn-draw__head { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line2); background: var(--soft); }
.kn-draw__head h3 { font-size: 15px; }
.kn-draw__body { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; padding: 10px 12px 14px; align-items: center; }
@media (max-width: 760px) { .kn-draw__body { grid-template-columns: minmax(0, 1fr); } }
.kn-draw__svg { overflow-x: auto; }
.kn-draw__svg svg { display: block; width: 100%; min-width: 560px; height: auto; }
.kn-draw__end svg { display: block; width: 170px; height: auto; margin: 0 auto; }
.kn-draw__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); }
.kn-draw__legend b { color: var(--ink); }
.kn .mprod-order { margin-top: 18px; }
.kn-kit { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kn-kit__head { padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.kn-kit__head h3 { font-size: 15px; }
.kn-kit__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 90px 100px 110px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line2); font-size: 13.5px; font-weight: 400; margin: 0; cursor: pointer; }
.kn-kit__row small { display: block; color: var(--muted); font-size: 12px; }
.kn-kit__row .kn-num { text-align: right; font-family: var(--f-num); font-weight: 700; color: var(--ink); }
.kn-kit__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--soft); }
.kn-kit__foot b { font-family: var(--f-num); }
@media (max-width: 640px) { .kn-kit__row { grid-template-columns: 28px minmax(0, 1fr) 90px; } .kn-kit__row .kn-hide-s { display: none; } }
.kn-lh { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--paper); scroll-margin-top: 90px; }
.kn-lh__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .kn-lh__grid { grid-template-columns: minmax(0, 1fr); } }
.kn-fld { display: grid; gap: 6px; margin-bottom: 12px; }
.kn-fld > label { font-size: 12.5px; color: var(--muted); font-weight: 400; margin: 0; }
.kn-num-in { display: flex; align-items: center; border: 1px solid #d8d8d8; border-radius: 6px; overflow: hidden; width: max-content; }
.kn-num-in button { width: 34px; height: 34px; border: 0; background: var(--soft); color: var(--accent); font-size: 16px; cursor: pointer; padding: 0; }
.kn-num-in input { width: 70px; height: 34px; border: 0; border-left: 1px solid #e3e3e3; border-right: 1px solid #e3e3e3; text-align: center; font-family: var(--f-num); font-size: 15px; font-weight: 700; color: var(--ink); }
.kn-num-in span { padding: 0 10px; font-size: 12px; color: var(--muted); }
.kn-ck { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; cursor: pointer; font-weight: 400; }
.kn-res { border-radius: 10px; background: var(--soft); padding: 12px 14px; margin-bottom: 10px; }
.kn-res__big { font-family: var(--f-num); font-size: 22px; font-weight: 700; color: var(--ink); }
.kn-res p { margin: 6px 0 0; font-size: 13px; }
.kn-res .warn { color: var(--warn); }
.kn-res .okc { color: var(--ok); }
.kn-lh__svg svg { display: block; width: 100%; height: auto; }

/* гайки и шайбы: чертёж и размеры выбранного размера (страница группы, страница гайки от М24) */
.kn-part { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--paper); }
.kn-part__svg svg { display: block; width: 100%; height: auto; }
.kn-part .kn-specs { margin-top: 0; }
@media (max-width: 760px) { .kn-part { grid-template-columns: minmax(0, 1fr); gap: 12px; } .kn-part__svg { max-width: 420px; } }
.kn-qty-s { width: 56px; height: 30px; text-align: center; border: 1px solid #d8d8d8; border-radius: 6px; font-family: var(--f-num); }
/* числа — по правому краю, запятые одна под другой */
.kn-tbl th.r, .kn-tbl td.r { text-align: right; }
/* таблица гаек/шайб: импорт и Россия — группы колонок «₽/шт · наличие · кнопка» (замечание пользователя 2026-10-20) */
.kn-vtab thead th { vertical-align: bottom; }
.kn-vtab th.kn-vtab__grp { text-align: center; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kn-vtab .kn-vtab__first { border-left: 1px solid var(--line); }
.kn-vtab td.kn-vtab__btn { width: 1%; white-space: nowrap; }
.kn-vtab .kn-stock { white-space: nowrap; font-size: 12.5px; }
.kn-vtab__line { display: block; white-space: nowrap; }
.kn-vtab__line small, .kn-otab td.r small { font-family: 'Rubik', sans-serif; font-weight: 400; font-size: 11px; color: var(--muted); }
/* страница гайки: исполнения строками, кнопка — у правого края таблицы */
.kn-otab .kn-otab__price { font-size: 15px; }
.kn-otab td.kn-otab__btn { width: 1%; text-align: right; white-space: nowrap; }
.kn-otab .kn-stock { white-space: nowrap; }

/* главная /metiz */
.kn-cov4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .kn-cov4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kn-cov4 { grid-template-columns: minmax(0, 1fr); } }
.kn-cov { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: var(--paper); text-decoration: none !important; color: var(--text) !important; }
.kn-cov:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(59, 84, 115, .12); }
.kn-cov > svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.kn-cov b { color: var(--accent); font-size: 15.5px; }
.kn-cov small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* подбор крепежа */
.kn-modes3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
@media (max-width: 760px) { .kn-modes3 { grid-template-columns: minmax(0, 1fr); } }
.kn-mcard { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-decoration: none !important; color: var(--text) !important; }
.kn-mcard:hover { border-color: var(--accent); }
.kn-mcard svg { width: 52px; height: 52px; }
.kn-mcard b { display: block; color: var(--ink); font-size: 14.5px; }
.kn-mcard small { color: var(--muted); font-size: 12.5px; display: block; }
.kn-mcard em { font-style: normal; display: block; margin-top: 6px; font-size: 12.5px; color: var(--accent); }
.kn-ex3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .kn-ex3 { grid-template-columns: minmax(0, 1fr); } }
.kn-ex { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--paper); }
.kn-ex b.kn-ex__t { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.kn-ex dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 8px 0 0; font-size: 12.5px; }
.kn-ex dt { color: var(--muted); font-weight: 400; }
.kn-ex dd { margin: 0; font-family: var(--f-num); font-weight: 700; color: var(--ink); }
.kn-ex__res { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 13px; }
.kn-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 700px) { .kn-out { grid-template-columns: minmax(0, 1fr); } }
.kn-out li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
.kn-out li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* чертежи (bolt-draw.js) */
.bd-part { fill: #cfd6dd; stroke: #56687a; stroke-width: 1.2; }
.bd-part-l { fill: #e6eaee; stroke: none; }
.bd-part-o { fill: none; stroke: #56687a; stroke-width: 1.2; }
.bd-thr { fill: none; stroke: #56687a; stroke-width: .8; }
.bd-thr-b { fill: none; stroke: #56687a; stroke-width: 1.6; }
.bd-thrzone { fill: rgba(254, 191, 0, .22); stroke: none; }
.bd-hole { fill: #fff; stroke: #56687a; stroke-width: 1; }
.bd-gap { fill: #fff; stroke: none; }
.bd-plate { fill: #e9edf1; stroke: none; }
.bd-hatch { stroke: #7f8c99; stroke-width: 1; }
.bd-axis { stroke: #b0bec9; stroke-width: .8; stroke-dasharray: 10 3 2 3; }
.bd-dim { stroke: #3b5473; stroke-width: 1; fill: none; }
.bd-arrow { fill: #3b5473; }
.bd-dimt { fill: #3b5473; font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 600; }
.bd-dimt2 { fill: #7f8c8d; font-family: 'Rubik', sans-serif; font-size: 11px; }
.bd-lead { fill: none; stroke: #7f8c8d; stroke-width: .9; }
.bd-dot { fill: #7f8c8d; }
.bd-lbl { fill: #2c3e50; font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 500; }
.bd-ico { display: block; max-width: 100%; height: auto; }
.bd-ico path, .bd-ico line, .bd-ico rect { vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: reduce) { .kn * { transition: none !important; } }
/* строка заказа: 4 колонки (наименование, количество, цена, итого) */
.kn-order .mprod-order-row { grid-template-columns: 2fr 1.2fr 1fr 1fr; }
@media (max-width: 767px) {
  .kn-order .mprod-order-row { display: block; }
  .kn-order .mprod-order-row.mprod-order-row--head { display: none; }
}
.bd-ico-n path, .bd-ico-n line, .bd-ico-n rect { vector-effect: non-scaling-stroke; }
/* главная /metiz: фото веток крепежа (metiz_category.img, 570×570) — кадр 3:2 */
.kn-cov img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: #f7f8fa; }
/* цели якорей: не прятаться под закреплённой шапкой (на телефоне она fixed) */
#raschet, .kn [id] { scroll-margin-top: 16px; }
@media (max-width: 767px) { #raschet, .kn [id] { scroll-margin-top: 92px; } }
