@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+20BD, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/prata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+20BD, U+2116;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/prata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #102c2a;
  --ink-2: #183d39;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --sand: #ece5d8;
  --copper: #c7764f;
  --copper-dark: #9d4f32;
  --copper-button: #a85536;
  --copper-button-hover: #7c3f28;
  --sage: #d9e3dc;
  --text: #20302e;
  --muted: #64716e;
  --line: rgba(16,44,42,.13);
  --shadow: 0 24px 70px rgba(16,44,42,.14);
  /* Шкала радиусов: четыре ступени, кратные 4. До 2026-09-24 на странице жили
     8/12/13/14/16/20/24/30 px вперемешку — разнобой читался как «сборная солянка». */
  /* Типографическая шкала: девять ступеней с ролями вместо 18 случайных значений.
     Для сравнения: Apple HIG (Dynamic Type) — 11 ролей, Material 3 — 15.
     Новые размеры не вводить: любой текст на сайте относится к одной из этих ролей. */
  --fs-label: 12px;  /* eyebrow, метки, мелкие подписи */
  --fs-sm: 14px;     /* текст карточек, вторичный */
  --fs-base: 16px;   /* базовый текст, поля ввода */
  --fs-lead: 18px;   /* лид-абзацы секций */
  --fs-h3: 20px;     /* заголовки карточек */
  --fs-h3-lg: 26px;  /* крупный акцент */
  --fs-display-sm: 34px;
  --fs-h2: clamp(30px, 4vw, 48px);
  --fs-h1: clamp(42px, 5.2vw, 70px);
  --r-field: 12px;   /* поля ввода и кнопки */
  --r-card-sm: 16px; /* вторичные карточки и плашки */
  --r-card: 20px;    /* основные карточки */
  --r-panel: 24px;   /* крупные панели, изображения, формы */
  --radius: var(--r-panel);
  /* Тени: три ступени вместо россыпи. Кнопки и мокап устройства не входят —
     у них собственная физика. */
  --sh-card: 0 14px 34px -30px rgba(16,44,42,.45);
  --sh-raised: 0 24px 46px -30px rgba(16,44,42,.42);
}
*, *::before, *::after { box-sizing: border-box; }
/* Branded scrollbars — thin, ink-tinted, rounded — instead of the OS default
   (which reads as an unstyled grey bar, especially on macOS set to always show
   scrollbars). Covers the page itself and any scrollable element (dialog,
   mobile nav panel, textarea) since the rule targets the pseudo-element
   directly rather than a specific selector. */
* { scrollbar-width: thin; scrollbar-color: rgba(16,44,42,.32) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(16,44,42,.32); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(16,44,42,.5); }
::-webkit-scrollbar-corner { background: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: Manrope, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(199,118,79,.25); color: var(--ink); }
body, button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea, a { font: inherit; }
:focus-visible { outline: 3px solid rgba(199,118,79,.5); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.serif, h1, h2, h3 { font-family: Prata, Georgia, serif; font-weight: 400; }
/* Вес и разрядка облегчены по разбору эталонов (Stripe: вес 500, tracking
   +0.02em; Linear: вес 500, +0.4px) — было 700/.15em, в разы жирнее и шире,
   чем у обоих; это и читалось как тяжеловесный/кричащий приём (2026-11-02). */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--copper-dark); font-size: var(--fs-label); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
/* Не черта (ни у Stripe, ни у Linear такого приёма нет — проверено 2026-11-02,
   это читалось как общий AI-паттерн), а собственный «кирпич» — та же скруглённая
   форма и пропорция (4:3), что в знаке BRIKA Media (favicon.svg), просто
   маленькая и залитая цветом подписи. Узнаваемый элемент именно нашего бренда. */
.eyebrow::before { content: ""; width: 8px; height: 6px; border-radius: 1.5px; background: currentColor; }
.section-head { max-width: 730px; margin-bottom: 56px; }
/* Заголовок секции — одна ступень шкалы для всех секций. Раньше правило висело
   только на .section-head, и два заголовка («Часть интерьера…», «Каждый месяц…»)
   набирались браузерным дефолтом 24px — вдвое мельче соседей. Ошибку нашли
   замером всех h2 при сравнении с Apple/Stripe 2026-09-24. */
.section-head h2, .product-copy h2 { margin: 14px 0 15px; color: var(--ink); font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.025em; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); font-size: var(--fs-lead); }
section { padding: 136px 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(16,44,42,.08);
  background: rgba(247,244,237,.84);
  box-shadow:
    0 1px 2px rgba(16,44,42,.05),
    0 12px 28px -18px rgba(16,44,42,.32),
    0 26px 54px -34px rgba(16,44,42,.25);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { color: var(--ink); font: 400 var(--fs-h3) Prata, serif; letter-spacing: .03em; }
.logo { display:flex; align-items:center; gap:6px; }
.logo-mark { width:32px; height:32px; flex:0 0 32px; position: relative; top: -1.5px; }
.logo span { color: var(--copper-dark); }
/* Отступ между пунктами и подложка на hover/active — приём, подтверждённый
   разбором реальных навбаров Apple/Google/Linear (2026-10-29): ни один не
   укрупняет текст пунктов меню относительно остального интерфейса, но у всех
   пункты либо разнесены заметно шире обычного inline-текста, либо получают
   фон при наведении (Linear — скруглённая «таблетка»). Увеличивать шрифт
   не стали: наши 14px относительно 20px логотипа (0.7) почти точно совпадают
   с соотношением у Apple. */
.nav-links { display: flex; align-items: center; gap: 36px; color: #465653; font-size: var(--fs-sm); font-weight: 600; }
.nav-links a, .nav-links button { display: inline-flex; align-items: center; padding: 7px 12px; margin: -7px -12px; border-radius: var(--r-field); transition: background-color .15s ease, color .15s ease; }
.nav-links button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-links a:hover, .nav-links button:hover { color: var(--copper-dark); background: rgba(157,79,50,.1); }
.nav-icon, .nav-links-divider, .nav-drag-handle { display: none; }
/* Пункт только для шторки: на десктопе скрыт, в мобильном меню его возвращает
   правило .nav-links a (специфичность выше), объявленное ниже в медиазапросе. */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border: 1px solid transparent;
  border-radius: var(--r-field);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  letter-spacing: -.01em;
  cursor: pointer;
  /* Кнопки плоские: сплошная заливка без тени и градиента. Цветная тень под
     медной кнопкой читалась как свечение и выдавала «шаблонный» вид; у Apple
     и Google кнопка — просто плотный прямоугольник, реакция идёт цветом. */
  transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.button:hover { filter: none; }
.button:active { background-color: var(--copper-button-hover); }
.button-copper {
  border-color: transparent;
  background: var(--copper-button);
  color: #fff;
}
.button-copper:hover { background: var(--copper-dark); }
.nav-cta { min-height: 42px; padding: 10px 18px; border-radius: var(--r-field); }
.menu-button { display:none; width:42px; height:42px; margin-left:auto; border:1px solid var(--line); border-radius:var(--r-field); background:rgba(255,255,255,.5); cursor: pointer; }
.menu-button span { display:block; width:18px; height:1px; margin:5px auto; background:var(--ink); transition:transform .2s; }
.menu-button[aria-expanded="true"] span:first-child { transform:translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform:translateY(-3px) rotate(-45deg); }
.nav.scrolled { box-shadow:0 16px 38px -30px rgba(16,44,42,.75); }

.hero { padding: 88px 0 84px; overflow: hidden; background: radial-gradient(ellipse at 82% 28%, rgba(217,227,220,.42), transparent 34%); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(44px, 7vw, 86px); }
.hero h1 { max-width: 710px; margin: 20px 0 22px; color: var(--ink); font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.04em; }
.hero h1 span { color: var(--copper-dark); }
/* Second, de-emphasis tone alongside the existing copper emphasis — the
   connective phrase fades to a muted grey so both ends of the sentence (the
   plain opener and the copper payoff) read as the two things that matter,
   same two-tone hierarchy trick as эптс.рф's headlines, just inverted:
   there they mute the trailing half, here it's the middle. */
.hero h1 span.muted { color: var(--muted); }
.hero-lead { max-width: 620px; margin: 0 0 30px; color: #435451; font-size: clamp(var(--fs-lead), 1.8vw, 20px); line-height: 1.65; }
/* Развилка «кто вы» на первом экране. Главный выбор посетителя вынесен из
   строки меню (где он был двумя пунктами с жирным начертанием и спорил за
   внимание с подсветкой активного раздела) сюда, в hero. Подпись сверху прямо
   говорит, что надо выбрать, иконка и стрелка делают карточку читаемой как
   кликабельный вариант, а не как информационная плашка. */
.audience-split { margin-top: 26px; max-width: 600px; }
.audience-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audience-card { display: flex; flex-direction: column; gap: 7px; padding: 17px 19px; border: 1px solid transparent; border-radius: var(--r-card-sm); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease; }
.audience-card:hover, .audience-card:focus-visible { border-color: rgba(199,118,79,.55); background: #fff; transform: translateY(-2px); box-shadow: var(--sh-raised); outline: none; }
.audience-card-head { display: flex; align-items: center; gap: 9px; }
.audience-card-icon { flex: none; width: 19px; height: 19px; color: var(--copper-dark); }
.audience-card-label { font-size: var(--fs-sm); font-weight: 700; letter-spacing: -.01em; }
.audience-card-head::after { content: ""; margin-left: auto; }
.audience-card:hover .audience-card-head::after, .audience-card:focus-visible .audience-card-head::after { transform: translateX(3px); }
.audience-card-text { color: var(--muted); font-size: var(--fs-label); line-height: 1.45; }
/* На первом экране стоит мокап экрана с живым видео — продукт в действии.
   У .device своя тень, поэтому общий drop-shadow блока здесь не нужен. */
.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}
/* На первом экране мокап должен помещаться целиком рядом с текстом: при 560px
   высота с напольной стойкой доходила до 704px и основание уезжало за край. */
.hero-media .device { width: min(100%, 470px); }
.hero-media img {
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--r-panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 1px 2px rgba(16,44,42,.08),
    0 18px 38px rgba(16,44,42,.13),
    0 46px 80px -36px rgba(16,44,42,.42);
}

.product { overflow:hidden; background:var(--ink); color:#fff; }
.product-grid { display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:clamp(60px,9vw,120px); }
.product h2 { color:#fff; }.product .eyebrow{color:#e8a07d}.product-copy>p{color:rgba(255,255,255,.65);font-size:var(--fs-lead)}.product-copy dl{margin:35px 0 0}
/* Колонка подписи была 120px — у «Для рекламодателей» естественная ширина
   162px (замер через отсоединённый клон, вне грид-трека), слово переносилось
   на 2–3 строки и визуально слипалось со значением справа. 165px хватает
   всем трём подписям на одну строку. */
.product-copy dl div{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:18px;padding:16px 0;border-top:1px solid rgba(255,255,255,.13)}.product-copy dt{font-weight:500;color:#e8a07d}.product-copy dd{margin:0;color:rgba(255,255,255,.6);font-size:var(--fs-sm)}
/* Monitor proportions follow IMG_4565.HEIC; no camera or floating labels. */
.product-photo { position: relative; filter: drop-shadow(0 34px 34px rgba(0,0,0,.28)); }
.product-photo img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-panel); }
.device { width: min(94%, 510px); position: relative; filter: drop-shadow(0 24px 25px rgba(0,0,0,.22)); }
.device-screen {
  position: relative; z-index: 2; box-sizing: border-box; aspect-ratio: 16/9; overflow: hidden;
  border: 9px solid #e9e8df; border-radius: 13px; contain: layout paint;
  box-shadow: 0 0 0 1px #c7c8bd, inset 0 0 0 2px rgba(37,44,39,.55), 2px 5px 0 #c9cbc1;
  background: radial-gradient(circle at 72% 30%,rgba(255,255,255,.45),transparent 28%),linear-gradient(135deg,#cbb195,#f1dfc8);
  color: #4a3228;
}
.device-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Доступное управление автовоспроизведением: ролик длится дольше 5 секунд и
   крутится по кругу без штатных controls — W3C требует механизм паузы/
   остановки для такого движения (F08, аудит 2026-10-29). Кнопка видна
   постоянно, не только на hover — иначе человек с клавиатуры её не найдёт. */
.device-video-toggle {
  position: absolute; z-index: 3; right: 10px; bottom: 10px;
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(16,44,42,.55); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease;
}
.device-video-toggle:hover, .device-video-toggle:focus-visible { background: var(--copper-dark); }
/* На телефоне плавающая кнопка «Контакты» (.contact-fab, фиксирована снизу
   справа) при прокрутке накладывается на кнопку паузы видео — обе в правом
   нижнем углу. Кнопку паузы переносим влево, только там, где появляется fab. */
@media (max-width: 760px) {
  .device-video-toggle { left: 10px; right: auto; }
}
.device-video-icon { display: block; width: 16px; height: 16px; }
.device-slide {
  position: absolute; inset: 0; box-sizing: border-box;
  padding: clamp(18px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transition: opacity 1s ease;
}
.device-slide.is-active { opacity: 1; }
.device-screen small, .device-screen span { font-size: clamp(7px, 1vw, 10px); letter-spacing: .08em; text-transform: uppercase; }
.device-screen strong { margin: 11px 0; font: 400 clamp(var(--fs-h3), 2.6vw, var(--fs-display-sm))/1.12 Prata,serif; }
@media (prefers-reduced-motion: reduce) {
}
.device > i {
  position: relative; z-index: 1; display: block; width: 3.8%; aspect-ratio: 1/16;
  margin: 0 auto; border-radius: 0 0 7px 7px;
  background: linear-gradient(90deg,#c4c8bf 0%,#f1f1e9 30%,#e5e7de 64%,#b8beb3 100%);
  box-shadow: inset 0 -1px 0 #9ea798;
}
.device > i::after { content: ""; position: absolute; top: 18%; left: 0; right: 0; height: 1px; background: rgba(103,115,99,.23); }
.device > b {
  position: relative; display: block; width: 44%; aspect-ratio: 2.1/1;
  margin: -4% auto 0; border-radius: 50%;
  background: linear-gradient(145deg,#f2f1e8 0%,#dedfd5 65%,#c2c8bb 100%);
  box-shadow: 0 9px 0 #bfc4b7, 0 11px 0 #aab1a3, inset 0 2px 2px rgba(255,255,255,.7);
}

.lead-form { position:relative;z-index:2;max-width:620px;display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:30px;padding:25px;border:1px solid rgba(255,255,255,.14);border-radius:var(--r-card);background:rgba(255,255,255,.055) }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -9999px; }
.lead-form { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.lead-form[hidden] { display: none; }
.lead-form.is-leaving { opacity: 0; transform: translateY(-8px); }
.lead-form[aria-busy="true"] button[type="submit"]::after {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 9px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  vertical-align: -2px; animation: button-spin .7s linear infinite;
}
@keyframes button-spin { to { transform: rotate(360deg); } }
.lead-success {
  max-width: 620px; margin-top: 30px; padding: 40px 25px; text-align: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-card); background: rgba(255,255,255,.055);
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease;
}
.lead-success.is-visible { opacity: 1; transform: none; }
.lead-success h3 { margin: 18px 0 8px; color: #fff; font: 400 var(--fs-h3-lg) Prata, serif; }
/* outline:none тут должен побеждать общий .cta :focus-visible (строка ниже
   в файле) — (0,2,0) у него специфичнее (0,1,1) у простого ".lead-success h3",
   поэтому золотая рамка всё равно показывалась. Эта строка — (0,2,1), выше.
   Заголовок получает фокус только программно, для экранного диктора
   (tabindex="-1", не часть обычной Tab-навигации) — видимое кольцо фокуса
   тут никогда не нужно. */
.lead-success h3:focus-visible { outline: none; }
.lead-success p { margin: 0 0 24px; color: rgba(255,255,255,.65); font-size: var(--fs-sm); line-height: 1.6; }
.lead-success-check { width: 56px; height: 56px; }
.lead-success-check circle, .lead-success-check path {
  fill: none; stroke: #7fd8ab; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.lead-success.is-visible .lead-success-check circle { animation: success-draw .6s ease forwards .1s; }
.lead-success.is-visible .lead-success-check path { animation: success-draw .4s ease forwards .6s; }
@keyframes success-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lead-form, .lead-success { transition: none; }
  .lead-success-check circle, .lead-success-check path { animation: none !important; stroke-dashoffset: 0; }
  .lead-form[aria-busy="true"] button[type="submit"]::after { animation: none; }
}.lead-form label{color:rgba(255,255,255,.65);font-size:var(--fs-label);font-weight:700}.lead-form label:nth-child(3){grid-column:1/-1}.lead-form input{width:100%;margin-top:6px;padding:12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--r-field);background:#183d39;color:var(--paper);font-size:var(--fs-base)}.lead-form input:hover,.lead-form input:focus-visible{border-color:rgba(230,193,125,.5)}.lead-form p,.lead-form output{align-self:center;margin:0;color:rgba(255,255,255,.42);font-size:var(--fs-label)}.lead-form output{color:#e8a07d}
/* --d (default 0) staggers siblings within one grid/section — same inline custom-property
   pattern already used for the mobile menu links, just a longer per-step interval since
   these are content cards, not quick nav items. */
/* Прячем .reveal только когда класс js на <html> подтвердил, что скрипт
   запустился и действительно снимет это состояние (см. index.html, инлайн-
   скрипт в head). Без JS класс js не появляется — контент остаётся видимым
   по умолчанию, а не пропадает молча (F06 из аудита 2026-10-29). */
html.js .reveal{opacity:0;transform:translateY(12px);transition:opacity .48s ease calc(var(--d,0) * 90ms),transform .56s cubic-bezier(.16,1,.3,1) calc(var(--d,0) * 90ms)}
/* ВАЖНО: специфичность должна быть не ниже, чем у правила выше (html + 2
   класса), иначе opacity:0 с лишним элементом в селекторе побеждает по
   специфичности независимо от порядка источников — ровно так появлялась
   «вечно невидимая» страница сразу после первого варианта этого фикса. */
html.js .reveal.visible{opacity:1;transform:none}
/* .step declares its own `transition` (for hover) at equal specificity to .reveal —
   one shorthand always fully replaces the other rather than merging, so the combined
   selector re-lists every property the card needs: opacity keeps the staggered reveal
   delay, transform stays fast/undelayed so hover doesn't inherit the stagger lag, and
   the card's own hover-transitioned properties are preserved. */
.step.reveal { transition: opacity .48s ease calc(var(--d,0) * 90ms), transform .25s ease; }

/* «Экономика партнёрства» намеренно выпадает из ритма карточек: рядом стоят
   «Подключение» и «Для рекламодателей» на .steps-grid, и третья сетка подряд
   читалась как одна длинная однообразная лента. Здесь — крупное утверждение
   и три пункта на тонких линиях, без рамок и подложек: легче по весу и даёт
   воздух в середине страницы, где читатель как раз устаёт. */


.logic { background: var(--paper); padding-bottom: 72px; }
.clinic-operations { padding-top: 72px; padding-bottom: 72px; }
#connect.steps { padding-top: 72px; }

.solution-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(48px, 8vw, 96px); }
.solution-media {
  position: relative;
  filter: drop-shadow(0 34px 34px rgba(16,44,42,.12));
}
.solution-media img {
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--r-panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 1px 2px rgba(16,44,42,.08),
    0 18px 38px rgba(16,44,42,.13),
    0 46px 80px -36px rgba(16,44,42,.42);
}



.steps { background: var(--paper); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Линии-разделители на сайте всегда 1px var(--line) — и в списках на линиях
   (.step, .economics-fact, .proof-item, FAQ), и внутри карточек. Двойная толщина
   у .step выбивалась из этого ряда.
   Акцент при наведении (2026-11-24, по итогам разбора «куда делась анимация») —
   не мгновенная смена цвета базовой линии, а отдельная медная линия поверх
   (::before), которая «дорисовывается» слева направо, плюс заголовок меняет
   цвет. Два лёгких сигнала вместо одного, но без тени/подложки — блок
   остаётся «на линии», не становится карточкой. */
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); transition: transform .25s ease; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease; pointer-events: none;
}
.step:hover { transform: translateY(-3px); }
.step:hover::before { transform: scaleX(1); }
/* Вес/разрядка сведены к той же роли, что .eyebrow после правки 2026-11-02
   (было 700/.1em — заметно тяжелее облегчённого эйброу рядом на той же
   странице, выглядело несогласованно). */
.step span { color: var(--copper-dark); font-size: var(--fs-label); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.step h3 { margin: 10px 0; color: var(--ink); font-size: var(--fs-h3); transition: color .2s ease; }
.step:hover h3 { color: var(--copper-dark); }
.step p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

.cta { padding: 100px 0; background: var(--ink); color: #fff; }
/* REVERTED 28.11.2026 — tried `clip-path` here instead of `overflow:hidden`
   to fix a WebKit hard-edge artifact on the ::after glow below (see
   CHANGELOG), but clip-path only clips PAINTING, not layout/scrollable
   overflow — the ::after glow (420px, offset right:-170px/top:-180px) kept
   inflating the page's horizontal scrollable width once overflow:hidden
   stopped containing it, which made the whole page shift/shrink sideways on
   every browser (most visibly on mobile, which zooms the layout viewport
   out to fit the overflow — confirmed on iPhone Safari/Chrome/Firefox AND
   on desktop). That regression is worse than the artifact it fixed, so back
   to overflow:hidden; the hard-edge glow artifact needs a different,
   layout-safe fix later (see PROJECT_CONTEXT) rather than reattempting
   clip-path here. */
.cta-card { position: relative; overflow: hidden; padding: clamp(34px, 7vw, 74px); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-panel); background: linear-gradient(130deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
/* Keeps the card's content one readable column instead of hugging the left edge
   of a very wide .cta-card on large monitors, where .wrap's 1180px cap still
   leaves the boxed lead-form/lead-success looking off-center. */
.cta-content { position: relative; z-index: 1; max-width: 800px; margin-inline: auto; text-align: center; }
/* The column itself was already centered, but the boxed lead-form/lead-success
   (620px) and the flex rows below them still hugged the column's left edge —
   centering the column alone isn't enough when its children are narrower than it. */
.cta-content .lead-form { margin-inline: auto; text-align: left; }
.cta-content .lead-success { margin-inline: auto; }
.cta-content .contact-data { justify-content: center; }
/* .cta p has its own narrower max-width (660px) for readable line length — without
   its own auto margin it just sits flush-left inside the already-centered column. */
.cta-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -170px; top: -180px; border-radius: 50%; background: rgba(199,118,79,.18); filter: blur(4px); }
.cta h2 { position: relative; z-index: 1; max-width: 800px; margin: 16px 0 18px; font-size: var(--fs-h2); line-height: 1.17; letter-spacing: -.03em; }
.cta p { position: relative; z-index: 1; max-width: 660px; margin: 0 auto 30px; color: rgba(255,255,255,.68); }
.contact-data { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.contact-data .contact-link { color: var(--paper); font-size: var(--fs-sm); font-weight: 600; }
.contact-data .contact-link .contact-icon { width: 38px; height: 38px; padding: 9px; background: transparent; color: #e8a07d; transition: color .2s, transform .2s; }
.contact-data .contact-link:hover, .contact-data .contact-link:focus-visible { color: #e8a07d; outline: none; }
.contact-data .contact-link:hover .contact-icon, .contact-data .contact-link:focus-visible .contact-icon { transform: translateX(3px); }
.contact-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contact-icon { flex: none; box-sizing: border-box; border-radius: 50%; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
footer { padding: 52px 0 44px; background: #0b2220; color: rgba(255,255,255,.44); font-size: var(--fs-label); }
/* Подвал собран по центральной оси: знак → дескриптор → линия → реквизиты.
   Прежний space-between на трёх разнородных блоках разваливался при переносе —
   строки цеплялись к разным краям и сетка читалась как случайная. */
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
/* Знак и логотип в подвале повторяют шапку один в один — тот же файл brika-mark.svg,
   те же 32px при 20px текста и тот же gap. Уменьшенный знак при уменьшенном тексте ломал
   пропорцию (1.37 против 1.60 в шапке) и читался как другая, «неродная» иконка.
   Цвет слова Media тоже как в шапке — --copper-dark. Решение пользователя от 2026-09-24
   после сравнения вживую: цвет бренда должен быть один и тот же в шапке и в подвале.
   Контраст на тёмном фоне 2.85:1 против 4.85:1 у более светлого --copper — знаем и принимаем.
   Не менять «на всякий случай»: это осознанный выбор, а не недосмотр. */
.footer-brand { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.92); font: 400 var(--fs-h3) Prata, serif; letter-spacing: .03em; }
.footer-brand span { color: var(--copper-dark); }
.footer-brand .logo-mark { width: 32px; height: 32px; flex: 0 0 32px; top: -1.5px; }
.footer-tagline { margin: 0; color: rgba(255,255,255,.56); font-size: var(--fs-sm); letter-spacing: .01em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 24px; width: 100%; margin-top: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); }

.menu-backdrop { display: none; }

@media (max-width: 980px) {
  section { padding: 104px 0; }
  .hero-grid, .solution-grid { grid-template-columns: 1fr; }
  /* Одна колонка: текстовый блок и развилка аудиторий занимают всю ширину контейнера.
     Их десктопные max-width (760px у .hero-copy, 600px у .audience-split) нужны только
     рядом с фото во второй колонке — без него карточки обрывались посреди строки и
     композиция читалась как съехавшая влево. Ограничения длины строки у h1 (710px) и
     .hero-lead (620px) остаются: это типографика, а не сетка. */
  .hero-copy, .audience-split { max-width: none; }
  .hero-media { width: min(620px, 92%); margin: 10px auto 0; }
  .solution-media { width: min(580px, 85%); margin-inline: auto; }
  .product-grid { grid-template-columns:1fr; }.product-photo{order:2}
  .logic { padding-bottom: 56px; }
  .clinic-operations { padding-top: 56px; padding-bottom: 56px; }
  #connect.steps { padding-top: 56px; }
}
@media (max-width: 1180px) {
  .nav-inner { min-height: 66px; }
  body.menu-open { overflow: hidden; }
  .nav, .nav.scrolled {
    background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none; isolation: isolate;
  }
  .nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255,253,248,.82); border-bottom: 1px solid rgba(16,44,42,.08);
    backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%);
    box-shadow: 0 4px 20px rgba(16,44,42,.04);
  }
  .nav-links {
    position: absolute; inset: calc(100% + 8px) 12px auto; display: flex;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 18px;
    max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto;
    overscroll-behavior: contain; border: 1px solid rgba(16,44,42,.13); border-radius: var(--r-panel);
    background: rgba(255,253,248,.8); color: var(--ink);
    backdrop-filter: blur(32px) saturate(135%); -webkit-backdrop-filter: blur(32px) saturate(135%);
    box-shadow: 0 16px 48px -12px rgba(16,44,42,.16), 0 1px 4px rgba(16,44,42,.04);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform-origin: top right; transform: translateY(-10px) scale(.975);
    transition: opacity 180ms ease, transform 240ms cubic-bezier(.4,0,1,1), visibility 0s linear 240ms;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
    transition: opacity 240ms ease, transform 420ms cubic-bezier(.16,1,.3,1), visibility 0s;
  }
  /* Истинное удаление из раскладки после окончания анимации закрытия — не
     просто visibility:hidden, которую iOS Safari 26 всё ещё учитывает при
     сэмплировании цвета для своей панели (см. PROJECT_CONTEXT, 2026-11-27).
     Класс ставит/снимает JS по transitionend, не по CSS-таймеру. */
  .nav-links.is-closed { display: none; }
  .nav-links a, .nav-links button {
    display: flex; align-items: center; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
    border: 0; border-radius: var(--r-field); font-size: var(--fs-lead); font-weight: 500; letter-spacing: -.025em; text-align: left;
    opacity: 0; transform: translateY(7px);
    transition: opacity 120ms ease, transform 160ms ease, background-color 160ms ease;
  }
  .nav-icon { display: flex; flex: none; width: 20px; height: 20px; margin-right: 14px; color: var(--muted); }
  .nav-links-divider { display: block; flex: none; height: 1px; margin: 6px 14px; background: rgba(16,44,42,.1); }
  .nav-drag-handle { display: none; }
  /* Per-item stagger delay set via inline --d (0..6) rather than :nth-child, so the
     decorative handle/divider siblings never throw the numbering off. */
  .nav-links.open a, .nav-links.open button { opacity: 1; transform: none; transition: opacity 260ms cubic-bezier(.16,1,.3,1) calc(var(--d, 0) * 20ms), transform 260ms cubic-bezier(.16,1,.3,1) calc(var(--d, 0) * 20ms), background-color 160ms ease; }
  .nav-links a:hover, .nav-links a:focus-visible, .nav-links button:hover, .nav-links button:focus-visible { color: var(--ink); background: rgba(16,44,42,.06); }
  .nav-links a:focus-visible, .nav-links button:focus-visible { outline: 2px solid var(--copper-dark); outline-offset: -2px; }
  .menu-button { display: block; flex-shrink: 0; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; }
  .menu-button:focus-visible { outline: none; }
  .menu-button span { height: 1.5px; border-radius: 2px; transition: transform 320ms cubic-bezier(.16,1,.3,1); }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  /* .menu-button несёt margin-left:auto в базовом правиле (строка 156) — рассчитан
     на случай, когда кнопка-гамбургер остаётся единственным элементом справа
     (после 520px, где .nav-cta уже display:none). Но в диапазоне 521–1180px
     обе кнопки видны одновременно, и обе тянут свободное место каждая на себя —
     отсюда разъезжающийся зазор между «Оставить заявку» и гамбургером при изменении
     ширины окна. Чтобы работал ровно один auto-margin (на .nav-cta, который и
     прижимает пару целиком к правому краю), margin-left гамбургера здесь обнулён. */
  .nav-cta { margin-left: auto; }
  .menu-button { margin-left: 0; }
  .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(16,44,42,.12); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 280ms ease, visibility 0s linear 280ms; }
  body.menu-open .menu-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav::before, .nav-links { background: #fffdf8; }
  }
  .nav-cta { min-height: 40px; padding: 9px 14px; font-size: var(--fs-label); }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .hero { padding: 54px 0 58px; }
  /* Сами карточки аудитории (их padding) оставлены как есть — это осознанное
     решение сделать первый экран «дышать» сильнее вторичных секций
     (DESIGN-REFERENCES.md, задание В). Здесь сокращены только зазоры МЕЖДУ
     блоками — до монитора на телефоне раньше приходилось пролистывать
     около 900px (V02, аудит 2026-10-29); этот трим не отменяет то решение,
     только убирает воздух, который сами карточки не используют. */
  .hero-lead { margin-bottom: 20px; }
  .audience-split { max-width: none; margin-top: 16px; }
  .audience-cards { grid-template-columns: 1fr; }
  .hero h1 { margin-bottom: 14px; font-size: clamp(38px, 11.5vw, 54px); }
  .hero-media { width: 92%; margin-top: 4px; }
  .steps-grid { grid-template-columns: 1fr; }
  .contact-data { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* Bottom sheet instead of a top-right dropdown: easier to reach with a thumb,
     matches native app conventions. Tablet width above still uses the dropdown. */
  .nav-links {
    position: fixed; inset: auto 0 0 0; max-height: min(80dvh, calc(100dvh - 90px));
    padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
    border-width: 1px 0 0 0; border-radius: var(--r-panel) var(--r-panel) 0 0;
    transform: translateY(100%); transition: opacity 200ms ease, transform 320ms cubic-bezier(.32,.72,0,1), visibility 0s linear 320ms;
  }
  .nav-links.open { transform: translateY(0); transition: opacity 220ms ease, transform 380ms cubic-bezier(.32,.72,0,1), visibility 0s; }
  .nav-drag-handle { display: block; position: relative; flex: none; width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 99px; background: rgba(16,44,42,.4); touch-action: none; }
  /* The visible pill is 40x4px — far below the 44px minimum touch target, so
     the actual grab area is enlarged invisibly via a pseudo-element rather
     than padding, which would either thicken the bar or require offsetting
     margins that disturb the flex layout around it. */
  /* Bottom inset is smaller than the top/sides (8px vs 20/32px) so the
     enlarged hit area stays clear of the handle's own 10px margin-bottom —
     otherwise it overlaps the first nav link by a few px and swallows taps
     meant for that link. */
  .nav-drag-handle::before { content: ""; position: absolute; inset: -20px -32px -8px; }
  /* iOS Safari-only (Liquid Glass): `@supports (-webkit-touch-callout: none)`
     is a documented, still-current (2026) proxy for "iOS/iPadOS Safari" — no
     other engine ever shipped that property — scoped here to the 760px phone
     breakpoint so iPad/desktop Safari keep the glass look untouched. Same
     chrome-tint-sampling bug as `.contact-fab` and `.nav-links` (see
     PROJECT_CONTEXT, 2026-11-27/28): the status-bar strip above a
     `backdrop-filter`/translucent fixed header is sampled once and can land
     on a mismatched white rather than the header's own cream tone. Fix is
     the same one Apple's own guidance gives — a fully opaque background
     with no blur at all on this element, only on this platform. Reuses the
     `#fffdf8` value already established elsewhere in this file as the
     no-blur equivalent of the glass header (see the `@supports not
     (backdrop-filter)` fallback a few lines above `.nav::before`'s
     definition), so the two "no-glass" cases look identical rather than
     introducing a second colour. */
  /* 2026-11-28: same fix extended to the bottom sheet (`.nav-links`) — the
     user found Safari's bottom chrome also fails to pick the right tint
     while the sheet is open, and that it varies with scroll position (the
     page behind is scroll-locked while the sheet is open, so Safari can
     only sample once, same mechanism as `.nav::before` above). */
  @supports (-webkit-touch-callout: none) {
    .nav::before { background: #fffdf8; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-links { background: #fffdf8; backdrop-filter: none; -webkit-backdrop-filter: none; }
  }
}
@media (max-width: 520px) {
  section { padding: 84px 0; }
  .logo { font-size: var(--fs-lead); }
  .section-head p, .hero-lead { font-size: var(--fs-base); }
  .solution-media { width: 92%; }
  .logic { padding-bottom: 44px; }
  .clinic-operations { padding-top: 44px; padding-bottom: 44px; }
  #connect.steps { padding-top: 44px; }
  .nav-cta{display:none}.lead-form{grid-template-columns:1fr}.lead-form label:nth-child(3){grid-column:auto}
  /* Двойной отступ — у .cta-card (clamp с полом 34px) и у .lead-form внутри
     него (своя рамка и заливка) — на телефоне съедал почти 150px ширины до
     первого поля (V04, аудит 2026-10-29: 236px вместо 528px на десктопе).
     Один контейнер должен нести основной отступ: оставляем его форме (у неё
     уже есть собственная граница и фон), у карточки — сокращаем. */
  .cta-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal{opacity:1;transform:none} *, *::before, *::after { transition: none !important; } }

@media (max-width: 1180px) and (prefers-reduced-transparency: reduce) { .nav::before, .nav-links { background: #fffdf8; backdrop-filter: none; -webkit-backdrop-filter: none; } }

.nav-links a[aria-current="location"] { color: var(--copper-dark); background: rgba(157,79,50,.1); }
@media (max-width: 1180px) {
  .nav-links a[aria-current="location"] { color: var(--ink); background: rgba(16,44,42,.065); }
  .menu-button:active { transform: scale(.94); }
}
@media (hover: none) { .step:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .button:active, .menu-button:active { transform: none; } }

/* Keep tablet navigation compact without changing the page's content breakpoints. */
.logo, .nav-cta { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) {
  .nav-inner { min-height: 76px; gap: 16px; }
  .nav-links { left: auto; right: 24px; width: min(380px, calc(100% - 48px)); max-height: calc(100dvh - 110px); }
}

/* Contact paths for clinics and advertisers. */
.lead-form { max-width: 760px; }
.lead-form .contact-intent, .lead-form .contact-details, .lead-form output { grid-column: 1 / -1; }
.contact-intent { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0 0 8px; padding: 0; }
/* Единая роль подписи для всех полей формы: было --fs-sm (14px) у легенд
   против --fs-label (12px) у подписей «Ваш контакт…», «Как к вам обращаться?»
   — отсюда и разная высота строк, которую заметил пользователь. */
.contact-intent legend { margin-bottom: 10px; font-size: var(--fs-label); font-weight: 700; color: rgba(255,255,255,.82); }
/* Высота кнопок выравнивается по самой высокой: у вариантов разное число
   строк (один заголовок переносится на две, подпись — тоже), и без этого
   рамки получались разной высоты. */
.contact-intent { align-items: stretch; }
.contact-intent label { flex: 1 1 180px; position: relative; cursor: pointer; display: flex; }
.contact-intent label > span { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-intent input { position: absolute; opacity: 0; width: 1px; }
/* Текст по центру: после сокращения вариантов до «Размещение рекламы»/
   «Подключение клиники» (2026-11-23) текст стал однострочным, и прежняя
   причина левого выравнивания (длинный заголовок упирался в угловой
   значок) отпала. Отступ симметричный (46px с обеих сторон, не только
   справа под значок) — иначе центрированный текст визуально съезжал
   влево от геометрического центра карточки. */
.contact-intent span { display: block; padding: 16px 46px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-field); text-align: center; color: var(--paper); font-size: var(--fs-sm); transition: background .18s ease, color .18s ease; }
/* Выбор показан только заливкой — без рамки и без галочки (обе убраны
   2026-11-23). Сначала была медная рамка/обводка (border + inset box-shadow),
   но она вышла заметно толще и ярче любой другой линии на сайте — слишком
   тяжело для тихого визуального языка. Сравнили с Stripe (варианты «Tabs»/
   «Accordion without radio buttons» — никакой рамки или иконки, только белая
   заливка против серого фона) и выбрали тот же приём. Сигнал не только
   цветом — это разница в светлоте (белый фон против тёмного), а не оттенок,
   поэтому не завязано на различение цвета. */
.contact-intent input:checked + span { background: var(--paper); color: var(--ink); }
/* «Таблетки» канала — однострочные, инлайновый кирпич перед текстом работает:
   checked-состояние у них flex-row, кирпич и текст стоят рядом.
   Кирпич зарезервирован (:visibility:hidden) у ВСЕХ состояний, не только у
   checked — иначе выбранная «таблетка» на 14px (7px кирпич + 7px отступ)
   «толще» по содержимому, чем соседние, а у `.contact-channel label` нет
   фиксированной ширины (flex:1 1 96px с разрешённым сжатием) — это меняло
   минимальную ширину по содержимому именно у выбранного элемента и поэтому
   строка переносилась по-разному в зависимости от того, какой вариант выбран
   (баг замечен пользователем 2026-11-28: поля на iPhone «меняются местами»
   при смене способа связи — на самом деле не менялись местами, просто сетка
   каждый раз заново перестраивалась под новую ширину выбранной кнопки). */
.contact-channel span::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  border-radius: 2px; background: var(--copper-dark); vertical-align: middle;
  visibility: hidden;
}
.contact-channel input:checked + span::before { visibility: visible; }
.contact-intent input:focus-visible + span { outline: 2px solid #e0c17d; outline-offset: 3px; }
.lead-form label:nth-child(3) { grid-column: auto; }
.lead-form select, .lead-form textarea { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-field); background: #183d39; color: var(--paper); font: inherit; font-size: var(--fs-base); }
.lead-form select { cursor: pointer; }
.lead-form textarea { resize: vertical; min-height: 96px; }
.contact-hint { display: block; margin-top: 6px; color: rgba(255,255,255,.42); font-size: var(--fs-label); font-weight: 400; }
/* Единственное обязательное поле формы — помечено звёздочкой у подписи,
   как у Google Forms/большинства форм (по правилу NN/g «помечай
   меньшинство»). Расшифровка не вынесена отдельной строкой в форму —
   она уже есть в подсказке под полем (#contact-hint начинается с
   «Обязательное поле.»), второй элемент ради одной звёздочки не нужен.
   Сама звёздочка — aria-hidden, роль required уже несёт атрибут required. */
.field-required-mark { margin-left: 3px; color: var(--copper); font-size: 15px; font-weight: 700; }
/* Та же ловушка, что была у .field-error: авторское display:block
   перебивает display:none из UA-таблицы для атрибута hidden — без
   этой строки спрятанная JS подсказка оставалась на экране. */
.contact-hint[hidden] { display: none; }
.lead-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0c17d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.lead-form select:hover, .lead-form select:focus-visible { border-color: rgba(230,193,125,.5); }
.lead-form select::-ms-expand { display: none; }
.lead-form .field-invalid { border-color: #c0392b; animation: field-shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes field-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .lead-form .field-invalid { animation: none; } }
.lead-form output { font-size: var(--fs-sm); line-height: 1.6; margin: 0; color: #e3e9e5; }
.lead-form a { text-decoration: underline; overflow-wrap: anywhere; }
.lead-form button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* Grid items stretch to fill their cell by default, so the submit button (a single
   auto-placed column) was filling only the left half-width, flush left — not centered. */
.lead-form button[type="submit"] { grid-column: 1 / -1; justify-self: center; }
.contact-fab { display: none; }
#contact-dialog {
  width: min(440px, calc(100% - 32px)); max-height: 85dvh; padding: 0;
  border: 1px solid rgba(16,44,42,.13); border-radius: var(--r-panel); color: var(--ink);
  background: rgba(255,253,248,.8); overflow: hidden;
  backdrop-filter: blur(32px) saturate(135%); -webkit-backdrop-filter: blur(32px) saturate(135%);
  box-shadow: 0 24px 80px #102c2a33;
}
/* Scrolling lives on this inner wrapper, not #contact-dialog itself — the native
   scrollbar is a plain rectangle and ignores border-radius, so scrolling the
   rounded dialog directly let the bar poke out past the top/bottom corners.
   The dialog now just clips (overflow:hidden) while this wrapper scrolls inside it. */
.contact-dialog-scroll { max-height: 85dvh; overflow-y: auto; padding: 32px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #contact-dialog { background: #fffdf8; }
}
/* Same iOS-only fix as `.nav::before`/`.nav-links` (2026-11-28, see
   PROJECT_CONTEXT): opening this dialog straight from the hamburger menu
   (Контакты button inside #site-menu) left a leftover tinted patch near the
   bottom of the screen on iPhone — the sheet closes and this dialog opens in
   the same tick, with no real scroll event in between for Safari to
   re-sample, so it keeps the sheet's colour under the dialog's own glass.
   Same cure: solid background, no blur, only on WebKit/iOS phone widths. */
@media (max-width: 760px) {
  @supports (-webkit-touch-callout: none) {
    #contact-dialog { background: #fffdf8; backdrop-filter: none; -webkit-backdrop-filter: none; }
  }
}
#contact-dialog::backdrop { background: #102c2a55; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#contact-dialog h2 { font-size: var(--fs-h3-lg); margin: 12px 0; }
#contact-dialog h2:focus-visible { outline: none; }
.contact-dialog-logo { justify-content: center; margin: 4px 0 28px; }
/* #contact-dialog h2 bumps this heading's font-size to 26px (vs the navbar's
   20px) but .logo-mark's 32px width is fixed — at the larger text size the
   icon reads noticeably smaller relative to the wordmark than in the navbar.
   Scale it up by the same ratio (32/20 * 26 ≈ 42px) to keep the icon:text
   proportion identical to the navbar reference. */
.contact-dialog-logo .logo-mark { width: 42px; height: 42px; flex-basis: 42px; top: -2px; }
.contact-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: var(--fs-h3-lg); cursor: pointer; }
.contact-close:focus-visible { outline: none; }
.contact-options { display: grid; gap: 10px; margin-top: 24px; }
.contact-options .contact-link { padding: 12px 16px; border-radius: var(--r-field); background: var(--cream); color: var(--ink); font-weight: 600; font-size: var(--fs-base); transition: background .2s; }
.contact-options .contact-link:hover, .contact-options .contact-link:focus-visible { background: var(--sand); outline: none; }
.contact-options .contact-link .contact-icon { width: 42px; height: 42px; padding: 10px; background: transparent; color: var(--ink); }
.contact-options .contact-link:hover .contact-icon, .contact-options .contact-link:focus-visible .contact-icon { transform: translateX(4px); }
.contact-options .contact-link:first-child { background: linear-gradient(145deg, var(--copper-button), var(--copper-dark)); color: #fff; }
.contact-options .contact-link:first-child .contact-icon { background: transparent; color: #fff; }
.contact-options .contact-link:first-child:hover, .contact-options .contact-link:first-child:focus-visible { background: linear-gradient(145deg, var(--copper-dark), var(--copper-button-hover)); outline: none; }
.contact-options .contact-link:first-child:hover .contact-icon, .contact-options .contact-link:first-child:focus-visible .contact-icon { transform: translateX(4px); }
body.contact-open { overflow: hidden; }
@media (max-width: 760px) {
  .contact-fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20;
    width: 60px; height: 60px; border-radius: 50%;
    cursor: pointer;
    isolation: isolate; /* own stacking context, so ::before's z-index:-1 is scoped here */
    /* Real iOS glass (Control Center, YouTube's tab bar, Safari's address pill)
       is close to COLOURLESS and very low-opacity — a Telegram/YouTube/Safari
       screenshot comparison shows the backdrop's own colour and shapes doing
       almost all the work, with the fill just there to keep contrast/legibility.
       Every previous version here used a medium-opacity COPPER-tinted fill,
       which is exactly what was masking the backdrop no matter how strong the
       blur got — a strong blur behind a half-opaque coloured paint still reads
       as a coloured paint. Fill is now a thin neutral white wash; the brand
       colour lives only in the icon and the thin warm rim light, matching how
       the reference screenshots carry colour in their icons/content, not in
       the glass itself. */
    /* Тонкая рамка цвета иконки (copper-dark), а не белая — на светлом фоне
       страницы прежний полупрозрачный белый rim был почти не виден (замечание
       пользователя 2026-11-28, после отключения внешней тени кнопка стала
       плохо читаться на белом). Непрозрачность низкая (.3), чтобы остаться
       «тонкой, слегка заметной линией», а не жирной обводкой. */
    border: 1px solid rgba(157,79,50,.3);
    background-color: transparent;
    color: var(--copper-dark);
    /* Внешняя тень (0 10px 24px) убрана 2026-11-27 по решению пользователя —
       на мобильном эта тень ложилась на нижний край экрана, где iOS Safari 26
       сэмплирует цвет для своей панели; пользователь также усомнился, что она
       вообще заметна на маленькой кнопке. Обе внутренние тени (блик по верху
       и затемнение по низу стекла) оставлены — они не выходят за пределы
       самой кнопки и к сэмплингу отношения не имеют. */
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.65),
      inset 0 -10px 16px rgba(16,44,42,.1);
    transition: transform .2s, box-shadow .2s;
  }
  /* 2026-11-27 · iOS Safari 26 ("Liquid Glass") samples the backdrop of any
     position:fixed element carrying backdrop-filter directly on itself, and
     near the bottom edge this produced a visible straight band artifact below
     this button on the user's iPhone (desktop Safari unaffected — the bug is
     iOS-specific). Documented workaround: move backdrop-filter off the fixed
     element onto a non-fixed inner layer, so the fixed box itself is never the
     one Safari samples. The ::before carries the blur + glass tint; the real
     .contact-fab (border + both box-shadows) is untouched, so the look stays
     identical — only the element Safari inspects for sampling changes. */
  .contact-fab::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit; pointer-events: none;
    background-image: linear-gradient(165deg, rgba(255,255,255,.32), rgba(255,255,255,.08));
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
  .contact-fab:active { transform: scale(.94); }
  .contact-fab .contact-icon { position: relative; z-index: 1; width: 26px; height: 26px; }
  /* display:none, not visibility:hidden — iOS Safari 26's bottom-bar tint
     sampler still "sees" a visibility:hidden fixed element and keeps tinting
     off it (documented 2026-11-27, see PROJECT_CONTEXT); display:none removes
     it from the sampler entirely. No transition was ever applied to this hide
     (it was instant either way), so this swap changes nothing about timing. */
  .contact-fab.is-hidden, body.menu-open .contact-fab { display: none; pointer-events: none; }
  footer { padding-bottom: 96px; }
}

/* ── Блоки из брифа 2026-10-27 ─────────────────────────────────────────── */
/* Две крупные карточки в ряд: списки с подробностями, которых не было в прежней сетке. */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.split-card { padding: 30px 28px; border-radius: var(--r-card); background: var(--cream); }
.logic .split-card { background: var(--cream); }
.split-card h3 { margin: 0 0 12px; color: var(--ink); font-size: var(--fs-h3); line-height: 1.3; }
.split-card p { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-sm); }
.split-card p:last-child { margin-bottom: 0; }
.marked-list { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--fs-sm); }
.marked-list li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.marked-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.marked-list li:last-child { margin-bottom: 0; }
/* Зоны ответственности — две колонки списков без рамок, на линии. */
.duties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 26px; }
.duty h3 { margin: 0 0 14px; font-family: Manrope, sans-serif; color: var(--copper-dark); font-size: var(--fs-label); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
/* «От заявки до первого эфира» closes the clinic narrative rather than opening a
   new topic, so it borrows .section-head's spacing but not its full display weight —
   same Prata serif family, a calmer size (the dialog/success-heading scale) instead
   of the page's main --fs-h2. */
.section-head-compact { margin-bottom: 32px; }
.section-head-compact h2 { margin-top: 0; font-size: var(--fs-h3-lg); }
.section-cta { margin: 40px 0 0; }
@media (max-width: 760px) {
  /* Кнопки «Обсудить подключение/размещение» на телефоне — по центру экрана,
     а не у левого края, как при обычном выравнивании текста. */
  .section-cta { text-align: center; }
}
@media (max-width: 760px) {
  .split-grid, .duties { grid-template-columns: 1fr; }
  .split-grid { gap: 14px; }
}

/* Карточка аудитории — крупная кнопка-указатель: заголовок с иконкой, текст,
   внизу строка действия и стрелка в круге. Один приём на всех ширинах: на
   десктопе подпись-действие раньше вообще не имела стилей и читалась как
   обычный абзац, из-за чего карточка выглядела незакончённой. */
/* Карточки первого экрана были теснее вторичных карточек ниже по странице
   (padding 30px 26px у вторичных, как у .split-card) — ровно наоборот тому,
   что первый экран должен дышать сильнее всего (Refactoring UI, разбор в
   DESIGN-REFERENCES.md, задание В). Отступы подняты ближе к вторичным. */
.audience-card { position: relative; padding: 26px 24px 22px; }
.audience-card-head::after { display: none; }
.audience-card-text { flex: 1; }
.audience-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.audience-card-action {
  color: var(--copper-dark); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
}
.audience-card-go {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--copper); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.audience-card-go svg { display: block; width: 16px; height: 16px; }
.audience-card:hover .audience-card-go,
.audience-card:focus-visible .audience-card-go { background: var(--copper-dark); transform: translateX(3px); }
.audience-card:active { transform: scale(.99); }


/* Кнопка отправки в двух состояниях: пока обязательные поля не заполнены —
   приглушённая, при валидной форме наливается цветом. Без теней и смещений:
   состояние читается плотностью заливки, как в формах Google. */
.lead-form .button[type="submit"] { background: #6b4532; color: rgba(255,255,255,.62); }
.lead-form .button[type="submit"].is-ready { background: var(--copper-button); color: #fff; }
.lead-form .button[type="submit"].is-ready:hover { background: var(--copper-dark); }
.lead-form .button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }

/* ── Мобильная версия карточек аудиторий ───────────────────────────────────
   Блок стоит в конце файла намеренно: базовые правила .audience-card-* описаны
   выше, и при равной специфичности побеждает последнее правило. Когда этот
   блок лежал раньше них, на телефоне возвращались линия и сдвиг стрелки.
   Вид минимальный, как в списках Apple: заголовок, текст, подпись действия
   и стрелка у правого края по центру карточки. Разделителя нет. */
@media (max-width: 760px) {
  .audience-card { padding: 18px 70px 18px 20px; }
  /* Подпись по центру карточки и ниже. padding-left компенсирует правое
     поле под стрелку (70px): без него центр содержимого смещён влево. */
  .audience-card-foot { display: block; margin-top: 20px; padding: 0 0 2px 50px;
    border-top: 0; text-align: center; }
  .audience-card-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
  .audience-card:hover .audience-card-go,
  .audience-card:focus-visible .audience-card-go,
  .audience-card:active .audience-card-go { transform: translateY(-50%); background: var(--copper-dark); }
  .audience-card:hover, .audience-card:focus-visible { transform: none; }
}

/* ── Ошибки полей формы ────────────────────────────────────────────────────
   Текст ошибки живёт под самим полем и не исчезает, пока её не исправят:
   встроенный пузырь браузера пропадает через пару секунд, в фирменном стиле
   не оформляется и не читается экранным диктором как часть поля.
   Цветом не ограничиваемся — перед текстом стоит знак. */
.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 6px; color: #ffb4a0; font-size: var(--fs-label); line-height: 1.45;
}
/* Скрытие через атрибут hidden браузер делает правилом из своей таблицы стилей,
   а оно слабее авторского display:flex выше — без этой строки у пустой ошибки
   оставался виден один знак «!». */
.field-error[hidden] { display: none; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center;
  width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
  background: #ffb4a0; color: #2b1510; font-size: 10px; font-weight: 700; }
.lead-form [aria-invalid="true"] { border-color: #ffb4a0; }

/* Кнопка во время отправки: остаётся в фокусе и доступна диктору,
   нажатие повторно просто игнорируется обработчиком. */
.lead-form .button[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* ── Форма заявки: правки по разбору агента 2026-10-28 ─────────────────────
   Блок в конце файла намеренно — он перекрывает базовые правила формы выше. */

/* Одна колонка и на десктопе: две колонки вели взгляд зигзагом, а рядом с
   «Именем» оставалась пустая клетка. Форма в одну колонку заполняется быстрее
   (замер Smashing — на 15,4 с), и в поле контакта помещается полная подсказка. */
.lead-form { grid-template-columns: 1fr; max-width: 580px; }
.lead-form .contact-intent, .lead-form .contact-details, .lead-form output,
.lead-form label, .lead-form fieldset { grid-column: 1 / -1; }

/* Выбор канала — четыре «таблетки» вместо выпадающего списка: все варианты
   видны сразу, выбор в одно касание, на телефоне не открывается системный барабан. */
.contact-channel { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.contact-channel legend { margin-bottom: 10px; font-size: var(--fs-label); font-weight: 700; color: rgba(255,255,255,.82); }
/* Основа 96px, а не 110: на экране 390 px форме остаётся 225 px внутренней
   ширины, и при основе 110 две кнопки (110+110+8) не помещались тремя
   пикселями — все четыре вставали в столбик. */
.contact-channel label { flex: 1 1 96px; position: relative; cursor: pointer; display: flex; }
.contact-channel input { position: absolute; opacity: 0; width: 1px; }
.contact-channel span {
  flex: 1; display: grid; place-items: center; min-height: 46px; padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-field);
  color: var(--paper); font-size: var(--fs-sm); font-weight: 600; text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
/* display:flex здесь раньше дублировал center-by-center у базового display:grid
   (строка выше) другим способом — лишняя разница в режиме раскладки между
   checked/unchecked, которая в WebKit может давать разную минимальную ширину
   по содержимому для одного и того же текста. Оставлен только цвет/фон —
   режим раскладки теперь одинаковый у всех состояний (см. CHANGELOG
   2026-11-28: баг с перестановкой кнопок остался после первого фикса именно
   из-за этого). */
.contact-channel input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact-channel input:focus-visible + span { outline: 2px solid #e0c17d; outline-offset: 2px; }

/* Обещание ответа — до кнопки, а не после отправки. */

/* Контраст в тёмной секции. Замеры агента: подсказки были около 3.3:1 при норме
   4.5:1, рамки полей и кольцо фокуса — около 1.8:1 при норме 3:1. */
.lead-form label { color: rgba(255,255,255,.82); }
.lead-form input, .lead-form textarea, .lead-form select { border-color: rgba(255,255,255,.4); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(255,255,255,.55); }
#contact-hint { color: rgba(255,255,255,.62); }
.cta :focus-visible { outline: 2px solid #e0c17d; outline-offset: 2px; }
.lead-form .button[type="submit"] { color: rgba(255,255,255,.8); }
/* На экранах уже 380 px внутренней ширины остаётся около 200 px, и даже основа
   96 px не даёт двум кнопкам встать в ряд. Там уменьшаем поля и зазор, чтобы
   каналы всё равно читались в два ряда, а не столбиком из четырёх. */
@media (max-width: 380px) {
  .contact-channel { gap: 6px; }
  .contact-channel label { flex: 1 1 84px; }
  .contact-channel span { padding: 10px 6px; font-size: var(--fs-label); }
  .lead-form { padding: 18px; }
}

/* ── Симметрия вокруг кнопки отправки ────────────────────────────────────
   Было: сверху кнопки — только grid-gap (14px); снизу — тот же gap до
   пустого <output> (который всё равно занимал строку сетки и тянул за собой
   ещё один gap) плюс нижний padding формы (25px) — суммарно почти в 4 раза
   больше, чем сверху. Кнопка «прилипала» к последнему полю. */
.lead-form output:empty { display: none; }
.lead-form .button[type="submit"] { margin-top: 11px; }
