/* Страница проверки сайта. Направление Б «тёплый личный эксперт» (site/design/directions).
   Сначала телефон, дальше 640 / 900 / 1260 px. Чат - отдельный блок chat.css, берёт токены ниже. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-rub-wght-normal.woff2) format("woff2"); unicode-range: U+20BD; }

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --sand: #f4efe7;
  --sand-2: #ede6da;
  --text: #1d1b18;
  --muted: #57514a;
  --faint: #6f675d;
  --border: #ebe5db;
  --border-2: #ddd5c8;
  --accent: #1f5e4b;
  --accent-hover: #174a3b;
  --accent-text: #ffffff;
  --accent-soft: #e6efe9;
  --focus: #1f5e4b;
  --amber: #7a4e0e; --amber-bg: #fbf2e2; --amber-dot: #d99a35;
  --error: #9b2c22; --error-bg: #fbe9e6;
  --r: 16px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .04), 0 8px 28px -16px rgba(29, 27, 24, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --page: 812px;
  /* токены для chat.css */
  --act-bg: var(--sand);
  --neutral-bg: var(--sand);
  --wait: var(--amber-dot);
  --radius: 18px;
  --chat-page: var(--page);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16.5px/1.6 Onest, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
svg { flex: none; }

/* два набора текстов: авария идёт / Beget вернулся (html[data-beget], ставит app.js) */
html:not([data-beget="up"]) [data-mode="up"], html[data-beget="up"] [data-mode="down"] { display: none !important; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15.5px/1.1 Onest, system-ui, sans-serif; text-decoration: none; text-align: center;
  border: 0; border-radius: 999px; padding: 15px 24px; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn--soft { background: var(--sand); color: var(--text); }
.btn--soft:hover { background: var(--sand-2); color: var(--text); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-secondary { font-weight: 600; border-radius: 999px !important; padding: 13px 22px !important; }

/* ---------- шапка ---------- */
.top__in { max-width: var(--page); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; height: 68px; }
.me { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; line-height: 1.2; }
.me:hover { color: var(--text); }
.me img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.me b { display: block; font-weight: 600; font-size: 15px; }
.me span span { font-size: 13px; color: var(--faint); }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none; border: 1px solid var(--border-2); border-radius: 999px; padding: 8px 14px;
  background: var(--surface); transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- колонка страницы ---------- */
main, .footer { max-width: var(--page); margin: 0 auto; padding: 0 16px; }

/* ---------- первый экран ---------- */
.hero { padding: 20px 0 8px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-top: 14px; font-size: clamp(31px, 8vw, 52px); line-height: 1.07; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 16px; font-size: 17.5px; color: var(--muted); max-width: 54ch; text-wrap: pretty; }

.check { margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__input {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 0 20px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.field__input svg { color: var(--faint); }
.field__input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 17.5px/1.2 Onest, system-ui, sans-serif; padding: 17px 0;
}
.field__input input::placeholder { color: #8b8378; font-weight: 400; }
.field:focus-within .field__input, .field__input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(31, 94, 75, .12); }
.field__input:has(input:focus-visible) { outline: 0; }
.hint { margin-top: 12px; font-size: 14px; color: var(--faint); padding-left: 4px; }

.status { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--error-bg); color: var(--error); font-size: 15px; }

/* прогресс проверки */
.progress { margin-top: 18px; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.progress__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.progress__title { font-size: 15px; color: var(--muted); }
.progress__title b { color: var(--text); font-weight: 600; }
.progress__time { font-size: 13px; color: var(--faint); }
.progress__track { margin-top: 12px; height: 4px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.progress__bar { display: block; height: 100%; background: var(--accent); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.progress__steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pstep { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--faint); transition: color .3s; }
.pstep__mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-2); position: relative; flex: none; transition: background-color .3s, border-color .3s; }
.pstep--active { color: var(--text); }
.pstep--active .pstep__mark { border-color: var(--accent); border-right-color: transparent; }
.pstep--done { color: var(--muted); }
.pstep--done .pstep__mark { background: var(--accent); border-color: var(--accent); }
.pstep--done .pstep__mark::after {
  content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}

/* статус Beget */
.beget { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--amber-bg); border-radius: 14px; font-size: 14.5px; color: #4a3a22; }
.beget i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-dot); margin-top: 8px; flex: none; }
.beget b { font-weight: 600; color: var(--text); }
.beget small { display: block; margin-top: 3px; font-size: 13px; color: var(--amber); }
.beget--up { background: var(--accent-soft); color: #23392f; }
.beget--up i { background: var(--accent); }
.beget--up small { color: var(--accent); }

/* ---------- вердикт ---------- */
.result { padding-top: 28px; scroll-margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.verdict { padding: 22px 18px; }
.verdict__for { font-size: 14px; color: var(--faint); }
.verdict__for b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.verdict__when:not(:empty)::before { content: "· "; }
.verdict__title { margin-top: 10px; display: flex; gap: 12px; align-items: center; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.verdict__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sand); color: var(--muted); }
.verdict__icon svg { display: none; grid-area: 1 / 1; }
.verdict--act .verdict__icon, .verdict--ok .verdict__icon { background: var(--accent-soft); color: var(--accent); }
.verdict--wait .verdict__icon { background: var(--amber-bg); color: var(--amber); }
.verdict--act .i-act, .verdict--ok .i-act, .verdict--wait .i-wait, .verdict--neutral .i-neutral { display: block; }
.verdict__text { margin-top: 12px; color: var(--muted); max-width: 66ch; }

.cols { display: grid; gap: 26px; margin-top: 24px; }
.h3 { font-size: 16.5px; font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15.5px; }
.steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 13px; margin-top: -1px;
}
.kv { margin: 0; background: var(--bg); border-radius: 14px; padding: 4px 14px; }
.fact { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--faint); }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.fact .warn { display: block; font-size: 13px; color: var(--amber); }

.offers-h { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.offers-h .h3 { margin-bottom: 4px; }
.offers-h p { font-size: 14px; color: var(--faint); }
.offers { display: grid; gap: 10px; margin-top: 12px; }
.offer {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease);
}
.offer:hover { border-color: var(--border-2); }
.offer--main { border: 1.5px solid var(--accent); background: linear-gradient(180deg, #f5f9f7, #fff 70%); }
.offer__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.offer__note { font-size: 14px; color: var(--muted); flex: 1; }
.offer__price { margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.offer__same { font-size: 13px; color: var(--faint); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta .btn { flex: 1 1 auto; }
.fine { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* заявка */
.order { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.order .h3 { margin: 0; }
.order__offers { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.order__offers legend { font-size: 14px; color: var(--faint); margin-bottom: 8px; padding: 0; }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 14px; cursor: pointer; font-size: 15px; transition: border-color .2s, background-color .2s; }
.pick:hover { border-color: var(--accent); }
.pick:has(input:checked) { border-color: var(--accent); background: #f5f9f7; }
.pick input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.pick__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check-line input { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.order__consent { font-size: 13.5px; }
.order__total { font-size: 18px; font-weight: 600; }
.order__total:empty { display: none; }
.order__fields { display: grid; gap: 12px; }
.input-label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.input-label input {
  font: 16px/1.3 Onest, system-ui, sans-serif; color: var(--text); padding: 13px 14px;
  border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.input-label input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 94, 75, .12); }
.order .btn { justify-self: start; }
.order__status { font-size: 14.5px; }
.order__status:empty { display: none; }
.order__status--ok { color: var(--accent); }
.order__status--error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- разделы ---------- */
.section { padding-top: 64px; scroll-margin-top: 12px; }
.h2 { font-size: clamp(25px, 5.6vw, 32px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.h2--sub { margin-top: 44px; font-size: 22px; }
.sub { margin-top: 10px; color: var(--muted); max-width: 62ch; }

.how { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.how__step { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: transform .25s var(--ease), border-color .25s; }
.how__step:hover { border-color: var(--border-2); }
.how__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--accent); font-weight: 600; font-size: 14px; }
.how__step h3 { margin-top: 12px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.how__step p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* таблица цен (собирает build.py из pricing.md) */
.table-wrap { margin-top: 22px; }
.prices { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.prices thead { display: none; }
.prices tr { display: grid; grid-template-columns: 1fr; padding: 18px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.prices th[scope="row"] { text-align: left; font-weight: 400; padding-bottom: 10px; }
.prices td { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border); }
.prices td::before { content: attr(data-label); color: var(--faint); font-size: 14px; grid-row: 1 / span 2; }
.prices td > * { grid-column: 2; text-align: right; }
.svc { display: block; font-weight: 600; font-size: 16px; }
.cell-note { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-notes { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.price-notes li { padding-left: 18px; position: relative; }
.price-notes li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.tariffs, .other { margin-top: 18px; display: grid; gap: 10px; }
.tariff, .other__item { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: border-color .25s, transform .25s var(--ease); }
.tariff:hover, .other__item:hover { border-color: var(--border-2); }
.tariff h3, .other__item h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.tariff__price, .other__price { margin: 6px 0 8px; font-size: 22px; letter-spacing: -.015em; }
.tariff__price .price, .other__price .price { font-weight: 600; }
.tariff p:last-child, .other__item p:last-child { font-size: 14.5px; color: var(--muted); }
.other__per { font-size: 15px; color: var(--muted); font-weight: 400; }

/* кто проверяет */
.who { margin-top: 22px; padding: 22px 18px; display: grid; gap: 20px; }
.who__photo { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; }
.who__name { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.who__role { color: var(--muted); }
.badges { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { font-size: 13.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--text); }
.who__body > p + p { margin-top: 10px; }
.who__body > p:not([class]) { color: var(--muted); }
.who__links { margin-top: 16px !important; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; }

/* вопросы */
.faq { margin-top: 20px; display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s; }
.faq details:hover, .faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; font-size: 16px; position: relative; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--faint); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 15.5px; }

.ask { margin-top: 20px; padding: 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: var(--sand); border-color: transparent; box-shadow: none; }
.ask .h3 { margin-bottom: 4px; }
.ask p { color: var(--muted); font-size: 15px; }

/* подвал */
.footer { margin-top: 72px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; gap: 18px; }
.footer__name { font-weight: 600; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.footer__h { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer__note { margin-top: 22px; color: var(--faint); font-size: 13px; }

/* карточка «Иван отвечает сам» справа на широком экране, пока чат выключен */
.side { display: none; }
.side__card { padding: 22px; display: grid; gap: 10px; justify-items: start; }
.side__card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.side__name { font-weight: 600; font-size: 17px; margin-top: 4px; }
.side__card p { color: var(--muted); font-size: 15px; }
.side__card .btn { margin-top: 6px; }
.side__card .side__note { font-size: 13px; color: var(--faint); }

/* ---------- движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .6s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .05s; }
  .hero > :nth-child(n+3) { animation-delay: .1s; }
  .result--in { animation: rise .5s var(--ease) both; }
  .progress:not([hidden]) { animation: rise .35s var(--ease) both; }
  .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal--wait { opacity: 0; transform: translateY(14px); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(.98); }
  .how__step:hover, .tariff:hover, .other__item:hover { transform: translateY(-2px); }
  .pstep--active .pstep__mark { animation: spin .9s linear infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .progress__bar { transition: none; }
  .pstep--active .pstep__mark { border-right-color: var(--accent); background: var(--accent-soft); }
}

/* ---------- шире телефона ---------- */
@media (min-width: 640px) {
  .field { flex-direction: row; align-items: center; gap: 0; background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
  .field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(31, 94, 75, .12); }
  .field__input, .field:focus-within .field__input { flex: 1; border: 0; box-shadow: none; padding: 0 12px 0 14px; background: transparent; }
  .field__input input { padding: 12px 0; }
  .verdict { padding: 28px; }
  .offers { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .cta .btn { flex: 0 0 auto; }
  .order__fields { grid-template-columns: 1fr 1fr; }
  .order__fields label:last-child { grid-column: 1 / -1; }
  .how, .tariffs { grid-template-columns: repeat(3, 1fr); }
  .other { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 168px 1fr; gap: 28px; padding: 28px; }
  .who__photo { width: 168px; height: 168px; }
  .footer__grid { grid-template-columns: 1.1fr 1fr 1.4fr; gap: 28px; }

  .prices thead { display: table-header-group; }
  .prices tr { display: table-row; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; }
  .prices th, .prices td { display: table-cell; padding: 14px 12px; border-top: 1px solid var(--border); vertical-align: top; text-align: right; }
  .prices td::before { content: none; }
  .prices thead th { border-top: 0; font-size: 13.5px; font-weight: 500; color: var(--faint); padding-top: 4px; }
  .prices th[scope="row"], .prices thead th:first-child { text-align: left; padding-left: 0; }
  .prices td:last-child, .prices thead th:last-child { padding-right: 0; }
  .prices th[scope="row"] { width: 40%; }
  .prices .svc { font-size: 15.5px; }
  .prices td .price { display: block; }
  .table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 14px 22px 4px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .pill { margin-left: 8px; }
  .hero { padding-top: 44px; }
  body { background: radial-gradient(900px 440px at 12% 0%, #f2ebdf 0%, rgba(242, 235, 223, 0) 70%) no-repeat, var(--bg); }
  .cols { grid-template-columns: 1.1fr 1fr; gap: 32px; }
  .cols > [hidden] + div { grid-column: 1 / -1; }
}

/* Широкий экран: колонка страницы слева, справа - чат (chat.css) или карточка Ивана, пока чат выключен.
   Отступ тот же, что считает chat.css, поэтому при появлении чата страница не сдвигается. */
@media (min-width: 1260px) {
  body { --page-left: max(16px, calc((100vw - var(--chat-page) - var(--chat-width, 384px) - 16px) / 2)); }
  .top__in, main, .footer { margin-left: var(--page-left); margin-right: auto; }
  .side { display: block; position: fixed; top: 16px; width: var(--chat-width, 384px); left: calc(var(--page-left) + var(--chat-page) + 16px); }
  body.has-chat .side { display: none; }
}

@media print {
  .top, .side, .assistant-slot, .check, .beget, .cta, .order, .ask-fab, .ask-peek { display: none !important; }
}
