/* Сломал? Починим! — стили сайта. Сначала телефон, потом шире.
   Главная — переписка: тёмный пузырь — вопрос клиента, светлый — ответ
   ИИгоря: реплика и одна графика по смыслу (плитки, цепочка, прайс, талон,
   таблица). Цвета из знака: тёмный #1a1a2e и розовый #e15096. */

:root {
  --ink: #1a1a2e;
  --ink-2: #26263f;
  --pink: #e15096;
  --pink-hover: #d4408a;
  --pink-ink: #b42a6c;          /* розовый для мелкого текста на светлом */
  --pink-soft: #fdeaf3;
  /* статусы наличия запчасти — только точка-светофор рядом со словом (текст остаётся тёмным) */
  --st-ok: #2f9e5e;
  --st-wait: #e39a1c;
  --st-no: #e0454b;
  --pink-glow: rgba(225, 80, 150, .18);
  --bg: #faf8fb;
  --surface: #fff;
  --surface-2: #fbf9fc;
  --tile: #f3f0f6;              /* мягкая плитка внутри белого пузыря, без рамки */
  --text: #1a1a2e;
  --muted: #5d5d73;
  --faint: #9a9aae;
  --line: rgba(26, 26, 46, .09);
  --line-2: rgba(26, 26, 46, .15);
  --r-lg: 28px;
  --r: 20px;
  --card-radius: 18px;
  --card-hover-line: rgba(225, 80, 150, .35);
  --action-radius: 999px;
  --glass-white: rgba(255, 255, 255, .88);
  --glass-pink: color-mix(in srgb, var(--pink) 94%, transparent);
  --glass-pink-hover: color-mix(in srgb, var(--pink-hover) 94%, transparent);
  --action-primary-shadow: 0 6px 16px rgba(26, 26, 46, .14), 0 1px 2px rgba(26, 26, 46, .08);
  --action-white-shadow: 0 8px 22px rgba(26, 26, 46, .12), 0 1px 3px rgba(26, 26, 46, .06);
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, .05), 0 4px 14px rgba(26, 26, 46, .04);
  --shadow: 0 1px 2px rgba(26, 26, 46, .04), 0 16px 40px rgba(26, 26, 46, .09);
  --gutter: 16px;
  --maxw: 1120px;
  --header-h: 68px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
/* Страница ходит только вверх и вниз (владелец 16.10.2026: на iPhone при
   свайпе она дёргалась вбок). Safari на iPhone не слушает запрет у body,
   поэтому он и у html: clip там, где понимают, hidden — у старых iOS. Ленты
   отзывов и плиток листаются сами по себе — они свои области прокрутки. */
html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Едва заметное тепло за страницей — чтобы стекло шапки было на чём играть. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 38% at 90% -4%, rgba(225, 80, 150, .09), transparent 70%),
    radial-gradient(45% 34% at -8% 40%, rgba(120, 100, 220, .06), transparent 70%);
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.action-cue { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--pink-ink); font-weight: 600; }
.action-cue .action-arrow { width: 1em; height: 1em; stroke-width: 2; transition: transform .2s var(--ease); }
a:hover .action-cue .action-arrow, a:focus-visible .action-cue .action-arrow { transform: translateX(2px); }
.pink { color: var(--pink); }

/* ── Шапка (владелец 24.09.2026, вариант B): знак-монета и имя без подложки
   стоят наверху страницы и уезжают вместе с ней; за экраном едут только две
   круглые стеклянные кнопки — «телефон и адреса» и «кабинет». ── */
.header { position: relative; z-index: 40; padding: 12px 0 4px; }
/* Справа в строке — место под три круглые кнопки (позвонить, где мы,
   кабинет); розовая «Спросить» при загрузке скрыта. */
.header-row { display: flex; align-items: center; height: 56px; padding-right: calc(var(--gutter) + 162px); }
@media (max-width: 380px) { .header-row { padding-right: calc(var(--gutter) + 146px); } }
@media (min-width: 720px) { .header-row { padding-right: calc(var(--gutter) + 170px); } }
/* Стекло: почти прозрачное, слегка размывает и насыщает то, что под ним;
   ::before — кромка-линза (яркий блик сверху-слева, тёмная грань снизу),
   ::after — глянец. Преломление по краю — SVG-фильтр #glass, его умеет
   Chromium/Firefox; Safari на iPhone SVG в backdrop-filter не рисует и
   получает только размытие. */
.glass {
  position: relative; isolation: isolate; pointer-events: auto;
  border-radius: var(--action-radius);
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(6px) saturate(1.7) brightness(1.06);
  backdrop-filter: blur(6px) saturate(1.7) brightness(1.06);
  box-shadow: var(--action-white-shadow);
}
.glass::before, .vol::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow:
    inset 1.5px 1.5px 1.5px rgba(255, 255, 255, .95),
    inset -1px -1px 1.5px rgba(255, 255, 255, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .38),
    inset 0 -14px 24px -18px rgba(26, 26, 46, .28),
    inset 0 12px 20px -16px rgba(255, 255, 255, .9);
}
.glass::after, .vol::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .04) 48%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .14));
}
/* Всё, что нажимается, — белая объёмная поверхность (владелец 25.09: «всё, что
   можно нажать, — в стиле белой объёмной кнопки, розовая объёмная — внимание
   и акцент»): те же блики, глянец и тень, что у стеклянной кнопки, но без
   размытия подложки — плиток моделей на странице бывают десятки, а фон под
   ними ровный. Плоская .card — только для того, что не нажимается (текст
   отзыва, графики, схема пути). Радиус — у каждого элемента свой. */
.vol {
  position: relative; isolation: isolate;
  background: var(--glass-white); border: 0; box-shadow: var(--action-white-shadow);
  border-radius: var(--card-radius); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}
.vol:hover { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 24px rgba(26, 26, 46, .16); }
.vol:active { transform: scale(.98); }
.vol:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

@supports (backdrop-filter: url("#glass")) and (not (font: -apple-system-body)) {
  .glass {
    -webkit-backdrop-filter: url("#glass") saturate(1.7) brightness(1.06);
    backdrop-filter: url("#glass") saturate(1.7) brightness(1.06);
  }
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.brand .logo { width: 40px; height: 40px; flex: none; }
.header .brand .logo { width: 50px; height: 50px; filter: drop-shadow(0 6px 10px rgba(26, 26, 46, .18)); }
/* Имя — сбитый жирный капс, как напечатано на футболках команды. */
.brand-name {
  font: 700 19px/1 'Oswald', 'Arial Narrow', var(--font);
  text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
  transform: translateY(1px);
}
.brand-name .fix { color: var(--pink); }
@media (max-width: 719px) {
  .header .brand-name { font-size: 18px; line-height: 1.02; }
  .header .brand-name .fix { display: block; }
}
@media (max-width: 359px) { .header .brand-name { font-size: 16px; } .header .brand .logo { width: 42px; height: 42px; } .brand { gap: 8px; } }
@media (min-width: 720px) { .brand-name { font-size: 22px; } .header .brand .logo { width: 56px; height: 56px; } }
/* Кнопки висят над страницей у правого края колонки текста. */
.hbtns {
  position: fixed; z-index: 40; display: flex; gap: 8px;
  top: calc(env(safe-area-inset-top) + 16px);
  right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
}
.gbtn {
  /* 999px, а не 50%: у квадрата это тот же круг, а розовые кнопки с
     подписью шире высоты — при 50% они становились эллипсами. */
  width: 48px; height: 48px; border-radius: var(--action-radius); border: 0; padding: 0;
  display: grid; place-items: center;
  color: var(--ink); cursor: pointer;
  transition: background .15s, transform .15s;
}
button.gbtn:not(.glass) { background: transparent; }
.gbtn:hover { background: rgba(255, 255, 255, .6); }
.gbtn:active { transform: scale(.94); }
.gbtn .icon { width: 25px; height: 25px; stroke-width: 2; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)); }
/* «Спросить мастера» — главное действие шапки: розовое стекло; на широком
   экране с подписью. */
.gbtn--pink, .gbtn--pink.glass {
  background: var(--glass-pink); color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--action-primary-shadow);
}
/* «Спросить мастера» в шапке появляется, когда кнопка первого экрана ушла
   под шапку (site.js ставит .is-on); без скрипта видна всегда. */
.js .gbtn--ask:not(.is-on) { display: none; }
.gbtn--ask.is-on { animation: pop .2s var(--ease); }
/* «Позвонить»: маленькое меню с номерами под кнопкой. */
.callwrap { position: relative; }
.callmenu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 41;
  display: grid; gap: 2px; min-width: 232px; padding: 6px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.callmenu-item {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; color: var(--ink);
}
.callmenu-item b { font: 600 15px/1.2 var(--font); }
.callmenu-item span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.callmenu-item:hover, .callmenu-item:focus-visible { background: var(--pink-soft); outline: 0; }
.callmenu-item:hover span, .callmenu-item:focus-visible span { color: var(--pink-ink); }
/* На телефоне — с короткой подписью «Спросить» (владелец 25.09: одно
   облачко красиво, но непонятно), на широком — «Спросить мастера». */
.gbtn--ask { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px 0 13px; }
.gbtn--ask .gbtn-text--short { display: inline; font: 600 15px/1 var(--font); letter-spacing: -.01em; }
.gbtn--ask .gbtn-text--long { display: none; }
@media (min-width: 720px) {
  .gbtn--ask { gap: 8px; padding: 0 20px 0 16px; }
  .gbtn--ask .gbtn-text--short { display: none; }
  .gbtn--ask .gbtn-text--long { display: inline; }
}
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.gbtn--pink:hover, .gbtn--pink.glass:hover { background: var(--glass-pink-hover); }
.gbtn--pink .icon { filter: none; }
.gbtn-text { display: none; }
@media (min-width: 720px) {
  .gbtn--pink { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px 0 16px; border-radius: 999px; }
  .gbtn-text { display: inline; font: 600 15px/1 var(--font); letter-spacing: -.01em; }
}
@media (max-width: 380px) { .gbtn { width: 44px; height: 44px; } .hbtns { gap: 6px; } }
.sheet-close.gbtn { width: 42px; height: 42px; }
.sheet-close.gbtn .icon { width: 22px; height: 22px; }

/* ── Первый экран: постоянный заголовок в две строки, подводка, одна кнопка
   «Спросить мастера» и строка «точки · часы» — одной группой слева; справа
   ИИгорь за работой. Ничего не печатается и не мигает (владелец 25.09). ── */
.hero { padding: 10px 0 4px; }
@media (min-width: 720px) { .hero { padding: 18px 0 8px; } }
.hero-grid { display: grid; gap: 4px 32px; align-items: center; grid-template-areas: "text" "art"; }
@media (min-width: 720px) { .hero-grid { grid-template-columns: 1.05fr .95fr; grid-template-areas: "text art"; } }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 0 48px; } }
/* Текст — над сценой: растворённое поле видео на телефоне заходит под него. */
.hero-text { grid-area: text; position: relative; z-index: 1; }
.hero-art { grid-area: art; }
/* H1 первого экрана — самый крупный текст страницы (владелец 16.10.2026):
   две строки на любом экране, на телефоне 28 px, на широком до 50 — под
   высоту сцены справа. Всё крупное ниже (вопросы, «100 дней гарантии», цифры
   статистики, «Остались вопросы?») меньше его: на телефоне не больше 6,6vw
   против 7,4vw, с 720 px — не больше 3,6vw против 4vw. */
.h1 { font: 800 clamp(28px, 7.4vw, 50px)/1.1 var(--font); letter-spacing: -.03em; color: var(--ink); }
@media (min-width: 720px) { .h1 { font-size: clamp(28px, 4vw, 50px); } }
.h1-line { display: block; }
/* Пилюли под H1 (владелец 16.10.2026): серые плоские — просто факт; та, что
   нажимается («Аврора и ГудОк»), — белая объёмная `vol`, как пилюли подбора.
   На 375 px — не больше двух строк. */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (min-width: 720px) { .hero-pills { margin-top: 20px; } }
.pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
  border-radius: 999px; background: rgba(26, 26, 46, .06);
  font: 600 14px/1.2 var(--font); color: var(--ink); white-space: nowrap;
}
.pill.vol { border-radius: 999px; background: var(--glass-white); }
.pill.vol:hover, .pill.vol:focus-visible { color: var(--pink-ink); }
.pill--sm { min-height: 30px; padding: 0 12px; font-size: 13.5px; }
.hero .lead { margin-top: 14px; max-width: 44ch; font-size: 17px; line-height: 1.5; }
@media (min-width: 720px) { .hero .lead { font-size: 19px; margin-top: 18px; } }
/* Кнопка первого экрана задаёт общий стиль розовых действий. */
.hero-ask { margin-top: 18px; width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px 0 18px; }
.hero-ask .gbtn-text { display: inline; font: 600 15px/1 var(--font); letter-spacing: -.01em; }
/* Сцена «ИИгорь за работой» — широкая (3:2): занимает всю колонку, на
   телефоне стоит под кнопкой во всю ширину. */
.hero-art { display: flex; justify-content: center; align-items: flex-end; margin-top: 4px; }
.hero-art img, .hero-art video { width: min(100%, 640px); height: auto; display: block; }
/* Видео сцены непрозрачное, на цвете фона, с полями: 1/24 ширины кадра по
   бокам и 3/64 высоты сверху и снизу (кадр 960×640 → 1040×700,
   tools/hero_video.py — менять вместе). Поля растворяются маской, чтобы край
   не проступал поверх подсветки страницы, а само видео шире колонки ровно
   на них — сцена того же размера и на том же месте, что прежде. */
.hero-art .hero-video {
  --w: min(108.3333%, 693.33px);
  flex: none; max-width: none; width: var(--w);
  margin: calc(var(--w) * -30 / 1040) 0;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 3.846%, #000 96.154%, transparent),
    linear-gradient(180deg, transparent, #000 4.286%, #000 95.714%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 3.846%, #000 96.154%, transparent),
    linear-gradient(180deg, transparent, #000 4.286%, #000 95.714%, transparent);
  mask-composite: intersect;
}
@media (min-width: 720px) { .hero-art { margin-top: 0; } }
/* Низкий телефон (iPhone SE и похожие): сцена на пятую часть меньше, чтобы
   первый вопрос переписки выглядывал на первом экране (владелец 26.09). */
@media (max-width: 719px) and (max-height: 760px) {
  .hero-art img { width: min(80%, 640px); }
  .hero-art .hero-video { --w: min(86.6667%, 693.33px); }
}

/* ── Общее для блоков ── */
.section { padding: 40px 0; }
@media (min-width: 720px) { .section { padding: 64px 0; } }
.h2 {
  font: 700 clamp(23px, 6vw, 38px)/1.15 var(--display);
  letter-spacing: -.02em; color: var(--ink);
}
.h2--light { color: #fff; }
.lead { margin-top: 12px; max-width: 56ch; color: var(--muted); font-size: 16px; }
/* точки и часы в подводке первого экрана — полужирным и темнее (владелец 26.09) */
.lead b { font-weight: 600; color: var(--ink); }
@media (min-width: 720px) { .lead { font-size: 18px; margin-top: 16px; } }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 15px/1 var(--font); color: var(--pink-ink); text-decoration: none;
}
.link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.after { margin-top: 12px; }

/* Появление по прокрутке (site.js, владелец 25.09): вопросы, пузыри ответов
   и блоки после диалога проявляются из полупрозрачного состояния — не из
   пустоты — за .35 с. Гасит только класс .reveal на <html>, который ставит
   скрипт: без скрипта, без наблюдателя и при «уменьшить движение» всё видно
   сразу. Скрытое держит своё место — страница не прыгает. */
.dialog .rv, .dialog .msg--client, [data-reveal] { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.reveal .dialog .msg--client:not(.in),
.reveal .dialog .rv:not(.in),
.reveal [data-reveal]:not(.in) { opacity: .4; transform: translateY(10px); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--card-radius); box-shadow: var(--shadow-sm);
}

/* ── Диалог ── */
.dialog { padding: 28px 0 8px; }
@media (min-width: 720px) { .dialog { padding: 44px 0 16px; } }
/* Между темами — воздух, между вопросом и его ответом — вдвое меньше. */
.dialog-in { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 720px) { .dialog-in { gap: 64px; } }
.pair { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .pair { gap: 14px; } }
.msg { position: relative; }
/* Хвостики как в Телеграме: SVG того же цвета, что пузырь, прижат к
   нижнему углу; угол пузыря на стороне хвоста почти прямой. */
.msg--client, .bubble { position: relative; }
.msg--client::after, .bubble::after {
  content: ""; position: absolute; bottom: 0; width: 14px; height: 21px;
  background-repeat: no-repeat; background-size: 100% 100%;
}
/* Вопрос клиента: тёмный пузырь справа. Крупнее ответа — это его реплика.
   Вопрос и ответ — чуть крупнее обычного текста (владелец 09.10.2026). */
.msg--client {
  align-self: flex-end; max-width: min(88%, 600px);
  margin-right: 8px; padding: 12px 18px;
  border-radius: 22px 22px 3px 22px;
  background: var(--ink); color: #fff;
  font: 600 22px/1.3 var(--font); letter-spacing: -.01em;
  box-shadow: 0 8px 22px rgba(26, 26, 46, .16);
}
.msg--client::after {
  right: -13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 21'%3E%3Cpath d='M0 0c0 11 4.5 17.5 14 21H0z' fill='%231a1a2e'/%3E%3C/svg%3E");
}
@media (min-width: 720px) { .msg--client { font-size: 25px; padding: 14px 22px; } }

/* Ответ ИИгоря: ОДИН светлый пузырь слева, внутри реплика и графика.
   Ширина — по содержимому: короткая фраза узкая, прайс шире, точки и отзывы
   (.bubble--wide) и форма (.bubble--full) — во всю колонку. Рамок внутри
   пузыря нет: пузырь уже объединяет содержимое. */
.msg--iigor { display: flex; flex-direction: column; align-items: flex-start; }
.bubble {
  width: fit-content; max-width: 100%; min-width: min(100%, 300px);
  margin-left: 8px;
  padding: 14px 16px 16px; border-radius: 24px 24px 24px 3px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(26, 26, 46, .05), 0 6px 20px rgba(26, 26, 46, .07);
}
.bubble--wide, .bubble--full { width: 100%; }
/* «дешевле» с таблицей вариантов (владелец 26.09: «чуть шире»): шире обычного
   ответа, но не во всю колонку, как точки и отзывы */
.bubble--roomy { width: 100%; }
.bubble::after {
  left: -13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 21'%3E%3Cpath d='M14 0c0 11-4.5 17.5-14 21h14z' fill='%23ffffff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 2px rgba(26, 26, 46, .05));
}
/* Строка текста не длиннее ~60 знаков — так читается легче. */
.bubble-text { max-width: 60ch; font-size: 20px; line-height: 1.35; }
.bubble-text b { color: var(--ink); font-weight: 700; }
.bubble .cards { margin-top: 12px; }
/* пузырь без реплики — свежие отзывы (владелец 09.10.2026): карточки от верха */
.bubble > .carousel:first-child > .cards { margin-top: 0; }
@media (min-width: 720px) {
  .bubble { max-width: min(100%, 800px); padding: 18px 22px 20px; }
  .bubble--wide, .bubble--full { max-width: 100%; }
  .bubble--roomy { max-width: min(100%, 880px); }
  .bubble-text { font-size: 22px; }
  .bubble .cards { margin-top: 14px; }
  .bubble > .carousel:first-child > .cards { margin-top: 0; }
}
/* Карточки точек, площадок и отзывов внутри пузыря — мягкая плитка без
   рамки и тени. */
.bubble .card { background: var(--tile); border-color: transparent; box-shadow: none; }


/* Карточки: по --m в ряд на телефоне, по --d на широком. */
.cards { display: grid; grid-template-columns: repeat(var(--m, 2), minmax(0, 1fr)); gap: 8px; }
.cards--odd > .ci:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(var(--d, 3), minmax(0, 1fr)); gap: 12px; }
  .cards--odd > .ci:last-child:nth-child(odd) { grid-column: auto; }
}
.ci { min-width: 0; display: flex; }
.ci > * { flex: 1; min-width: 0; } /* иначе строка в одну линию распирает карточку за колонку */
.bubble .after { margin-top: 12px; padding: 0 4px; }

/* ── Графика ответов: одна типографика на все формы ──
   .fig-cap — подпись группы капителью, .fig-note — оговорка мелким, .rows —
   список «название … значение» с точечным отбивом и значением розовым,
   .picto — пиктограмма линией той же толщины, что значки. */
.fig { margin-top: 12px; }
.fig-cap { font: 600 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rows + .fig-cap { margin-top: 18px; }
.fig-note { margin-top: 12px; max-width: 52ch; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
@media (min-width: 720px) { .fig-note { font-size: 14px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.picto {
  width: 44px; height: 44px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.picto * { vector-effect: non-scaling-stroke; }

.rows { margin-top: 6px; max-width: 600px; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: inherit; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-name { font: 600 15.5px/1.3 var(--font); color: var(--ink); }
.row-sub { font-size: 14px; line-height: 1.3; color: var(--muted); }
.row-dots { flex: 1; min-width: 12px; height: 0; border-bottom: 2px dotted rgba(26, 26, 46, .22); transform: translateY(3px); }
.row-val {
  flex: none; font: 700 16px/1.1 var(--display); letter-spacing: -.01em;
  color: var(--pink); white-space: nowrap; font-variant-numeric: tabular-nums;
}
a.row:hover .row-name { color: var(--pink-ink); }
a.row:hover .row-val { color: var(--pink-hover); }
@media (min-width: 720px) {
  .row { padding: 12px 0; }
  .row-main { flex-direction: row; align-items: baseline; gap: 10px; }
  .row-name { font-size: 17px; }
  .row-sub { font-size: 15px; }
  .row-val { font-size: 19px; }
}

/* Устройства — белые объёмные карточки (владелец 25.09: «картинка справа,
   текст и количество устройств»): слева название и число моделей, справа
   рендер на мягком цветном пятне. По два в ряд на телефоне, по три шире. */
.devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.device {
  display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 100%; min-height: 88px;
  padding: 8px 4px 8px 12px; text-align: left;
}
.device:hover, .device:focus-visible { color: var(--pink-ink); }
.device-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.device-name { font: 700 15.5px/1.15 var(--font); letter-spacing: -.01em; }
.device-sub { font-size: 12.5px; line-height: 1.25; color: var(--muted); }
.device-sub--count { white-space: nowrap; }
/* Область под картинку одного размера: рендер из raw/devices/ (без обрезки)
   или пиктограмма, пока рендера нет; замена не двигает вёрстку. */
.device-art { position: relative; flex: none; width: 54px; height: 64px; display: grid; place-items: center; }
.devices .device-art::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle, #f8cde3 0, #fceaf3 38%, transparent 72%); }
.devices li:nth-child(3n+2) .device-art::before { background: radial-gradient(circle, #dce0fa 0, #f0f1fc 42%, transparent 72%); }
.devices li:nth-child(3n) .device-art::before { background: radial-gradient(circle, #dbeeea 0, #edf7f4 42%, transparent 72%); }
.device-art img, .device-art .picto { position: relative; z-index: 1; }
.device-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(26, 26, 46, .16)); }
.device-art .picto { width: 36px; height: 36px; }
@media (min-width: 720px) {
  .devices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
  .device { min-height: 112px; padding: 10px 10px 10px 20px; }
  .device-name { font-size: 18px; }
  .device-sub { font-size: 14px; }
  .device-art { width: 96px; height: 96px; }
  .device-art .picto { width: 44px; height: 44px; }
}

/* Подбор ремонта в ответе «Починим!» (владелец 04.10.2026, assets/picker.js):
   поиск модели сверху, выбранные ступени — белыми пилюлями с розовым кольцом
   (выбранное на сайте — кольцо, не рамка и не тёмная заливка), варианты
   ступени — такими же пилюлями без кольца, модели — плитками с фото, ремонты —
   карточками «Что сломалось?». Пилюля — `vol`: всё нажимаемое — белая
   объёмная поверхность. */
.cat-search.rp-search { max-width: none; margin-top: 12px; }
/* фраза «Починим! …» — во всю ширину пузыря подбора (владелец 04.10.2026) */
.bubble:has(.rp) .bubble-text { max-width: none; }
/* «Починим! Выбирайте» и поиск — одной строкой (владелец 09.10.2026), и на
   телефоне тоже: там «Починим!» и «Выбирайте» друг под другом, поле узкое —
   лупа ближе к краю, шрифт 16 px (мельче iOS увеличивает страницу при вводе),
   подсказка короткая (`data-ph-short`, picker.js). */
.rp-head { display: flex; align-items: center; gap: 20px; }
.rp-head .bubble-text { flex: none; }
.rp-head .rp-search { flex: 1 1 0; min-width: 0; margin-top: 0; }
@media (max-width: 719px) {
  .rp-head { gap: 10px; }
  .rp-head .bubble-text { line-height: 1.2; }
  .rp-head .bubble-text b { display: block; }
  .rp-head .rp-search .icon { left: 11px; }
  .rp-head .rp-search input { padding: 0 8px 0 36px; font-size: 16px; }
}
.rp-search input { flex: 1; }
.rp-find { flex: none; margin-right: 6px; }
/* Первая ступень компактно (владелец 04.10, 1а): рендер сверху, название под
   ним, без числа моделей; по три в ряд на телефоне, все шесть — на ПК.
   Рендер крупный (владелец 16.10): квадрат во всю ширину плитки, но не больше
   76 px на телефоне и 104 px на ПК — WebP 312 px хватает на тройную плотность. */
.rp .devices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rp .device { flex-direction: column-reverse; justify-content: center; align-items: center; gap: 6px; min-height: 0; padding: 10px 4px 12px; text-align: center; }
.rp .device-art { width: min(100%, 76px); height: auto; aspect-ratio: 1; }
.rp .device-name { font-size: 14.5px; }
/* ремонт, который назвал ИИгорь по словам посетителя, — с розовым кольцом */
.gcard.is-hit { box-shadow: 0 0 0 3px var(--pink-glow), var(--action-white-shadow); }
/* Пилюли подбора крупные (владелец 16.10.2026): брендов на ступени не больше
   десяти — популярные и «Другие бренды», picker.js: split */
.rp-path, .rp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rp-pill {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 18px;
  border-radius: 999px; font: 600 16px/1.2 var(--font); white-space: nowrap;
}
.rp-pill:hover, .rp-pill:focus-visible { color: var(--pink-ink); }
.rp-pill.is-on { box-shadow: 0 0 0 3px var(--pink-glow), var(--action-white-shadow); }
.rp-step .rp-pills + .mtiles { margin-top: 12px; }
.rp-step > .mtiles:first-child { margin-top: 12px; }
/* «Более старые модели — N» под плитками длинной линейки */
.rp-older { margin-top: 12px; }
.rp-title { margin-top: 16px; font: 700 17px/1.2 var(--font); color: var(--ink); }
/* ответ ИИгоря под строкой поиска страницы модели — тем же заголовком над карточками */
.rp-msg .rp-reply { margin-top: 14px; }
.rp-repairs .rcards { margin-top: 10px; }
.rp-note { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rp-note p { max-width: 46ch; color: var(--muted); }
.rp-more { margin-top: 10px; font-size: 14px; color: var(--muted); }
.devices.is-loading { cursor: progress; opacity: .7; }
/* нажатая плитка, пока ждём ремонты модели (до 0,4 с, picker.js: soon) */
.is-busy { cursor: progress; opacity: .7; }
/* Раздел: модель раскрыла ремонты на месте блока моделей (picker.js) */
.rp-picked { margin-top: 16px; }
.rp-picked > .rp-path:first-child { margin-top: 0; }
@media (min-width: 720px) {
  .rp-picked { margin-top: 20px; } /* как у .mgroups: ремонты встают ровно на место плиток */
  .rp-path, .rp-pills { gap: 10px; }
  .rp-pill { min-height: 48px; padding: 0 22px; font-size: 17px; }
  .rp-title { font-size: 19px; margin-top: 20px; }
  .rp .devices { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .rp .device { min-height: 0; gap: 8px; padding: 14px 8px 16px; }
  .rp .device-art { width: min(100%, 104px); }
  .rp .device-art .picto { width: 44px; height: 44px; }
  .rp .device-name { font-size: 17px; }
}

/* «Не тороплюсь, записаться» под строкой «Если не торопитесь» (владелец 25.09). */
.way-btn { margin-top: 10px; white-space: nowrap; }
/* телефон: рядом с рисунком кнопке тесно — от левого края пузыря, как лестница цен */
@media (max-width: 559px) { .way-btn { margin-left: calc(-1 * (var(--art) + 14px)); } }

/* «Сколько будет стоить и долго ли ждать?» одним блоком (владелец 25.09: всё
   нажимаемое — белые объёмные карточки): три карточки в один ряд и на
   телефоне (владелец 09.10.2026) — дисплей и аккумулятор, те же `gcard rcard`,
   что «Что сломалось?» на странице модели, третья — фото телефона и «Все
   ремонты». На телефоне плитка столбиком: рисунок сверху, подписи по центру;
   «Аккумулятор» на 320 px переносится по слогам. */
.pricecard .rcards { --brk: 44px; }
.pricecard .pc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.pricecard .rcard { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 10px 3px 12px; font: inherit; text-align: center; }
.pricecard .gcard-text { align-items: center; }
.pricecard .gcard-text b { font-size: 14px; hyphens: auto; overflow-wrap: break-word; }
.pricecard .gcard-text span { font-size: 12.5px; white-space: normal; }
.pricecard .gcard-text .rcard-price { font-size: 12.5px; }
.pc-art { width: var(--brk); height: var(--brk); flex: none; display: flex; align-items: center; justify-content: center; }
.pc-art img { width: 100%; height: 100%; object-fit: contain; }
.pc-art .picto { width: 28px; height: 28px; color: var(--muted); }
@media (min-width: 720px) {
  .pricecard .rcards { --brk: 52px; }
  .pricecard .pc-cards { gap: 12px; margin-top: 14px; }
  .pricecard .rcard { flex-direction: row; gap: 10px; padding: 8px 14px 8px 8px; text-align: left; }
  .pricecard .gcard-text { align-items: flex-start; }
  .pricecard .gcard-text b { font-size: 17px; }
  .pricecard .gcard-text span { font-size: 14px; white-space: nowrap; }
  .pricecard .gcard-text .rcard-price { font-size: 15px; }
}

/* Рисунок поломки: простая серая форма и один розовый смысловой акцент. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brk {
  width: var(--brk, 44px); height: var(--brk, 44px); flex: none; overflow: visible;
  color: #858594; stroke: var(--pink); fill: none; stroke-width: 2.3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Ответ строками с рисунком — «дешевле», «данные», «гарантия»: рисунок в
   колонке --art (та же ось, что в блоке цены), заголовок, текст; под
   текстом — фишка блока: лестница цен (на телефоне — на всю ширину пузыря)
   или кнопка; под строками — кнопки блока: главная розовая первой, дальше
   белые (у гарантии — «Обратиться по гарантии» и «Условия гарантии»). */
.ways { --art: 64px; --brk: 44px; display: grid; margin-top: 12px; max-width: 640px; }
.way { display: grid; grid-template-columns: var(--art) minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 12px 0; }
.way + .way { border-top: 1px solid var(--line); }
.way .brk { justify-self: center; }
.way-title { font: 700 17px/1.3 var(--font); color: var(--ink); }
.way-text { margin-top: 3px; font-size: 16px; line-height: 1.45; color: var(--ink); }
@media (min-width: 720px) {
  .ways { --art: 72px; --brk: 48px; }
  .way-title { font-size: 18px; }
  .way-text { font-size: 17px; }
}

/* Лестница цен: узкие невысокие столбики по высоте цены (--k — доля от
   самой дорогой), цена над столбиком, название под ним. «Цена + столбик»
   одной высоты у всех — основания на одной линии. Столбики одного цвета:
   ничего не рекомендуем, выбирает клиент. */
.ladder { --ladder-h: 52px; display: flex; gap: 20px; margin-top: 12px; }
.rung { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; }
.rung-top { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: calc(var(--ladder-h) + 24px); }
.rung-price { margin-bottom: 6px; font: 700 14px/1.1 var(--display); letter-spacing: -.01em; color: var(--pink); white-space: nowrap; }
.rung-bar {
  display: block; width: 32px; height: calc(var(--k, 1) * var(--ladder-h));
  border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--pink), #f3a5c9);
  transition: transform .2s var(--ease);
}
.rung:hover .rung-bar { transform: scaleY(1.04); transform-origin: bottom; }
.rung-name { margin-top: 7px; font: 600 14px/1.2 var(--font); color: var(--ink); }
/* Телефон: справа от рисунка три цены не помещаются — лестница идёт на всю
   ширину пузыря, от левого края колонки рисунков. */
@media (max-width: 559px) {
  .way .ladder { margin-left: calc(-1 * (var(--art) + 14px)); gap: 16px; }
}
.ways-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
/* окно «Условия гарантии» */
.wr-body { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.wr-body p + p { margin-top: 8px; }
.wr-body .wr-sub { margin-top: 14px; font-weight: 600; }
.wr-list { margin: 6px 0 0; padding-left: 18px; list-style: disc; color: var(--muted); }
.wr-list li + li { margin-top: 4px; }
.wr-body .wr-note { margin-top: 12px; color: var(--muted); }
.wr-ask { margin-top: 18px; }
@media (min-width: 720px) {
  .ladder { --ladder-h: 60px; gap: 32px; }
  .rung-bar { width: 40px; }
  .rung-price { font-size: 16px; }
  .rung-name { font-size: 15px; }
}

/* Точки: название ТЦ, ориентир, три действия — трубка, самолётик, страница */
.place { display: flex; flex-direction: column; padding: 14px 12px 12px; }
.place-kind { font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.place-name { font: 700 17px/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.place-where { margin-top: 8px; font: 500 14px/1.3 var(--font); color: var(--ink); }
.place-address { margin-top: 7px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.place-address + .place-where { margin-top: 3px; }
.place-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; }
.ibtn {
  width: 42px; height: 42px; border-radius: var(--action-radius); flex: none;
  display: grid; place-items: center;
  background: var(--glass-white); color: var(--ink); text-decoration: none;
  border: 0;
  box-shadow: var(--action-white-shadow);
  transition: transform .15s, background .2s, box-shadow .2s;
}
.ibtn:hover { background: rgba(255, 255, 255, .86); box-shadow: 0 10px 24px rgba(26, 26, 46, .16); }
.ibtn--pink { background: var(--glass-pink); color: #fff; box-shadow: var(--action-primary-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ibtn--pink:hover { background: var(--glass-pink-hover); }
.ibtn:active { transform: scale(.94); }
.ibtn .icon { width: 20px; height: 20px; }
.place-more { flex: 1 1 100%; height: 42px; padding: 0 10px; font-size: 13.5px; gap: 6px; }
@media (min-width: 720px) {
  .place { padding: 22px 22px 20px; }
  .place-name { font-size: 22px; }
  .place-where { margin-top: 10px; font-size: 16.5px; }
  .place-actions { gap: 10px; padding-top: 18px; }
  .ibtn { width: 46px; height: 46px; }
  .place-more { flex: 1 1 auto; height: 46px; font-size: 15px; gap: 8px; }
}

/* Последняя реплика: «Остались вопросы?» и форма. На широком экране —
   заголовок слева, форма справа. */
/* не крупнее H1 и на глаз (владелец 16.10.2026): Unbounded шире Onest, поэтому
   на телефоне 22 px против 28 у H1; с 720 px H1 — 4vw, а 6,6vw обгонял его до 900 px */
.bubble-title { padding: 2px 8px 0; font: 700 clamp(22px, 5.8vw, 36px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
@media (min-width: 720px) { .bubble-title { font-size: clamp(24px, 3.6vw, 36px); } }
.ask-head .bubble-text { margin-top: 6px; }
.ask-body { margin-top: 14px; padding: 0 2px; }
@media (min-width: 900px) {
  .lead-form--ask { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; padding: 26px 26px 24px; }
  .ask-body { margin-top: 0; }
}

/* Отзывы: площадки с оценкой — сеткой; свежие отзывы — лентой вбок на
   телефоне и тремя колонками на широком. */
.plat { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 11px; text-decoration: none; color: inherit; }
.plat-name { font: 700 14px/1.2 var(--font); color: var(--ink); }
.plat-point { font-size: 12.5px; line-height: 1.2; color: var(--muted); }
.plat-score { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.plat-score b { font: 800 24px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.plat-score .star { width: 20px; height: 20px; fill: #f5b425; stroke: none; }
.plat-count { font-size: 12.5px; color: var(--muted); }
@media (min-width: 720px) {
  .plat { padding: 16px 16px 15px; }
  .plat-name { font-size: 15.5px; }
  .plat-point { font-size: 13.5px; }
  .plat-score b { font-size: 30px; }
  .plat-score .star { width: 24px; height: 24px; }
  .plat-count { font-size: 13.5px; }
}
.cards--scroll {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-left: -10px; margin-right: -10px; padding: 0 10px 4px; scroll-padding: 0 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cards--scroll::-webkit-scrollbar { display: none; }
.cards--scroll > .ci { flex: 0 0 84%; scroll-snap-align: start; }
/* ПК и планшет — карусель (владелец 25.09): та же лента, но карточек в окне
   две (планшет) или три (ПК), стрелки по бокам листают по одной. */
@media (min-width: 720px) {
  .cards--scroll { gap: 12px; margin: 0; padding: 0 0 4px; scroll-padding: 0; }
  .cards--scroll > .ci { flex: 0 0 calc((100% - 12px) / 2); }
}
@media (min-width: 1000px) {
  .cards--scroll > .ci { flex-basis: calc((100% - 24px) / 3); }
}
.carousel { position: relative; }
.cards--scroll:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 12px; }
.car-btn {
  position: absolute; top: calc(50% - 22px); z-index: 1;
  width: 44px; height: 44px; border-radius: var(--action-radius); padding: 0;
  display: none; place-items: center;
  border: 0; background: var(--glass-white); color: var(--ink);
  box-shadow: var(--action-white-shadow); cursor: pointer;
  transition: background .15s, color .15s, opacity .15s, transform .15s;
}
.car-btn .icon { width: 20px; height: 20px; }
.car-prev { left: -22px; }
.car-prev .icon { transform: scaleX(-1); }
.car-next { right: -22px; }
.car-btn:hover { color: var(--pink-ink); background: rgba(255, 255, 255, .86); }
.car-btn:active { transform: scale(.95); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 720px) { .car-btn:not([hidden]) { display: grid; } }
.rev { display: flex; flex-direction: column; padding: 14px 14px 12px; margin: 0; }
.rev-by { display: flex; align-items: center; gap: 10px; }
.rev-ava {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-ink);
  font: 700 15px/1 var(--display);
}
.rev-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rev-who b { font: 700 15px/1.2 var(--font); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rev-meta .stars { display: inline-flex; gap: 1px; }
.rev-meta .star { width: 12px; height: 12px; fill: #f5b425; stroke: none; }
.rev-text {
  margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
}
.rev.open .rev-text { -webkit-line-clamp: unset; display: block; }
.rev-more { align-self: flex-start; margin-top: 6px; }

/* Окно «Куда написать?» — только когда есть ссылки на мессенджеры */
.msg-list { display: grid; gap: 8px; margin-top: 16px; }
.btn-msg { justify-content: flex-start; height: 52px; }

/* ── Кнопки: фирменная розовая и спокойная белая пилюли ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border: 0; border-radius: var(--action-radius);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 20px; height: 20px; }
.btn .action-arrow { width: 16px; height: 16px; stroke-width: 2; }
/* Та же сплошная заливка и тень, что у «Спросить мастера». */
.btn-pink {
  background: var(--glass-pink); color: #fff;
  box-shadow: var(--action-primary-shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.btn-pink:hover { background: var(--glass-pink-hover); box-shadow: 0 8px 18px rgba(26, 26, 46, .18); }
.btn-pink:active { box-shadow: 0 2px 6px rgba(26, 26, 46, .14); }
.btn-pink:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pink-ink); }
.btn-white {
  background: var(--glass-white); color: var(--ink); border: 0;
  box-shadow: var(--action-white-shadow);
}
.btn-white:hover { background: rgba(255, 255, 255, .86); box-shadow: 0 10px 24px rgba(26, 26, 46, .16); }
.btn-sm { height: 46px; padding: 0 14px; font-size: 15px; gap: 8px; }
.btn-sm .icon { width: 18px; height: 18px; }
.btn-wide { width: 100%; }

/* ── Кабинет: тёмная карточка ── */
.band {
  display: grid; gap: 24px;
  padding: 26px 20px; border-radius: var(--r-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(225, 80, 150, .28), transparent 70%),
    var(--ink);
  color: #fff;
  box-shadow: 0 24px 60px rgba(26, 26, 46, .22);
}
@media (min-width: 900px) {
  .band { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 44px 48px; }
}
.band-text p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .74); max-width: 48ch; }
@media (min-width: 720px) { .band-text p { font-size: 17px; } }
.band .btn { margin-top: 22px; }
.order-mock {
  padding: 18px; border-radius: var(--r);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}
@media (min-width: 720px) { .order-mock { padding: 24px; } }
.om-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .6); }
.om-tag { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.om-device { margin-top: 12px; font: 700 20px/1.2 var(--display); }
.om-repair { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.om-steps { display: flex; margin: 20px 0 4px; }
.om-step { position: relative; flex: 1; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.om-step::before {
  content: ""; position: relative; z-index: 1; display: block;
  width: 14px; height: 14px; margin: 0 auto 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}
.om-step::after {
  content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px;
  background: rgba(255, 255, 255, .2);
}
.om-step:first-child::after { display: none; }
.om-step.done::before, .om-step.done::after { background: var(--pink); }
.om-step.now::before { box-shadow: 0 0 0 5px rgba(225, 80, 150, .3); }
.om-status {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(225, 80, 150, .16); font-weight: 600; font-size: 15px;
}
.om-status .icon { width: 18px; height: 18px; color: var(--pink); stroke-width: 2.4; }
.om-ticket {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .25);
  font-size: 13.5px; color: rgba(255, 255, 255, .78);
}
.om-ticket .icon { width: 18px; height: 18px; color: var(--pink); }

/* ── О компании — статья «Что мы узнали за N ремонтов» (владелец 26.09):
   вид статьи модели (.art), у подводки и глав — маскоты-рассказчики. Фигурка
   стоит у края и смотрит на текст, строки обтекают её по контуру
   (shape-outside по той же картинке). На телефоне тоже сбоку, небольшая
   (владелец: «чтоб на мобилке фото не было во всю строку»), графики — под
   ней; шире — графики встают рядом с фигуркой. Глава держит свою фигурку
   (flow-root), в соседнюю она не заезжает. ── */
.section--about.art .wrap > * { max-width: 940px; }
.section--about .art-intro, .section--about .art-ch { display: flow-root; }
.art-guide { width: 112px; height: auto; shape-image-threshold: .4; shape-margin: 8px; }
.art-guide--left { float: left; margin: 6px 10px 6px -8px; }
.art-guide--right { float: right; margin: 6px -8px 6px 10px; }
.art-intro .art-guide { width: 104px; }
.section--about .art-fig, .section--about .art-pair-box { clear: both; }
@media (min-width: 720px) {
  .art-guide { width: 190px; shape-margin: 14px; }
  .art-guide--left { margin: 0 18px 8px -12px; }
  .art-guide--right { margin: 0 -12px 8px 18px; }
  .art-intro .art-guide { width: 140px; }
  .section--about .art-fig, .section--about .art-pair-box { clear: none; display: flow-root; }
}
@media (min-width: 1000px) { .art-guide { width: 210px; } .art-intro .art-guide { width: 150px; } }
/* столбики по годам — столько колонок, сколько лет; два топа моделей рядом */
.cols.cols--years { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.art-pair { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .art-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* в половинной карточке полоса под подписью, как на телефоне, — иначе ей не хватает места */
.art-pair .bars-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; }

/* На телефоне (владелец 25.09): пока видна кнопка первого экрана, три круглые
   кнопки стоят вверху, в строке со знаком; когда появляется «Спросить»
   (site.js ставит .is-low), вся группа переезжает к нижнему краю и плавает
   там отдельными кнопками. Без скрипта «Спросить» видна всегда — группа внизу.
   Меню звонка — во всю ширину: вверху раскрывается вниз, внизу — вверх. */
@media (max-width: 719px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .hbtns.is-low, html:not(.js) .hbtns {
    top: auto; bottom: calc(8px + env(safe-area-inset-bottom));
    left: 12px; right: 12px; justify-content: center; gap: 8px;
    padding: 0; border: 0; background: none; box-shadow: none;
  }
  .hbtns.is-low { animation: hbtns-rise .22s var(--ease); }
  .hbtns.was-low:not(.is-low) { animation: hbtns-drop .22s var(--ease); }
  .hbtns .gbtn { width: 46px; height: 46px; }
  .hbtns .gbtn--ask { width: auto; max-width: calc(100vw - 190px); padding: 0 12px; }
  .hbtns .gbtn--ask .gbtn-text--short { overflow: hidden; text-overflow: ellipsis; }
  .callmenu {
    position: fixed; top: calc(env(safe-area-inset-top) + 70px); bottom: auto;
    left: 12px; right: 12px; width: auto; min-width: 0; max-width: 420px; margin: 0 auto;
    gap: 0; padding: 6px;
  }
  .hbtns.is-low .callmenu, html:not(.js) .callmenu { top: auto; bottom: calc(62px + env(safe-area-inset-bottom)); }
  .callmenu-item { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
  .callmenu-item + .callmenu-item { border-top: 1px solid var(--line); }
  .callmenu-item b { font-size: 14px; white-space: nowrap; }
  .callmenu-item span { font-size: 13px; white-space: nowrap; }
  .cards:has(.place) { grid-template-columns: 1fr; }
  .place { padding: 16px; }
  .place-more { flex-basis: auto; min-width: 0; }
  .place-actions { flex-wrap: nowrap; }
  .place-more { font-size: 14px; white-space: nowrap; }
}
@keyframes hbtns-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hbtns-drop { from { opacity: 0; transform: translateY(-14px); } }
@media (max-width: 359px) {
  .hbtns.is-low, html:not(.js) .hbtns { left: 6px; right: 6px; gap: 4px; }
  .callmenu { left: 6px; right: 6px; }
  .hbtns .gbtn { width: 42px; height: 42px; }
  .hbtns .gbtn--ask { width: auto; }
}

/* Три цены должны полностью помещаться и на узком телефоне. */
@media (max-width: 559px) {
  .way .ladder { margin-left: 0; display: grid; gap: 0; width: 100%; }
  .rung { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 0; }
  .rung + .rung { border-top: 1px solid var(--line); }
  .rung-top { display: contents; }
  .rung-price { grid-column: 2; grid-row: 1; margin: 0; font-size: 15px; }
  .rung-name { grid-column: 1; grid-row: 1; margin: 0; }
  .rung-bar { display: none; }
}

/* ── Подвал: фото команды, стеклянная карточка, рейтинг ── */
.footer {
  position: relative; margin-top: 40px; padding: 56px 0 28px;
  color: rgba(255, 255, 255, .78);
  background:
    linear-gradient(180deg, rgba(26, 26, 46, .5) 0%, rgba(26, 26, 46, .82) 100%),
    var(--footer-bg) center 35% / cover no-repeat,
    var(--ink);
}
@media (min-width: 720px) { .footer { padding: 88px 0 36px; } }
.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  width: fit-content; max-width: 100%; margin: 0 auto 18px;
  padding: 10px 16px; border-radius: 22px;
  background: rgba(26, 26, 46, .5); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.stars { display: inline-flex; gap: 2px; color: #f5b425; }
.star { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.star.is-empty { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .55; }
.rating-num { font-size: 14px; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.rating-num strong { font: 700 18px/1 var(--display); color: #fff; }
.rating-src { display: inline-flex; gap: 6px; }
.rating-src a {
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; text-decoration: none;
  background: rgba(255, 255, 255, .1); color: #fff;
}
.rating-src a:hover { background: rgba(255, 255, 255, .2); }
.footer-card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px;
  padding: 26px 20px; border-radius: 24px;
  background: rgba(20, 16, 34, .55);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.footer-brand { grid-column: 1 / -1; }
.brand--light { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 34ch; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.footer-brand .ft-hours { margin-top: 6px; color: #fff; font-weight: 600; }
.footer h3 { margin-bottom: 10px; font: 700 14px/1.2 var(--font); color: #fff; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255, 255, 255, .68); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col .ft-phone { padding-top: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 18px; padding: 0 4px;
  font-size: 12.5px; color: rgba(255, 255, 255, .55);
}
@media (min-width: 900px) {
  .footer-card { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 44px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; padding: 0 44px; }
}

/* ── Окна: снизу на телефоне, по центру на широком ── */
.sheet {
  width: 100%; max-width: 520px; max-height: 90vh; max-height: 90dvh;
  overflow: auto; overscroll-behavior: contain;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--surface); color: var(--text);
  box-shadow: 0 -12px 40px rgba(26, 26, 46, .22);
}
.sheet[open] { animation: sheet-up .3s var(--ease); }
.sheet::backdrop { background: rgba(26, 26, 46, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes sheet-up { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .sheet { margin: auto; border-radius: 26px; } }
.sheet-in { padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet-grip { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--line-2); }
@media (min-width: 720px) { .sheet-grip { display: none; } .sheet-in { padding: 24px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
/* окна с формой и «Куда написать?» — заголовок одной фразой, без пояснения под
   ним (владелец 04.10: «много текста мало кто читает»), крестик по центру его
   строки; у вопроса в частых вопросах заголовок бывает в три строки — там
   крестик сверху */
.lead-form .sheet-head, #write .sheet-head { align-items: center; }
.sheet-title { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.sheet-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.sheet-close { flex: none; }
.pt { margin-top: 14px; padding: 14px; border-radius: var(--card-radius); background: var(--surface-2); border: 1px solid var(--line); }
.pt-name { font: 700 17px/1.25 var(--font); }
.pt-where { margin-top: 3px; font-size: 14.5px; color: var(--ink); }
.pt-addr { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
/* «Где мы»: мастерская целиком — ссылка на её страницу. */
.pt-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.pt-link:hover, .pt-link:focus-visible { background: #fff; }
.pt-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pt-go { flex: none; }
@media (max-width: 400px) { .pt-link { flex-direction: column; align-items: stretch; } .pt-go { margin-top: 10px; } }
.pt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pt-phone { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* Формы: поля одной группой с тонкими разделителями (как в настройках
   iOS), способ связи — сегментный переключатель, своя галочка согласия.
   Ширина полей задана явно: WebKit не растягивает поля ввода в сетке сам, и
   на айфоне форма «разъезжалась»; стиль iOS по умолчанию сброшен. */
.lead-fields { display: grid; gap: 12px; margin-top: 16px; }
.ask-body .lead-fields { margin-top: 0; }
.fgroup {
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.fgroup:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-glow); }
.fgroup input, .fgroup textarea {
  display: block; width: 100%; min-width: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  padding: 0 16px; color: var(--ink);
  font: 500 17px/1.3 var(--font); outline: none;
}
.fgroup input { height: 52px; }
.fgroup textarea { padding: 14px 16px; min-height: 76px; resize: none; line-height: 1.4; }
/* разделитель между полями — после сброса рамок, иначе он сбрасывается тоже */
.fgroup input + input, .fgroup input + textarea, .fgroup textarea + input { border-top: 1px solid var(--line); }
/* Комментарий окна записи: одна строка, пока пусто, растёт по тексту — вопрос
   «Уточнить цену ремонта: …» виден целиком (владелец 04.10.2026, site.js) */
.fgroup textarea.book-comment { min-height: 52px; padding: 15px 16px 14px; line-height: 1.35; overflow: hidden; }
.fgroup input::placeholder, .fgroup textarea::placeholder { color: var(--faint); font-weight: 400; opacity: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Поле с постоянной подписью над рамкой (окно «Что у вас случилось?»):
   в поле — пример вопроса, подпись не пропадает, когда пример уступил тексту. */

.seg-wrap { display: grid; gap: 7px; }
.seg-label { padding: 0 4px; font: 600 13px/1.2 var(--font); color: var(--muted); }
.seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
  padding: 3px; border-radius: 14px; background: #efebf2;
}
.seg-opt { position: relative; display: block; min-width: 0; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 6px; border-radius: 11px;
  font: 600 14.5px/1 var(--font); color: var(--muted); white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg-opt input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(26, 26, 46, .14); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 1px; }

.consent { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 0 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; left: 2px; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.consent-box {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); background: #fff; color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.consent-box .icon { width: 15px; height: 15px; stroke-width: 3; }
.consent input:checked + .consent-box { background: var(--pink); border-color: var(--pink); color: #fff; }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--pink); outline-offset: 2px; }
.consent a { color: var(--pink-ink); }
.lead-fields .btn-wide { margin-top: 2px; }
.lead-error { padding: 10px 14px; border-radius: 12px; background: #fff0f0; color: #a3232f; font-size: 14px; }
.lead-offline { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--pink-soft); font-size: 15px; line-height: 1.45; color: var(--ink); }
.lead-done { text-align: center; padding: 20px 0 8px; }
.lead-done-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink-soft); color: var(--pink);
}
.lead-done-ico .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.lead-done p { margin-top: 6px; color: var(--muted); }
.lead-call { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.lead-call .lead-offline { margin-bottom: 12px; }
/* телефоны точек под чертой — без подписи «Или позвоните:» (владелец 04.10) */
.lead-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

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

/* ── «А если после ремонта опять сломается?» (владелец 16.10.2026): крупно
   срок гарантии, строкой обещание, условия — в окне по кнопке. ── */
.promise-big { padding: 2px 8px 0; font: 700 clamp(20px, 5.6vw, 22px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.promise-line { margin-top: 6px; padding: 0 8px; font-size: 18px; line-height: 1.35; }
.bubble .promise-line + .ways-btns { margin-top: 14px; }
@media (min-width: 720px) {
  .promise-big { font-size: clamp(22px, 2.6vw, 30px); }
  .promise-line { font-size: 20px; }
}

/* ── Оценки площадок одной строкой (владелец 16.10.2026) ── */
/* одна строка и на 320 px: оценка, число оценок и две маленькие пилюли */
.rate-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; padding: 0 2px; }
.rate-score { display: inline-flex; align-items: center; gap: 3px; }
.rate-score b { font: 800 17px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.rate-score .star { width: 15px; height: 15px; fill: #f5b425; stroke: none; }
.rate-count { font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.rate-line .pill--sm { min-height: 28px; padding: 0 9px; font-size: 12.5px; }
@media (min-width: 720px) {
  .rate-line { gap: 8px; }
  .rate-score b { font-size: 22px; }
  .rate-score .star { width: 20px; height: 20px; }
  .rate-count { font-size: 17px; }
  .rate-line .pill--sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
}

/* ── Три цифры статистики на главной и «Вся статистика» (владелец 16.10.2026;
   статья — /statistika/). Информация — плоско, нажимается только кнопка. ── */
/* на телефоне — строками «20 184 ремонта», на широком — три колонки */
.stat-teaser { padding: 8px 0 24px; }
.stat-nums { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stat-nums li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.stat-big { font: 700 clamp(20px, 5.6vw, 22px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.stat-small { font-size: 16px; line-height: 1.3; color: var(--muted); }
.stat-link { margin-top: 18px; }
@media (min-width: 720px) {
  .stat-teaser { padding: 16px 0 40px; }
  .stat-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .stat-nums li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stat-big { font-size: clamp(22px, 2.6vw, 34px); }
  .stat-small { font-size: 16px; }
}

/* ── Разделы ремонта (lib/catalog.py, владелец 25.09.2026: каталог без
   переписки). Первый экран: путь по сайту, H1 крупно, подводка, та же
   розовая «Спросить мастера», что на главной, рендер устройства справа; на
   телефоне рендер небольшой — справа от заголовка, чтобы модели были
   ближе. Ниже блоки обычными секциями: модели кнопками, цены строками,
   вопросы раскрываются, точки — карточками главной. ── */
.cat-hero { padding: 6px 0 0; }
.cat-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 88px; column-gap: 12px;
  grid-template-areas: "crumbs crumbs" "title art" "body body";
}
.crumbs { grid-area: crumbs; margin-bottom: 10px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink-ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.cat-h1 { grid-area: title; align-self: center; min-width: 0; font: 700 clamp(25px, 6.6vw, 46px)/1.12 var(--display); letter-spacing: -.025em; color: var(--ink); }
.cat-hero-body { grid-area: body; min-width: 0; }
.cat-hero .lead { margin-top: 12px; max-width: 52ch; font-size: 16px; line-height: 1.5; }
.cat-hero .hero-ask { margin-top: 18px; }
.cat-hero-art { grid-area: art; align-self: start; display: flex; justify-content: center; }
.cat-hero-art img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(26, 26, 46, .16)); }
@media (min-width: 720px) {
  .cat-hero { padding: 14px 0 0; }
  .cat-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-rows: auto auto 1fr; column-gap: 40px;
    grid-template-areas: "crumbs art" "title art" "body art";
  }
  .cat-h1 { align-self: end; }
  .crumbs { margin-bottom: 16px; }
  .cat-hero .lead { font-size: 18px; margin-top: 16px; }
  .cat-hero-art { grid-row: 1 / 4; align-self: center; }
}
@media (min-width: 1000px) { .cat-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); } }

.cat-section { padding: 32px 0 0; }
.cat-section:last-child { padding-bottom: 48px; }
@media (min-width: 720px) { .cat-section { padding-top: 56px; } .cat-section:last-child { padding-bottom: 72px; } }
.cat-sub { margin-top: 8px; max-width: 60ch; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (min-width: 720px) { .cat-sub { font-size: 17px; margin-top: 10px; } }

/* Поиск модели: одно поле в стиле форм сайта, значок лупы внутри. */
.cat-search {
  position: relative; display: flex; align-items: center; max-width: 420px; margin-top: 16px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.cat-search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-glow); }
.cat-search .icon { position: absolute; left: 14px; color: var(--faint); pointer-events: none; }
.cat-search input {
  width: 100%; min-width: 0; height: 50px; margin: 0; padding: 0 16px 0 44px;
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 16px; background: transparent;
  font: 500 17px/1.3 var(--font); color: var(--ink); outline: none;
}
.cat-search input::placeholder { color: var(--faint); font-weight: 400; opacity: 1; }

/* Модели (владелец 25.09): группы карточками сверху — фото самой новой
   модели, название, число моделей; нажал — под сеткой открываются её модели
   плитками с фото (или пиктограммой). Те же карточки — бренды на странице
   Android. Без скрипта видны все группы подряд с подписями; со скриптом
   (.is-tabs) — только открытая, при поиске (.is-searching) карточки уходят и
   видны все совпадения. */
.mgroups { margin-top: 16px; }
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gcard {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 100%; margin: 0;
  padding: 6px 10px 6px 6px; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; font: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s var(--ease);
}
.gcard:hover, .gcard:focus-visible, .gcard[aria-expanded="true"] { border-color: var(--card-hover-line); }
.gcard[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--pink-glow), var(--action-white-shadow); }
.gcard:active { transform: scale(.98); }
/* flex, а не grid: в ячейке сетки высота 100% не держит неквадратное фото */
.gcard-art { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.gcard-art img { width: 100%; height: 100%; object-fit: contain; }
.gcard-art .picto { width: 28px; height: 28px; color: var(--muted); }
.gcard-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gcard-text b { font: 700 15.5px/1.15 var(--font); letter-spacing: -.01em; color: var(--ink); }
.gcard-text span { font-size: 13px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
/* Модели группы под сеткой карточек. */
.gpanel { margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 12px); }
.gpanel-title { font: 700 17px/1.2 var(--font); color: var(--ink); }
.gpanel--flat { margin-top: 0; }
.is-tabs .gpanel:not(.is-open) { display: none; }
.is-tabs.is-searching .gcards { display: none; }
.is-tabs.is-searching .gpanel { display: block; }
.is-tabs.is-searching .gpanel:first-of-type { margin-top: 0; }
.mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.gpanel--flat .mtiles { margin-top: 0; }
.mtile {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 100%; min-height: 56px; margin: 0;
  padding: 6px 10px 6px 6px; text-align: left; font: 600 14px/1.2 var(--font);
}
.mtile:hover, .mtile:focus-visible { color: var(--pink-ink); }
.mtile-art { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.mtile-art img { width: 100%; height: 100%; object-fit: contain; }
.mtile-art .picto { width: 26px; height: 26px; color: var(--faint); }
.mtile-name { min-width: 0; overflow-wrap: anywhere; }
/* узкий телефон: «158 моделей» и «Blackview» иначе не влезают — фото чуть меньше */
@media (max-width: 400px) {
  .gcard { gap: 6px; padding-right: 6px; }
  .gcard-art { width: 38px; height: 38px; }
  .gcard-text span { font-size: 12.5px; }
}
@media (min-width: 720px) {
  .mgroups { margin-top: 20px; }
  .gcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .gcard { gap: 10px; padding: 8px 36px 8px 8px; }
  .gcard-art { width: 60px; height: 60px; }
  .gcard-text b { font-size: 17px; }
  .gcard-text span { font-size: 14px; }
  .gcards--brands .gcard-text b { font: 700 18px/1.15 var(--display); }
  .gpanel { margin-top: 24px; }
  .gpanel-title { font-size: 19px; }
  .mtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .mtile { font-size: 15px; }
  .mtile-art { width: 52px; height: 52px; }
}
.cat-empty { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cat-empty p { max-width: 46ch; color: var(--muted); }

/* Цены раздела: карточка со строками «ремонт … от»; на ПК строки в две
   колонки, как в блоке цены на главной. */
.cat-prices { margin-top: 16px; padding: 16px 16px 14px; }
.cat-prices .fig-cap + .rows { margin-top: 4px; }
.cat-prices .rows + .fig-cap { margin-top: 20px; }
.cat-rows { max-width: none; --brk: 40px; }
.cat-rows .row { gap: 12px; }
.cat-rows .row-main { flex-direction: column; align-items: flex-start; gap: 2px; }
/* Телефон: название во всю ширину, под ним время слева и цена справа — как
   в блоке цены на главной: длинные «Замена разъёма зарядки» не ломаются в
   три строки. */
@media (max-width: 559px) {
  .cat-rows .row { display: grid; grid-template-columns: var(--brk) minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; }
  .cat-rows .brk { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .cat-rows .row-main { display: contents; }
  .cat-rows .row-name { grid-column: 2 / -1; }
  .cat-rows .row-time { grid-column: 2; }
  .cat-rows .row-val { grid-column: 3; }
  .cat-rows .row-dots { display: none; }
  /* без времени цена стоит в строке названия */
  .cat-rows .row:not(:has(.row-time)) .row-name { grid-column: 2; }
  .cat-rows .row:not(:has(.row-time)) .brk { grid-row: 1; }
}
@media (min-width: 720px) { .cat-prices { padding: 22px 26px 20px; } }
@media (min-width: 1000px) {
  .cat-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .cat-rows li + li { border-top: 0; }
  .cat-rows li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Частые вопросы (владелец 25.09: «не аккордеоном — карточками в виде белых
   кнопок»): вопрос — та же белая стеклянная кнопка, что «Написать» и «Все
   ремонты», только карточкой (текст в две строки не влезает в пилюлю);
   без стрелки (владелец 25.09: объём сам говорит «нажми»). Ответ — в окне (lib/faq.py, site.js); без
   скрипта ответ виден под вопросом. На телефоне — столбиком, шире — по два. */
.faq-cards { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 720px) { .faq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; } }
.faq-li { display: grid; min-width: 0; }
.faq-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 64px;
  padding: 14px 16px 14px 18px; border-radius: 22px; text-align: left; font: 600 15.5px/1.35 var(--font);
}
.faq-a { padding: 8px 18px 4px; color: var(--muted); line-height: 1.55; }
.js .faq-a { display: none; }
@media (min-width: 720px) { .faq-card { min-height: 72px; font-size: 16.5px; padding: 16px 20px 16px 22px; } }
/* окно ответа */
.faq-answer { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.faq-answer p + p { margin-top: 10px; }
.faq-ask { margin-top: 20px; }

.cat-where .cards { margin-top: 16px; }

/* «Другое»: те же карточки устройств, по одной в ряд на телефоне — подсказки длинные. */
.devices--links { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
@media (min-width: 560px) { .devices--links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Отзывы в разделах (владелец 25.09): площадки и пятой плиткой в той же
   сетке «Читать свежие отзывы»; нажал — под сеткой карусель главной. Без
   скрипта карусель видна сразу. */
.plats { margin-top: 16px; }
.plat-more {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%;
  margin: 0; text-align: left; font: inherit; color: var(--pink-ink);
}
.plat-more:active { transform: scale(.98); }
.plat-more .icon { width: 22px; height: 22px; }
.plat-more-text { font: 700 15px/1.2 var(--font); }
.rev-drawer { margin-top: 14px; }
.js .rev-drawer:not(.is-open) { display: none; }
/* на телефоне пятая плитка — во всю ширину строкой: значок и подпись */
@media (max-width: 719px) {
  .plat-more { flex-direction: row; align-items: center; justify-content: flex-start; padding: 12px 14px; }
}
@media (min-width: 720px) { .plat-more { padding: 16px; } .plat-more-text { font-size: 16px; } }

/* Страница модели (lib/model_page.py, владелец 25.09): карточки ремонтов —
   те же карточки групп, но вместо фото рисунок поломки, под названием цена
   «от» розовым (время — пилюлей в окне записи); последняя — «Не знаю, что
   сломалось». Любая карточка сразу открывает окно записи — выбор запчасти там. */
.rcards { --brk: 40px; }
/* без стрелки (владелец 25.09: объём сам говорит «нажми») — правый отступ как левый */
.rcard { align-items: center; padding-right: 10px; }
/* В карточке две строки — название и цена; чуть крупнее и свободнее, чтобы не
   смотрелось сбито (владелец 16.10.2026). Блок цены на главной (.pc-cards) — свой. */
.rcards:not(.pc-cards) { gap: 10px; }
.rcards:not(.pc-cards) .rcard { gap: 10px; min-height: 66px; padding: 10px 10px 10px 8px; }
.rcards:not(.pc-cards) .gcard-text { gap: 4px; }
/* узкий телефон: по бокам не шире прежнего, иначе цена «от 12 730 ₽» не влезает в колонку */
@media (max-width: 400px) { .rcards:not(.pc-cards) .rcard { gap: 6px; padding: 10px 6px; } }
.rcard .brk { flex: none; }
.gcard-text .rcard-price { font: 700 14px/1.2 var(--display); color: var(--pink); letter-spacing: -.01em; }
/* «Лучше уточнить» — слова, а не цифры (16.10.2026): обычным шрифтом и с
   переносом. Одной строкой Unbounded она вылезала за карточку и за край
   экрана — на iPhone страница от этого ездила вбок. */
.rcard[data-price-ask="1"] .rcard-price { font: 700 13.5px/1.2 var(--font); letter-spacing: 0; white-space: normal; }
/* узкий телефон: «от 12 730 ₽» одной строкой не помещалась в колонку */
@media (max-width: 400px) { .gcard-text .rcard-price { font-size: 13px; } }
.rcard--ask { background: var(--pink-soft); border-color: transparent; }
.rcard--ask .gcard-text span { white-space: normal; }
/* «Открыть страницу» модели в подборе (picker.js) — обычная белая карточка-ссылка */
.rcard--page .gcard-text span { white-space: normal; }
.cat-sub .action-cue { text-decoration: none; }
#remont .fig-note { margin-top: 16px; }
@media (min-width: 720px) {
  .rcards { --brk: 44px; }
  .rcards:not(.pc-cards) { --brk: 50px; gap: 14px; }
  .rcards:not(.pc-cards) .rcard { gap: 12px; min-height: 80px; padding: 12px 14px 12px 12px; }
  .gcard-text .rcard-price { font-size: 15px; }
  .rcard[data-price-ask="1"] .rcard-price { font-size: 14.5px; }
              }

/* Первый экран бренда — фото его самой новой модели (владелец 25.09). Снимок
   iRedot у нас 240 px: шире не растягиваем, чтобы не мутнел. */
.cat-hero-art--photo img { max-width: 240px; margin: 0 auto; }

/* Статья-исследование на странице модели (lib/article.py, владелец 25.09).
   Текст — узкой колонкой для чтения, графики — карточками. Графики по
   правилам: полосы 10 px, конец скруглён 4 px, у нуля прямой; значения —
   тёмным текстом, розовый только у метки; соседи — серым; точка середины с
   кольцом цвета фона. */
.art .wrap > * { max-width: 820px; }
.art-lead { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.art-ch { margin-top: 32px; }
.art-h { font: 700 20px/1.25 var(--font); letter-spacing: -.01em; color: var(--ink); }
.art-ch p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.art-fig { margin: 16px 0 0; padding: 16px; }
.art-fig .fig-cap { margin-bottom: 8px; }
.art-fig .fig-note { margin-top: 10px; }
/* оговорка под графиком — мелко и серым, а не текстом главы (.art-ch p) */
.art-ch .art-fig .fig-note { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.bars { display: grid; gap: 2px; }
.bars-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track";
  column-gap: 10px; row-gap: 5px; align-items: center; padding: 6px 0;
}
.bars--art .bars-row { --brk: 32px; grid-template-columns: var(--brk) minmax(0, 1fr) auto; grid-template-areas: "art name val" "art track track"; }
.bars-row .brk { grid-area: art; }
.bars-name { grid-area: name; font: 500 15px/1.25 var(--font); color: var(--ink); }
.bars-name small { margin-left: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.bars-val { grid-area: val; font: 700 15px/1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bars-track, .rng-track { grid-area: track; position: relative; height: 10px; border-radius: 0 4px 4px 0; background: #f2eff5; }
.bar { display: block; width: var(--w); height: 100%; border-radius: 0 4px 4px 0; background: var(--pink); }
.bar--muted { background: #c9c4d3; }
.rng { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); min-width: 4px; border-radius: 4px; background: rgba(225, 80, 150, .32); }
.rng-dot { position: absolute; top: 50%; left: var(--m); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--surface); }
.rng-row { list-style: none; }
.bars--art .rng-row { display: grid; --brk: 32px; grid-template-columns: var(--brk) minmax(0, 1fr) auto; grid-template-areas: "art name val" "art track track"; column-gap: 10px; row-gap: 5px; align-items: center; padding: 6px 0; }
.art-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.art-stat b { display: block; font: 700 clamp(30px, 8vw, 44px)/1 var(--display); letter-spacing: -.02em; color: var(--pink); }
.art-stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; height: 150px; }
.col { display: grid; grid-template-rows: 18px minmax(0, 1fr) 18px; justify-items: center; height: 100%; }
.col-val { font: 700 13px/18px var(--font); color: var(--ink); }
.col-bar { align-self: end; width: min(18px, 70%); height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0; background: #c9c4d3; }
.col--mark .col-bar { background: var(--pink); }
.col-m { font-size: 12px; line-height: 18px; color: var(--muted); }
@media (min-width: 720px) {
  .art-lead { font-size: 19px; }
  .art-ch { margin-top: 40px; }
  .art-h { font-size: 23px; }
  .art-ch p { font-size: 17.5px; }
  .art-fig { padding: 20px 24px; }
  .bars-row { grid-template-columns: 200px minmax(0, 1fr) 64px; grid-template-areas: "name track val"; }
  .bars--art .bars-row, .bars--art .rng-row { grid-template-columns: var(--brk) 200px minmax(0, 1fr) 84px; grid-template-areas: "art name track val"; }
  .cols { height: 180px; gap: 6px; }
}

/* Голосование на странице модели (владелец 25.09): две карточки — посетители
   (да / нет, проценты после своего голоса) и мнение мастеров (две оценки из
   5 и фразы); ниже форма мастера — только по личной ссылке. Полосы — те же,
   что в статье. */
.vote-grid { display: grid; gap: 12px; margin-top: 16px; }
.vote-card { padding: 16px; }
.vote-q { margin-top: 6px; font: 600 17px/1.35 var(--font); color: var(--ink); }
.vote-btns { display: flex; gap: 8px; margin-top: 12px; }
.vote-btns .btn { flex: 1; height: 48px; }
.vote-btns .btn.is-chosen { box-shadow: 0 0 0 2px var(--pink), var(--action-white-shadow); color: var(--pink-ink); }
.vote-count { margin-top: 10px; font-size: 14px; color: var(--muted); }
.vote-result { margin-top: 12px; }
.vote-card .bars-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; }
.vote-none { margin-top: 10px; font-size: 15px; color: var(--muted); }
.vote-quotes li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.vote-quotes p { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.vote-quotes span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.vote-master-btn { margin-top: 14px; }
.vote-quiz { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vote-quiz-q { margin-top: 6px; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.vote-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.vote-quiz-opts .btn { width: 100%; }
.vote-quiz-opts .btn:disabled { opacity: .6; }
.vote-form { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vote-form .vote-q { margin: 0; }
.vote-form .btn { justify-self: start; }
@media (min-width: 720px) {
  .vote-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .vote-card { padding: 22px 24px; }
}
/* шкала 1–5 — все пять в одну строку (общий переключатель рассчитан на три) */
.vote-form .seg { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* «Главная» в шапке (владелец 26.09, вместо «Назад»): на широком экране
   всегда, на телефоне — только в нижней группе после первого экрана (наверху
   на главную ведёт знак); рядом с ней «Спросить» ужимается, на самых узких —
   до значка. На главной кнопки нет. */
@media (max-width: 719px) {
  .hbtns:not(.is-low) .gbtn--home { display: none; }
  .hbtns.is-low:has(.gbtn--home) .gbtn--ask { max-width: calc(100vw - 244px); }
}
@media (max-width: 379px) {
  .hbtns.is-low:has(.gbtn--home) .gbtn--ask { width: 42px; padding: 0; }
  .hbtns.is-low:has(.gbtn--home) .gbtn--ask .gbtn-text { display: none; }
}

/* Окно «Запись на ремонт» (владелец 25.09, второй заход — «перегружено»):
   выбор пилюлями, защита экрана — три карточки в ряд, итог строкой, поля —
   одной группой без подписей над ними. */
.book-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.book-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; border-radius: var(--action-radius); background: var(--tile); font: 600 13.5px/1.2 var(--font); color: var(--ink); }
.book-pill--muted { color: var(--muted); font-weight: 500; }
.book-add { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 9px; border-radius: 14px; }
.book-add input { position: absolute; opacity: 0; pointer-events: none; }
.book-add-name { font: 600 13.5px/1.2 var(--font); color: var(--ink); }
.book-add-price { margin-top: 4px; font: 700 16px/1.1 var(--display); letter-spacing: -.01em; color: var(--ink); }
/* кружок отметки — внизу справа, чтобы названию хватало ширины */
.book-add-box { position: absolute; bottom: 9px; right: 8px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.book-add-box .icon { width: 12px; height: 12px; stroke-width: 3; }
.book-add:has(input:checked) { background: var(--pink-soft); box-shadow: inset 0 0 0 2px var(--pink), var(--action-white-shadow); }
.book-add:has(input:checked) .book-add-price { color: var(--pink-ink); }
.book-add:has(input:checked) .book-add-box { background: var(--pink); border-color: var(--pink); color: #fff; }
.book-add:has(input:focus-visible) { outline: 2px solid var(--pink); outline-offset: 2px; }
.lead-form--book .lead-fields { gap: 14px; }
.lead-form--book .fgroup input { height: 48px; }

/* Страница модели (владелец 25.09): сразу — самые частые ремонты, остальные —
   по «Все ремонты — N» (без скрипта видны все); выбор мастерской в записи —
   переключатель на две точки. */
.js .rcards:not(.is-all) .rcard-more { display: none; }
.rcards-all { margin-top: 10px; }
.seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Запчасть в окне записи (владелец 25.09: «качество тоже выбирать в модалке»,
   четвёртый заход — «максимально чисто»): варианты — карточки без надписи над
   ними, одна на выбор; «Чем отличаются?» — тонкая полоса, раскрывает таблицу:
   строка — критерий, столбец — вариант, звёзды 1–5; столбец выбранного
   варианта подсвечен. Звёзды — метки, подписи — тёмным текстом. */
.book-parts { min-width: 0; }
.book-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 6px; }
/* «Чем отличаются?» — объёмная полоса во всю ширину, тонкая, радиус как у
   карточек вариантов (владелец 04.10: «во всю строку, такая же объёмная, но
   тонкая») */
.book-about-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; margin-top: 10px; padding: 0 12px;
  border-radius: 14px; font: 600 13.5px/1 var(--font);
}
.book-about { margin-top: 8px; padding: 4px 6px 6px; border-radius: 14px; background: var(--tile); }
.book-about[hidden] { display: none; }
.book-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font: 500 13px/1.25 var(--font); }
.book-cmp th, .book-cmp td { padding: 7px 4px; }
.book-cmp thead th { font-weight: 600; font-size: 12.5px; color: var(--ink); text-align: center; }
.book-cmp tbody th { padding-left: 6px; text-align: left; font-weight: 500; color: var(--muted); }
.book-cmp td { text-align: center; font-weight: 600; color: var(--ink); }
.book-cmp .is-on { background: var(--surface); }
.book-cmp thead .is-on { border-radius: 10px 10px 0 0; color: var(--pink-ink); }
.book-cmp tbody tr:last-child .is-on { border-radius: 0 0 10px 10px; }
/* звёзды таблицы «Чем отличаются?» (окно записи и «дешевле» на главной) —
   только внутри таблицы: общее `.stars svg` перекрашивало звёзды рейтинга в
   подвале почти в прозрачные (владелец 26.09: «в подвале пропали звёзды») */
.book-cmp .stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.book-cmp .stars svg { width: 11px; height: 11px; fill: var(--line-2); }
.book-cmp .stars svg.on { fill: var(--pink); }

/* Запись (третий заход, владелец 25.09): итог — в кнопке; забыл запчасть —
   блок подсвечен; после отправки — телефоны обеих точек. */
.book-sum { font-weight: 700; white-space: nowrap; }
/* шапка окна записи с крестиком ближе к верхнему краю (владелец 04.10:
   «шапку немного поднять, крестик тоже») */
.lead-form--book .sheet-grip { margin-bottom: 6px; }
@media (min-width: 720px) { .lead-form--book.sheet-in { padding-top: 14px; } }
.book-done-text { margin-top: 6px; }
.book-done-call { margin-top: 14px; font: 600 13.5px/1.2 var(--font); color: var(--muted); }
.book-phones { display: grid; gap: 8px; margin-top: 8px; }
.book-phone { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); }
.book-phone:hover { border-color: var(--card-hover-line); }
.book-phone .icon { color: var(--pink); }
.book-phone span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.book-phone b { font: 700 16px/1.2 var(--font); }
.book-phone small { font-size: 13px; color: var(--muted); }

/* ── Страница мастерской /avrora/, /gudok/ (владелец 25.09, lib/points.py):
   первый экран — ТЦ, где мы внутри крупно, адрес, часы (скрипт пишет
   «открыто до 22:00» по Самаре), розовая «Позвонить» с номером и белые
   «Написать», Яндекс Карты, 2ГИС. «Как пройти» — схема пути (точки на линии,
   розовая метка «Мы тут», соседи рядком) и видео 9:16 рядом; на телефоне —
   видео под схемой. ── */
/* без сетки первого экрана разделов: всё столбиком */
.ws-hero .wrap { display: block; }
.ws-kicker { font: 600 13.5px/1.3 var(--font); color: var(--pink-ink); margin-bottom: 6px; }
.ws-big { margin-top: 10px; max-width: 30ch; font: 600 clamp(18px, 4.6vw, 24px)/1.3 var(--font); color: var(--ink); }
.ws-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--muted); }
.ws-line .icon { flex: none; width: 18px; height: 18px; color: var(--faint); }
.ws-hours.is-open { color: var(--ink); }
.ws-hours.is-open .icon { color: var(--pink); }
/* на телефоне: «Позвонить» во всю ширину, под ней три белые в один ряд */
.ws-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.ws-call { grid-column: 1 / -1; }
.ws-actions .btn-sm { padding: 0 6px; font-size: 14px; }
@media (max-width: 459px) { .ws-actions .btn-sm .icon { display: none; } }
@media (min-width: 560px) {
  .ws-actions { display: flex; flex-wrap: wrap; }
  .ws-actions .btn-sm { padding: 0 14px; font-size: 15px; }
}
@media (min-width: 720px) {
  .ws-hero { padding-top: 14px; }
  .ws-hero .crumbs { margin-bottom: 16px; }
  .ws-actions { margin-top: 24px; }
}

.route-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 720px) {
  .route-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 20px; align-items: start; margin-top: 24px; }
}
/* Карта этажа (владелец 26.09: «карта вместо схемы», lib/maps.py): карта
   владельца в плоской карточке — она не нажимается, нажимаются кнопки под
   ней. Окно карты держит пропорции кадра: на широком — весь этаж, на
   телефоне — кадр вокруг нас (--ar-p, кадр ставит site.js); высота на
   широком не больше 80% экрана. «Вы тут» — тёмная метка: розовая занята
   нами. */
.route-main { display: grid; gap: 14px; min-width: 0; }
.map-card { padding: 8px 8px 14px; }
.map-box { width: min(100%, calc(80vh * var(--ar-w))); aspect-ratio: var(--ar-w); margin: 0 auto; border-radius: calc(var(--card-radius) - 6px); overflow: hidden; background: #fff; }
.map-svg { width: 100%; height: 100%; }
@media (max-width: 719px) { .map-box { width: 100%; aspect-ratio: var(--ar-p); } }
.map-svg [data-shop].is-you polygon { fill: #e4e2ec; }
.map-you circle { fill: none; stroke: var(--ink); }
.map-you .map-you-dot { fill: var(--ink); stroke: none; }
.map-you .map-you-halo { fill: rgba(26, 26, 46, .12); stroke: none; }
.map-you rect { fill: var(--ink); }
.map-you text { fill: #fff; font-family: var(--font); font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.map-find { display: none; padding: 12px 8px 0; }
.js .map-find { display: block; }
.map-find-q { font: 700 16px/1.3 var(--font); color: var(--ink); }
.map-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.map-chips .btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--pink), var(--action-white-shadow); }
.map-search { max-width: none; margin-top: 10px; }
.map-say { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.map-say:empty { display: none; }
.map-full-btn { margin: 12px 8px 0; }
.map-words { display: grid; gap: 6px; padding: 0 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.map-words b { color: var(--ink); }
.route-main > .route-warn { margin-top: 0; }
/* «Весь этаж»: окно шире обычного, карта в нём крупно — двигается пальцем */
.sheet--map { max-width: min(1200px, 100%); }
@media (min-width: 720px) { .sheet--map { max-width: min(1200px, 94vw); } }
.map-full { margin-top: 12px; max-height: 72vh; max-height: 72dvh; overflow: auto; overscroll-behavior: contain; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.map-full .map-svg { width: max(100%, var(--full-w)); max-width: none; height: auto; }
.route-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--tile); font-size: 14px; line-height: 1.45; color: var(--ink); }
.route-warn .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--pink-ink); }
.route-video { display: grid; gap: 8px; }
.route-tabs .seg-opt span { height: 36px; font-size: 13.5px; }
.route-frame { border-radius: var(--card-radius); overflow: hidden; background: #1a1a2e; box-shadow: var(--shadow-sm); }
.route-vid { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: contain; background: #1a1a2e; }
.route-vid[hidden] { display: none; }
@media (max-width: 719px) {
  /* на телефоне ролик не во всю высоту экрана */
  .route-video { max-width: 340px; width: 100%; justify-self: center; }
}

/* ── Кабинет /kabinet/ (владелец 25.09, lib/cabinet.py): первый блок короткий,
   главное — таблица последних ремонтов. Она не нажимается — плоская карточка;
   «Готов — можно забирать» — розовая пилюля (акцент: можно идти), остальные
   статусы — спокойные серые. На телефоне строка в две линии: устройство и
   статус, под ними мастерская и дата. ── */
.cab-lead { margin-top: 12px; max-width: 52ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.cab-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cab-mine[hidden] { display: none; }
.cab-card { margin-top: 16px; padding: 4px 16px; overflow: hidden; }
.cab-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cab-table thead th { padding: 12px 8px 10px 0; text-align: left; font: 600 12.5px/1.2 var(--font); color: var(--muted); }
.cab-table td, .cab-table tbody th { padding: 13px 8px 13px 0; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.cab-device { font: 600 15.5px/1.3 var(--font); color: var(--ink); }
.cab-shop a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cab-shop a:hover { color: var(--pink-ink); border-color: var(--card-hover-line); }
.cab-date { color: var(--muted); white-space: nowrap; }
.cab-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 11px; border-radius: 999px; background: var(--tile); font: 600 13px/1.2 var(--font); color: var(--ink); white-space: nowrap; }
.cab-pill--ready { background: var(--glass-pink); color: #fff; box-shadow: 0 4px 12px rgba(225, 80, 150, .28); }
.cab-note { margin-top: 10px; }
.cab-form .lead-fields { display: grid; gap: 14px; }
@media (max-width: 719px) {
  .cab-card { padding: 0 14px; }
  .cab-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cab-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; padding: 13px 0; border-top: 1px solid var(--line); }
  .cab-table tbody tr:first-child { border-top: 0; }
  .cab-table td, .cab-table tbody th { padding: 0; border: 0; }
  .cab-device { grid-column: 1; grid-row: 1; align-self: center; }
  .cab-status { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .cab-shop, .cab-date { grid-row: 2; font-size: 13.5px; color: var(--muted); }
  .cab-shop { grid-column: 1; }
  .cab-date { display: none; }
  .cab-shop::after { content: " · " attr(data-date); }
  .cab-pill-more { display: none; }
}
@media (min-width: 720px) { .cab-card { padding: 4px 24px; } }

/* Запись, пятый заход (владелец 25.09): мастерская первой; у вариантов
   запчасти — наличие в выбранной мастерской точкой-светофором (зелёная — в
   наличии, жёлтая — привезём за 2–3 часа, красная — под заказ, серая —
   уточнит мастер). Слово — в полупрозрачной пилюле цвета светофора, без
   точки (владелец 16.10.2026): пилюля-факт, не нажимается, поэтому плоская;
   на две строки — скруглённым прямоугольником. */
.book-avail { --av: var(--faint); display: inline-flex; align-items: center; align-self: flex-start; justify-self: start; margin-top: 6px; padding: 3px 9px; border-radius: 11px; background: color-mix(in srgb, var(--av) 18%, transparent); font: 600 12px/1.2 var(--font); color: var(--ink); }
.book-avail--stock { --av: var(--st-ok); }
.book-avail--delivery { --av: var(--st-wait); }
.book-avail--order { --av: var(--st-no); }
.book-avail--unknown { color: var(--muted); }
.book-done-confirm { margin-top: 6px; font-weight: 600; }

/* ── Личная страница клиента /o/<ключ> (lib/client_page.py, assets/client.js;
   владелец 26.09, переделка 08.10): своя шапка без кнопок сайта, вкладки
   прилипают к верху, всё — одной колонкой. Заказ — чеком: путь с датами
   сверху вниз, строки и суммы столбиком, документы, зубчатый низ.
   Нажимаемое — белое объёмное, выбранная вкладка — розовое кольцо. ── */
.cp-col { width: 100%; max-width: calc(640px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.cp-head { padding: 14px 0 2px; }
.cp-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-title .logo { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 10px rgba(26, 26, 46, .18)); }
.cp-h1 { margin: 0; font: 700 22px/1.15 var(--display); letter-spacing: -.02em; white-space: nowrap; }
@media (min-width: 720px) { .cp-h1 { font-size: 26px; } }
.cp-head-row .btn { flex: none; }
.cp-example { margin: 8px 0 0; font-size: 14px; color: var(--pink-ink); }

/* Полоса вкладок без подложки (владелец 08.10): кнопки висят над страницей,
   как стеклянные кнопки шапки сайта; подложка срезала бы подсветку страницы. */
.cp-bar { position: sticky; top: 0; z-index: 30; padding: 10px 0; }
.cp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cp-tab {
  position: relative; display: grid; justify-items: center; gap: 4px;
  padding: 9px 4px 8px; font: 600 13px/1.2 var(--font); text-align: center;
}
@media (min-width: 480px) { .cp-tab { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 8px; font-size: 14.5px; } }
.cp-tab .icon { width: 20px; height: 20px; flex: none; color: var(--muted); stroke-width: 2; }
.cp-tab.is-on { box-shadow: 0 0 0 3px var(--pink-glow), 0 0 0 1.5px var(--pink), var(--action-white-shadow); }
.cp-tab.is-on .icon { color: var(--pink); }
.cp-badge {
  position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--pink); color: #fff; font: 700 11.5px/18px var(--font);
}
.cp-panels { padding-top: 12px; padding-bottom: 48px; }
.cp-fallback { padding-top: 16px; padding-bottom: 48px; }
.cp-state { display: grid; justify-items: start; gap: 12px; padding: 24px; }
.cp-state p { margin: 0; color: var(--muted); max-width: 52ch; }
.cp-card { padding: 18px; }
@media (min-width: 720px) { .cp-card { padding: 22px 24px; } }
.cp-note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.cp-panel > .cp-note:first-child { margin-top: 4px; }
.cp-link { color: var(--pink-ink); font-weight: 600; }
.cp-kicker { font-size: 13.5px; color: var(--muted); }
.cp-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 11px; border-radius: 999px; background: var(--tile); font: 600 13px/1.2 var(--font); color: var(--ink); white-space: nowrap; }
.cp-pill--ready { background: var(--glass-pink); color: #fff; box-shadow: 0 4px 12px rgba(225, 80, 150, .28); }
.cp-pill--closed { color: var(--muted); }

/* Чек: белая полоса, низ зубцами (маска), тень — фильтром обёртки,
   иначе маска срезала бы и её. */
.cp-receipt-wrap { filter: drop-shadow(0 1px 2px rgba(26, 26, 46, .06)) drop-shadow(0 6px 16px rgba(26, 26, 46, .07)); }
.cp-receipt {
  --zz: 10px;
  padding: 20px 20px calc(22px + var(--zz)); background: var(--surface); border-radius: 18px 18px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
}
@media (min-width: 720px) { .cp-receipt { padding: 24px 28px calc(26px + var(--zz)); } }
.cp-receipt.is-ready { box-shadow: inset 0 4px 0 var(--pink); }
.cp-receipt--sheet { padding: 0 2px 8px; background: none; border-radius: 0; -webkit-mask: none; mask: none; }
.cp-receipt--sheet .cp-kicker { display: none; }
.cp-rc-top, .cp-row-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cp-device { margin: 10px 0 0; font: 700 22px/1.2 var(--display); overflow-wrap: anywhere; }
@media (min-width: 720px) { .cp-device { font-size: 24px; } }
.cp-defect { margin: 4px 0 0; color: var(--muted); }

/* Путь заказа: точки сверху вниз на розовой линии, даты справа; впереди — серым. */
.cp-path { display: grid; margin: 18px 0 0; padding: 0; list-style: none; }
.cp-pt { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 14px 26px; font-size: 15px; line-height: 1.35; }
.cp-pt::before { content: ""; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.cp-pt::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: -4px; width: 2px; background: var(--pink); }
.cp-pt:last-child { padding-bottom: 0; }
.cp-pt:last-child::after { display: none; }
.cp-pt time { flex: none; font-size: 13.5px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-pt.is-now { font-weight: 600; }
.cp-pt.is-now::before { box-shadow: 0 0 0 5px var(--pink-glow); }
.cp-pt.is-now::after, .cp-pt.is-todo::after { background: var(--line-2); }
.cp-pt.is-todo { color: var(--faint); }
.cp-pt.is-todo::before { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); }

.cp-where { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--tile); font-size: 15px; }
.cp-where .icon { width: 18px; height: 18px; flex: none; color: var(--pink); }
.cp-where a { color: var(--ink); font-weight: 600; }

/* Строки и суммы — столбиком, разделители пунктиром, как на чеке. */
.cp-cut { margin: 18px 0 8px; border: 0; border-top: 2px dashed var(--line-2); }
.cp-lines { display: grid; }
.cp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; font-size: 15px; }
.cp-line-name { display: grid; gap: 2px; }
.cp-qty { font-size: 13px; color: var(--muted); }
.cp-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-sums { margin-top: 8px; padding-top: 8px; border-top: 2px dashed var(--line-2); }
.cp-line--total { font-weight: 700; font-size: 17px; }
.cp-line--sub { padding-top: 0; color: var(--muted); }
.cp-line--due { padding-top: 0; font-weight: 700; color: var(--pink-ink); }
.cp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 16px; }
.cp-photo { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tile); }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Документы заказа — внизу чека, объёмными строками (нажимаются). */
.cp-docs { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line-2); }
.cp-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; }
.cp-doc .icon { width: 22px; height: 22px; color: var(--pink); }
.cp-doc b { font-weight: 600; font-size: 15px; }
.cp-doc small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cp-doc[aria-disabled="true"] { cursor: default; }

/* Другие заказы — объёмными строками, заказ открывается окном. */
.cp-h3 { margin: 32px 0 10px; font: 600 15px/1.3 var(--font); color: var(--muted); }
.cp-rows { display: grid; gap: 10px; }
.cp-row { display: grid; gap: 6px; padding: 14px 16px; text-align: left; font: inherit; }
.cp-row-what { font: 700 17px/1.25 var(--display); }
.cp-row-sum { font-size: 15px; color: var(--muted); }

/* Чат — во всю колонку, не шире. */
.cp-chat-sub { margin: 0 0 12px; }
/* Заготовки «У меня вопрос по заказу …» — в ленте, справа, как будущее
   сообщение клиента; белые объёмные (нажимаются). */
.cp-asks { display: grid; justify-items: end; gap: 6px; margin-top: 4px; }
.cp-ask { max-width: 82%; padding: 9px 14px; border-radius: 18px 18px 6px 18px; font: 500 14.5px/1.3 var(--font); color: var(--pink-ink); text-align: right; }
.cp-chat { display: grid; padding: 0; overflow: hidden; }
.cp-msgs { display: grid; align-content: start; gap: 10px; max-height: min(60vh, 520px); min-height: 220px; overflow-y: auto; padding: 18px 16px; }
.cp-msg { display: grid; gap: 4px; max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; }
.cp-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-msg time { font-size: 12px; opacity: .6; justify-self: end; }
.cp-msg--me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.cp-msg--we { justify-self: start; background: var(--tile); border-bottom-left-radius: 6px; }
.cp-msg-who { font: 600 12.5px/1.2 var(--font); color: var(--pink-ink); }
.cp-chat-empty { margin: auto; text-align: center; max-width: 36ch; }
.cp-compose { display: flex; align-items: flex-end; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.cp-compose textarea {
  flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink);
}
.cp-compose textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: transparent; }
.cp-compose .gbtn { flex: none; }
.cp-chat-error { margin: 0 12px 12px; }

/* Контакты: часы, мастерские (с устройством — первой и с пометкой), мессенджеры. */
.cp-hours { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.cp-hours .icon { width: 18px; height: 18px; flex: none; color: var(--pink); }
.cp-places { display: grid; gap: 12px; }
.cp-place { display: grid; justify-items: start; gap: 4px; padding: 18px; }
.cp-place-name { font: 700 18px/1.25 var(--display); }
.cp-place-addr { font-size: 15px; }
.cp-place-where { font-size: 14px; color: var(--muted); }
.cp-place-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cp-place.is-here { box-shadow: 0 0 0 3px var(--pink-glow), var(--shadow-sm); }
.cp-here { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 4px 11px; border-radius: 999px; background: var(--glass-pink); color: #fff; font: 600 13px/1.2 var(--font); }
.cp-here .icon { width: 14px; height: 14px; stroke-width: 3; }
.cp-here[hidden] { display: none; }
.cp-msgrs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Скидки: личная скидка — крупной цифрой, предложения — карточками. */
.cp-discount, .cp-offer { display: flex; align-items: center; gap: 16px; }
.cp-discount + .cp-offer, .cp-offer + .cp-offer { margin-top: 12px; }
.cp-discount span, .cp-offer span { display: grid; gap: 4px; }
.cp-discount small, .cp-offer small { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.cp-discount-num { flex: none; font: 800 34px/1 var(--display); color: var(--pink); }
.cp-offer > .icon { width: 28px; height: 28px; flex: none; color: var(--pink); }
.cp-offer .cp-until { color: var(--pink-ink); font-weight: 600; }

/* Таблица «Чем отличаются?» в ответе «дешевле» на главной (lib/home.py:
   compare, владелец 26.09): та же таблица, что в окне записи (.book-about,
   .book-cmp), но открытая; первая строка — цена, названия вариантов —
   объёмные кнопки, открывают окно записи с этим вариантом; наведение
   подсвечивает столбец так же, как выбранный вариант в окне. */
.cmp-home { grid-column: 1 / -1; margin-top: 12px; padding: 6px; }
.bubble--roomy .ways { max-width: 760px; }
.cmp-home .book-cmp { font-size: 14px; }
.cmp-home .book-cmp td { cursor: pointer; }
.cmp-home thead th { padding: 4px 3px 8px; }
@media (min-width: 720px) { .cmp-home thead th { width: 23%; } }
.cmp-pick {
  display: block; width: 100%; min-height: 40px; padding: 8px 6px;
  border-radius: 12px; font: 600 14px/1.2 var(--font); text-align: center;
}
.cmp-home thead .is-on .cmp-pick { box-shadow: 0 0 0 2px var(--pink), var(--action-white-shadow); color: var(--pink-ink); }
.cmp-home .cmp-price td { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-home .stars svg { width: 12px; height: 12px; }
@media (max-width: 480px) {
  .cmp-home { padding: 4px 2px; }
  .cmp-home .book-cmp { font-size: 12.5px; }
  .cmp-home .book-cmp tbody th { padding-left: 4px; }
  .cmp-pick { font-size: 13px; padding: 8px 2px; }
  .cmp-home .stars svg { width: 10px; height: 10px; }
  .cmp-home .cmp-price td { white-space: normal; }
}

/* Запись квизом (владелец 26.09): шаг 1 — мастерские объёмными карточками с
   наличием вариантов этого ремонта (нажал — второй шаг), шаг 2 — остальное и
   «мастерская · Сменить» сверху. На телефоне окно записи почти во весь экран:
   шаги не прыгают по высоте. */
.book-step { display: grid; gap: 12px; }
.book-step[hidden] { display: none; }
.book-shops { display: grid; gap: 10px; }
/* карточка мастерской: название ТЦ и крупно наличие — по строке на вариант
   (владелец 26.09: «много букв, перегруз… больше акцента на наличие») */
.book-shop { display: grid; gap: 10px; padding: 16px 18px; text-align: left; }
.book-shop input { position: absolute; opacity: 0; pointer-events: none; }
.book-shop-name { font: 700 18px/1.2 var(--font); }
.book-shop-stock { display: grid; gap: 6px; }
.book-shop-stock:empty { display: none; }
.book-shop-stock .book-avail { margin: 0; padding: 5px 12px; border-radius: 15px; font: 600 15.5px/1.3 var(--font); }
.book-shop:has(input:checked) { box-shadow: inset 0 0 0 2px var(--pink), var(--action-white-shadow); }
.book-shop:has(input:focus-visible) { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 719px) { #book { height: 92vh; height: 92dvh; max-height: none; } }

/* Незаполненное обязательное при отправке — мигает красным (владелец 26.09,
   все формы сайта; site.js: flagInvalid). Красный — тот же, что «под заказ». */
@keyframes invalid-blink {
  0%, 50%, 100% { box-shadow: inset 0 0 0 2px var(--st-no), 0 0 0 4px rgba(224, 69, 75, .22); }
  25%, 75% { box-shadow: inset 0 0 0 2px transparent, 0 0 0 4px transparent; }
}
.is-invalid { animation: invalid-blink .9s ease; box-shadow: inset 0 0 0 2px var(--st-no), 0 0 0 4px rgba(224, 69, 75, .22); }
.fgroup .is-invalid { background: #fff6f6; }
.consent.is-invalid { border-radius: 10px; }
.consent.is-invalid .consent-box { border-color: var(--st-no); }
.book-shops.is-invalid, .book-parts.is-invalid { border-radius: 16px; }


/* ── Правовые страницы /offer/, /privacy/, /policy/ (lib/legal.py, 09.10.2026):
   текст документа в информационной карточке, ширина строки — для чтения. ── */
.legal { padding-top: 16px; }
.legal-doc { max-width: 860px; padding: 22px 20px; }
@media (min-width: 720px) { .legal-doc { padding: 36px 44px; } }
.legal-doc h2 { margin-top: 28px; font: 700 18px/1.3 var(--font); letter-spacing: -.01em; color: var(--ink); }
.legal-doc p, .legal-doc li { font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.legal-doc p + p { margin-top: 8px; }
.legal-doc h2 + p, .legal-doc h2 + ul { margin-top: 10px; }
.legal-doc ul, .legal-doc ol { margin: 8px 0; padding-left: 1.3em; }
.legal-doc li + li { margin-top: 4px; }
.legal-doc a { color: var(--pink-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-edition { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ── Уведомление о cookie (assets/cookie.js, владелец 14.10.2026) в левом нижнем углу экрана — на широком
   оно ложится в пустое поле слева от колонки текста, справа внизу идёт сцена первого экрана. Клики ловит
   только надпись, не картинка. На телефоне, когда кнопки шапки переехали вниз (.hbtns.is-low), оно
   поднимается над ними. ── */
.cookie {
  position: fixed; z-index: 35; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 2 * var(--gutter))); pointer-events: none;
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), bottom .22s var(--ease);
}
.cookie.is-on { opacity: 1; transform: none; }
.cookie.is-off { opacity: 0; transform: translateY(24px); }
/* Карточка — когда картинки нет: рисунок печеньки, текст и «Хорошо». Тень сильнее, чем у карточки в
   потоке: карточка висит над страницей. */
.cookie-card {
  position: relative; z-index: 1; pointer-events: auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px;
  padding: 14px 14px 14px 16px; box-shadow: var(--shadow);
}
.cookie-art { --brk: 44px; }
.cookie-t { font: 700 15px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.cookie-s { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cookie-s a { color: var(--pink-ink); text-underline-offset: 2px; }
.cookie-ok { padding: 0 18px; }
/* Плюшевый ИИгорь с аккумулятором (владелец 16.10.2026, 1а 2б 3а 4а): всё уведомление — на аккумуляторе,
   наклонено вместе с ним. Размеры надписи — в долях ширины картинки (cqw), поэтому на телефоне она
   уменьшается вместе с ИИгорем; ссылка и кнопка не мельче, чем читается. */
.cookie--akb { width: 320px; container-type: inline-size; }
.cookie-akb { position: relative; }
.cookie-pic {
  display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 14px 24px rgba(26, 26, 46, .22));
}
/* лицевая сторона аккумулятора: центр, размер в долях картинки и наклон — замер по
   raw/mascots/cookie-akb.png (986×1323; углы 5,219 · 405,111 · 646,1011 · 246,1119). Новая картинка —
   новый замер. Боковые поля надписи не дают ей зайти под руки ИИгоря. */
.cookie-face {
  position: absolute; left: 33.01%; top: 46.49%; width: 42.02%; height: 70.42%;
  transform: translate(-50%, -50%) rotate(-15.1deg);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 13cqw 4.2cqw 9cqw; pointer-events: auto;
}
.cookie-face .cookie-t { font: 700 5.4cqw/1.1 var(--font); color: #fff; }
.cookie-link {
  margin-top: 3.2cqw; font: 600 max(10px, 3.2cqw)/1.25 var(--font); color: rgba(255, 255, 255, .72);
  text-decoration: underline; text-underline-offset: 2px; hyphens: manual; overflow-wrap: break-word;
}
.cookie-link:hover, .cookie-link:focus-visible { color: #fff; }
.cookie-face .cookie-ok { margin-top: auto; height: max(30px, 10cqw); padding: 0 4.5cqw; font-size: max(12.5px, 4.2cqw); }
@media (max-width: 719px) {
  .cookie { left: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  body:has(.hbtns.is-low) .cookie { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .cookie-card { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .cookie-art { --brk: 40px; grid-row: span 2; align-self: start; }
  .cookie-ok { grid-column: 2; justify-self: start; }
  .cookie--akb { width: 240px; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: opacity .3s ease; transform: none; } }
