/* ==========================================================================
   «Бастет» V5. Основа — направление «арки» (ivory, песок, шалфей, арка-портал,
   арочные ниши, аркада процесса); дисциплина museum (волосяные линии, тихий
   аккордеон, охристый текстовый полутон); конверсия botanic (тёмная CTA-таблетка,
   заметное поле цены, светлые поля подбора). Правила: _dev/directions/SYNTHESIS.md.
   Prata — только заголовки, «Бастет» и «Стоимость работ», не меньше 18px.
   Цифры (номера, телефон, лицензия, ИНН) — Inter с tabular-nums.
   ========================================================================== */
:root {
  /* палитра V5 */
  --ivory: #F7F2E8;       /* основной фон */
  --milk: #FFFCF5;        /* поверхности, поля */
  --sand: #E8D7BF;        /* цоколь арки, поле цены */
  --sand-soft: #F3E9DA;   /* панели */
  --sand-line: #D9C6A8;   /* контуры арок и полей (декор) */
  --sage: #C8D5C1;        /* панель быстрого подбора */
  --sage-soft: #E6ECE1;   /* вторичные панели, арочные ниши */
  --sage-deep: #556B57;   /* акцентный текст и иконки */
  --sage-dark: #3F5142;   /* CTA, активные состояния, знак */
  --ochre-ink: #7A5F3F;   /* мелкие тёплые акценты текста */
  --ink: #28312B;         /* основной текст */
  --muted: #5F685F;       /* вторичный текст */
  --muted-deep: #5B645C;  /* вторичный текст на тонированных панелях (≥5:1) */
  --field-line: #7C8478;  /* границы полей и круглых кнопок */
  /* промежуточные ступени аркады: песок → шалфей */
  --arcade-2: #EFE8D8;
  --arcade-3: #ECE9DC;
  --arcade-4: #E9EADF;
  /* волосяные линии */
  --line: rgba(92, 76, 52, .17);
  --line-strong: rgba(92, 76, 52, .32);
  --error: #7A3424;
  --white: #FFFFFF;

  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --fast: 180ms;
  --control: 320ms;
  --reveal: 520ms;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1320px;
  --gutter: 32px;
  --section-space: 104px;
  --anchor-offset: 85px;  /* = низ шапки (84 + 1 px линии): над целью нет полосы соседнего раздела */
  --step: 14px;           /* шаг контура арки и цоколя */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--ivory); font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
html.hash-aligning { scroll-behavior: auto; }
body { min-width: 320px; margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, dd { margin-top: 0; }
h1, h2, h3, h4 { margin-bottom: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.008em; }
b, strong { font-weight: 600; }
button, [type="button"], [type="submit"] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sage-dark); outline-offset: 4px; }
::selection { background: var(--sage); color: var(--ink); }
.container { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { display: inline-flex; flex: 0 0 auto; width: 1.25em; height: 1.25em; align-items: center; justify-content: center; }
.ic svg { width: 100%; height: 100%; }
.nowrap { white-space: nowrap; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 18px; border-radius: 999px; transform: translateY(-180%); background: var(--sage-dark); color: var(--milk); font-weight: 600; }
.skip-link:focus { transform: none; }
.section { padding-block: var(--section-space); }

/* --- Рубрики: короткая охристая черта + капитель. Номеров разделов нет. ---- */
.section-label, .panel-kicker { display: flex; margin: 0 0 20px; align-items: center; gap: 14px; color: var(--sage-deep); font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.section-label::before, .panel-kicker::before { flex: 0 0 28px; height: 1px; background: var(--ochre-ink); content: ""; }
.section-label-dark { color: var(--sage-dark); }
/* На тонированных панелях рубрики темнее: контраст ≥7:1 вместо 4.8. */
.request-section .section-label, .license-panel .section-label, .picker-result .panel-kicker { color: var(--sage-dark); }
.section-heading, .request-heading { display: grid; margin-bottom: 52px; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: 64px; align-items: end; }
.section-heading h2, .request-heading h2, .system-copy > h2, .documents-panel h2, .license-copy h2, .contact-inner h2 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; }
.section-heading > p, .request-heading > p { max-width: 400px; margin: 0 0 6px; color: var(--muted); line-height: 1.65; }

/* --- Кнопки: одна тёмная таблетка на экран, остальное — контур ----------- */
.btn { display: inline-flex; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: .005em; text-align: center; transition: color var(--fast), background-color var(--fast), border-color var(--fast); }
.btn .ic { transition: transform var(--fast) var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { filter: brightness(.95); }
.btn-primary { background: var(--sage-dark); color: var(--milk); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--field-line); background: transparent; color: var(--sage-dark); }
.btn-ghost:hover { border-color: var(--sage-dark); background: var(--sage-soft); }
/* Главная CTA: тёмная таблетка с кругом-стрелкой. */
.btn-large { min-height: 58px; padding: 7px 7px 7px 26px; gap: 18px; font-size: 15px; }
.btn-large .ic { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--sage); color: var(--sage-dark); }
.btn-large:hover .ic { transform: translateX(2px); }
.round-link, .menu-button, .service-more { display: inline-flex; flex: 0 0 auto; width: 58px; height: 58px; padding: 17px; border: 1px solid var(--field-line); border-radius: 50%; align-items: center; justify-content: center; background: transparent; color: var(--sage-dark); transition: color var(--fast), background-color var(--fast), border-color var(--fast), transform var(--control) var(--ease); }
.round-link:hover, .service-more:hover { border-color: var(--sage-dark); background: var(--sage-dark); color: var(--milk); }
.round-link-dark { border-color: var(--sage-dark); background: var(--sage-dark); color: var(--milk); }
.round-link-dark:hover { border-color: var(--ink); background: var(--ink); }

/* --- Шапка: логотип заказчика — монограмма «Б» над надписью «БАСТЕТ» ------ */
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: var(--ivory); transition: background-color var(--fast), border-color var(--fast); }
.site-header.scrolled { background: var(--milk); border-bottom-color: var(--line-strong); }
.nav-shell { display: grid; min-height: 84px; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; min-width: 0; justify-self: start; align-items: center; color: var(--sage-deep); }
/* Логотип (brand/build-logo.py, символ #logo-bastet, viewBox 169 × 109): зелёный --sage-deep,
   как вторая строка заголовка. Ширина и высота — в пропорции символа 169 : 109. */
.brand-mark { flex: 0 0 auto; width: 93px; height: 60px; color: var(--sage-deep); }
.footer-brand .brand-mark { width: 112px; height: 72px; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(16px, 1.8vw, 30px); }
.desktop-nav a, .footer-nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color var(--fast); }
.desktop-nav a::after { position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--ochre-ink); transform: scaleX(0); transform-origin: left; transition: transform var(--control) var(--ease); content: ""; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-phone { display: flex; min-width: 0; padding-block: 8px; flex-direction: column; text-align: right; }
.header-phone b { font-size: 15px; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.header-cta { min-height: 44px; padding-inline: 20px; border-color: var(--sage-dark); background: transparent; color: var(--sage-dark); font-size: 13px; }
.header-cta:hover { background: var(--sage-dark); color: var(--milk); }
.menu-button { display: none; width: 46px; height: 46px; padding: 12px; }
.menu-button:hover { border-color: var(--sage-dark); }
.menu-button[aria-expanded="true"] { border-color: var(--sage-dark); background: var(--sage-dark); color: var(--milk); }
.menu-button .ic-close, .menu-button[aria-expanded="true"] .ic-open { display: none; }
.menu-button[aria-expanded="true"] .ic-close { display: inline-flex; }
/* Подложка под открытым меню: отделяет панель от страницы; касание по ней закрывает меню (app.js). */
.site-header.menu-open::before { position: absolute; top: 100%; left: 0; right: 0; height: 100vh; background: rgba(40, 49, 43, .28); content: ""; }
.mobile-menu { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); max-height: calc(100dvh - 96px); overflow: auto; padding: 6px 24px 10px; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); background: var(--milk); box-shadow: 0 22px 32px -28px rgba(40, 49, 43, .45); }
.mobile-menu.open { display: grid; }
.mobile-menu a { display: flex; min-height: 56px; padding-block: 12px; align-items: center; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; line-height: 1.3; }
.mobile-menu a:last-child { border-bottom: 0; color: var(--sage-dark); font-family: var(--sans); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- Hero: текст слева, фото в арке-портале на цоколе справа -------------- */
.hero { padding: 40px 0 0; }
/* Первый экран без перегруза: заголовок, одна фраза заказчика, действия и цена.
   Высоту задаёт арка (от окна, 480–660 px), текст стоит по центру её высоты. */
.hero-card { display: grid; min-height: clamp(480px, calc(100svh - 260px), 660px); grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); gap: 64px; align-items: stretch; }
.hero-copy { min-width: 0; padding-block: 24px 40px; align-self: center; }
.hero h1 { max-width: 800px; font-size: clamp(40px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.012em; }
.hero h1 span { color: var(--sage-deep); }
.hero-lead { max-width: 600px; margin: 24px 0 0; color: var(--ink); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; margin-top: 32px; align-items: center; gap: 12px; }
/* Цена — компактная строка-«этикетка»: ярлык в арочной нише, текст дословно. */
.price-note { display: flex; width: fit-content; max-width: 600px; margin: 20px 0 0; padding: 10px 20px 10px 10px; align-items: center; gap: 14px; border: 1px solid var(--sand-line); border-radius: var(--radius-md); background: var(--sand-soft); color: var(--ink); font-size: 15px; line-height: 1.45; }
.price-note > .ic { flex: 0 0 auto; width: 38px; height: 46px; padding: 15px 10px 9px; border-radius: 19px 19px 5px 5px; background: var(--milk); color: var(--sage-dark); }
.price-note > span { text-wrap: pretty; }
.price-note b { font-weight: 600; }

/* Арка: радиус 999px браузер сводит ровно к половине ширины — полукруг при любой
   высоте. Контур концентричен арке (равный зазор сверху и по бокам), цоколь шире арки.
   Высота арки не больше ~двух её ширин: на узком desktop она стоит на полу, а не тянется. */
.hero-visual { --arch-w: calc((min(100vw - 64px, 1320px) - 64px) * .383 - 56px); position: relative; min-width: 0; height: 100%; max-height: calc(var(--arch-w) * 2.1 + var(--step)); margin: var(--step) calc(var(--step) * 2) 0; padding-bottom: var(--step); align-self: end; }
.hero-visual picture { display: block; height: 100%; min-height: 440px; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--sand); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 79% 50%; }
.hero-visual::before { position: absolute; top: calc(var(--step) * -1); left: calc(var(--step) * -1); right: calc(var(--step) * -1); bottom: var(--step); border: 1px solid var(--sand-line); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; content: ""; }
.hero-visual::after { position: absolute; left: calc(var(--step) * -2); right: calc(var(--step) * -2); bottom: 0; height: var(--step); border-radius: 2px 2px 0 0; background: var(--sand); content: ""; }
.hero-visual img, .service-card img, .system-image img, .contact-photo img { filter: saturate(.92); }

/* --- Proof-rail: «пол», на котором стоит арка; иконки в арочных нишах ----- */
.proof-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.proof-item { display: flex; min-width: 0; padding: 24px 28px; align-items: flex-start; gap: 16px; border-left: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; border-left: 0; }
.proof-item > .ic { width: 42px; height: 52px; padding: 17px 10px 11px; border-radius: 21px 21px 5px 5px; background: var(--sage-soft); color: var(--sage-dark); }
.proof-item > span { display: flex; min-width: 0; flex-direction: column; }
.proof-item b { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.25; }
.proof-item small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; }

/* --- Типы объектов: продолжение фразы заказчика из hero, полоса под «полом» арки --- */
.object-band { padding: 28px 0 0; }
.object-band .section-label { margin-bottom: 14px; }
.object-list { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: 10px 30px; list-style: none; }
.object-list li { position: relative; padding-left: 15px; color: var(--ink); font-size: 15.5px; line-height: 1.45; white-space: nowrap; }
.object-list li::before { position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--sage-deep); transform: rotate(45deg); content: ""; }

/* --- Быстрый подбор: шалфейная панель, светлые поля, шаг в круге ---------- */
.quick-section { padding-top: 44px; }
.quick-panel { position: relative; isolation: isolate; display: grid; padding: 32px 36px; overflow: hidden; border-radius: var(--radius-lg); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 22px minmax(0, 1fr) 58px; align-items: center; gap: 20px; background: var(--sage); }
.quick-panel h2 { max-width: 300px; font-size: 30px; line-height: 1.15; }
.quick-panel .section-label { margin-bottom: 12px; }
/* Цифры — только Inter (правило 1 SYNTHESIS): «2» в заголовке Prata набрана Inter. */
.quick-panel h2 .num { font-family: var(--sans); font-size: .9em; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.quick-go-label { display: none; }
/* Единственная водяная кошка на странице — тот же символ, что и логотип, 5%.
   Встаёт сразу за заголовком: у h2 max-width 300px, поэтому left = отступ 36 + 300 — текст
   её не касается. На 1181–1279 места до первого поля нет — кошку не ставим (SYNTHESIS, п. 4). */
.quick-field { position: relative; display: grid; min-width: 0; min-height: 84px; padding: 14px 42px 14px 14px; border: 1px solid var(--sage-deep); border-radius: var(--radius-md); grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 14px; background: var(--milk); cursor: pointer; transition: border-color var(--fast), background-color var(--fast); }
.quick-field:hover { border-color: var(--sage-dark); background: var(--white); }
.quick-field:focus-within { outline: 3px solid var(--sage-dark); outline-offset: 3px; }
.step-number { display: flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--sage-dark); color: var(--milk); font-size: 14px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.quick-field > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.quick-field b { font-size: 14px; line-height: 1.3; }
.quick-field small { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.quick-field.filled small { color: var(--ink); font-weight: 500; }
.quick-field select { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; font-size: 16px; opacity: 0; cursor: pointer; }
.quick-field > .ic { position: absolute; right: 16px; width: 15px; color: var(--sage-dark); pointer-events: none; }
.quick-arrow { width: 22px; color: var(--sage-dark); }
.quick-error { grid-column: 1 / -1; margin: 0; color: var(--error); font-size: 13px; font-weight: 600; }
.quick-error:empty { display: none; }

/* --- Услуги: тихий аккордеон на волосяных линиях, фото раскрытой — в арке -- */
.service-gallery { border-top: 1px solid var(--line-strong); }
.service-card { position: relative; display: grid; min-width: 0; border-bottom: 1px solid var(--line-strong); grid-template-columns: 64px minmax(0, 340px) minmax(0, 1fr) 52px; grid-template-areas: "title title title action" ". media detail detail"; column-gap: 40px; cursor: pointer; }
.service-card.is-open { cursor: default; }
.service-card-copy { display: grid; min-width: 0; min-height: 104px; grid-area: title; grid-template-columns: 64px minmax(0, 1fr); column-gap: 40px; align-items: center; }
.service-card-copy > span { color: var(--ochre-ink); font-size: 15px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.service-card-copy h3 { font-family: var(--serif); font-size: clamp(26px, 2.7vw, 38px); font-weight: 400; line-height: 1.15; letter-spacing: -.008em; }
.service-more { grid-area: action; align-self: center; width: 52px; height: 52px; padding: 15px; }
.service-card.is-open .service-more { border-color: var(--sage-dark); background: var(--sage-dark); color: var(--milk); transform: rotate(90deg); cursor: default; }
.service-card > picture, .service-card-detail { display: none; }
.service-card.is-open > picture, .no-js .service-card > picture { display: block; grid-area: media; min-width: 0; margin: 0 0 44px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% var(--radius-sm) var(--radius-sm) / 40% 40% var(--radius-sm) var(--radius-sm); background: var(--sand); }
.service-card picture img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.service-card.is-open .service-card-detail, .no-js .service-card-detail { display: block; grid-area: detail; min-width: 0; margin: 0 0 44px; align-self: center; }
.service-card.is-open > picture, .service-card.is-open .service-card-detail { animation: panel-in var(--control) var(--ease); }
.service-card-detail .panel-kicker { margin-bottom: 16px; }
.service-card-detail h4 { max-width: 640px; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 32px); font-weight: 400; line-height: 1.22; }
.service-card-detail > p:not(.panel-kicker) { max-width: 640px; margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.service-card-detail ul { display: grid; max-width: 640px; padding: 0; margin: 24px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--line); list-style: none; }
/* У дезинфекции две длинные приписки — по одной в строку, без переноса в узкой колонке. */
.service-card[data-service="disinfection"] .service-card-detail ul { max-width: 720px; grid-template-columns: 1fr; }
.service-card-detail li { position: relative; padding: 11px 0 11px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.service-card-detail li::before, .compact-list li::before, .clients-copy li::before, .legal-content li::before { position: absolute; left: 1px; top: 19px; width: 5px; height: 5px; background: var(--sage-deep); transform: rotate(45deg); content: ""; }
/* «Дезинсекция» (раскрыта по умолчанию): в мастере 1200×900 шапочка стоит у самого верхнего
   края кадра, и свод арки срезал голову при любом object-position. Опускаем кадр под свод:
   сверху поле цвета светлой стены с фото, верхний край кадра растушёван в это поле —
   голова целиком внутри арки, фигура не «безголовая». Файлы изображений не менялись. */
.service-card[data-service="disinsection"] > picture { padding-top: 12%; background: #E2DFDA; }
.service-card[data-service="disinsection"] picture img { object-position: 22% 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px); }
[data-service="deratization"] img { object-position: 55% center; }
[data-service="acaricidal"] img { object-position: 50% center; }

/* --- Оборудование и препараты: витрина milk, вкладки-таблетка ------------- */
.system-section { border-block: 1px solid var(--line); background: var(--milk); }
.system-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; }
.system-copy { display: contents; }
.system-copy > .section-label { grid-column: 1 / -1; margin-bottom: -12px; }
.system-copy > h2 { grid-column: 1 / -1; max-width: 820px; }
.system-tabs { display: flex; justify-self: start; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; grid-column: 1 / -1; background: var(--ivory); }
.system-tab { min-height: 46px; padding: 12px 26px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; transition: background-color var(--control), color var(--control); }
.system-tab.active { background: var(--sage-dark); color: var(--milk); }
.system-tab:hover:not(.active) { background: var(--sage-soft); color: var(--ink); }
.system-content { min-width: 0; grid-column: 1; grid-row: 4; align-self: start; transition: opacity 160ms ease; }
.system-content > p { max-width: 680px; margin-bottom: 24px; color: var(--muted); text-wrap: pretty; }
.equipment-grid, .compact-list { display: grid; padding: 0; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; list-style: none; }
.equipment-grid li { display: flex; min-width: 0; min-height: 76px; padding: 14px 0; border-top: 1px solid var(--line); gap: 16px; align-items: center; font-size: 14.5px; line-height: 1.45; }
.equipment-ill { display: block; flex: 0 0 40px; width: 40px; height: 40px; color: var(--sage-deep); --ill-fill: var(--sage-deep); }
.equipment-ill svg { width: 100%; height: 100%; }
.compact-list li { position: relative; padding: 16px 0 16px 18px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.compact-list li::before { top: 24px; }
.system-image { display: block; min-width: 0; width: 100%; aspect-ratio: 4 / 3; grid-column: 2; grid-row: 4; align-self: start; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand-soft); transition: opacity 160ms ease; }
.system-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.system-content.swapping, .system-image.swapping { opacity: 0; }
.nojs-system { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.nojs-system h3 { margin: 20px 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.nojs-system p { color: var(--muted); }

/* --- Процесс: восходящая аркада песок → шалфей --------------------------- */
.process-list { display: grid; padding: 0; margin: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; border-bottom: 1px solid var(--line-strong); list-style: none; }
.process-list li { display: flex; min-width: 0; min-height: 296px; padding: 36px 20px 32px; border-radius: 999px 999px 0 0; flex-direction: column; align-items: center; background: var(--sand-soft); text-align: center; }
.process-list li:nth-child(2) { min-height: 316px; background: var(--arcade-2); }
.process-list li:nth-child(3) { min-height: 336px; background: var(--arcade-3); }
.process-list li:nth-child(4) { min-height: 356px; background: var(--arcade-4); }
.process-list li:nth-child(5) { min-height: 376px; background: var(--sage-soft); }
.process-list li > span { display: flex; margin-bottom: 14px; flex-direction: column; align-items: center; gap: 14px; }
.process-list li > span .ic { width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--milk); color: var(--sage-dark); }
.process-list li > span b { color: var(--ochre-ink); font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
/* Иконка и номер — у вершины арки; подпись прижата к низу. Заголовок — коробка в две строки
   с текстом по нижнему краю, описание — не ниже самого длинного: подписи всех шагов стоят на
   одной линии над плинтусом, а подъём выражают сами арки. */
.process-list h3 { display: flex; min-height: 2.5em; margin-top: auto; align-items: flex-end; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.25; }
.process-list p { min-height: calc(2 * 1.55em); max-width: 220px; margin: 10px 0 0; color: var(--muted-deep); font-size: 14px; line-height: 1.55; }


/* --- Документы: арочные ниши и волосяные линии --------------------------- */
/* У раздела нет верхнего отступа (он продолжает «Контроль»): после перехода по якорю
   рубрика не должна прилипать к линии шапки. */
.documents-section { padding-top: 0; scroll-margin-top: 24px; }
.documents-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.documents-panel > div { grid-column: 1 / -1; padding-bottom: 36px; }
.documents-panel article { display: grid; padding: 28px 0 4px; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; align-content: start; border-top: 1px solid var(--line-strong); }
.documents-panel article > .ic { width: 48px; height: 58px; padding: 19px 12px 13px; border-radius: 24px 24px 6px 6px; background: var(--sage-soft); color: var(--sage-dark); }
.documents-panel h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.22; }
.documents-panel article p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* --- Лицензия (бейдж) и контрагенты ------------------------------------- */
.license-panel { display: grid; margin-top: 64px; padding: 52px; border-radius: var(--radius-lg); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; background: var(--sage-soft); }
.license-copy h2 { font-size: clamp(32px, 3.2vw, 46px); }
/* Бейдж со скруглением 16px: при переносе даты на вторую строку он не превращается в «стадион». */
.license-number { display: flex; width: fit-content; max-width: 100%; margin: 24px 0 22px; padding: 10px 20px; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; border: 1px solid var(--sage-deep); border-radius: 16px; background: var(--milk); color: var(--sage-dark); font-size: 16px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.license-number .license-date { color: var(--muted-deep); font-size: 13px; font-weight: 500; }
.license-copy > p:last-child { margin: 0; color: var(--muted-deep); font-size: 15px; }
.clients-copy { padding-left: 48px; border-left: 1px solid var(--line-strong); }
.clients-copy > span { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.clients-copy ul { display: grid; padding: 0; margin: 22px 0 18px; border-top: 1px solid var(--line); list-style: none; }
.clients-copy li { position: relative; padding: 11px 0 11px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.clients-copy small { display: block; color: var(--muted-deep); font-size: 12px; line-height: 1.6; }

/* --- Заявка: одна поверхность, результат подбора на песке ----------------- */
.request-section { background: var(--sage-soft); }
.request-section .request-heading > p { color: var(--muted-deep); }
.request-shell { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; background: var(--milk); }
.request-form { min-width: 0; padding: 44px; }
.field { min-width: 0; margin-bottom: 22px; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: var(--milk); color: var(--ink); font-size: 16px; transition: border-color var(--fast), background-color var(--fast); }
.field input, .field select { min-height: 52px; padding: 12px 14px; }
.field textarea { min-height: 112px; padding: 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage-deep); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage-deep); outline-offset: 2px; border-color: var(--sage-deep); background: var(--white); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.issues-field { padding: 0; margin-inline: 0; border: 0; }
.issues { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.choice span { display: inline-flex; min-width: 44px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--field-line); border-radius: 999px; align-items: center; background: var(--milk); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: color var(--fast), background-color var(--fast), border-color var(--fast); }
.choice:hover span { border-color: var(--sage-deep); background: var(--sage-soft); }
.choice input:checked + span { border-color: var(--sage-dark); background: var(--sage-dark); color: var(--milk); }
.choice input:focus-visible + span { outline: 3px solid var(--sage-dark); outline-offset: 3px; }
.consent { display: grid; min-height: 44px; padding-block: 5px; margin: 4px 0 24px; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.6; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--sage-dark); }
.consent a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { min-height: 52px; padding-inline: 22px; }
.form-note { margin: 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.field-error { margin: 8px 0 0; color: var(--error); font-size: 13px; font-weight: 600; line-height: 1.45; }
.field-error[hidden] { display: none; }
.field-error-consent { margin: -18px 0 22px 34px; }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.form-status { min-height: 22px; margin: 16px 0 0; color: var(--error); font-size: 13px; font-weight: 600; }
.form-status.success { color: var(--sage-dark); }
.picker-result { display: flex; min-width: 0; padding: 44px; border-left: 1px solid var(--line); flex-direction: column; justify-content: flex-start; background: var(--sand-soft); }
.picker-result:focus { outline: none; }
.picker-result:focus-visible { outline: 3px solid var(--sage-dark); outline-offset: -3px; }
.picker-result h3 { max-width: 440px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.18; }
.picker-result > p:not(.panel-kicker) { margin: 18px 0 0; color: var(--muted-deep); font-size: 15px; }
.result-preview { padding: 0; margin: 26px 0 0; list-style: none; }
.result-preview li { display: flex; min-height: 60px; padding: 12px 0; border-top: 1px solid var(--line-strong); align-items: center; gap: 14px; font-size: 14.5px; }
.result-preview .ic { width: 34px; height: 40px; padding: 13px 8px 7px; border-radius: 17px 17px 4px 4px; background: var(--milk); color: var(--sage-dark); }
.result-service { padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.result-service > b { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.25; }
.result-service ul { padding: 0; margin: 10px 0 0; list-style: none; }
.result-service li { margin-top: 8px; color: var(--muted-deep); font-size: 13.5px; line-height: 1.6; }
.result-service li b { color: var(--ink); }
.picker-result > .result-note { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--sand-line); border-radius: var(--radius-sm); background: var(--milk); color: var(--ochre-ink); font-size: 13.5px; }

/* --- Контакты: широкий кадр, затем открытые действия ---------------------- */
.contact-section { display: grid; width: min(calc(100% - var(--gutter) * 2), var(--container)); padding-block: var(--section-space); margin-inline: auto; gap: 48px; }
/* Кадр целиком, в родных пропорциях 16:10: специалист, план объекта на столе, опрыскиватель. */
.contact-photo { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-inner { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; align-items: start; }
.contact-inner > div:first-child { grid-column: 1; grid-row: 1; }
.contact-inner > div:first-child > p:last-child { max-width: 420px; margin: 22px 0 0; color: var(--muted); }
.contact-inner > .btn { grid-column: 1; justify-self: start; }
.contact-links { grid-column: 2; grid-row: 1 / span 2; }
.contact-links a { display: flex; min-width: 0; min-height: 96px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); align-items: center; gap: 20px; transition: color var(--fast); }
.contact-links a:first-child { border-top: 1px solid var(--line-strong); }
.contact-links a:hover { color: var(--sage-deep); }
.contact-links a > .ic { width: 46px; height: 56px; padding: 18px 12px 12px; border-radius: 23px 23px 6px 6px; background: var(--sage-soft); color: var(--sage-dark); }
.contact-links span { display: flex; min-width: 0; flex-direction: column; }
.contact-links b { font-size: clamp(19px, 2vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-links a[href^="tel:"] b { font-variant-numeric: tabular-nums; }
.contact-links small { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
/* Десктоп: фото слева (специалист смотрит на текст), контакты справа одной колонкой. */
@media (min-width: 1024px) {
  .contact-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-inner > div:first-child, .contact-links, .contact-inner > .btn { grid-column: 1; grid-row: auto; }
}

/* --- Подвал -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-strong); background: var(--milk); }
.footer-main { display: grid; padding: 40px 0 36px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: start; gap: 40px; }
.footer-id { min-width: 0; }
.footer-owner { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.requisites { display: grid; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.requisites dt { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.requisites dd { margin: 6px 0 0; font-size: 13.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.footer-nav { display: grid; grid-template-columns: auto auto; gap: 0 28px; margin-top: -10px; }
.footer-nav a { min-width: 44px; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; padding: 22px 0 26px; border-top: 1px solid var(--line); justify-content: space-between; gap: 32px; }
.footer-bottom p { max-width: 820px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .footer-home { display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom a:hover { color: var(--ink); }

/* Плавающая кнопка «Позвонить» (tel:). */
.floating-contact { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: inline-flex; min-height: 56px; padding: 8px 22px 8px 8px; border-radius: 999px; align-items: center; gap: 12px; background: var(--sage-dark); color: var(--milk); box-shadow: 0 10px 26px -12px rgba(40, 49, 43, .45); font-size: 14px; font-weight: 600; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity var(--control), transform var(--control) var(--ease), visibility var(--control), background-color var(--fast); }
.floating-contact .ic { width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: var(--sage); color: var(--sage-dark); }
.floating-contact:hover { background: var(--ink); }
.floating-contact.visible:not(.suppressed) { opacity: 1; visibility: visible; transform: none; }
/* Desktop: телефон и так в липкой шапке, поэтому кнопка — компактный круг в поле страницы
   за правым краем контейнера, а не поверх круглых кнопок аккордеона услуг. Где поля не
   хватает, app.js прячет кнопку, пока она перекрывает кнопку аккордеона. */
@media (min-width: 1181px) {
  .floating-contact { right: max(6px, calc((100vw - var(--container)) / 2 - 56px)); width: 48px; height: 48px; min-height: 0; padding: 0; justify-content: center; }
  .floating-contact span { display: none; }
  .floating-contact .ic { width: 22px; height: 22px; padding: 0; background: none; color: var(--milk); }
}

/* --- Политика ПДн: та же типографика и линии ------------------------------ */
.legal-main { padding-block: 72px var(--section-space); }
.legal-main > .container { max-width: 1000px; }
.legal-hero { padding-bottom: 40px; border-bottom: 1px solid var(--line-strong); }
.legal-hero h1 { max-width: 880px; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.1; }
.legal-hero > p:last-child { margin: 24px 0 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.legal-content { max-width: 780px; padding-top: 40px; }
/* Нумерованные заголовки политики — Inter: в Prata «1.», «11.» читаются как «I.», «II.». */
.legal-content h2 { margin: 44px 0 14px; font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.7; }
.legal-content a:not(.btn) { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-content a[href^="tel:"], .legal-content a[href^="mailto:"], .nojs-request a[href^="tel:"] { white-space: nowrap; }
.legal-content ul { padding-left: 0; list-style: none; }
.legal-content li { position: relative; margin-top: 8px; padding-left: 20px; }
.legal-content li::before { top: .74em; }
.legal-content .legal-notice { padding: 22px 24px; border: 1px solid var(--sand-line); border-radius: var(--radius-md); background: var(--milk); color: var(--ink); }
/* Служебная пометка скрыта (видна только по ?review=1) — первый раздел без лишнего отступа сверху. */
.legal-notice[hidden] + h2 { margin-top: 0; }
.legal-notice b { color: var(--ochre-ink); }
.legal-back { margin: 44px 0 0; }
.legal-back .btn:hover .ic { transform: translateX(-3px); }
.footer-main-legal { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

/* --- Прогрессивное улучшение: контент никогда не заперт анимацией -------- */
.js .reveal { transform: translateY(16px); opacity: 0; transition: transform var(--reveal) var(--ease), opacity var(--reveal); transition-delay: calc(var(--i, 0) * 40ms); }
.js .reveal.in, .qa-mode .reveal, .no-js .reveal { opacity: 1; transform: none; }
.hero-card.reveal { opacity: 1; transform: none; }
@keyframes panel-in { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.no-js .service-card { grid-template-areas: "title title title title" ". media detail detail"; cursor: default; }
.no-js .service-more, .no-js .system-tabs, .no-js .quick-section, .no-js .request-shell { display: none; }
.no-js .system-panel { display: block; }
.no-js .system-content { margin: 32px 0; }
.no-js .system-image { max-width: 640px; }
.no-js .menu-button { display: none; }
.no-js .request-heading > p { display: none; }
.nojs-request { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--milk); }
.nojs-request p { margin: 0; color: var(--muted-deep); }
.nojs-request p + p { margin-top: 14px; color: var(--ink); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nojs-request a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
/* Ноутбуки 1024–1439 (1366×768, 1280×720, 1024×768): первый экран чуть плотнее. */
@media (max-width: 1439px) {
  .hero { padding-top: 24px; }
  .hero-lead { margin-top: 20px; }
  .hero-actions { margin-top: 26px; }
}

@media (min-width: 1181px) and (max-width: 1365px) {
  /* Описание в три строки поднимает заголовок — арки выше на 20 px, чтобы номер «01»
     не касался заголовка в самой низкой арке. */
  .process-list p { min-height: calc(3 * 1.55em); }
  .process-list li { min-height: 316px; }
  .process-list li:nth-child(2) { min-height: 336px; }
  .process-list li:nth-child(3) { min-height: 356px; }
  .process-list li:nth-child(4) { min-height: 376px; }
  .process-list li:nth-child(5) { min-height: 396px; }
}

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .nav-shell { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 20px; }
  .menu-button { display: inline-flex; }
  .no-js .desktop-nav, .legal-page .desktop-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
  .no-js .nav-shell, .legal-page .nav-shell { grid-template-columns: auto minmax(0, 1fr); }
  .no-js .header-cta, .legal-page .header-cta, .no-js .header-phone, .legal-page .header-phone { display: none; }
  .mobile-menu { left: auto; width: min(380px, calc(100% - var(--gutter) * 2)); }
  /* Колонка текста шире (арка уже): H1 на 1024–1180 идёт в три строки. */
  .hero-card { grid-template-columns: minmax(0, 7.9fr) minmax(0, 4.1fr); gap: 48px; }
  /* Арка идёт на всю высоту первого экрана: без ограничения высоты она не проваливается вниз
     и не оставляет пустой угол справа от H1 (колонка узкая — арка читается как портал). */
  .hero-visual { max-height: none; }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: clamp(38px, 4vw, 46px); line-height: 1.08; }
  .quick-panel { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 58px; gap: 16px; }
  .quick-panel > div:first-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
  .quick-panel .section-label { margin: 0; }
  .quick-panel h2 { max-width: none; font-size: 28px; }
  .section-heading, .request-heading { gap: 40px; }
  .service-card { grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr) 52px; column-gap: 32px; }
  .service-card-copy { grid-template-columns: 56px minmax(0, 1fr); column-gap: 32px; }
  .system-panel { gap: 28px 32px; }
  .equipment-grid, .compact-list { column-gap: 20px; }
  .equipment-grid li { gap: 12px; }
  .process-list { gap: 10px; }
  .process-list li { padding: 28px 14px 32px; }
  .process-list li:nth-child(1) { min-height: 320px; }
  .process-list li:nth-child(2) { min-height: 340px; }
  .process-list li:nth-child(3) { min-height: 360px; }
  .process-list li:nth-child(4) { min-height: 380px; }
  .process-list li:nth-child(5) { min-height: 400px; }
  .process-list p { min-height: calc(4 * 1.55em); }
  .request-form, .picker-result { padding: 36px; }
  .license-panel { padding: 40px; gap: 40px; }
  .clients-copy { padding-left: 40px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .footer-nav { grid-column: 1 / -1; grid-template-columns: repeat(4, max-content); margin-top: 0; }
  .footer-main-legal { grid-template-columns: minmax(0, 1fr) auto; }
}

/* 768–1180: телефон уже есть в шапке — в выпадающем меню его не повторяем, плавающую кнопку
   «Позвонить» не показываем: большая таблетка в углу ложилась на текст правой колонки. */
@media (min-width: 768px) and (max-width: 1180px) {
  .mobile-menu a[href^="tel:"] { display: none; }
  .mobile-menu a:nth-last-child(2) { border-bottom: 0; }
  .floating-contact { display: none; }
  /* Без JS и на странице политики меню — строкой ссылок; пять пунктов в одну строку. */
  .no-js .desktop-nav, .legal-page .desktop-nav { flex-wrap: nowrap; gap: 0 16px; }
  .no-js .desktop-nav a, .legal-page .desktop-nav a { font-size: 13.5px; }
}
/* Бейдж лицензии: где номер и дата не помещаются в строку (две колонки 1024–1180, телефон),
   дата стоит второй строкой, а бейдж по ширине номера — без пустого хвоста справа. */
@media (min-width: 1024px) and (max-width: 1180px), (max-width: 767px) {
  .license-number { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* Невысокие окна ноутбуков (1366×657, 1536×730, 1280×600, 1024×690 — окно браузера
   с панелями): первый экран сжимается по высоте, а не по ширине — шапка ниже, отступы
   и H1 компактнее, чтобы поле цены стояло над сгибом. Порядок DOM не меняется. */
@media (min-width: 1024px) and (max-height: 820px) {
  :root { --anchor-offset: 73px; }
  .nav-shell { min-height: 72px; }
  .site-header .brand-mark { width: 81px; height: 52px; }
  .hero { padding-top: 12px; }
  /* Арка стоит на цоколе и растёт вверх до верха строки; её контур выше арки на шаг —
     укорачиваем арку, чтобы вершина контура не уходила под линию шапки (зазор 10 px). */
  .hero-visual { height: calc(100% - 12px); }
  .hero h1 { font-size: clamp(38px, 3.3vw, 46px); line-height: 1.08; }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .price-note { margin-top: 16px; }
}
/* 1280×600 (1920 px при масштабе 150% в Windows): ещё плотнее. */
@media (min-width: 1024px) and (max-height: 640px) {
  .hero { padding-top: 6px; }
  .hero-visual { height: calc(100% - 18px); }
  .hero h1 { font-size: clamp(36px, 3.1vw, 42px); line-height: 1.06; }
  .hero-lead { margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
  .price-note { margin-top: 12px; }
}

@media (max-width: 1023px) {
  :root { --section-space: 80px; }
  .hero { padding-top: 36px; }
  .hero-card { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { min-height: 0; }
  .hero-copy { padding-block: 0; align-self: auto; }
  .hero h1 { max-width: 700px; font-size: clamp(38px, 5.4vw, 48px); }
  .hero-lead { font-size: 17px; }
  .hero-visual { width: min(100% - 56px, 560px); height: auto; max-height: none; margin: var(--step) 0 0; justify-self: center; align-self: auto; }
  .hero-visual picture { height: auto; min-height: 0; aspect-ratio: 5 / 4; }
  .hero-visual img { object-position: 76% 50%; }
  .quick-panel > div:first-child { display: block; }
  .quick-panel .section-label { margin-bottom: 10px; }
  .proof-item { padding: 22px 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .proof-item:first-child { padding-left: 0; }
  .proof-item b { font-size: 18px; }
  .section-heading, .request-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .section-heading > p, .request-heading > p { max-width: 600px; }
  .section-heading h2, .request-heading h2 { max-width: 750px; }
  .service-card { grid-template-columns: minmax(0, 230px) minmax(0, 1fr) 52px; grid-template-areas: "title title action" "media detail detail"; column-gap: 28px; }
  .no-js .service-card { grid-template-areas: "title title title" "media detail detail"; }
  .service-card-copy { min-height: 96px; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; }
  .service-card-detail h4 { font-size: 26px; }
  .service-card-detail > p:not(.panel-kicker) { font-size: 15px; }
  .service-card-detail ul { grid-template-columns: 1fr; }
  .system-panel { grid-template-columns: 1fr; }
  .system-image { grid-column: 1; grid-row: 4; max-width: 640px; }
  .system-content { grid-column: 1; grid-row: 5; }
  /* Аркада → вертикальная лестница: арочная ниша с иконкой и номером слева. */
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .process-list li, .process-list li:nth-child(n) { display: grid; min-height: 0; padding: 22px 0; border-top: 1px solid var(--line); border-radius: 0; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; background: none; text-align: left; }
  .process-list li > span { grid-row: 1 / span 2; width: 64px; height: 84px; padding-top: 16px; border-radius: 32px 32px 6px 6px; justify-content: flex-start; gap: 8px; background: var(--sand-soft); }
  .process-list li:nth-child(2) > span { background: var(--arcade-2); }
  .process-list li:nth-child(3) > span { background: var(--arcade-3); }
  .process-list li:nth-child(4) > span { background: var(--arcade-4); }
  .process-list li:nth-child(5) > span { background: var(--sage-soft); }
  .process-list li > span .ic { width: 22px; height: 22px; padding: 0; background: none; }
  .process-list li > span b { font-size: 19px; font-weight: 500; }
  .process-list li > span { margin-bottom: 0; }
  .process-list h3 { display: block; min-height: 0; margin-top: 6px; font-size: 21px; }
  .process-list p { min-height: 0; max-width: none; margin-top: 6px; font-size: 15px; }
  .license-panel { grid-template-columns: 1fr; gap: 32px; }
  .documents-panel { gap: 0 28px; }
  .documents-panel article { grid-template-columns: 1fr; gap: 18px; }
  .documents-panel h3 { font-size: 21px; }
  .clients-copy { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .clients-copy ul { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .request-shell { grid-template-columns: 1fr; }
  .picker-result { min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  .picker-result.has-results { min-height: 0; }
  .picker-result h3 { max-width: 500px; }
  .contact-inner { gap: 24px 40px; }
}

@media (max-width: 767px) {
  /* Отступ якоря = высота шапки (68 + 1 px линии): над целевой секцией нет полосы соседней. */
  :root { --gutter: 16px; --section-space: 64px; --anchor-offset: 69px; --step: 9px; }
  .nav-shell { min-height: 68px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .header-phone, .header-cta { display: none; }
  .brand { min-height: 44px; }
  .brand-mark { width: 74px; height: 48px; }
  .footer-brand .brand-mark { width: 99px; height: 64px; }
  .mobile-menu { left: var(--gutter); width: auto; padding-inline: 18px; }
  .no-js .nav-shell, .legal-page .nav-shell { grid-template-columns: 1fr; padding-block: 12px; gap: 4px; }
  .no-js .desktop-nav, .legal-page .desktop-nav { justify-content: flex-start; gap: 0 18px; }
  /* Без JS и на странице политики меню переносится в два ряда: липкая шапка заняла бы
     до 157 px экрана и закрывала бы начало раздела после перехода по якорю. */
  .no-js .site-header, .legal-page .site-header { position: static; }
  .section-label, .panel-kicker { margin-bottom: 16px; font-size: 11px; letter-spacing: .14em; gap: 12px; }
  .section-label::before, .panel-kicker::before { flex-basis: 20px; }
  /* Первый экран: H1, фраза, CTA и цена целиком на 375×812 и 360×800. */
  .hero { padding-top: 20px; }
  .hero-card { gap: 36px; }
  .hero h1 { font-size: clamp(27px, 7.4vw, 31px); line-height: 1.08; }
  .hero-lead { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .price-note { width: auto; margin-top: 14px; padding: 9px 14px 9px 9px; gap: 12px; font-size: 14.5px; }
  .price-note > .ic { width: 36px; height: 44px; padding: 14px 9px 9px; border-radius: 18px 18px 5px 5px; }
  .object-band { padding-top: 24px; }
  .object-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
  .object-list li { font-size: 15px; white-space: normal; }
  .object-list li::before { top: 8.5px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 5px 5px 5px 22px; justify-content: space-between; }
  .hero-actions .round-link { width: 54px; height: 54px; padding: 15px; }
  .hero-visual { width: auto; margin: var(--step) calc(var(--step) * 2) 0; justify-self: stretch; }
  .hero-visual picture { aspect-ratio: 4 / 5; }
  .hero-visual img { object-position: 79% 50%; }
  .proof-rail { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child { padding: 16px 0; flex-direction: row; align-items: center; gap: 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .quick-section { padding-top: 32px; }
  .quick-panel { padding: 24px 18px 18px; grid-template-columns: minmax(0, 1fr) 58px; gap: 12px; border-radius: var(--radius-md); }
  .quick-panel > div:first-child { display: block; margin-bottom: 6px; }
  .quick-panel .section-label { margin-bottom: 10px; }
  .quick-panel h2 { max-width: 250px; font-size: 26px; }
  .quick-field { grid-column: 1 / -1; min-height: 76px; }
  .quick-arrow { display: none; }
  .quick-panel > .round-link { grid-column: 1 / -1; width: 100%; height: auto; min-height: 56px; padding: 8px 8px 8px 18px; justify-content: space-between; gap: 10px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: left; }
  .quick-panel > .round-link .ic { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--sage); color: var(--sage-dark); }
  .quick-go-label { display: inline; }
  .section-heading, .request-heading { margin-bottom: 32px; gap: 16px; }
  .section-heading h2, .request-heading h2, .system-copy > h2, .documents-panel h2, .license-copy h2, .contact-inner h2 { font-size: 33px; }
  .section-heading > p, .request-heading > p { font-size: 15px; }
  .service-card { grid-template-columns: minmax(0, 1fr) 46px; grid-template-areas: "title action" "media media" "detail detail"; column-gap: 12px; }
  .no-js .service-card { grid-template-areas: "title title" "media media" "detail detail"; }
  .service-card-copy { min-height: 84px; padding-block: 16px; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; }
  .service-card-copy > span { font-size: 13px; letter-spacing: .02em; }
  .service-card-copy h3 { font-size: 25px; line-height: 1.15; }
  .service-more { width: 46px; height: 46px; padding: 12px; }
  .service-card.is-open > picture, .no-js .service-card > picture { margin: 4px 0 24px; aspect-ratio: 4 / 3; border-radius: 50% 50% var(--radius-sm) var(--radius-sm) / 50% 50% var(--radius-sm) var(--radius-sm); }
  /* Кадр 4:3 вписан без запаса по высоте, а свод здесь — полуэллипс: запас над головой больше. */
  .service-card[data-service="disinsection"] > picture { padding-top: 14%; }
  .service-card[data-service="disinsection"] picture img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px); mask-image: linear-gradient(to bottom, transparent 0, #000 32px); }
  .service-card.is-open .service-card-detail, .no-js .service-card-detail { margin-bottom: 28px; }
  .service-card-detail h4 { font-size: 23px; }
  .service-card-detail li { font-size: 14px; }
  .system-panel { gap: 24px; }
  .system-copy > .section-label { margin-bottom: -8px; }
  .system-tabs { justify-self: stretch; }
  .system-tab { flex: 1; padding-inline: 12px; font-size: 13.5px; }
  .system-content > p { font-size: 15px; margin-bottom: 20px; }
  .equipment-grid, .compact-list { grid-template-columns: 1fr; }
  .equipment-grid li { min-height: 68px; padding-block: 12px; gap: 16px; }
  .compact-list li { padding-block: 15px; }
  .compact-list li::before { top: 23px; }
  .process-list li, .process-list li:nth-child(n) { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding-block: 18px; }
  .process-list li > span { width: 56px; height: 74px; padding-top: 14px; border-radius: 28px 28px 5px 5px; }
  .process-list li > span .ic { width: 20px; height: 20px; }
  .process-list li > span b { font-size: 17px; }
  .process-list h3 { margin-top: 4px; font-size: 20px; }
  .process-list p { font-size: 14.5px; }
  .documents-panel { grid-template-columns: 1fr; gap: 0; }
  .documents-panel > div { padding-bottom: 28px; }
  .documents-panel article { padding: 22px 0; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .documents-panel article > .ic { width: 44px; height: 54px; padding: 18px 11px 12px; border-radius: 22px 22px 5px 5px; }
  .documents-panel h3 { font-size: 21px; }
  .documents-panel article p { font-size: 14.5px; margin-top: 8px; }
  .license-panel { margin-top: 40px; padding: 28px 20px; border-radius: var(--radius-md); }
  .license-number { padding: 10px 14px; border-radius: 16px; font-size: 14px; }
  .clients-copy > span { font-size: 20px; }
  .clients-copy ul { grid-template-columns: 1fr; }
  .request-shell { border-radius: var(--radius-md); }
  .request-form, .picker-result { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .choice span { padding-inline: 14px; }
  .consent { font-size: 12px; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .picker-result h3 { font-size: 27px; }
  .contact-section { gap: 32px; }
  .contact-photo { border-radius: var(--radius-md); }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner > div:first-child, .contact-links, .contact-inner > .btn { grid-column: 1; grid-row: auto; }
  .contact-inner > .btn { justify-self: stretch; justify-content: space-between; }
  .contact-links a { min-height: 88px; gap: 16px; }
  .contact-links a > .ic { width: 42px; height: 52px; padding: 17px 11px 11px; border-radius: 21px 21px 5px 5px; }
  .contact-links b { font-size: 20px; }
  .footer-main { grid-template-columns: 1fr; padding-block: 32px 28px; gap: 28px; }
  .footer-main-legal { grid-template-columns: 1fr; }
  .requisites { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: auto; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .floating-contact { right: 14px; bottom: 14px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .floating-contact span { display: none; }
  .floating-contact .ic { width: 24px; height: 24px; padding: 0; background: none; color: var(--milk); }
  .legal-main { padding-top: 40px; }
  .legal-hero { padding-bottom: 28px; }
  .legal-hero h1 { font-size: 36px; }
  .legal-content { padding-top: 28px; }
  .legal-content h2 { margin-top: 36px; font-size: 20px; }
  .legal-content .legal-notice { padding: 18px; }
}

/* До 374 px (360×800 и уже): заголовок и фраза чуть мельче. */
@media (max-width: 374px) {
  .hero-lead { font-size: 15px; }
  /* Подсказка «Например: склад 800 м², Москва» целиком (кегль ввода остаётся 16 px). */
  .field input::placeholder, .field textarea::placeholder { font-size: 15px; }
}

@media (max-width: 359px) {
  /* Подсказка поля «Адрес или площадь» целиком: поле чуть шире внутри, кегль подсказок
     13.5 px (кегль ввода остаётся 16 px — без автоувеличения в iOS). */
  .field input, .field select { padding-inline: 12px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 13.5px; }
  .hero-actions .btn { padding-left: 18px; gap: 10px; font-size: 14px; white-space: nowrap; }
  .hero-actions .btn .ic { width: 40px; height: 40px; padding: 10px; }
  .quick-panel h2 { font-size: 24px; }
  .section-heading h2, .request-heading h2, .system-copy > h2, .documents-panel h2, .license-copy h2, .contact-inner h2 { font-size: 29px; }
  .service-card-copy h3 { font-size: 22px; }
  .request-form, .picker-result { padding-inline: 16px; }
  .contact-links b { font-size: 18px; }
  .legal-hero h1 { font-size: 31px; }
}

/* Режим высокой контрастности (Windows): фон сбрасывается, поэтому выбранные состояния
   показываем системными цветами и рамкой, круг номера шага — контуром. */
@media (forced-colors: active) {
  .choice input:checked + span, .system-tab.active { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; }
  .system-tab.active { outline: 2px solid Highlight; }
  .step-number { border: 1px solid CanvasText; }
  .service-card.is-open .service-more, .menu-button[aria-expanded="true"] { border: 2px solid Highlight; }
  .object-list li::before, .service-card-detail li::before, .compact-list li::before, .clients-copy li::before, .legal-content li::before { background: CanvasText; }
  .price-note, .license-number, .quick-field, .license-panel, .quick-panel { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .js .reveal, .js .reveal.in, .hero-visual { opacity: 1; transform: none !important; }
}
