/* ocenshik.com — общий стиль сайта.
   Палитра: холодная бумага, тёмно-синий «чернильный», брусничный акцент
   (один, только для главного действия и точки оценки на шкале).
   Шрифт: Onest (SIL OFL 1.1), локально, без внешних запросов. */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; 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("fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;   /* было #fafbfc — владелец 25.10.2026: «фон сероватый, белее» */
  --surface: #ffffff;
  --ink: #1f2a30;
  --ink-2: #5a5248;
  --ink-3: #6f665a;
  --control-border: #9b8f7c;
  --rule: #eee3d0;
  --ice: #f6ead2;
  --ice-strong: #e3c88f;
  --brass: #c4902a;
  --brass-text: #9a5a1c;
  --action: #b5533c;
  --action-hover: #93412f;
  --on-action: #ffffff;
  --ok: #2f6b4f;
  --warn: #8a5a00;
  --bad: #b3261e;
  --focus: #1f6fb2;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.875rem;
  --step-4: clamp(2.125rem, 4.2vw + 1rem, 3.25rem);
  --step-5: clamp(2.5rem, 6vw + 1rem, 4.5rem);

  --r-sm: 6px;
  --r-md: 10px;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15120e;
    --surface: #1d1914;
    --ink: #f3ede3;
    --ink-2: #c2b6a4;
    --ink-3: #a3978a;
    --control-border: #6e6353;
    --rule: #322b22;
    --ice: #2b241a;
    --ice-strong: #5c4a2a;
    --brass: #e0b45a;
    --brass-text: #e8c27a;
    --action: #e0ac3e;
    --action-hover: #ecc06a;
    --on-action: #1f1a12;
    --ok: #7cc59a;
    --warn: #e8b54f;
    --bad: #f08a77;
    --focus: #e8c27a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* На компьютере всё мельче (владелец, 9.11.2026: при 100 % слишком крупно).
   Пропорции и раскладка те же; изменить масштаб можно этим одним числом. */
@media (min-width: 1200px) { html { zoom: .85; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brass-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface);
  padding: 8px 12px; border: 1px solid var(--rule); z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- шапка */
/* Шапка — плашка со скруглёнными углами (владелец, 8.11.2026): выше прежней,
   края по ширине содержимого. Плашка шире .wrap на --head-pad с каждой
   стороны, поэтому логотип стоит на одной линии с текстом страницы — как
   у .page-head. Подложки у шапки нет: при прокрутке плашка плывёт над
   страницей, без бежевой полосы во всю ширину (владелец: «переход
   некрасивый»). Тёплый градиент верха перенесён с main на body, чтобы
   вокруг плашки наверху страницы не было белого шва. */
.site-head { --head-pad: 22px; background: transparent; padding-top: 13px; pointer-events: none; }
.site-head .wrap { pointer-events: auto; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 76px; position: relative;
  /* Не шире окна минус 8px с каждой стороны: прежняя формула на 700–1180px
     давала плашку шире экрана и прокрутку вбок (8.11.2026). */
  width: min(100% - 16px, var(--wrap) + 2 * var(--head-pad));
  padding-inline: var(--head-pad); background: var(--paper); border: 1px solid var(--rule);
  border-radius: 20px; box-shadow: 0 7px 22px rgba(60, 40, 10, .065); }
@media (max-width: 1199px) { .site-head { --head-pad: 16px; } }
@media (max-width: 640px) { .site-head { --head-pad: 12px; padding-top: 8px; }
  .site-head .wrap { min-height: 62px; border-radius: 15px; width: calc(100% - 16px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 650; letter-spacing: -0.01em; font-size: var(--step-1); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; color: var(--brass); flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-weight: 640; letter-spacing: -0.015em; font-size: 1.4375rem; }
.brand small { font-weight: 450; color: var(--ink-2); font-size: 0.78125rem; letter-spacing: 0.01em; }
.site-nav .nav-cta, .site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { color: var(--paper); }
.site-nav .nav-cta { background: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-sm);
  padding: 8px 14px; font-weight: 600; transition: filter .15s; }
.site-nav .nav-cta:hover { filter: brightness(1.3); }
.site-nav { display: flex; gap: 20px; font-size: var(--step--1); }
.site-nav a { text-decoration: none; color: var(--ink-2); padding: 10px 0; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
@media (min-width: 1100px) { .site-nav { font-size: 0.96875rem; gap: 25px; } .site-nav .nav-cta { padding: 10px 17px; } }
@media (max-width: 640px) { .site-nav .opt { display: none; } }
/* Меню на телефоне (25.10.2026): до 640px вместо пунктов — кнопка; до 420px — короткая надпись «Заказать». */
/* Шапка закреплена: кнопка заказа видна и в длинной статье. На низком экране (телефон лёжа) она заняла бы слишком много. */
html { scroll-padding-top: 106px; }
.site-head { position: sticky; top: 0; z-index: 40; }
@media (max-height: 500px) { .site-head { position: relative; } html { scroll-padding-top: 0; } }
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--control-border); border-radius: var(--r-sm); color: var(--ink); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { border-color: var(--ink); }
.mnav-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; background: var(--paper);
  max-height: calc(100dvh - 104px); overflow-y: auto; border: 1px solid var(--rule); border-radius: 14px;
  padding: 4px var(--head-pad) 12px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
.mnav-panel a { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: var(--step-0); }
.mnav-panel a:last-child { border-bottom: 0; }
.cta-short { display: none; }
.pro-link { margin: 14px 0 0; }
/* Тёплая «золотистая» тема (25.10.2026, выбор владельца из трёх вариантов):
   кремовая заливка верха страницы и через раздел, тёмная плашка «Нужен отчёт?», шапки разделов карточкой */
:root { --warm-top: #fdf6ea; --warm-alt: #fcf8f0; --band: #2c4757; --band-ink: #ffffff; --band-btn: #e0ac3e; --band-btn-ink: #1f2a30; }
@media (prefers-color-scheme: dark) { :root { --warm-top: #211b13; --warm-alt: #19150f; --band: #2a3a44; --band-ink: #f3ede3; --band-btn: #e0ac3e; --band-btn-ink: #1f1a12; } }
body { background: linear-gradient(180deg, var(--warm-top) 0, var(--paper) 100%) top / 100% 728px no-repeat var(--paper); }
.section:nth-of-type(odd) { background: var(--warm-alt); }
.cta-band { background: var(--band); color: var(--band-ink); border-radius: 16px; padding: 32px; }
.cta-band h2, .cta-band p { color: var(--band-ink); }
.cta-band .btn-primary { background: var(--band-btn); color: var(--band-btn-ink); }
.cta-band .btn-primary:hover { filter: brightness(1.06); }
/* поля карточки не шире бокового отступа .wrap (16px), иначе на 900–1240px страница уезжала вбок на 8px */
.page-head { background: linear-gradient(180deg, var(--warm-top), transparent); border-radius: 16px; padding: 8px 16px; margin-left: -16px; margin-right: -16px; }
@media (max-width: 899px) { .page-head { background: none; padding: 0; margin-left: 0; margin-right: 0; } }
/* Иконки Lucide (25.10.2026): плашка-значок в карточках и заголовках групп */
.ico { width: 22px; height: 22px; display: block; }
.ico-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--ice); color: var(--action); }
.service-grid a .ico-badge { margin-bottom: 6px; }
.service-grid a:hover .ico-badge { background: var(--action); color: var(--on-action); }
.calc-grid .card-main .ico-badge { background: var(--surface); }
h3.with-ico { display: flex; align-items: center; gap: 12px; }
/* Иллюстрации в шапке страниц (25.10.2026, scripts/site_art.py): справа от заголовка на широком экране */
.page-head { display: grid; gap: 8px 40px; align-items: center; }
.page-head .lede { margin-bottom: 0; }
.page-art { display: none; width: 100%; height: auto; max-width: 360px; justify-self: end; }
@media (min-width: 900px) { .page-head { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); margin-bottom: 28px; }
  .page-art { display: block; } }
.result .placeholder img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 18px; }
/* Карта цен Якутска (8.11.2026): тёмная карточка, золотая шкала — «дорого и стильно».
   Цвета карточки свои, не из темы: она одинаково тёмная в светлой и тёмной теме. */
.result .placeholder:has(.pricemap) { max-width: none; }
.pricemap { margin: 0 0 18px; padding: 18px 18px 16px; border-radius: 18px; color: #e9e1d2;
  background: radial-gradient(120% 90% at 85% 0%, #24313b 0%, #141c22 60%, #10161b 100%);
  box-shadow: 0 18px 40px rgba(16, 22, 27, .28), inset 0 1px 0 rgba(255, 255, 255, .06); }
.pricemap figcaption { display: grid; gap: 2px; margin-bottom: 10px; }
.pm-kicker { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #c9a45a; font-weight: 600; }
.pm-title { font-size: 1.25rem; font-weight: 640; letter-spacing: -0.01em; color: #fff7e8; }
.pm-sub { font-size: .75rem; color: #9aa7b0; }
.pm-map { position: relative; }
.pm-svg { display: block; width: 100%; height: auto; }
.pm-water { fill: #1d3a52; opacity: .9; }
.pm-bg { fill: #1b252d; stroke: #26333d; stroke-width: .6; }
.pm-q { stroke: #10161b; stroke-width: .7; cursor: pointer; transition: filter .15s, stroke .15s; outline: none; }
.pm-q:hover, .pm-q:focus-visible, .pm-q.is-active { stroke: #fff7e8; stroke-width: 1.6; filter: brightness(1.18); }
.pm-tip { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  background: rgba(255, 250, 240, .97); color: #1f2a30; border-radius: 10px; padding: 7px 10px; font-size: .75rem;
  line-height: 1.35; white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.pm-tip b { display: block; font-size: .9375rem; font-weight: 700; }
.pm-legend { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .75rem; color: #b7c0c6; }
.pm-legend i { flex: 1; height: 6px; border-radius: 3px; }
@media (max-width: 560px) { .pm-legend { flex-wrap: wrap; justify-content: space-between; gap: 6px 4px; font-size: .7rem; } .pm-legend i { order: 3; flex: 0 0 100%; } }
.pm-note { margin: 10px 0 0; font-size: .75rem; line-height: 1.45; color: #b7c0c6; }
.pm-note a { color: inherit; }
/* Форма для специалистов под калькулятором (25.10.2026) */
[hidden] { display: none !important; }  /* .calc с display:grid иначе не прячется */
.pro-title { font-size: var(--step-3); letter-spacing: -0.02em; margin: 28px 0 8px; }
#pro { padding-bottom: 48px; border-top: 1px solid var(--rule); }
.pro-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 8px; }
.pro-head .pro-title { margin: 0; }
.pro .pro-head button { width: auto; background: none; color: var(--ink); border: 1px solid var(--control-border); border-radius: var(--r-sm); padding: 8px 14px; font: inherit; font-size: var(--step--1); font-weight: 600; }
.pro .pro-head button:hover { background: none; border-color: var(--ink); }
@media (max-width: 640px) { .mnav { display: block; } .site-nav { gap: 10px; align-items: center; } }
/* Средняя ширина (25.10.2026): на 641–805px шапка не помещалась и давала прокрутку вбок.
   Пункты прячутся с конца по важности (prN в layout.NAV), появляется кнопка «Меню». */
@media (max-width: 960px) { .site-nav .pr6 { display: none; } .mnav { display: block; } .site-nav { align-items: center; } }
@media (max-width: 880px) { .site-nav .pr5 { display: none; } }
@media (max-width: 800px) { .site-nav .pr4 { display: none; } }
@media (max-width: 720px) { .site-nav { gap: 14px; } }
@media (max-width: 420px) { .site-nav .opt2 { display: none; } .brand small { display: none; }
  .cta-long { display: none; } .cta-short { display: inline; } .site-head .wrap { gap: 8px; } }
@media (max-width: 340px) { .brand-mark { width: 28px; height: 28px; } .brand { gap: 6px; } .brand-name { font-size: 1.125rem; } }

/* ------------------------------------------------------------- первый экран */
.hero { padding: clamp(28px, 6vw, 72px) 0 32px; }
.hero h1 {
  font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 640; margin: 0 0 14px; max-width: 20ch;
}
/* Выбор объекта (8.11.2026): вместо списка в заголовке — три кнопки под
   ним; слово в заголовке меняется вместе с выбором. */
.hero h1 .kind-word { color: var(--ink); box-shadow: inset 0 -0.08em 0 var(--ice-strong); }
.kind-tabs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.kind-tab { position: relative; cursor: pointer; }
.kind-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.kind-tab span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px 10px 14px;
  border: 1px solid var(--control-border); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: var(--step-0); font-weight: 560; line-height: 1; transition: background-color .15s, border-color .15s, color .15s; }
.kind-tab .ico { width: 20px; height: 20px; flex: none; color: var(--brass-text); }
.kind-tab:hover span { border-color: var(--ink); }
.kind-tab input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kind-tab input:checked + span .ico { color: var(--paper); }
.kind-tab input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 420px) { .kind-tabs { gap: 6px; } .kind-tab { flex: 1 1 0; }
  .kind-tab span { width: 100%; justify-content: center; padding: 10px 8px; gap: 6px; font-size: var(--step--1); } }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 56ch; margin: 0; }

/* ---------------------------------------------------------- калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 56px; }
@media (min-width: 960px) {
  .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
  .calc .result { position: sticky; top: 88px; }
}

.form { display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 560; }
.field .hint { font-size: 0.8125rem; color: var(--ink-3); }
.field-help { font-size: 0.8125rem; color: var(--ink-2); }
.field:has(.field-help[open]) { grid-column: 1 / -1; }
.field-help summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; list-style: none; }
.field-help summary::-webkit-details-marker { display: none; }
.field-help summary::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; flex: none;
  border: 1px solid var(--control-border); border-radius: 50%; font-size: 0.6875rem; font-weight: 600; }
.field-help dl { margin: 4px 0 0; padding: 10px 12px; display: grid; gap: 8px; background: var(--ice); border-radius: var(--r-sm); }
.field-help dt { font-weight: 600; color: var(--ink); }
.field-help dd { margin: 0; }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--control-border); border-radius: var(--r-sm);
  min-height: 48px; padding: 10px 12px; width: 100%;
}
.field input:hover, .field select:hover { border-color: var(--ice-strong); }
.field input:focus-visible, .field select:focus-visible { outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 0.8125rem; }

/* Выпадающие списки в стиле сайта (владелец, 8.11.2026: системный список
   «выглядит очень некрасиво»). appearance: base-select — оформляемый
   <select> (Chrome, Edge, Яндекс Браузер с 2025 г.); где его нет (Safari,
   Firefox), остаётся обычный список. Разметка и app.js не меняются. */
@position-try --pick-below-280 { position-area: block-end span-inline-end; max-height: 280px; }
@position-try --pick-below-200 { position-area: block-end span-inline-end; max-height: 200px; }
@supports (appearance: base-select) {
  select:not([multiple]):not([size]), select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
  /* Текст в одну строку с многоточием; стрелка — поверх справа, место под
     неё оставлено отступом, чтобы длинный пункт («равными суммами
     (аннуитет)») не выталкивал её. */
  select:not([multiple]):not([size]) { display: block; position: relative; cursor: pointer; padding-right: 40px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
  select:not([multiple]):not([size])::picker-icon { position: absolute; right: 13px; top: 50%; translate: 0 -50%; }
  /* site.js вставляет в каждый список <button><selectedcontent>: только так
     длинный выбранный пункт обрезается многоточием, а не уходит под стрелку. */
  select:not([multiple]):not([size]) > button { all: unset; display: block; width: 100%; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  select:not([multiple]):not([size]) > button selectedcontent { display: inline; }
  select::picker-icon { content: ""; width: 16px; height: 16px; margin-left: auto; flex: none; background: currentColor;
    color: var(--ink-3); transition: rotate .18s ease;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
  select:open::picker-icon { rotate: 180deg; }
  select option { white-space: normal; }
  select:open { border-color: var(--ink); }
  select::picker(select) { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink);
    box-shadow: 0 14px 36px rgba(40, 28, 8, .16); padding: 6px; margin: 6px 0;
    overflow-y: auto; scrollbar-width: thin; min-width: anchor-size(width);
    /* Открывается вниз; если места мало — сначала ниже ростом (280, затем
       200px), и только потом вверх: иначе список наезжал на шапку. */
    position-area: block-end span-inline-end; max-height: 360px;
    position-try-fallbacks: --pick-below-280, --pick-below-200, flip-block;
    position-try-order: normal; /* у браузера по умолчанию most-block-size — он и уводил список вверх */ }
  select option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; min-height: 40px;
    font-size: var(--step-0); font-weight: 400; color: var(--ink); background: transparent; cursor: pointer; }
  select option:hover, select option:focus-visible { background: var(--ice); outline: none; }
  select option:checked { font-weight: 600; }
  select option::checkmark { content: ""; order: 1; margin-left: auto; width: 16px; height: 16px; background: var(--brass-text);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
  select optgroup { font-size: var(--step--1); font-weight: 650; color: var(--ink-3); letter-spacing: .02em; padding: 8px 0 2px; }
  select optgroup + optgroup { border-top: 1px solid var(--rule); margin-top: 4px; }
  select optgroup option { margin-top: 2px; }
}
/* Подсказки адреса (app.js, suggestBox) */
.field.has-suggest { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 0; padding: 4px 0;
  list-style: none; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(31, 42, 48, 0.12); max-height: 280px; overflow-y: auto; }
.suggest li { padding: 8px 12px; cursor: pointer; font-size: var(--step--1); color: var(--ink); }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--ice); }
.req { color: var(--brass-text); }

details.more { border-top: 1px solid var(--rule); padding-top: 12px; }
details.more summary { cursor: pointer; font-size: var(--step--1); color: var(--ink-2);
  list-style: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-weight: 600; width: 1ch; }
details.more[open] summary::before { content: "−"; }
details.more .fields { margin-top: 10px; }
/* Дополнительные поля формы всегда на виду (6 ноября 2026): свёрнутый блок их прятал. */
.more-fields { border-top: 1px solid var(--rule); padding-top: 12px; }
.more-fields .more-title { margin: 0 0 10px; font-size: var(--step--1); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; min-height: 52px; padding: 12px 22px;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink-2); color: var(--ink); }
.form .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.alert { border: 1px solid var(--bad); border-radius: var(--r-sm); padding: 12px 14px;
  background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.alert:focus { outline: 3px solid var(--focus); }
.alert p { margin: 0; }

/* ---------------------------------------------------------- результат */
.result { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 32px); min-height: 280px; }
.result .placeholder { color: var(--ink-2); max-width: 40ch; }
.result .placeholder svg { width: 100%; max-width: 420px; height: auto; margin: 8px 0 18px; color: var(--ice-strong); }
.price-label { font-size: var(--step--1); color: var(--ink-2); margin: 0 0 4px; }
.price { font-size: var(--step-4); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0; font-variant-numeric: tabular-nums; }
.price-sub { margin: 8px 0 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Шкала: главный элемент сайта — инструмент, а не украшение. */
.ruler { margin: 28px 0 8px; }
.ruler svg { width: 100%; height: 76px; overflow: visible; color: var(--ink-3); }
.ruler .band { fill: var(--ice); }
.ruler .band-edge { stroke: var(--ice-strong); stroke-width: 2; }
.ruler .tick { stroke: currentColor; stroke-width: 1; }
.ruler .tick.major { stroke: var(--ink-2); }
.ruler .point { fill: var(--brass); }
.ruler .point-line { stroke: var(--brass); stroke-width: 2; }
.ruler text { font-family: var(--font); font-size: 12px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.ruler-legend { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step--1);
  color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ruler-legend b { color: var(--ink); font-weight: 600; }
.deals { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.deals h3 { margin: 0 0 6px; }
.deals-scroll { overflow-x: auto; }
.deals table { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.deals th, .deals td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.deals th { font-weight: 600; color: var(--ink-2); }
.deals .num { text-align: right; }
/* На телефоне таблица не помещается и прячет цену за край: каждая сделка —
   карточка, цена сразу видна. */
@media (max-width: 520px) {
  .deals thead { display: none; }
  .deals tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px;
    padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .deals th, .deals td { padding: 0; border: 0; white-space: normal; }
  .deals td:nth-child(2) { grid-area: 1 / 1; font-weight: 560; }
  .deals td:nth-child(4) { grid-area: 1 / 2; font-weight: 600; }
  .deals td:nth-child(3) { grid-area: 2 / 1; color: var(--ink-2); }
  .deals td:nth-child(5) { grid-area: 2 / 2; }
  .deals td:nth-child(1) { grid-area: 3 / 1 / 3 / 3; color: var(--ink-3); }
}
.feedback { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.feedback h3 { margin: 0 0 6px; }
.feedback form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 520px) { .feedback form { grid-template-columns: 1fr; } }
.listing-price { margin: 14px 0 0; font-size: var(--step--1); color: var(--ink-2); }
.listing-price b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.conf { display: grid; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.conf-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.conf-level { font-weight: 600; }
.conf-level[data-level="низкая"] { color: var(--warn); }
.conf-level[data-level="высокая"] { color: var(--ok); }
.conf details.more { border-top: 0; padding-top: 0; }
.conf ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: var(--step--1); }
.review { color: var(--warn); font-size: var(--step--1); font-weight: 560; }

.factors { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.factors h3, .next h3 { font-size: var(--step-0); margin: 0 0 10px; font-weight: 620; }
.factor { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 5ch; gap: 10px;
  align-items: center; font-size: var(--step--1); padding: 5px 0; }
.factor .name { color: var(--ink-2); overflow-wrap: anywhere; }
.factor .name b { color: var(--ink); font-weight: 560; }
.factor .bar { position: relative; height: 8px; background: var(--ice); border-radius: 4px; }
.factor .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--ink-2); }
.factor .bar i.neg { background: var(--ink-3); }
.factor .bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.factor .val { text-align: right; font-variant-numeric: tabular-nums; }

.next { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.next .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.disclaimer { margin-top: 18px; font-size: 0.8125rem; color: var(--ink-3); }

.ad-slot:empty { display: none; }
.ad-slot { margin-top: 18px; }

/* ---------------------------------------------------------- секции ниже */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section h2 { font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 18px;
  font-weight: 630; max-width: 22ch; }
/* «Нам доверяют» (8.11.2026): логотипы заказчиков серые, цвет — при наведении;
   у кого логотипа нет — название надписью того же тона. */
.clients-lede { margin: -6px 0 24px; }
.clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.client { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 96px; padding: 16px 18px;
  border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); text-align: center; }
.client img { display: block; width: auto; height: auto; max-width: 100%; max-height: 44px; object-fit: contain;
  /* Серый, но не блёклый: тонкие светлые знаки иначе почти пропадали. */
  filter: grayscale(1) brightness(.7) contrast(1.6); opacity: .85; transition: filter .2s, opacity .2s; }
.client.with-text img { max-height: 52px; max-width: 52px; }
.client.with-text .client-text { white-space: nowrap; }
.client img.squarish { max-height: 60px; }
.client img.tone-dark { filter: brightness(0); opacity: .7; }
@media (prefers-color-scheme: dark) { .client img.tone-dark { filter: brightness(0) invert(1); opacity: .8; } }
/* Ряды без «хвоста»: 12 плиток — 6×2 на широком, 4×3, 3×4, 2×6 на телефоне. */
@media (min-width: 1000px) { .clients { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 999px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 481px) and (max-width: 699px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.client:hover img { filter: none; opacity: 1; }
.client-text { font-weight: 650; letter-spacing: -0.01em; color: var(--ink-3); font-size: var(--step-1); line-height: 1.2;
  transition: color .2s; }
.client:hover .client-text { color: var(--ink); }
.client.only-text .client-text { font-size: var(--step-0); max-width: 18ch; }
@media (prefers-color-scheme: dark) { .client img { filter: grayscale(1) invert(1) contrast(.9); opacity: .8; }
  .client:hover img { filter: grayscale(1) invert(1); opacity: 1; } }
@media (max-width: 480px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .client { min-height: 76px; padding: 12px; } .client img { max-height: 34px; } }
.cols { display: grid; gap: 28px; }
@media (min-width: 800px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols h3 { font-size: var(--step-1); margin: 0 0 8px; font-weight: 600; }
.cols p { margin: 0; color: var(--ink-2); max-width: 46ch; }

table.acc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
table.acc th, table.acc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
table.acc th { color: var(--ink-2); font-weight: 560; }
table.acc td.r, table.acc th.r { text-align: right; }
.table-scroll { overflow-x: auto; }
/* Тарифы */
.tf-who { margin: 24px 0 0; }
@supports selector(:has(a)) {
  .tf-tabs:has(input[value="p"]:checked) .tf-pane-c,
  .tf-tabs:has(input[value="c"]:checked) .tf-pane-p { display: none; }
}
.tf-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.tf-nav a { padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--step--1); color: var(--ink); text-decoration: none; }
.tf-nav a:hover, .tf-nav a:focus-visible { background: var(--ice); }
.tf-group { margin-top: 44px; }
.tf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tf-head h2 { margin: 0; }
.tf-head a { flex: none; font-size: var(--step--1); }
.tf-group h3 { margin-top: 28px; }
table.tariff { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.tariff th { padding: 8px 0 8px 20px; color: var(--ink-2); font-size: var(--step--1); font-weight: 500; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.tariff td { padding: 13px 0 13px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.tariff th:first-child, table.tariff td:first-child { padding-left: 0; width: 100%; }
table.tariff .r { text-align: right; white-space: nowrap; }
table.tariff .tf-price { font-weight: 640; }
table.tariff .tf-next, table.tariff .tf-term { color: var(--ink-2); }
table.tariff small { display: block; margin-top: 3px; color: var(--ink-2); font-size: var(--step--1); line-height: 1.4; }
.tf-note { margin-top: 36px; }
@media (max-width: 640px) {
  table.tariff, table.tariff tbody { display: block; }
  table.tariff thead { display: none; }
  table.tariff tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.tariff td, table.tariff td:first-child { display: block; width: auto; padding: 0; border: 0; }
  table.tariff td.tf-price { grid-column: 2; grid-row: 1; }
  table.tariff td.tf-next, table.tariff td.tf-term { grid-column: 1 / -1; font-size: var(--step--1); text-align: left; white-space: normal; }
  table.tariff td[data-l]::before { content: attr(data-l) ": "; }
  table.tariff td.na { display: none; }
  .tf-head { flex-wrap: wrap; gap: 4px 16px; }
}

.cta-band { display: grid; gap: 18px; align-items: center; }
@media (min-width: 800px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band p { margin: 0; color: var(--band-ink); opacity: .88; max-width: 60ch; }

.faq details { border-bottom: 1px solid var(--rule); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 560; min-height: 44px; display: flex; align-items: center; }
.faq p { margin: 0 0 14px; color: var(--ink-2); max-width: 68ch; }

.links-grid { display: grid; gap: 6px 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.links-grid a { padding: 8px 0; display: block; border-bottom: 1px solid var(--rule); text-decoration: none; }

.site-foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: var(--step--1); color: var(--ink-2); }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot p { margin: 0; max-width: 80ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* страницы-статьи */
.page { padding: 40px 0 64px; }
.page h1, .hero h1, .section h2 { text-wrap: balance; }
.page h1 { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 14px; font-weight: 640; max-width: 20ch; }
.page .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; margin: 0 0 28px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink); }
.stats { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 8px 0 28px; }
.stats div { background: var(--surface); padding: 16px 18px; }
.stats dt { font-size: var(--step--1); color: var(--ink-2); }
.stats dd { margin: 4px 0 0; font-size: var(--step-2); font-weight: 620; font-variant-numeric: tabular-nums; }
.crumbs { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }

@media (max-width: 520px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .factor { grid-template-columns: minmax(0, 1fr) 5ch; }
  .factor .bar { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .ruler .point, .ruler .point-line, .ruler .band { transition: transform 360ms cubic-bezier(.2,.8,.2,1); }
}

/* ---------------------------------------------------------- добавлено 23.10.2026 */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 14px; max-width: 68ch; }
/* Номер — вне потока: в сетке жирный заголовок и текст пункта попадали в разные клетки */
.steps li { counter-increment: step; position: relative; padding-left: calc(2.2em + 10px); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; font-weight: 650; color: var(--brass-text); font-variant-numeric: tabular-nums; }
.doc-list { margin: 8px 0 24px; padding-left: 20px; max-width: 68ch; }
.doc-list li { margin: 4px 0; }
/* Линии рисуют сами карточки: фон сетки в неполном ряду не должен быть виден цветной плашкой */
.service-grid { display: grid; gap: 1px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 8px 0 28px; }
.service-grid a { background: var(--surface); box-shadow: 0 0 0 1px var(--rule); padding: 20px; text-decoration: none; display: grid; gap: 6px; }
.service-grid a b { font-size: var(--step-1); font-weight: 620; }
.service-grid a span { color: var(--ink-2); font-size: var(--step--1); }
.service-grid a:hover b { color: var(--brass-text); }
/* Услуги (25.10.2026): 1 / 2 / 4 колонки без пустых клеток; подпись цели над карточкой; списки объектов */
.grid4, .grid3 { grid-template-columns: minmax(0, 1fr); }
.grid4 a, .grid3 a { align-content: start; }
@media (min-width: 560px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 560px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service-grid .tag { color: var(--brass-text); font-size: 0.75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.obj-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.obj-list a { color: var(--ink); }
.obj-cols { margin-bottom: 8px; }
/* Калькуляторы: главная карточка широкая; 1 / 2 / 4 колонки — без пустых клеток (25.10.2026) */
.calc-grid { grid-template-columns: minmax(0, 1fr); }
.calc-grid .card-main { background: var(--ice); align-content: start; }
.calc-grid .card-main b { font-size: var(--step-2); }
.calc-grid .card-go { color: var(--brass-text) !important; font-weight: 600; margin-top: 4px; }
@media (min-width: 560px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .calc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contact-line { font-size: var(--step-2); font-weight: 620; font-variant-numeric: tabular-nums; }
.note { border-left: 0; background: var(--ice); padding: 14px 16px; border-radius: var(--r-sm); max-width: 68ch; }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--rule);
  padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)); }
.cookie .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: var(--step--1); }
.cookie p { margin: 0; max-width: 70ch; color: var(--ink-2); }
.cookie .btn { min-height: 40px; padding: 8px 16px; }
.err-page { padding: 72px 0 96px; }
.err-page .code { font-size: var(--step-5); font-weight: 650; letter-spacing: -0.04em; color: var(--brass); margin: 0; line-height: 1; }

/* ---- кадастр: поиск, листалка (24.10.2026) */
.cad-search { max-width: 640px; margin: 0 0 32px; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.cad-search label { font-size: var(--step--1); font-weight: 560; }
.cad-search-row { display: flex; gap: 10px; }
.cad-search input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; font: inherit; font-size: var(--step-1);
  font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface);
  border: 1px solid var(--control-border); border-radius: var(--r-sm); }
.cad-search .hint { font-size: 0.8125rem; color: var(--ink-3); margin: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 20px 0; font-variant-numeric: tabular-nums; }
.pager a, .pager span { padding: 6px 2px; }
.page h2 { margin-top: 36px; }
.page .stats { margin-bottom: 20px; }

/* ---- форма заявки */
.lead-form { max-width: 720px; }
.field textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--control-border); border-radius: var(--r-sm); resize: vertical; }
.field .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--step--1); line-height: 1.45; }
.field-title { font-size: var(--step--1); font-weight: 560; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.field .check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--action); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#lead-done { margin-top: 8px; }

/* ---- шкала оценки разметкой (страницы участков) */
.vr { margin: 28px 0 12px; padding: 0 0 22px; }
.vr-track { position: relative; height: 34px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 5%) bottom / 100% 6px no-repeat,
              linear-gradient(var(--ink-3), var(--ink-3)) bottom / 100% 1px no-repeat; }
.vr-band { position: absolute; top: 6px; bottom: 6px; background: var(--ice); border-left: 2px solid var(--ice-strong);
  border-right: 2px solid var(--ice-strong); }
.vr-point { position: absolute; top: -6px; bottom: 0; width: 2px; margin-left: -1px; background: var(--brass); }
.vr-point::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brass); }
.vr-cad { position: absolute; top: 0; bottom: 0; margin-left: -1px; border-left: 2px dashed var(--ink); }
.vr-cad-label { position: absolute; top: 38px; font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; transform: translateX(-50%); }
.vr-cad-label.vr-start { transform: none; }
.vr-cad-label.vr-end { transform: translateX(-100%); }

/* ---- партнёрская ссылка с маркировкой и место под рекламу */
.partner { display: inline-grid; gap: 4px; justify-items: start; }
.partner-mark { font-size: 0.6875rem; color: var(--ink-3); line-height: 1.3; max-width: 36ch; }
.ad-slot:not(.on) { display: none; }
.ad-slot.on { margin: 24px 0; padding-top: 8px; border-top: 1px solid var(--rule); min-height: 90px; }

/* ---- калькуляторы (24.10.2026) */
.calc-page { margin: 8px 0 40px; padding-bottom: 0; }
/* Поля в одном ряду стоят на одной линии, даже если подпись в две строки */
@supports (grid-template-rows: subgrid) {
  .calc-page .fields { row-gap: 0; }
  .calc-page .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; margin-bottom: 14px; }
  .calc-page .field > label { align-self: end; }
}
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-right: 3.2em; font-variant-numeric: tabular-nums; }
.input-wrap .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3);
  font-size: var(--step--1); pointer-events: none; }
.field[hidden] { display: none; }
.calc-page .result .price { font-size: var(--step-4); }
.calc-page details.more summary { cursor: pointer; color: var(--ink-2); }
.result .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result .stats dd { font-size: var(--step-1); }
@media (max-width: 480px) { .result .stats { grid-template-columns: minmax(0, 1fr); } }

/* ---- графики индекса (24.10.2026) */
figure.chart { position: relative; margin: 8px 0 28px; }
.chart-svg { display: block; overflow: visible; font-family: var(--font); }
.chart-svg .grid { stroke: var(--rule); stroke-width: 1; }
.chart-svg .base { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-svg .tick { font-size: 12px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart-svg .val { font-size: 13px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart-svg .band { fill: var(--ice); }
.chart-svg .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.chart-svg .cross { stroke: var(--ink-3); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-sm); padding: 8px 10px; font-size: var(--step--1); line-height: 1.4; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-tip span { color: var(--ink-3); }
.chart-table summary { cursor: pointer; color: var(--ink-2); font-size: var(--step--1); margin-top: 8px; }
figure.chart figcaption { margin-top: 6px; }

/* ---- платная справка: документ под печать A4 (24.10.2026) */
.doc { max-width: 820px; }
.doc .doc-head h1 { font-size: var(--step-3); margin: 6px 0 10px; }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  .site-head, .site-foot, .crumbs, .skip, .cookie, .no-print, .ad-slot { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { max-width: none; }
  .doc h2 { break-after: avoid; }
  .doc table, .doc .stats, .doc .vr { break-inside: avoid; }
  .note { background: #f1f4f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vr-band, .vr-point, .vr-point::before, .vr-cad { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc .stats + .vr { break-before: avoid; }
}

/* ---- объявления и кабинет (24.10.2026) */
.board-filter .fields { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 16px 0 24px; }
.card { display: grid; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden; }
.card:hover { border-color: var(--ink-3); }
.card-photo { aspect-ratio: 4 / 3; background: var(--ice); display: grid; place-items: center; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { color: var(--ink-3); font-size: var(--step--1); }
.card-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.card-body b { font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.mkt { justify-self: start; font-size: 0.8125rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); }
.mkt-lo { border-color: var(--ok); color: var(--ok); }
.mkt-hi { border-color: var(--warn); color: var(--warn); }
.price-big { font-size: var(--step-3); font-weight: 650; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0 0 20px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { display: grid; gap: 4px; width: 140px; }
.thumb img { width: 140px; height: 105px; object-fit: cover; border-radius: var(--r-sm); }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--step--1); }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mod { border-bottom: 1px solid var(--rule); padding: 12px 0; }

/* ---- виджет для чужих сайтов /embed/ (24.10.2026) */
body.embed { padding: 16px; background: var(--surface); min-height: 0; }
.embed .fields { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.w-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.w-tabs label { cursor: pointer; }
.w-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.w-tabs span { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--step--1); }
.w-tabs input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.w-tabs input:focus-visible + span { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.w-actions { margin: 14px 0 0; }
.w-res { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--ice); }
.w-price { font-size: var(--step-3); font-weight: 650; margin: 2px 0; font-variant-numeric: tabular-nums; }
.w-foot { margin: 12px 0 0; }

/* ---- короткий ответ в начале статьи и посадочной страницы (24.10.2026) */
.note.answer { border-left: 3px solid var(--ink); margin: 0 0 20px; }
