[hidden] { display: none !important; }
:root {
  --green: #e0620d;
  --green-2: #3b4350;
  --on-green: #ffffff;
  --bg: #f4f4f5;
  --card: #ffffff;
  --text: #1c1c1f;
  --muted: #6b6b72;
  --line: #e2e2e6;
  --red: #c41c25;
  --chip: #ececef;
  --bubble-bot: #ffffff;
  --bubble-me: #fbe8da;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .05);
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --green: #ff8a3d;
  --green-2: #9aa4b2;
  --on-green: #1a0e05;
  --bg: #121214;
  --card: #1d1d20;
  --text: #f0f0f2;
  --muted: #9d9da5;
  --line: #2c2c31;
  --red: #ff5a61;
  --chip: #2a2a2f;
  --bubble-bot: #1d1d20;
  --bubble-me: #3a2616;
  --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
@media (min-width: 760px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

.demo-banner { position: sticky; top: 0; z-index: 30; background: var(--green); color: var(--on-green); font-size: 12px; line-height: 1.35; padding: 7px 16px; text-align: center; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.demo-banner + .topbar { top: var(--banner-h, 44px); }
.topbar-title { flex: 1; font-weight: 700; font-size: 17px; }
.topbar-title small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 20px; line-height: 1; display: grid; place-items: center; }

.screen { flex: 1; padding: 14px 16px 96px; outline: none; }
.tabbar { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { border: 0; background: none; padding: 8px 4px 10px; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--green); font-weight: 600; }
.tab .badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }

h2 { font-size: 20px; margin: 4px 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 8px; line-height: 1.45; }
.muted { color: var(--muted); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.hero { background: var(--green); color: var(--on-green); border: 0; }
.hero .muted { color: inherit; opacity: .8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 12px 16px; background: var(--green); color: var(--on-green); font-weight: 600; font-size: 15px; width: 100%; }
.btn.light { background: var(--on-green); color: var(--green); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn[disabled] { opacity: .45; cursor: default; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.list { display: flex; flex-direction: column; gap: 8px; }
.opt { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; width: 100%; }
.opt.sel { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.opt .grow { flex: 1; }
.opt b { display: block; font-size: 15px; }
.opt .sub { font-size: 12.5px; color: var(--muted); }
.opt .price { font-weight: 700; white-space: nowrap; }
.opt.placeholder { border-style: dashed; color: var(--muted); }
.count { background: var(--chip); border-radius: 10px; padding: 3px 8px; font-size: 12px; font-weight: 600; }
.steps { display: flex; gap: 4px; margin: 0 0 12px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--green); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 12px; font-size: 14px; text-align: center; }
.chip small { display: block; font-size: 11px; color: var(--muted); }
.chip.sel { background: var(--green); color: var(--on-green); border-color: var(--green); }
.chip.sel small { color: inherit; opacity: .8; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 0; font-size: 14px; }
.slot.sel { background: var(--green); color: var(--on-green); border-color: var(--green); }
.slot[disabled] { opacity: .35; text-decoration: line-through; cursor: default; }
.sum { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sum:last-child { border-bottom: 0; }
.upsell { border: 1px dashed var(--green); background: color-mix(in srgb, var(--green) 7%, var(--card)); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.cert { background: repeating-linear-gradient(135deg, var(--green) 0 14px, var(--green-2) 14px 28px); color: var(--on-green); border: 0; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .12em; background: rgba(0,0,0,.18); border-radius: 10px; padding: 8px 12px; display: inline-block; margin: 6px 0; }
.note { font-size: 12px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 8px; margin: 8px 0; }
.demo-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Чат бота */
.chat { display: flex; flex-direction: column; gap: 8px; }
.bot-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-weight: 800; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; box-shadow: var(--shadow); border: 1px solid var(--line); white-space: pre-line; }
.msg.bot { background: var(--bubble-bot); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--bubble-me); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg .kb { display: grid; gap: 6px; margin-top: 8px; grid-template-columns: 1fr 1fr; }
.msg .kb button { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px; font-size: 13px; font-weight: 600; color: var(--green); }
.msg .kb button.wide { grid-column: 1 / -1; background: var(--green); color: var(--on-green); border-color: var(--green); }
.msg.new { animation: pop .35s ease; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted); background: var(--chip); border-radius: 10px; padding: 3px 10px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Наколёсах: схема сервисов, чекбокс, звёзды */
.map { padding: 8px; }
.map svg { display: block; width: 100%; height: auto; max-height: 300px; }
.map .mkad { fill: color-mix(in srgb, var(--green) 5%, var(--card)); stroke: var(--muted); stroke-width: .6; stroke-dasharray: 2 1.2; }
.map .ttk { fill: none; stroke: var(--line); stroke-width: .5; }
.map .center-dot { fill: var(--muted); }
.map .map-l { font-size: 3px; fill: var(--muted); text-anchor: middle; }
.pin { cursor: pointer; }
.pin circle { fill: var(--card); stroke: var(--green); stroke-width: 1.4; }
.pin text { font-size: 3.2px; fill: var(--text); text-anchor: middle; font-weight: 600; }
.pin.sel circle { fill: var(--green); }
.opt .price small { display: block; font-size: 11px; font-weight: 600; color: var(--green); text-align: right; }
.check { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 0; font-size: 14px; font-weight: 600; text-align: left; }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--green); display: grid; place-items: center; color: var(--on-green); font-size: 14px; }
.check.on .box { background: var(--green); }
.stars { display: flex; gap: 6px; }
.stars button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; font-size: 22px; color: #f5a623; padding: 4px 10px; }
.sum.col { flex-direction: column; gap: 2px; }
.sum.col b { font-size: 13px; }
.btn.light-outline { margin-top: 8px; background: transparent; border: 1px dashed var(--green); color: var(--green); font-size: 13.5px; padding: 9px 12px; }
/* --- Запись на одном экране --- */
.sec { margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.sec b { font-size: 15px; }
.sec .n { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--on-green); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sec.done .n { background: var(--green-2); color: #fff; }
.compare { font-size: 13px; line-height: 1.45; }
.compare .was { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.free { color: var(--green-2); font-weight: 700; }
.slot .off { display: block; font-size: 10px; color: var(--green); font-weight: 700; }
.slot.sel .off { color: inherit; }
.sticky-sum { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 0 -4px 18px rgba(0,0,0,.08); margin-top: 16px; }
.sticky-sum .line { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress { height: 8px; border-radius: 6px; background: var(--chip); overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--green); }
.promo { display: flex; gap: 12px; align-items: flex-start; }
.promo .ico { font-size: 22px; line-height: 1; }
.phone-ok { font-size: 13px; color: var(--green-2); margin-bottom: 8px; }
.hero .tag { background: rgba(255,255,255,.22); color: #fff; padding: 3px 8px; border-radius: 6px; }
