
/* Лендинг homeinvent.ru (UX-515) — по макету docs/ux/canvas/2026-11-26-lending-kak-prilozhenie.
   Токены — из src/app/styles/theme.css, акцент «белый». Тема: как в системе, или data-theme на <html>. */
:root {
  color-scheme: light;
  --surface: #f6f5fa; --surface-2: #f1eff7; --surface-3: #fff; --border: #e2dfea; --card-line: #e2dfea;
  --fg: #17161f; --fg-2: #5f5c70; --ink: oklch(0.22 0.025 265); --on-ink: #fff;
  --primary: #17161f; --on-primary: #fff;
  --danger: #b82d47; --danger-soft: #fef2f2; --danger-border: #fca5a5;
  --success: #177751; --success-soft: #f0fdf4; --success-border: #86efac;
  --warn-fg: #805a0b; --warn-soft: oklch(0.95 0.05 90); --warn-border: oklch(0.85 0.08 90);
  --shadow-soft: oklch(0.22 0.025 265 / 0.06); --shadow-color: oklch(0.22 0.025 265 / 0.1);
  --card-shadow: inset 0 0 0 1px var(--card-line), 0 8px 24px var(--shadow-soft);
  --hero-start: #e3d5fc; --hero-end: #f4effb;
  --scene-wide: url("assets/rooms/room-wide-light.webp"); --scene-phone: url("assets/rooms/room-phone-light.webp");
  --scene-fg: #2a2140; --scene-fg-2: #5d4f70; --glass: rgb(255 255 255 / .62); --glass-line: rgb(255 255 255 / .8);
  --dock: rgb(255 255 255 / .86);
  --radius-control: 16px; --radius-tile: 20px; --radius-panel: 24px; --radius-hero: 32px;
  --tile-sheen: linear-gradient(180deg, transparent, color-mix(in srgb, var(--border) 28%, transparent));
  --surface-rim: inset 0 0 0 1px var(--border);
  --gutter: clamp(16px, 4.4vw, 80px); --max: 1280px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #101016; --surface-2: #242431; --surface-3: #1b1b25; --border: #363642; --card-line: #393744;
  --fg: #f5f4f8; --fg-2: #a5a3b5; --ink: oklch(0.88 0.01 220); --on-ink: oklch(0.2 0.012 230);
  --primary: #fff; --on-primary: #17161f;
  --danger: #ff737f; --danger-soft: oklch(0.3 0.06 25); --danger-border: oklch(0.45 0.1 25);
  --success: #75ddb0; --success-soft: oklch(0.3 0.05 150); --success-border: oklch(0.45 0.08 150);
  --warn-fg: #f4c96b; --warn-soft: oklch(0.3 0.05 85); --warn-border: oklch(0.45 0.08 85);
  --shadow-soft: oklch(0 0 0 / 0.3); --shadow-color: oklch(0 0 0 / 0.45);
  --card-shadow: var(--surface-rim), 0 8px 24px var(--shadow-soft);
  --hero-start: #3b2a6e; --hero-end: #1c1830;
  --scene-wide: url("assets/rooms/room-wide-dark.webp"); --scene-phone: url("assets/rooms/room-phone-dark.webp");
  --tile-sheen: linear-gradient(180deg, rgb(255 255 255 / 5.5%), rgb(255 255 255 / 1.5%));
  --surface-rim: inset 0 1px rgb(255 255 255 / 7%), inset 0 0 0 1px rgb(255 255 255 / 5.5%);
  --scene-fg: #fff; --scene-fg-2: #d6cfe6; --glass: rgb(27 27 37 / .62); --glass-line: rgb(255 255 255 / .09);
  --dock: rgb(24 23 34 / .86);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --surface: #101016; --surface-2: #242431; --surface-3: #1b1b25; --border: #363642; --card-line: #393744;
  --fg: #f5f4f8; --fg-2: #a5a3b5; --ink: oklch(0.88 0.01 220); --on-ink: oklch(0.2 0.012 230);
  --primary: #fff; --on-primary: #17161f;
  --danger: #ff737f; --danger-soft: oklch(0.3 0.06 25); --danger-border: oklch(0.45 0.1 25);
  --success: #75ddb0; --success-soft: oklch(0.3 0.05 150); --success-border: oklch(0.45 0.08 150);
  --warn-fg: #f4c96b; --warn-soft: oklch(0.3 0.05 85); --warn-border: oklch(0.45 0.08 85);
  --shadow-soft: oklch(0 0 0 / 0.3); --shadow-color: oklch(0 0 0 / 0.45);
  --card-shadow: var(--surface-rim), 0 8px 24px var(--shadow-soft);
  --hero-start: #3b2a6e; --hero-end: #1c1830;
  --scene-wide: url("assets/rooms/room-wide-dark.webp"); --scene-phone: url("assets/rooms/room-phone-dark.webp");
  --tile-sheen: linear-gradient(180deg, rgb(255 255 255 / 5.5%), rgb(255 255 255 / 1.5%));
  --surface-rim: inset 0 1px rgb(255 255 255 / 7%), inset 0 0 0 1px rgb(255 255 255 / 5.5%);
  --scene-fg: #fff; --scene-fg-2: #d6cfe6; --glass: rgb(27 27 37 / .62); --glass-line: rgb(255 255 255 / .09);
  --dock: rgb(24 23 34 / .86);
} }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--surface); color: var(--fg); font: 500 16px/1.5 Manrope, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; padding-bottom: 120px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden], .symbols { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--fg) 45%, transparent); outline-offset: 3px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.frame { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 24px/1 Manrope, sans-serif; letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 36px; height: 36px; }

/* кнопки как UiButton */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .15s, filter .15s; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px var(--shadow-soft), 0 6px 18px var(--shadow-color); }
.btn-primary:hover { filter: brightness(.96); }
.btn-soft { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.btn-glass { background: var(--glass); color: var(--scene-fg); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 999px; display: inline-grid; place-items: center; border: 0; }

/* плашки как UiChip / сроки */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid; }
.pill.bad { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
.pill.soon { color: var(--warn-fg); background: var(--warn-soft); border-color: var(--warn-border); }
.pill.ok { color: var(--success); background: var(--success-soft); border-color: var(--success-border); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ===== Сцена (как баннер главной) ===== */
.hero { position: relative; isolation: isolate; height: max(660px, 36vw); background: var(--scene-wide) center bottom / cover no-repeat; overflow: hidden; color: var(--scene-fg); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--surface)); z-index: -1; }
.top { position: absolute; inset: 0 0 auto; z-index: 3; }
.top .frame { display: flex; align-items: center; gap: 16px; min-height: 88px; }
.top .tail { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pitch { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); top: 128px; }
.pitch .badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pitch .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }
.pitch h1 { margin: 22px 0 16px; font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.pitch p { max-width: 44ch; color: var(--scene-fg-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; }
.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.shelf { position: absolute; z-index: 1; right: max(var(--gutter), calc(50% - var(--max) / 2)); bottom: 7%; width: min(46vw, 610px); }
.shelf img { display: block; width: 100%; height: auto; }
.shelf .place { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); border-radius: 999px; background: var(--surface); color: var(--fg); padding: 3px 8px; font-size: clamp(10px, 1vw, 14px); font-weight: 700; white-space: nowrap; box-shadow: var(--card-shadow); }
.shelf .place .pill { position: absolute; top: 50%; left: calc(100% + 4px); transform: translateY(-50%); font-size: .85em; padding: 1px 6px; background-color: var(--surface); }

/* быстрые действия под сценой (как плитки главной на телефоне) */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -48px; position: relative; z-index: 4; }
.tile { text-align: left; display: grid; background: var(--tile-sheen), var(--surface-3); grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-tile); box-shadow: var(--card-shadow); }
.tile b { font-size: 16px; } .tile span:not(.ico) { grid-column: 2; font-size: 14px; color: var(--fg-2); line-height: 1.35; }
.tile .ico { grid-row: span 2; }
.tile .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); }

/* ===== Разделы ===== */
section.block { padding-top: clamp(56px, 7vw, 104px); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--fg-2); margin-bottom: 8px; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.lead { margin-top: 12px; color: var(--fg-2); font-size: 17px; max-width: 52ch; }
.card { background: var(--tile-sheen), var(--surface-3); border-radius: var(--radius-panel); box-shadow: var(--card-shadow); }
/* миниатюра вещи — в скруглённой подложке, как в списке «Вещей» */
.thumb { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); }
.thumb img { width: 46px; height: 46px; }

/* сегменты как UiSegmented */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.seg button { border: 0; background: none; padding: 0 18px; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--fg-2); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: 0 2px 8px var(--shadow-color); }

/* демо главной */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 14px 16px; border-radius: var(--radius-tile); background: var(--tile-sheen), var(--surface-3); box-shadow: var(--card-shadow); }
.stat small { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); font-weight: 600; }
.stat small svg { width: 16px; height: 16px; }
.stat strong { display: block; font-size: 32px; font-weight: 800; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat.bad small svg { color: var(--danger); } .stat.soon small svg { color: var(--warn-fg); } .stat.ok small svg { color: var(--success); }
.list { overflow: hidden; padding: 6px; display: grid; gap: 4px; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; min-height: 72px; border-radius: 20px; transition: opacity .25s, transform .25s, background .15s; }
.row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.row.out { opacity: 0; transform: translateX(24px); }
.row .name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 14px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub.bad { color: var(--danger); } .row .sub.soon { color: var(--warn-fg); }
.row .acts { display: flex; align-items: center; gap: 10px; }
.row .where { color: var(--fg-2); font-size: 14px; min-width: 150px; }
.act { min-height: 44px; min-width: 64px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); font-weight: 700; font-size: 14px; white-space: nowrap; }
.act:hover { background: var(--border); }
.group-title { padding: 12px 12px 2px; font-size: 13px; font-weight: 700; color: var(--fg-2); display: flex; gap: 6px; align-items: center; }
.group-title + .row { border-top: 0; }
.empty { padding: 28px 20px; text-align: center; color: var(--fg-2); }
.empty img { width: 84px; margin-bottom: 6px; }
.side { padding: 20px; }
.side h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; }
.side h3 img { width: 44px; } .side h3 small { display: block; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.buy { margin-top: 8px; }
.buy { display: grid; gap: 4px; margin-inline: -8px; }
.buy li { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 20px; }
.buy .thumb { width: 48px; height: 48px; border-radius: 16px; } .buy .thumb img { width: 38px; height: 38px; }
.buy .t { flex: 1; min-width: 0; } .buy .t small { display: block; color: var(--fg-2); font-size: 13px; }
.check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); background: none; display: grid; place-items: center; color: transparent; padding: 0; }
.check svg { width: 16px; height: 16px; stroke-width: 2.6; }
.buy li.done .check { background: var(--success); border-color: var(--success); color: var(--on-primary); }
.buy li.done .t b { text-decoration: line-through; color: var(--fg-2); }
.buy li.new { animation: pop .5s ease; }
@keyframes pop { from { background: color-mix(in srgb, var(--success) 18%, transparent); } }
.who { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--fg-2); font-size: 14px; }
.ava { display: flex; } .ava i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #3a1c0b; background: linear-gradient(135deg, #ffd29a, #e6865e); box-shadow: 0 0 0 2px var(--surface-3); }
.ava i + i { margin-left: -8px; background: linear-gradient(135deg, #b8e6d3, #5bb08f); color: #0f3527; }
.reset { margin-top: 12px; margin-left: 8px; background: none; border: 0; padding: 6px 0; color: var(--fg-2); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* добавление */
.add { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.voice { padding: 20px; display: grid; gap: 18px; align-content: start; }
.phrases { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.said { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); }
.mic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); flex: none; box-shadow: 0 6px 16px var(--shadow-color); }
.said q { font-size: 18px; font-weight: 700; quotes: "«" "»"; }
.wave { display: flex; gap: 3px; align-items: center; height: 20px; margin-left: auto; }
.wave i { width: 3px; border-radius: 2px; background: var(--fg-2); height: 30%; animation: wv 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s } .wave i:nth-child(3) { animation-delay: -.4s } .wave i:nth-child(4) { animation-delay: -.6s } .wave i:nth-child(5) { animation-delay: -.8s }
@keyframes wv { 50% { height: 100%; } }
.parsed { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--radius-tile); background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); }
.parsed .thumb { width: 72px; height: 72px; border-radius: 20px; background: var(--surface-3); } .parsed .thumb img { width: 60px; height: 60px; }
.parsed dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; }
.parsed dt { color: var(--fg-2); } .parsed dd { font-weight: 700; }
.parsed.fresh { animation: pop .6s ease; }
.ways { display: grid; gap: 12px; align-content: start; }
.way { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 12px 18px 12px 12px; border-radius: var(--radius-tile); }
.way .ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); }
.way .ico img { width: 64px; } .way b { display: block; font-size: 16px; } .way span { color: var(--fg-2); font-size: 14px; line-height: 1.4; display: block; }

/* что умеет */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 12px 12px 20px; display: grid; gap: 8px; align-content: start; }
.feature .art { height: 148px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px; background: radial-gradient(closest-side, color-mix(in srgb, #ffbe78 22%, transparent), transparent), var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); }
.feature .art img { width: 128px; height: 128px; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .22)); }
.feature b, .feature p { padding-inline: 8px; }
.feature b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.feature p { color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* приглашение */
.invite { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-hero); background: radial-gradient(120% 90% at 80% 10%, var(--hero-start), var(--hero-end)); box-shadow: var(--card-shadow); color: var(--fg); overflow: hidden; }
.perks { margin-top: 22px; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.perks li svg { color: var(--success); margin-top: 3px; }
.pass { padding: 24px; border-radius: 28px; display: grid; gap: 14px; justify-items: center; text-align: center; background: color-mix(in srgb, var(--surface-3) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pass > img { width: 150px; margin: -8px 0 -10px; filter: drop-shadow(0 16px 20px rgb(0 0 0 / .25)); }
.pass h3 { font-size: 22px; font-weight: 800; }
.pass p { color: var(--fg-2); font-size: 15px; }
.pass .btn { width: 100%; }
.code { width: 100%; padding: 14px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font: 800 22px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.tg { font-size: 14px; font-weight: 700; color: var(--fg-2); text-underline-offset: 4px; }

/* установка и вопросы */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.steps { padding: 6px; margin-top: 16px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 10px 12px; min-height: 62px; border-radius: 18px; }
.steps li::before { content: counter(s); counter-increment: s; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); font-weight: 800; }
.steps { counter-reset: s; }
.faq { padding: 6px; }
.faq details { border-radius: 18px; }
.faq details[open] { background: var(--tile-sheen), var(--surface-2); box-shadow: var(--surface-rim); }
.faq details + details { margin-top: 2px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 14px 14px 16px; min-height: 56px; border-radius: 18px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; color: var(--fg-2); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 16px 16px; color: var(--fg-2); font-size: 15px; }

footer { margin-top: clamp(56px, 7vw, 96px); padding: 28px 0; border-top: 1px solid var(--border); }
footer .frame { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--fg-2); font-size: 14px; font-weight: 600; }
footer .brand { font-size: 20px; color: var(--fg); margin-right: auto; } footer .brand img { width: 28px; height: 28px; }
footer a:not(.brand) { text-decoration: none; } footer a:hover { color: var(--fg); }

/* плавающая панель — как нижнее меню приложения */
.dock { position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--dock); box-shadow: inset 0 0 0 1px var(--border), 0 12px 32px var(--shadow-color); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }
.dock nav { display: flex; gap: 2px; }
.dock nav a { display: grid; justify-items: center; gap: 2px; min-width: 84px; padding: 8px 10px 6px; border-radius: 999px; text-decoration: none; color: var(--fg-2); font-size: 12.5px; font-weight: 700; }
.dock nav a[aria-current="true"] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); }
.dock .sep { width: 1px; height: 36px; background: var(--border); margin: 0 6px; }
.dock .btn { min-height: 56px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; width: max-content; max-width: calc(100% - 32px); border-radius: 22px; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600; box-shadow: 0 12px 32px var(--shadow-color); transition: .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: color-mix(in srgb, var(--on-ink) 14%, transparent); color: inherit; border-radius: 999px; min-height: 36px; padding: 0 12px; font-weight: 700; }

/* ===== Телефон ===== */
@media (max-width: 899px) {
  body { padding-bottom: 110px; }
  .hero { height: 690px; background-image: var(--scene-phone); background-position: center bottom; }
  .top .frame { min-height: 68px; }
  .top .open-app { display: none; }
  .brand { font-size: 21px; } .brand img { width: 32px; height: 32px; }
  .pitch { top: 84px; width: calc(100% - 32px); }
  .pitch h1 { font-size: clamp(38px, 10.6vw, 46px); margin: 16px 0 12px; }
  .pitch p { font-size: 17px; max-width: 32ch; }
  .cta-row { margin-top: 22px; }
  .cta-row .btn-glass { display: none; }
  .shelf { right: 50%; transform: translateX(50%); bottom: 6%; width: min(86%, 322px); }
  .quick { gap: 10px; margin-top: -40px; }
  .tile { text-align: center; grid-template-columns: 1fr; justify-items: center; row-gap: 8px; padding: 14px 8px; } .tile .ico { grid-row: auto; } .tile span:not(.ico) { display: none; }
  .demo, .add, .two, .invite { grid-template-columns: 1fr; }
  .stats { gap: 10px; } .stat { padding: 12px; } .stat strong { font-size: 26px; } .stat small { font-size: 13px; }
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; } .row .thumb { width: 52px; height: 52px; border-radius: 16px; } .row .thumb img { width: 42px; height: 42px; }
  .row .where { display: none; }
  .row .acts .pill { display: none; }
  .features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 8px 8px 16px; } .feature .art { height: 112px; border-radius: 16px; } .feature .art img { width: 96px; height: 96px; } .feature b, .feature p { padding-inline: 6px; } .feature b { font-size: 16px; } .feature p { font-size: 14px; }
  .invite { gap: 22px; } .pass > img { width: 120px; }
  .dock { left: 12px; right: 12px; transform: none; bottom: max(8px, calc(env(safe-area-inset-bottom) - 12px)); justify-content: space-between; border-radius: 999px; }
  .dock nav { flex: 1; justify-content: space-between; }
  .dock nav a { min-width: 0; flex: 1; padding: 9px 2px 7px; font-size: 11.5px; }
  .dock .sep { display: none; }
  .dock .btn { min-height: 56px; padding: 0 18px; }
  .dock .btn .long { display: none; }
  .toast { bottom: 96px; }
}
@media (max-width: 899px) { .shelf .place .pill { top: auto; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); } }
@media (max-width: 380px) { .features { grid-template-columns: 1fr; } }

/* ===== Лендинг: то, чего нет в макете ===== */
.brand { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-toggle svg[hidden] { display: none; }
/* бета: выдача кода */
.pass .claim { display: grid; gap: 12px; width: 100%; }
.pass .q { font-size: 14px; font-weight: 700; color: var(--fg-2); }
.pass .q small { font-weight: 500; }
.wants { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.seats { display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); }
.seats .bar { height: 8px; border-radius: 999px; background: var(--surface-2); box-shadow: var(--surface-rim); overflow: hidden; }
.seats .bar i { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.seats.out .bar i { background: var(--danger); }
.pass .msg { font-size: 14px; color: var(--fg-2); }
.btn-tg { background: #2aabee; color: #fff; box-shadow: 0 6px 18px rgb(42 171 238 / .3); }
.btn[disabled] { opacity: .6; cursor: progress; }
/* установка — подробные шаги */
.steps li { align-items: start; }
.steps li b { display: block; font-size: 16px; }
.steps li p { color: var(--fg-2); font-size: 15px; margin-top: 2px; }
.steps li::before { margin-top: 2px; }
.key { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); box-shadow: var(--surface-rim); color: var(--fg); font-weight: 700; font-size: 14px; white-space: nowrap; }
.key svg { width: 15px; height: 15px; }
.note { margin-top: 12px; font-size: 14px; color: var(--fg-2); }
.lead a, .faq a, .note a { font-weight: 700; }
