/* Стили сайта: перенесены из утверждённого макета design/mockups/home.template.html.
   Тема — тёмно-синяя (ADR 0002), класс theme-navy на <body>. */
@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest.8570a1a79929.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Токены дизайн-системы (раздел 13.2 ТЗ + цвета логотипа) */
:root {
  --ink: #16191e;
  --ink-2: #2a2f37;
  --muted: #5b636e;
  --line: #dadde1;
  --surface: #fff;
  --concrete-50: #f4f5f6;
  --concrete-100: #eceef0;
  --accent: #c2410c;          /* кнопки и ссылки: белый текст ≈ 5,2:1 (AA) */
  --accent-hover: #a8380a;
  --accent-bright: #f25c19;   /* оранжевый логотипа — только декор, без текста */
  --success: #2b7a3b;
  --focus: #1c7ed6;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgb(22 25 30 / .06), 0 8px 24px rgb(22 25 30 / .08);
  --wrap: min(1200px, 100% - 2rem);
  --header-h: 56px;
  --bar-h: 64px;
  color-scheme: light;
  interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font: 400 17px/1.5 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) { body { font-size: 18px; padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 750; }
p { text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.todo { outline: 2px dashed var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
.todo::after { content: " TODO"; font-size: .65em; font-weight: 700; color: var(--accent-bright); vertical-align: super; }
section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 52ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--accent-bright); border-radius: 2px; }

/* Появление при прокрутке — только CSS, только если браузер умеет и пользователь не против */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes reveal { from { opacity: 0; translate: 0 24px; } }
  }
}

/* Кнопки */
.btn {
  --bg: var(--accent); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.25rem; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 650; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { --bg: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-secondary { --bg: var(--ink); }
.btn-secondary:hover { --bg: var(--ink-2); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { --bg: var(--concrete-50); }
.btn-block { width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Шапка: прячется при прокрутке вниз, появляется при прокрутке вверх (10.1) */
.header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(22 25 30 / .08); transition: translate .25s;
}
.header.is-hidden { translate: 0 -100%; }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.logo-word { font-weight: 850; font-size: 1.15rem; letter-spacing: .02em; line-height: 1; }
.logo-word span { color: var(--accent-bright); }
.nav { display: none; gap: 1.25rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .92rem; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.header-phone { margin-left: auto; display: flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone .text { display: none; }
.header .btn { display: none; min-height: 40px; padding-block: .45rem; }
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .nav { display: flex; }
  .header-phone { margin-left: 0; }
  .header-phone .text { display: inline; }
  .header .btn { display: inline-flex; }
}

/* Первый экран */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--ink);
  padding-block: clamp(2rem, 1rem + 5vw, 5rem);
}
.hero::before { /* «бетонная» фактура без картинок */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgb(242 92 25 / .35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .wrap { display: grid; gap: 1.5rem; align-items: start; grid-template-areas: "title" "calc" "facts"; }
.hero-title { grid-area: title; } .hero-facts { grid-area: facts; } .hero .calc { grid-area: calc; }
@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; grid-template-rows: auto 1fr; grid-template-areas: "title calc" "facts calc"; column-gap: 3rem; row-gap: 0; }
  .hero-facts { align-self: start; margin-top: 1.5rem; }
}
@media (max-width: 1023px) { .hero-lead { margin-bottom: 0; } }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 4rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgb(255 255 255 / .82); max-width: 40ch; margin: 1rem 0 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.facts li { padding: .9rem 1rem; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.facts b { display: block; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.facts li > span { font-size: .85rem; color: rgb(255 255 255 / .7); }
.hero-note { margin-top: 1rem; font-size: .85rem; color: rgb(255 255 255 / .6); }

/* Калькулятор */
.calc { color: var(--ink); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.1rem, .8rem + 1.5vw, 1.75rem); }
.calc h2 { font-size: 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.calc h2 small { font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 479px) { .calc h2 small { display: none; } }
.field { display: grid; gap: .35rem; margin-top: 1rem; }
.field > label, .field > .label { font-size: .85rem; font-weight: 650; color: var(--muted); }
.control, select.control {
  width: 100%; min-height: 50px; padding: .65rem .9rem; font: inherit; color: var(--ink);
  background: var(--concrete-50); border: 2px solid transparent; border-radius: var(--radius); appearance: none;
}
select.control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b636e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.5rem; }
.control:focus { outline: none; border-color: var(--focus); background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 .75rem; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.row-grade { display: grid; grid-template-columns: 1fr; gap: 0 .75rem; }
/* марка — лента во всю ширину, подвижность под ней */
#mob-field[hidden] { display: none; }
.segmented.seg-4 { grid-template-columns: repeat(4, 1fr); }
.segmented label:has(input:disabled) { opacity: .35; cursor: not-allowed; }
.chips {
  display: flex; gap: .5rem; overflow-x: auto; overscroll-behavior-x: contain;
  margin-inline: -4px; padding: 4px; scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; display: grid; gap: .1rem; min-width: 84px; padding: .6rem .75rem;
  border: 2px solid transparent; border-radius: 12px; background: var(--concrete-50); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--line); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; }
.chip b { font-size: 1.05rem; font-weight: 750; line-height: 1.15; }
.chip span { font-size: .78rem; opacity: .7; }
.chip small { font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; opacity: .9; }
.chips-type .chip { min-width: auto; }
.chips-type .chip b { font-size: .92rem; font-weight: 650; }
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; mask-image: none; } }
.unit-price { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.unit-price b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stepper { display: grid; grid-template-columns: 56px minmax(5ch, 1fr) 56px; }
.stepper .control { font-size: 1.15rem; min-width: 0; }
.stepper .control { text-align: center; border-radius: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper button { min-height: 50px; border: 0; background: var(--concrete-100); font: inherit; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.stepper button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stepper button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stepper button:hover { background: var(--line); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--concrete-100); border-radius: var(--radius); }
.segmented label { position: relative; display: grid; place-items: center; min-height: 42px; border-radius: 7px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgb(22 25 30 / .15); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); }
.pump-boom[hidden], #sub-field[hidden], .extras[hidden] { display: none; }
.extras { margin-top: .75rem; border-radius: var(--radius); background: var(--concrete-50); }
.extras summary { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem .9rem; font-weight: 650; cursor: pointer; list-style: none; }
.extras summary::-webkit-details-marker { display: none; }
.extras summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: rotate .2s; }
.extras[open] summary::after { rotate: 180deg; }
.extras::details-content { block-size: 0; overflow: hidden; transition: block-size .25s, content-visibility .25s allow-discrete; }
.extras[open]::details-content { block-size: auto; }
.extras .opt-list { padding: 0 .5rem .6rem; }
.badge-count:not(:empty) { min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center; }
.opt-list { display: grid; gap: .25rem; }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; min-height: 44px; padding: .35rem .5rem; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.opt:hover { background: #fff; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.opt small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt-group { padding: .5rem .5rem .1rem; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 5; inset: calc(100% + 4px) 0 auto; max-height: 260px; overflow: auto;
  margin: 0; padding: .35rem; list-style: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.combo-list[hidden] { display: none; }
.combo-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .7rem; border-radius: 7px; cursor: pointer; font-size: .95rem; }
.combo-list li small { color: var(--muted); }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--concrete-50); }

.result { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.total-label { font-weight: 650; color: var(--muted); }
.total-sum { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total-sub { margin: .1rem 0 0; font-size: .85rem; color: var(--muted); text-align: right; }
.breakdown { margin-top: .75rem; }
.breakdown summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--accent); list-style: none; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::after { content: " ▾"; }
.breakdown[open] summary::after { content: " ▴"; }
.breakdown::details-content { block-size: 0; overflow: hidden; transition: block-size .25s, content-visibility .25s allow-discrete; }
.breakdown[open]::details-content { block-size: auto; }
.lines { margin: .6rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--concrete-100); }
.lines li span:first-child { color: var(--muted); }
.lines li.sub { padding-left: .9rem; font-size: .85rem; }
.notes { margin: .75rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .82rem; color: var(--muted); }
.notes li::before { content: "ℹ "; }
.calc-actions { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: 1.1rem; }
.disclaimer { margin: .75rem 0 0; font-size: .75rem; color: var(--muted); }
.result[data-state="manager"] .total-sum { font-size: 1.3rem; }

/* Карточки марок */
.grid-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card {
  container-type: inline-size; display: flex; flex-direction: column; gap: .75rem;
  padding: 1.25rem; border-radius: var(--radius-lg); background: var(--concrete-50); border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.card:hover { background: #fff; border-color: var(--line); }
.card h3 { font-size: 1.15rem; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.badges li { font-size: .75rem; font-weight: 650; padding: .2rem .5rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.price { margin-top: auto; display: flex; align-items: baseline; gap: .35rem; }
.price b { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); }
.card .btn { min-height: 44px; }
.updated { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tabs button { min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* «Почему у нас» — плитки */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 6; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--concrete-50); }
@media (min-width: 720px) { .bento > * { grid-column: span 3; } .bento .wide { grid-column: span 6; } }
@media (min-width: 1024px) { .bento > * { grid-column: span 2; } .bento .wide { grid-column: span 4; } }
.bento > :not(.dark) { background: #fff; border: 1px solid var(--line); }
.bento .dark { background: var(--ink); color: #fff; }
.bento .dark p { color: rgb(255 255 255 / .75); }
.bento h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.bento p { margin: 0; color: var(--muted); }
.bento .big { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: .5rem; }
.bento .accent { color: var(--accent-bright); }
.receipt { margin: 1rem 0 0; padding: 1rem; border-radius: var(--radius); background: rgb(255 255 255 / .06); font-size: .9rem; display: grid; gap: .35rem; }
.receipt div { display: flex; justify-content: space-between; gap: 1rem; }
.receipt div:last-child { border-top: 1px solid rgb(255 255 255 / .15); padding-top: .35rem; font-weight: 700; }

/* Шаги */
.steps { display: grid; gap: 1rem; counter-reset: step; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: step; padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent-bright); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Зоны доставки */
.zones { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .zones { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.where { display: grid; gap: 1rem; }
.where-search { position: relative; display: flex; align-items: center; gap: .6rem; padding: 0 1rem; min-height: 60px; border-radius: var(--radius-lg); background: #fff; border: 2px solid var(--line); }
.where-search:focus-within { border-color: var(--focus); }
.where-search .icon { color: var(--muted); }
.where-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 1.1rem; color: var(--ink); }
.where-search .combo-list { inset: calc(100% + 6px) 0 auto; }
.where-card { display: grid; gap: .75rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.where-card h3 { font-size: 1.35rem; }
.where-card .sub { color: rgb(255 255 255 / .65); font-size: .9rem; margin-top: .15rem; }
.where-card .price { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.where-card .price small { font-size: .95rem; font-weight: 600; color: rgb(255 255 255 / .7); }
.where-card ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: rgb(255 255 255 / .8); }
.where-card .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.where-card .btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25); }
.where-card .btn-ghost:hover { --bg: rgb(255 255 255 / .08); }
.where-pop-title { margin: .5rem 0 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.where-pop { display: flex; flex-wrap: wrap; gap: .5rem; }
.where-pop button, .where-pop a { display: inline-flex; gap: .4rem; align-items: baseline; min-height: 40px; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }
.where-pop button:hover, .where-pop a:hover { border-color: var(--ink); }
.where-pop small { color: var(--muted); font-variant-numeric: tabular-nums; }
.districts-more { display: none; }
@media (max-width: 1023px) {
  /* телефон: направления — одной лентой, районы — первые 4 и «Все районы» */
  .where-pop { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 2px 1rem; scroll-padding-inline: 1rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .where-pop::-webkit-scrollbar { display: none; }
  .where-pop button { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .districts:not(.is-open) li:nth-child(n+5) { display: none; }
  .districts-more { display: block; width: 100%; min-height: 44px; margin-top: .5rem; border: 0; background: none; font: inherit; font-weight: 650; color: var(--accent); text-align: left; cursor: pointer; padding: .5rem .25rem; }
  .districts.is-open + .districts-more { display: none; }
}
.districts { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; }
.districts a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .25rem; border-bottom: 1px solid var(--concrete-100); color: var(--ink); text-decoration: none; }
.districts a:hover { color: var(--accent); }
.districts small { color: var(--muted); }

/* Насосы и миксеры */
.pump-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.pump-card { display: grid; gap: .2rem; padding: 1rem 1rem 1.1rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, translate .15s; }
.pump-card:hover { border-color: var(--ink); box-shadow: var(--shadow); translate: 0 -2px; }
.pump-card .pump-img { width: 100%; height: auto; aspect-ratio: 457 / 175; margin-bottom: .5rem; }
.pump-card .len { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pump-card .len small { font-size: .9rem; font-weight: 650; color: var(--muted); }
.pump-card .shift { font-weight: 700; font-variant-numeric: tabular-nums; }
.pump-card .rates { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pump-group { margin: 1.5rem 0 .75rem; font-size: .9rem; font-weight: 700; color: var(--muted); }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.mixers { display: flex; align-items: end; gap: .5rem; height: 140px; margin: 1rem 0; }
.mixers div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: .35rem; font-size: .8rem; font-weight: 650; }
.mixers div i { width: 100%; height: calc(var(--v) * 8px); border-radius: 8px 8px 3px 3px; background: repeating-linear-gradient(135deg, var(--ink) 0 10px, var(--ink-2) 10px 20px); }
.callout { padding: 1rem 1.25rem; border-left: 4px solid var(--accent-bright); background: var(--concrete-50); border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }

/* Блок «Привезём от 1 м³» */
.mix { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .mix { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.mix-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.mix-facts li { padding: .9rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.mix-facts b { display: block; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 559px) {
  /* на телефоне — список строками: число слева, подпись справа */
  .mix-facts { grid-template-columns: 1fr; gap: 0; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
  .mix-facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border: 0; border-radius: 0; background: none; padding: .8rem 1rem; }
  .mix-facts li + li { border-top: 1px solid var(--concrete-100); }
  .mix-facts span { font-size: .9rem; text-align: right; }
}
.mix-facts span { font-size: .8rem; color: var(--muted); }
.mix-demo { padding: 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.mix-label { display: block; font-weight: 650; margin-bottom: .5rem; }
.mix-label output { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-left: .25rem; }
#mix-range { width: 100%; height: 32px; accent-color: var(--accent); cursor: pointer; }
.mix-bar { position: relative; height: 22px; margin-top: 1rem; border-radius: 999px; background: var(--concrete-100); overflow: hidden; }
.mix-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width .2s; }
.mix-bar .paid { background: repeating-linear-gradient(135deg, #f8c9ae 0 6px, #fde3d3 6px 12px); }
.mix-bar .ordered { z-index: 1; background: var(--accent-bright); }
.mix-legend { display: flex; gap: 1.25rem; margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.mix-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.ordered { background: var(--accent-bright); }
.sw.paid { background: repeating-linear-gradient(135deg, #f8c9ae 0 3px, #fde3d3 3px 6px); }
.mix-result { margin: 1rem 0 0; font-size: 1.05rem; }
.mix-result b { font-variant-numeric: tabular-nums; }
.mix-result .ok { color: var(--success); font-weight: 650; }
/* Качество */
.quality { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.quality div { padding: 1.25rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.quality h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.quality p { margin: 0; color: var(--muted); font-size: .95rem; }
.bg-concrete { background: var(--concrete-50); }

/* Вопросы */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 650; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .25s, content-visibility .25s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .answer { padding-bottom: 1.1rem; color: var(--muted); }
.faq .answer p { margin: 0 0 .5rem; }

/* Безопасность и заявка */
.warning { display: grid; gap: 1rem; grid-template-columns: auto 1fr; align-items: start; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: #fff4ed; border: 1px solid #fcd9c5; }
.warning svg { width: 28px; height: 28px; color: var(--accent); }
.warning h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.warning p { margin: 0; }
.lead { display: grid; gap: 2rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
@media (min-width: 1024px) { .lead { grid-template-columns: 1fr 1fr; align-items: center; } }
.lead p { color: rgb(255 255 255 / .75); }
.lead form { display: grid; gap: .75rem; }
.lead .control { background: #fff; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .82rem; color: rgb(255 255 255 / .75); }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.consent a { color: #fff; }

/* Подвал */
.footer { background: #0f1115; color: rgb(255 255 255 / .7); padding-block: 3rem; font-size: .9rem; }
.footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer h4 { color: #fff; margin: 0 0 .75rem; font-size: .95rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer a { color: rgb(255 255 255 / .8); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 1.5rem; font-size: .8rem; }

/* Липкая нижняя панель на мобильном (10.1) */
.bar {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(22 25 30 / .06);
}
.bar a { display: grid; place-items: center; align-content: center; gap: .15rem; font-size: .75rem; font-weight: 650; color: var(--ink); text-decoration: none; }
.bar a.main { background: var(--accent); color: #fff; }
@media (min-width: 1024px) { .bar { display: none; } }
/* пока открыта клавиатура, панель не закрывает поля ввода */
body:has(input:focus:not([type="checkbox"]):not([type="radio"]), select:focus) .bar,
body:has(input:focus:not([type="checkbox"]):not([type="radio"]), select:focus) .cookie { display: none; }
.cookie { position: fixed; z-index: 35; inset: auto 1rem calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom)); max-width: 420px; display: flex; gap: 1rem; align-items: center; padding: .75rem 1rem; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: .8rem; box-shadow: var(--shadow); }
.cookie a { color: #fff; }
@media (max-width: 1023px) { .cookie { font-size: .72rem; padding: .5rem .75rem; gap: .6rem; } }
.cookie button { flex: none; min-height: 36px; padding: .3rem .9rem; border: 0; border-radius: 8px; background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
@media (min-width: 1024px) { .cookie { inset: auto auto 1.5rem 1.5rem; } }
/* Вариант «Тёмно-синий»: синий вместо чёрного, оранжевый — акцент */
.theme-navy { --ink: #172338; --ink-2: #22314d; --muted: #556075; --line: #d8dee7; --concrete-50: #f3f5f8; --concrete-100: #e8ecf2; --focus: #2f6fd6; }
.theme-navy .footer { background: #101a2c; }
/* Вариант «Тёплый бетон»: тёплый камень, коричневый графит, терракота */
.theme-warm { --ink: #2b2420; --ink-2: #3b322c; --muted: #6b6159; --line: #e3dcd2; --concrete-50: #f6f2ec; --concrete-100: #ece6dd;
  --accent: #a8431f; --accent-hover: #8f3818; --accent-bright: #d9622b; }
.theme-warm body, body.theme-warm { background: #fffdfa; }
.theme-warm .footer { background: #221c18; }
.theme-warm .warning { background: #fbf1ea; border-color: #efd6c6; }
.theme-light .hero { background: var(--concrete-50); color: var(--ink); }
.theme-light .hero::before { opacity: .5; background: radial-gradient(900px 420px at 90% -20%, rgb(242 92 25 / .18), transparent 60%); }
.theme-light .hero h1 em { color: var(--accent); }
.theme-light .hero-lead { color: var(--muted); }
.theme-light .facts li { background: #fff; border-color: var(--line); }
.theme-light .facts li > span, .theme-light .hero-note { color: var(--muted); }
.theme-light .calc { box-shadow: 0 1px 2px rgb(22 25 30 / .06), 0 16px 40px rgb(22 25 30 / .1); }

/* Вместо inline-стилей (CSP: style-src 'self') */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-accent { fill: var(--accent-bright); }
.footer .logo svg { color: #fff; }
.footer-about { margin-top: 1rem; }
.mt-opts { margin-top: .75rem; }
.more-link { margin-top: 1.5rem; }
.h3-districts { margin-bottom: .75rem; }
.pumps-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.mix-title { margin: .25rem 0 .75rem; }
.mix-lead { color: var(--muted); margin: 0 0 1.25rem; }
.section-tight { padding-top: 0; }
.stack { display: grid; gap: 2rem; }
.lead-status { margin: 0; font-weight: 600; }
.lead-status.is-error { color: #b42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* Внутренние страницы: каталог, марки, прайс */
.hero-page { padding-block: clamp(1.25rem, .8rem + 2vw, 2.5rem) clamp(2rem, 1rem + 3vw, 4rem); }
.hero-page h1 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); }
.hero-slim .wrap { grid-template-areas: "title"; }
@media (min-width: 1024px) { .hero-slim .wrap { grid-template-columns: 1fr; grid-template-areas: "title"; } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .85rem; }
.crumbs li { color: rgb(255 255 255 / .6); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgb(255 255 255 / .35); }
.crumbs a { color: rgb(255 255 255 / .85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.badges-dark { margin-top: 1rem; }
.badges-dark li { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #fff; }
.hero-lead b { color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table thead th { font-size: .8rem; font-weight: 650; color: var(--muted); background: var(--concrete-50); white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table td.num, .table th.num { text-align: right; }
.table thead th:not(:first-child) { text-align: right; }
.table-grid td:nth-child(2), .table-grid thead th:nth-child(2) { text-align: left; }
.table-kv { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.table-kv th { width: 50%; color: var(--muted); font-weight: 500; }
.table-note { margin: .75rem 0 0; font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.prose h2 { margin: .4rem 0 1rem; }
.prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.2rem; }
.prose p { margin: 0 0 1rem; }
.h-sub { font-size: 1.3rem; font-weight: 700; margin: 0 0 1rem; }
h3.h-sub { margin-top: 2rem; font-size: 1.1rem; }
.h-sub a { color: inherit; text-decoration: none; }
.checks { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .8rem; height: .45rem; border-left: 3px solid var(--success); border-bottom: 3px solid var(--success); rotate: -45deg; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-note { margin: 0; font-size: .9rem; color: var(--muted); }

/* Доставка: соседи, районы */
.near a { display: inline-flex; gap: .4rem; align-items: baseline; text-decoration: none; }
.district-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.district-card { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.district-card h3 { font-size: 1.1rem; }
.district-card h3 a { color: inherit; text-decoration: none; }
.district-card p { margin: .4rem 0 0; font-size: .9rem; }
.district-links a { color: var(--ink); }
.where .where-card:empty { display: none; }

/* Калькулятор на странице марки: товар выбран, выбор свёрнут в строку */
.unit-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.unit-row .unit-price { margin: 0; }
.link-btn { flex: none; padding: 0; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.pick[hidden] { display: none; }

/* Первый экран: короткий список главных цифр страницы (слева от калькулятора) */
.quick { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.quick h2 { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .6); margin: 0 0 .5rem; }
.quick ul { margin: 0; padding: 0; list-style: none; }
.quick li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-top: 1px solid rgb(255 255 255 / .08); }
.quick li:first-child { border-top: 0; }
.quick a { color: #fff; text-decoration: none; }
.quick a:hover { text-decoration: underline; }
.quick b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.quick small { color: rgb(255 255 255 / .55); }
.quick-more { display: inline-block; margin-top: .5rem; font-size: .9rem; color: var(--accent-bright) !important; }
.cookie[hidden] { display: none; }

/* Меню на телефоне: кнопка в шапке, разделы выпадают списком под шапкой */
.menu-btn { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: rotate .2s, translate .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }
@media (max-width: 1023px) {
  .header-phone { margin-left: auto; }
  .header .wrap { gap: .75rem; }
  .menu-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; inset: 100% 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: .5rem 1rem 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .menu-open .nav a { padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--concrete-100); }
  .menu-open .nav a:last-child { border-bottom: 0; }
}
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* Калькулятор объёма на страницах применения */
.volume-calc { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.volume-fields { display: grid; gap: .75rem; margin: 1rem 0; }
.volume-result { font-size: 1.1rem; margin: 0 0 1rem; }
.volume-result b { font-size: 1.5rem; }

/* Качество и сезон */
.steps-list { margin: 0; padding-left: 1.25rem; display: grid; gap: .75rem; }
.callout-box { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.callout-box h3 { margin-bottom: .5rem; }
.callout-box .btn { margin-top: .5rem; }
/* Дополнительные разделы — только в мобильном меню, на компьютере они в подвале */
@media (min-width: 1024px) { .nav .nav-extra { display: none; } }
.menu-open .nav .nav-extra { color: var(--muted); font-size: .95rem; }

/* На телефоне широкие таблицы рекомендаций — карточками: строка = блок, у ячеек подписи */
@media (max-width: 639px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { display: block; padding: .15rem 0; border: 0; text-align: left; }
  .table-stack tbody th { font-size: 1rem; margin-bottom: .35rem; }
  .table-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
}

/* Вопросы: темы слева, ответы справа */
.faq-layout { display: grid; gap: 2rem; }
.faq-layout .h-sub { margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.faq-layout .h-sub:first-child { margin-top: 0; }
.faq-toc { display: flex; flex-wrap: wrap; gap: .5rem; align-self: start; }
.faq-toc a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.faq-toc a small { color: var(--muted); }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 240px 1fr; }
  .faq-toc { flex-direction: column; position: sticky; top: calc(var(--header-h) + 1rem); }
  .faq-toc a { border-radius: var(--radius); }
}
.bg-concrete .card { background: var(--surface); border-color: var(--line); }

/* Статьи */
.article-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .article-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.article { max-width: 760px; font-size: 1.05rem; }
.article h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 2.25rem 0 .75rem; }
.article h2:first-child { margin-top: 0; }
.article ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin: 0 0 1rem; }
.article .table-wrap { margin: 1rem 0 1.25rem; }
.aside-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.aside-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.aside-list a { text-decoration: none; }
.btn-block { display: flex; width: 100%; }
.aside-more { margin-top: 1.5rem; }
.aside-more ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .95rem; }
.article-cards .h-sub { font-size: 1.15rem; margin: 0; }
.category-about { margin-top: 2.5rem; max-width: 760px; }
.consent[hidden] { display: none; }
/* Логотип — утверждённый файл (design/logo), буквы в кривых */
.logo img { display: block; height: 32px; width: auto; }
@media (min-width: 1024px) { .logo img { height: 36px; } }
