/* ==========================================================================
   Маркетинг-неотложка — стили лендинга.
   Числа взяты из макета: кегли и интерлиньяж из ds/foundation.md,
   ширины колонок и отступы — из геометрии секций Figma.
   Шрифт НЕ резиновый: на десктопе кегли фиксированные, как в макете,
   мобильная и планшетная шкалы — отдельными блоками внизу.
   ========================================================================== */

:root{
  /* Направляющая правой колонки: доля из макета, но не уже, чем лист
     приёма 677 плюс межколонник 60 — иначе на средних экранах текст
     прилипал к листу вплотную. */
  --guide:max(59.77%, 737px);
  --ink:#1E232B;
  --ink-up:#2B3039;
  --ink-up-2:#333944;
  --text-2:#68707F;
  --text-dark-bg:#F4F4F4;
  --line-dark:#575C66;
  --accent:#FF252B;
  --surface:#EFF2F3;
  --surface-pale:#DAE4F0;
  --white:#FFFFFF;

  /* Запасная гарнитура обязана быть гротеском: у Liter нет знака рубля, и
     со старым запасным Georgia символ ₽ в ценах выходил антиквой. */
  --font:'Liter','Helvetica Neue',Arial,sans-serif;
  --font-num:'Inter',system-ui,sans-serif;

  --r-20:20px; --r-18:18px; --r-16:16px; --r-13:13px; --r-10:10px; --r-8:8px; --r-3:3px;
  --gutter:80px;
  --section-y:160px;

  --line:rgba(30,35,43,.12);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:120px;}
body{
  margin:0;background:var(--surface);color:var(--ink);
  font-family:var(--font);font-size:20px;line-height:1.32;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}
a{color:inherit;text-decoration:none;}
ul,ol{margin:0;padding:0;list-style:none;}
p{margin:0;}
input{font:inherit;}
hr.rule{height:0;margin:0;border:0;border-top:1px solid var(--line);}
.section--dark hr.rule{border-color:var(--line-dark);}

/* ---------- типографика ----------
   Размеры вынесены в переменные: на планшете и телефоне шкала сдвигается
   целиком, а не по одному классу — иначе соседние тексты разъезжаются. */
:root{
  --t-h1:80px; --t-h2:60px; --t-h3:48px; --t-h4:40px; --t-h5:32px;
  --t-lead:26px; --t-big:24px; --t-base:20px; --t-small:18px;
  --t-caption:16px; --t-micro:14px;
  --t-caps16:16px; --t-caps14:14px; --t-caps12:12px;
  --t-num-xl:80px; --t-num-l:64px; --t-num-m:40px; --t-num-outline:200px;
}
.h1,.h2,.h3,.h4,.h5{margin:0;font-weight:400;}
.h1{font-size:var(--t-h1);line-height:.9;letter-spacing:0;}
.h2{font-size:var(--t-h2);line-height:.9;letter-spacing:-.02em;}
/* Ручной перенос в заголовке. Не <br>: спрятать его на мобильной через
   display:none — значит склеить слова без пробела («С чем к намприходят»).
   Блочный span переносит строку на десктопе и на мобильной снова становится
   строчным, а пробел между словами есть в разметке и никуда не девается. */
.h2 .brk{display:block;}
/* У Liter нет Medium. В макете вес имитирован обводкой 0,7 снаружи;
   CSS рисует обводку по центру контура — отсюда 1,4: наружу уходит ровно
   0,7, внутренняя половина ложится на саму букву. Только H1 и H2.
   paint-order:stroke fill убран намеренно: он кладёт заливку ПОВЕРХ обводки,
   и на стыке двух слоёв остаётся видимый светлый контур. В порядке по
   умолчанию обводка накрывает край заливки, шва нет, а толщина та же. */
.h1,.h2{-webkit-text-stroke:1.4px currentColor;}
.h3{font-size:var(--t-h3);line-height:.9;letter-spacing:-.02em;}
.h4{font-size:var(--t-h4);line-height:.9;}
.h5{font-size:var(--t-h5);line-height:1;letter-spacing:-.02em;}
.lead{font-size:var(--t-lead);line-height:1;letter-spacing:-.02em;}
.big{font-size:var(--t-big);line-height:1.32;}
.base{font-size:var(--t-base);line-height:1.32;}
.small{font-size:var(--t-small);line-height:1.32;}
.caption{font-size:var(--t-caption);line-height:1.32;}
.micro{font-size:var(--t-micro);line-height:1.2;}
/* Капс-стили несут ТОЛЬКО разрядку. Регистр набирается в тексте —
   в макете «документ · разово» набрано строчными, и переводить его
   в верхний регистр нельзя. */
.caps{letter-spacing:.06em;}
.caps--16{font-size:var(--t-caps16);line-height:1.32;letter-spacing:.04em;}
.caps--14{font-size:var(--t-caps14);line-height:1.32;}
.caps--12{font-size:var(--t-caps12);line-height:1.32;}
.muted{color:var(--text-2);}
.accent{color:var(--accent);}
.section--dark .muted{color:#9AA1AE;}

/* ---------- контейнер и секции ---------- */
.wrap{width:100%;max-width:1920px;margin:0 auto;padding:0 var(--gutter);}
.section{padding:var(--section-y) 0;}
.section--pale{background:var(--surface-pale);}
.section--dark{background:var(--ink);color:var(--text-dark-bg);}

.head{display:flex;flex-direction:column;align-items:flex-start;gap:28px;margin-bottom:84px;}
.head--tight{gap:20px;margin-bottom:64px;}
.head .h2{margin-top:-4px;}

/* ==========================================================================
   Компоненты
   ========================================================================== */

/* ui / кнопка */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:64px;padding:0 24px;border-radius:var(--r-20);
  font-size:var(--t-big);line-height:1;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.btn--dark{background:var(--ink);color:var(--white);}
.btn--dark:hover{background:var(--ink-up-2);}
.btn--white{background:var(--white);color:var(--ink);}
.btn--white:hover{background:var(--surface-pale);}
.btn--accent{background:var(--accent);color:var(--white);}
.btn--accent:hover{filter:brightness(1.08);}
.btn--outline{border:1px solid var(--ink);color:var(--ink);}
.btn--outline:hover{background:var(--ink);color:var(--white);}
.btn--wide{width:100%;}
.btn--sm{height:50px;font-size:var(--t-base);padding:0 20px;}

/* ui / кнопка-вызов — тёмная кнопка и отдельный красный квадрат, зазор 1px */
.call{display:inline-flex;align-items:center;gap:0;cursor:pointer;user-select:none;}
.call__main{
  display:inline-flex;align-items:center;height:64px;padding:0 24px;
  border-radius:var(--r-20);background:var(--ink);color:var(--white);
  font-size:var(--t-big);line-height:1;transition:background .15s ease;
}
.call__sign{
  flex:0 0 auto;align-self:center;
  display:inline-flex;align-items:center;justify-content:center;
  width:56px;height:56px;border-radius:var(--r-18);
  background:var(--accent);color:var(--white);font-size:var(--t-big);line-height:1;
  border-left:1px solid transparent;background-clip:padding-box;
  transition:height .18s ease,border-radius .18s ease,background-clip 0s;
}
/* При наведении красный квадрат дорастает до высоты тёмной части, зазор
   закрывается и две плашки читаются как одна кнопка с красным торцом.
   Скруглениями управляем с двух сторон сразу, иначе в месте стыка
   остаётся светлый клин. */
.call:hover .call__main{
  background:var(--ink-up-2);
  border-top-right-radius:0;border-bottom-right-radius:0;
}
.call:hover .call__sign{
  height:64px;background-clip:border-box;
  border-top-left-radius:0;border-bottom-left-radius:0;
  border-top-right-radius:var(--r-20);border-bottom-right-radius:var(--r-20);
}
.call__main{transition:background .15s ease,border-radius .18s ease;}
.call--wide{width:100%;}
.call--wide .call__main{flex:1;justify-content:space-between;}

/* кнопка-стрелка */
.arrowbtn{
  display:inline-flex;align-items:center;justify-content:center;
  width:50px;height:50px;border-radius:var(--r-20);background:var(--ink);
  transition:background .15s ease;
}
.arrowbtn:hover{background:var(--ink-up-2);}
.iconbtn{
  display:inline-flex;align-items:center;justify-content:center;
  width:50px;height:50px;border-radius:var(--r-20);
  background:var(--ink-up);color:var(--text-dark-bg);font-size:20px;line-height:1;
  transition:background .15s ease;
}
.iconbtn:hover{background:var(--ink-up-2);}

/* ui / pill */
.pill{
  display:inline-flex;align-items:center;gap:8px;height:39px;padding:0 20px;
  border-radius:var(--r-20);font-size:16px;line-height:1;white-space:nowrap;
}
.pill--white{background:var(--white);color:var(--ink);}
.pill--pale{background:var(--surface-pale);color:var(--ink);}
.pill--dark{background:var(--ink);color:var(--white);}
.pill--raised{background:var(--ink-up);color:var(--text-dark-bg);}
.pill--accent{background:var(--accent);color:var(--white);}
.pills{display:flex;flex-wrap:wrap;gap:10px;}

/* ui / тег */
.tag{
  display:inline-flex;align-items:center;height:32px;padding:0 14px;
  border-radius:var(--r-10);background:var(--surface-pale);color:var(--text-2);
  font-size:14px;line-height:1;white-space:nowrap;font-style:normal;
}

/* ui / маркер */
.marker{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:var(--r-8);
  background:var(--accent);color:var(--white);font-style:normal;font-size:18px;line-height:1;
}
.marker--x{background:var(--surface-pale);color:var(--text-2);}
.section--dark .marker--x,.modal .marker--x{background:var(--ink-up-2);color:var(--text-dark-bg);}

/* ui / поле */
.field{
  width:100%;height:68px;padding:0 28px;border:0;border-radius:var(--r-20);
  background:var(--ink-up-2);color:var(--white);font-size:20px;
  transition:background .15s ease;
}
.field::placeholder{color:#8A91A0;}
.field:focus{background:#3B4250;}

/* ui / чекбокс */
.check{display:flex;align-items:flex-start;gap:12px;cursor:pointer;}
/* Поле нельзя схлопывать в ноль: браузер не покажет подсказку
   «заполните это поле» у элемента нулевого размера. */
.check input{position:absolute;opacity:0;width:20px;height:20px;margin:2px 0 0;}
.check__box{
  flex:0 0 auto;width:20px;height:20px;margin-top:2px;
  border:1.4px solid currentColor;border-radius:var(--r-3);position:relative;
}
.check input:checked + .check__box::after{content:'';position:absolute;inset:3px;border-radius:1px;background:var(--accent);}
.check__text{color:var(--text-2);}
.check.is-error .check__box{border-color:var(--accent);}
.check.is-error .check__text{color:var(--accent);}
/* Браузер проверяет поля по порядку и до галочки доходит последним, так что
   своё сообщение нужнее системного — иначе кажется, что согласие не обязательно */
.check__err{display:block;width:100%;margin-top:6px;color:var(--accent);}
.check__err[hidden]{display:none;}
.check__text a{text-decoration:underline;}

/* списки с маркерами */
.checklist{display:flex;flex-direction:column;}
.checklist li{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px dashed rgba(30,35,43,.22);}
.checklist li:last-child{border-bottom:0;}
.section--dark .checklist li{border-bottom-color:var(--line-dark);}
.case-main__body .rule + .rule,.case-main__body .stats + .rule{border-top-style:dashed;}
.dlist{display:flex;flex-direction:column;gap:12px;margin-top:16px;}
.dlist li{display:flex;align-items:flex-start;gap:14px;}

/* показатель */
.stats{display:flex;flex-wrap:wrap;gap:48px;}
.stat{display:flex;flex-direction:column;gap:6px;}
.stat__num{font-family:var(--font-num);font-weight:600;font-size:var(--t-num-xl);line-height:.88;letter-spacing:-.03em;}
.stat__num.is-text{font-family:var(--font);font-weight:400;font-size:28px;line-height:1;letter-spacing:-.02em;}
.stat__cap{font-size:var(--t-small);line-height:1.2;color:var(--text-2);}
.section--dark .stat__cap,.modal .stat__cap{color:#9AA1AE;}

/* иконки соцсетей */
.socials{display:inline-flex;align-items:center;gap:14px;}
.socials img{height:30px;width:auto;}
.socials a{display:inline-flex;align-items:center;}

/* ==========================================================================
   Шапка
   ========================================================================== */
.header{position:sticky;top:0;z-index:40;background:var(--surface);transition:background .2s ease,box-shadow .2s ease;}
.header.is-scrolled{box-shadow:0 1px 0 var(--line);}
.header__inner{display:flex;align-items:center;gap:24px;padding-top:20px;padding-bottom:18px;}
.logo img{height:63px;width:auto;}
/* В макете (узел 94:546) пункты стоят на 612…1137 при логотипе 79…269 и
   правом блоке 1480…1841 — то есть ровно посередине между ними, по 343 с
   каждой стороны. margin-left:auto прижимал их вправо: было 904…1427. */
.header__nav{display:flex;gap:1px;margin:0 auto;}
.header__nav .pill{font-size:var(--t-base);transition:background .15s ease;}
.header__nav .pill:hover{background:var(--surface-pale);}
.header__right{display:flex;align-items:center;gap:24px;margin-left:24px;}
.burger{display:none;width:50px;height:50px;border-radius:var(--r-13);background:var(--ink);flex-direction:column;align-items:center;justify-content:center;gap:5px;}
.burger span{display:block;width:20px;height:1.5px;background:var(--white);}

/* ==========================================================================
   01. Первый экран
   ========================================================================== */
.hero{padding-top:var(--section-y);overflow:hidden;}
/* Ряд первого экрана в макете (узел 210:237) шириной 1562, а не во все 1760:
   справа остаётся 198. Без этого список «что сделаем» уезжал на целую
   колонку вправо — стоял на 1269 вместо 1137 и тянулся до правого поля. */
/* Левая кромка списка совпадает с правой колонкой следующей секции:
   левая колонка 1052 из 1760, список начинается на 1132 — та же доля, что у правой колонки секции симптомов. */
.hero__top{display:grid;grid-template-columns:var(--guide) minmax(0,1fr);gap:0;align-items:start;}
.hero__col{display:flex;flex-direction:column;align-items:flex-start;gap:46px;}
.hero__lead{margin:0;}
.hero__actions{display:flex;flex-wrap:wrap;gap:10px;}
.hero__list{display:flex;flex-direction:column;width:505px;max-width:100%;}
/* Числа из макета (узел 140:35): пункт — горизонтальный ряд с выравниванием
   по верху, промежуток 12, поля 8 сверху и снизу, разделитель пунктирный
   со штрихом 2 и пробелом 4. Маркер 26, текст 20/132%. */
.hero__list li{display:flex;align-items:flex-start;gap:12px;padding:8px 0;
  border-bottom:1px dashed rgba(30,35,43,.22);}
.hero__list li:last-child{border-bottom:0;}
.hero__list span{font-size:var(--t-base);line-height:1.32;}
/* у картинки сверху пустое поле — обрезаем его окном, а не перекодированием файла */
.hero__image{position:relative;width:100%;}
.hero__image picture{display:block;}
.hero__image img{display:block;width:100%;height:auto;}

/* ==========================================================================
   02. С чем приходят
   ========================================================================== */
.symptoms{
  display:grid;grid-template-columns:var(--guide) minmax(0,1fr);
  gap:0;margin:0;align-items:start;
}
.symptoms .sheet{width:677px;max-width:100%;}
.sheet{position:relative;background:var(--white);border-radius:var(--r-20);padding:32px 40px 28px;overflow:hidden;}
.sheet::before{content:'';position:absolute;left:0;right:0;top:0;height:5px;background:var(--accent);}
.sheet__head{display:flex;justify-content:space-between;gap:24px;padding:8px 0 24px;border-bottom:1px solid var(--line);}
.exam{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px dashed rgba(30,35,43,.22);cursor:pointer;}
.sheet__list>li:last-child .exam{border-bottom:0;}
.exam input{position:absolute;opacity:0;width:20px;height:20px;margin:0;}
.exam:hover .exam__box{border-color:var(--accent);}
.exam input:checked ~ .exam__box{border-color:var(--accent);background:var(--accent);}
.exam input:checked ~ .exam__box::after{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M5 10.5l3.2 3.2L15 7%27 fill=%27none%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center/contain no-repeat;}
/* Отмеченный пункт должен становиться заметнее, а не бледнее: галочка тут
   значит «да, это про меня». Поэтому строка подсвечивается, текст остаётся
   тёмным, а метка ОСТРО/ХРОНИЧЕСКИ краснеет. Решение дизайнера 2026-10-05. */
.exam input:checked ~ .exam__text{color:var(--ink);}
.exam:has(input:checked){background:var(--surface);border-radius:var(--r-10);
  margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px;
  border-bottom-color:transparent;}
.exam:has(input:checked) .exam__label{color:var(--accent);}
.exam__box{position:relative;flex:0 0 auto;width:20px;height:20px;border:1.4px solid var(--ink);border-radius:var(--r-3);transition:background .12s ease,border-color .12s ease;}
.exam__text{flex:1;font-size:var(--t-base);line-height:1.3;}
.exam__label{flex:0 0 auto;font-size:var(--t-caps14);letter-spacing:.06em;color:var(--accent);}
.exam__label--chronic{color:var(--text-2);}
.sheet__foot{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-top:28px;}
.sheet__diag{display:flex;flex-direction:column;gap:8px;}
.sheet__sign{display:flex;flex-direction:column;align-items:flex-end;gap:4px;}
.sheet__sign img{width:180px;}

.symptoms__side{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding-top:8px;}
.symptoms__side .h2{margin:8px 0 4px;}
.legend{margin:100px 0 0;display:flex;flex-direction:column;gap:10px;}
.legend>div{display:flex;align-items:baseline;gap:12px;}
.legend dd{margin:0;}
.note{background:var(--white);border-radius:var(--r-20);padding:24px 28px;display:flex;flex-direction:column;gap:10px;}
.symptoms__side .call{margin-top:4px;}

/* ==========================================================================
   03. Кто мы
   ========================================================================== */
/* Макет: узел 192:38, секция 1920×1044.
   Текст: x 80–900 (820), y 233–804.
   Картинка team-pc.webp вырезана из макета ровно по прямоугольнику
   x 940–1840, y 40–1044 (900×1004) вместе с тенью и прозрачным полем,
   поэтому её правый край совпадает с правым полем страницы и вылезать
   ей никуда не нужно, а тень внутри файла затухает до нуля — резать нечего.
   Колонки 820 : 900 с зазором 40 — пропорция держится на любой ширине.
   Текст по центру картинки со сдвигом вверх на 23,5 px (233 вместо 256,5):
   +47 px к нижнему отступу (5.7 % от колонки 820).
   Отступы текста сверху/снизу = ¾ поля секции: на 1920 они ни на что
   не влияют (текст по центру), а когда текст выше картинки (1024–1440),
   не дают ему прилипнуть к соседним секциям. */
#o-nas{padding-top:calc(var(--section-y) * .25);padding-bottom:0;}
.kto{display:grid;grid-template-columns:minmax(0,820fr) minmax(0,900fr);column-gap:40px;align-items:center;}
.kto__text{display:flex;flex-direction:column;align-items:flex-start;gap:28px;
  margin-top:calc(var(--section-y) * .75);margin-bottom:calc(var(--section-y) * .75 + 5.7%);}
.kto__text .h2{margin:0;}
.promise{background:var(--ink);color:var(--white);border-radius:var(--r-20);padding:24px 28px;font-size:var(--t-big);line-height:1.32;}
.honest{background:var(--surface-pale);border-radius:var(--r-20);padding:24px 28px;display:flex;flex-direction:column;gap:10px;}
.kto__stage{margin:0;}
.kto__stage img{width:100%;height:auto;display:block;}

/* ==========================================================================
   04. Как устроен приём
   ========================================================================== */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;}
.step{position:relative;min-height:437px;display:flex;flex-direction:column;justify-content:space-between;
  background:var(--ink-up);border-radius:var(--r-20);overflow:hidden;}
.step__top{position:relative;height:165px;}
.step__num{
  position:absolute;left:7%;top:39px;
  font-family:var(--font-num);font-weight:900;font-size:var(--t-num-outline);line-height:.9;
  color:var(--ink-up-2);user-select:none;
}
.step__top .h4{position:absolute;left:23.8%;top:111px;color:var(--text-dark-bg);}
.step__body{display:flex;flex-direction:column;gap:30px;padding:0 40px 40px;}
.step__body .pills{margin-top:auto;padding-top:16px;}
.step__body p{color:#9AA1AE;}
/* на карточке фон уже ink-up, поэтому метки поднимаем на шаг выше */
.step .pill--raised{background:var(--ink-up-2);}

/* ==========================================================================
   05. Кейсы
   ========================================================================== */
.cases__head{display:grid;grid-template-columns:1020fr 700fr;gap:40px;align-items:end;padding-bottom:14px;}
.cases__head .head{margin-bottom:0;gap:28px;}
.cases__note{max-width:700px;}

.case-main{
  display:grid;grid-template-columns:520fr 1100fr;gap:60px;
  margin-top:48px;padding:40px;border-radius:var(--r-20);background:var(--white);
  cursor:pointer;transition:transform .15s ease;
}
.case-main:hover{transform:translateY(-2px);}
.case-main__photo{position:relative;border-radius:var(--r-16);background:var(--surface-pale);min-height:534px;overflow:hidden;}
.case-main__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.case-main__date{position:absolute;left:20px;bottom:20px;}
.case-main__body{display:flex;flex-direction:column;align-items:flex-start;gap:24px;}
.case-main__body .h3{margin-top:-4px;}
.case-main__body .rule{width:100%;}
.case-main .call{margin-top:8px;}

.cases{display:flex;flex-direction:column;gap:10px;margin-top:48px;}
.case-row{
  display:grid;
  grid-template-columns:44px minmax(0,496fr) minmax(0,516fr) minmax(0,502fr) 50px;
  align-items:center;gap:24px;min-height:104px;padding:0 24px 0 32px;
  border-radius:var(--r-20);background:var(--white);
  cursor:pointer;transition:background .15s ease;
}
.case-row:hover{background:var(--surface-pale);}
.case-row__title{font-size:var(--t-lead);letter-spacing:-.02em;}
.case-row__tags{display:flex;gap:8px;justify-self:start;}
.case-row__res{display:flex;align-items:baseline;gap:12px;justify-content:flex-end;}
.case-row__res b{font-family:var(--font-num);font-weight:600;font-size:var(--t-num-m);line-height:.95;letter-spacing:-.03em;}
.case-row__res b.is-text{font-family:var(--font);font-weight:400;font-size:24px;letter-spacing:-.02em;}
/* У кейса 03 в слоте показателя не цифра, а фраза: в одну строку с
   подписью она не влезала и наезжала на теги. Кладём в два яруса. */
.case-row__res--text{flex-direction:column;align-items:flex-end;gap:2px;}
.case-row__tags{flex-wrap:wrap;min-width:0;}
.case-row__res em{font-style:normal;font-size:var(--t-small);color:var(--text-2);}

.podborka{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:40px;
  margin-top:48px;padding:18px 18px 18px 40px;border-radius:var(--r-20);background:var(--surface-pale);
}

/* ==========================================================================
   06. Услуги и цены
   ========================================================================== */
.uslugi{display:grid;grid-template-columns:560fr 1140fr;gap:60px;align-items:start;}
.uslugi__tabs{display:flex;flex-direction:column;gap:10px;}
.tab{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:72px;height:72px;padding:16px 24px;border-radius:var(--r-20);
  background:var(--white);color:var(--ink);font-size:var(--t-big);text-align:left;line-height:1.15;
  transition:background .15s ease,color .15s ease;
}
.tab:hover{background:var(--surface);}
/* Справа было 4 — красная стрелка упиралась в край плашки. Делаем поле
   равным вертикальному, чтобы кнопка стояла в одинаковом воздухе. */
.tab.is-active{background:var(--ink);color:var(--white);height:90px;min-height:90px;padding:20px 20px 20px 24px;}
.tab__sign{display:none;}
.tab.is-active .tab__sign{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:56px;height:56px;border-radius:var(--r-18);background:var(--accent);
}

.panel{display:none;}
/* Панель услуги — сетка: слева текст шириной 630 как в макете, справа
   фотография. Раньше фото лежало абсолютным слоем поверх панели и на
   узких ширинах наезжало на список. Колонкой это невозможно. */
.panel.is-active{display:flex;flex-direction:column;align-items:flex-start;gap:16px;}
.panel .h3{margin-bottom:4px;}
/* Ширины из макета (узел 277:434): описание 900, список «что входит» 630
   при панели 1140. Без этого текст тянулся во всю панель и лез под фото. */
.panel .checklist{width:100%;margin-top:4px;}
.panel>p{max-width:900px;}
.price{display:flex;align-items:baseline;gap:24px;margin-top:16px;}
.price b{font-weight:400;font-size:var(--t-big);letter-spacing:-.02em;}
.price em{font-style:normal;}
.panel .btn--outline{margin-top:8px;}

/* ==========================================================================
   07. Платите за результат
   ========================================================================== */
.platite{display:grid;grid-template-columns:560fr 1140fr;gap:60px;align-items:start;}
.platite__left{display:flex;flex-direction:column;gap:24px;}
.zero{display:flex;align-items:baseline;gap:20px;}
.zero__num{white-space:nowrap;flex:0 0 auto;}
.zero>span:not(.zero__num){max-width:280px;}
.zero__num{font-family:var(--font-num);font-weight:600;font-size:var(--t-num-xl);line-height:.88;letter-spacing:-.03em;}

.questions{background:var(--white);border-radius:var(--r-20);padding:32px 40px;}
.questions ul{margin:16px 0;}
.questions li{padding:18px 0;border-bottom:1px solid var(--line);}
.questions li:last-child{border-bottom:0;}

/* ==========================================================================
   08. Бесплатный аудит
   ========================================================================== */
.audit{position:relative;overflow:hidden;}
/* Клавиатура — угол справа внизу фиксированной ширины. Лентой во всю
   ширину её сделать нельзя: картинка почти квадратная, и растянуть её
   можно только обрезав. На телефоне стоит отдельный файл 390×202. */
.audit__bg{position:absolute;right:0;bottom:0;width:640px;max-width:40%;
  pointer-events:none;display:block;}
.audit__bg img{width:100%;height:auto;display:block;}
.audit__bg img{width:100%;height:auto;display:block;}
.audit__inner{position:relative;}
.audit__cols{display:grid;grid-template-columns:560fr 741fr;gap:60px;align-items:start;max-width:1361px;}
.card-raised{background:var(--ink-up);border-radius:var(--r-20);padding:32px;}
.form{display:flex;flex-direction:column;gap:16px;align-items:stretch;}
.form__row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.form .btn{margin-top:4px;}
.poluchite{display:flex;flex-direction:column;gap:16px;padding-top:4px;}
.poluchite .zero{margin-top:16px;}
.uskorit{display:flex;flex-direction:column;gap:16px;max-width:700px;margin-top:60px;}

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer{background:var(--surface);padding:var(--section-y) 0 var(--section-y);}
/* Колонки подвала из макета (узел 158:683): 560 / 340 / 340 / 340, промежуток 60.
   Сумма долей = 1580 = ширина контента 1760 минус три промежутка по 60, поэтому
   на 1920 доли дают ровно макетные числа и правая часть начинается на 700.
   Ниже 1920 колонки ужимаются пропорционально — так же, как в остальных секциях. */
.footer__inner{display:grid;grid-template-columns:560fr 340fr 340fr 340fr;gap:60px;padding:44px 0;}
.footer__brand{display:flex;flex-direction:column;align-items:flex-start;gap:20px;}
.footer__brand .logo img{height:84px;}
.footer__brand p{max-width:420px;}
.dot{display:inline-flex;align-items:center;gap:8px;color:var(--text-2);}
.dot::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent);}
.footer__col{display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
.footer__col a{transition:color .15s ease;}
.footer__col a:hover{color:var(--accent);}
.footer__col .socials{margin-top:4px;}
.footer .call__main{height:56px;padding:0 20px;font-size:var(--t-base);white-space:nowrap;}
.footer .call__sign{width:56px;height:56px;border-radius:var(--r-18);}
.footer__cta{margin-top:12px;}
.footer__bottom{display:flex;justify-content:space-between;gap:20px;padding-top:20px;}

/* ==========================================================================
   Мобильное меню
   ========================================================================== */
.menu{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;
  background:var(--ink);color:var(--text-dark-bg);padding:30px 20px;}
.menu[hidden]{display:none;}
/* В макете меню логотип полный, а кнопка вызова 64 в высоту при квадрате
   56 — между ними виден зазор (узел 382:518). */
.menu .call__main{height:56px;}
.menu .call__sign{width:56px;height:56px;border-radius:var(--r-18);}
.menu__head{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.menu__head .logo img{height:52px;width:auto;}
.menu__nav{display:flex;flex-direction:column;gap:0;margin-top:106px;}

.menu__foot{margin-top:auto;display:flex;flex-direction:column;gap:6px;padding-top:40px;}
.menu__foot .call{margin-top:38px;}



/* ==========================================================================
   Модалки
   ========================================================================== */
.overlay{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-start;justify-content:center;padding:40px 20px;overflow-y:auto;}
.overlay[hidden]{display:none;}
.overlay__scrim{position:fixed;inset:0;background:rgba(30,35,43,.6);backdrop-filter:blur(16px);}
.modal{position:relative;display:none;width:100%;border-radius:var(--r-20);background:var(--ink);color:var(--text-dark-bg);padding:40px;}
.modal.is-open{display:flex;flex-direction:column;gap:24px;margin:auto;}
/* Снимки аналитики: широкая полоса во всю ширину модалки. В колонке 420
   дашборд 1867×298 превращался в нечитаемую ленту. По клику открывается
   во весь экран поверх модалки, без перехода на другую страницу. */
.shots{display:flex;flex-direction:column;gap:28px;}
.shot{margin:0;display:flex;flex-direction:column;gap:10px;}
.shot__cap{line-height:1.32;}
.shot__img{display:block;position:relative;width:100%;padding:0;border-radius:var(--r-13);
  overflow:hidden;background:var(--surface);cursor:zoom-in;}
.shot__img img{width:auto;max-width:100%;height:auto;display:block;margin:0 auto;}

/* Просмотр снимка во весь экран */
.lightbox{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:16px;padding:40px 20px;
  background:rgba(30,35,43,.92);backdrop-filter:blur(8px);}
.lightbox[hidden]{display:none;}
.lightbox__stage{max-width:100%;max-height:100%;overflow:auto;border-radius:var(--r-13);background:var(--white);}
.lightbox__stage img{display:block;max-width:none;}
.lightbox__close{position:absolute;top:24px;right:24px;width:56px;height:56px;
  border-radius:var(--r-20);background:var(--accent);color:var(--white);font-size:24px;
  display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease;}
.lightbox__close:hover{background:var(--ink);}
.lightbox__hint{color:#9AA1AE;}
@media (max-width:767px){
  .lightbox{padding:16px;}
  .lightbox__close{top:12px;right:12px;width:48px;height:48px;}
}
/* ---------- модалка кейса ----------
   В макете (узел 285:509) карточка СВЕТЛАЯ: белый фон, тёмный текст,
   красный крестик 64 в правом верхнем углу рядом с датой, заголовок 48,
   пунктирные разделители и две колонки — снимок 420 и разбор 644.
   Раньше здесь была тёмная карточка, и это было совсем не то окно. */
.modal--case{
  max-width:1200px;padding:48px;gap:28px;
  background:var(--white);color:var(--ink);
}
.modal--case .modal__head{align-items:flex-start;justify-content:space-between;gap:16px;padding-right:0;}
.modal--case .modal__head-r{display:inline-flex;align-items:center;gap:12px;}
.modal--case .modal__close{position:static;width:64px;height:64px;border-radius:var(--r-20);
  background:var(--accent);color:var(--white);font-size:24px;
  transition:background .15s ease,transform .18s ease;}
/* Поворот крестика смысла не имеет: знак симметричный, после четверти
   оборота выглядит так же. Поэтому реакция цветом — красный уходит в
   тёмный, как у контурной кнопки. */
.modal--case .modal__close:hover{background:var(--ink);transform:scale(1.04);}
.modal--case .modal__close:active{transform:scale(.98);}
.modal--case .h3{letter-spacing:-.02em;}
.rule--dotted{height:0;border:0;border-top:1px dashed rgba(30,35,43,.22);margin:0;}
.modal--case .modal__body{display:grid;grid-template-columns:420px minmax(0,1fr);gap:40px;align-items:start;}
/* У кейсов с сайтами плашки с фото нет: следом идёт тот же первый экран */
.modal--case .modal__body--wide{grid-template-columns:1fr;}
.modal__tagline{align-self:flex-start;margin-bottom:4px;}
.modal--case .modal__info{display:flex;flex-direction:column;gap:20px;}
.modal--case .modal__info>div{display:flex;flex-direction:column;gap:12px;}
/* «Выписан с» в макете без тёмной плашки — обычный блок на белом */
.modal--case .modal__out{background:none;padding:0;border-radius:0;gap:12px;}
.modal--case .modal__out .stat__num{color:var(--ink);font-size:var(--t-num-m);}
.modal--case .muted{color:var(--text-2);}
/* Фотографии проектов разных пропорций: плашка принимает высоту самой
   фотографии, а не растягивает её в квадрат. Метка лежит поверх. */
/* Фотографии проектов — один формат на все кейсы: квадрат 420×420 из
   макета, кадрирование по центру. Снимки сайтов живут в своей пропорции:
   первый экран страницы нельзя обрезать до квадрата. */
.modal--case .modal__shot{position:relative;min-height:0;padding:0;overflow:hidden;aspect-ratio:1/1;}
.modal--case .modal__shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
.modal--case .modal__shot--site{aspect-ratio:auto;}
.modal--case .modal__shot--site img{position:static;width:100%;height:auto;object-fit:fill;}
.modal--case .modal__shot .pill{position:absolute;left:20px;top:20px;z-index:1;}
.modal--case .modal__foot{border-top:0;padding-top:0;}
.modal--case .modal__foot a{color:var(--accent);text-decoration:underline;text-underline-offset:4px;}
.modal__link{line-height:1.32;}
.modal--case .iconbtn{width:50px;height:50px;border-radius:var(--r-20);background:var(--ink);color:var(--white);}
.modal--case .iconbtn:hover{background:var(--ink-up-2);}
.modal--case .marker--x{background:var(--surface-pale);color:var(--text-2);}

.modal--form{max-width:640px;align-items:flex-start;}
.modal--form>.h5,.modal--form>.caps{padding-right:60px;}
.modal--form .form{width:100%;}
.modal__close{position:absolute;top:24px;right:24px;width:50px;height:50px;border-radius:var(--r-20);
  background:var(--ink-up);color:var(--text-dark-bg);font-size:22px;line-height:1;transition:background .15s ease;}
.modal__close:hover{background:var(--ink-up-2);}
.modal__close span{display:block;}
.modal__head{display:flex;flex-wrap:wrap;gap:8px;padding-right:60px;}
.modal__shot{display:flex;align-items:flex-start;padding:20px;min-height:260px;border-radius:var(--r-16);background:var(--surface-pale);}
.modal__cols{display:grid;grid-template-columns:1fr 1fr;gap:40px;}
.modal__out .stat__num{font-size:var(--t-num-l);}
.modal__out{display:flex;flex-direction:column;gap:16px;padding:24px;border-radius:var(--r-16);background:var(--ink-up);}
.modal__foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:24px;border-top:1px solid var(--line-dark);}
.modal__foot a{text-decoration:underline;}
.pager{display:flex;align-items:center;gap:10px;}
.pager .iconbtn{width:38px;height:38px;border-radius:var(--r-13);font-size:16px;}
.modal .field{background:var(--ink-up);}
.modal .check__text{color:#9AA1AE;}

body.is-locked{overflow:hidden;}

/* Видимый фокус: без него с клавиатуры не понять, где находишься */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px;}
/* У поля ввода контур нейтральный, а не акцентный: красный на поле
   читается как «вы ошиблись», хотя человек просто начал печатать.
   Красный остаётся за настоящими ошибками. */
.field:focus-visible{outline:1.5px solid rgba(255,255,255,.38);outline-offset:0;}
/* Карточка кейса принимает фокус при открытии, чтобы он не садился на крестик.
   Сама она не интерактивна — контур вокруг всей карточки только мешает. */
.modal[tabindex="-1"]:focus,.modal[tabindex="-1"]:focus-visible{outline:none;}
.check input:focus-visible + .check__box{outline:2px solid var(--accent);outline-offset:3px;}

/* ==========================================================================
   Адаптив. Макеты есть только на 1920 и 390 — промежуточное решение вёрстки,
   см. ds/CONTRACT.md.
   ========================================================================== */
/* ---------- /07 чем мы отличаемся ----------
   Сетка 3×2 по 560 с промежутком 40, как в макете (узел 463:536).
   Верхнего поля у секции нет: она продолжает «Платите за результат»,
   и между ними должен быть один отступ, а не два. */
.otlichiya{padding-top:0;}
.advs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;}
.adv{display:flex;flex-direction:column;gap:24px;align-items:flex-start;
  padding:40px;border-radius:var(--r-20);background:var(--white);}
.adv__icon{width:96px;height:96px;flex:0 0 auto;}
.adv__title{letter-spacing:0;}
.adv__text{margin:0;}


/* ---------- мобильное меню ----------
   Числа из макета (узел 382:518): фон ink, шапка на 30 от верха, логотип
   светлый и без подложки, крестик 44 на ink-2 с радиусом 15, пункты 22
   шагом 60 с разделителями, внизу телефон 24, телеграм 16 вторичным
   и белая кнопка вызова с красным квадратом. */
.menu__close{display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:15px;background:var(--ink-up-2);
  color:var(--text-dark-bg);font-size:20px;line-height:1;flex:0 0 auto;
  transition:background .15s ease;}
.menu__close:hover{background:var(--line-dark);}
.menu__nav a{display:flex;align-items:center;height:60px;
  font-size:22px;line-height:1.1;color:var(--text-dark-bg);
  border-bottom:1px solid rgba(244,244,244,.16);}
.menu__nav a:last-child{border-bottom:0;}
.menu__phone{font-size:24px;line-height:1.1;color:var(--text-dark-bg);}
.menu__tg{font-size:16px;line-height:1.35;color:var(--text-2);}
/* В меню кнопка белая, а не тёмная — на тёмном фоне она главная */
.call--light .call__main{background:var(--white);color:var(--ink);}
.call--light:hover .call__main{background:var(--surface-pale);}
@media (max-width:1599px){
  :root{
    --gutter:80px;--section-y:130px;
    --t-h1:64px;--t-h2:48px;--t-h3:40px;--t-h4:34px;--t-h5:28px;
    --t-lead:22px;--t-big:20px;--t-base:18px;--t-small:16px;
    --t-caption:15px;--t-micro:13px;
    --t-caps16:15px;--t-caps14:13px;--t-caps12:11px;
    --t-num-xl:64px;--t-num-l:52px;--t-num-m:34px;--t-num-outline:160px;
  }
  .case-main__photo{min-height:420px;}
}

@media (max-width:1279px){
  :root{
    --gutter:40px;--section-y:104px;
    --t-h1:54px;--t-h2:40px;--t-h3:34px;--t-h4:28px;--t-h5:24px;
    --t-lead:20px;--t-big:18px;--t-base:17px;--t-small:15px;
    --t-caption:14px;--t-micro:12px;
    --t-caps16:14px;--t-caps14:12px;--t-caps12:11px;
    --t-num-xl:52px;--t-num-l:44px;--t-num-m:30px;--t-num-outline:132px;
  }
  .tab{min-height:80px;}
  .step{min-height:0;}
  .step__top{height:120px;}
  .step__top .h4{top:66px;}
  .footer__inner{grid-template-columns:1.4fr 1fr 1.3fr 1fr;gap:40px;}
}

/* планшет */
@media (min-width:768px) and (max-width:1023px){
  :root{--gutter:32px;--section-y:96px;}
  .wrap{max-width:704px;}
  .h1,.h2{-webkit-text-stroke:0;}
  .h2 .brk{display:inline;}
  .header__nav{display:none;}
  .header__right .btn--sm{display:none;}
  .header__right{margin-left:auto;}
  .burger{display:flex;}

  .hero__top{grid-template-columns:1fr;gap:32px;}
  .hero__list{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;width:100%;}
  /* Картинка показывается целиком, во всю ширину секции, как на десктопе */
  .hero__image{margin:16px 0 0;width:100%;}
  .hero__image img{width:100%;height:auto;}

  /* Порядок как в мобильном макете: заголовок → описание → лист → врезка.
     Двухколоночный боковой блок уводил «зачем осмотр» вправо, а лист
     оказывался раньше заголовка. */
  .symptoms{display:flex;flex-direction:column;align-items:flex-start;gap:24px;margin:0;}
  .symptoms__side{display:contents;}
  .symptoms__side>.pill{order:1;}
  .symptoms__side>.h2{order:2;width:100%;}
  .symptoms__side>.lead{order:3;width:100%;}
  .sheet{order:4;width:100%;}
  .sheet .legend{width:100%;margin:16px 0 0;}
  .sheet .call{width:100%;margin-top:16px;}
  .symptoms__side>.note{order:5;width:100%;}

  /* Кто мы: одна колонка, бейджи под текстом. Картинка та же, что на
     десктопе, — у мобильной на этой ширине не хватает разрешения. */
  .kto{grid-template-columns:1fr;gap:16px;align-items:start;}
  .kto__text{margin:0;}
  #o-nas{padding-top:var(--section-y);padding-bottom:calc(var(--section-y) * .25);}
  .kto__stage{width:100%;max-width:640px;margin:0 auto;}
  /* Этапы: на этой ширине десктопные координаты номера и заголовка
     накладывались друг на друга. */
  .steps{grid-template-columns:1fr;gap:24px;}
  .step{min-height:0;}
  .step__top{height:120px;}
  .step__num{left:24px;top:16px;}
  .step__top .h4{left:96px;top:66px;}
  .step__body{padding:0 24px 24px;gap:20px;}
  .cases__head{grid-template-columns:1fr;gap:20px;align-items:start;}
  .case-main{grid-template-columns:1fr;gap:24px;}
  .case-main__photo{min-height:300px;}
  .case-row{grid-template-columns:40px minmax(0,1fr) auto;gap:16px;padding:20px 24px;}
  .case-row__tags{grid-column:2;grid-row:2;}
  .case-row__res{grid-column:2;grid-row:3;justify-content:flex-start;}
  .arrowbtn{grid-column:3;grid-row:1 / span 3;}
  /* Услуги здесь аккордеон, как в мобильном макете: две колонки вкладок
     отрывали раскрытую услугу от её названия. */
  .podborka{flex-direction:row;align-items:center;justify-content:space-between;gap:32px;}
  .podborka .call{flex:0 0 auto;width:auto;}
  .uslugi{grid-template-columns:1fr;gap:24px;}
  .uslugi__tabs{display:flex;flex-direction:column;gap:12px;}
  .tab{min-height:0;height:auto;padding:16px 20px;}
  /* На закрытых услугах нужен знак, иначе непонятно, что их открывают.
     В макете это кнопка 38 с плюсом. */
  .tab{position:relative;padding-right:72px;}
  .tab:not(.is-active)::after{content:"+";position:absolute;right:16px;top:50%;
    transform:translateY(-50%);width:38px;height:38px;border-radius:var(--r-13);
    background:var(--accent);color:var(--white);font-size:20px;line-height:38px;
    text-align:center;}
  .uslugi__tabs{gap:12px;}
  .tab.is-active{padding-right:16px;height:auto;}
  /* Раскрытая услуга — белая карточка вместе со своей строкой, как в
     мобильном макете. Раньше текст лежал прямо на фоне секции и выглядел
     как потерянный кусок. */
  .tab.is-active{background:var(--white);color:var(--ink);
    border-radius:var(--r-16) var(--r-16) 0 0;padding:20px;}
  .tab.is-active .tab__sign{background:var(--accent);}
  .panel.is-active{background:var(--white);border-radius:0 0 var(--r-16) var(--r-16);
    padding:0 20px 20px;margin-top:-12px;margin-bottom:12px;}
  .panel .checklist li{border-bottom:1px dashed rgba(30,35,43,.22);}
  .panel .checklist li:last-child{border-bottom:0;}
  .tab.is-active .tab__sign{width:44px;height:44px;border-radius:var(--r-13);}
  .btn,.call__main{height:56px;font-size:17px;}
  .call__sign{width:56px;height:56px;font-size:17px;border-radius:var(--r-18);}
  .platite{grid-template-columns:1fr;gap:32px;}
  .advs{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
  .adv{padding:28px;}
  .audit__cols{grid-template-columns:1fr;gap:32px;}
  .field{font-size:16px;height:60px;padding:0 20px;}
  .audit{display:flex;flex-direction:column;}
  .audit__inner{order:1;}
  .audit__bg{order:2;position:relative;right:auto;bottom:auto;
    width:100%;max-width:none;opacity:1;margin-top:40px;margin-bottom:calc(-1 * var(--section-y));}
  .audit__bg img{width:100%;height:auto;}
  .footer__inner{grid-template-columns:1fr 1fr 1fr;gap:32px;}
  .footer__brand{grid-column:1 / -1;}
  .modal__cols{grid-template-columns:1fr;gap:24px;}
  .modal--case{padding:28px;gap:20px;}
  .modal--case .modal__body{grid-template-columns:1fr;gap:24px;}
  .modal--case .modal__shot{min-height:240px;}
  .modal--case .modal__close{width:56px;height:56px;}
}

/* мобильная: собственная шкала DS/Моб */
@media (max-width:767px){
  /* Страницу сайта на телефоне увеличивать бессмысленно: это полотно
     в несколько тысяч пикселей, читать его всё равно нельзя */
  .shot__img[data-site-shot]{cursor:default;pointer-events:none;}
  :root{
    --gutter:20px;--section-y:80px;
    --t-h1:40px;--t-h2:32px;--t-h3:24px;--t-h4:24px;--t-h5:24px;
    --t-lead:18px;--t-big:18px;--t-base:16px;--t-small:16px;
    --t-caption:16px;--t-micro:13px;
    --t-caps16:13px;--t-caps14:11px;--t-caps12:11px;
    --t-num-xl:48px;--t-num-l:40px;--t-num-m:28px;--t-num-outline:104px;
  }
  body{font-size:16px;line-height:1.4;}
  .h1,.h2{-webkit-text-stroke:0;}
  .h1{line-height:.95;}
  .h2{line-height:1;}
  .h3{line-height:1.1;letter-spacing:-.01em;}
  .h5{line-height:1.1;}
  .lead,.big{line-height:1.35;}
  .base,.small,.caption{line-height:1.4;}
  .micro{line-height:1.35;}

  .head{gap:16px;margin-bottom:32px;}
  .header__nav,.header__right .btn--sm,.header__right .socials{display:none;}
  .header__right{margin-left:auto;gap:0;}
  .burger{display:flex;margin-left:auto;width:38px;height:38px;}
  .logo img{height:48px;}

  /* кнопки мобильной версии: 56 и 17 — см. ds/CONTRACT.md */
  .btn{height:56px;font-size:17px;padding:0 20px;}
  .btn--sm{height:48px;font-size:16px;}
  .call{width:100%;}
  .call__main{flex:1;justify-content:space-between;height:56px;font-size:17px;padding:0 20px;}
  .call__sign{width:56px;height:56px;font-size:17px;border-radius:var(--r-18);}
  .arrowbtn,.iconbtn{width:38px;height:38px;border-radius:var(--r-13);}
  .pill{height:34px;font-size:13px;padding:0 14px;}
  .tag{height:28px;font-size:12px;padding:0 10px;}

  /* Первый экран в мобильном макете белый (узел 330:314), шапка над ним
     серая — так в макете. Картинка hero-mob.webp сведена на белый. */
  .hero{padding-top:32px;background:var(--white);}
  .hero__top{grid-template-columns:1fr;gap:24px;}
  .hero__col{gap:24px;width:100%;}
  .hero__list{width:100%;}
  .hero__actions{flex-direction:column-reverse;align-items:stretch;width:100%;}
  .hero__actions .call__main{justify-content:center;}
  .hero__list span{font-size:15px;}
  /* Кадр первого экрана на телефоне — hero-mob.webp, вырез из той же
     фотографии ровно по макету (узел 340:4791: фото 999 px шириной,
     низ по низу экрана). В файле сверху ~13 px воздуха над подписями,
     поэтому до списка 37 px, а подписи начинаются через 41, как в макете.
     Картинка стоит во всю ширину и до низа секции. */
  .hero__image{margin-top:37px;}
  .hero__image img{width:100%;height:auto;}

  /* Порядок мобильного макета (узел 331:301): заголовок → список симптомов →
     легенда → кнопка. display:contents распускает боковой блок в общую колонку —
     без этого он идёт целиком перед листом и призыв виден раньше симптомов. */
  .symptoms{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin:0;}
  .symptoms__side{display:contents;}
  .symptoms__side>.pill{order:1;}
  .symptoms__side>.h2{order:2;width:100%;}
  .symptoms__side>.lead{order:3;width:100%;}
  .sheet{order:4;width:100%;margin-top:8px;}
  .sheet .legend{width:100%;margin:16px 0 0;}
  .sheet .call{width:100%;margin-top:16px;}
  .symptoms__side>.note{display:none;}
  .symptoms__side>.call{order:6;}
  .h2 .brk{display:inline;}
  .sheet{padding:20px 20px 16px;border-radius:var(--r-16);}
  .sheet__head{flex-direction:row;gap:12px;padding-bottom:16px;font-size:11px;}
  .sheet__foot{display:none;}
  /* В мобильном макете чекбокс стоит по центру пункта, а метка ОСТРО/ХРОНИЧЕСКИ
     над текстом, а не рядом с квадратиком. */
  /* В мобильном макете три пункта осмотра короче десктопных (узел 331:306).
     Хвост фразы лежит отдельным span и на узкой ширине не показывается —
     так текст остаётся одним абзацем и не дублируется в разметке. */
  .exam__text .tail{display:none;}
  .exam{display:grid;grid-template-columns:20px 1fr;column-gap:12px;row-gap:4px;align-items:center;padding:14px 0;}
  .exam__box{grid-column:1;grid-row:1 / span 2;align-self:center;}
  .exam__label{grid-column:2;grid-row:1;font-size:11px;}
  .exam__text{grid-column:2;grid-row:2;font-size:15px;}
  .symptoms__side{gap:16px;}
  .legend{margin-top:8px;}
  .note{padding:20px;border-radius:var(--r-16);}

  /* Порядок мобильного макета (узел 347:357): заголовок → бейджи → текст. */
  #o-nas{padding-top:var(--section-y);padding-bottom:var(--section-y);}
  .kto{display:flex;flex-direction:column;align-items:flex-start;gap:20px;}
  .kto__text{display:contents;}
  .kto__text>.pill{order:1;}
  .kto__text>.h2{order:2;width:100%;}
  .kto__stage{order:3;}
  .kto__text>.lead{order:4;width:100%;}
  .kto__text>p{order:5;width:100%;}
  .kto__text>.promise{order:6;width:100%;}
  .kto__text>.honest{order:7;width:100%;}
  /* Мобильная композиция (узел 359:4996): группа шире экрана и уходит
     за оба края. Режем только по горизонтали — overflow-x:clip,
     вертикаль и тени остаются целыми. */
  .kto__stage{width:117.9vw;margin-left:-14.1vw;}
  #o-nas{overflow-x:clip;}
  .promise,.honest{padding:20px;border-radius:var(--r-16);font-size:16px;}


  .steps{grid-template-columns:1fr;gap:16px;}
  .step{min-height:0;border-radius:var(--r-16);}
  .step__top{height:104px;}
  .step__num{left:20px;top:14px;}
  .step__top .h4{left:78px;top:56px;}
  .step__body{padding:0 20px 20px;gap:16px;}

  .cases__head{grid-template-columns:1fr;gap:16px;align-items:start;}
  .case-main{grid-template-columns:1fr;gap:20px;padding:20px;border-radius:var(--r-16);margin-top:24px;}
  .case-main__photo{min-height:220px;}
  .case-main__body{gap:16px;}
  .stats{gap:24px;}
  .stat__num.is-text{font-size:20px;}
  .case-row__res b.is-text{font-size:20px;}
  .case-row__res--text{align-items:flex-start;}
  .case-row{grid-template-columns:1fr auto;gap:10px;padding:20px;border-radius:var(--r-16);min-height:0;}
  .case-row__num{grid-column:1;}
  .case-row__title{grid-column:1;font-size:18px;}
  .case-row__tags{grid-column:1;flex-wrap:wrap;}
  .case-row__res{grid-column:1;justify-content:flex-start;}

  .arrowbtn{grid-column:2;grid-row:1 / span 4;align-self:center;}
  .podborka{padding:20px;border-radius:var(--r-16);gap:20px;flex-direction:column;align-items:stretch;}

  .uslugi{grid-template-columns:1fr;gap:24px;}
  .tab{min-height:0;padding:16px 20px;font-size:17px;border-radius:var(--r-16);}
  /* На закрытых услугах нужен знак, иначе непонятно, что их открывают.
     В макете это кнопка 38 с плюсом. */
  .tab{position:relative;padding-right:72px;}
  .tab:not(.is-active)::after{content:"+";position:absolute;right:16px;top:50%;
    transform:translateY(-50%);width:38px;height:38px;border-radius:var(--r-13);
    background:var(--accent);color:var(--white);font-size:20px;line-height:38px;
    text-align:center;}
  .uslugi__tabs{gap:12px;}
  .tab.is-active{padding-right:16px;}
  .tab.is-active .tab__sign{width:38px;height:38px;border-radius:var(--r-13);}
  /* Раскрытая услуга — белая карточка вместе со своей строкой, как в
     мобильном макете. Раньше текст лежал прямо на фоне секции и выглядел
     как потерянный кусок. */
  .tab.is-active{background:var(--white);color:var(--ink);
    border-radius:var(--r-16) var(--r-16) 0 0;padding:20px;}
  .tab.is-active .tab__sign{background:var(--accent);}
  .panel.is-active{background:var(--white);border-radius:0 0 var(--r-16) var(--r-16);
    padding:0 20px 20px;margin-top:-12px;margin-bottom:12px;}
  .panel .checklist li{border-bottom:1px dashed rgba(30,35,43,.22);}
  .panel .checklist li:last-child{border-bottom:0;}
  .price{flex-direction:column;align-items:flex-start;gap:6px;}


  .platite{grid-template-columns:1fr;gap:24px;}
  .zero{flex-direction:column;gap:8px;}

  .zero>span:not(.zero__num){max-width:none;}
  .questions{padding:20px;border-radius:var(--r-16);}
  .questions li{padding:12px 0;}

  .audit__cols{grid-template-columns:1fr;gap:24px;}
  .card-raised{padding:20px;border-radius:var(--r-16);}
  .form__row{grid-template-columns:1fr;}
  .field{height:60px;padding:0 20px;font-size:16px;}
  /* В мобильном макете клавиатура не фон, а полоса во всю ширину внизу
     секции — 390×202 (узел 354:426). */
  .audit{display:flex;flex-direction:column;}
  .audit__inner{order:1;}
  .audit__bg{order:2;display:block;position:relative;right:auto;bottom:auto;
    width:100%;max-width:none;height:51.8vw;object-fit:cover;object-position:center;
    margin-top:40px;margin-bottom:calc(-1 * var(--section-y));}
  .uskorit{margin-top:32px;}

/* Шесть карточек в столбик — это длинно, поэтому на телефоне они едут
     лентой вбок с прилипанием к краю. Полоса прокрутки скрыта, но сам жест
     остаётся обычным. */
  .otlichiya .wrap{padding-right:0;}
  .advs{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:82%;
    gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
    scrollbar-width:none;padding-right:var(--gutter);}
  .advs::-webkit-scrollbar{display:none;}
  .adv{scroll-snap-align:start;padding:20px;border-radius:var(--r-16);gap:16px;}
  .adv__icon{width:64px;height:64px;}

  .footer{padding:80px 0 60px;}
  .footer__inner{grid-template-columns:1fr;gap:32px;padding:32px 0;}
  .footer__bottom{flex-direction:column;gap:12px;}

  .overlay{padding:0;align-items:stretch;}
  .modal{border-radius:0;min-height:100%;padding:20px;padding-top:64px;}
  .modal__close{top:16px;right:16px;width:38px;height:38px;border-radius:var(--r-13);font-size:18px;}
  .modal__head{padding-right:0;}
  .modal__shot{min-height:180px;}
  .modal__cols{grid-template-columns:1fr;gap:24px;}
  .modal--case{padding:20px;padding-top:20px;gap:16px;}
  .modal--case .modal__body{grid-template-columns:1fr;gap:20px;}
  .modal--case .modal__shot{min-height:200px;}
  .modal--case .modal__head{flex-direction:column;align-items:flex-start;gap:8px;padding-right:76px;}
  .modal--case .modal__head .pill{white-space:normal;height:auto;padding:7px 14px;}
  .modal--case .modal__head-r{display:contents;}
  .modal--case .modal__close{position:absolute;top:20px;right:20px;width:56px;height:56px;border-radius:var(--r-16);font-size:20px;}
  .modal__foot{flex-direction:column;align-items:flex-start;gap:16px;}
  .pager{align-self:flex-end;}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important;}
  html{scroll-behavior:auto;}
}

