/* «Крепёж высокопрочный» (/metiz/krepezh-vysokoprochnyy): views/vs-*.pug, routes/metiz-vskpr.js, public/scripts/krepeg-vskpr.js.
   Поверх общего krepeg-nozn.css (переменные и классы kn-, ma-), свои — с приставкой vs-. Из мокапа, согласованного 2026-11-10. */
.vs-page { --vs-ok: #1f7a4a; --vs-pk: #8a5a00; }
/* переключатели карточки: исполнение, покрытие, класс — кнопки одной ширины (замечание пользователя 10.11), под значением — наличие */
.vs-sw { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; max-width: 560px; }
.vs-sw button { display: grid; gap: 2px; min-width: 0; padding: 7px 12px; border: 1px solid #d6dde3; border-radius: 8px; background: #fff; color: var(--ink); font: 600 14px 'Rubik', sans-serif; text-align: left; cursor: pointer; }
.vs-sw button small { font: 400 11.5px 'Rubik', sans-serif; color: #6b7785; }
.vs-sw button small.ok { color: var(--vs-ok); }
.vs-sw button small.pk { color: var(--vs-pk); }
.vs-sw button[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #eef3f8; }
.vs-sw button.is-none { border-style: dashed; color: #8794a1; }
.vs-sw button:focus-visible, .vs-page .ma-size:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.vs-lens-h { font-size: 12px; color: #6b7785; margin: 10px 0 6px; }
.vs-lens-h b { color: var(--ink); font-weight: 600; }
.vs-page .ma-size { text-decoration: none; display: inline-block; text-align: center; }
.vs-page .ma-size.vs-pkl { border-style: dashed; }
.vs-page .ma-size[aria-checked="true"].vs-pkl { border-style: solid; }
.vs-more { border: 0; background: none; color: var(--accent); font: 500 13px 'Rubik', sans-serif; cursor: pointer; padding: 7px 4px; text-decoration: underline; }
.vs-tag { display: inline-block; font: 600 11px 'Rubik', sans-serif; padding: 1px 7px; border-radius: 9px; background: #eef2f6; color: #3b5473; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.vs-tag.ost { background: #fff3c4; color: #7a5a00; }
.vs-tag.pk { background: #fdf0e1; color: var(--vs-pk); }
.vs-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; border: 1px solid #8a949e; }
.vs-dot.black { background: #2b2f33; border-color: #2b2f33; }
.vs-dot.light { background: #e3e6e9; }
.vs-dot.zn { background: linear-gradient(135deg, #dfe6ec, #b7c4cf); }
.vs-page .ma-buy .kn-stock { display: block; margin: 4px 0 10px; }
.vs-page .ma-cart:disabled { opacity: .5; cursor: default; }
/* «С этим товаром покупают» — гайки к болту */
.vs-kit { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.vs-kit h3 { margin: 0 0 8px !important; font: 600 15px 'Rubik', sans-serif; }
.vs-kr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.vs-kr .nm b { display: block; font-weight: 500; color: var(--ink); }
.vs-kr .nm small { color: #6b7785; font-size: 12px; }
.vs-kadd { border: 1px solid var(--accent); background: #fff; color: var(--accent); border-radius: 8px; padding: 6px 10px; font: 500 13px 'Rubik', sans-serif; cursor: pointer; white-space: nowrap; }
.vs-kadd:hover { background: var(--accent); color: #fff; }
.vs-q { transform: scale(.92); transform-origin: right center; }
/* чертёж без покрытия — заливка темнее */
.vs-bp .bd-part { fill: #aab1b8; } .vs-bp .bd-part-l { fill: #c6cbd0; }
.vs-svg svg { display: block; width: 100%; height: auto; }
.vs-page .kn-tile.vs-order { border-style: dashed; }
.vs-sec-note { font-size: 13px; color: #56687a; margin: -4px 0 0; max-width: 90ch; }
/* фото и чертёж в карточке «едут» при прокрутке — как карточка гвоздей (top 90px под закреплённой шапкой) */
@media (min-width: 992px) { .vs-page .ma > .ma-media { position: sticky; top: 90px; align-self: start; } }
.vs-page .vs-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .vs-page .vs-opts { grid-template-columns: minmax(0, 1fr); } }
/* все длины / все размеры: на компьютере — таблица, на телефоне — строки или плитки */
.vs-all-h { margin-top: 26px !important; }
.vs-all-note { font-size: 13px; color: #56687a; margin: 4px 0 10px; max-width: 90ch; }
.vs-nt { width: 100%; border-collapse: collapse; font-size: 14px; }
.vs-nt th { font: 600 12px 'Rubik', sans-serif; color: #6b7785; text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vs-nt td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.vs-nt th:first-child, .vs-nt td:first-child { text-align: left; }
.vs-nt td:first-child b { font-size: 15px; }
.vs-nt td small { display: block; font-size: 11px; color: #7a5a00; }
.vs-nt tbody tr:hover td { background: #f6f8fa; }
.vs-nt tr.is-cur td { background: #eef3f8; }
.vs-nt tr[data-al], .vs-nt tr[data-href] { cursor: pointer; }
/* цена в таблице гаек — ссылка на этот вариант (импорт / Россия) */
.vs-nt a.vs-pa { color: inherit; text-decoration: none; } .vs-nt a.vs-pa:hover b { text-decoration: underline; color: var(--accent); }
.vs-ok { color: var(--vs-ok); } .vs-no { color: var(--vs-pk); }
.vs-lrows { display: none; }
.vs-lrows h4 { margin: 14px 0 2px; font: 600 13px 'Rubik', sans-serif; color: #6b7785; }
.vs-lrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.vs-lrow.is-cur { background: #eef3f8; }
.vs-lrow small { font-size: 12px; }
.vs-lrow .p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-ng-f { display: grid; gap: 8px; margin: 10px 0 14px; }
.vs-ng-f .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vs-ng-f .lab { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7785; min-width: 150px; }
.vs-ng-f .ma-size { font: 600 13.5px 'Rubik', sans-serif; }
.vs-ng-f .ma-size[disabled] { opacity: .45; cursor: default; }
.vs-ntiles { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vs-ntile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; font-size: 13px; color: var(--text) !important; text-decoration: none !important; background: #fff; }
.vs-ntile .h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.vs-ntile .h b { font-size: 17px; }
.vs-ntile .h > span { font-size: 12px; color: #6b7785; }
.vs-ntile .pr { display: flex; justify-content: space-between; gap: 6px; }
.vs-ntile .pr b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-ntile.vs-click { cursor: pointer; }
.vs-ntile.vs-click:hover, .vs-ntile.is-cur { border-color: var(--accent); }
.vs-click { cursor: pointer; } tr.vs-click:hover td { background: #eef3f8 !important; } tr.vs-noclick:hover td, tr.vs-noclick td { background: transparent !important; } tr.is-cur td { background: #eef3f8 !important; }
.vs-pick { color: var(--accent); font-size: 12.5px; white-space: nowrap; } small.vs-sm { display: block; font-size: 11px; color: #7a5a00; }
.vs-hlt { min-width: 0; }
@media (max-width: 575px) {
  .vs-nt-wrap { display: none; } .vs-lrows { display: block; } .vs-ntiles { display: grid; } .vs-ng-f .lab { min-width: 0; width: 100%; }
  .vs-sw button { padding: 7px 8px; font-size: 13px; }
  .vs-kr { grid-template-columns: minmax(0, 1fr) auto; } .vs-kr .nm { grid-column: 1 / -1; }
}
/* ХЛ: своё количество у болта, гайки, шайбы */
.vs-kl { display: grid; grid-template-columns: minmax(0, 1fr) auto 112px; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.vs-kl .nm b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.vs-kl .nm small { color: #6b7785; font-size: 12px; }
.vs-kl .sm { text-align: right; }
.vs-kl .sm span { display: block; font-size: 11px; color: #6b7785; }
.vs-kl .sm b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-kl.is-zero .nm, .vs-kl.is-zero .sm { opacity: .45; }
.vs-link { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 12px 0 10px; cursor: pointer; font-weight: 400; }
.vs-link input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.vs-ktot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 12px; }
.vs-ktot > div { padding: 8px 12px; border-left: 1px solid var(--line); min-width: 0; }
.vs-ktot > div:first-child { border-left: 0; }
.vs-ktot span { display: block; font-size: 11px; color: #6b7785; text-transform: uppercase; letter-spacing: .04em; }
.vs-ktot b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.vs-kq .ma-cart { margin-left: 0; }
@media (max-width: 575px) {
  .vs-kl { grid-template-columns: minmax(0, 1fr) auto; } .vs-kl .nm { grid-column: 1 / -1; }
  .vs-ktot { grid-template-columns: 1fr 1fr; } .vs-ktot > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
/* тексты: сравнение двумя колонками, «коротко для покупателя» */
.vs-txt { max-width: 860px; }
.vs-txt h3 { margin: 18px 0 8px !important; }
.vs-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 14px; }
.vs-cmp > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; }
.vs-cmp h4 { margin: 0 0 6px; font: 600 15px 'Rubik', sans-serif; color: var(--ink); }
.vs-cmp p { margin: 4px 0; font-size: 13.5px; }
.vs-short { border: 1px solid #d7e0e8; background: #f3f7fa; border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.vs-txt .kn-tbl { min-width: 0; }
@media (max-width: 700px) { .vs-cmp { grid-template-columns: minmax(0, 1fr); } }
/* группа: диаметры строками */
.vs-grp { display: grid; gap: 8px; margin: 14px 0 8px; }
.vs-grow { display: grid; grid-template-columns: 120px 64px repeat(3, minmax(0, 1fr)) 24px; gap: 10px 16px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text) !important; text-decoration: none !important; }
.vs-grow:hover { border-color: var(--accent); background: #f8fafc; }
.vs-grow__ic { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.vs-grow__ic svg { max-width: 100%; height: auto; }
.vs-grow__d { font: 700 18px var(--f-num); color: var(--ink); }
.vs-grow__c { min-width: 0; font-size: 13.5px; }
.vs-grow__l { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7785; }
.vs-grow__go { color: var(--accent); font-size: 18px; text-align: right; }
@media (max-width: 860px) { .vs-grow { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); } .vs-grow__ic, .vs-grow__go { display: none; } }
@media (max-width: 575px) { .vs-grow { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); } .vs-grow__c:nth-of-type(3) { display: none; } }
/* подбор по параметрам на страницах групп (просьба пользователя 2026-11-10: «сразу таблицы — скучно»): фильтр слева, на компьютере закреплён */
.vs-lead { max-width: 90ch; }
.vs-gwrap { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 14px; }
@media (min-width: 992px) { .vs-gf { position: sticky; top: 90px; max-height: calc(100vh - 106px); overflow-y: auto; } }
@media (max-width: 991px) { .vs-gwrap { grid-template-columns: minmax(0, 1fr); } }
.vs-gf { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 14px 14px; min-width: 0; }
.vs-gf__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vs-gf__top b { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.vs-gf__reset { border: 0; background: none; color: var(--accent); font: 400 12.5px 'Rubik', sans-serif; text-decoration: underline; cursor: pointer; padding: 0; }
.vs-gf__sum { margin: 10px 0 2px; padding: 7px 10px; border-radius: 6px; background: #f6f8fa; font: 700 13px var(--f-num); color: var(--ink); overflow-wrap: anywhere; }
.vs-gf__h { margin: 12px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7785; }
.vs-gf__row { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-gf__hint { margin: 10px 0 0; font-size: 12.5px; color: #6b7785; }
.vs-gp, .vs-gd, .vs-gl { border: 1px solid #d6dde3; background: #fff; color: var(--ink); cursor: pointer; font: 500 13px 'Rubik', sans-serif; }
.vs-gp { border-radius: 16px; padding: 5px 11px; }
.vs-gd { width: 40px; height: 40px; border-radius: 50%; font: 700 13px var(--f-num); padding: 0; }
.vs-gl { border-radius: 7px; padding: 5px 8px; font: 700 12.5px var(--f-num); min-width: 40px; }
.vs-gl.is-pk { border-style: dashed; color: #6b7785; }
.vs-gp:hover, .vs-gd:hover, .vs-gl:hover { border-color: var(--accent); }
.vs-gp[aria-pressed="true"], .vs-gd[aria-pressed="true"], .vs-gl[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.vs-gp[disabled], .vs-gd[disabled] { opacity: .35; cursor: default; }
.vs-gp .vs-dot { vertical-align: -1px; }
.vs-gf__ck { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 13.5px; font-weight: 400; cursor: pointer; }
.vs-gf__ck input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.vs-gf__go { display: block; margin-top: 14px; text-align: center; text-decoration: none !important; color: #fff !important; }
.vs-gmeta { font-size: 13px; color: #6b7785; margin: 0 0 8px; }
.vs-gmeta b { color: var(--ink); }
.vs-gwrap .vs-grp { margin-top: 0; }
.vs-grow[hidden] { display: none; }
.vs-ntiles.vs-ntiles--all { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vs-nt2:hover { border-color: var(--accent); background: #f8fafc; }
@media (max-width: 575px) { .vs-ntiles.vs-ntiles--all { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs-gf { padding: 10px 12px 12px; } }
