/* =========================================================
   Belvaloshka — дизайн-система
   Цвета задаются токенами; тёмная тема — отдельный набор,
   а не инверсия. Менять оттенки только здесь.
   ========================================================= */
/* Светлая тема — основная. Тёмная — отдельный набор токенов, не инверсия. */
:root {
  --cornflower: #6495ED;
  --royal: #4169E1;
  --night: #10162B;
  --accent: #9DABFF;

  --bg: #F6F8FD;
  --bg-alt: #EEF2FB;
  --surface: #FFFFFF;
  --surface-2: #F5F7FD;
  --surface-3: #E6EBF8;
  --hover: #EEF2FD;
  --text: #18213A;
  /* #78829B из брифа даёт на светлом фоне контраст ~3.6:1 — мало для текста; взят более тёмный оттенок */
  --muted: #566180;
  --border: #E1E7F5;
  --border-strong: #C5D2F2;
  --primary: #4169E1;
  --primary-hover: #3359CC;
  --on-primary: #FFFFFF;
  --accent-ink: #3459CF;
  --link: #3157CC;
  --chip: #EAF0FF;
  --chip-text: #2C4BB0;
  --input-bg: #FFFFFF;
  --input-border: #C9D4EE;
  --grid-line: #DCE3F2;
  --sheet-head: #F0F3FB;
  --chart-1: #4169E1;
  --chart-2: #9DB2F5;
  --chart-grid: #E4E9F5;
  --ok: #157A4C;
  --ok-bg: #E5F5EC;
  --warn: #935400;
  --warn-bg: #FFF1DC;
  --danger: #B42D44;
  --danger-bg: #FDE8EC;
  --shadow-sm: 0 1px 2px rgba(30, 50, 110, .05);
  --shadow: 0 1px 2px rgba(30, 50, 110, .04), 0 8px 24px rgba(52, 89, 207, .07);
  --shadow-lg: 0 2px 6px rgba(30, 50, 110, .04), 0 18px 48px rgba(52, 89, 207, .12);
  --glow-1: rgba(100, 149, 237, .22);
  --glow-2: rgba(157, 171, 255, .20);
  --grad: linear-gradient(120deg, #4169E1 0%, #6495ED 60%, #8E9DFF 100%);
  --focus: #4169E1;
  --header-bg: rgba(246, 248, 253, .82);
  --nav-bg: rgba(255, 255, 255, .92);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --header-h: 68px;
  --bottomnav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

/* Тёмная тема: глубокая сине-графитовая гамма */
:root[data-theme="dark"] {
  --bg: #111827;
  --bg-alt: #151E30;
  --surface: #1C2940;
  --surface-2: #213049;
  --surface-3: #2A3B58;
  --hover: #2A3B58;
  --text: #F3F6FF;
  --muted: #B1BDD2;
  --border: #34435C;
  --border-strong: #46597A;
  --primary: #3F6CDF;
  --primary-hover: #4E7BEB;
  --on-primary: #FFFFFF;
  --accent-ink: #8BAEFF;
  --link: #9DBBFF;
  --chip: #26385A;
  --chip-text: #C4D4FF;
  --input-bg: #151E30;
  --input-border: #3E4F6D;
  --grid-line: #34435C;
  --sheet-head: #24334D;
  --chart-1: #7FA2FA;
  --chart-2: #4A6396;
  --chart-grid: #2C3A54;
  --ok: #6FD3A0;
  --ok-bg: #1D3D36;
  --warn: #F3C173;
  --warn-bg: #44371F;
  --danger: #FF9AAA;
  --danger-bg: #4A2632;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px rgba(4, 10, 25, .35);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .3), 0 22px 56px rgba(4, 10, 25, .45);
  --glow-1: rgba(70, 110, 220, .16);
  --glow-2: rgba(120, 100, 230, .10);
  --grad: linear-gradient(120deg, #6F93F5 0%, #9DB5FF 100%);
  --focus: #9DBBFF;
  --header-bg: rgba(17, 24, 39, .84);
  --nav-bg: rgba(28, 41, 64, .94);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-b));
}
body.theme-anim, body.theme-anim * {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; text-align: center; background: var(--warn-bg); color: var(--text); z-index: 90; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px rgba(65, 105, 225, .22); }
.btn--primary:focus-visible { box-shadow: 0 0 0 4px var(--chip); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--hover); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); letter-spacing: 0; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 10px; }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.topnav { display: none; gap: 4px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.topnav a:hover { color: var(--text); background: var(--chip); }
.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); display: grid; place-items: center; position: relative; overflow: hidden;
}
.theme-toggle .icon { position: absolute; width: 20px; height: 20px; transition: transform .35s ease, opacity .25s ease; }
:root[data-theme="light"] .theme-toggle .icon--moon { transform: translateY(24px) rotate(-40deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .icon--sun { transform: translateY(-24px) rotate(40deg); opacity: 0; }
.theme-toggle:hover { border-color: var(--border-strong); }

/* ---------- секции ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-top: 10px; }
.section__sub { color: var(--muted); font-size: 17px; margin-top: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-1), transparent 70%), radial-gradient(closest-side at 30% 70%, var(--glow-2), transparent 70%);
  filter: blur(20px); opacity: .9; }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6.4vw, 66px); font-weight: 800; margin-top: 16px; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin-top: 20px; max-width: 580px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 480px; }

.hero__visual { position: relative; min-height: 440px; }
.mock, .float { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mock--panel { position: relative; margin: 0 auto; max-width: 440px; padding: 18px; z-index: 1; }
.mock__head { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.mock__title { font-weight: 700; font-size: 14px; margin-left: 8px; }
.mock__badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--chip-text); }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mock__stats b { display: block; font-size: 22px; font-weight: 800; }
.mock__stats span { font-size: 12px; color: var(--muted); }
.mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin: 16px 0; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.mock__chart i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad); opacity: .85; height: 10%; transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.mock__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock__slots li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; font-size: 13px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); }
.mock__slots time { font-weight: 800; }
.mock__slots .free { color: var(--muted); font-style: italic; }
.mock__slots em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
em.ok, .st-ok { background: var(--ok-bg); color: var(--ok); }
em.wait, .st-wait { background: var(--warn-bg); color: var(--warn); }

.float { position: absolute; z-index: 2; padding: 12px 14px; border-radius: 16px; font-size: 13px; transition: transform .3s ease; }
.float:hover { transform: translateY(-4px); }
.float--tg { width: 210px; left: -4px; bottom: 0; }
.tg__head { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 8px; }
.tg__head .icon { color: var(--accent-ink); }
.tg__msg { padding: 6px 10px; border-radius: 12px; margin-bottom: 6px; width: fit-content; max-width: 100%; }
.tg__msg--in { background: var(--surface-2); }
.tg__msg--out { background: var(--primary); color: var(--on-primary); margin-left: auto; }
.tg__keys { display: flex; gap: 6px; margin-bottom: 6px; }
.tg__keys span { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--accent-ink); font-weight: 700; font-size: 12px; }
.float--notify { display: flex; gap: 10px; align-items: flex-start; right: -6px; top: 6px; width: 230px; }
.float--notify .icon { color: var(--accent-ink); margin-top: 2px; }
.float--notify b { display: block; font-size: 13px; }
.float--notify span { color: var(--muted); font-size: 12px; }
.float--stock { right: 4px; bottom: 34px; width: 190px; }
.stock__row { display: flex; justify-content: space-between; font-size: 12px; }
.stock__row b.low { color: var(--danger); }
.stock__bar { height: 6px; border-radius: 4px; background: var(--surface-3); margin: 5px 0 9px; overflow: hidden; }
.stock__bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.stock__bar i.w-20 { width: 20%; background: var(--danger); }
.stock__bar i.w-80 { width: 80%; }

/* ---------- услуги ---------- */
.services { display: grid; gap: 20px; }
.svc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.svc__art { position: relative; height: 150px; background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); overflow: hidden; }
.svc__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc__body h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc__body h3 .icon { color: var(--accent-ink); width: 24px; height: 24px; }
.svc__body > p { color: var(--muted); }
.svc__body .btn { margin-top: auto; align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border-radius: 5px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--primary); }
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: calc(.45em + 3px); width: 5px; height: 7px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.svc .ticks { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.svc:hover .ticks, .svc:focus-within .ticks, .svc.is-open .ticks { max-height: 400px; }
@media (hover: none) { .svc .ticks { max-height: none; } }

/* иллюстрации карточек */
.svc__art--tg { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 26px; }
.bubble { font-size: 13px; padding: 7px 12px; border-radius: 14px; width: fit-content; box-shadow: var(--shadow-sm); }
.bubble--in { background: var(--surface); }
.bubble--out { background: var(--primary); color: var(--on-primary); margin-left: auto; }
.chips { display: flex; gap: 6px; }
.chips i { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--accent-ink); }
.svc__art--web { padding: 20px 26px; display: grid; gap: 8px; align-content: center; }
.wf { display: block; border-radius: 6px; background: var(--surface); }
.wf--nav { height: 10px; width: 100%; }
.wf--h { height: 14px; width: 60%; background: var(--grad); opacity: .8; }
.wf--p { height: 8px; width: 80%; }
.wf--btn { height: 16px; width: 70px; background: var(--primary); }
.wf--cards { display: flex; gap: 8px; background: none; }
.wf--cards i { flex: 1; height: 26px; border-radius: 6px; background: var(--surface); }
.svc__art--app { display: grid; place-items: center; }
.phone { width: 78px; height: 132px; border-radius: 16px; background: var(--surface); border: 3px solid var(--text); opacity: .95; padding: 10px 8px; display: grid; gap: 6px; align-content: start; transform: translateY(18px); }
.phone i { display: block; border-radius: 5px; }
.phone__bar { height: 7px; width: 60%; background: var(--surface-3); }
.phone__card { height: 28px; background: var(--grad); opacity: .85; }
.phone__card--b { opacity: .45; }
.phone__tab { height: 10px; background: var(--surface-3); margin-top: 12px; }
.svc__art--flow { padding: 0; }
.flowlines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flowlines path { fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .8; }
.node { position: absolute; z-index: 1; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.node--a { left: 8%; top: 18%; } .node--b { left: 8%; bottom: 18%; } .node--c { right: 8%; top: 18%; } .node--d { right: 8%; bottom: 18%; background: var(--primary); color: var(--on-primary); }
.svc__art--custom { display: grid; place-items: center; }
.puzzle { display: grid; grid-template-columns: 34px 34px; gap: 6px; }
.puzzle i { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-sm); }
.puzzle i:nth-child(2) { background: var(--grad); }
.puzzle i:nth-child(3) { background: var(--accent); opacity: .7; }

/* ---------- возможности ---------- */
.features { display: grid; gap: 20px; }
.features__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; scroll-snap-type: x proximity; }
.features__tabs button {
  display: flex; align-items: center; gap: 10px; flex: none; scroll-snap-align: start;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 15px; text-align: left; color: var(--text); min-height: 48px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.features__tabs button .icon { color: var(--accent-ink); }
.features__tabs button:hover { border-color: var(--border-strong); }
.features__tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--accent-ink); color: var(--on-primary); }
.features__tabs button[aria-selected="true"] .icon { color: inherit; }
.fpanel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); animation: fade .35s ease; }
.fpanel h3 { font-size: 24px; }
.fpanel__lead { color: var(--muted); margin: 8px 0 20px; font-size: 17px; }
.ticks--2 { gap: 10px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--chip); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- для кого ---------- */
.industries { display: grid; gap: 20px; }
.ind__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ind {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; min-height: 96px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: left; font-weight: 700; font-size: 15px; color: var(--text);
  transition: border-color .2s, transform .2s, background-color .2s;
}
.ind .icon { width: 26px; height: 26px; color: var(--accent-ink); }
.ind:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.ind[aria-selected="true"] { border-color: var(--accent-ink); background: var(--chip); box-shadow: inset 0 0 0 1px var(--primary); }
.ind__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.ind__panel h3 { font-size: 22px; }
.ind__panel .who { color: var(--muted); margin: 8px 0 18px; }
.ind__panel h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); margin-bottom: 10px; }
.ind__panel .warn { margin-top: 16px; font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--text); }
.ind__ex { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ind__ex li { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.cta-strip { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--border-strong); }
.cta-strip p { font-size: 17px; font-weight: 600; }

/* ---------- демо ---------- */
.demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-lg); }
.demo__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.demo__flag { margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; min-height: 38px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg button[aria-checked="true"] { background: var(--surface-3); }
.demo__grid { display: grid; gap: 12px; }
.card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.card__title .icon { color: var(--accent-ink); width: 18px; height: 18px; }
.demo__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; background: none; border: 0; padding: 0; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.kpi span { font-size: 13px; color: var(--muted); display: block; }
.kpi b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slots li { display: grid; grid-template-columns: 50px 1fr; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.slots time { font-weight: 800; grid-row: span 2; }
.slots .who { font-weight: 700; }
.slots .what { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.slots .st { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.slots li.is-free { border-style: dashed; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; min-width: 3px; border-radius: 4px 4px 2px 2px; background: var(--grad); position: relative; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.bars .bar:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px); font-size: 11px; font-weight: 700; background: var(--text); color: var(--bg); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.bars__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.staff { display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--chip); color: var(--chip-text); }
.person b { display: block; font-size: 14px; }
.person span { font-size: 12px; color: var(--muted); }
.load { width: 60px; text-align: right; font-size: 12px; font-weight: 700; }
.load i { display: block; height: 5px; border-radius: 3px; background: var(--surface-3); margin-top: 4px; overflow: hidden; }
.load i::after { content: ""; display: block; height: 100%; width: var(--w, 50%); background: var(--grad); }
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 320px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: 0; }
.stock { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stock li { font-size: 14px; }
.stock .row { display: flex; justify-content: space-between; gap: 8px; }
.stock .row b.low { color: var(--danger); }
.stock .meter { height: 6px; border-radius: 4px; background: var(--surface-3); margin-top: 5px; overflow: hidden; }
.stock .meter i { display: block; height: 100%; border-radius: 4px; background: var(--grad); transition: width .5s ease; }
.stock .meter i.low { background: var(--danger); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.notes time { font-weight: 800; color: var(--accent-ink); flex: none; }

/* ---------- шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step__n { font-size: 14px; font-weight: 800; color: var(--accent-ink); background: var(--chip); padding: 4px 10px; border-radius: 999px; }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: var(--muted); }

/* ---------- цены ---------- */
.tiers { display: grid; gap: 18px; }
.tier { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tier--accent { border-color: var(--accent-ink); box-shadow: var(--shadow-lg); }
.tier h3 { font-size: 22px; }
.tier__price { font-size: 17px; font-weight: 800; color: var(--accent-ink); min-height: 1.6em; }
.tier__price.is-set { font-size: 30px; letter-spacing: -.02em; }
.tier__inc, .tier__extra { font-size: 14px; color: var(--muted); }
.tier__inc b, .tier__extra b { color: var(--text); }
.tier .btn { margin-top: auto; }
.pricing__note { margin-top: 22px; font-size: 14px; color: var(--muted); padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }

/* ---------- почему ---------- */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.why .icon { color: var(--accent-ink); width: 24px; height: 24px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--chip); }

/* ---------- заявка ---------- */
.order { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.order__steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; }
.order__steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--surface-3); }
.order__steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-3); color: var(--muted); }
.order__steps li.is-active, .order__steps li.is-done { color: var(--text); border-color: var(--accent-ink); }
.order__steps li.is-active span, .order__steps li.is-done span { background: var(--primary); color: var(--on-primary); }
.picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick__box { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 96px; padding: 14px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface-2); transition: border-color .2s, background-color .2s, transform .15s; position: relative; }
.pick__box .icon { color: var(--accent-ink); width: 24px; height: 24px; }
.pick__box b { font-size: 15px; line-height: 1.3; padding-right: 22px; }
.pick__req { font-size: 11px; font-weight: 700; color: var(--warn); }
.pick__box::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface); }
.pick input:checked + .pick__box { border-color: var(--accent-ink); background: var(--chip); }
.pick input:checked + .pick__box::after { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--accent-ink); }
.pick input:focus-visible + .pick__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick:hover .pick__box { border-color: var(--border-strong); }
.picked { margin-top: 16px; display: grid; gap: 8px; }
.picked__item { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--primary); font-size: 14px; animation: fade .3s ease; }
.picked__item b { display: block; margin-bottom: 2px; }
.picked__item span { color: var(--muted); }
.order__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.fields { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field__label { font-weight: 700; font-size: 14px; }
.field small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.field input[type="text"], .field input:not([type]), .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--input-border); background: var(--input-bg);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}

.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--chip); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 4px var(--danger-bg) !important; }
.field__err { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 0; }
.field__err:empty { display: none; }
.field__hint { font-size: 12px; color: var(--muted); text-align: right; }
.seg--form { display: flex; flex-wrap: wrap; width: 100%; }
.seg--form label { flex: 1; min-width: 100px; position: relative; }
.seg--form input { position: absolute; opacity: 0; }
.seg--form span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg--form input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg--form input:checked + span { background: var(--surface-3); }
.seg--form input:focus-visible + span { outline: 3px solid var(--focus); }
.chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.chosen span { padding: 6px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-text); font-size: 13px; font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 14px !important; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: 14px; }
.order__done { text-align: center; padding: 30px 10px; }
.order__done:focus { outline: none; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done__icon .icon { width: 32px; height: 32px; }
.order__done h3 { font-size: 24px; margin-bottom: 8px; }
.order__done p { color: var(--muted); margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- футер ---------- */
.footer { background: var(--night); color: #C9D1EE; padding: 56px 0 24px; }
:root[data-theme="dark"] .footer { background: #0D1422; border-top: 1px solid var(--border); }
.footer a { color: #DDE3FA; text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer .brand { color: #FFFFFF; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand p { margin-top: 12px; max-width: 320px; color: #A9B3D6; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #9DABFF; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__contacts { margin-top: 16px !important; }
.footer__contacts a { display: inline-flex; gap: 8px; align-items: center; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(157, 171, 255, .14); font-size: 14px; color: #8E99C0; }

/* ---------- нижняя панель ---------- */
.bottomnav {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  height: calc(var(--bottomnav-h) + var(--safe-b)); padding: 6px 6px calc(6px + var(--safe-b));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--border);
  transition: transform .25s ease;
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.bottomnav a .icon { width: 22px; height: 22px; }
.bottomnav a.is-active { color: var(--accent-ink); background: var(--chip); }
.bottomnav.is-hidden { transform: translateY(110%); }

/* ---------- адаптив ---------- */
@media (min-width: 640px) {
  .picker { grid-template-columns: repeat(3, 1fr); }
  .ind__grid { grid-template-columns: repeat(4, 1fr); }
  .demo__stats { grid-template-columns: repeat(4, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .why { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: row; align-items: center; justify-content: space-between; }
  .bottomnav a { font-size: 12px; }
  .order { padding: 28px; }
  .demo { padding: 20px; }
}
@media (min-width: 900px) {
  .topnav { display: flex; }
  .topbar__actions { margin-left: 8px; }
  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .hero__visual { min-height: 500px; }
  .float--tg { left: -56px; bottom: -36px; }
  .float--notify { right: -20px; top: -10px; }
  .float--stock { right: -24px; bottom: 60px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc--wide { grid-column: 1 / -1; flex-direction: row; }
  .svc--wide .svc__art { width: 38%; height: auto; min-height: 180px; }
  .features { grid-template-columns: 320px 1fr; align-items: start; }
  .features__tabs { flex-direction: column; overflow: visible; }
  .features__tabs button { width: 100%; }
  .ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .picker { grid-template-columns: repeat(5, 1fr); }
  .demo__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "stats stats stats" "cal chart chart" "cal staff notes" "clients clients stock"; }
  .demo__stats { grid-area: stats; }
  .demo__cal { grid-area: cal; }
  .demo__chart { grid-area: chart; }
  .demo__staff { grid-area: staff; }
  .demo__stock { grid-area: stock; }
  .demo__clients { grid-area: clients; }
  .demo__notes { grid-area: notes; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  /* на широком экране нижняя панель становится компактной плавающей */
  body { padding-bottom: 0; }
  .bottomnav {
    left: 50%; right: auto; bottom: 18px; transform: translateX(-50%);
    width: auto; height: auto; padding: 6px; gap: 4px; border-radius: 18px;
    grid-template-columns: repeat(5, auto); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .bottomnav.is-hidden { transform: translate(-50%, 140%); }
  .bottomnav a { flex-direction: row; gap: 6px; padding: 0 14px; min-height: 42px; font-size: 13px; }
  .bottomnav a .icon { width: 18px; height: 18px; }
}
@media (min-width: 1100px) {
  .why { grid-template-columns: repeat(5, 1fr); }
  .why li { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 899px) {
  .hero__visual { min-height: 0; padding-bottom: 140px; }
  .float--tg { bottom: 0; left: 0; }
  .float--stock { bottom: 10px; right: 0; }
}
@media (max-width: 420px) {
  .float--notify { display: none; }
  .float--stock { width: 160px; }
  .float--tg { width: 180px; }
  .btn--lg { width: 100%; }
  .picker { grid-template-columns: 1fr 1fr; }
  .pick__box b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .bottomnav, .hero__visual, .order { display: none; }
  body { padding: 0; }
}

/* ---------- служебные страницы ---------- */
body.doc { padding-bottom: 0; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 12px; }
.prose h2 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose .muted { color: var(--muted); }
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.notfound img { border-radius: 18px; }
.notfound h1 { font-size: clamp(30px, 6vw, 48px); }
.notfound p:not(.eyebrow) { color: var(--muted); margin-bottom: 8px; }

/* =========================================================
   v2: услуги, демо, таблица, тарифы, пасхалка
   ========================================================= */

/* ---------- статусы ---------- */
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-ok { background: var(--ok-bg); color: var(--ok); }
.st-wait { background: var(--warn-bg); color: var(--warn); }
.st-bad { background: var(--danger-bg); color: var(--danger); }
.st-new { background: var(--chip); color: var(--chip-text); }
.st-cancel { background: var(--surface-3); color: var(--muted); text-decoration: line-through; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- услуги: раскрывающиеся карточки ---------- */
.svcgrid { display: grid; gap: 18px; align-items: start; }
.svc2 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.svc2:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.svc2.is-open { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.svc2__top { display: flex; gap: 16px; align-items: flex-start; cursor: pointer; }
.svc2__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--chip); color: var(--accent-ink); }
.svc2__icon .icon { width: 26px; height: 26px; }
.svc2__title h3 { font-size: 21px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc2__title p { color: var(--muted); margin-top: 6px; }
.svc2__pros { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc2__pros li { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.svc2__toggle {
  margin-top: 16px; width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; transition: background-color .2s, border-color .2s;
}
.svc2__toggle:hover { background: var(--hover); border-color: var(--border-strong); }
.svc2__chev { width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
.svc2.is-open .svc2__chev { transform: translateY(2px) rotate(-135deg); }
.svc2__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.svc2.is-open .svc2__more { grid-template-rows: 1fr; }
.svc2__inner { overflow: hidden; display: grid; gap: 18px; }
.svc2.is-open .svc2__inner { padding-top: 20px; }
.svc2__block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); margin-bottom: 8px; }
.svc2__block p { color: var(--text); }
.svc2__inner > .btn { justify-self: start; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-text); }
.tags--soft li { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.examples { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.examples li::marker { color: var(--accent-ink); }

/* ---------- демо-панель v2 ---------- */
.dgrid { display: grid; gap: 14px; }
.dwin { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo .dwin { background: var(--surface-2); }
:root[data-theme="dark"] .demo .dwin { background: #192539; }
.dwin__title { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dwin__title .icon { color: var(--accent-ink); width: 18px; height: 18px; }
.dwin__cap { font-size: 14px; color: var(--muted); margin-top: 4px; }
.dwin__body { min-width: 0; }
.dwin__benefit { font-size: 13px; padding: 9px 12px; border-radius: 10px; background: var(--chip); color: var(--text); margin-top: auto; }
.dwin__benefit b { color: var(--accent-ink); }
.tbl--demo { min-width: 420px; }
.tbl--demo td, .tbl--demo th { padding: 8px; }
.tbl tr.is-cancel td { color: var(--muted); }
.tbl td.muted { font-size: 13px; }
.tl-scroll { overflow-x: auto; }
.tl { display: grid; gap: 6px; min-width: 520px; }
.tl__row { display: grid; grid-template-columns: 116px 1fr; gap: 8px; align-items: center; }
.tl__name b { display: block; font-size: 13px; }
.tl__name small { font-size: 11px; color: var(--muted); }
.tl__cells { display: grid; grid-template-columns: repeat(var(--cols, 20), 1fr); gap: 2px; }
.tl__row--head .tl__cells { grid-template-columns: repeat(calc(var(--cols, 20) / 2), 1fr); }
.tl__hour { font-size: 11px; color: var(--muted); }
.tl__c { height: 22px; border-radius: 4px; background: var(--surface-3); }
.tl__c.is-busy { background: var(--chart-1); }
.tl-legend { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-key { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.tl-key--busy { background: var(--chart-1); } .tl-key--free { background: var(--surface-3); margin-left: 10px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpis .kpi { background: var(--surface); padding: 10px 12px; }
.kpis .kpi b { font-size: 22px; }
.chart { margin: 14px 0 0; }
.chart figcaption { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.chart__wrap { display: grid; grid-template-columns: 28px 1fr; gap: 6px; }
.chart__y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; height: 150px; }
.chart__bars { height: 150px; display: flex; align-items: flex-end; gap: 3px; border-left: 1px solid var(--chart-grid); border-bottom: 1px solid var(--chart-grid);
  background-image: linear-gradient(var(--chart-grid) 1px, transparent 1px); background-size: 100% 50%; background-position: 0 0; padding: 0 2px; }
.chart__bars .bar { flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; background: var(--chart-1); position: relative; }
.chart__bars .bar:hover { background: var(--accent-ink); }
.chart__bars .bar:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px); font-size: 11px; font-weight: 700; background: var(--text); color: var(--bg); padding: 2px 6px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.chart__x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.chart__axis { font-size: 12px; color: var(--muted); margin-top: 6px; }
.hbars-wrap { display: grid; gap: 14px; margin-top: 14px; }
.mini-h { font-size: 13px; margin-bottom: 8px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hbars li { display: grid; grid-template-columns: 120px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.hbars__track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hbars__track i { display: block; height: 100%; border-radius: 4px; background: var(--chart-1); }
.hbars b { text-align: right; font-size: 12px; }
.dnotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dnotes li { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 4px; }
.dnotes__type { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.dnotes__msg { font-size: 14px; }
.dnote-flag { font-size: 12px; color: var(--warn); margin-top: 8px; }
.demo__flag { white-space: nowrap; }

/* ---------- таблица «как в Excel» ---------- */
.sheet-block { margin-top: 48px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.sheet-block__head h3 { font-size: clamp(22px, 3vw, 28px); }
.sheet-block__head p { color: var(--muted); margin-top: 8px; max-width: 760px; }
.sheet-hint { margin: 18px 0 10px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sheet { border: 1px solid var(--grid-line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.sheet__toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: var(--sheet-head); border-bottom: 1px solid var(--grid-line); }
.sheet__toolbar .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .sheet__toolbar .seg button[aria-selected="true"] { background: var(--surface-3); }
.sheet__toolbar input[type="search"], .sheet__toolbar select { min-height: 38px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--input-border); background: var(--input-bg); font-size: 14px; }
.sheet__toolbar input[type="search"] { width: 220px; max-width: 100%; }
.sheet__only { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.sheet__only input { accent-color: var(--primary); width: 16px; height: 16px; }
#sheetCsv { margin-left: auto; }
.sheet__fx { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 13px; border-bottom: 1px solid var(--grid-line); font-family: ui-monospace, Consolas, monospace; }
.sheet__ref { min-width: 44px; padding: 2px 6px; border: 1px solid var(--grid-line); border-radius: 4px; text-align: center; }
.sheet__fxl { font-style: italic; color: var(--muted); }
.sheet__scroll { overflow-x: auto; }
.sheet__table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
.sheet__table th, .sheet__table td { border: 1px solid var(--grid-line); padding: 7px 10px; text-align: left; white-space: nowrap; }
.sheet__table th.num, .sheet__table td.num { text-align: right; }
.sheet__letters th { background: var(--sheet-head); color: var(--muted); font-size: 11px; font-weight: 700; text-align: center !important; padding: 3px; }
.sheet__corner, .sheet__rn { background: var(--sheet-head); color: var(--muted); font-size: 11px; font-weight: 700; width: 36px; text-align: center !important; }
.sheet__table thead tr:last-child th { background: var(--chip); padding: 0; }
.sheet__sort { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 0; background: none; font-weight: 800; font-size: 13px; color: var(--chip-text); }
th.num .sheet__sort { flex-direction: row-reverse; }
.sheet__arrow { font-size: 10px; opacity: .7; }
.sheet__table tbody tr:nth-child(even) td { background: var(--surface-2); }
.sheet__table tbody tr:hover td { background: var(--hover); }
.sheet__table td { cursor: cell; }
.sheet__table td.is-sel { outline: 2px solid var(--primary); outline-offset: -2px; }
.sheet__table td.is-low { color: var(--danger); font-weight: 800; }
.sheet__empty { text-align: center !important; color: var(--muted); padding: 18px !important; }
.sheet__foot { font-size: 13px; color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--grid-line); background: var(--sheet-head); }
.sheet-feats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.sheet-feats li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; }
.sheet-feats .icon { color: var(--accent-ink); flex: none; margin-top: 2px; }

/* ---------- тарифы v2 ---------- */
.tiers { padding: 8px 4px; }
.tier { position: relative; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tier--accent { border-color: var(--primary); box-shadow: var(--shadow); }
:root[data-theme="dark"] .tier--accent { border-color: #5677C9; }
.tier__badge { position: absolute; top: -12px; left: 24px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary); }
.tier__for { color: var(--muted); font-size: 14px; margin-top: 6px; }
.tier__head { min-height: 74px; }
.tier .btn { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .tier:hover { transform: scale(1.025); box-shadow: var(--shadow-lg); border-color: var(--accent-ink); z-index: 1; }
}
.market { margin-top: 36px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); }
.market__head h3 { font-size: 22px; }
.market__head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.market__grid { display: grid; gap: 16px; margin-top: 16px; }
.tbl--market { min-width: 0; }
.tbl--market td { vertical-align: top; }
.tbl--market td.num b { display: block; white-space: nowrap; }
.tbl--market td.num small { display: block; font-size: 12px; color: var(--muted); }
.tbl--market th { background: var(--surface-2); }
.done__num { font-weight: 800; color: var(--accent-ink) !important; margin-bottom: 8px !important; }

@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .hbars-wrap { grid-template-columns: 1fr 1fr; }
  .sheet-feats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .svcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-stats { grid-column: 1 / -1; }
  .market__grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (max-width: 520px) {
  .svc2 { padding: 18px; }
  .svc2__icon { width: 44px; height: 44px; }
  .hbars li { grid-template-columns: 96px 1fr 36px; }
  .sheet-block, .market { padding: 16px; }
  #sheetCsv { margin-left: 0; }
}

/* ---------- пасхалка ---------- */
.cow { position: fixed; z-index: 70; left: 16px; bottom: calc(var(--bottomnav-h) + var(--safe-b) + 16px); width: 162px; pointer-events: none;
  animation: cow-in .4s steps(4) both; transform-origin: 50% 100%; }
.cow__svg { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(16, 22, 43, .18)); }
.cow__head { animation: cow-bob 1s steps(1) infinite; }
.cow__jaw { animation: cow-chew .34s steps(1) infinite; }
.cow__eyes { transform-box: fill-box; transform-origin: center; animation: cow-blink 2.6s steps(1) infinite; }
.cow__grass { transform-box: fill-box; transform-origin: 50% 100%; animation: cow-grass .7s steps(2) infinite alternate; }
.cow__say { position: absolute; left: 70px; top: -30px; font: 800 13px/1 ui-monospace, Consolas, monospace; padding: 6px 8px; background: #fff; color: #1a1b24;
  border: 3px solid #6495ED; box-shadow: 3px 3px 0 #4169E1; animation: cow-say 7s steps(1) both; white-space: nowrap; }
.cow.is-inflate .cow__svg { animation: cow-inflate .38s steps(4) forwards; }
.cow.is-popped .cow__svg, .cow.is-popped .cow__say { visibility: hidden; }
.cow__px { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 1px rgba(16, 22, 43, .25); animation: cow-px .75s steps(6) forwards; }
.cow--calm, .cow--calm * { animation: none !important; }
.cow.is-fade { opacity: 0; transition: opacity .35s; }
@keyframes cow-in { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes cow-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1px); } }
@keyframes cow-chew { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.5px); } }
@keyframes cow-blink { 0%, 90%, 96%, 100% { transform: scaleY(1); } 92% { transform: scaleY(.1); } }
@keyframes cow-grass { 0% { transform: skewX(-6deg); } 100% { transform: skewX(6deg); } }
@keyframes cow-say { 0%, 14% { opacity: 0; } 15%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes cow-inflate { 0% { transform: scale(1); } 60% { transform: scale(1.3, 1.4); } 100% { transform: scale(1.45, 1.55); } }
@keyframes cow-px { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@media (min-width: 900px) { .cow { left: 28px; bottom: 28px; width: 216px; } .cow__say { left: 96px; } }
@media (min-width: 900px) {
  .dw-notes { grid-column: 1 / -1; }
  .dw-notes .dnotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- ссылки на демо-бота ---------- */
.demobot-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--accent-ink); text-decoration: none; padding: 8px 12px; border-radius: 10px; background: var(--chip); }
.demobot-link:hover { text-decoration: underline; }
.demobot-inline { display: inline-flex; align-items: center; gap: 4px; vertical-align: bottom; }
.demobot-inline .icon { width: 16px; height: 16px; }
.svc2__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.demo__live { margin: -4px 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--chip); font-size: 14px; }
.done__bot { margin-bottom: 12px !important; }
.done__botbtn { margin: 0 8px 12px; }
.footer__bot { margin-top: 12px !important; }


/* ===== 03.11: FAQ «коротко + подробно» ===== */
.faq__a { padding: 0 20px 18px; display: grid; gap: 8px; }
.faq details .faq__a p { margin: 0; padding: 0; color: var(--muted); }
.faq details .faq__a p.faq__short { color: var(--text); padding: 10px 12px; border-radius: 10px; background: var(--chip); }
.faq__short b { color: var(--accent-ink); }

/* ===== 03.11: компактная статистика, период ===== */
.dwin__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.dw-stats.is-flash { animation: bvFlash .9s ease; }
@keyframes bvFlash { 0% { box-shadow: 0 0 0 0 var(--accent-ink); } 30% { box-shadow: 0 0 0 3px var(--accent-ink); } 100% { box-shadow: 0 0 0 0 transparent; } }
.stats__top { display: grid; gap: 14px; }
.stats__top .chart { margin: 0; }
.bar__v { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px); font-size: 10px; font-weight: 700; color: var(--muted); }
.chart__bars .bar:hover .bar__v { visibility: hidden; }
@media (min-width: 900px) {
  .stats__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
  .stats__top .kpis { grid-template-columns: 1fr 1fr; }
  .dw-stats .chart__y, .dw-stats .chart__bars { height: 110px; }
  .dw-stats .chart__bars { gap: 4px; justify-content: space-around; padding: 0 4px; }
  .dw-stats .chart__bars .bar { max-width: 26px; border-radius: 4px 4px 0 0; }
  .dw-stats .hbars-wrap { margin-top: 10px; }
}
.tiers > .tier, .picker > .pick { min-width: 0; }
.pick__box { overflow-wrap: anywhere; }
@media (max-width: 380px) { .tier { padding: 22px 18px; } .pick__box { padding: 12px 10px; } }
