/* Артель · основа демо v2.
   Направление оформления — атрибут <body data-style="…"> (blueprint | emblem | calm | strict | bright | fresh, см. factory/DESIGN.md).
   Подстройка под заказ — 1–3 токена в <style id="tokens">. Шрифты — <link rel="stylesheet" href="fonts.css"> перед этим файлом, внешних запросов нет. */

:root {
  --bg: #f6f6f3; --surface: #ffffff; --fg: #17191a; --muted: #5f6466; --line: #e2e3df;
  --accent: #2f5d50; --accent-fg: #ffffff; --accent-soft: #e4eee9; --accent-2: #f2c14e;
  --radius: 14px; --radius-sm: 8px;
  --font-head: "Onest", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --head-weight: 700; --head-tracking: -0.02em; --head-case: none; --head-lh: 1.08;
  --maxw: 1180px; --head-h: 68px; --paper: none;
}

/* ---------- Шесть направлений ---------- */
/* Чертёж: авто, ремонт, стройка, потолки, производство. Сетка миллиметровки, сигнальный оранжевый, моно-подписи. */
[data-style="blueprint"] { --bg:#eef2f6; --surface:#ffffff; --fg:#0e1b2c; --muted:#4f5f73; --line:#c7d2de; --accent:#c2410c; --accent-fg:#ffffff; --accent-soft:#fde4d8; --accent-2:#0e1b2c;
  --radius:3px; --radius-sm:2px; --font-head:"Oswald", "Arial Narrow", sans-serif; --head-weight:600; --head-tracking:0.01em; --head-case:uppercase; --head-lh:1.02;
  --paper: linear-gradient(var(--line) 1px, transparent 1px) 0 0/24px 24px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/24px 24px; }
/* Эмблема: барбершопы, тату, детейлинг, мастерские с характером. Тёмный фон, латунь, антиква. */
[data-style="emblem"] { --bg:#121110; --surface:#1c1b19; --fg:#f0eadf; --muted:#a8a194; --line:#34312c; --accent:#c9a45c; --accent-fg:#121110; --accent-soft:#2b2519; --accent-2:#f0eadf;
  --radius:2px; --radius-sm:2px; --font-head:"Cormorant Garamond", Georgia, serif; --head-weight:700; --head-tracking:0; --head-lh:1.0; }
/* Спокойное: медицина, психология, йога, красота. Шалфей, крупная антиква, мягкие углы. */
[data-style="calm"] { --bg:#edf2ef; --surface:#ffffff; --fg:#1b2925; --muted:#53655f; --line:#d6e1dc; --accent:#2c6a5d; --accent-fg:#ffffff; --accent-soft:#d9e9e3; --accent-2:#c98b6b;
  --radius:22px; --radius-sm:14px; --font-head:"Cormorant Garamond", Georgia, serif; --head-weight:600; --head-tracking:-0.01em; --head-lh:1.02; }
/* Строгое: b2b, юристы, бухгалтерия, разборы и аудиты. Плотный гротеск, кобальт, цифры моноширинным. */
[data-style="strict"] { --bg:#f5f5f2; --surface:#ffffff; --fg:#111316; --muted:#585d66; --line:#dfe0dc; --accent:#1d3fc4; --accent-fg:#ffffff; --accent-soft:#e3e8fb; --accent-2:#111316;
  --radius:4px; --radius-sm:3px; --font-head:"Onest", system-ui, sans-serif; --head-weight:700; --head-tracking:-0.035em; }
/* Яркое: детские школы, кружки, спорт, фитнес. Широкий гротеск, фиолетовый + жёлтый, круглые углы. */
[data-style="bright"] { --bg:#fff8ee; --surface:#ffffff; --fg:#1f1837; --muted:#655c7c; --line:#efe1cc; --accent:#6a3cf0; --accent-fg:#ffffff; --accent-soft:#ece5ff; --accent-2:#ffb21f;
  --radius:26px; --radius-sm:16px; --font-head:"Unbounded", system-ui, sans-serif; --font-body:"Onest", system-ui, sans-serif; --head-weight:700; --head-tracking:-0.02em; --head-lh:1.1; }
/* Свежее: доставка, клининг, магазины, еда. Белый, сочный зелёный, плотный гротеск. */
[data-style="fresh"] { --bg:#ffffff; --surface:#f2f5ee; --fg:#0f1510; --muted:#566057; --line:#e1e6dc; --accent:#157a3a; --accent-fg:#ffffff; --accent-soft:#dcf5c4; --accent-2:#c7f36b;
  --radius:18px; --radius-sm:12px; --font-head:"Onest", system-ui, sans-serif; --font-body:"Onest", system-ui, sans-serif; --head-weight:800; --head-tracking:-0.045em; }

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--paper), var(--bg); background-color: var(--bg); color: var(--fg); font: 16px/1.6 var(--font-body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); text-transform: var(--head-case); line-height: var(--head-lh); margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(27px, 3.6vw, 42px); }
h3 { font-size: 20px; line-height: 1.2; }
[data-style="bright"] h1 { font-size: clamp(30px, 4.6vw, 54px); }
[data-style="calm"] h1, [data-style="emblem"] h1 { font-size: clamp(40px, 6.2vw, 76px); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: 32px; }
.section--band { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink { background: var(--fg); color: var(--bg); }
.section--ink .muted, .section--ink .lead { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid > * { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.sec-head { display: grid; gap: 6px; margin-bottom: 28px; max-width: 760px; }
.sec-head h2 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.ex-block, .slip.ex-block { padding-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: max(var(--radius-sm), 4px); border: 0; background: var(--accent); color: var(--accent-fg); font: 700 16px/1 var(--font-body);
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
[data-style="bright"] .btn, [data-style="fresh"] .btn, [data-style="calm"] .btn { border-radius: 999px; }
[data-style="blueprint"] .btn, [data-style="emblem"] .btn { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn--ghost:hover { box-shadow: none; border-color: var(--fg); }
.btn--wide { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); font-size: 13px; font-weight: 600; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Плашка черновика (обязательна) ---------- */
.draft-bar { background: #17191a; color: #f4f3ef; font-size: 13px; line-height: 1.35; }
.draft-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.draft-bar b { font-weight: 700; }
[data-style="emblem"] .draft-bar { background: #c9a45c; color: #121110; }

/* ---------- Пример ---------- */
.ex { background-image: linear-gradient(transparent 92%, currentColor 92%); background-size: 100% 1.15em; }
.ex::after { content: "пример"; display: inline-block; margin-left: .35em; padding: 0 .35em; border-radius: 4px;
  font: 700 10px/1.6 var(--font-body); letter-spacing: .03em; text-transform: uppercase; vertical-align: .35em; background: #fff1b8; color: #5c4a00; }
.ex-block { position: relative; }
.ex-block::before { content: "пример"; position: absolute; top: 10px; right: 10px; z-index: 2; padding: 0 .45em; border-radius: 4px;
  font: 700 10px/1.7 var(--font-body); text-transform: uppercase; background: #fff1b8; color: #5c4a00; }

/* ---------- Шапка ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; min-width: 0; }
.logo__mark { width: 42px; height: 42px; flex: none; color: var(--accent); }
.logo__text { display: grid; line-height: 1.1; min-width: 0; }
.logo__name { font: var(--head-weight) 19px/1.05 var(--font-head); letter-spacing: var(--head-tracking); text-transform: var(--head-case); white-space: nowrap; }
[data-style="calm"] .logo__name, [data-style="emblem"] .logo__name { font-size: 23px; }
.logo__desc { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { display: none; gap: 22px; margin-left: auto; }
.menu a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--accent); }
.head-cta { display: none; align-items: center; gap: 14px; }
.head-phone { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.burger { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.site-head.is-open .menu { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; gap: 0; }
.site-head.is-open .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .menu, .site-head.is-open .menu { display: flex; position: static; padding: 0; border: 0; background: none; gap: 22px; } .site-head.is-open .menu a { padding: 0; border: 0; } .head-cta { display: flex; } .burger { display: none; } }

/* Кнопка главного действия на телефоне — всегда под рукой */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mobile-cta .btn { width: 100%; }
body:has(.mobile-cta) { padding-bottom: 76px; }
@media (min-width: 960px) { .mobile-cta { display: none; } body:has(.mobile-cta) { padding-bottom: 0; } }

/* ---------- Первый экран ---------- */
.hero { display: grid; gap: 28px; grid-template-areas: "text" "demo" "points"; padding-block: clamp(28px, 5vw, 64px); }
.hero__text { grid-area: text; min-width: 0; } .hero__demo { grid-area: demo; min-width: 0; } .hero__points { grid-area: points; min-width: 0; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.08fr .92fr; grid-template-areas: "text demo" "points demo"; align-items: start; column-gap: 56px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.fact { padding: 14px 16px 0 0; }
.fact b { display: block; font: var(--head-weight) 22px/1.1 var(--font-head); letter-spacing: var(--head-tracking); text-transform: var(--head-case); }
.fact span { font-size: 14px; color: var(--muted); }
[data-style="blueprint"] .hero__demo { position: relative; }
[data-style="blueprint"] .hero__demo::before { content: attr(data-sheet); position: absolute; top: -22px; left: 0; font: 600 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---------- Шаги «как работаем» ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.steps li { counter-increment: st; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font: 700 13px/1 var(--font-mono); color: var(--accent); margin-bottom: 14px; letter-spacing: .06em; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 28px/1 var(--font-body); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ---------- Услуги и тарифы ---------- */
.services { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.service { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.service__price { font: var(--head-weight) 22px/1.1 var(--font-head); letter-spacing: var(--head-tracking); margin-top: auto; }
.tariffs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.tariff { display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tariff--main { border: 2px solid var(--accent); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 16%, transparent); }
.tariff__name { font: var(--head-weight) 22px/1.1 var(--font-head); letter-spacing: var(--head-tracking); text-transform: var(--head-case); margin: 0; }
.tariff__price { font: var(--head-weight) clamp(30px, 3vw, 38px)/1 var(--font-head); letter-spacing: var(--head-tracking); }
.tariff__price small { font: 500 14px/1.3 var(--font-body); color: var(--muted); letter-spacing: 0; display: block; margin-top: 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft);
  -webkit-mask: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks li.no { color: var(--muted); text-decoration: line-through; }
.checks li.no::after { display: none; }

/* ---------- Форма заявки ---------- */
.lead-box { display: grid; gap: 28px; }
@media (min-width: 900px) { .lead-box { grid-template-columns: .9fr 1.1fr; align-items: start; gap: 56px; } }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg); font: 16px/1.3 var(--font-body); }
[data-style="emblem"] input, [data-style="emblem"] select, [data-style="emblem"] textarea { background: #151412; }
textarea { min-height: 100px; resize: vertical; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.consent input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; accent-color: var(--accent); }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }
.thanks { display: grid; gap: 8px; padding: 26px; border-radius: var(--radius); background: var(--accent-soft); }
.thanks h3 { margin: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line);
  border-radius: max(var(--radius-sm), 6px); background: var(--surface); cursor: pointer; font-size: 15px; color: var(--fg); }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: auto; min-height: 0; accent-color: var(--accent); }

/* ---------- Подвал ---------- */
.site-foot { background: var(--fg); color: var(--bg); padding-block: 48px 28px; margin-top: 0; }
[data-style="emblem"] .site-foot { background: #0b0a09; color: var(--fg); border-top: 1px solid var(--line); }
.site-foot a { color: inherit; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid > * { min-width: 0; }
.site-foot .logo { color: inherit; }
.site-foot .logo__desc, .foot-muted { color: color-mix(in srgb, currentColor 62%, transparent); }
.foot-title { font: 600 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; color: color-mix(in srgb, currentColor 62%, transparent); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
.foot-bottom > span, .foot-bottom > div { color: color-mix(in srgb, currentColor 62%, transparent); }
.site-foot .ex::after, .section--ink .ex::after { background: #fff1b8; color: #5c4a00; }

/* ---------- Уведомление и окно ---------- */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80; max-width: 520px; margin: 0 auto; padding: 14px 16px;
  border-radius: var(--radius-sm); background: #17191a; color: #f4f3ef; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(160%); transition: transform .25s ease; }
.toast.is-on { transform: none; }
body:has(.mobile-cta) .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { body:has(.mobile-cta) .toast { bottom: 16px; } }
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15,15,14,.6); }
.modal.is-on { display: flex; }
.modal__box { width: 100%; max-width: 440px; background: var(--surface); color: var(--fg); border-radius: var(--radius); padding: 24px; }

/* ---------- Бот в рамке телефона ---------- */
.phone { width: 100%; max-width: 370px; margin: 0 auto; border-radius: 40px; border: 11px solid #121314; background: #e9edf1; overflow: hidden; box-shadow: 0 30px 60px rgba(10,15,25,.22); }
.phone__top { background: var(--accent); color: var(--accent-fg); padding: 12px 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.phone__ava { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent-fg) 22%, transparent); display: grid; place-items: center; }
.phone__ava svg { width: 22px; height: 22px; }
.phone__sub { display: block; font-size: 12px; font-weight: 500; opacity: .8; }
.chat { height: 380px; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; background: #fff; color: #17191a; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg--me { align-self: flex-end; background: var(--accent); color: var(--accent-fg); border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.chat__keys { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 14px; background: #e9edf1; min-height: 64px; }
.chat__keys button { min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #c6cdd6; background: #fff; color: #17191a; font: 600 14.5px/1 var(--font-body); cursor: pointer; }
.chat__input { display: flex; gap: 6px; width: 100%; }
.chat__input input { min-height: 42px; padding: 8px 12px; background: #fff; color: #17191a; border-color: #c6cdd6; }
.chat__input button { flex: none; }

/* Карточка «так увидит менеджер» */
.crm { font-size: 14.5px; }
.crm__head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.crm__head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.crm__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.crm__row > span { color: var(--muted); } .crm__row > b { text-align: right; }
.crm__row:last-child { border-bottom: 0; }
.crm__empty { color: var(--muted); font-size: 14px; }

/* ---------- Калькулятор и заказ-наряд ---------- */
.calc { display: grid; gap: 18px; }
.calc .field > label, .calc__label { font-size: 14px; font-weight: 700; color: var(--fg); }
.calc input[type="range"] { min-height: 32px; padding: 0; border: 0; background: none; accent-color: var(--accent); }
.calc__value { font: 700 15px/1 var(--font-mono); color: var(--accent); }
.slip { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 20px 18px; font-family: var(--font-mono); font-size: 13.5px;
  box-shadow: 0 16px 40px rgba(10,20,40,.08); }
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, var(--surface) 6.5px) 0 0/12px 8px repeat-x; }
.slip__head { display: flex; justify-content: space-between; gap: 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; color: var(--muted); padding-bottom: 10px; border-bottom: 1.5px dashed var(--line); }
.slip__rows { display: grid; gap: 0; padding: 8px 0; }
.slip__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.slip__row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.slip__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.slip__total b { font: var(--head-weight) clamp(26px, 3vw, 34px)/1 var(--font-head); letter-spacing: var(--head-tracking); font-variant-numeric: tabular-nums; }
.slip .btn { margin-top: 14px; width: 100%; font-family: var(--font-body); }

/* ---------- Расписание ---------- */
.sched { display: grid; gap: 0; }
.sched__day { font: 600 12px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 0 6px; }
.slot { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.slot__time { font: 700 16px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.slot__name b { display: block; } .slot__name span { font-size: 14px; color: var(--muted); }
.slot .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* ---------- Разбор ---------- */
.verdict { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
@media (min-width: 700px) { .verdict { grid-template-columns: repeat(3, 1fr); } }
.verdict > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .verdict > div { border-bottom: 0; border-right: 1px solid var(--line); } .verdict > div:last-child { border-right: 0; } }
.verdict small { display: block; font: 600 11.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.verdict b { font: var(--head-weight) 20px/1.2 var(--font-head); letter-spacing: var(--head-tracking); }
.zone { display: grid; gap: 12px; padding-block: 8px 28px; }
.zone__title { display: flex; align-items: baseline; gap: 12px; font: var(--head-weight) 22px/1.2 var(--font-head); letter-spacing: var(--head-tracking); border-bottom: 2px solid var(--fg); padding-bottom: 10px; margin: 0; }
.zone__title span { font: 600 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.issue { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.issue__n { grid-row: span 3; font: 700 28px/1 var(--font-mono); color: var(--muted); }
.issue__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.issue__why { color: var(--muted); font-size: 15px; margin: 0; }
.issue__fix { margin: 0; font-size: 15px; } .issue__fix b { color: var(--accent); }
.sev { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 11px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .04em; }
.sev--high { background: #fde0dc; color: #8a1c10; }
.sev--mid { background: #fff0c4; color: #6b4e00; }
.sev--low { background: #dff0e4; color: #1f4f2c; }
.priority { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: pr; }
.priority li { counter-increment: pr; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.priority li::before { content: counter(pr); font: 700 20px/1 var(--font-mono); color: var(--accent); }
.priority li > span:last-child { font: 600 13px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Подпись демо внутри подвала ---------- */
.demo-credit a { color: inherit; }

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