/* «Список на счёт» (docs/krepezh-ux.md, пункт 3; мокап — docs/reference/spisok-mockup.html). Грузится на всех страницах (layout.pug).
   Без Bootstrap, свои классы: окно в режиме «list» (#modalMailView.mm--list, разметка — views/modal.pug, скрипты — mail-modal.js,
   spisok.js), блок «Есть список?» .spb-*, полоса на группах .spb-slim, кнопка на карточке .spb-btn (views/spisok-mixins.pug),
   страница после отправки .svc-* (views/service.pug). Шрифт заголовков — Unbounded, как в разделах крепежа (если не загрузится — Rubik). */
@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; }

/* ---------- окно: режим «Список на счёт» ---------- */
#modalMailView .mm-list-only { display: none; }
#modalMailView.mm--list .mm-list-only { display: block; }
#modalMailView.mm--list span.mm-list-only { display: inline; }
#modalMailView.mm--list .mm-cart-only { display: block; }
#modalMailView.mm--list .mm-grid.mm-cart-only { display: grid; }
#modalMailView.mm--list .mm-nolist, #modalMailView.mm--list .mm-cart-only.mm-nolist { display: none; }
#modalMailView.mm--list #ajax-contact-modal-form { display: flex; flex-direction: column; }
#modalMailView.mm--list .mm-o-msg { order: 1; margin-bottom: 10px; }
#modalMailView.mm--list .mm-o-pv { order: 2; }
#modalMailView.mm--list .mm-o-files { order: 3; }
#modalMailView.mm--list .mm-o-contacts { order: 4; padding-top: 14px; border-top: 1px solid #e3e8ed; }
#modalMailView.mm--list .mm-o-hint { order: 5; }
#modalMailView.mm--list .mm-o-org { order: 6; }
#modalMailView.mm--list .mm-o-consent { order: 7; }
#modalMailView.mm--list .mm-o-submit { order: 8; align-self: flex-start; }
#modalMailView.mm--list .mm-msg-label { font-weight: 500; }
#modalMailView.mm--list .mm-text { min-height: 140px; font-variant-numeric: tabular-nums; }
#modalMailView.mm--list .mm-submit { background: #febf00; color: #241800; }
#modalMailView.mm--list .mm-submit:hover { background: #f1b400; }
/* поле файла — за зоной «Выбрать файлы» (label for), но доступно с клавиатуры */
#modalMailView.mm--list .mm-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
#modalMailView.mm--list .mm-o-files { position: relative; }
#modalMailView.mm--list .mm-o-files:focus-within .mm-drop { border-color: #2d719d; box-shadow: 0 0 0 3px rgba(45, 113, 157, .15); }

.mm-drop { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0; padding: 12px 14px;
  border: 2px dashed #b9cadb; border-radius: 10px; background: #f1f6fc; cursor: pointer; font-weight: 400 !important; }
#modalMailView:not(.mm--list) .mm-drop { display: none !important; }
.mm-drop--over { border-color: #2d719d; background: #e3eef9; }
.mm-drop svg { width: 32px; height: 32px; fill: none; stroke: #3b5473; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mm-drop b { display: block; font-size: 14.5px; font-weight: 500; color: #2c3e50; }
.mm-drop small { display: block; font-size: 12.5px; color: #6f7d89; }
.mm-drop-btn { border: 1px solid #3b5473; color: #3b5473; background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.mm-files { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#modalMailView:not(.mm--list) .mm-files { display: none !important; }
.mm-files:empty { margin: 0; }
.mm-fchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 4px 3px 10px; border: 1px solid #d7e0e8; border-radius: 16px; background: #eef2f6; font-size: 13px; color: #333e48; }
.mm-fchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mm-fchip button { border: 0; background: none; color: #6f7d89; font-size: 17px; line-height: 1; padding: 0 5px; cursor: pointer; }
.mm-fchip--no { background: #fdecea; border-color: #f2c3be; color: #a1312b; padding-right: 10px; }

/* мгновенный разбор */
.mm-pv { margin: 0 0 12px; border: 1px solid #d7e0e8; border-radius: 10px; overflow: hidden; background: #fff; font-size: 13.5px; line-height: 1.4; color: #333e48; }
.mm-pv[hidden] { display: none !important; }
.mm-pv--busy { opacity: .65; transition: opacity .2s; }
.mm-pv-wait { padding: 10px 14px; color: #6f7d89; }
.mm-pv-file { padding: 7px 14px; background: #f7f8fa; border-bottom: 1px solid #e3e8ed; font-size: 13px; color: #44566a; }
.mm-pv-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 9px 14px; background: #eef2f6; border-bottom: 1px solid #d7e0e8; }
.mm-pv-sum b { color: #2c3e50; font-weight: 600; }
.mm-pv-tot { margin-left: auto; font: 600 16px/1.2 'Unbounded', 'Rubik', sans-serif; color: #2c3e50; white-space: nowrap; }
.mm-pv-rows { max-height: 340px; overflow-y: auto; }
.mm-pv-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 120px 96px; gap: 10px; align-items: baseline; padding: 7px 14px; border-top: 1px solid #eef1f4; }
.mm-pv-rows > .mm-pv-row:first-child, .mm-pv-rows > .mm-pv-grp:first-child > .mm-pv-row:first-child { border-top: 0; }
.mm-pv-grp { border-top: 1px solid #eef1f4; background: #fffbf0; }
.mm-pv-grp .mm-pv-row { border-top: 0; padding-top: 4px; padding-bottom: 4px; }
.mm-pv-grp .mm-pv-row--head { padding-top: 8px; }
.mm-pv-grp .mm-pv-row--v { padding-left: 132px; grid-template-columns: minmax(0, 1fr) 120px 96px; }
.mm-pv-grp .mm-pv-row--v > .mm-st { display: none; }
.mm-pv-t { min-width: 0; overflow-wrap: anywhere; }
.mm-pv-t a { color: #2d5f8a; font-weight: 500; text-decoration: none; }
.mm-pv-t a:hover { text-decoration: underline; }
.mm-pv-t a b { font-weight: 600; color: #2c3e50; }
.mm-pv-raw { display: block; font-size: 12px; color: #7b858e; }
.mm-pv-why { display: block; font-size: 12px; color: #8a5a00; }
.mm-pv-p { text-align: right; font-variant-numeric: tabular-nums; color: #44566a; font-size: 13px; }
.mm-pv-s { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; color: #2c3e50; }
.mm-pv-x { margin-left: 6px; border: 1px solid #d7e0e8; background: #fff; color: #6f7d89; border-radius: 50%; width: 24px; height: 24px; line-height: 20px; padding: 0; font-size: 16px; cursor: pointer; vertical-align: middle; }
.mm-pv-x:hover, .mm-pv-x:focus { border-color: #c0392b; color: #c0392b; }
.mm-pv-note { padding: 8px 14px; font-size: 12px; color: #6f7d89; background: #f7f8fa; border-top: 1px solid #e3e8ed; }
.mm-st { display: inline-block; justify-self: start; padding: 1px 8px; border-radius: 10px; font-size: 12px; line-height: 18px; white-space: nowrap; }
.mm-st--ok { background: #e8f6ee; color: #1f7a45; }
.mm-st--p { background: #e9effa; color: #2f5596; }
.mm-st--w { background: #fff4d6; color: #8a5a00; }
.mm-st--n { background: #eef1f4; color: #5d6b77; }
.mm-st--q { background: #fff1c2; color: #6b4a00; }

@media (max-width: 767px) {
  #modalMailView.mm--list .mm-o-submit { align-self: stretch; }
  .mm-drop { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; gap: 6px; }
  .mm-drop svg { display: none; }
  .mm-pv-rows { max-height: none; }
  .mm-pv-row, .mm-pv-grp .mm-pv-row--v { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding-left: 12px; padding-right: 12px; }
  .mm-pv-row > .mm-st { grid-column: 1 / -1; }
  .mm-pv-grp .mm-pv-row--v { padding-left: 24px; }
  .mm-pv-p { grid-column: 1; grid-row: 3; text-align: left; }
  .mm-pv-row > .mm-pv-t { grid-column: 1 / -1; }
  .mm-pv-s { grid-column: 2; grid-row: 3; }
  .mm-pv-tot { margin-left: 0; }
}

/* ---------- блок «Есть список?» (/metiz, разделы) ---------- */
.spb { display: grid; gap: 18px; margin: 32px 0 0; padding: 26px 28px; border: 1px solid #b7cfe6; border-radius: 20px;
  background: linear-gradient(135deg, #c9ddf1, #e3eef9 55%, #f1f6fc); color: #333e48; font-family: 'Rubik', sans-serif; line-height: 1.5; box-sizing: border-box; }
.spb *, .spb *::before, .spb *::after { box-sizing: border-box; }
.spb-q { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.spb-ic { width: 58px; height: 58px; border-radius: 14px; background: #fff; border: 1px solid #cddcec; display: flex; align-items: center; justify-content: center; }
.spb-ic svg, .spb-slim-ic svg, .spb-btn svg { fill: none; stroke: #3b5473; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spb-ic svg { width: 36px; height: 36px; }
.spb h2 { margin: 0 !important; font: 600 22px/1.25 'Unbounded', 'Rubik', sans-serif; color: #2c3e50; text-transform: none; letter-spacing: 0; text-wrap: balance; }
.spb-q p { margin: 8px 0 0; font-size: 16.5px; color: #44566a; max-width: 75ch; }
.spb-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.spb-way { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #cddcec; box-shadow: 0 2px 10px rgb(59 84 115 / .08); }
.spb-l { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #6f7d89; }
.spb-big { font: 500 17px/1.3 'Unbounded', 'Rubik', sans-serif; color: #2c3e50 !important; white-space: nowrap; text-decoration: none !important; }
.spb-way small { font-size: 13px; color: #6f7d89; margin-bottom: 8px; }
.spb-go { display: block; width: 100%; margin-top: auto; padding: 14px 16px; border: 0; border-radius: 12px; background: #febf00; color: #241800 !important;
  font: 500 16px/1.2 'Rubik', sans-serif; text-align: center; text-decoration: none !important; cursor: pointer; }
.spb-go:hover, .spb-go:focus { background: #f1b400; }
.spb-go--slate { background: #3b5473; color: #fff !important; }
.spb-go--slate:hover, .spb-go--slate:focus { background: #2e4560; }
.spb-go:focus-visible, .spb-btn:focus-visible { outline: 3px solid #7fb0e0; outline-offset: 2px; }
.spb-buy h3 { margin: 0 0 10px !important; font: 500 15px/1.3 'Rubik', sans-serif; color: #2c3e50; text-transform: none; }
.spb-buy-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.spb-c { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid #cddcec; border-radius: 12px; background: rgb(255 255 255 / .72); }
.spb-c b { font-size: 14.5px; font-weight: 500; color: #2c3e50; }
.spb-c span { font-size: 13.5px; line-height: 1.4; color: #44566a; }
.spb-c a { font-size: 13.5px; color: #2d5f8a; }
.spb-foot { margin-top: 8px; font-size: 13px; color: #55687b; }

/* полоса на страницах групп */
.spb-slim { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 24px 0 0; padding: 16px 18px; border: 1px solid #b7cfe6; border-radius: 12px;
  background: linear-gradient(110deg, #e3eef9, #f1f6fc 60%, #fffaf0); color: #333e48; font-family: 'Rubik', sans-serif; line-height: 1.45; box-sizing: border-box; }
.spb-slim-ic { width: 52px; height: 52px; border-radius: 10px; background: #fff; border: 1px solid #cddcec; display: flex; align-items: center; justify-content: center; }
.spb-slim-ic svg { width: 34px; height: 34px; }
.spb-slim b { display: block; margin-bottom: 3px; font-size: 16px; font-weight: 500; color: #2c3e50; }
.spb-slim small { display: block; font-size: 13.5px; color: #55687b; }
.spb-slim .spb-go { width: auto; margin: 0; padding: 12px 20px; white-space: nowrap; }

/* кнопка на карточке (гвозди, саморезы, такелаж, высокопрочный); в карточках крепежа — три кнопки .kn-btns (krepeg-nozn.css) */
.spb-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin: 12px 0 0; padding: 10px 14px; border: 1.5px solid #3b5473; border-radius: 10px;
  background: #fff; color: #3b5473 !important; font: 500 15px/1.25 'Rubik', sans-serif; text-align: left; text-decoration: none !important; cursor: pointer; box-sizing: border-box; }
.spb-btn:hover { background: #eef2f6; }
.spb-btn svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.7; }
.spb-btn small { display: block; font-size: 12.5px; font-weight: 400; color: #6f7d89; }

@media (max-width: 991px) {
  .spb-buy-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spb-big { font-size: 15.5px; }
}
@media (max-width: 767px) {
  .spb { padding: 20px 16px; border-radius: 16px; margin-top: 24px; }
  .spb h2 { font-size: 18px; }
  .spb-q { grid-template-columns: minmax(0, 1fr); }
  .spb-ic { display: none; }
  .spb-q p { font-size: 15.5px; }
  .spb-ways, .spb-buy-row { grid-template-columns: minmax(0, 1fr); }
  .spb-slim { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .spb-slim-ic { display: none; }
  .spb-slim .spb-go { width: 100%; }
}

/* ---------- /service после «Списка на счёт» ---------- */
.svc { display: grid; gap: 16px; max-width: 760px; margin: 24px auto 40px; color: #333e48; font-family: 'Rubik', sans-serif; line-height: 1.5; }
.svc-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.svc-ok { width: 54px; height: 54px; border-radius: 50%; background: #e8f6ee; display: flex; align-items: center; justify-content: center; }
.svc-ok svg { width: 30px; height: 30px; fill: none; stroke: #1f7a45; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc h1 { margin: 0; font: 600 22px/1.25 'Unbounded', 'Rubik', sans-serif; color: #2c3e50; text-transform: none; }
.svc-h p { margin: 4px 0 0; color: #44566a; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: svc; }
.svc-steps li { counter-increment: svc; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 12px; background: #f7f8fa; }
.svc-steps li::before { content: counter(svc); width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d7e0e8; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #3b5473; }
.svc-steps b { color: #2c3e50; font-weight: 500; }
.svc-steps span span { display: block; font-size: 14px; color: #44566a; }
.svc-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc-ways > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid #cddcec; border-radius: 12px; background: #f1f6fc; }
.svc-l { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #6f7d89; }
.svc-ways a { font-weight: 500; font-size: 16px; color: #2c3e50; }
.svc-ways small { font-size: 13px; color: #6f7d89; }
.svc-back { justify-self: start; padding: 10px 16px; border: 1px solid #d7e0e8; border-radius: 8px; background: #fff; color: #2c3e50 !important; text-decoration: none !important; }
@media (max-width: 767px) { .svc-ways { grid-template-columns: minmax(0, 1fr); } .svc h1 { font-size: 19px; } }

/* ---------- карточки крепежа: кнопки под фото вместо строк-ссылок (views/kn-mixins.pug, knTools) ---------- */
.kn-btns { display: grid; gap: 8px; }
.kn-btn2 { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin: 0; padding: 9px 14px; border: 1.5px solid #3b5473; border-radius: 10px;
  background: #fff; color: #3b5473 !important; font: 500 14.5px/1.25 'Rubik', sans-serif; text-align: left; text-decoration: none !important; cursor: pointer; box-sizing: border-box; }
.kn-btn2:hover { background: #eef2f6; }
.kn-btn2:focus-visible { outline: 3px solid #7fb0e0; outline-offset: 2px; }
.kn-btn2 svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kn-btn2 small { display: block; font-size: 12px; font-weight: 400; color: #6f7d89; }
.spb-card { max-width: 460px; margin: 4px 0 8px; }
.spb-card .spb-btn { margin: 0; }

/* блок связи «Гвоздей» с третьей плашкой «Список на счёт» (views/gvozd-cta.pug) */
.gvz-ways.gvz-ways--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gvz-way button.gvz-btn { width: 100%; border: 0; cursor: pointer; }
.gvz-cta .spb-buy { margin-top: 4px; }
@media (max-width: 767px) { .gvz-ways.gvz-ways--3 { grid-template-columns: minmax(0, 1fr); } }
