@charset "UTF-8";
/*
 * Прототип F — общие стили главной и раздела «Кейсы».
 * Визуальный язык E: кремовый фон, плотные заголовки, один акцент (зелёный),
 * нумерация разделов «01 / …». Мотива чека нет: калькулятор и карточки —
 * белые, с тонкой рамкой, без пунктира, выносок и двойной черты.
 * Кегли — только шесть переменных --fs-*, начертания — 400 и 650,
 * моноширинный шрифт — только в надзаголовках .eyebrow.
 */

/* ---------- Токены ---------- */
:root {
  --paper: #f4f2ec;
  --paper-2: #e9ebe2;
  --white: #fffefa;
  --ink: #23251f;
  --muted: #55594f;
  --faint: #63675c;
  --line: #d8d9ce;
  --line-strong: #b4b7aa;
  /* Рамки полей ввода, степперов и чипов: не меньше 3:1 к фону (WCAG 1.4.11). */
  --field-border: #7e8473;
  --accent: #13684b;
  --accent-dark: #0d5139;
  --accent-soft: #e1ebe2;
  --accent-on-dark: #8fd6b0;
  --warn: #8a4b0f;
  --warn-bg: #fbefdc;
  --radius: 6px;
  --max: 1240px;
  --header-h: 72px;
  --bar-h: 0px;
  --font: Inter, Manrope, "Golos Text", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* Шкала кеглей: других размеров шрифта в файле нет. */
  --fs-display: clamp(40px, 4.1vw, 58px);
  --fs-sum: clamp(40px, 3.6vw, 48px);
  --fs-h2: clamp(30px, 3.2vw, 44px);
  --fs-h3: 20px;
  --fs-body: 17px;
  --fs-small: 14px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 480px) {
  :root { --fs-body: 16px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; font-size: var(--fs-body); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3 { font-weight: 650; }
p { line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
.container { width: calc(100% - 112px); max-width: var(--max); margin-inline: auto; }
.nowrap, a[href^="tel:"] { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Типографика ---------- */
h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.accent { color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 650 var(--fs-small)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.note { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.source-note { font-size: var(--fs-small); line-height: 1.6; color: var(--faint); }

/* ---------- Кнопки и ссылки ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 22px; border-radius: var(--radius); font-size: var(--fs-body); font-weight: 650; line-height: 1.2; text-align: center; transition: background-color .2s, transform .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button-accent { background: var(--accent); color: #fff; }
.button-accent:hover { background: var(--accent-dark); }
.button-outline { border: 1px solid var(--field-border); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--white); border-color: var(--ink); }
.button-small { min-height: 42px; padding: 10px 16px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body); font-weight: 650; padding: 8px 0; border-bottom: 1px solid transparent; }
.text-link:hover { color: var(--accent); border-bottom-color: currentColor; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.inline-link:hover { color: var(--accent); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244, 242, 236, .97); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
/* Слоган стоит под словом aibatAI: оно начинается на 1,24 высоты логотипа от левого края. */
.brand { --logo-h: 32px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: none; }
.brand-logo { display: block; width: auto; height: var(--logo-h); }
.brand-tagline { padding-left: calc(var(--logo-h) * 1.24); font-size: var(--fs-small); line-height: 1.2; color: var(--muted); white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: var(--fs-body); }
.desktop-nav a, .header-cta { white-space: nowrap; }
.desktop-nav a:hover, .header-phone:hover { color: var(--accent); }
.header-phone { font-weight: 650; font-size: var(--fs-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Иконки ботов в MAX и Telegram рядом с телефоном — в шапке и футере. */
.messengers { display: inline-flex; align-items: center; gap: 8px; flex: none; vertical-align: middle; }
.messengers a { display: block; border-radius: 50%; transition: transform .15s; }
.messengers a:hover { transform: translateY(-2px); }
.messengers img { display: block; }
.header-phone + .header-messengers { margin-left: -14px; }
.messenger-link img { display: inline-block; margin-right: 5px; vertical-align: -4px; }
.menu-toggle, .mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-rows: auto 1fr; grid-template-areas: "copy calc" "assure calc"; column-gap: 64px; align-items: start; padding-block: 36px 40px; }
.hero-copy { grid-area: copy; padding-top: 28px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero-sub { font-size: var(--fs-body); line-height: 1.55; color: var(--muted); max-width: 560px; margin-top: 22px; }
.hero-sub > a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.hero-sub > a:hover { color: var(--accent); text-decoration-color: currentColor; }
.hero-sub-short { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.hero-assure { grid-area: assure; list-style: none; display: grid; gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-body); color: var(--muted); max-width: 520px; }
.hero-assure li { display: flex; gap: 10px; align-items: baseline; }
.hero-assure b { font-size: var(--fs-small); font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-calc { grid-area: calc; min-width: 0; }

/* ---------- Калькулятор экономии ----------
 * Элементы: подпись, пояснение (в кейсах) или пресеты (на главной), три поля, результат,
 * окупаемость (на главной), допущения, кнопка.
 * Внутри только три кегля: --fs-small, --fs-body, --fs-sum. */
.calc { background: var(--white); border: 1px solid var(--line-strong); border-radius: 6px; padding: 20px 22px; font-size: var(--fs-body); line-height: 1.4; }
.calc > * + * { margin-top: 14px; }
.calc > .calc-field + .calc-field { margin-top: 8px; }
.calc p { line-height: 1.4; }
.calc-label { font-size: var(--fs-small); font-weight: 650; color: var(--muted); }
.calc-intro { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.calc > .calc-label + .calc-intro { margin-top: 4px; }
.calc-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--paper); border: 1px solid var(--field-border); border-radius: 7px; }
.calc-presets button { min-height: 44px; padding: 5px 6px; border-radius: 5px; font-size: var(--fs-body); line-height: 1.15; color: var(--ink); }
.calc-presets button:hover { background: var(--white); }
.calc-presets button.is-active { background: var(--ink); color: var(--white); }
.calc-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-field label { min-width: 0; font-size: var(--fs-body); line-height: 1.25; }
.stepper { display: flex; align-items: stretch; flex: none; height: 42px; background: #fff; border: 1px solid var(--field-border); border-radius: 6px; }
.stepper button { width: 40px; font-size: var(--fs-body); line-height: 1; color: var(--ink); border-radius: 5px; }
.stepper button:hover { background: var(--paper); color: var(--accent); }
.stepper input { width: 76px; min-width: 0; padding: 0 2px; border: 0; background: transparent; text-align: center; font-size: var(--fs-body); font-weight: 650; font-variant-numeric: tabular-nums; }
.stepper input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 3px; }
.calc-result { padding-top: 14px; border-top: 1px solid var(--line); }
.calc-sum { margin-top: 2px; font-size: var(--fs-sum); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .calc-hours { margin-top: 4px; }
.calc-payback.is-warning { color: var(--warn); }
.calc-note { font-size: var(--fs-small); color: var(--muted); }
.calc .calc-note { line-height: 1.45; }
.calc-cta { width: 100%; }

/* ---------- Секции ---------- */
.section { --section-pad: 88px; padding-block: var(--section-pad); }
.section-tint + .section-tint { padding-top: calc(var(--section-pad) / 2); } /* соседние секции с одной заливкой: половина отступа вместо двойного */
.section-tint { background: var(--paper-2); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 36px; }
.section-heading > p { max-width: 400px; font-size: var(--fs-body); color: var(--muted); }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-cta p { font-size: var(--fs-body); font-weight: 650; letter-spacing: -.01em; }

/* ---------- 01. Услуги: карточки «название · что даёт · кейс» ----------
 * Вся карточка кликабельна (ссылка заголовка растянута на карточку). */
.services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-card { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.service-card:hover { border-color: var(--ink); }
.service-card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.service-icon { flex: none; width: 64px; height: 64px; }
.service-body { display: flex; flex-direction: column; flex: 1; min-width: 0; align-self: stretch; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card h3 a:focus-visible { outline: none; }
.service-card p { flex: 1; margin-top: 8px; font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }
.service-link { margin-top: 14px; font-size: var(--fs-small); font-weight: 650; line-height: 1.4; color: var(--accent); }
.service-card:hover .service-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 02. Демо ---------- */
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #cdd3c3; font-size: var(--fs-small); font-weight: 650; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.demo-toolbar > span { display: flex; align-items: center; gap: 8px; }
.demo-tabs { display: flex; gap: 4px; }
.demo-tabs button { padding: 9px 14px; border-radius: 4px; font-size: var(--fs-body); font-weight: 650; text-transform: none; letter-spacing: 0; color: var(--ink); }
.demo-tabs button:hover { background: var(--white); }
.demo-tabs button.is-active { background: var(--ink); color: var(--white); }
.demo-flow { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.3fr); padding-top: 24px; }
.demo-panel-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--fs-small); font-weight: 650; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.message { position: relative; padding: 18px 20px; background: var(--white); border-radius: 8px 8px 8px 0; box-shadow: 0 3px 8px rgba(27, 37, 16, .05); }
.message-author { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 650; }
.message-author small { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--faint); }
.message-author > span:last-child { margin-left: auto; font-size: var(--fs-small); color: var(--faint); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); font-size: var(--fs-small); }
.message p { margin-top: 14px; font-size: var(--fs-body); line-height: 1.7; white-space: pre-line; }
.flow-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-bottom: 30px; }
.flow-connector > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-size: var(--fs-h3); }
.flow-connector small { font-size: var(--fs-small); font-weight: 650; color: var(--muted); }
.result-table-wrap { overflow-x: auto; background: var(--white); border-radius: 6px; }
.result-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--fs-small); }
.result-table th { padding: 10px 12px; background: #f1f2eb; font-size: var(--fs-small); font-weight: 650; color: var(--muted); }
.result-table td { padding: 12px; border-top: 1px solid #ebeee4; line-height: 1.4; }
.result-table th:nth-child(2), .result-table td:nth-child(2) { white-space: nowrap; }
.result-table th:last-child, .result-table td:last-child { text-align: right; }
.match, .needs-review { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: var(--fs-small); font-weight: 650; white-space: nowrap; }
.match { background: #e3efe1; color: #275c33; }
.needs-review { background: var(--warn-bg); color: var(--warn); }
.human-review { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--warn-bg); border: 1px solid #e6cfa5; border-radius: 6px; }
.human-review > span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid var(--warn); border-radius: 50%; color: var(--warn); font-weight: 650; }
.human-review strong { font-size: var(--fs-small); font-weight: 650; }
.human-review p { margin-top: 2px; font-size: var(--fs-small); color: var(--warn); }
.demo-output-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.demo-output-bottom .text-link { font-size: var(--fs-small); color: var(--accent); }
.demo-status { margin-top: 10px; font-size: var(--fs-small); color: #275c33; }
.demo-status:empty { display: none; }
.demo-disclaimer { margin-top: 22px; padding-top: 16px; border-top: 1px solid #cfd5c5; font-size: var(--fs-small); color: var(--muted); }

/* ---------- 02. Почему сейчас: три факта, прогнозы и цитаты ----------
 * Три кегля внутри блока: --fs-sum для чисел, --fs-body для текста, --fs-small для подписей. */
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 20px 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-n { font-size: var(--fs-sum); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat p:not(.stat-n) { margin-top: 10px; font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }
.outlook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.outlook-card { padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.outlook-label { font-size: var(--fs-small); font-weight: 650; line-height: 1.4; color: var(--muted); }
.outlook-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.outlook-list li { padding-left: 14px; border-left: 2px solid var(--accent); font-size: var(--fs-body); line-height: 1.5; }
.outlook-list b { font-weight: 650; }
.outlook blockquote { margin: 14px 0 0; }
.outlook blockquote + blockquote { padding-top: 14px; border-top: 1px solid var(--line); }
.outlook blockquote p { font-size: var(--fs-body); line-height: 1.5; }
.outlook blockquote footer { margin-top: 6px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }

/* ---------- 04. Смета ---------- */
.estimate { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #c4cab6; border-left: 1px solid #c4cab6; }
.estimate li { display: flex; flex-direction: column; padding: 20px 18px 22px; border-right: 1px solid #c4cab6; border-bottom: 1px solid #c4cab6; }
.est-no { font-size: var(--fs-small); color: var(--faint); font-variant-numeric: tabular-nums; }
.estimate h3 { margin-top: 14px; }
.est-desc { flex: 1; margin-top: 8px; font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.est-price { margin-top: 18px; font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.est-term { margin-top: 4px; font-size: var(--fs-small); color: var(--faint); }
.estimate .is-key { background: var(--ink); color: var(--white); border-color: var(--ink); }
.estimate .is-key .est-no, .estimate .is-key .est-term { color: #c7ccbd; }
.estimate .is-key .est-desc { color: #d5d9cc; }
.estimate .is-key .est-price { color: var(--accent-on-dark); }
.estimate-note { margin-top: 14px; }
.safety { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid #c4cab6; }
.safety h3 { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.shield { width: 26px; height: 30px; flex: none; color: var(--accent); }
.safety ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.safety li { padding: 7px 12px; border: 1px solid #b9c0ab; border-radius: 999px; background: var(--white); font-size: var(--fs-small); }

/* ---------- 05. FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
.faq-layout .section-sub { margin-top: 18px; font-size: var(--fs-body); color: var(--muted); max-width: 360px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; list-style: none; cursor: pointer; font-size: var(--fs-body); font-weight: 650; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: var(--fs-h3); font-weight: 400; line-height: 1; color: var(--accent); }
.faq-list details[open] > summary { color: var(--accent); }
.faq-list details[open] > summary::after { content: "−"; }
.faq-list details p { padding: 0 36px 18px 0; font-size: var(--fs-body); color: var(--muted); line-height: 1.6; }

/* ---------- 06. Форма ---------- */
.consultation { background: #e6e5da; }
.consultation-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.consultation-copy > p:not(.eyebrow) { margin-top: 18px; font-size: var(--fs-body); color: var(--muted); max-width: 440px; }
.benefits { list-style: none; display: grid; gap: 10px; margin-top: 24px; font-size: var(--fs-body); }
.benefits li { display: flex; gap: 12px; align-items: baseline; }
.benefits li::before { content: "→"; color: var(--accent); font-weight: 650; }
.consultation-contacts { margin-top: 28px; font-size: var(--fs-body); color: var(--muted); }
.consultation-contacts a { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.lead-card { padding: 28px; background: var(--white); border-radius: 8px; box-shadow: 0 10px 30px rgba(40, 45, 30, .06); }
.form-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: var(--fs-small); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.progress-lines { display: flex; gap: 5px; }
.progress-lines i { width: 32px; height: 3px; background: #e2e5da; }
.progress-lines i.is-active { background: var(--accent); }
.lead-card h3 { letter-spacing: -.02em; }
.form-label { display: block; margin: 16px 0 7px; font-size: var(--fs-small); font-weight: 650; color: var(--ink); }
.form-label > span { margin-left: 4px; font-weight: 400; color: var(--faint); }
.lead-card input:not([type="checkbox"]):not([type="radio"]), .lead-card textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--field-border); border-radius: 5px; background: #fafbf6; font-size: var(--fs-body); line-height: 1.4; }
.lead-card textarea { min-height: 84px; resize: vertical; }
.lead-card ::placeholder { color: #6a6e62; opacity: 1; }
.lead-card [aria-invalid="true"] { border-color: #b3381a !important; background: #fff6f2 !important; }
.chips-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips-fieldset legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 12px; border: 1px solid var(--field-border); border-radius: 999px; background: #fff; font-size: var(--fs-body); line-height: 1.2; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--accent-on-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.check-label input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.check-label input[aria-invalid="true"] { outline: 2px solid #b3381a; outline-offset: 2px; }
.form-error { margin-top: 10px; font-size: var(--fs-small); font-weight: 650; color: #a5321a; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-card .button { width: 100%; margin-top: 18px; }
.form-promise { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.form-back { margin-top: 10px; padding: 6px 0; font-size: var(--fs-small); color: var(--muted); }
.form-back:hover { color: var(--accent); }
.calc-context { margin: 0 0 14px; padding: 9px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: var(--fs-small); line-height: 1.5; color: #2d4a39; }
.form-success:focus { outline: none; }
.form-success h3 { margin-top: 14px; }
.form-success > p { margin-top: 8px; font-size: var(--fs-body); color: var(--muted); }
.success-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-h3); font-weight: 650; }
.success-summary { margin-top: 14px; padding: 12px 14px; background: #f0f2ea; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); border-radius: 4px; }
.success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.success-actions .button { margin-top: 0; min-height: 46px; padding-inline: 12px; }
.success-actions .button:last-child { grid-column: 1 / -1; }

/* ---------- Футер ---------- */
.site-footer { padding-block: 48px 28px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-h { margin-bottom: 10px; font-size: var(--fs-small); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.site-footer p, .footer-links { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
.footer-contacts a { color: var(--ink); font-weight: 650; }
.footer-contacts .messengers { margin-left: 8px; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.footer-links a, .footer-links button { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-size: var(--fs-small); text-align: left; }
.footer-brand p { margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 20px; font-size: var(--fs-small); color: var(--faint); }

/* ---------- Мобильный бар, cookie, диалог ---------- */
.mobile-bar { display: none; }
.cookie { position: fixed; z-index: 45; left: 16px; bottom: 16px; width: max-content; max-width: min(560px, calc(100% - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 8px 8px 16px; background: var(--ink); color: #f1f2ea; border-radius: 8px; box-shadow: 0 16px 40px rgba(20, 24, 16, .28); }
.cookie p { flex: 1 1 0; min-width: 0; font-size: var(--fs-small); line-height: 1.3; }
.cookie-actions { display: flex; align-items: center; gap: 4px; }
.cookie-actions button { min-height: 36px; padding: 7px 12px; border-radius: 5px; font-size: var(--fs-small); font-weight: 650; white-space: nowrap; }
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: #18805c; }
.cookie-necessary { border: 1px solid #8b9180; color: #f1f2ea; border-radius: 5px; }
.cookie-necessary:hover { border-color: #f1f2ea; }
.cookie-settings-toggle { color: #f1f2ea; text-decoration: underline; text-underline-offset: 3px; padding-inline: 6px !important; }
.cookie :focus-visible { outline-color: var(--accent-on-dark); }
.cookie-settings { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 8px 2px 0; border-top: 1px solid #454a3f; font-size: var(--fs-small); }
.cookie-settings-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.cookie-settings label { display: inline-flex; align-items: center; gap: 8px; }
.cookie-settings input { width: 18px; height: 18px; accent-color: var(--accent); }
.cookie-settings button { min-height: 36px; padding: 6px 12px; border: 1px solid #8b9180; border-radius: 5px; font-size: var(--fs-small); font-weight: 650; white-space: nowrap; }
dialog { width: calc(100% - 32px); max-width: 520px; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgba(28, 33, 25, .75); }
dialog h2 { font-size: var(--fs-h3); margin-bottom: 14px; padding-right: 24px; letter-spacing: -.01em; }
dialog p { font-size: var(--fs-body); color: var(--muted); }
.dialog-close { position: absolute; top: 8px; right: 10px; font-size: var(--fs-h3); line-height: 1; color: var(--muted); padding: 10px 12px; }
.dialog-done { margin-top: 20px; }

/* ==========================================================================
 * Раздел «Кейсы»: хлебные крошки, hero списка и заглушек.
 * ========================================================================== */

/* ---------- Хлебные крошки: <nav class="breadcrumbs"> со ссылками через «/» или списком ---------- */
.breadcrumbs { margin-bottom: 20px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; }
.breadcrumbs li + li::before { content: "/"; margin: 0 9px; color: var(--faint); }
.breadcrumbs a { display: inline-block; padding-block: 4px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--accent); text-decoration-color: currentColor; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Hero списка кейсов и заглушек: одна колонка текста ---------- */
.hero.hero-list { display: block; padding-block: 32px 64px; }
.hero-list > :not(.services) { max-width: 780px; }
.hero.hero-list .hero-sub { display: block; max-width: 680px; margin-top: 20px; }
.hero-list .services { margin-top: 40px; }

/* ==========================================================================
 * Кейс №1 «Автоматический ввод заказов в 1С»: hero с калькулятором,
 * две колонки разделов, схема шагов, сцена, таблица времени.
 * ========================================================================== */

/* ---------- Hero кейса: текст слева, калькулятор справа; на мобильном калькулятор сразу под H1 ---------- */
.hero.hero-case { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-rows: auto auto auto auto auto 1fr; grid-template-areas: "crumbs crumbs" "title card" "note card" "lead card" "actions card" ". card"; column-gap: 72px; padding-block: 32px 72px; }
.hero-case .breadcrumbs { grid-area: crumbs; }
.hero-case h1 { grid-area: title; max-width: 720px; }
.hero-case-note { grid-area: note; max-width: 620px; margin-top: 18px; font-size: var(--fs-h3); line-height: 1.4; color: var(--ink); }
.hero.hero-case .hero-sub { grid-area: lead; display: block; max-width: 620px; margin-top: 22px; }
.hero-case .hero-actions { grid-area: actions; }
.hero-case > .hero-calc { grid-area: card; align-self: start; }

/* ---------- Разделы кейса в две колонки: заголовок слева, содержание справа ---------- */
.section-ruled { border-top: 1px solid var(--line); }

/* ---------- Правовые страницы (/privacy/, /soglasie/) и 404: текст без карточек, поэтому отступы задаются здесь ---------- */
.legal p:not(.eyebrow), .legal table, .not-found p { max-width: 760px; }
.legal h1 + p, .legal h2 + p, .legal p + p, .legal table + p, .not-found h1 + p, .not-found p + p { margin-top: 14px; }
.legal h2 { margin-top: 36px; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; text-align: left; font-size: var(--fs-small); line-height: 1.4; }
.legal th, .legal td { padding: 10px 16px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.legal th { border-top: 0; font-weight: 650; color: var(--muted); }
.not-found p + p { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.case-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.case-split-intro > p:not(.eyebrow) { margin-top: 18px; font-size: var(--fs-body); color: var(--muted); max-width: 420px; }
.case-split-intro > p.task-scale { color: var(--ink); font-weight: 650; }

/* ---------- 01. Задача: строки «как было» ---------- */
.task-list { list-style: none; border-top: 1px solid var(--line); }
.task-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); line-height: 1.45; }
.task-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: calc(.725em - 4px); border-radius: 2px; background: var(--faint); }
.task-benchmark { margin-top: 16px; }

/* ---------- 02. Что сделали: пять шагов с соединительными стрелками ----------
 * Десктоп: шаги в ряд, между кругами линия со стрелкой; до 960 px — столбиком, линия вниз. */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 42px; right: -12px; height: 2px; background: var(--field-border); }
.flow li:not(:last-child)::before { content: ""; position: absolute; top: 11px; right: -12px; width: 10px; height: 10px; border-top: 2px solid var(--field-border); border-right: 2px solid var(--field-border); transform: rotate(45deg); }
.flow-no { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: #fff; font-size: var(--fs-small); font-weight: 650; font-variant-numeric: tabular-nums; }
.flow .is-human .flow-no { background: var(--warn-bg); border: 1px solid var(--warn); color: var(--warn); }
.flow b { font-size: var(--fs-body); font-weight: 650; line-height: 1.3; }
.flow-sub { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.flow-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid #cfd5c5; font-size: var(--fs-body); color: var(--muted); }
.flow-note b { font-weight: 650; color: var(--ink); }

/* ---------- 03. Результат во времени: таблица минут на заказ ---------- */
.time-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.time-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); line-height: 1.4; font-variant-numeric: tabular-nums; }
.time-table th, .time-table td { padding: 12px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.time-table thead th { padding-block: 10px; border-top: 0; background: #f1f2eb; font-size: var(--fs-small); font-weight: 650; color: var(--muted); }
.time-table tbody th { font-weight: 400; }
.time-table th:not(:first-child), .time-table td { width: 1%; text-align: right; white-space: nowrap; }
.time-table td:last-child { padding-left: 28px; }
.time-table tfoot th, .time-table tfoot td { border-top: 1px solid var(--ink); font-weight: 650; }
.time-table tfoot td:last-child { color: var(--accent); }
.time-summary { margin-top: 20px; font-size: var(--fs-body); font-weight: 650; }
.time-quality { margin-top: 8px; font-size: var(--fs-body); color: var(--muted); }
.time-caption { margin-top: 12px; }
#rezultat .text-link { margin-top: 12px; color: var(--accent); }

/* ---------- 06. Строка «оплачивается отдельно» под сметой ---------- */
.estimate-extra { margin-top: 6px; font-size: var(--fs-small); font-weight: 650; line-height: 1.5; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 20px; }
  .desktop-nav { gap: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 40px; }
  .calc { padding-inline: 20px; }
  .estimate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-layout, .consultation-layout { gap: 44px; }
}

/* Между 961 и 1080 px пункты меню и кнопка не помещаются вместе с телефоном: он остаётся в форме и футере.
   Иконки мессенджеров компактнее и остаются. */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .header-phone + .header-messengers { margin-left: 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .container { width: calc(100% - 48px); }
  .desktop-nav, .header-phone, .header-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; padding: 10px; }
  /* На планшете иконки стоят у кнопки меню; зона нажатия 44 px за счёт полей. */
  .header-phone + .header-messengers { gap: 0; margin-left: auto; margin-right: -12px; }
  .header-messengers + .header-cta + .menu-toggle { margin-left: 0; }
  .header-messengers a { padding: 8px; }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { display: flex; flex-direction: column; padding: 4px 24px 18px; border-top: 1px solid var(--line); background: var(--paper); }
  .mobile-menu a { padding: 12px 0; font-size: var(--fs-body); border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: 0; font-weight: 650; }
  /* Hero в одну колонку: H1, короткий подзаголовок, калькулятор, кнопки. */
  .hero { display: flex; flex-direction: column; padding-block: 24px 32px; }
  .hero-copy { display: contents; }
  .hero .eyebrow, .hero-sub { display: none; }
  .hero-sub-short { display: block; margin-top: 10px; font-size: var(--fs-body); line-height: 1.4; color: var(--muted); }
  .hero-calc { order: 1; width: 100%; max-width: 600px; margin-top: 20px; }
  .hero-actions { order: 2; margin-top: 20px; }
  .hero-assure { order: 3; margin-top: 24px; }
  .section { --section-pad: 64px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { margin-top: 14px; max-width: 560px; }
  .demo-flow { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .flow-connector { flex-direction: row; padding: 14px 0; }
  .flow-connector > span { transform: rotate(90deg); width: 32px; height: 32px; }
  .faq-layout, .consultation-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stat { padding: 14px 16px 12px; }
  .stat p:not(.stat-n) { margin-top: 6px; }
  .outlook { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
  .outlook-card { padding: 16px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate { grid-template-columns: minmax(0, 1fr); }
  .estimate li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "no name price" ". desc term"; gap: 2px 10px; padding: 14px 14px 14px 12px; }
  .est-no { grid-area: no; padding-top: 3px; }
  .estimate h3 { grid-area: name; margin: 0; font-size: var(--fs-body); }
  .est-desc { grid-area: desc; margin: 0; }
  .est-price { grid-area: price; margin: 0; font-size: var(--fs-body); text-align: right; }
  .est-term { grid-area: term; margin: 0; text-align: right; white-space: nowrap; align-self: start; }
  .safety { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; padding-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  /* Кейс: одна колонка; калькулятор сразу под H1, затем кнопки и лид. */
  .hero.hero-case { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "crumbs" "title" "note" "card" "actions" "lead"; }
  .hero-case > * { max-width: 680px; }
  .hero-case > .hero-calc { margin-top: 22px; }
  .case-split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding-bottom: 18px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow-no { grid-row: 1 / span 2; margin-bottom: 0; }
  .flow b, .flow-sub { grid-column: 2; }
  .flow b { padding-top: 5px; }
  .flow li:not(:last-child)::after { top: 38px; bottom: 4px; left: 15px; right: auto; width: 2px; height: auto; }
  .flow li:not(:last-child)::before { top: auto; bottom: 4px; left: 11px; right: auto; transform: rotate(135deg); }
}

@media (max-width: 700px) {
  :root { --header-h: 56px; --bar-h: 60px; scroll-padding-top: calc(var(--header-h) + 8px); }
  .container { width: calc(100% - 32px); }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  body.has-cookie { padding-bottom: calc(var(--bar-h) + 58px + env(safe-area-inset-bottom)); }
  .brand { --logo-h: 28px; }
  .mobile-menu { padding-inline: 16px; }
  .eyebrow { margin-bottom: 12px; }
  /* Первый экран: над калькулятором только H1 и одна строка; кнопки hero — под калькулятором
     (у калькулятора своя кнопка, «Бесплатный разбор» есть в sticky-баре). */
  .hero { padding-block: 8px 22px; }
  .hero-sub-short { margin-top: 6px; }
  .hero-assure { display: none; }
  .hero-calc { margin-top: 10px; }
  .hero-actions { flex-wrap: nowrap; gap: 14px; margin-top: 16px; }
  .hero-actions .button { flex: 0 1 auto; min-height: 50px; padding: 8px 14px; text-align: left; justify-content: flex-start; }
  .hero-actions .text-link { flex: none; padding-block: 6px; }
  .calc { padding: 10px 14px 14px; }
  .calc > * + * { margin-top: 10px; }
  .calc > .calc-field + .calc-field { margin-top: 4px; }
  .calc-presets button { padding: 4px; }
  .calc-result { padding-top: 8px; }
  .calc-cta { min-height: 48px; padding-inline: 12px; gap: 8px; }
  .section { --section-pad: 44px; }
  .section-heading { margin-bottom: 22px; }
  .section-cta { margin-top: 20px; padding-top: 16px; gap: 10px; }
  .section-cta .button { width: 100%; }
  .services { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .service-card { gap: 12px; padding: 12px 14px; }
  .service-icon { width: 48px; height: 48px; }
  .service-card p { margin-top: 4px; line-height: 1.45; }
  .service-link { margin-top: 6px; }
  .demo-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .demo-tabs button { flex: 1; padding: 10px 6px; }
  .message { padding: 16px; }
  .message p { margin-top: 10px; line-height: 1.65; }
  .result-table th, .result-table td { padding: 10px 8px; }
  .demo-output-bottom { flex-wrap: wrap; }
  .faq-list summary { padding: 15px 0; }
  .faq-list details p { padding-right: 8px; }
  /* Ссылки «Бесплатный разбор» ведут к #zayavka: на мобильном форма идёт сразу под заголовком,
     оффер и контакты — под формой, чтобы шаг 1 был виден без прокрутки. */
  .consultation { padding-top: 28px; }
  .consultation-layout { gap: 0; }
  .consultation-copy { display: contents; }
  .consultation-copy > p:not(.eyebrow), .benefits, .consultation-contacts { order: 1; }
  .lead-card { margin-top: 14px; padding: 20px 16px; }
  .benefits { margin-top: 18px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .chips { gap: 6px; margin-top: 12px; }
  .chip span { min-height: 36px; padding: 5px 10px; }
  .lead-card textarea { min-height: 64px; height: 72px; }
  .form-progress { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 22px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .site-footer { padding-top: 32px; padding-bottom: 20px; }
  .safety li { padding: 5px 10px; }
  .safety ul { gap: 6px; }
  .estimate li { padding-block: 12px; }
  .demo-disclaimer { margin-top: 16px; padding-top: 12px; }

  .mobile-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.7fr 44px 44px 1fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30, 40, 20, .08); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; border: 1px solid var(--field-border); border-radius: 6px; font-size: var(--fs-small); font-weight: 650; white-space: nowrap; }
  .mobile-bar .mobile-bar-main { background: var(--accent); border-color: var(--accent); color: #fff; }
  /* Иконки MAX и Telegram из шапки на мобильном переезжают сюда: в шапке рядом со слоганом им нет места. */
  .mobile-bar .mobile-bar-icon { padding: 0; }
  .header-messengers { display: none; }
  .header-messengers + .header-cta + .menu-toggle { margin-left: auto; }
  .mobile-bar { transition: transform .25s; }
  .mobile-bar.is-hidden { transform: translateY(110%); pointer-events: none; }
  /* Cookie на мобильном — одна строка не выше 52 px: текст (до двух строк) и две кнопки. */
  .cookie { left: 8px; right: 8px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 6px); transition: bottom .25s; }
  body.bar-hidden .cookie { bottom: calc(env(safe-area-inset-bottom) + 6px); width: auto; max-width: none; gap: 6px 8px; padding: 6px 6px 6px 12px; }
  .cookie p { line-height: 1.25; }
  .cookie-actions { flex-wrap: nowrap; gap: 2px; }
  .cookie-actions button { min-height: 36px; padding: 4px 10px; }
  .cookie-settings-toggle { padding-inline: 6px !important; }
  .cookie-settings { gap: 6px 14px; }
  .cookie-settings button { min-height: 36px; padding: 4px 10px; }
  dialog { padding: 26px 20px; }
  .breadcrumbs { margin-bottom: 4px; }
  .breadcrumbs li + li::before { margin: 0 6px; }
  .hero-list .services { margin-top: 24px; }
  .hero.hero-case { padding-block: 16px 36px; }
  .hero-case-note { margin-top: 12px; font-size: var(--fs-body); }
  .hero-case > .hero-calc { margin-top: 16px; }
  .hero.hero-case .hero-sub { margin-top: 16px; }
  .hero-case .hero-actions { margin-top: 16px; }
  .case-split { gap: 20px; }
  .case-split-intro > p:not(.eyebrow) { margin-top: 12px; }
  .task-list li { padding: 10px 0; }
  .flow li { padding-bottom: 14px; }
  .flow-note { margin-top: 20px; padding-top: 14px; }
  .time-table th, .time-table td { padding: 10px 12px; }
  .time-table td:last-child { padding-left: 16px; }
  .time-summary { margin-top: 16px; }
}

/* На узком экране H1 при --fs-display (40 px) занимает пять строк и уводит сумму калькулятора
   ниже первого экрана; берём следующую ступень той же шкалы — три строки. */
@media (max-width: 480px) {
  .hero h1 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.03em; }
}

@media (max-width: 370px) {
  .hero-actions { gap: 10px; }
  .calc { padding-inline: 12px; }
  .stepper button { width: 36px; }
  .stepper input { width: 64px; }
  .cookie { padding: 6px 4px 6px 10px; gap: 6px; }
  .cookie-actions button { padding-inline: 8px; }
  .cookie-settings-toggle { padding-inline: 4px !important; }
}

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

/* ==========================================================================
 * Кейсы №2–6 (СанТехМаг и ЮУКС): демо и блоки «Как это выглядит».
 * Классы с префиксами cb- (чат-бот), yu- (помощник юриста),
 * qc- (контроль звонков), sc- (калькулятор запасов). Общие классы демо кейса №1 не переопределяются.
 * ========================================================================== */

/*
 * Кейс «ИИ-чат-боты в MAX и Telegram с 1С» (СанТехМаг): живые экраны бота в «02 / Что сделали» и отчёт в «03» (.cb-report).
 * Подблок и рамка снимка — общие с кейсом №1 (.oz-proof, .oz-proof-head, .oz-shot), здесь только раскладка.
 * .cb-phones — MAX и Telegram в рамке телефона, как на слайдах Авито (tools/chat-phones.mjs): пара по центру,
 * доли колонок равны ширинам картинок при общей высоте 1399 px (689 и 669), поэтому высота у телефонов одна;
 * у картинок прозрачный фон, тень даёт CSS; до 700 px — друг под другом, не шире 280 px.
 * .cb-wide — окно оператора и отчёт на всю ширину.
 */
.cb-phones { display: grid; grid-template-columns: minmax(0, 689fr) minmax(0, 669fr); gap: 28px 72px; width: min(100%, 680px); margin: 28px auto 0; }
.cb-phone { display: block; cursor: zoom-in; }
.cb-phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 16px rgba(29, 38, 32, .16)); }
.cb-phones figcaption, .cb-report figcaption { margin-top: 10px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.cb-phones figcaption b, .cb-report figcaption b { font-weight: 650; color: var(--ink); }
.cb-phones figcaption { margin-top: 14px; text-align: center; }
.cb-wide { margin-top: 20px; }

@media (max-width: 700px) {
  .cb-phones { grid-template-columns: minmax(0, 280px); justify-content: center; margin-top: 20px; }
  .cb-wide { margin-top: 16px; }
}

/*
 * Кейс «Прогнозирование спроса и закупок» (СанТехМаг): мини-калькулятор «замороженных денег» [data-stock-calc].
 * Разметка — классы калькулятора из styles.css (calc, calc-field, stepper, calc-result, calc-sum, calc-hours, calc-note);
 * здесь только отличия, все селекторы с префиксом sc-. Внутри блока три кегля: --fs-small, --fs-body, --fs-sum.
 */


/* Подпись поля запаса длинная: на узком экране ставим её над степпером, чтобы не было четырёх строк. */
@media (max-width: 700px) {
  .sc-calc .calc-field { flex-wrap: wrap; row-gap: 6px; }
  .sc-calc .calc-field label { flex: 1 1 160px; }
}

/* ==========================================================================
 * Блоки «03 / Результат» кейсов по схеме отрасли (версия 2.5): oz- заказы, cb- чат,
 * qc- контроль, sc- прогноз. Статичные сетки, полосы и инлайн-SVG без JS.
 * ========================================================================== */

/* --- vvod-zakazov-1c --- */
/*
 * Кейс «Автоматический ввод заказов в 1С» (ЮУКС, keysy/vvod-zakazov-1c/): блок «03 / Один день ЮУКС».
 * Две строки по 40 клеток, клетка — один заказ дня. Было: все набраны вручную.
 * Стало: без правок (акцент) и с вопросом менеджеру (светлая с рамкой).
 * Все классы с префиксом oz-, селекторы styles.css не переопределяются.
 * Кегли — только var(--fs-small) и var(--fs-body), начертания 400 и 650; брейкпоинт 700 px — как в styles.css.
 */

/* ---------- Карточка «один день»: белая, с тонкой рамкой, как таблицы кейса ---------- */
.oz-day { padding: 18px 22px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.oz-row + .oz-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.oz-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.oz-row-head b { font-weight: 650; color: var(--ink); }
.oz-row.is-after .oz-row-head b { color: var(--accent); }

/* ---------- Клетки: 40 в ряд; на узком экране — две строки по 20 ---------- */
.oz-cells { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.oz-cells > span, .oz-key { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--faint); }
.oz-cells > .is-auto, .oz-key.is-auto { background: var(--accent); }
.oz-cells > .is-checked, .oz-key.is-checked { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--field-border); }

/* ---------- Легенда с числами под строкой «Стало» ---------- */
.oz-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: var(--fs-small); line-height: 1.4; }
.oz-legend li { display: flex; align-items: flex-start; gap: 8px; }
.oz-key { flex: none; width: 10px; margin-top: 5px; }
.oz-legend b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oz-caption { margin-top: 10px; }

/* ---------- Адаптив: тот же брейкпоинт, что в styles.css ---------- */
@media (max-width: 700px) {
  .oz-day { padding: 14px 14px 16px; }
  .oz-row + .oz-row { margin-top: 12px; padding-top: 12px; }
  .oz-cells { grid-template-columns: repeat(20, minmax(0, 1fr)); }
  .oz-legend { flex-direction: column; gap: 4px; margin-top: 8px; }
}

/*
 * Тот же кейс, блок «02 / Что сделали»: живые экраны помощника ЮУКС.
 * .oz-proof — подблок под линией; .oz-shot — снимок-ссылка в белой рамке, по клику открывается целиком
 * (оба класса используются и в кейсе чат-ботов).
 * .oz-pair — в одну строку фото → таблица (.oz-photo) и тот же помощник в MAX (.oz-max, телефон 300 px);
 * до 960 px — друг под другом, у MAX текст слева, телефон справа; до 700 px — всё в колонку, фото обрезано по верху до 4:3.
 * Путь заявки (.oz-steps): подпись слева, снимок справа, до 960 px — подпись над снимком; превью счёта (.oz-shot-crop)
 * обрезано по строке итогов. Таблица распознанных строк — .result-table демо, строки сгруппированы по позициям.
 */
.oz-proof { margin-top: 40px; padding-top: 28px; border-top: 1px solid #cfd5c5; }
.oz-proof-head { max-width: 620px; }
.oz-proof-head p { margin-top: 6px; font-size: var(--fs-body); color: var(--muted); }
.oz-shot { display: block; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 8px rgba(27, 37, 16, .05); cursor: zoom-in; transition: border-color .15s; }
.oz-shot:hover { border-color: var(--accent); }
.oz-shot img { display: block; width: 100%; height: auto; }

.oz-pair { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px 56px; align-items: start; }
.oz-photo { display: grid; grid-template-columns: minmax(0, 280px) 56px minmax(260px, 1fr); align-items: center; margin-top: 20px; }
.oz-photo .flow-connector { padding-bottom: 0; }
.oz-photo .result-table-wrap { border: 1px solid var(--line); }
.oz-photo-table td { padding: 4px 12px; border-top: 0; font-variant-numeric: tabular-nums; }
.oz-photo-table tr.is-group td { padding-top: 8px; border-top: 1px solid #ebeee4; }
.oz-photo-table tr:first-child td { border-top: 0; }
.oz-photo-table td:first-child { font-weight: 650; }
.oz-photo-table td:last-child { white-space: nowrap; }
.oz-max .oz-shot-phone { margin-top: 20px; }
.oz-shot-phone { border-radius: 14px; }

.oz-steps { list-style: none; display: grid; gap: 28px; margin-top: 24px; }
.oz-steps li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px 40px; align-items: start; }
.oz-step-text { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; }
.oz-step-no { grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: var(--fs-small); font-weight: 650; }
.oz-step-text b { padding-top: 5px; font-size: var(--fs-body); font-weight: 650; line-height: 1.3; }
.oz-step-text p { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.oz-shot-request { max-width: 363px; }
.oz-shot-crop img { aspect-ratio: 1966 / 810; object-fit: cover; object-position: top; }

@media (max-width: 960px) {
  .oz-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .oz-photo { grid-template-columns: minmax(0, 280px) 56px minmax(0, 1fr); }
  .oz-photo .flow-connector { flex-direction: column; padding: 0; }
  .oz-photo .flow-connector > span { transform: none; }
  .oz-max { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px 40px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid #cfd5c5; }
  .oz-max .oz-shot-phone { margin-top: 0; }
  .oz-steps li { grid-template-columns: minmax(0, 1fr); }
  .oz-step-text { max-width: 620px; }
}
@media (max-width: 700px) {
  .oz-proof { margin-top: 32px; padding-top: 22px; }
  .oz-photo { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .oz-photo .flow-connector { flex-direction: row; padding: 8px 0; }
  .oz-photo .flow-connector > span { transform: rotate(90deg); }
  .oz-shot-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
  .oz-photo-table td { padding-inline: 8px; }
  .oz-max { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; padding-top: 22px; }
  .oz-shot-phone { max-width: 320px; }
  .oz-steps { gap: 24px; margin-top: 18px; }
}

/* --- chat-boty --- */
/*
 * Кейс «Чат-бот в MAX и Telegram» (СанТехМаг), блок «03 / Результат» (#rezultat): два числа с коротким
 * пояснением в правой колонке .case-split (до 700 px — друг под другом), ниже на всю ширину отчёт за неделю
 * (.oz-proof.cb-report, подпись — как у снимков чатов). Кегли — var(--fs-sum), var(--fs-body), var(--fs-small).
 */
.cb-outcome { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.cb-outcome p { font-size: var(--fs-body); line-height: 1.45; color: var(--muted); }
.cb-outcome b { display: block; margin-bottom: 8px; font-size: var(--fs-sum); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 700px) {
  .cb-outcome { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cb-outcome b { margin-bottom: 4px; }
}

/* --- baza-znaniy --- */
/*
 * Кейс «ИИ-помощник юриста» (keysy/baza-znaniy.html), блок «02 / Что сделали»: две карточки «что знает помощник» —
 * законодательство и внутренние документы компании (до 700 px — друг под другом). Ниже живые экраны
 * в общей рамке .oz-proof/.oz-shot из кейса №1, в «03» — числа .cb-outcome из кейса чат-ботов.
 * Кегли — var(--fs-h3) у заголовков карточек и var(--fs-body) у строк.
 */
.yu-know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.yu-know > div { padding: 22px 24px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.yu-know ul { list-style: none; margin-top: 12px; }
.yu-know li { padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-body); line-height: 1.4; }
.yu-shot { margin-top: 20px; }

@media (max-width: 700px) {
  .yu-know { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .yu-know > div { padding: 18px 18px 6px; }
  .yu-shot { margin-top: 16px; }
}

/* --- kontrol-zvonkov --- */
/*
 * Кейс «Контроль качества звонков» (keysy/kontrol-zvonkov.html): живой экран карточки звонка в «02 / Что сделали»
 * (.qc-shot) и сводка отдела на всю ширину в «03» (.oz-proof.qc-report). Рамка снимка — общая с кейсом №1
 * (.oz-proof, .oz-proof-head, .oz-shot), здесь только отступы и подпись. Кегли — var(--fs-body) и var(--fs-small).
 */
.qc-shot { margin-top: 20px; }
.qc-report figcaption { margin-top: 10px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.qc-report figcaption b { font-weight: 650; color: var(--ink); }
.qc-result-main { font-size: var(--fs-body); font-weight: 650; line-height: 1.5; }
.qc-result-more { margin-top: 8px; font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }

@media (max-width: 700px) {
  .qc-shot { margin-top: 16px; }
}

/* --- prognoz-sprosa --- */
/*
 * Кейс «Прогноз спроса и закупок» (keysy/prognoz-sprosa.html): в «02» под шагами на всю ширину отчёт 1С
 * с прогнозом и нехваткой по магазинам (.sc-shot), в «03» главное число и ориентир по кейсам, ниже на всю
 * ширину сервис прогноза в 1С (.oz-proof.sc-report). Рамка снимка — общая с кейсом №1
 * (.oz-proof, .oz-proof-head, .oz-shot), здесь только отступы и подпись. Кегли — var(--fs-body) и var(--fs-small).
 */
.sc-shot { margin-top: 20px; }
.sc-report figcaption { margin-top: 10px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.sc-report figcaption b { font-weight: 650; color: var(--ink); }
.sc-lead { font-size: var(--fs-body); font-weight: 650; line-height: 1.5; }
.sc-bench { margin-top: 8px; font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }

@media (max-width: 700px) {
  .sc-shot { margin-top: 16px; }
}

/* Чат с ИИ-ассистентом (спека 2026-10-19-site-chat-design §4): лаунчер и панель; разметка — _includes/chat.njk, логика — chat.js.
   Кегли только --fs-body/--fs-small, анимации — transform/opacity. Лаунчер z 44 (под cookie 45), панель z 46. */
.chat-link { text-decoration: underline; text-underline-offset: 3px; }
.chat-launcher { position: fixed; z-index: 44; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: 24px; background: var(--accent); color: #fff; font-size: var(--fs-small); font-weight: 650; box-shadow: 0 16px 40px rgba(20, 24, 16, .28); transition: transform .25s, opacity .25s; }
.chat-launcher:hover { background: var(--accent-dark); }
.chat-launcher svg { flex: none; }
body.chat-aside .chat-launcher { transform: translateY(150%); opacity: 0; pointer-events: none; } /* пока кнопка калькулятора первого экрана внизу экрана (app.js, initChat) */
.chat-badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #fff; font-size: var(--fs-small); line-height: 20px; text-align: center; }
/* Панель в духе Jivo: тёмно-зелёная шапка с аватаром, пузыри с аватаром бота, подписью и временем, чипы-контуры справа, поле без рамки. */
.chat-panel { position: fixed; z-index: 46; right: 20px; bottom: 84px; width: 380px; height: min(640px, 100vh - 104px); display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: 16px; box-shadow: 0 20px 50px rgba(20, 24, 16, .26), 0 2px 6px rgba(20, 24, 16, .08); }
.chat-head { display: flex; align-items: center; gap: 4px; min-height: 68px; padding: 10px 8px 10px 14px; background: radial-gradient(130% 160% at 100% 0%, var(--accent) 0%, var(--accent-dark) 65%); color: #fff; }
.chat-head .chat-avatar { width: 40px; height: 40px; margin-right: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.chat-avatar { flex: none; border-radius: 50%; background: var(--paper); object-fit: cover; }
.chat-who { flex: 1; min-width: 0; }
.chat-title, .chat-sub { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-title { font-size: var(--fs-body); font-weight: 650; line-height: 1.25; }
.chat-sub { font-size: var(--fs-small); line-height: 1.3; color: var(--accent-on-dark); }
.chat-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.chat-icon:hover { background: rgba(255, 255, 255, .14); }
.chat-call { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); margin-right: 4px; }
.chat-head .chat-icon:focus-visible { outline-color: #fff; outline-offset: -3px; }
.chat-log { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 8px; overflow-y: auto; font-size: var(--fs-body); line-height: 1.4; }
.chat-log > :first-child { margin-top: auto; } /* короткая лента прижата к низу, как в мессенджерах */
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row-user { justify-content: flex-end; }
.chat-row .chat-avatar { width: 28px; height: 28px; }
.chat-row-bot + .chat-row-bot .chat-avatar { visibility: hidden; } /* подряд идущие сообщения бота — аватар и подпись только у первого */
.chat-row-bot + .chat-row-bot .chat-name { display: none; }
.chat-msg { max-width: calc(100% - 44px); padding: 8px 12px 6px; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-text p + p { margin-top: 8px; }
.chat-msg a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.chat-msg-bot { background: var(--paper); border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(20, 24, 16, .1); }
.chat-msg-user { max-width: 85%; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-msg-user a { color: inherit; }
.chat-msg .chat-name { margin-bottom: 2px; font-size: var(--fs-small); line-height: 1.3; color: var(--muted); }
.chat-ai { display: inline-block; margin-left: 2px; padding: 0 6px; border-radius: 8px; background: var(--line); color: var(--muted); }
.chat-time { display: block; margin-top: 2px; text-align: right; font-size: var(--fs-small); line-height: 1.2; color: var(--faint); }
.chat-msg-user .chat-time { color: rgba(255, 255, 255, .78); }
.chat-chips { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 92%; }
.chat-chips button { min-height: 40px; padding: 7px 16px; border: 1.5px solid var(--accent); border-radius: 20px; background: var(--white); font-size: var(--fs-small); color: var(--accent-dark); }
.chat-chips button:hover { background: var(--accent-soft); }
.chat-typing { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 14px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-dot 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .2s; }
.chat-typing i:nth-child(3) { animation-delay: .4s; }
.chat-typing .chat-note { margin-left: 8px; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.chat-note button { color: var(--accent-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.chat-newer { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); padding: 6px 12px; border-radius: 16px; background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 650; }
.chat-form { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 16px; border-top: 1px solid var(--line); }
.chat-form:focus-within { box-shadow: inset 0 2px 0 var(--accent); } /* поле без рамки — фокус видно по полосе над ним */
.chat-form textarea { flex: 1; min-height: 40px; max-height: 128px; padding: 9px 0; border: 0; background: transparent; font-size: var(--fs-body); line-height: 1.3; resize: none; }
.chat-form textarea:focus-visible { outline: none; }
.chat-form textarea::placeholder { color: var(--faint); }
.chat-count { position: absolute; right: 60px; top: -22px; font-size: var(--fs-small); color: var(--muted); }
.chat-send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; transition: background .15s; }
.chat-form:has(textarea:placeholder-shown) .chat-send { background: var(--paper-2); color: var(--faint); } /* пустое поле — кнопка серая, как в Jivo */
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send:hover:not(:disabled) { background: var(--accent-dark); color: #fff; }
:root { scroll-padding-bottom: 72px; } /* лаунчер не перекрывает элемент в фокусе (WCAG 2.4.11) */
@media (max-width: 960px) {
  .chat-launcher-text { display: none; }
  .chat-launcher { justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; }
}
@media (max-width: 700px) {
  :root { scroll-padding-bottom: calc(var(--bar-h) + 76px); }
  .chat-launcher { width: 52px; height: 52px; right: 12px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); }
  body.has-cookie .chat-launcher { bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 70px); } /* над баннером cookie: его высота ≤ 52 + отступ 6 */
  body.bar-hidden .chat-launcher { transform: translateY(150%); opacity: 0; pointer-events: none; } /* у формы заявки — прячется вместе с нижней панелью */
  .chat-panel { inset: 0; width: auto; height: 100vh; height: 100dvh; border-radius: 0; }
  body.chat-open { position: fixed; width: 100%; }
  body.chat-open .mobile-bar, body.chat-open .chat-launcher, body.chat-open .cookie { display: none; }
}
