/* Идея: мастерская одного инженера. Бумага с зерном, чернила, сигнальный оранжевый,
   рукописные пометки на полях. Каждый раздел свёрстан по-своему: живой бот, прайс-лист,
   лента этапов, паспорт изделия с отточиями, вопросы, письмо. */
:root {
  /* токены из docs/design-system.md, раздел 1.1 */
  --paper: #F6F4EF;
  --surface: #FFFFFF;
  --sunken: #EFECE5;
  --ink: #15181C;
  --muted: #5E636B;
  --line: #E7E3DA;
  --line-strong: #D3CEC3;
  --accent: #EE5320;
  --accent-hover: #DC4718;
  --accent-press: #C73F14;
  --accent-ink: #1A0B04; /* тёмный текст на оранжевом: 5,4:1 (белый давал 3,6:1, ниже AA) */
  --accent-soft: #FDE6DC;
  --accent-text: #B93C14; /* оранжевый текст мельче 18px: 4,9:1 на бумаге */
  --ok: #1F8A57;
  --chat-bg: #EFECE5;
  --bubble-user: #FDE6DC;
  /* тёплые тени (раздел 5) */
  --sh-1: 0 1px 2px rgba(60, 45, 25, .04), 0 10px 28px -14px rgba(60, 45, 25, .16);
  --sh-2: 0 18px 40px -20px rgba(60, 45, 25, .30);
  --sh-3: 0 28px 64px -24px rgba(60, 45, 25, .30);
  --on-ink-ok: #7EE2A8; --on-ink-err: #FF9C7A; /* статусы на блоке цвета --ink */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 3vw, 2.25rem);
  --step-3: clamp(2.2rem, 5vw, 4rem);
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
/* Тёмная («чёрная») тема: data-theme="dark" ставит js/theme.js — по выбору человека или по системе.
   Почти чёрный фон, графитовые поверхности, оранжевый для текста и иконок #FF6A35, кнопки #EE5320 с тёмным текстом,
   вместо теней мягкое тёплое свечение. */
:root[data-theme="dark"] {
  --paper: #0D0D0F; --surface: #17181B; --sunken: #1E2024; --ink: #F2F0EA; --muted: #A3A7AE; --line: #2A2C31; --line-strong: #3A3D44;
  --accent: #FF6A35; --accent-btn: #EE5320; --accent-hover: #FF6A35; --accent-press: #EE5320; --accent-ink: #1A0B04;
  --accent-soft: #33200F; --accent-text: #FF6A35; --ok: #45C287;
  --chat-bg: #111214; --bubble-user: #3A2213; --on-ink-ok: #7EE2A8; --on-ink-err: #FF9C7A;
  --sh-1: 0 0 0 1px rgba(255, 255, 255, .02), 0 14px 36px -20px rgba(238, 83, 32, .22);
  --sh-2: 0 18px 44px -20px rgba(238, 83, 32, .30), 0 2px 10px rgba(0, 0, 0, .5);
  --sh-3: 0 30px 80px -30px rgba(238, 83, 32, .38);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; } /* атрибут hidden всегда скрывает, даже если у класса свой display */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  overflow-x: hidden;
}
body::after { /* бумажное зерно */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .01em; }
.hand { font-family: var(--font-hand); font-weight: 700; color: var(--accent-text); line-height: 1.1; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font: 700 var(--step-2)/1.12 var(--font-display); letter-spacing: -.02em; }

/* ── шапка ── */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem var(--font-display); letter-spacing: -.02em; }
.brand .logo { width: 40px; height: 40px; flex: none; }
.brand .logo { transition: transform .45s var(--ease); transform-origin: 30% 90%; }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }
footer .brand-mini { display: inline-flex; align-items: center; gap: 8px; }
footer .brand-mini img { width: 24px; height: 24px; }
/* линейные иконки вместо юникод-знаков (↗ ↖ ↑ ↓ ✓): тот же набор и толщина, что в app/icons.js */
svg.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.14em; }
.ex-shot .go svg.ic { width: 16px; height: 16px; }
.hand svg.ic { width: .8em; height: .8em; vertical-align: -.05em; }
.btn .arr, .ex-link .arr, .ex-more .arr, .demo-open .arr { display: inline-flex; }
.wordmark { font: 700 1.18rem var(--font-display); letter-spacing: -.035em; }
nav.links { display: flex; gap: 22px; }
nav.links a { text-decoration: none; color: var(--muted); position: relative; }
nav.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
nav.links a:hover { color: var(--ink); }
nav.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-cta { text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }

/* ── первый экран ── */
.hero { padding: clamp(32px, 6vw, 80px) 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); grid-template-rows: auto 1fr; column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero-grid > .device-col { grid-column: 2; grid-row: 1 / span 2; }
.hero-grid > .biz { grid-column: 1; grid-row: 2; }
.hero h1 { font: 800 clamp(2rem, 3.9vw, 3.05rem)/1.06 var(--font-display); letter-spacing: -.035em; margin: 18px 0 24px; }
.flag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; font-size: var(--step--1); font-weight: 500; animation: fadeUp .8s .05s var(--ease) both; transition: border-color .2s; }
.flag:hover { border-color: var(--ink); }
.flag .arr { transition: transform .3s var(--ease); }
.flag:hover .arr { transform: translateX(4px); }
.flag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulseA 1.8s 3; flex: none; }
.try { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: -12px 0 30px; animation: fadeUp .8s .78s var(--ease) both; }
.try-label { font-size: 1.35rem; transform: rotate(-2deg); }
.try-links, .ex-links { display: flex; gap: 8px; flex-wrap: wrap; }
.try-link, .ex-link { font: 500 var(--step--1) var(--font-mono); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; border-color: var(--line-strong); }
.try-link:hover, .ex-link:hover { border-color: var(--accent); color: var(--accent-text); }
.hero h1 .w { display: inline-block; animation: wordIn .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
.hero h1 .accent { color: var(--accent); position: relative; white-space: nowrap; }
.scribble { position: absolute; left: -2%; right: -4%; bottom: -.28em; width: 106%; height: .42em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .9s .9s var(--ease) forwards; }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 36ch; margin: 0 0 28px; color: var(--ink); animation: fadeUp .8s .55s var(--ease) both; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; animation: fadeUp .8s .7s var(--ease) both; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; font: 600 var(--step-0) var(--font-body); text-decoration: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--accent-press); }
.btn.primary:hover { transform: translateY(-2px); background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 6px 0 var(--accent-press); }
.ticket { display: flex; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); animation: fadeUp .8s .85s var(--ease) both; }
.ticket div { flex: 1 1 160px; padding: 14px 18px; border-left: 1.5px dashed var(--line); }
.ticket div:first-child { border-left: 0; }
.ticket b { display: block; font: 700 1.1rem/1.2 var(--font-display); letter-spacing: -.01em; }
.ticket span { color: var(--muted); font-size: var(--step--1); }

/* панель «у вас в рабочем чате» */
.biz { margin-top: 30px; position: relative; }
.biz-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.biz-head .hand { font-size: 1.45rem; }
.biz-list { display: grid; gap: 10px; min-height: 130px; }
.biz-empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); font-size: .92rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--sh-1); animation: drop .55s var(--ease) both; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin-bottom: 6px; }
.card .body { white-space: pre-line; font-size: .93rem; }
.card.crm { border-left: 4px solid var(--ok); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.flyer { position: fixed; z-index: 50; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12px var(--font-body); pointer-events: none; box-shadow: var(--sh-2); }

/* телефон */
.device-col { position: sticky; top: 88px; }
.note { position: absolute; z-index: 2; pointer-events: none; }
.note-under { margin: 16px 0 0; text-align: center; font-size: 1.45rem; transform: rotate(-2deg); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { font: 500 var(--step--1) var(--font-mono); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab.replay { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.tab.replay svg { flex: none; }
.phone-wrap { perspective: 1200px; animation: phoneIn 1s .3s var(--ease) both; }
.phone { width: min(100%, 370px); margin: 0 auto; border-radius: 40px; padding: 10px; background: var(--ink); box-shadow: var(--sh-3), inset 0 0 0 2px color-mix(in srgb, var(--paper) 12%, transparent); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.screen { border-radius: 31px; overflow: hidden; background: var(--chat-bg); display: flex; flex-direction: column; height: 600px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 18px; }
.chat-head .t { font-weight: 600; line-height: 1.2; font-size: .95rem; }
.chat-head .s { color: var(--muted); font-size: 12px; }
.chat { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; scrollbar-width: none; }
.chat::-webkit-scrollbar { display: none; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.42; animation: pop .35s var(--ease) both; overflow-wrap: anywhere; }
.msg.bot { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.user { background: var(--bubble-user); align-self: flex-end; border-bottom-right-radius: 5px; }
.kb { display: grid; gap: 5px; margin-top: 8px; }
.kb .row { display: flex; gap: 5px; }
.kb .k { flex: 1; font: 500 12px/1.25 var(--font-body); padding: 8px 6px; text-align: center; border-radius: 8px; background: var(--chat-bg); border: 1px solid var(--line); transition: background .25s, color .25s, opacity .4s, transform .2s; }
.kb .k.pressed { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(.96); }
.kb.used .k:not(.pressed) { opacity: .35; }
.typing { align-self: flex-start; background: var(--surface); border-radius: 16px; padding: 10px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.composer .field { flex: 1; min-height: 38px; border-radius: 999px; background: var(--chat-bg); padding: 9px 14px; font-size: 13.5px; }
.composer .field:empty::before { content: "Сообщение"; color: var(--muted); }
.composer .send { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-weight: 700; }


/* общие секции */
section { padding: clamp(56px, 8vw, 104px) 0; }
section[id], .hero { scroll-margin-top: 64px; }
.reveal { will-change: transform; }

/* прайс */
.price-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 30px; }
.price-head p { margin: 0; color: var(--muted); max-width: 46ch; justify-self: end; }
.pricelist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.pitem { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr) 110px 150px; gap: 20px; align-items: baseline; padding: 24px 8px; border-bottom: 1px solid var(--line); isolation: isolate; }
.pitem::before { content: ""; position: absolute; inset: 0; background: var(--accent-soft); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); border-radius: 8px; }
.pitem:hover::before { transform: scaleY(1); }
.pitem h3 { font: 600 1.15rem/1.3 var(--font-body); }
.pitem p { margin: 0; color: var(--muted); }
.pitem .term { color: var(--muted); }
.pitem .price { font: 700 1.15rem var(--font-display); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
/* рукописная пометка («заказывают чаще всего») — рядом с заголовком, а не внутри h3: в названии услуги её нет */
.pitem-t { min-width: 0; }
.pitem .note-pop { display: block; width: max-content; max-width: 100%; margin-top: 6px; font-size: 1.3rem; transform: rotate(-2deg); transform-origin: left; }

/* калькулятор */
.calc-sec, .examples { padding-top: 0; }
.calc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 30px; }
.calc-head p { margin: 0; color: var(--muted); max-width: 46ch; justify-self: end; }
.calc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.calc-q { display: grid; gap: 26px; }
.calc-left { display: grid; gap: 30px; }
.calc-everywhere { border: 1.5px dashed var(--accent); border-radius: 20px; padding: 18px 22px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.calc-everywhere-k { display: block; font: 700 1.05rem/1.3 var(--font-display); letter-spacing: -.01em; margin-bottom: 6px; }
.calc-everywhere p { margin: 0; color: var(--muted); max-width: 60ch; }
.calc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-step legend { font: 600 1.08rem/1.3 var(--font-body); display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; }
.calc-n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: .75rem; flex: none; }
.calc-hint { margin: -4px 0 10px 36px; color: var(--muted); font-size: var(--step--1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 500; transition: border-color .2s, background .2s, color .2s, transform .15s; }
.chip small { font: 500 .75rem var(--font-mono); color: var(--muted); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip input:active + span { transform: scale(.97); }
.calc-res { position: sticky; top: 88px; background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 10px; }
.calc-cap { color: color-mix(in srgb, var(--paper) 55%, transparent); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.calc-sum { font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-sum small { font-size: .55em; color: var(--paper); font-weight: 700; }
.calc-to { display: block; font-size: .5em; color: var(--paper); margin-top: 4px; }
.calc-term { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.calc-lines { list-style: none; margin: 4px 0; padding: 12px 0 0; border-top: 1px dashed color-mix(in srgb, var(--paper) 25%, transparent); display: grid; gap: 6px; font-size: .93rem; }
.calc-lines:empty { display: none; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines .mono { white-space: nowrap; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.calc-send { justify-content: center; margin-top: 6px; }
.calc-note { margin: 0; font-size: var(--step--1); color: color-mix(in srgb, var(--paper) 55%, transparent); }

/* примеры */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ex { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.ex:hover { border-color: var(--ink); transform: translateY(-3px); }
.ex-own { border-color: var(--accent); }
.ex-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); font-size: .72rem; }
.ex-own .ex-tag { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-soft); }
.ex h3 { font: 700 1.15rem/1.25 var(--font-display); letter-spacing: -.01em; }
.ex dl { margin: 0; display: grid; gap: 3px; flex: 1; }
.ex dt { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); margin-top: 8px; }
.ex dd { margin: 0; font-size: .95rem; }
.ex > .ex-link { align-self: flex-start; }
.ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* наш бот и мини-приложение: одна широкая карточка, справа живые плитки демо */
.ex-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%), var(--surface); }
.ex-wide:hover { border-color: var(--accent); }
.ex-main, .ex-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ex-wide h3 { font-size: 1.45rem; }
.ex-lead { margin: 0; color: var(--muted); }
.ex-wide dl { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 6px; }
.ex-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; min-height: 210px; }
.ex-shot { position: relative; display: block; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: #222; min-height: 210px; isolation: isolate; }
.ex-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); z-index: -2; }
.ex-shot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .8)); }
.ex-shot:hover img { transform: scale(1.07); }
.ex-shot .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 7px; }
.ex-shot .n { font: 600 28px/1 "Playfair Display", Georgia, serif; letter-spacing: .02em; }
.ex-shot .n.auto { font: 800 19px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.ex-shot .n.hair { font: 700 30px/1 "Caveat", cursive; }
.ex-shot .n { font-size: 24px; }
.ex-shot .n.auto { font-size: 15px; }
.ex-shot .w { font: 500 .7rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.ex-shot .go { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #15181C; display: grid; place-items: center; font-size: 15px; transition: transform .3s var(--ease); }
.ex-shot:hover .go { transform: translate(2px, -2px); }
.ex-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ex-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 96px; }
@media (max-width: 960px) { .ex-wide { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ex-wide dl { grid-template-columns: 1fr; } .ex-shot, .ex-shots { min-height: 170px; } .ex-k { min-width: 0; width: 100%; } }

/* этапы */
.process h2 { max-width: 18ch; margin-bottom: 40px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 34px 0 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 8px; right: 0; top: 7px; height: 2px; z-index: 0; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--accent); transform-origin: left; transform: scaleX(1); }
.timeline li { position: relative; z-index: 1; }
.timeline li::before { content: ""; position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--paper); z-index: 1; }
.timeline .when { font: 800 1.6rem/1 var(--font-display); color: var(--accent); letter-spacing: -.02em; }
.timeline h3 { font: 600 1.1rem/1.3 var(--font-body); margin: 12px 0 8px; }
.timeline p { margin: 0; color: var(--muted); font-size: .97rem; }

/* паспорт изделия */
.passport-box { border: 1.5px solid var(--ink); border-radius: 20px; background: var(--surface); padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); }
.passport-box .side p { color: var(--muted); max-width: 34ch; }
.stamp { display: inline-block; margin-top: 14px; padding: 10px 16px; border: 2.5px solid var(--accent); border-radius: 12px; color: var(--accent-text); font: 800 .95rem var(--font-display); transform: rotate(-5deg); letter-spacing: .02em; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.specs li { display: grid; gap: 4px; }
.specs .row { display: flex; align-items: baseline; gap: 10px; }
.specs .k { font-weight: 600; white-space: nowrap; }
.specs .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 24px; }
.specs .v { font-family: var(--font-mono); font-size: .88rem; white-space: nowrap; }
.specs p { margin: 0; color: var(--muted); font-size: .94rem; max-width: 60ch; }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); }
.faq-grid .side .hand { font-size: 1.6rem; display: block; margin-top: 18px; transform: rotate(-3deg); }
.faq { display: grid; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1.5px solid var(--ink); }
summary { cursor: pointer; padding: 20px 0; font: 600 1.08rem/1.35 var(--font-body); list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; transition: background .25s, transform .4s var(--ease); }
summary .pm::before, summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; translate: -50% -50%; transition: transform .4s var(--ease); }
summary .pm::after { transform: rotate(90deg); }
details[open] summary .pm { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(180deg); }
details[open] summary .pm::after { transform: rotate(0deg); }
details p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; animation: fadeUp .45s var(--ease) both; }

/* контакты */
.contact { position: relative; background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(28px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: stretch; overflow: hidden; }
.contact > :first-child { display: flex; flex-direction: column; }
.contact-foot { margin-top: auto; }
.contact h2 { color: var(--paper); font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 16ch; }
.contact p { color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 42ch; }
.badge-wrap { position: relative; width: 124px; height: 124px; margin-top: 26px; display: grid; place-items: center; }
.badge { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear 2; }
.badge text { font: 600 10.5px var(--font-mono); fill: var(--accent); text-transform: uppercase; }
.badge-wrap { text-decoration: none; border-radius: 50%; }
.badge-arrow { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.badge-arrow svg { transition: transform .35s var(--ease); }
.badge-wrap:hover .badge-arrow { transform: scale(1.08); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent); }
.badge-wrap:hover .badge-arrow svg { transform: translateX(3px); }
.contact-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mascot-wave { width: clamp(150px, 17vw, 210px); height: auto; margin-bottom: calc(-1 * clamp(28px, 6vw, 64px)); transform-origin: 50% 100%; animation: bob 4s ease-in-out 3; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.mascot-laptop { display: block; width: min(100%, 230px); height: auto; margin-top: 28px; }
.contact-links { display: grid; gap: 10px; position: relative; z-index: 1; }
.clink { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); text-decoration: none; color: var(--paper); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.clink:hover { border-color: var(--accent); transform: translateX(4px); }
.clink.primary { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }

/* форма заявки */
.lead-form { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f-label { font-size: var(--step--1); color: color-mix(in srgb, var(--paper) 72%, transparent); }
.f-label i { font-style: normal; opacity: .7; }
.f input, .f textarea { width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--paper); background: color-mix(in srgb, var(--paper) 6%, transparent); border: 1.5px solid color-mix(in srgb, var(--paper) 22%, transparent); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: color-mix(in srgb, var(--paper) 52%, transparent); } /* 4,5:1 и выше на тёмном блоке */
.f input:focus, .f textarea:focus { outline: none; border-color: var(--accent); background: color-mix(in srgb, var(--paper) 10%, transparent); }
.f [aria-invalid="true"] { border-color: var(--on-ink-err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); color: color-mix(in srgb, var(--paper) 72%, transparent); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--paper); }
.lead-form .submit { justify-content: center; width: 100%; }
.lead-form .submit[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: var(--on-ink-ok); }
.form-status.err { color: var(--on-ink-err); }
.lead-form.sent .f, .lead-form.sent .consent, .lead-form.sent .submit { display: none; }
.lead-form.sent .form-status { font: 600 1.15rem/1.4 var(--font-body); padding: 22px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 18%, transparent); }
.or { margin: 26px 0 10px; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.clink .v { font-family: var(--font-mono); font-size: var(--step--1); opacity: .85; }
.clink.todo { border-style: dashed; }
footer { padding: 30px 0 44px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
footer .legal { justify-content: flex-start; gap: 6px 18px; margin-top: 14px; font-size: .8rem; }
footer .legal a { color: inherit; text-underline-offset: 3px; }
footer .legal a:hover { color: var(--ink); }
.todo-mark { background: var(--accent-soft); color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* ── анимации ── */
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes pulseA { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-14deg); } 96% { transform: rotate(10deg); } }
@keyframes rise { from { opacity: .4; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* появление по прокрутке — только там, где браузер умеет scroll-driven анимации; иначе всё видно сразу */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .timeline::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  }
}

@media (max-width: 960px) {
  .hero-grid, .price-head, .passport-box, .faq-grid, .contact, .calc, .calc-head, .ex-grid { grid-template-columns: 1fr; }
  .price-head p, .calc-head p { justify-self: start; }
  .calc-res { position: static; }
  .device-col { position: static; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .timeline::before, .timeline::after { display: none; }
  .pitem { grid-template-columns: minmax(0, 1fr) auto; }
  .pitem p { grid-column: 1 / -1; }
  nav.links { display: none; }
  .hero-grid { grid-template-rows: none; row-gap: 8px; }
  .hero-grid > .device-col, .hero-grid > .biz { grid-column: auto; grid-row: auto; }
  .biz-list { min-height: 0; }
  .badge-arrow svg { rotate: 90deg; } /* на телефоне ссылки ниже — стрелка смотрит вниз */
  .mascot-wave { margin-bottom: 0; width: 140px; }
  .mascot-laptop { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .screen { height: 540px; }
  .ticket div { flex-basis: 100%; border-left: 0; border-top: 1.5px dashed var(--line); }
  .ticket div:first-child { border-top: 0; }
  .top-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scribble path { stroke-dashoffset: 0; }
}

/* макет панели HippoCRM в блоке #crm */
.crm-mock { margin-top: 26px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; font-size: 11px; box-shadow: var(--sh-1); }
.cm-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cm-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.cm-bar i:first-child { background: var(--accent); }
.cm-bar span { margin-left: 6px; font: 600 11px var(--font-mono); color: var(--muted); }
.cm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.cm-col { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cm-col > b { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 11px; color: var(--muted); }
.cm-col > b em { font-style: normal; font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.cm-card { display: grid; gap: 1px; padding: 7px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cm-card strong { font-size: 12px; }
.cm-card small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-card .ch { justify-self: start; font: 600 9.5px var(--font-mono); padding: 1px 6px; border-radius: 999px; color: #fff; }
.ch.tg { background: #2AABEE; } .ch.max { background: #5B4BFF; } .ch.vk { background: #0077FF; } .ch.app { background: var(--accent); }
.cm-card.done { opacity: .7; }
.cm-card.fresh { border-color: var(--accent); animation: freshLead 3.2s var(--ease) 3; }
@keyframes freshLead { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 15% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); } 45% { box-shadow: 0 0 0 0 transparent; } }

/* ═══════════ ТЕЛЕФОН ═══════════
   Отдельный интерфейс для узких экранов: шапка с кнопкой меню, меню-шторка, нижняя панель с главным действием,
   свёрнутый живой диалог, компактные цены и списки, примеры листаются вбок. Компьютерная версия не меняется. */
.menu-btn, .m-bar, .demo-open, .ex-more, .short { display: none; }
.ex-pair { display: contents; }
/* меню-шторка нужна везде, где скрыто обычное меню: телефоны и планшеты */
@media (max-width: 960px) {
  header.top .top-cta { margin-left: auto; }
  /* кнопка меню: две полоски превращаются в крестик */
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; position: relative; z-index: 31; -webkit-tap-highlight-color: transparent; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
  body.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

  /* меню-шторка */
  .m-menu { position: fixed; inset: 0; z-index: 19; background: var(--paper); padding: 74px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 22px;
    overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
  .m-menu { pointer-events: none; } /* закрытая шторка не перехватывает касания по странице */
  body.menu-open .m-menu { opacity: 1; transform: none; pointer-events: auto; }
  .m-nav { display: grid; }
  .m-nav a { display: grid; grid-template-columns: 38px 1fr; column-gap: 6px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
    opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 40ms + 60ms); }
  body.menu-open .m-nav a { opacity: 1; transform: none; }
  .m-nav .n { grid-row: 1 / span 2; color: var(--accent-text); }
  .m-nav b { font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; }
  .m-nav small { grid-column: 2; color: var(--muted); font-size: .88rem; margin-top: 2px; }
  .m-nav a:active b { color: var(--accent); }
  .m-foot { display: grid; gap: 12px; margin-top: auto; opacity: 0; transition: opacity .4s .3s var(--ease); }
  body.menu-open .m-foot { opacity: 1; }
  .m-foot .hand { font-size: 1.3rem; }
  .m-links { display: flex; gap: 8px; flex-wrap: wrap; }
  .m-foot .btn { justify-content: center; }

}
@media (max-width: 760px) {
  section { padding: 52px 0; }
  .top-cta { display: none; }
  header.top .wrap { min-height: 58px; }
  .brand .logo { width: 36px; height: 36px; }

  /* нижняя панель */
  .m-bar { display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 18; padding: 8px; border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
    box-shadow: var(--sh-2); transform: translateY(150%); transition: transform .45s var(--ease); }
  .m-bar.show { transform: none; }
  .m-bar .btn { justify-content: center; padding: 12px 14px; font-size: .97rem; white-space: nowrap; }
  .m-bar .btn.primary { flex: 1; box-shadow: none; }
  .m-bar .btn:not(.primary) { flex: none; }

  /* первый экран */
  .hero { padding: 20px 0 6px; }
  .flag { font-size: .8rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); margin: 14px 0 16px; }
  .lead { font-size: 1.02rem; margin-bottom: 20px; }
  .cta { display: grid; gap: 10px; margin-bottom: 26px; }
  .cta .btn { justify-content: center; }
  .try { margin: -8px 0 22px; }
  .ticket div { padding: 11px 14px; }
  .ticket b { font-size: 1rem; }
  .demo-open { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 20px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; margin-top: 8px; }
  .demo-open .demo-t { flex: 1; display: grid; gap: 2px; }
  .demo-open b { font: 700 1.02rem var(--font-display); letter-spacing: -.01em; }
  .demo-open small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
  .demo-open .arr { font-size: 1.2rem; color: var(--accent); transition: transform .3s var(--ease); }
  .demo-open[aria-expanded="true"] .arr { transform: rotate(180deg); }
  .demo-ic { flex: none; display: flex; gap: 4px; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); }
  .demo-ic i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); animation: typing 1.2s infinite ease-in-out; }
  .demo-ic i:nth-child(2) { animation-delay: .15s; } .demo-ic i:nth-child(3) { animation-delay: .3s; }
  @keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
  .hero-grid.demo-closed .device-col > :not(.demo-open), .hero-grid.demo-closed > .biz { display: none; }
  .hero-grid:not(.demo-closed) .device-col .tabs { margin-top: 14px; }
  .screen { height: 520px; }

  /* цены: строка «название — цена», описание по нажатию */
  .price-head p { font-size: .95rem; }
  .pitem { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t p" "s s" "d d"; gap: 4px 14px; padding: 16px 4px; cursor: pointer; align-items: baseline; }
  .pitem-t { grid-area: t; }
  .pitem h3 { font-size: 1.02rem; }
  .pitem .price { grid-area: p; font-size: 1.02rem; }
  .pitem .term { grid-area: s; font-size: .78rem; }
  .pitem .term::after { content: "  ·  подробнее"; color: var(--accent-text); font-family: var(--font-body); }
  .pitem.open .term::after { content: "  ·  свернуть"; }
  .pitem p { grid-area: d; grid-column: 1 / -1; display: none; font-size: .93rem; margin-top: 4px; }
  .pitem.open p { display: block; animation: fadeUp .35s var(--ease) both; }
  .pitem .note-pop { font-size: 1.05rem; }

  /* «Паспорт» и HippoCRM: строки раскрываются */
  .passport-box { padding: 22px 18px; gap: 18px; }
  .specs { gap: 0; }
  .specs li { padding: 12px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
  .specs li:last-child { border-bottom: 0; }
  .specs .k, .specs .v { white-space: normal; }
  .specs .v { text-align: right; font-size: .8rem; }
  .specs .row::after { content: "+"; font-family: var(--font-mono); color: var(--accent-text); margin-left: 6px; }
  .specs li.open .row::after { content: "−"; }
  .specs p { display: none; font-size: .9rem; }
  .specs li.open p { display: block; margin-top: 6px; animation: fadeUp .35s var(--ease) both; }

  /* примеры: два демо листаются вбок, наш бот и приложение — ниже */
  .ex-grid { display: grid; gap: 14px; }
  .ex-pair { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .ex-pair::-webkit-scrollbar { display: none; }
  .ex-pair > .ex { flex: 0 0 84%; scroll-snap-align: center; padding: 20px; }
  .ex dd { font-size: .92rem; }
  .ex-wide { padding: 20px; }
  .ex-more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 0; background: none; color: var(--accent-text); font: 600 .95rem var(--font-body); padding: 4px 0; cursor: pointer; }
  .ex-more .arr { transition: transform .3s var(--ease); }
  .ex-wide.more .ex-more .arr { transform: rotate(180deg); }
  .ex-wide:not(.more) dl { display: none; }
  .ex-wide.more dl { animation: fadeUp .35s var(--ease) both; }

  /* как работаем и вопросы */
  .process h2 { margin-bottom: 26px; }
  /* вертикальная линия времени: точки слева, линия между ними, текст не перекрывается */
  .timeline { grid-template-columns: 1fr; row-gap: 22px; padding: 0 0 0 30px; }
  .timeline::before { display: block; left: 7px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .timeline::after { display: none; }
  .timeline li::before { top: 6px; left: -30px; width: 14px; height: 14px; }
  .timeline .when { font-size: 1.3rem; }
  .timeline h3 { margin: 6px 0 4px; font-size: 1.02rem; }
  .timeline p { font-size: .93rem; }
  .contact { padding: 26px 20px; gap: 22px; }
  .badge-wrap { display: none; }
  .contact-foot { display: none; } /* на телефоне форма сразу под текстом */
  .faq-grid .side .hand { font-size: 1.3rem; }
  summary { padding: 16px 0; font-size: 1rem; }
  .calc-everywhere { display: none; } /* то же сказано в первом экране и в ценах */
}

/* ═══ порядок разделов ═══
   Сначала то, что убеждает (живые примеры), потом цены и расчёт, потом подробности. Порядок задан разметкой
   и одинаков на всех ширинах (без CSS order), поэтому Tab и экранный диктор идут так же, как видно глазами.
   Меню в шапке, меню-шторка и подвал перечисляют разделы в том же порядке. */
@media (max-width: 960px) {
  main#top > #examples { padding-top: 44px; }
  main#top > #calc { padding-top: 44px; }
  main#top > #contact { padding-top: 44px !important; }
}

/* ═══ телефон: лёгкий первый экран и короткие вступления ═══ */
@media (max-width: 760px) {
  .flag { display: none; }
  .hero h1 { font-size: clamp(1.8rem, 7.8vw, 2.2rem); margin: 6px 0 14px; }
  .lead { font-size: 1rem; line-height: 1.5; }
  /* три факта — три короткие строки с отметкой */
  .ticket { display: grid; grid-template-columns: 1fr; padding: 4px 14px; border-width: 1px; }
  .ticket div, .ticket div:first-child { flex: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 10px 0 10px 24px; position: relative;
    border-left: 0; border-top: 1px dashed var(--line); }
  .ticket div:first-child { border-top: 0; }
  .ticket div::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
  .ticket b { font-size: .95rem; line-height: 1.25; }
  .ticket span { font-size: .82rem; line-height: 1.3; }
  /* вступления к разделам: на телефоне — короткая версия */
  .long { display: none; }
  .short { display: inline; }
  .price-head { margin-bottom: 18px; gap: 12px; }
  h2 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
}

/* ═══ телефон: доводка третьего круга ═══
   Зоны касания от 44 px, ровные сетки вместо «рваных» рядов, без «прилипшего» наведения на сенсорных экранах. */
@media (max-width: 960px) {
  body.menu-open { overflow: hidden; } /* под открытой шторкой страница не прокручивается */
}
@media (hover: none) {
  .pitem:hover::before { transform: scaleY(0); }
  .ex:hover { transform: none; border-color: var(--line); }
  .ex-own:hover, .ex-wide:hover { border-color: var(--accent); }
  .btn.primary:hover, .clink:hover { transform: none; }
}
@media (max-width: 760px) {
  /* ссылки-кнопки «напишите боту», «пройти демо», мессенджеры — под палец */
  .try-link, .ex-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; }
  .ex-more { min-height: 44px; }
  /* плитки демо узкие: подписи мельче, чтобы «автосервис» и «Мотор» не обрезались на 360 px */
  .ex-shot .cap { left: 10px; right: 10px; bottom: 10px; gap: 5px; }
  .ex-shot .w { font-size: .6rem; letter-spacing: .04em; }
  .ex-shot .n.auto { font-size: 13px; letter-spacing: .05em; }
  .ex-shot .go { width: 28px; height: 28px; top: 8px; right: 8px; }

  /* цены: открытая строка подсвечена, подсветка с полями, а не впритык к тексту */
  .pitem::before { inset: 0 -10px; border-radius: 12px; }
  .pitem.open::before { transform: scaleY(1); }

  /* живой диалог: две вкладки поровну и круглая кнопка «сначала» */
  .tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 6px; }
  .tab { min-height: 44px; padding: 6px 8px; font: 500 .86rem/1.2 var(--font-body); text-align: center; }
  .tab.replay { margin: 0; padding: 0; justify-content: center; }
  .tab.replay .replay-t { display: none; }

  /* калькулятор: ровная сетка; где можно выбрать несколько — квадратик-галочка */
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .calc-step:nth-of-type(n+2) .chips { grid-template-columns: minmax(0, 1fr); }
  .chip { display: flex; }
  .chip span { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; line-height: 1.25; }
  .chip small { flex: none; max-width: 48%; text-align: right; line-height: 1.3; }
  .chip input[type="checkbox"] + span { justify-content: flex-start; }
  .chip input[type="checkbox"] + span small { margin-left: auto; }
  .chip input[type="checkbox"] + span::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--paper); }
  .chip input[type="checkbox"]:checked + span::before { border-color: var(--accent); background: var(--accent) 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='%231A0B04' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

  /* «Паспорт» и HippoCRM: значение под названием, а не зажатое справа; плюсик как в вопросах */
  .specs li { padding: 14px 0; }
  .specs .row { display: grid; grid-template-columns: minmax(0, 1fr) 28px; column-gap: 12px; row-gap: 2px; align-items: center; }
  .specs .dots { display: none; }
  .specs .k { grid-column: 1; }
  .specs .v { grid-column: 1; grid-row: 2; text-align: left; color: var(--muted); }
  .specs .row::after { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; margin: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font: 500 1rem/1 var(--font-mono); }
  .specs li.open .row::after { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

  /* контакты: над заголовком машет маскот — единственная иллюстрация на телефоне, у главного действия */
  .contact-foot { display: block; order: -1; margin: -6px 0 6px; }
  .contact-foot .mascot-wave { display: block; width: 104px; margin: 0; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
  /* контакты: название и адрес в две строки, ничего не переносится посередине */
  .clink { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 60px; padding: 11px 16px; }
  .consent { align-items: center; min-height: 44px; }
  .consent input { width: 22px; height: 22px; margin: 0; }
}

/* ═══ переключатель темы: круглая кнопка «луна/солнце» в шапке и пункт в меню-шторке ═══ */
header.top .wrap { justify-content: flex-start; }
nav.links, .top-cta { margin-left: auto; }
.theme-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; position: relative; z-index: 31; padding: 0; -webkit-tap-highlight-color: transparent; transition: border-color .2s; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg.ic { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .45s var(--ease), opacity .3s; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-btn .sun { opacity: 1; transform: none; color: var(--accent); }
.m-theme { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px 0 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 1rem var(--font-body); text-align: left; cursor: pointer; }
.m-theme span { flex: 1; }
.m-theme svg.ic { width: 20px; height: 20px; color: var(--accent); }
.m-theme .sw { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); transition: background .2s; }
.m-theme .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.m-theme[aria-pressed="true"] .sw { background: var(--accent-btn, var(--accent)); }
.m-theme[aria-pressed="true"] .sw::after { transform: translateX(18px); }
@media (max-width: 960px) { .theme-btn + .menu-btn { margin-left: -6px; } }
@media (max-width: 760px) { .theme-btn { margin-left: auto; } }
/* в момент смены темы всё перекрашивается разом, без растянутых переходов */
:root.theme-switching *, :root.theme-switching *::before, :root.theme-switching *::after { transition: none !important; }

/* ═══ тёмная тема: детали ═══ */
[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .03; }
/* главная кнопка: #EE5320 с тёмным текстом (5,4:1), тёплое свечение вместо «отжима» */
[data-theme="dark"] .btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); box-shadow: 0 10px 30px -12px rgba(238, 83, 32, .6); }
[data-theme="dark"] .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 14px 36px -12px rgba(255, 106, 53, .7); }
[data-theme="dark"] .m-bar .btn.primary { box-shadow: 0 8px 24px -12px rgba(238, 83, 32, .7); }
[data-theme="dark"] .badge-arrow, [data-theme="dark"] .composer .send, [data-theme="dark"] .demo-ic { background: var(--accent-btn); }
/* блоки, которые на светлой теме тёмные (расчёт, форма заявки): графитовая карточка со светлым текстом и тёплым свечением */
[data-theme="dark"] .calc-res, [data-theme="dark"] .contact { --paper: #F2F0EA; border: 1px solid var(--line); box-shadow: var(--sh-3); }
[data-theme="dark"] .calc-res { background: radial-gradient(110% 70% at 100% 0%, rgba(238, 83, 32, .16), transparent 60%), var(--surface); }
[data-theme="dark"] .contact { background: radial-gradient(90% 70% at 100% 0%, rgba(238, 83, 32, .16), transparent 60%), var(--surface); }
[data-theme="dark"] .f input, [data-theme="dark"] .f textarea { background: var(--paper-dark, #111214); }
[data-theme="dark"] .clink.primary { border-color: rgba(255, 106, 53, .6); }
/* макет телефона с живым диалогом: графитовый корпус и свечение */
[data-theme="dark"] .phone { background: #1E2024; box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* рамки-контейнеры: не белые линии, а графит */
[data-theme="dark"] .ticket, [data-theme="dark"] .passport-box, [data-theme="dark"] .demo-open, [data-theme="dark"] .calc-n { border-color: var(--line-strong); }
[data-theme="dark"] .pricelist, [data-theme="dark"] details:first-child { border-top-color: var(--line-strong); }
[data-theme="dark"] .ticket, [data-theme="dark"] .passport-box, [data-theme="dark"] .ex, [data-theme="dark"] .demo-open { box-shadow: var(--sh-1); }
[data-theme="dark"] .ex:hover { border-color: var(--line-strong); }
[data-theme="dark"] .ex-own, [data-theme="dark"] .ex-wide:hover { border-color: rgba(255, 106, 53, .55); }
/* выбранная вкладка и вариант калькулятора: светлая таблетка на тёмном */
[data-theme="dark"] .tab[aria-selected="true"], [data-theme="dark"] .chip input:checked + span { background: var(--ink); color: #0D0D0F; border-color: var(--ink); }
[data-theme="dark"] .chip input:checked + span small { color: #4A4D53; }
/* шапка, нижняя панель и меню: стекло на чёрном */
[data-theme="dark"] header.top { background: color-mix(in srgb, var(--paper) 82%, transparent); }
[data-theme="dark"] .m-bar { background: color-mix(in srgb, var(--surface) 88%, transparent); border-color: var(--line-strong); }
/* маскот и логотип: тёплый ореол, чтобы глиняная фигура не терялась на чёрном */
[data-theme="dark"] .mascot-laptop { filter: drop-shadow(0 24px 40px rgba(238, 83, 32, .22)); }
[data-theme="dark"] .brand .logo, [data-theme="dark"] footer .brand-mini img { border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08), 0 6px 18px -6px rgba(238, 83, 32, .45); }
[data-theme="dark"] .crm-mock { border-color: var(--line-strong); }
[data-theme="dark"] summary .pm { border-color: #5A5E66; }
[data-theme="dark"] details[open] summary .pm { border-color: var(--accent-btn); background: var(--accent-btn); }
[data-theme="dark"] .ch.app { color: #1A0B04; }
.stamp svg.ic { width: .85em; height: .85em; stroke-width: 2.6; }
/* раскрытая цена: графитовая плашка с оранжевой кромкой вместо бурой заливки */
[data-theme="dark"] .pitem::before { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px var(--line); }
[data-theme="dark"] .cm-card.fresh { border-color: var(--accent); }

/* ═══ пятый круг: компьютер 1024–1920 ═══
   Ровный ритм разделов, цифры в «билете» первого экрана, просторный макет HippoCRM, маскот в «Паспорте»,
   широкие плитки демо, подвал с разделами и контактами. Телефонная вёрстка (до 760 px) не меняется. */
.ticket b em { font-style: normal; color: var(--accent-text); }
@media (min-width: 761px) {
  .ticket div { display: grid; align-content: start; gap: 4px; padding: 16px 18px; }
  .ticket b { font: 600 1rem/1.25 var(--font-body); letter-spacing: 0; }
  .ticket b em { display: block; margin-bottom: 4px; font: 800 2rem/1 var(--font-display); letter-spacing: -.03em; color: var(--accent); }
  .ticket span { line-height: 1.4; }
}
@media (min-width: 961px) {
  section { padding: clamp(72px, 7.5vw, 96px) 0; }
  #contact { padding-bottom: 72px; }
  /* живой диалог: вкладки в одну строку */
  .tabs { flex-wrap: nowrap; align-items: center; }
  .tab { white-space: nowrap; }
}
/* на узком компьютере «Сначала» — круглая кнопка, иначе она уезжает на вторую строку */
@media (min-width: 961px) and (max-width: 1180px) {
  .tab.replay { width: 36px; height: 36px; padding: 0; justify-content: center; flex: none; }
  .tab.replay .replay-t { display: none; }
}
.top-cta { transition: background .2s, color .2s; }
.top-cta:hover { background: var(--accent-btn, var(--accent)); color: var(--accent-ink); }
.chip input:focus-visible + span { outline-width: 2px; }
.ex-shot:focus-visible { outline-offset: 3px; border-radius: 16px; }
.ex-shot:focus-visible img { transform: scale(1.07); }

/* HippoCRM: колонка с макетом шире, в макете читаемые кегли и подписи без обрезки */
@media (min-width: 961px) {
  #crm .passport-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .crm-mock { margin-top: 28px; font-size: 12px; border-radius: 20px; }
  .cm-bar { padding: 10px 14px; gap: 6px; }
  .cm-bar i { width: 8px; height: 8px; }
  .cm-bar span { font-size: 12px; }
  .cm-cols { gap: 10px; padding: 12px; }
  .cm-col { gap: 8px; }
  .cm-col > b { font-size: 12px; }
  .cm-card { gap: 2px; padding: 10px; border-radius: 12px; box-shadow: 0 1px 2px rgba(60, 45, 25, .05); }
  .cm-card strong { font-size: 14px; }
  .cm-card small { font-size: 12px; }
  .cm-card .ch { font-size: 10px; padding: 2px 8px; margin-bottom: 4px; }
}

/* «Паспорт изделия»: маскот отдыхает в гамаке, пока бот работает; заполняет пустое поле под штампом */
.mascot-relax { display: none; }
@media (min-width: 961px) {
  #inside .passport-box .side { display: flex; flex-direction: column; align-items: flex-start; }
  .mascot-relax { display: block; width: min(100%, 280px); height: auto; margin: auto 0 -8px; padding-top: 28px; filter: drop-shadow(0 20px 28px rgba(90, 55, 25, .18)); }
  [data-theme="dark"] .mascot-relax { filter: drop-shadow(0 24px 40px rgba(238, 83, 32, .22)); }
}

/* примеры: карточка HippoBot делится поровну, плитки демо крупнее */
@media (min-width: 961px) {
  .ex-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px; }
  .ex-shots, .ex-shot { min-height: 240px; }
  .ex-shot .cap { left: 16px; right: 16px; bottom: 16px; }
  .ex { padding: 28px; }
}

/* подвал: о студии, разделы, связаться */
footer { padding: 0 0 40px; border-top: 1px solid var(--line); }
footer .foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 48px; padding-bottom: 40px; }
.foot-about .brand { width: fit-content; }
.foot-about .brand .logo { width: 36px; height: 36px; }
.foot-about p { margin: 14px 0 0; max-width: 38ch; font-size: .875rem; line-height: 1.55; }
.foot-col { display: grid; align-content: start; justify-items: start; gap: 8px; }
.foot-k { margin-bottom: 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot-col > a { color: var(--ink); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.foot-col > a:hover { color: var(--accent-text); }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-link { font: 500 var(--step--1) var(--font-mono); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s; }
.foot-link:hover { border-color: var(--accent); color: var(--accent-text); }
.foot-col > .foot-app { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--accent-text); }
.foot-app svg.ic { transition: transform .3s var(--ease); }
.foot-app:hover svg.ic { transform: translate(2px, -2px); }
.foot-col.foot-nav { grid-template-columns: repeat(2, max-content); column-gap: 32px; }
.foot-nav .foot-k { grid-column: 1 / -1; }
/* пунктир над нижней строкой — по ширине контента, без боковых полей */
footer .foot-bottom { position: relative; padding-top: 20px; font-size: var(--step--1); }
footer .foot-bottom::before { content: ""; position: absolute; top: 0; left: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); border-top: 1px dashed var(--line-strong); }
#crm .passport-box .side p { max-width: 44ch; }
@media (max-width: 760px) {
  footer { padding-bottom: 104px; } /* нижняя панель с кнопкой не закрывает подвал */
  footer .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
  .foot-col.foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .foot-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
  .foot-col > a { min-height: 40px; display: inline-flex; align-items: center; }
  footer .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (min-width: 761px) and (max-width: 960px) { footer .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ═══ шестой круг: доступность, планшет 768–1024 и узкий телефон 360 ═══ */
/* ссылка «к содержанию» для клавиатуры: видна только в фокусе */
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
main:focus { outline: none; }
/* живой диалог: сообщение с кнопками во всю ширину, как в мессенджере; «09:00» и «Сегодня» не рвутся посередине */
.msg.bot:has(.kb) { width: 86%; }
.kb .k { overflow-wrap: normal; min-width: 0; }
/* вкладки демо: обёртка со списком вкладок не влияет на раскладку */
.tabs-list { display: contents; }

/* сенсорные экраны любой ширины (планшет, iPad в альбомной ориентации): зоны касания от 44 px */
@media (pointer: coarse) {
  .try-link, .ex-link, .foot-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; }
  .tab { min-height: 44px; }
  .ex-more { min-height: 44px; }
  .chip span { min-height: 48px; align-items: center; }
  nav.links a { padding: 12px 0; }
  nav.links a::after { bottom: 6px; }
  .foot-col > a { min-height: 40px; display: inline-flex; align-items: center; }
  .consent { align-items: center; min-height: 44px; }
  .consent input { width: 22px; height: 22px; margin: 0; }
}

/* планшет 761–960: телефон с живым диалогом и рабочий чат рядом, а не друг под другом с пустыми полями */
@media (min-width: 761px) and (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.4rem, 5.4vw, 3rem); max-width: 17ch; }
  .lead { max-width: 46ch; }
  .hero-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: 32px; row-gap: 0; }
  .hero-grid > :first-child { grid-column: 1 / -1; margin-bottom: 8px; }
  .hero-grid > .device-col { grid-column: 1; }
  .hero-grid > .biz { grid-column: 2; margin-top: 0; align-self: start; padding-top: 4px; }
  .biz-list { min-height: 130px; }
  .tabs { flex-wrap: nowrap; align-items: center; }
  .tab { white-space: nowrap; }
  .tab.replay { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; }
  .tab.replay .replay-t { display: none; }
  /* примеры: два демо рядом, карточка нашего бота во всю ширину */
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-wide { grid-column: 1 / -1; }
  .ex-shots, .ex-shot { min-height: 220px; }
  /* цены: срок рядом с ценой, а не отдельной строкой под описанием */
  .pitem { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 20px; }
  .pitem p { grid-column: 1 / -1; grid-row: 2; }
  .pitem .term { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .pitem .price { grid-column: 3; grid-row: 1; }
  /* «Паспорт» и HippoCRM: текст и список рядом занимают всю ширину */
  .passport-box .side p { max-width: 60ch; }
  /* контакты: маскот рядом с заголовком, форма шире */
  .contact-foot { margin-top: 18px; }
  /* меню-шторка на планшете: колонка по центру, кнопки сразу под пунктами, а не прижаты к низу через пустой экран */
  .m-menu { padding-top: 96px; }
  .m-menu > * { width: 100%; max-width: 560px; margin-inline: auto; }
  .m-foot { margin-top: 8px; }
}

/* узкий телефон 360 и меньше */
@media (max-width: 380px) {
  .tab { padding: 6px 4px; font-size: .8rem; }
  .cm-card small { white-space: normal; } /* в макете HippoCRM подписи переносятся, а не обрезаются многоточием */
  .chip span { padding: 10px 12px; }
  .m-bar .btn { padding: 12px 12px; font-size: .94rem; }
}
/* меню-шторка на невысоком экране: все пункты и кнопка внизу помещаются без прокрутки */
@media (max-width: 960px) and (max-height: 800px) {
  .m-menu { padding-top: 68px; gap: 14px; }
  .m-nav a { padding: 9px 0; }
  .m-nav b { font-size: 1.3rem; }
  .m-nav small { font-size: .82rem; }
  .m-foot { gap: 10px; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .m-nav small { display: none; } /* очень низкий экран: остаются только названия разделов */
  .m-nav a { padding: 8px 0; }
}
/* на невысоком экране компьютера (ноутбук 1366×768, iPad 1024×768) телефон с диалогом помещается целиком */
@media (min-width: 961px) and (max-height: 820px) {
  .screen { height: 520px; }
  .device-col { top: 76px; }
}

/* HippoCRM: ссылка на демо-панель под ценником */
.crm-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 22px 0 0; }
.crm-try .hint { color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .crm-try .btn { width: 100%; justify-content: center; } }

/* ═══ седьмой круг: страница /hippocrm/ и порядок разделов ═══ */
/* ссылка на страницу продукта под кнопкой демо и в подвале */
.crm-more { margin: 14px 0 0; }
.crm-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.crm-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crm-more svg.ic, .foot-crm svg.ic { transition: transform .3s var(--ease); }
.crm-more a:hover svg.ic, .foot-crm:hover svg.ic { transform: translateX(3px); }
.foot-col > .foot-app + .foot-app { margin-top: 0; }
@media (max-width: 960px) { .crm-more a { width: 100%; justify-content: center; } }
/* примеры идут сразу за первым экраном: свой отступ сверху вместо нулевого (раньше перед ними стоял другой раздел) */
@media (min-width: 961px) { main#top > #examples { padding-top: clamp(48px, 5vw, 72px); } }
