/* Главная, редизайн 18 ноября 2026 по брифу Жанны. Остальные страницы используют styles.css. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --band: #f2f2f2;
  --ink: #111111;
  --ink-2: #454545;
  --ink-3: #6b6b6b;
  --line: rgba(17, 17, 17, .1);
  --line-strong: rgba(17, 17, 17, .16);
  --leaf: #c6ff00;
  --on-leaf: #111111;
  --accent: #111111;
  --accent-display: #111111;
  --btn: #c6ff00;
  --btn-hover: #b2e600;
  --beacon: #a8db00;
  --tint: #f3ffd1;
  --btn-text: #111111;
  --ghost: #6b6b6b;
  --wall: #f4f4f4;
  --bubble-in: #ffffff;
  --bubble-out: #ecffb3;
  --lid: #1c1d1f;
  --base-1: #e4e5e7;
  --base-2: #c3c4c7;
  --shadow-1: 0 1px 2px rgba(17, 17, 17, .05), 0 0 0 1px rgba(17, 17, 17, .07);
  --shadow-2: 0 2px 4px rgba(17, 17, 17, .04), 0 18px 40px -20px rgba(17, 17, 17, .28), 0 0 0 1px rgba(17, 17, 17, .07);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(64px, 7.5vw, 112px);
  --top-h: 68px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111111;
  --surface: #1b1b1b;
  --band: #171717;
  --ink: #f5f5f5;
  --ink-2: #bdbdbd;
  --ink-3: #8e8e8e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --leaf: #c6ff00;
  --accent: #c6ff00;
  --accent-display: #c6ff00;
  --btn: #c6ff00;
  --btn-hover: #b2e600;
  --beacon: #c6ff00;
  --tint: #1d2309;
  --btn-text: #111111;
  --ghost: #8e8e8e;
  --wall: #0e0e0e;
  --bubble-in: #222222;
  --bubble-out: #2e3a0b;
  --lid: #0b0b0c;
  --base-1: #46474a;
  --base-2: #2c2d2f;
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .08);
  --shadow-2: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 48px -20px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111111;
    --surface: #1b1b1b;
    --band: #171717;
    --ink: #f5f5f5;
    --ink-2: #bdbdbd;
    --ink-3: #8e8e8e;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .15);
    --leaf: #c6ff00;
    --accent: #c6ff00;
    --accent-display: #c6ff00;
    --btn: #c6ff00;
    --btn-hover: #b2e600;
    --beacon: #c6ff00;
    --tint: #1d2309;
    --btn-text: #111111;
    --ghost: #8e8e8e;
    --wall: #0e0e0e;
    --bubble-in: #222222;
    --bubble-out: #2e3a0b;
    --lid: #0b0b0c;
    --base-1: #46474a;
    --base-2: #2c2d2f;
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .08);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 48px -20px rgba(0, 0, 0, .8);
  }
}

/* Основа */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 20px); }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a, button, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
mark { background: color-mix(in srgb, var(--leaf) 18%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
kbd { display: inline-block; min-width: 1.7em; padding: 0 .45em; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 0 var(--line-strong); font: 600 .78em/1.75 var(--sans); text-align: center; color: var(--ink-2); }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--btn); color: var(--btn-text); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition-property: background-color, color, box-shadow, scale; transition-duration: .18s; transition-timing-function: var(--ease); }
.btn:active { scale: .96; }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn-main { background: var(--btn); color: var(--btn-text); }
.btn-main:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* Шапка как у Anthropic: ссылки-пилюли по краям, название по центру, при прокрутке знак из трёх точек */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); transition-property: background-color, box-shadow; transition-duration: .3s; transition-timing-function: var(--ease); }
.top.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.top-nav { display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition-property: background-color, box-shadow; transition-duration: .15s; }
.pill:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pill-cta { padding: 0 16px; background: var(--btn); box-shadow: none; color: var(--btn-text); font-weight: 600; }
.pill-cta:hover { background: var(--btn-hover); }
.pill-cta .ic { width: 16px; height: 16px; stroke-width: 2.1; }
.logo { display: grid; justify-self: center; place-items: center; color: var(--ink); text-decoration: none; }
.logo > * { grid-area: 1 / 1; }
.logo-word { font: 600 22px/1 var(--display); letter-spacing: -.025em; white-space: nowrap; transition-property: opacity, scale, filter; transition-duration: .4s; transition-timing-function: var(--ease); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 32px; height: 32px; border-radius: 9px; background: var(--leaf); opacity: 0; scale: .5; transition-property: opacity, scale; transition-duration: .4s; transition-timing-function: var(--ease); }
.logo-mark i, .assist-mark i { width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--on-leaf); }
/* Шаг 8px даёт целые пиксели на масштабах 100, 125, 150 и 200%: при 4,5 + 3 на 125% средняя точка выходила шире крайних */
.logo-mark i { width: 4px; height: 4px; }
.top.is-scrolled .logo-word { opacity: 0; scale: .92; filter: blur(3px); }
.top.is-scrolled .logo-mark { opacity: 1; scale: 1; }
.top.is-scrolled .logo-mark i { animation: dot-wave .8s var(--ease) .15s 1 both; }
.top.is-scrolled .logo-mark i:nth-child(2) { animation-delay: .23s; }
.top.is-scrolled .logo-mark i:nth-child(3) { animation-delay: .31s; }
@keyframes dot-wave { 0%, 100% { translate: 0 0; } 45% { translate: 0 -3px; } }
.top-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.menu { position: relative; display: none; }
.menu summary { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-sheet { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 220px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-2); }
.menu-sheet a { padding: 11px 12px; border-radius: 10px; text-decoration: none; font-size: 16px; }
.menu-sheet a:hover { background: var(--band); }

/* Первый экран */
.hero { padding: clamp(28px, 4.5vw, 64px) 0 clamp(28px, 3.4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.hero-title { font-size: clamp(38px, 4.15vw, 60px); line-height: 1.05; letter-spacing: -.035em; }
.lead { max-width: 31em; margin-top: 22px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }
.get { margin-top: 32px; }
.get-row { display: flex; flex-wrap: wrap; gap: 10px; }
.get-meta { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.get-meta a { color: var(--ink-2); }
.get-setup { white-space: nowrap; }
.get-status { margin-top: 8px; color: var(--accent); font-size: 14px; }
.get-status:empty { display: none; }
.get-phone { display: none; }
html.is-phone .get-desk { display: none; }
html.is-phone .get-phone { display: block; }

/* Ноутбук с живой перепиской */
.demo { position: relative; margin: 0; }
.demo::before { content: ""; position: absolute; inset: 6% -6% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--leaf) 9%, transparent), transparent); }
.laptop { width: 100%; max-width: 700px; margin: 0 auto; }
.laptop-lid { position: relative; padding: 2.4% 2.4% 2.8%; border-radius: 20px 20px 8px 8px; background: var(--lid); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .3); }
.laptop-cam { position: absolute; top: 1%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #3a3b3e; translate: -50% 0; }
.laptop-screen { aspect-ratio: 16 / 10.2; overflow: hidden; border-radius: 5px; background: var(--surface); }
.laptop-base { position: relative; height: 14px; margin: 0 -6.5%; border-radius: 3px 3px 16px 16px / 3px 3px 12px 12px; background: linear-gradient(var(--base-1), var(--base-2)); box-shadow: 0 22px 34px -16px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.laptop-base i { position: absolute; top: 0; left: 50%; width: 15%; height: 5px; translate: -50% 0; border-radius: 0 0 7px 7px; background: color-mix(in srgb, var(--base-2) 75%, #000); opacity: .5; }
.app { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; font-size: 13px; }
.app-bar { display: flex; align-items: center; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--band) 55%, var(--surface)); color: var(--ink-3); font-size: 11.5px; }
.app-lights { display: flex; gap: 6px; }
.app-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.app-lights i:nth-child(2) { background: #febc2e; }
.app-lights i:nth-child(3) { background: #28c840; }
.app-title { flex: 1; text-align: center; }
.app-controls { display: none; gap: 16px; }
.app-controls i { position: relative; width: 9px; height: 9px; }
.w-min::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.w-max { box-shadow: inset 0 0 0 1px currentColor; }
.w-close::before, .w-close::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; height: 1px; background: currentColor; rotate: 45deg; }
.w-close::after { rotate: -45deg; }
html.os-windows .app-lights { display: none; }
html.os-windows .app-controls { display: flex; }
html.os-windows .app-title { text-align: left; }
.app-body { display: grid; grid-template-columns: 31% minmax(0, 1fr); min-height: 0; }
.chats { padding: 8px 6px; border-right: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.chats-search { margin: 0 4px 6px; padding: 6px 9px; border-radius: 7px; background: var(--band); color: var(--ink-3); font-size: 11.5px; }
.chat { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 7px; border-radius: 9px; }
.chat.is-active { background: var(--tint); }
.chat-txt { display: grid; min-width: 0; line-height: 1.3; }
.chat-txt b { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-txt small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat time { align-self: start; color: var(--ink-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.ava { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.ava-m { background: #a9553a; }
.ava-o { background: #4a6bb0; }
.ava-v { background: #6f5fc0; }
.ava-d { background: #2f8270; }
.room { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: var(--wall); container-type: inline-size; }
.room-head { display: flex; align-items: center; gap: 9px; padding: 7px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.room-head .ava { width: 30px; height: 30px; }
.room-who { display: grid; line-height: 1.25; }
.room-who b { font-size: 13px; font-weight: 600; }
.room-who small { color: var(--accent); font-size: 11.5px; }
.room-who small.is-typing::after { content: "…"; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; animation: type-dots 1.2s steps(4) infinite; }
@keyframes type-dots { 0% { width: 0; } 100% { width: 1.2em; } }
.feed { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; min-height: 0; padding: 10px 14px; overflow: hidden; }
.room.has-assist .feed { padding-bottom: 46px; }
.feed { transition: padding-bottom .3s var(--ease); }
.day { align-self: center; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--ink-3); font-size: 11px; }
.msg { position: relative; max-width: 82%; margin: 0; padding: 7px 11px; border-radius: 13px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(27, 29, 27, .07); }
.msg time { float: right; margin: 5px 0 -4px 9px; color: var(--ink-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.msg-in { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--bubble-in); }
.msg-out { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--bubble-out); }
.msg-out time { color: var(--accent); }
.ticks { margin-left: 3px; letter-spacing: -.25em; color: var(--accent); }
.msg.is-hidden { display: none; }
.msg.is-new { animation: pop-in .3s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.typing i, .thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot-blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2), .thinking i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3), .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-blink { 0%, 70%, 100% { opacity: .3; translate: 0 0; } 35% { opacity: 1; translate: 0 -2px; } }
.compose { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.compose-clip { width: 17px; height: 17px; color: var(--ink-3); }
.field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; min-height: 32px; border-radius: 8px; }
.field:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.field-input { width: 100%; height: 32px; padding: 6px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 13.5px/20px var(--sans); resize: none; overflow: hidden; white-space: nowrap; caret-color: var(--accent); }
.field-ghost { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; color: var(--ghost); font: 400 13.5px/20px var(--sans); white-space: nowrap; overflow: hidden; pointer-events: none; }
.field-ghost [data-ghost-text] { overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .35s var(--ease); }
.field.is-ready [data-ghost-text] { opacity: 1; }
.field.is-typed .field-ghost, .field.is-accepted .field-ghost, .field.is-dismissed .field-ghost { visibility: hidden; }
.thinking { display: none; gap: 4px; }
.thinking i { width: 5px; height: 5px; background: var(--accent); }
.field.is-thinking .thinking { display: inline-flex; }
.send { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--band); color: var(--ink-3); cursor: pointer; transition-property: background-color, color, scale; transition-duration: .18s; }
.send .ic { width: 15px; height: 15px; translate: -1px 1px; }
.send:not(:disabled) { background: var(--leaf); color: var(--on-leaf); }
.send:not(:disabled):active { scale: .92; }
.send:disabled { cursor: default; }
.assist { position: absolute; left: 40px; bottom: 54px; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-2); font-size: 11.5px; white-space: nowrap; animation: pop-in .3s var(--ease) both; }
.assist[hidden] { display: none; }
.assist-mark { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 18px; height: 18px; border-radius: 5px; background: var(--leaf); }
.assist-mark i { width: 3px; height: 3px; }
.assist-label { margin-right: 4px; color: var(--ink-2); font-weight: 500; }
.assist-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px 0 4px; border: 0; border-radius: 999px; background: var(--band); color: var(--ink); font-size: 11.5px; cursor: pointer; transition: background-color .15s; }
.assist-btn:hover { background: var(--tint); }
.assist-btn kbd { font-size: 10px; }
.assist-short { display: none; }
@container (max-width: 399px) { .assist { left: 12px; } }
@container (max-width: 369px) { .assist-long { display: none; } .assist-short { display: inline; } }
.assist.is-nudge [data-accept] { animation: nudge 1.6s var(--ease) 4; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--leaf) 45%, transparent); } 60% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--leaf) 0%, transparent); } }
.demo-hint { min-height: 24px; margin-top: 18px; color: var(--ink-2); font-size: 15px; text-align: center; }
.demo-hint-top { margin: 0 0 14px; }
.demo-hint button { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-hint kbd { font-size: 12px; }
.desk-demo.is-done .demo-hint { display: none; }
.demo-done { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; max-width: 640px; margin: 16px auto 0; padding: 12px 12px 12px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); animation: pop-in .35s var(--ease) both; }
.demo-done[hidden] { display: none; }
.demo-done p { color: var(--ink-2); font-size: 14.5px; }
.demo-done b { color: var(--ink); font-weight: 600; }
.demo-bot { display: inline-block; margin-top: 4px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.demo-done-actions { display: flex; flex: none; gap: 8px; }

/* Демо для телефона: клавиатура как в приложении */
.phone-demo { display: none; }
html.is-phone .desk-demo { display: none; }
html.is-phone .phone-demo { display: block; }
.phone { overflow: hidden; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-2); }
.phone-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: min(580px, 82svh); background: var(--wall); }
.p-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.p-back { color: var(--accent); font-size: 26px; line-height: 1; }
.p-who { display: grid; line-height: 1.25; }
.p-who b { font-size: 15px; font-weight: 600; }
.p-who small { color: var(--accent); font-size: 12.5px; }
.p-feed { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; overflow: hidden; }
.p-msg { font-size: 15px; text-align: left; border: 0; cursor: pointer; }
.p-msg.is-pulse { animation: ring 1.8s var(--ease) 4; }
.p-msg.is-copied { box-shadow: 0 0 0 2px var(--accent); }
@keyframes ring { 0%, 100% { box-shadow: 0 1px 1px rgba(0, 0, 0, .07), 0 0 0 0 color-mix(in srgb, var(--leaf) 45%, transparent); } 55% { box-shadow: 0 1px 1px rgba(0, 0, 0, .07), 0 0 0 7px color-mix(in srgb, var(--leaf) 0%, transparent); } }
.p-copied { position: absolute; left: 6px; bottom: calc(100% + 6px); padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 12.5px; animation: pop-in .25s var(--ease) both; }
.p-copied[hidden] { display: none; }
.p-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border-top: 1px solid var(--line); }
.p-field { flex: 1; min-height: 36px; padding: 8px 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; line-height: 1.35; }
.p-placeholder { color: var(--ink-3); }
.p-text:empty { display: none; }
.p-input.is-filled .p-placeholder { display: none; }
.p-input.is-filled .p-field { box-shadow: inset 0 0 0 1.5px var(--accent); }
.p-send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--band); color: var(--ink-3); }
.p-send .ic { width: 16px; height: 16px; }
.p-input.is-filled .p-send { color: var(--ink-2); }
.kb { padding: 4px 3px 6px; background: #d1d3d9; color: #111; }
.kb-bar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 3px 4px; }
.kb-main { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; width: 56px; height: 34px; border: 0; border-radius: 10px; background: var(--leaf); color: var(--on-leaf); font-size: 14px; font-weight: 700; cursor: pointer; }
.kb-main svg { width: 22px; height: 22px; }
.kb-main path { fill: currentColor; }
.kb-main circle { fill: var(--leaf); }
.kb-main-label { display: none; }
.kb-main:disabled { cursor: default; }
.kb-main.is-pulse { animation: ring 1.8s var(--ease) 4; }
.kb-tool { display: grid; flex: 1; place-items: center; height: 34px; color: #6b6f76; }
.kb-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kb-status { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 4px; color: #3c3f44; font-size: 13px; }
.kb-status[hidden], .kb-card[hidden], .kb-card-head[hidden] { display: none; }
.kb-spin { width: 14px; height: 14px; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 1turn; } }
.kb-card { display: grid; gap: 6px; padding: 0 3px 6px; animation: pop-in .3s var(--ease) both; }
.kb-card-head { padding: 2px 6px; color: #3c3f44; font-size: 12.5px; }
.kb-card-text { padding: 11px 12px; border: 0; border-radius: 12px; background: #fff; color: #111; font-size: 15px; line-height: 1.35; text-align: left; cursor: default; }
.kb-card-row { display: flex; align-items: center; gap: 6px; height: 32px; }
.kb-insert { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--leaf); color: var(--on-leaf); font-size: 13px; font-weight: 600; cursor: pointer; }
.kb-insert.is-pulse { animation: ring 1.8s var(--ease) 4; }
.kb-more, .kb-close { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .7); color: #2b2e33; font-size: 13px; cursor: pointer; }
.kb-close { margin-left: auto; padding: 0 10px; font-size: 16px; }
.kb-keys { display: grid; gap: 9px; padding: 3px 2px 0; }
.kb-row { display: flex; justify-content: center; gap: 5px; }
.kb-row i { display: grid; flex: 1; place-items: center; max-width: 33px; height: 40px; border-radius: 6px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .25); font-style: normal; font-size: 18px; }
.kb-row .kb-fn { max-width: 42px; background: #abb0ba; font-size: 15px; }
.kb-row .kb-wide { max-width: 64px; font-size: 13px; }
.kb-row .kb-space { max-width: none; flex: 4; color: #555; font-size: 13px; }
html.os-android .kb-main { width: auto; padding: 0 14px; border-radius: 20px; background: #4262ff; }
html.os-android .kb-main svg { display: none; }
html.os-android .kb-main-label { display: inline; }
html.os-android .kb-insert { display: none; }
html.os-android .kb-card-text { cursor: pointer; }
:root[data-theme="dark"] .kb { background: #2b2c2f; color: #f2f2f2; }
:root[data-theme="dark"] .kb-row i, :root[data-theme="dark"] .kb-card-text { background: #5a5b5f; color: #f2f2f2; }
:root[data-theme="dark"] .kb-row .kb-fn { background: #3c3d41; }
:root[data-theme="dark"] .kb-status, :root[data-theme="dark"] .kb-card-head { color: #d6d7da; }
:root[data-theme="dark"] .kb-more, :root[data-theme="dark"] .kb-close { background: #45464a; color: #f2f2f2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kb { background: #2b2c2f; color: #f2f2f2; }
  :root:not([data-theme="light"]) .kb-row i, :root:not([data-theme="light"]) .kb-card-text { background: #5a5b5f; color: #f2f2f2; }
  :root:not([data-theme="light"]) .kb-row .kb-fn { background: #3c3d41; }
  :root:not([data-theme="light"]) .kb-status, :root:not([data-theme="light"]) .kb-card-head { color: #d6d7da; }
  :root:not([data-theme="light"]) .kb-more, :root:not([data-theme="light"]) .kb-close { background: #45464a; color: #f2f2f2; }
}

/* Где работает: тонкая полоса */
.where { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.where-in { display: grid; justify-items: center; gap: 18px; padding-top: 36px; padding-bottom: 36px; text-align: center; }
.where-title { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.apps li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
.apps img { width: 28px; height: 28px; border-radius: 7px; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }

/* Секции */
.sec { padding: var(--sec) 0; }
.sec + .sec { padding-top: 0; }
.sec-head h2 { font-size: clamp(32px, 3.5vw, 50px); line-height: 1.06; letter-spacing: -.032em; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.sec-head p a { color: var(--accent); }

/* Установка */
.share-status:not(:empty) { margin-left: 6px; color: var(--accent); }

/* Вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { flex: none; color: var(--ink-3); transition: rotate .3s var(--ease); }
.faq-list details[open] summary .ic { rotate: 45deg; color: var(--accent); }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.faq-a p { max-width: 44em; padding: 0 2px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.faq-a a { color: var(--accent); }

/* Финальный призыв */
.final { padding: 0 0 clamp(48px, 6vw, 80px); }
.final-card { display: grid; justify-items: center; gap: 14px; padding: clamp(48px, 7vw, 96px) var(--gut); border-radius: 32px; background: var(--tint); text-align: center; }
.final-card h2 { max-width: 14em; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
.final-card p { max-width: 32em; color: var(--ink-2); font-size: 18px; }
.final-card .btn { margin-top: 14px; }

/* Команда */
.team { padding: 0 0 clamp(48px, 6vw, 72px); }
.team-row { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: left; }
.team-faces { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.team-faces li + li { margin-left: -12px; }
.team-faces img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--band); box-shadow: 0 0 0 3px var(--paper); }
:root[data-theme="dark"] .team-faces img { background: #262626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .team-faces img { background: #262626; } }
.team-copy h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.team-copy p { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.team-copy a { color: var(--accent); }

/* Подвал */
.foot { padding: 44px 0 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot .logo { justify-self: start; }
.foot .logo-word { font-size: 19px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot-bottom a { color: var(--ink-2); }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--band); color: var(--ink-2); font-size: 13px; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-toggle .i-sun, .theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
@media (hover: hover) { .theme-toggle:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, var(--band)); } }

/* Шаги после скачивания: открываются поверх страницы, страница остаётся на месте */
.next-steps, .bot-choice { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 28px 28px 22px; border: 0; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .25), 0 0 0 1px var(--line-strong); }
.next-steps::backdrop, .bot-choice::backdrop { background: rgba(17, 17, 17, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.next-steps h2#next-steps-title { margin: 6px 0 20px; font: 600 28px/1.15 var(--display); letter-spacing: -.02em; }
.next-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-size: 24px; cursor: pointer; }
.next-close:hover { background: var(--band); color: var(--ink); }
.next-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent); font-weight: 600; font-size: 14px; }
.next-dots { display: inline-flex; gap: 3px; }
.next-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: next-dot 1.2s infinite; }
.next-dots i:nth-child(2) { animation-delay: .2s; } .next-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes next-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.next-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.next-list[hidden] { display: none; }
.next-list li { display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); counter-increment: step; }
.next-list b { font-size: 16px; }
.next-list b::before { content: counter(step) ". "; color: var(--accent); }
.next-list li > span:not(.next-art) { color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.next-art { display: flex; align-items: center; justify-content: center; gap: 6px; height: 64px; margin-bottom: 6px; border-radius: 12px; background: var(--band); color: var(--accent); }
.next-art .ic { width: 30px; height: 30px; }
.next-art-file { font: 700 13px/1 var(--sans); letter-spacing: .06em; }
.next-art-file::before { content: ""; width: 26px; height: 32px; margin-right: 4px; border: 2px solid currentColor; border-radius: 4px 9px 4px 4px; }
.next-app { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--leaf); color: var(--on-leaf); font-style: normal; font-size: 12px; letter-spacing: -1px; }
.next-trail { width: 34px; height: 4px; background: radial-gradient(circle, var(--accent) 1.6px, transparent 2px) 0 50% / 8px 4px repeat-x; }
.next-switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); animation: next-switch 2.4s infinite; }
.next-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; animation: next-knob 2.4s infinite; }
@keyframes next-switch { 0%, 30% { background: var(--line-strong); } 45%, 85% { background: var(--leaf); } 100% { background: var(--line-strong); } }
@keyframes next-knob { 0%, 30% { transform: none; } 45%, 85% { transform: translateX(18px); } 100% { transform: none; } }
.next-steps .btn { margin-top: 18px; }
.next-foot { margin: 18px 0 0; color: var(--ink-3); font-size: 14px; }
.next-foot a { color: var(--accent); }
.bot-choice { width: min(420px, calc(100% - 32px)); }
.bot-choice h2 { margin: 6px 40px 8px 0; font: 600 26px/1.15 var(--display); letter-spacing: -.02em; }
.bot-choice-lead { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.bot-choice .app-mark { width: 20px; height: 20px; }
.bot-choice-main { width: 100%; margin-top: 22px; }
.bot-choice-why { margin-top: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.4; text-align: center; }
.bot-choice-why b { color: var(--accent); font-weight: 600; }
.bot-choice-alt { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.bot-choice-alt::before, .bot-choice-alt::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.bot-choice-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-top: 10px; }
.bot-choice-more .app-mark { width: 18px; height: 18px; }

/* Адаптив */
@media (max-width: 1180px) {
  .top-in { grid-template-columns: auto 1fr; }
  .top-nav, .pill-quiet { display: none; }
  .logo { justify-self: start; place-items: center start; }
  .menu { display: block; }
}
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .demo::before { inset-inline: 0; }
}
@media (max-width: 640px) {
  :root { --top-h: 60px; }
  body { font-size: 16px; }
  .hero { padding-top: 18px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px); }
  .lead { margin-top: 16px; font-size: 17px; }
  .get { margin-top: 24px; }
  .get .btn, .get-row .btn { width: 100%; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .chats { display: none; }
  .demo-done { flex-direction: column; align-items: stretch; }
  .where-in { justify-items: start; text-align: left; }
  .apps { justify-content: flex-start; gap: 12px 20px; }
  .menu summary { width: 44px; height: 44px; }
  .pill-cta { height: 40px; }
  .kb-insert, .kb-more, .kb-close { height: 36px; }
  .phone-screen { height: min(520px, 72svh); }
  .faq-list summary { font-size: 17px; }
  .final-card { border-radius: 24px; }
  .final-card .btn { width: 100%; }
  .team-row { flex-direction: column; text-align: center; }
  .next-list { grid-template-columns: 1fr; }
  .next-art { height: 48px; }
  .next-steps h2#next-steps-title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-list details::details-content { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Укороченная главная по макету Жанны (Figma 147-5520) */
.platform-row { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.platform-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--ink-3); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s var(--ease); }
.platform-row a.is-current { color: var(--ink); }
@media (hover: hover) { .platform-row a:hover { color: var(--ink); } }

.benefits { padding: clamp(16px, 2vw, 28px) 0 clamp(20px, 2.4vw, 32px); }
.benefit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 20px; }
.benefit-list li + li { border-left: 1px solid var(--line-strong); }
.benefit-list .ic { width: 34px; height: 34px; color: var(--accent-display); stroke-width: 1.6; }
.benefit-list span { display: grid; gap: 3px; color: var(--ink-3); font-size: 15px; line-height: 1.35; }
.benefit-list b { color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.benefit-list small { font-size: inherit; }

.cards { padding: clamp(16px, 2vw, 24px) 0; }
.cards-in { display: grid; gap: 16px; }
.card-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(28px, 4vw, 56px); padding: clamp(24px, 2.6vw, 32px) clamp(24px, 3.6vw, 48px); border-radius: 28px; background: var(--band); }
.card-title { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.12; letter-spacing: -.026em; }
.card-title span { display: block; }
.sit-band { display: block; padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3.6vw, 48px); }
.sit-head { display: grid; gap: 10px; }
.sit-lead { max-width: 34em; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.sit-tabs { display: none; gap: 6px; margin-top: 22px; }
.sit-tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 15px/1 var(--sans); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.sit-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (hover: hover) { .sit-tabs button[aria-selected="false"]:hover { color: var(--ink); } }
.sit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.sit { display: grid; align-content: start; gap: 10px; padding: 18px 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 2px rgba(17, 17, 17, .06); }
.sit-who { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--ink-3); font: 500 14px/1.3 var(--sans); }
.sit-who .ic { width: 18px; height: 18px; stroke-width: 1.6; }
.sit-in, .sit-out { padding: 10px 14px; font-size: 15px; line-height: 1.42; }
.sit-in { justify-self: start; max-width: 90%; border-radius: 16px 16px 16px 6px; background: var(--band); }
.sit-label { display: inline-flex; align-items: center; gap: 8px; justify-self: end; margin: 6px 0 -2px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.sit-mark { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 18px; height: 18px; border-radius: 5px; background: var(--leaf); }
.sit-mark i { width: 3px; height: 3px; border-radius: 50%; background: var(--on-leaf); }
.sit-out { justify-self: end; max-width: 94%; border-radius: 16px 16px 6px 16px; background: var(--bubble-out); }
:root[data-theme="dark"] .sit-in { background: #262626; }
:root[data-theme="dark"] .sit-who, :root[data-theme="dark"] .sit-label { color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sit-in { background: #262626; }
  :root:not([data-theme="light"]) .sit-who, :root:not([data-theme="light"]) .sit-label { color: var(--ink-2); }
}
.safe-band { background: var(--tint); }
.safe-head { align-self: stretch; display: flex; align-items: center; gap: 22px; border-right: 1px solid var(--line-strong); }
.safe-badge { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--leaf); color: var(--on-leaf); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.safe-badge .ic { width: 32px; height: 32px; stroke-width: 1.7; }
.safe-points { display: flex; gap: clamp(28px, 4vw, 56px); margin: 0; padding: 0 clamp(0px, 1vw, 16px) 0 0; list-style: none; }
.safe-points li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.3; }
.safe-points .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.safe-points span { max-width: 8.5em; }

.where { border: 0; }
.where-in { gap: 22px; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(8px, 1vw, 16px); }
.where-title { color: var(--ink); font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.012em; }
.apps li { color: var(--ink-3); transition: color .2s var(--ease); }
@media (hover: hover) { .apps li:hover { color: var(--ink); } }
.app-mark { flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.m-telegram { --mark: url(/media/apps/marks/telegram.v1.svg); }
.m-whatsapp { --mark: url(/media/apps/marks/whatsapp.v1.svg); }
.m-max { --mark: url(/media/apps/marks/max.v1.png); }
.m-vk { --mark: url(/media/apps/marks/vk.v1.svg); }
.m-vk-teams { --mark: url(/media/apps/marks/vk-teams.v1.png); }
.m-slack { --mark: url(/media/apps/marks/slack.v1.svg); }
.m-trueconf { --mark: url(/media/apps/marks/trueconf.v1.png); }
.m-gmail { --mark: url(/media/apps/marks/gmail.v1.svg); }
.m-chrome { --mark: url(/media/apps/marks/googlechrome.v1.svg); }

.faq { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); }
.faq .sec-head h2 span { display: block; }

.final { padding: 0 0 clamp(40px, 5vw, 64px); }
.final-card { position: relative; display: block; justify-items: normal; min-height: 300px; padding: clamp(40px, 4.6vw, 64px) clamp(28px, 5vw, 72px); border-radius: 28px; background: #111111; color: #fff; text-align: left; overflow: hidden; isolation: isolate; }
.final-copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: 30px; max-width: 52%; }
.final-card h2 { max-width: 7em; color: #fff; font-size: clamp(38px, 3.8vw, 56px); line-height: 1.02; letter-spacing: -.035em; }
.final-card .btn { margin-top: 0; }
.btn-light { background: var(--leaf); color: var(--on-leaf); }
@media (hover: hover) { .btn-light:hover { background: var(--btn-hover); color: var(--on-leaf); } }
.final-bot { margin-top: -14px; color: rgba(255, 255, 255, .72); font-size: 15px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
@media (hover: hover) { .final-bot:hover { color: #fff; } }
.final-phone { position: absolute; z-index: 0; top: 26px; right: clamp(24px, 9vw, 150px); width: 236px; height: 486px; rotate: -16deg; pointer-events: none; }
:root[data-theme="dark"] .final-card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .final-card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); } }

@media (max-width: 1040px) {
  .card-band { grid-template-columns: minmax(0, 1fr); }
  .safe-head { border-right: 0; }
  .sit-tabs { display: flex; }
  .sit-list { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-top: 14px; }
  .sit:not(.is-on) { display: none; }
}
@media (max-width: 900px) {
  .benefit-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .benefit-list li { justify-content: flex-start; padding: 16px 0; }
  .benefit-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .final-copy { max-width: none; }
  .final-card { min-height: 0; padding-bottom: 300px; }
  .final-phone { top: auto; bottom: -150px; right: 50%; width: 200px; height: 412px; translate: 50% 0; rotate: -12deg; }
}
@media (max-width: 640px) {
  .platform-row { gap: 4px 14px; margin-top: 18px; }
  .platform-row a { font-size: 14px; gap: 6px; }
  .safe-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .safe-badge { width: 52px; height: 52px; border-radius: 15px; }
  .safe-badge .ic { width: 26px; height: 26px; }
  .card-band { padding: 24px 20px; border-radius: 24px; }
  .safe-points { flex-direction: column; gap: 16px; }
  .final-card { border-radius: 24px; padding: 36px 24px 280px; }
  .final-card h2 { font-size: 38px; }
}

/* Правки Жанны 02:06-02:16: логотип слева с тем же переходом, меню справа, единые начертания заголовков, цветной финал в тёмной теме */
.top-in { grid-template-columns: auto 1fr auto; }
.top-nav { justify-self: end; }
.logo { justify-self: start; place-items: center start; }
.hero-title, .card-title, .faq .sec-head h2, .final-card h2, .where-title { font-weight: 500; }
.hero-title { letter-spacing: -.034em; }
.faq .sec-head h2 { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.08; letter-spacing: -.03em; }
.final-card h2 { font-size: clamp(36px, 3.4vw, 50px); }
.team-copy h2 { font-weight: 500; }
@media (max-width: 1180px) { .top-in { grid-template-columns: auto 1fr; } }

/* Ряд мессенджеров растянут на всю ширину, как просила Жанна 02:25 */
@media (min-width: 1041px) {
  .where-in { justify-items: stretch; }
  .apps { justify-content: space-between; width: 100%; }
  .apps li { font-size: 16px; }
  .app-mark { width: 26px; height: 26px; }
}

/* Первый экран по принципу близости (Жанна 02:23): заголовок с подзаголовком вместе, кнопки отдельно, ряд систем прижат к кнопкам */
.hero-copy .lead { margin-top: 14px; }
.hero-copy .get { margin-top: 44px; }
.hero-copy .platform-row { margin-top: 14px; }
@media (max-width: 640px) {
  .hero-copy .lead { margin-top: 12px; }
  .hero-copy .get { margin-top: 30px; }
  .hero-copy .platform-row { margin-top: 10px; }
}

/* Жанна 02:32: блоки ниже первого экрана шире, финальный блок компактнее, подвал как в макете */
.benefits .wrap, .cards .wrap, .where .wrap, .final .wrap, .team .wrap, .foot .wrap { max-width: calc(1352px + var(--gut) * 2); }
.final-copy { gap: 24px; }
.final-bot { margin-top: -6px; color: rgba(255, 255, 255, .72); text-decoration: none; }
.final-bot::after { content: " \2192"; }
.team-row { justify-content: flex-start; }
@media (min-width: 901px) {
  .final-card { min-height: 0; padding: clamp(36px, 3.6vw, 52px) clamp(28px, 4.4vw, 60px); }
  .final-phone { top: 28px; right: clamp(24px, 11vw, 180px); width: 212px; height: 436px; }
}
.m-envelope { --mark: url(/media/apps/marks/mail.v1.svg); }
.foot { padding: 40px 0 32px; }
.foot-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 40px; }
.foot-main { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.foot-main a { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
@media (hover: hover) { .foot-main a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.foot-social { display: flex; gap: 8px; }
.foot-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--band); color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
@media (hover: hover) { .foot-icon:hover { color: var(--ink); background: var(--tint); } }
.foot-icon .app-mark { width: 20px; height: 20px; }
.foot-bottom { justify-content: space-between; margin-top: 22px; padding-top: 18px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.foot-legal a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .foot-legal a:hover { color: var(--ink); text-decoration: underline; } }
.foot-bottom .theme-toggle { margin-left: 0; }
.foot-note { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }
.foot-note a { color: var(--ink-2); }
@media (max-width: 900px) {
  .foot-top { grid-template-columns: auto auto; }
  .foot-main { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 8px 22px; }
  .foot-social { justify-self: end; }
}

/* Жанна 02:36: одинаковые расстояния между всеми пунктами меню в шапке */
.top-in { column-gap: 6px; }

/* Жанна 02:48: у всех блоков, шапки и первого экрана одни края */
:root { --wrap: 1352px; }

/* Жанна 02:50, адаптив под большие мониторы: шире 1440 страница пропорционально увеличивается, как макет 1440, но не больше чем в 1,5 раза */
@media (min-width: 1560px) { html { zoom: 1.08; } }
@media (min-width: 1680px) { html { zoom: 1.16; } }
@media (min-width: 1800px) { html { zoom: 1.25; } }
@media (min-width: 1920px) { html { zoom: 1.333; } }
@media (min-width: 2100px) { html { zoom: 1.45; } }
@media (min-width: 2240px) { html { zoom: 1.5; } }

/* Жанна 02:54: текст первого экрана выше над чёрной кнопкой и единая шкала шрифтов: 60 / 44 / 34 / 24 заголовки, кнопки 16, мелкий текст подвала 13 */
.hero-copy .get { margin-top: 56px; }
.faq .sec-head h2, .final-card h2 { font-size: clamp(32px, 3.05vw, 44px); line-height: 1.06; letter-spacing: -.03em; }
.final-card .btn-lg { font-size: 16px; }
.team-copy h2 { font-size: 16px; }
.foot-note, .foot-small { font-size: 13px; }
@media (max-width: 640px) { .hero-copy .get { margin-top: 34px; } }

/* Жанна 02:54-02:56: верх текста первого экрана по верхнему краю ноутбука; в финальном блоке реалистичный телефон с логотипом */
@media (min-width: 1041px) { .hero-grid { align-items: start; } .hero-copy { margin-top: -8px; } }

/* Жанна 03:00: все системы в ряду одного цвета, без подсветки своей */
.platform-row a.is-current { color: var(--ink-3); }
@media (hover: hover) { .platform-row a.is-current:hover { color: var(--ink); } }

/* Жанна 03:03: в ряду систем видно, что это ссылки на скачивание */
.pr-label { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-3); font-size: 15px; }
.platform-row a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.platform-row a.is-current { color: var(--ink-2); }
@media (hover: hover) { .platform-row a:hover, .platform-row a.is-current:hover { color: var(--ink); text-decoration-color: currentColor; } }
@media (max-width: 640px) { .pr-label { font-size: 14px; } }

/* Жанна 03:08: подвал в порядок, ссылки по колонкам вместо абзацев */
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-cols nav { display: grid; align-content: start; gap: 9px; }
.foot-cols h3 { margin: 0 0 4px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.foot-cols a { color: var(--ink-2); font-size: 14px; line-height: 1.35; text-decoration: none; }
@media (hover: hover) { .foot-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 1040px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }

/* Жанна 03:12: финальный блок без пустоты посередине, тёмная тема без сплошного зелёного */
.final-reply { display: none; }
@media (min-width: 901px) {
  .final-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 340px; }
  .final-copy { max-width: none; }
  .final-visual { position: relative; align-self: stretch; min-height: 260px; }
  .final-visual .final-phone { top: -12px; right: auto; left: 54%; width: 220px; height: 452px; }
  .final-reply { position: absolute; z-index: 2; top: 50%; left: 0; display: grid; gap: 10px; width: min(320px, 58%); padding: 14px 16px 16px; border-radius: 18px; background: #fff; color: #111111; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .06); translate: 0 -50%; rotate: -2deg; }
  .fr-head { display: inline-flex; align-items: center; gap: 8px; color: #454545; font-size: 13px; font-weight: 600; }
  .fr-mark { display: inline-flex; align-items: center; justify-content: center; gap: 2.5px; width: 22px; height: 22px; border-radius: 6px; background: var(--leaf); }
  .fr-mark i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--on-leaf); }
  .final-reply p { max-width: none; margin: 0; color: #111111; font-size: 15px; line-height: 1.45; }
  .fr-insert { justify-self: start; padding: 6px 14px; border-radius: 9px; background: var(--leaf); color: var(--on-leaf); font-size: 13px; font-weight: 600; }
}

/* Жанна 03:13-03:14: заголовок финального блока в одну строку, ссылка на пробу в браузере вместо Telegram */
@media (min-width: 901px) { .final-card h2 { max-width: none; white-space: nowrap; } }

/* Реалистичный телефон из знакомства iPhone (SwiftUI-рендер) вместо CSS-рисунка */
.final-phone-img { display: block; width: 100%; height: auto; }
.final-visual .final-phone { rotate: none; height: auto; }
@media (min-width: 901px) { .final-visual .final-phone { top: -26px; left: 48%; width: 380px; } }
@media (max-width: 900px) { .final-visual .final-phone { bottom: auto; top: auto; right: 50%; width: 240px; translate: 50% 0; margin-top: 0; } .final-card { padding-bottom: 0; } .final-visual { position: relative; height: 300px; margin-top: 28px; } .final-visual .final-phone { position: absolute; top: 0; } }

/* Жанна 03:22 «немного нейрослопно»: без свечения, без наклона карточки, спокойная тень */
.final-card { background: #111111; }
:root[data-theme="dark"] .final-card { background: #1b1b1b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .final-card { background: #1b1b1b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); } }
@media (min-width: 901px) { .final-reply { rotate: none; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .05); } }
@media (min-width: 901px) { .final-visual .final-phone { top: -52px; left: 52%; width: 330px; } }

/* Жанна 03:34: телефон крупным планом по её референсу, угол с иконкой упирается в края блока, сообщение рядом */
@media (min-width: 901px) {
  .final-card { min-height: 340px; }
  .final-visual { position: static; min-height: 0; }
  .final-visual .final-phone { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: auto; height: 100%; translate: none; rotate: none; }
  .final-visual .final-phone-img { width: auto; height: 100%; }
  .final-reply { left: 41.5%; width: 280px; }
}
@media (min-width: 901px) and (max-width: 1239px) { .final-reply { display: none; } }
@media (max-width: 900px) {
  .final-visual { position: static; height: auto; margin: 28px -24px 0; }
  .final-visual .final-phone { position: static; width: 100%; height: auto; translate: none; rotate: none; }
  .final-visual .final-phone-img { width: 100%; height: auto; }
  .final-card { padding-bottom: 0; }
}

/* Рустем 19.11: Пачка и Mattermost в ряду, заметная подсказка в демо на телефоне, ссылка на бота похожа на ссылку, отступ текста в поле демо */
.m-pachca { --mark: url(/media/apps/marks/pachca.v1.svg); }
.m-mattermost { --mark: url(/media/apps/marks/mattermost.v1.png); }
.demo-hint-top { color: var(--ink); font-weight: 500; }
.p-feed { position: relative; }
.p-toast { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.35; text-align: center; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5); animation: pop-in .25s var(--ease) both; }
.p-toast[hidden] { display: none; }
.field-input { padding-inline: 10px; }
.field-ghost { inset: 0 10px; }
.final-bot { color: #fff; font-size: 16px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.final-bot::after { display: inline-block; margin-left: .3em; content: "\2192"; text-decoration: none; }
@media (hover: hover) { .final-bot:hover { text-decoration-color: #fff; } }
.menu-sheet a { white-space: nowrap; }
@media (min-width: 1041px) and (max-width: 1439px) { .apps { display: grid; grid-template-columns: repeat(5, auto); row-gap: 14px; } }

/* Аскар 19.11: телефон под углом с боковой гранью и иконками приложений по референсу Жанны, сообщение у края телефона, экран по теме сайта, на телефонах кадр с дорисованным верхом */
@media (min-width: 1240px) { .final-visual .final-reply { left: auto; right: calc(74% + 28px); } }
@media (min-width: 1240px) and (max-width: 1359px) { .final-visual .final-reply { width: 240px; } }
.final-phone-pic { display: contents; }
.final-phone-dark { display: none; }
:root[data-theme="dark"] .final-phone-light { display: none; }
:root[data-theme="dark"] .final-phone-dark { display: contents; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .final-phone-light { display: none; }
  :root:not([data-theme="light"]) .final-phone-dark { display: contents; }
}

/* Аудит 19.11: с телефона ссылку можно отправить на компьютер, на неподдерживаемой системе тоже */
.get-share, .get-bot { display: inline-block; margin-top: 12px; color: var(--ink); font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.get-note { margin-top: 10px; font-size: 14px; }
.get-note a { color: var(--ink); text-underline-offset: 3px; }

/* Рустем и аудит 19.11: отправка в демо на телефоне, метка у серой подсказки, лента не обрезает входящее, ряд систем на 360 */
.ghost-mark { display: none; flex: none; align-items: center; justify-content: center; gap: 2px; width: 16px; height: 16px; border-radius: 4px; background: var(--leaf); }
.ghost-mark i { width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--on-leaf); }
.field.is-ready .ghost-mark { display: inline-flex; }
.p-send { padding: 0; border: 0; cursor: pointer; }
.p-input.is-filled .p-send { background: var(--leaf); color: var(--on-leaf); }
.p-send.is-pulse { animation: ring 1.8s var(--ease) 4; }
.p-feed .msg-out { font-size: 15px; }
.phone-screen { height: auto; min-height: min(580px, 82svh); grid-template-rows: auto minmax(230px, 1fr) auto auto; }
@media (max-width: 640px) { .phone-screen { min-height: min(520px, 72svh); } }
@media (max-width: 380px) { .platform-row { column-gap: 10px; } }

/* Аскар 19.11: ответ «На каких устройствах работает?» списком */
.faq-devices { display: grid; gap: 8px; max-width: 44em; margin: 0; padding: 0 2px 16px; list-style: none; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.faq-devices li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
.faq-devices b { color: var(--ink); font-weight: 600; }

/* Повторный аудит 19.11: ряд систем без переноса на 320 и 1041-1139 px, подставка ноутбука не шире экрана */
@media (max-width: 359px) { .platform-row { column-gap: 6px; } .platform-row a, .pr-label { font-size: 13px; } }
@media (min-width: 1041px) and (max-width: 1139px) { .platform-row { column-gap: 12px; } }
@media (max-width: 900px) { .laptop { max-width: min(700px, calc(100% / 1.13)); } }

/* Плашка «Продукт недели» Product Radar под рядом систем */
.award { display: inline-flex; align-items: center; gap: 6px; margin-top: 30px; color: var(--ink); text-decoration: none; }
.award-laurel { flex: none; width: 22px; height: 44px; color: var(--ink-2); }
.award-laurel-end { transform: scaleX(-1); }
.award-text { display: grid; justify-items: center; line-height: 1.15; }
.award-text b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.award-text small { margin-top: 3px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (hover: hover) { .award:hover .award-text small { color: var(--ink-2); } }
@media (max-width: 640px) { .award { display: flex; width: fit-content; margin: 22px auto 0; } }

/* Правки ментора Жанны 21.11: плитки-клавиши из знакомства iPhone, лёгкая мобильная версия */
.app-key { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: var(--ink); background: linear-gradient(#fff, #ededed); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 5px 0 #cfcfcf, 0 12px 20px rgba(17, 17, 17, .12); transition-property: translate, box-shadow; transition-duration: .18s; transition-timing-function: var(--ease); }
.app-key .app-mark { width: 28px; height: 28px; }
.apps li { flex-direction: column; gap: 12px; font-size: 13px; }
@media (min-width: 1041px) { .apps li { font-size: 14px; } }
@media (min-width: 1041px) and (max-width: 1439px) { .apps { display: flex; } }
@media (hover: hover) { .apps li:hover .app-key { translate: 0 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 3px 0 #cfcfcf, 0 8px 14px rgba(17, 17, 17, .12); } }
:root[data-theme="dark"] .app-key { background: linear-gradient(#3a3a3a, #2a2a2a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 5px 0 #0e0e0e, 0 12px 20px rgba(0, 0, 0, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-key { background: linear-gradient(#3a3a3a, #2a2a2a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 5px 0 #0e0e0e, 0 12px 20px rgba(0, 0, 0, .35); } }
.foot-col > summary { list-style: none; pointer-events: none; }
.foot-col > summary::-webkit-details-marker { display: none; }
.foot-col > summary .ic { display: none; }
html.is-phone .hero .platform-row { display: none; }
@media (max-width: 640px) {
  .apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 4px; width: 100%; }
  .apps li { gap: 8px; font-size: 11.5px; }
  .app-key { width: 48px; height: 48px; border-radius: 14px; }
  .app-key .app-mark { width: 22px; height: 22px; }
  .benefit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit-list li { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 2px 6px; text-align: center; }
  .benefit-list li + li { border-top: 0; border-left: 1px solid var(--line); }
  .benefit-list .ic { width: 28px; height: 28px; }
  .benefit-list b { font-size: 14px; line-height: 1.25; }
  .benefit-list small { display: none; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-col { border-bottom: 1px solid var(--line); }
  .foot-col > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; pointer-events: auto; cursor: pointer; }
  .foot-col > summary h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; }
  .foot-col > summary .ic { display: block; width: 18px; height: 18px; color: var(--ink-3); transition: rotate .3s var(--ease); }
  .foot-col[open] > summary .ic { rotate: 45deg; }
  .foot-col > nav { padding-bottom: 14px; }
}

/* Проверка лайма 21.11: окна отделены от фона в тёмной теме, на планшете плитки по пять и телефон в финале у края карточки */
:root[data-theme="dark"] .next-steps::backdrop, :root[data-theme="dark"] .bot-choice::backdrop { background: rgba(0, 0, 0, .62); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .next-steps::backdrop, :root:not([data-theme="light"]) .bot-choice::backdrop { background: rgba(0, 0, 0, .62); } }
@media (min-width: 641px) and (max-width: 979px) { .apps { display: grid; grid-template-columns: repeat(5, 96px); justify-content: center; gap: 22px 20px; } }
@media (max-width: 900px) { .final-visual { margin-right: calc(-1 * clamp(28px, 5vw, 72px)); } }
@media (max-width: 640px) { .final-visual { margin-inline: -24px; } }
@media (min-width: 641px) and (max-width: 900px) { .final-visual { width: 440px; margin-left: auto; } }
@media (hover: hover) {
  :root[data-theme="dark"] .apps li:hover .app-key { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 3px 0 #0e0e0e, 0 8px 14px rgba(0, 0, 0, .35); }
  .faq-list summary:hover .ic { color: var(--ink); }
}
@media (hover: hover) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .apps li:hover .app-key { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 3px 0 #0e0e0e, 0 8px 14px rgba(0, 0, 0, .35); } }
.final-card :focus-visible { outline-color: var(--leaf); }
@media (max-width: 640px) { .cards-in { grid-template-columns: minmax(0, 1fr); } .safe-band .card-title { font-size: clamp(22px, 7.2vw, 26px); } }
@media (max-width: 379px) { .sit-tabs button { padding: 0 11px; font-size: 14px; } }

/* Аскар 25.11: на первом экране ответ модели на своё сообщение, тот же инструмент, что на /tools/otvet-na-soobshchenie/ */
.hero-tool { display: grid; gap: 12px; margin-top: 30px; container-type: inline-size; }
.hero-copy .hero-tool + .get { margin-top: 30px; }
/* Радиус карточки равен радиусу кнопки плюс отступ до края: в ряд 22 + 12, столбиком 28 */
.ht-card { display: flex; align-items: flex-end; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 34px; background: var(--surface); box-shadow: var(--shadow-2); transition: box-shadow .18s var(--ease); }
.ht-card:focus-within { box-shadow: var(--shadow-2), 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.ht-card:has(button:focus-visible) { box-shadow: var(--shadow-2); }
.ht-field { display: flex; flex: 1; min-width: 0; }
.ht-field textarea { flex: 1; min-width: 0; min-height: 59px; max-height: 212px; padding: 4px 2px 4px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 17px/1.5 var(--sans); resize: none; caret-color: var(--accent); scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
.ht-field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.ht-clear { position: relative; flex: none; align-self: flex-start; display: grid; place-items: center; width: 32px; height: 32px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), scale .18s var(--ease); }
/* Место под крестик занято и когда он скрыт: строки текста не переносятся заново при первом знаке */
.ht-clear[hidden] { display: grid !important; visibility: hidden; }
.ht-clear .ic { width: 18px; height: 18px; rotate: 45deg; stroke-width: 2; }
.ht-clear:active { scale: .96; }
@media (hover: hover) { .ht-clear:hover { background: var(--band); color: var(--ink); } }
.ht-go { flex: none; min-height: 44px; padding: 0 20px; font-size: 15px; }
.ht-go:disabled { opacity: .55; cursor: default; }
.ht-go.busy { cursor: progress; }
@media (hover: hover) { .ht-go:disabled:hover { background: var(--btn); } }
.ht-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-3); font-size: 14px; }
.ht-examples span { margin-right: 4px; }
.ht-examples button { position: relative; height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--sans); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), scale .18s var(--ease); }
.ht-examples button:active { scale: .96; }
.ht-examples button::after, .hero-tool .tool-results button::after { content: ""; position: absolute; inset: -4px 0; }
@media (hover: hover) { .ht-examples button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); } }
/* Примеры предлагаются только пустому полю и только когда скрипт готов их отправить */
/* Примеры видны как кнопки: лаймовая обводка мерцает, как поле в демо. Ярким действием остаётся «Подобрать ответ» */
.ht-examples > span { color: var(--ink-2); font-weight: 500; }
.ht-examples button { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--beacon); animation: chip-glow 2.4s ease-in-out infinite; }
.ht-examples button:nth-of-type(2) { animation-delay: .3s; }
.ht-examples button:nth-of-type(3) { animation-delay: .6s; }
@media (hover: hover) { .ht-examples button:hover { background: var(--tint); color: var(--ink); animation: none; box-shadow: inset 0 0 0 1.5px var(--beacon); } }
@keyframes chip-glow {
  0%, 100% { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--beacon) 45%, transparent), 0 0 0 0 color-mix(in srgb, var(--beacon) 0%, transparent); }
  50% { box-shadow: inset 0 0 0 1.5px var(--beacon), 0 0 0 4px color-mix(in srgb, var(--beacon) 28%, transparent); }
}
/* После трёх вспышек маяка поле продолжает мягко мерцать обводкой, пока человек в него не нажал */
.hero-tool[data-ready]:not([data-filled]):not([data-state]) .ht-card:not(:focus-within) { animation: card-glow 2.4s ease-in-out 6.2s infinite; }
@keyframes card-glow {
  0%, 100% { box-shadow: var(--shadow-2), 0 0 0 1.5px color-mix(in srgb, var(--beacon) 45%, transparent), 0 0 0 0 color-mix(in srgb, var(--beacon) 0%, transparent); }
  50% { box-shadow: var(--shadow-2), 0 0 0 1.5px var(--beacon), 0 0 0 6px color-mix(in srgb, var(--beacon) 25%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .ht-examples button { animation: none; } .hero-tool[data-ready]:not([data-filled]):not([data-state]) .ht-card:not(:focus-within) { animation: none; box-shadow: var(--shadow-2), 0 0 0 1.5px var(--beacon); } }
.hero-tool:not([data-ready]) .ht-examples { visibility: hidden; }
.hero-tool[data-filled] .ht-examples, .hero-tool[data-state="busy"] .ht-examples, .hero-tool[data-answer] .ht-examples { display: none; }
.hero-tool .tool-status { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.4; scroll-margin-top: -10px; }
/* Пустая живая область остаётся в дереве доступности, иначе первое сообщение диктор не объявит */
.hero-tool .tool-status:empty { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-tool[data-state="error"] .tool-status { align-items: flex-start; color: var(--ink); font-weight: 500; }
.hero-tool[data-state="busy"] .tool-status::before, .hero-tool[data-state="error"] .tool-status::before { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.hero-tool[data-state="busy"] .tool-status::before { content: ""; background: radial-gradient(circle at 4px 9px, var(--on-leaf) 1.5px, transparent 2px), radial-gradient(circle at 9px 9px, var(--on-leaf) 1.5px, transparent 2px), radial-gradient(circle at 14px 9px, var(--on-leaf) 1.5px, transparent 2px), var(--leaf); animation: mark-pulse 1s ease-in-out infinite; }
/* Второй content прячет знак от экранного диктора */
.hero-tool[data-state="error"] .tool-status::before { content: "!"; content: "!" / ""; display: grid; place-items: center; margin-top: 1.5px; background: var(--ink); color: var(--paper); font: 700 12px/1 var(--sans); }
@keyframes mark-pulse { 0%, 100% { scale: 1; } 50% { scale: .82; } }
.ht-asked { justify-self: start; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--bubble-in); box-shadow: var(--shadow-1); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; transition: opacity .18s var(--ease); }
.hero-tool:not([data-answer="demo"]) .ht-asked { display: none; }
.hero-tool .tool-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; transition: opacity .18s var(--ease); }
.hero-tool .tool-results:empty { display: none; }
.hero-tool .tool-results li { display: flow-root; padding: 12px 12px 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--bubble-out); animation: rise-in .3s var(--ease) both; }
.hero-tool .tool-results li:nth-child(2) { animation-delay: .06s; }
.hero-tool .tool-results li:nth-child(3) { animation-delay: .12s; }
@keyframes rise-in { from { translate: 0 8px; } }
.hero-tool .tool-results p { display: inline; font-size: 16px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
/* Кнопка встаёт в конец последней строки ответа, как время в сообщении, а если не помещается, уходит под текст */
.hero-tool .tool-results button { position: relative; float: right; height: 32px; margin: 4px 0 0 12px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 13px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: scale .18s var(--ease), background-color .18s var(--ease); }
.hero-tool .tool-results button:active { scale: .96; }
:root[data-theme="dark"] .hero-tool .tool-results button { background: rgba(255, 255, 255, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-tool .tool-results button { background: rgba(255, 255, 255, .12); } }
@media (hover: hover) {
  .hero-tool .tool-results button:hover { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
  :root[data-theme="dark"] .hero-tool .tool-results button:hover { background: rgba(255, 255, 255, .2); }
}
@media (hover: hover) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-tool .tool-results button:hover { background: rgba(255, 255, 255, .2); } }
.hero-tool[data-state="busy"] .tool-results, .hero-tool[data-state="busy"] .ht-asked { opacity: .45; }
.ht-skeleton { display: none; gap: 8px; }
.hero-tool[data-state="busy"] .tool-results:empty + .ht-skeleton { display: grid; }
.ht-skeleton i { height: 68px; border-radius: 18px 18px 6px 18px; background: var(--bubble-out); animation: skeleton 1.2s ease-in-out infinite; }
.ht-skeleton i:nth-child(2) { animation-delay: .15s; }
.ht-skeleton i:nth-child(3) { animation-delay: .3s; }
@keyframes skeleton { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.hero-tool .tool-after { display: grid; justify-items: start; gap: 10px; }
.hero-tool[data-state="busy"] .tool-after { display: none; }
.ht-next { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.ht-next-phone, html.is-phone .ht-next-desk { display: none; }
html.is-phone .ht-next-phone { display: inline; }
.hero-tool[data-answer="demo"] .ht-next, .hero-tool:not([data-answer="demo"]) .ht-own { display: none; }
.ht-bot { color: var(--ink-2); font-size: 15px; line-height: 1.45; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (hover: hover) { .ht-bot:hover { color: var(--ink); } }
.ht-note { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
/* Узкая колонка на компьютере и телефон: кнопка под полем. Второе правило для Safari до 16, он не знает @container */
@container (max-width: 479px) {
  .ht-card { flex-direction: column; align-items: stretch; padding: 14px; border-radius: 28px; }
  .ht-go { min-height: 50px; font-size: 16px; }
  .ht-own { max-width: 100%; padding-block: 8px; line-height: 1.25; white-space: normal; text-align: center; }
  .ht-wide { display: none; }
}
@media (max-width: 640px) {
  .ht-wide { display: none; }
  .ht-card { flex-direction: column; align-items: stretch; padding: 14px; border-radius: 28px; }
  .ht-go { min-height: 50px; font-size: 16px; }
  .ht-own { max-width: 100%; padding-block: 8px; line-height: 1.25; white-space: normal; text-align: center; }
  .hero-tool { margin-top: 22px; }
  .hero-copy .hero-tool + .get { margin-top: 26px; }
  /* Выше поле не растёт: кнопка «Подобрать ответ» остаётся над клавиатурой и на маленьком телефоне */
  .ht-field textarea { min-height: 56px; max-height: 104px; font-size: 16px; }
  .ht-examples button { height: 36px; }
}
/* Сенсорный экран: вид прежний, нажатие ловится шире, ответ копируется касанием пузыря */
@media (pointer: coarse) {
  .ht-clear { margin-left: 4px; }
  .ht-clear::after { content: ""; position: absolute; inset: -6px -8px -6px -4px; }
  .ht-examples { gap: 8px; }
  .ht-examples span { margin-right: 2px; }
  .ht-examples button { height: 36px; }
  .ht-own { min-height: 44px; }
  .hero-tool .tool-results, .hero-tool .tool-results li { -webkit-tap-highlight-color: transparent; }
  .hero-tool .tool-results li { cursor: pointer; touch-action: manipulation; transition: scale .18s var(--ease); }
  .hero-tool .tool-results li:active { scale: .98; }
}
@media (max-width: 380px) { .ht-examples button { padding: 0 10px; } }
/* Режим контраста Windows: тени там не рисуются, границы и фокус задаются явно */
@media (forced-colors: active) {
  .ht-card, .ht-asked, .hero-tool .tool-results li, .ht-skeleton i { border: 1px solid CanvasText; }
  .ht-card:focus-within { outline: 2px solid Highlight; outline-offset: 1px; }
  .ht-card:has(button:focus-visible) { outline: 0; }
  .ht-go, .ht-own, .ht-examples button, .hero-tool .tool-results button { border: 1px solid ButtonText; }
  .ht-go:disabled { border-color: GrayText; color: GrayText; opacity: 1; }
}
/* Аскар 25.11: маяк ведёт новичка по шагам и на компьютере, как в демо на телефоне: куда вводить и что нажать.
   Маяк на экране один и короткий: поле, потом кнопка, когда человек перестал печатать, ноутбук ждёт своей очереди */
.ht-card { position: relative; }
.ht-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.hero-tool[data-ready]:not([data-filled]):not([data-state]) .ht-card::after { animation: beacon 1.8s var(--ease) .6s 3; }
.hero-tool[data-idle]:not([data-state]) .ht-go:not(:disabled), .field.is-accepted ~ .send { animation: beacon 1.8s var(--ease) 3; }
@media (pointer: fine) {
  html[data-beacon="demo"] .field.is-ready:not(:focus-within), .assist.is-nudge [data-accept] { animation: beacon 1.8s var(--ease) 3; }
}
/* Тонкая обводка держится весь такт, ореол расходится и гаснет */
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--beacon) 0%, transparent), 0 0 0 0 color-mix(in srgb, var(--beacon) 50%, transparent); }
  18% { box-shadow: 0 0 0 2px var(--beacon), 0 0 0 2px color-mix(in srgb, var(--beacon) 50%, transparent); }
  70% { box-shadow: 0 0 0 2px var(--beacon), 0 0 0 12px color-mix(in srgb, var(--beacon) 0%, transparent); }
  100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--beacon) 0%, transparent), 0 0 0 12px color-mix(in srgb, var(--beacon) 0%, transparent); }
}
/* Без движения шаг отмечает неподвижная обводка */
@media (prefers-reduced-motion: reduce) {
  .hero-tool[data-ready]:not([data-filled]):not([data-state]) .ht-card::after,
  .hero-tool[data-idle]:not([data-state]) .ht-go:not(:disabled), .field.is-accepted ~ .send { animation: none; box-shadow: 0 0 0 2px var(--beacon); }
}
/* Аскар 25.11: пока человек не получил ответ на своё сообщение, яркое действие на экране одно, «Подобрать ответ».
   Скачивание до этого выглядит как вторая кнопка и становится лаймовым после ответа */
.hero-tool:not([data-answer="own"]) ~ .get .btn-main { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (hover: hover) { .hero-tool:not([data-answer="own"]) ~ .get .btn-main:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }

/* Свой текст поменяли после ответа: старые варианты тусклые и без «Копировать» (отзыв Ивана, 29.11) */
.hero-tool[data-stale] .tool-results { opacity: .45; }
.hero-tool[data-stale] .tool-results button { display: none; }

/* Точечный фон первого экрана, как у Жанны: крестики загораются под курсором (home.v2.js), на телефоне фон статичный */
:root { --dot: rgba(140, 136, 120, .5); --dot-hot: 150, 183, 25; }
:root[data-theme="dark"] { --dot: rgba(255, 255, 255, .13); --dot-hot: 198, 255, 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dot: rgba(255, 255, 255, .13); --dot-hot: 198, 255, 0; } }
.hero { position: relative; isolation: isolate; }
.hero::before, .hero-dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.hero::before { content: ""; background: radial-gradient(circle at 6px 6px, var(--dot) .8px, transparent 1.2px) 0 0 / 12px 12px; }
/* Кнопки-обводки на точках: сплошная заливка, иначе сетка просвечивает сквозь подпись. При наведении прежний оттенок поверх фона */
.hero-tool:not([data-answer="own"]) ~ .get .btn-main, .hero .btn-ghost, .ht-examples button { background-color: var(--paper); }
@media (hover: hover) {
  .hero-tool:not([data-answer="own"]) ~ .get .btn-main:hover, .hero .btn-ghost:hover, .ht-examples button:hover { background: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent), color-mix(in srgb, var(--ink) 6%, transparent)) var(--paper); }
}
/* Сетку нарисовал canvas (hero-dots.js): CSS-точки прячем, иначе при масштабе браузера две сетки расходятся */
.hero.dots-live::before { display: none; }
