/* Строймаг — дизайн-система v2 «светлый маркетплейс стройки».
   Белый фон и песочные полосы, тёмно-синий (доверие) + сигнальный оранжевый (действие), WhatsApp — зелёный.
   Скругления 14/20/24, крупные фото, иконки — рисованные SVG (src/build/ui.ts). Фирменная деталь — «три кирпича»
   (логотип, метка над H2, узор первого экрана). Один файл, без фреймворков; мобильная версия — основная. */

@font-face { font-family: "Onest"; src: url(/assets/fonts/onest-cyr.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url(/assets/fonts/onest-lat.woff2) format("woff2"); font-weight: 400 800; 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+20B8, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url(/assets/fonts/unbounded-cyr.woff2) format("woff2"); font-weight: 500 700; 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(/assets/fonts/unbounded-lat.woff2) format("woff2"); font-weight: 500 700; 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; }

:root {
  --navy: #16325c;      /* доверие: логотип, заголовки, тёмные полосы */
  --navy-2: #0f2442;
  --navy-soft: #eaf0f8;
  --brand: #f26a1b;     /* действие: кнопки, акценты, город в H1 */
  --brand-d: #d4560c;
  --brand-soft: #fff1e7;
  --wa: #1da851;
  --wa-d: #168a42;
  --bg: #ffffff;
  --sand: #f7f4ef;
  --sand-2: #efe9df;
  --line: #e7e1d6;
  --text: #1d2633;
  --muted: #667080;
  --ok: #1e7b4a;
  --err: #c0362c;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 12px; --r: 18px; --r-l: 26px;
  --shadow: 0 1px 2px rgba(22, 50, 92, .06), 0 8px 24px rgba(22, 50, 92, .08);
  --shadow-l: 0 2px 6px rgba(22, 50, 92, .06), 0 24px 48px rgba(22, 50, 92, .14);
  --wrap: 1240px; --gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); font-variant-numeric: lining-nums; padding-bottom: 78px; }
@media (min-width: 900px) { body { padding-bottom: 0; font-size: 16.5px; } :root { --gut: 28px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: rgba(22, 50, 92, .3); text-underline-offset: 3px; }
a:hover { color: var(--brand-d); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid rgba(242, 106, 27, .55); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--navy); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(26px, 6.6vw, 46px); line-height: 1.16; }
h2 { font-size: clamp(22px, 4.6vw, 32px); line-height: 1.2; }
h3 { font: 700 18.5px/1.3 var(--body); }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.ic { width: 22px; height: 22px; flex: none; }
.ic-s { width: 18px; height: 18px; }
.ic-xl { width: 56px; height: 56px; stroke-width: 1.4; }
.ic-tile { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-d); }

/* ---------------------------------------------------------------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 14px;
  background: var(--brand); color: #fff; font: 700 16px/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(242, 106, 27, .28); transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--brand-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-l { min-height: 56px; padding: 14px 26px; font-size: 17px; border-radius: 16px; }
.btn-s { min-height: 40px; padding: 8px 14px; font-size: 14.5px; border-radius: 11px; box-shadow: none; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); box-shadow: 0 6px 16px rgba(29, 168, 81, .26); }
.btn-wa:hover { background: var(--wa-d); }
.btn-wa .ic { width: 22px; height: 22px; }
.btn-line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy-soft); }
.btn-line:hover { background: var(--navy-soft); color: var(--navy); }
.btn-soft { background: var(--brand-soft); color: var(--brand-d); box-shadow: none; }
.btn-soft:hover { background: #ffe2cf; color: var(--brand-d); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- шапка */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.logo-mark { width: 38px; height: 38px; }
.logo-t { display: flex; flex-direction: column; line-height: 1.05; }
.logo-t b { font: 600 18px/1 var(--display); letter-spacing: -.01em; }
.logo-t small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.nav { display: none; }
.citypick { position: relative; margin-left: auto; }
.citypick summary { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.citypick summary::-webkit-details-marker, .burger summary::-webkit-details-marker { display: none; }
.citypick summary:hover { background: var(--sand); }
.citypick summary .ic { color: var(--brand); }
.citypick summary .ic-s { color: var(--muted); width: 16px; height: 16px; }
.citypick-list { position: absolute; right: -60px; top: calc(100% + 8px); width: min(92vw, 520px); background: #fff; border-radius: var(--r); box-shadow: var(--shadow-l); padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 10px; z-index: 50; }
.citypick-list p { grid-column: 1 / -1; margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.citypick-list a { padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--text); }
.citypick-list a:hover, .citypick-list a[aria-current] { background: var(--brand-soft); color: var(--brand-d); }
.hdr-act { display: flex; align-items: center; gap: 8px; }
.hdr-phone, .hdr-cta { display: none; }
.hdr-wa span { display: none; }
.hdr-wa { padding: 8px 10px; min-height: 40px; }
@media (max-width: 520px) {
  .logo-t small { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-t b { font-size: 16px; }
  .citypick summary { padding: 6px; font-size: 14px; }
  .citypick summary .ic-s { display: none; }
  .hdr-in { gap: 6px; }
}
.burger summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 10px; color: var(--navy); display: flex; }
.burger-list { position: absolute; right: var(--gut); left: var(--gut); top: 66px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-l); padding: 10px; display: grid; z-index: 50; }
.burger-list a { padding: 13px 14px; border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 600; }
.burger-list a:hover { background: var(--sand); }
@media (min-width: 1100px) {
  .hdr-in { min-height: 76px; gap: 18px; }
  .nav { display: flex; gap: 2px; margin-left: 12px; }
  .nav a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
  .nav a:hover { background: var(--sand); color: var(--navy); }
  .nav a[aria-current] { color: var(--brand-d); background: var(--brand-soft); }
  .citypick-list { right: 0; }
  .hdr-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
  .hdr-phone .ic { color: var(--brand); width: 18px; }
  .hdr-wa span { display: none; }
  .hdr-wa { padding: 8px 10px; }
  .hdr-cta { display: inline-flex; }
  .burger { display: none; }
  .logo-t small { display: none; }
}
@media (min-width: 1280px) { .logo-t small { display: block; } }
@media (min-width: 900px) and (max-width: 1099px) { .hdr-wa span { display: inline; } .hdr-wa { padding: 8px 14px; } .hdr-cta { display: inline-flex; } }

.crumbs ol { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #b5ad9f; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-d); }

/* ---------------------------------------------------------------- первый экран */
.hero { position: relative; padding: 18px 0 36px; background:
  radial-gradient(1200px 380px at 85% -10%, rgba(242, 106, 27, .07), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--sand) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; opacity: .9;
  background: repeating-linear-gradient(90deg, var(--brand) 0 34px, transparent 34px 38px, var(--navy) 38px 72px, transparent 72px 76px); }
.hero-in { display: flex; flex-direction: column; gap: 16px; }
.hero-main, .hero-side { display: contents; }
.kicker { order: 0; display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kicker .ic { color: var(--brand); }
.hero h1 { order: 1; }
.hl { color: var(--brand); }
.lead-p { order: 2; font-size: 16px; line-height: 1.6; color: #354052; margin: 0; max-width: 62ch; }
.hero-fig { order: 3; }
.offers { order: 4; }
.hero-btns { order: 5; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btns .btn { flex: 1 1 100%; }
.quick { order: 6; }
.qform { order: 7; }
@media (min-width: 560px) { .hero-btns .btn { flex: 1 1 auto; } }
@media (min-width: 1000px) {
  .hero { padding: 26px 0 64px; }
  .hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: start; }
  .hero-main, .hero-side { display: flex; flex-direction: column; gap: 20px; }
  .hero-btns .btn { flex: 0 0 auto; }
  .hero-side { position: relative; padding-top: 8px; }
  .hero-side .qform { margin: -96px 22px 0; position: relative; z-index: 2; }
  .hero-nophoto .hero-side .qform { margin: 0; }
}

.fig { margin: 0; position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--sand-2); }
.fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-fig img { aspect-ratio: 16 / 11; }
.fig figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 9px; border-radius: 8px; background: rgba(15, 36, 66, .62); color: #fff; font-size: 11px; line-height: 1.35; }
.fig figcaption a { color: #fff; }
@media (min-width: 1000px) { .hero-side .fig figcaption { bottom: auto; top: 12px; } }

.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offers li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.offers .ic-tile { width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
.offers b { display: block; font-size: 14.5px; line-height: 1.25; color: var(--navy); }
.offers span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
@media (max-width: 420px) { .offers span { display: none; } .offers li { align-items: center; } }
@media (min-width: 1000px) { .offers { gap: 12px; } .offers li { padding: 14px; background: rgba(255, 255, 255, .8); } }

.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.quick div { background: #fff; border-radius: 12px; padding: 9px 12px; border: 1px dashed #d8cfbf; }
.quick dt { font-size: 12px; color: var(--muted); }
.quick dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; color: var(--navy); line-height: 1.3; }
@media (min-width: 1000px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.qform { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-l); padding: 20px; border: 1px solid var(--line); }
.qform-h { font: 600 19px/1.25 var(--display); color: var(--navy); margin: 0 0 4px; }
.qform-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

.page-head { padding: 22px 0 34px; background: linear-gradient(180deg, #fff, var(--sand)); }
.page-head h1 { margin: 10px 0 12px; }
.page-doc .prose { max-width: 78ch; }
.page-doc h2 { margin: 30px 0 12px; font-size: 24px; }

/* ---------------------------------------------------------------- секции */
.sec { padding: 44px 0; }
.sec-alt { background: var(--sand); }
.sec-head { margin-bottom: 22px; max-width: 78ch; }
.sec-head h2::before { content: ""; display: block; width: 46px; height: 10px; margin-bottom: 14px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand) 0 21px, transparent 21px 25px, var(--navy) 25px 46px); }
.sec-head p { margin: 10px 0 0; color: var(--muted); }
.sec-note { color: var(--muted); }
.more { margin: 18px 0 0; font-weight: 700; }
.more a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--brand-d); }
@media (min-width: 900px) { .sec { padding: 64px 0; } .sec-head { margin-bottom: 30px; } }
.prose { max-width: 76ch; }
.note { background: #fff; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 10px 14px; }
.sec-alt .note { background: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.split > *, .lead > *, .hero-in > * { min-width: 0; }
.prose, .article, .note, td, th { overflow-wrap: break-word; }
tbody th { min-width: 110px; }
.city-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.city-grid h3 { margin-bottom: 12px; }
@media (min-width: 1000px) { .city-grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; } }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; } }
.split h3 { margin: 0 0 12px; }
.split h3 + * { margin-bottom: 20px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.sec-alt .box { border-color: transparent; box-shadow: var(--shadow); }
.box h3 { margin-bottom: 12px; }
.box .btn { margin-top: 16px; }

/* полоса-призыв */
.cta-band { margin: 8px 0; padding: 22px; border-radius: var(--r-l); background: var(--navy); color: #fff; display: grid; gap: 14px;
  background-image: radial-gradient(500px 200px at 100% 0%, rgba(242, 106, 27, .28), transparent 70%); }
.cta-band p { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.45; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-btns .btn { flex: 1 1 160px; }
.cta-band-p { background-color: var(--navy); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 26px 32px; } .cta-btns .btn { flex: 0 0 auto; } }

/* ---------------------------------------------------------------- прайс */
.pricelist { background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.sec-alt .pricelist { border-color: transparent; box-shadow: var(--shadow); }
.pricelist ul { list-style: none; margin: 0; padding: 0; }
.pl-head { display: none; }
.pl-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); }
.pl-row:first-child { border-top: 0; }
.pl-name b { font-weight: 700; color: var(--navy); }
.pl-name b a { text-decoration: none; border-bottom: 1px dashed rgba(22, 50, 92, .35); }
.pl-name small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pl-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pr { font-weight: 800; font-size: 17px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr small { font-weight: 500; font-size: 13px; color: var(--muted); }
.pr-ask { color: var(--muted); font-weight: 600; }
.pr-ask small { margin-left: 4px; font-weight: 400; font-size: 12.5px; }
.pl-hl { background: #fffaf5; }
.pl-extra .pl-name b { font-weight: 600; }
@media (min-width: 760px) {
  .pl-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; padding: 12px 20px; background: var(--navy-soft); font-size: 13px; font-weight: 700; color: var(--navy); }
  .pl-row { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; padding: 14px 20px; }
  .pl-price { justify-content: flex-end; text-align: right; }
}
.pl-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.price-meta, .price-deliv, .districts { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.price-meta .ic, .price-deliv .ic, .districts .ic { color: var(--ok); margin-top: 2px; }
.price-deliv .ic, .districts .ic { color: var(--brand); }
.price-deliv b, .price-meta b { color: var(--text); }
.noprice { display: flex; gap: 14px; align-items: flex-start; background: var(--brand-soft); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.noprice .ic-tile { background: #fff; }
.noprice-h { font: 600 19px/1.25 var(--display); color: var(--navy); margin: 0 0 6px; }
.noprice + .pricelist { margin-top: 0; }
.near { margin-top: 16px; }
.near-h { font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.near ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.near li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: #fff; border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); }
.near li small { color: var(--muted); font-size: 12.5px; }
.near .pr { font-size: 15px; }

/* ---------------------------------------------------------------- карточки */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); transition: box-shadow .2s, transform .2s, border-color .2s; }
.sec-alt .card { border-color: transparent; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); color: var(--text); border-color: transparent; }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-ph { display: grid; place-items: center; color: #c3b8a5; background: linear-gradient(135deg, var(--sand-2), var(--sand)); }
.card-b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card-t { font-weight: 700; color: var(--navy); line-height: 1.3; font-size: 15.5px; }
.card-v { font-size: 13px; color: var(--muted); line-height: 1.4; }
.card-p { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--muted); }
.card-p b { color: var(--brand-d); font-size: 15px; }
@media (max-width: 420px) { .card-v { display: none; } .card-b { padding: 10px 12px 12px; } .card-t { font-size: 14.5px; } }

.sect-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .sect-tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sect-tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.sect-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); color: var(--text); }
.sect-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-2); }
.sect-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sect-tile:hover .sect-img img { transform: scale(1.04); }
.sect-b { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.sect-b b { font: 600 19px/1.25 var(--display); color: var(--navy); }
.sect-b span { color: var(--muted); font-size: 14.5px; }
.sect-go { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-d) !important; font-weight: 700; margin-top: 4px; }

.types { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.type { position: relative; background: #fff; border-radius: var(--r); padding: 18px 18px 16px; border: 1px solid var(--line); }
.sec-alt .type { border-color: transparent; box-shadow: var(--shadow); }
.type-n { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--navy-soft); color: var(--navy); font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.type h3 { margin-bottom: 6px; }
.type h3 a { text-decoration: none; }
.type p { color: #3f4a5a; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags span, .tag { display: inline-block; font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--sand); color: #4d5663; }
.sec-alt .tags span { background: var(--sand-2); }
.type-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-weight: 700; text-decoration: none; color: var(--brand-d); font-size: 14.5px; }

.when { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .when { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .when { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.when-i { background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.sec-alt .when-i { border-color: transparent; box-shadow: var(--shadow); }
.when-i .ic-tile { margin-bottom: 12px; }
.when-i h3 { margin-bottom: 6px; }
.when-i p { font-size: 15px; color: #3f4a5a; }
.when-f { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: auto 0 0; padding-top: 4px; }
.when-f a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-decoration: none; color: var(--brand-d); font-size: 14.5px; }

.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.case { background: #fff; border-radius: var(--r); padding: 20px; border: 1px solid var(--line); scroll-margin-top: 90px; }
.sec-alt .case { border-color: transparent; box-shadow: var(--shadow); }
.case:target { box-shadow: 0 0 0 3px var(--brand); }
.case h3 { margin-bottom: 8px; }
.case-given { color: #3f4a5a; font-size: 15px; }
.case-f { margin: 10px 0; padding: 12px 14px; background: var(--sand); border-radius: 12px; font-size: 14px; }
.case-f span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.case-f code { font: 500 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--navy); white-space: pre-wrap; word-break: break-word; }
.case-r { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 17px; color: var(--brand-d); }
.case-r .ic { color: var(--brand); }
.case-t { display: flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 600; margin: 0 0 8px; }
.case-t .ic { color: var(--muted); }
.case-a summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.case-a ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.case-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-weight: 700; text-decoration: none; color: var(--brand-d); font-size: 14.5px; }
.calc-wrap { margin-top: 28px; }
.calc-wrap h3 { margin-bottom: 12px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--ok); margin-top: 2px; }
.checks-2 li { background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.sec-alt .checks-2 li { border-color: transparent; box-shadow: var(--shadow); }
@media (min-width: 760px) { .checks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { margin: 4px 0 0; }
.step-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; }
.steps-4 li { background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); flex-direction: column; gap: 10px; }
.sec-alt .steps-4 li { border-color: transparent; box-shadow: var(--shadow); }
@media (min-width: 900px) { .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.steps-plain { padding-left: 22px; list-style: decimal; display: block; }
.steps-plain li { display: list-item; margin-bottom: 8px; }
.ticks { padding-left: 20px; }
.ticks li { margin-bottom: 6px; }

.mist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .mist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.mist li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.sec-alt .mist li { border-color: transparent; box-shadow: var(--shadow); }
.mist .ic-tile { background: #fde9e5; color: var(--err); }
.mist h3 { margin-bottom: 4px; font-size: 17px; }
.mist p { margin: 0; color: #3f4a5a; font-size: 15px; }

.qa { display: grid; gap: 14px; }
@media (min-width: 900px) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.qa-i { background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.sec-alt .qa-i { border-color: transparent; box-shadow: var(--shadow); }
.qa-i h3 { margin-bottom: 6px; font-size: 17px; }
.qa-i p { margin: 0; font-size: 15px; color: #3f4a5a; }

.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.factors li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); font-size: 15px; }
.sec-alt .factors li { border-color: transparent; box-shadow: var(--shadow); }
.factors .ic { color: var(--brand); margin-top: 2px; }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.sec-alt .faq details { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px 18px; font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--brand); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: #3f4a5a; }

.article { max-width: 76ch; }
.article h3 { font-size: 20px; margin: 26px 0 10px; }
.article h3:first-child { margin-top: 0; }
.article p { line-height: 1.7; }

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a, .pills span { display: inline-block; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.pills a:hover { border-color: var(--brand); color: var(--brand-d); }
.pills a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pills-static span { font-weight: 500; color: var(--text); }

.links-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .links-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .links-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.links-big a { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--r); padding: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; transition: box-shadow .2s, transform .2s; }
.sec-alt .links-big a { border-color: transparent; box-shadow: var(--shadow); }
.links-big a:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); color: var(--brand-d); }

.srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.srcs li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); }
.srcs .ic { color: var(--brand); margin-top: 3px; }
.srcs b { display: block; color: var(--navy); }
.srcs span { display: block; font-size: 14px; color: #3f4a5a; }
.srcs small { font-size: 12px; }
.srcs small a { color: var(--muted); }
.sources { margin-top: 16px; font-size: 13px; color: var(--muted); }
.sources summary { cursor: pointer; font-weight: 600; }
.sources ul { margin: 8px 0 0; padding-left: 18px; }
.sources a { color: var(--muted); word-break: break-all; }

/* ---------------------------------------------------------------- таблицы */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.sec-alt .tbl { border-color: transparent; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
thead th { text-align: left; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--navy-soft); padding: 11px 14px; white-space: nowrap; }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
tbody tr:first-child th, tbody tr:first-child td { border-top: 0; }
thead + tbody tr:first-child th, thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; color: var(--navy); }
tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
td.src { font-size: 12.5px; color: var(--muted); min-width: 120px; }
td.src a { color: var(--muted); }
table.trucks th .ic { color: var(--brand); vertical-align: -3px; margin-right: 6px; }
table.trucks td b { color: var(--brand-d); }
@media (max-width: 640px) { .hide-s { display: none; } tbody th, tbody td { padding: 10px 12px; } table { font-size: 14.5px; } }
.photos .ph-t img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }

/* ---------------------------------------------------------------- калькулятор */
.calc { background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.sec-alt .calc { border-color: transparent; box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-grid .f-wide { grid-column: 1 / -1; }
@media (min-width: 760px) { .calc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.calc-out { display: block; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); min-height: 54px; font-variant-numeric: tabular-nums; }
.calc-out b { color: var(--brand-d); font-size: 22px; }
.calc-out .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed #f3c9ab; }
.calc-out .row:last-child { border-bottom: 0; }
.calc-hint { color: var(--muted); font-size: 14px; }
.calc-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- формы */
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f span { font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: 400 16px/1.3 var(--body); color: var(--text); width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfaf7; min-height: 50px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667080' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(242, 106, 27, .15); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.lead-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lead-form-q { gap: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 1px 0 0; accent-color: var(--brand); }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lead-actions .btn { flex: 1 1 220px; }
.lead-status { margin: 0; font-weight: 600; font-size: 14.5px; }
.lead-status.ok { color: var(--ok); }
.lead-status.err { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent .lead-form > :not(.lead-actions) { display: none; }

.sec-lead { background: var(--navy); color: #fff; background-image: radial-gradient(700px 300px at 0% 100%, rgba(242, 106, 27, .25), transparent 70%); }
.lead { display: grid; gap: 22px; }
.lead-head h2 { color: #fff; margin-bottom: 10px; }
.lead-head h2::before { content: ""; display: block; width: 46px; height: 10px; margin-bottom: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) 0 21px, transparent 21px 25px, #fff 25px 46px); }
.lead-head p { color: #cdd7e6; }
.lead-points { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; }
.lead-points li { padding-left: 28px; position: relative; color: #fff; }
.lead-points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 4px var(--navy); outline: 2px solid var(--brand); }
.lead-or { margin: 0 0 10px; color: #cdd7e6; font-size: 14.5px; }
.lead .lead-form { background: #fff; color: var(--text); border-radius: var(--r-l); padding: 20px; }
@media (min-width: 900px) {
  .lead { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
  .lead .lead-form { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 28px; gap: 14px; }
  .lead .f-wide { grid-column: 1 / -1; }
  .lead-actions .btn { flex: 0 0 auto; }
}

/* ---------------------------------------------------------------- подвал, панель, мелочи */
.photo-credits { margin: 0; padding: 18px 0 4px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.photo-credits a { color: var(--muted); }
.ftr { background: var(--navy-2); color: #b8c4d6; padding: 40px 0 28px; font-size: 14.5px; }
.ftr a { color: #dfe6f0; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid #22385a; }
.logo-inv { color: #fff; }
.logo-inv .logo-t small { color: #8fa0b8; }
.ftr-contacts { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ftr-contacts a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.ftr-contacts .ic { color: var(--brand); width: 18px; }
.ftr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 26px; }
.ftr h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.ftr h3 a { color: #fff; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { padding: 3px 0; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .ftr-grid-5 { grid-template-columns: repeat(5, 1fr); } }
.ftr-cities { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #22385a; font-size: 13.5px; }
.ftr-note { margin-top: 16px; font-size: 12.5px; color: #8fa0b8; max-width: 100ch; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(22, 50, 92, .1); transition: transform .25s; }
.dock-cta { flex: 1; min-height: 52px; }
.dock-wa { flex: none; display: grid; place-items: center; width: 56px; height: 52px; border-radius: 14px; background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(29, 168, 81, .3); }
.dock-wa .ic { width: 28px; height: 28px; }
.dock.hide { transform: translateY(110%); }
@media (min-width: 900px) {
  .dock { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; box-shadow: none; }
  .dock-cta { display: none; }
  .dock-wa { width: 62px; height: 62px; border-radius: 50%; }
  .dock.hide { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .hdr, .ftr, .dock, .sec-lead, .qform { display: none; } }
@media (min-width: 900px) { .lead-p { font-size: 17.5px; } }
