/* Главная hippo-bot.ru: первый экран с живым диалогом, примеры, цены, калькулятор, HippoCRM, этапы, паспорт,
   вопросы и письмо. Подключается после main.css; общие куски (шапка, меню, форма, подвал) — там. */
@layer pages {
.ex-shot .go svg.ic { width: 16px; height: 16px; }
.ex-more .arr { display: inline-flex; }
/* ── первый экран ── */
.hero { padding: clamp(32px, 6vw, 80px) 0 24px; }
.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; transition: border-color var(--dur-fast); }
.flag:hover { border-color: var(--ink); }
.flag .arr { transition: transform var(--dur-base) var(--ease); }
.flag:hover .arr { transform: translateX(4px); }
.flag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.try { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: -12px 0 30px; }
.try-label { font-size: 1.35rem; transform: rotate(-2deg); }
.try-links { display: flex; gap: 8px; flex-wrap: wrap; }
.try-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 var(--dur-fast), color var(--dur-fast); border-color: var(--line-strong); }
.try-link:hover { border-color: var(--accent); color: var(--accent-text); }
/* первый экран — одна сцена до 600 мс: заголовок целиком (0–500 мс), подчёркивание (250–600 мс), телефон-демо (300–600 мс).
   Текст, кнопки действия и плашки видны сразу, ничего не ждёт анимации. */
.hero h1 { animation: heroIn var(--dur-hero) var(--ease) both; }
.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 var(--dur-base) .25s var(--ease) forwards; }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 36ch; margin: 0 0 28px; color: var(--ink); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.ticket { display: flex; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); }
.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); }
.note { position: absolute; z-index: 2; pointer-events: none; }
.hero { scroll-margin-top: 64px; }
/* .reveal без постоянного will-change: слой браузер заводит сам на время анимации */
/* прайс */
.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 var(--dur-screen) 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 var(--dur-fast), background var(--dur-fast), color var(--dur-fast), transform var(--dur-press); }
.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; }
/* пересчёт: цифры доезжают за 300 мс (calc.js), блок коротко вспыхивает; новые строки расшифровки появляются */
.calc-sum { margin: 0 -8px; padding: 2px 8px; border-radius: 12px; }
.calc-sum.is-flash { animation: sumFlash var(--dur-fast) var(--ease-out); }
.calc-lines li.is-new { animation: pop var(--dur-fast) var(--ease-out) both; }
.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 var(--dur-fast), transform var(--dur-fast) 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 calc(var(--dur-base) * 2) 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 Georgia, serif; letter-spacing: .02em; }
/* «Лак» нарисован кривыми Playfair Display 600 (index.html): 1,872 × 1,333 em, базовая линия как у текста при line-height: 1 */
.ex-shot .n-svg { display: block; width: 1.872em; height: 1.333em; margin: -.1665em 0; fill: currentColor; overflow: visible; }
.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 var(--dur-base) 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; }
.contact-foot { margin-top: auto; }
.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 var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.badge-arrow svg { transition: transform var(--dur-base) 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; }
.form-status.ok { color: var(--on-ink-ok); }
.form-status.err { color: var(--on-ink-err); }
.clink.todo { border-style: dashed; }
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); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  }
}
@media (max-width: 960px) {
  .price-head, .passport-box, .calc, .calc-head, .ex-grid { grid-template-columns: 1fr; }
  .price-head p, .calc-head p { justify-self: start; }
  .calc-res { 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; }
  .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; }
  .ticket div { flex-basis: 100%; border-left: 0; border-top: 1.5px dashed var(--line); }
  .ticket div:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scribble path { stroke-dashoffset: 0; }
}
/* снимок веб-панели HippoCRM в блоке #crm: окно браузера, как на hippo-crm.ru; вся картинка ведёт в демо */
.crm-shot { position: relative; display: block; margin-top: 26px; text-decoration: none; color: var(--ink); border-radius: 16px; }
.crm-browser { display: block; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.crm-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.crm-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.crm-bar i:first-child { background: var(--accent); }
.crm-bar span { margin-left: 6px; font: 500 .75rem var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--sunken); }
/* под тему сайта: в светлой теме светлый снимок, в тёмной тёмный (скрытый снимок с loading=lazy не качается) */
.crm-shot .th-dark, :root[data-theme="dark"] .crm-shot .th-light { display: none; }
:root[data-theme="dark"] .crm-shot .th-dark { display: block; }
.crm-go { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--accent-btn, var(--accent)); color: var(--accent-ink); font-weight: 600; font-size: .9375rem; box-shadow: 0 10px 24px -10px rgba(60, 45, 25, .45); transition: transform var(--dur-base) var(--ease); }
.crm-go svg.ic { transition: transform var(--dur-base) var(--ease); }
.crm-shot:hover .crm-browser { transform: translateY(-3px); box-shadow: var(--sh-3); }
.crm-shot:hover .crm-go svg.ic { transform: translate(2px, -2px); }
.crm-shot:focus-visible { outline-offset: 4px; }
[data-theme="dark"] .crm-browser { box-shadow: var(--sh-1); }
[data-theme="dark"] .crm-shot:hover .crm-browser { box-shadow: var(--sh-2); border-color: rgba(255, 106, 53, .55); }
@media (max-width: 760px) {
  .crm-shot, .crm-browser { border-radius: 12px; }
  .crm-bar { padding: 7px 10px; gap: 5px; }
  .crm-bar i { width: 7px; height: 7px; }
  .crm-bar span { font-size: .6875rem; }
  .crm-go { right: 10px; bottom: 10px; min-height: 40px; padding: 0 14px; font-size: .875rem; }
}
.ex-more, .short { display: none; }
.ex-pair { display: contents; }
@media (max-width: 760px) {
  /* первый экран */
  .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 .demo-t { flex: 1; display: grid; gap: 2px; }
  .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; }
  /* цены: строка «название — цена», описание по нажатию */
  .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 var(--dur-base) 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 var(--dur-base) 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 var(--dur-base) var(--ease); }
  .ex-wide.more .ex-more .arr { transform: rotate(180deg); }
  .ex-wide:not(.more) dl { display: none; }
  .ex-wide.more dl { animation: fadeUp var(--dur-base) 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; }
  .badge-wrap { display: none; }
  .contact-foot { display: none; }
  .calc-everywhere { display: none; }
}
@media (max-width: 960px) {
  main#top > #examples { padding-top: 44px; }
  main#top > #calc { padding-top: 44px; }
}
@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; }
  /* первый экран без перегруза: главная кнопка, под ней карточка живого диалога, одна строка «Написать боту».
     «Обсудить задачу» здесь лишняя: та же ссылка есть в нижней панели и в строке с ботом.
     Рукописная пометка на этом экране не нужна: остаётся одна на экран (docs/design-system.md §2) */
  .cta .demo-open { margin-top: 0; }
  .cta .cta-talk { display: none; }
  .hero .try { gap: 0 2px; margin: -14px 0 18px; }
  /* в одну строку от 360 px; на ещё более узком экране ссылки переносятся под подпись */
  .hero .try-label { flex: none; font: 500 .875rem/1.3 var(--font-body); color: var(--muted); transform: none; }
  .hero .try-links { flex-wrap: nowrap; gap: 0; }
  .hero .try-link {
 min-height: 44px; padding: 0 3px; border: 0; border-radius: 8px; background: none; font: 600 .875rem/1.3 var(--font-body); color: var(--ink);
    text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 4px; 
  }
  .hero .try-link { position: relative; }
  .hero .try-link + .try-link { margin-left: 11px; }
  .hero .try-link + .try-link::before { content: "/"; position: absolute; left: -9px; color: var(--muted); font-weight: 400; }
  /* вне ссылки: без подчёркивания */
  .hero .try-link:hover { color: var(--accent-text); }
}
@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); }
}
@media (max-width: 760px) {
  .try-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); }
  /* калькулятор: ровная сетка; где можно выбрать несколько — квадратик-галочка */
  .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)); }
}
[data-theme="dark"] .badge-arrow, [data-theme="dark"] .demo-ic { background: var(--accent-btn); }
[data-theme="dark"] .calc-res { --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"] .ticket, [data-theme="dark"] .passport-box, [data-theme="dark"] .calc-n { border-color: var(--line-strong); }
[data-theme="dark"] .pricelist { border-top-color: var(--line-strong); }
[data-theme="dark"] .ticket, [data-theme="dark"] .passport-box, [data-theme="dark"] .ex { 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"] .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"] .mascot-laptop { filter: drop-shadow(0 24px 40px rgba(238, 83, 32, .22)); }
.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); }
/* ═══ пятый круг: компьютер 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; }
}
.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-shot { margin-top: 28px; }
}
/* «Паспорт изделия»: маскот отдыхает в гамаке, пока бот работает; заполняет пустое поле под штампом */
.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; }
}
#crm .passport-box .side p { max-width: 44ch; }
@media (pointer: coarse) {
  .try-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; }
  .ex-more { min-height: 44px; }
  .chip span { min-height: 48px; align-items: center; }
}
@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; }
  /* примеры: два демо рядом, карточка нашего бота во всю ширину */
  .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; }
}
@media (max-width: 380px) {
  .chip span { padding: 10px 12px; }
}
/* 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 { transition: transform var(--dur-base) var(--ease); }
.crm-more a:hover svg.ic { transform: translateX(3px); }
@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); }
}
/* ═══ восьмой круг: мини-приложение во ВКонтакте ═══ */
/* контакты: мессенджеры мини-приложения компактными кнопками под ссылками на бота */
.contact-apps { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.capp { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); color: var(--paper); text-decoration: none; font: 500 var(--step--1) var(--font-mono); transition: border-color var(--dur-fast), color var(--dur-fast); }
.capp:hover { border-color: var(--accent); }
@media (max-width: 760px) {
  .capp { min-height: 44px; }
}
/* ═══ девятый круг: отраслевые страницы, политика, заявки ═══ */
/* ссылки на отраслевые страницы: в тексте первого экрана и под «Примерами» */
.lead a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color var(--dur-fast), text-decoration-color var(--dur-fast); }
.lead a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.ex-trades { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; }
.ex-trades p { margin: 0; color: var(--muted); }
}
