/* Сайт ModWise. Цвета и элементы те же, что в панели расширения. Блоки показывают работу сами, колесо двигает маскота. */
:root {
  color-scheme: light dark;
  --bg: #fbfbfd; --surface: #ffffff; --soft: #f5f5f7; --text: #1d1d1f; --text-2: #424245; --grey: #6e6e73; --line: #e6e6eb;
  --accent: #6366f1; --accent-soft: rgba(99, 102, 241, .1); --ok: #16a34a; --warn: #d97706;
  --panel: #f6f7fb;
  --shadow: 0 34px 90px -34px rgba(29, 29, 80, .3), 0 2px 8px rgba(29, 29, 60, .05);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --glow: .27;
  --grain-a: .016;
  --grad: linear-gradient(95deg, #4f46e5 0%, #7c3aed 48%, #db2777 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --surface: #1c1c1e; --soft: #2c2c2e; --text: #f5f5f7; --text-2: #d2d2d7; --grey: #98989d; --line: #38383a; --accent: #818cf8; --accent-soft: rgba(129, 140, 248, .16); --ok: #34d399; --warn: #fbbf24; --panel: #111114; --shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); --glow: .24; --grain-a: .03; --grad: linear-gradient(95deg, #818cf8 0%, #c084fc 48%, #f472b6 100%); }
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.5 -apple-system, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
h1, h2 { margin: 0; font-family: -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(46px, 6.6vw, 98px); line-height: 1.08; }
h2 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.14; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
small { color: var(--grey); font-size: 12px; }

/* Живой фон: мягкие пятна цвета меняются от блока к блоку, поверх них пылинки и след маскота */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; --c1: 99, 102, 241; --c2: 168, 85, 247; --c3: 56, 189, 248; }
.sky i { position: absolute; width: 82vmax; height: 82vmax; border-radius: 50%; will-change: transform; }
.sky i:nth-child(1) { left: -26vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(var(--c1), var(--glow)), transparent); }
.sky i:nth-child(2) { right: -28vmax; top: 8vh; background: radial-gradient(closest-side, rgba(var(--c2), var(--glow)), transparent); }
.sky i:nth-child(3) { left: 16vw; bottom: -46vmax; background: radial-gradient(closest-side, rgba(var(--c3), var(--glow)), transparent); }
.sky::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: var(--grain-a); }
#dust { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 clamp(14px, 2.4vw, 32px); pointer-events: none; }
.nav > * { pointer-events: auto; }
.glass { background: color-mix(in srgb, var(--surface) 62%, transparent); backdrop-filter: saturate(180%) blur(18px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 980px; box-shadow: 0 10px 28px -18px rgba(30, 30, 90, .4); }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px 6px 7px; font-weight: 600; color: var(--text); }
.nav nav { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; font-size: 14.5px; font-weight: 500; }
.nav nav a { position: relative; padding: 6px 17px; border-radius: 980px; color: var(--text-2); transition: color .25s; }
.nav nav a:hover, .nav nav a[aria-current], .nav nav a.on { color: var(--text); }
.nav-pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 980px; background: var(--accent-soft); opacity: 0; transition: left .45s var(--ease), width .45s var(--ease), opacity .3s; }
.logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #6366f1; color: #fff; flex: none; }
.logo.sm { width: 22px; height: 22px; border-radius: 6px; }
.logo svg, .mi svg, [data-i] svg { display: block; }
.pill { display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 980px; font-weight: 600; }
.pill.solid { background: #6366f1; color: #fff; box-shadow: 0 12px 28px -12px rgba(99, 102, 241, .8); }
.pill.small { padding: 6px 14px; font-size: 13.5px; box-shadow: none; }
.pill-link { font-size: 19px; font-weight: 500; }
.pill-link.small { font-size: 15px; white-space: nowrap; }
.pill-link::after { content: ' ›'; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; }

/* Первый экран */
.hero { text-align: center; padding: clamp(104px, 14vh, 150px) 20px 16vh; }
.hero .ln { display: block; animation: rise .9s var(--ease) both; }
.hero .ln.grad { animation-delay: .12s; padding-bottom: .08em; }
.hero .sub, .hero .cta { animation: rise .9s .24s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.sub { font-size: clamp(20px, 1.75vw, 26px); color: var(--text-2); max-width: 31em; margin: 18px auto 30px; line-height: 1.36; }
.stage { position: relative; z-index: 31; max-width: 1040px; margin: 70px auto 0; will-change: transform; transform-origin: 50% 0; }
.perch { position: absolute; left: 82%; top: 0; width: 1px; height: 1px; }
.window { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.w-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--soft); }
.w-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.w-bar span { margin: 0 auto; font-size: 12.5px; color: var(--grey); }
.w-tabs-bar { padding: 8px 12px 0; align-items: flex-end; }
.w-tabs-bar > i { margin-bottom: 10px; }
.w-tabs { display: flex; gap: 2px; margin-left: 10px; }
.w-bar .w-tab { position: relative; margin: 0; padding: 7px 18px 9px; border-radius: 10px 10px 0 0; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; overflow: hidden; transition: background .25s, color .25s; }
.w-bar .w-tab:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.w-bar .w-tab.press { transform: scale(.94); }
.tab-cursor { z-index: 6; }
.w-bar .w-tab.on { background: var(--surface); color: var(--text); }
.w-bar .w-tab.on::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: #6366f1; }
.w-addr { padding: 7px 14px; background: var(--surface); border-bottom: 1px solid var(--line); text-align: center; }
.w-addr span { display: inline-block; min-width: 46%; padding: 3px 14px; border-radius: 980px; background: var(--soft); color: var(--grey); font-size: 12.5px; }
.w-body.cases { position: relative; height: 490px; }
.case { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.case.cur { opacity: 1; visibility: visible; }
.browser { padding: 0; }
.browser .w-bar { flex: none; padding: 9px 13px; }
.two { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 47%); }
.pn { display: flex; flex-direction: column; min-height: 0; padding: 11px; background: var(--panel); border-left: 1px solid var(--line); font-size: 13px; line-height: 1.38; }
.two .pn { font-size: 12.5px; padding: 9px; }
.two .pn .c-base, .two .pn .c-ai span:last-child { display: none; }
.two .pn .send { width: 28px; height: 28px; border-radius: 8px; }
.two .w-page { padding: 12px; }
.w-page.flat { display: block; padding: 0; height: 100%; min-height: 0; }
.two { grid-template-rows: minmax(0, 1fr); }
.pg-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 4px; font-size: 17px; }
.pg-btn { padding: 5px 11px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.shop-row, .mail-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.shop-row div, .mail-row div { display: grid; line-height: 1.25; min-width: 0; }
.mail-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.pic { display: block; width: 40px; height: 40px; border-radius: 9px; }
.pic.a { background: linear-gradient(135deg, #3b82f6, #1e3a8a); } .pic.b { background: linear-gradient(135deg, #fbbf24, #d97706); } .pic.c { background: linear-gradient(135deg, #78716c, #292524); } .pic.d { background: linear-gradient(135deg, #34d399, #059669); } .pic.e { background: linear-gradient(135deg, #f472b6, #be185d); }
.price-cell { display: inline-grid; justify-items: end; font-variant-numeric: tabular-nums; }
.price-cell i { font-style: normal; color: var(--text-2); max-height: 22px; }
.price-cell b { color: var(--ok); max-height: 22px; }
.ava { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-style: normal; font-weight: 700; }
.tag { padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; max-height: 26px; }
.tag.t1 { background: rgba(59, 130, 246, .14); color: #2563eb; } .tag.t2 { background: rgba(16, 185, 129, .15); color: #059669; } .tag.t3 { background: rgba(239, 68, 68, .14); color: #dc2626; }
.ask { display: grid; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 12px; flex: none; max-height: 110px; }

/* Таблица как в браузере */
.gs { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--surface); }
.gs-top { display: flex; align-items: center; gap: 7px; padding: 8px 10px; font-size: 13px; flex: none; }
.gs-ico { width: 15px; height: 18px; border-radius: 3px; background: #0f9d58; flex: none; }
.gs-menu { margin-left: 6px; color: var(--grey); font-size: 11px; white-space: pre; overflow: hidden; }
.gs-bar { padding: 3px 10px; border-block: 1px solid var(--line); color: var(--grey); font-size: 11px; font-style: italic; flex: none; }
.gs-grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 24px repeat(var(--gc), minmax(0, 1fr)); grid-auto-rows: 1fr; font-size: 12px; font-variant-numeric: tabular-nums; }
.gs-c, .gs-l, .gs-n { display: flex; align-items: center; padding: 0 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.gs-l, .gs-n { justify-content: center; padding: 0; background: var(--soft); color: var(--grey); font-size: 10.5px; }
.gs-h { font-weight: 600; }
.gs-c.v { color: var(--accent); font-weight: 600; }
.gs-c.ok { color: var(--ok); }
.gs-c.bad { color: #dc2626; }
.gs-c.v.off { opacity: 1; transform: none; max-height: none !important; padding: 0 7px !important; border-width: 0 1px 1px 0 !important; color: transparent; }
.gs-sel { position: absolute; left: 24px; top: calc(100% * 2 / (var(--gr) + 2)); width: calc((100% - 24px) / var(--gc)); height: 0; border: 2px solid #1a73e8; background: rgba(26, 115, 232, .08); pointer-events: none; }

/* Страница с видео */
.w-page.flat.yt { display: flex; flex-direction: column; gap: 0; background: var(--surface); min-height: 0; overflow: hidden; }
.case .w-page.flat.yt { display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: 12px; padding: 0 12px 0 0; }
.case .yt-top { grid-column: 1 / -1; }
.case .yt-next { grid-column: 2; grid-row: 2 / 5; padding: 0; }
.yt-next { display: grid; align-content: start; gap: 9px; padding: 2px 10px 10px; }
.yt-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: start; }
.yt-item div { display: grid; line-height: 1.22; min-width: 0; }
.yt-item b { font-size: 11.5px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yt-item small { font-size: 10.5px; }
.yt-thumb { position: relative; display: block; height: 43px; border-radius: 6px; }
.yt-thumb.a { background: linear-gradient(135deg, #f59e0b, #b45309); } .yt-thumb.b { background: linear-gradient(135deg, #64748b, #1e293b); } .yt-thumb.c { background: linear-gradient(135deg, #38bdf8, #1d4ed8); } .yt-thumb.d { background: linear-gradient(135deg, #f472b6, #9d174d); }
.yt-thumb em { position: absolute; right: 3px; bottom: 3px; padding: 0 3px; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 9px; font-style: normal; line-height: 1.35; }
.yt-top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13.5px; letter-spacing: -.02em; flex: none; }
.yt-logo { color: #ff0000; }
.yt-find { margin-left: auto; padding: 3px 26px 3px 10px; border: 1px solid var(--line); border-radius: 980px; color: var(--grey); font-size: 11px; letter-spacing: 0; }
.yt-player { position: relative; aspect-ratio: 16 / 9; flex: none; background: linear-gradient(135deg, #3a4a6b, #1c2438); overflow: hidden; }
.yt-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt-big { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 38px; margin: -19px 0 0 -27px; border-radius: 10px; background: #ff0000; color: #fff; max-height: 38px; }
.yt-big svg { fill: #fff; }
.yt-subs { position: absolute; left: 8%; right: 8%; bottom: 34px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; }
.yt-subs:not(:empty) { text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .8); }
.yt-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 8px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; }
.yt-line { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.yt-line b { display: block; width: 0; height: 100%; background: #ff0000; }
.yt-row { display: flex; align-items: center; gap: 7px; height: 20px; font-size: 10.5px; }
.yt-row i { flex: 1; }
.yt-cc { padding: 0 3px; border-bottom: 2px solid transparent; font-weight: 700; font-size: 9.5px; }
.yt-cc.lit { border-bottom-color: #ff0000; }
.yt-title { padding: 8px 10px 4px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.yt-ch { display: flex; align-items: center; gap: 8px; padding: 2px 10px 10px; font-size: 12.5px; }
.yt-ch div { display: grid; line-height: 1.2; min-width: 0; }
.yt-ch b, .yt-ch small { overflow: hidden; text-overflow: ellipsis; }
.yt-ch b { white-space: nowrap; }
.yt-ch small { font-size: 11px; white-space: nowrap; }
.yt-ava { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); flex: none; }
.yt-sub { flex: none; margin-left: auto; padding: 5px 11px; border-radius: 980px; background: var(--text); color: var(--bg); font-size: 11.5px; font-weight: 600; }

/* Файл с компьютера: перетаскивание в панель, потом плеер и готовые строки */
.vid { display: flex; flex-direction: column; background: var(--surface); overflow: hidden; }
.fs.off, .vp.off { display: none; }
.fs { padding: 12px; }
.fs-top { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; color: var(--accent); font-size: 14px; }
.fs-top b { color: var(--text); }
.fs-top small { margin-left: auto; }
.fs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.fs-item { display: grid; gap: 5px; font-size: 11.5px; }
.fs-item b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-item .yt-thumb { height: 70px; }
.vp { display: flex; flex-direction: column; min-height: 0; }
.vp-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px 7px; font-size: 13px; }
.vp-subs { display: grid; gap: 7px; padding: 0 11px 11px; font-size: 12px; line-height: 1.3; }
.vp-subs > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; max-height: 40px; }
.vp-subs time { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.drop-host { position: relative; }
.drop-zone { position: absolute; inset: 6px; display: grid; place-content: center; justify-items: center; gap: 6px; border: 2px dashed #6366f1; border-radius: 14px; background: color-mix(in srgb, var(--panel) 80%, #6366f1 20%); color: var(--accent); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .25s; pointer-events: none; }
.drop-zone.lit { opacity: 1; }
.drag-chip { position: absolute; left: 14px; top: 16px; padding: 4px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); color: var(--text); font-size: 11.5px; font-style: normal; font-weight: 600; white-space: nowrap; max-height: 30px; }
.c-file { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; max-height: 26px; white-space: nowrap; }

/* Чат в Telegram */
.tg { max-width: 410px; margin: 0 auto; padding: 0; border-radius: 34px; }
.tg-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; background: #517da2; color: #fff; flex: none; }
.tg-head div { display: grid; line-height: 1.2; }
.tg-head small { color: rgba(255, 255, 255, .78); }
.tg-more { margin-left: auto; }
.tg-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #7c86f2; color: #fff; }
.tg-list { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; min-height: 0; overflow: hidden; background: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.3px) 0 0 / 22px 22px, linear-gradient(160deg, #cfe6b4, #a9d8bf 55%, #b9dfd2); }
.tg-m { align-self: flex-start; max-width: 86%; max-height: 140px; padding: 7px 10px 6px; border-radius: 13px 13px 13px 4px; background: #fff; color: #000; font-size: 14.5px; line-height: 1.32; flex: none; box-shadow: 0 1px 1px rgba(0, 0, 0, .14); }
.tg-m.me { align-self: flex-end; border-radius: 13px 13px 4px 13px; background: #effedd; }
.tg-m time { float: right; margin: 7px 0 0 9px; color: #7d9b78; font-size: 11px; }
.tg-m:not(.me) time { color: #a0a5ad; }
.tg-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-self: flex-start; width: 86%; max-height: 44px; flex: none; }
.tg-keys span { display: grid; place-items: center; padding: 8px; border-radius: 8px; background: rgba(62, 92, 74, .45); color: #fff; font-size: 13.5px; font-weight: 600; transition: transform .15s; }
.tg-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px; max-height: 38px; border-radius: 13px 13px 13px 4px; background: #fff; flex: none; }
.tg-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a0a5ad; animation: dot 1s infinite; }
.tg-typing i:nth-child(2) { animation-delay: .15s; } .tg-typing i:nth-child(3) { animation-delay: .3s; }
.tg-input { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; color: #8a8f98; flex: none; font-size: 15px; }
.tg-input .txt { flex: 1; }
@media (prefers-color-scheme: dark) {
  .tg-head, .tg-input { background: #17212b; }
  .tg-list { background: radial-gradient(rgba(255, 255, 255, .04) 1.2px, transparent 1.3px) 0 0 / 22px 22px, #0e1621; }
  .tg-m, .tg-typing { background: #182533; color: #f5f5f5; }
  .tg-m.me { background: #2b5278; }
  .tg-m.me time, .tg-m time { color: #8ba3bd; }
  .tg-keys span { background: rgba(120, 150, 180, .25); }
}
.w-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 470px; }
.w-body.cases { display: block; height: 490px; }
.w-page { padding: 24px; display: grid; gap: 16px; align-content: start; }
.w-title { height: 20px; width: 46%; border-radius: 6px; background: var(--soft); }
.w-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.w-thumbs b { aspect-ratio: 16 / 10; border-radius: 12px; background: var(--soft); }
.w-thumbs b:nth-child(1) { background: linear-gradient(135deg, #c7d2fe, #6366f1); }
.w-thumbs b:nth-child(5) { background: linear-gradient(135deg, #fde68a, #f97316); }

/* Главы: блок ненадолго останавливается, работа внутри него показывается сама */
.chapter { position: relative; height: calc(100vh + 240px); }
.pin { position: sticky; top: 0; height: 100vh; max-width: 1400px; margin: 0 auto; padding: 60px clamp(20px, 3.4vw, 48px) 0; display: grid; grid-template-columns: 44% 9% 11% 36%; align-items: center; }
.flip .pin { grid-template-columns: 36% 11% 9% 44%; }
.art, .words { will-change: transform, opacity; }
.art { perspective: 1400px; }
.words h2 { max-width: 12.5em; }
.words p { margin: 14px 0 0; max-width: 24em; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.38; color: var(--text-2); }
.kicker { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--tone, var(--accent)); }
.spot { height: 1px; }
[data-tone="indigo"] { --tone: #4f46e5; --t1: #6366f1; --t2: #38bdf8; }
[data-tone="amber"] { --tone: #c2410c; --t1: #f59e0b; --t2: #f43f5e; }
[data-tone="emerald"] { --tone: #047857; --t1: #10b981; --t2: #06b6d4; }
[data-tone="violet"] { --tone: #7c3aed; --t1: #8b5cf6; --t2: #d946ef; }
[data-tone="sky"] { --tone: #0369a1; --t1: #0ea5e9; --t2: #3b82f6; }
[data-tone="pink"] { --tone: #be185d; --t1: #ec4899; --t2: #f59e0b; }
[data-tone="teal"] { --tone: #0f766e; --t1: #14b8a6; --t2: #6366f1; }
[data-tone="plans"] { --tone: #6d28d9; --t1: #6366f1; --t2: #ec4899; }
@media (prefers-color-scheme: dark) {
  [data-tone] { --tone: var(--t1); }
}

/* Между блоками: большое слово и парящие подсказки */
.gap { position: absolute; z-index: -1; left: 0; right: 0; top: -11vh; height: 26vh; pointer-events: none; overflow-x: clip; }
.ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 clamp(120px, 17vw, 300px)/1.34 -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.03em; white-space: nowrap; background: linear-gradient(95deg, var(--t1), var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .15; will-change: transform; }
.fl { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 84%, transparent); border: 1px solid color-mix(in srgb, var(--t1) 24%, var(--line)); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--t1) 55%, transparent); color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; will-change: transform; }
.fl [data-i] { color: var(--tone); }


/* То же, что в панели ModWise */
.mock { position: relative; display: flex; flex-direction: column; height: min(620px, 74vh); background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 14px; overflow: hidden; font-size: 13.5px; line-height: 1.4; will-change: transform; }
.mock > * { transition: opacity .32s; }
.mock.fading > * { opacity: 0; }
.case .m-chat { justify-content: flex-start; }
.m-head { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; flex: none; }
.m-head b { font-weight: 700; }
.m-tools { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--grey); }
.m-tools > span:not(.m-user) { opacity: .55; }
.m-user { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.m-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); flex: none; }
.m-nav > span { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border-radius: 9px; color: var(--grey); font-size: 10.5px; white-space: nowrap; }
.m-nav > span.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.two .m-nav > span { font-size: 9px; }
.c-base { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.m-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 0; overflow: hidden; }
[data-at] { transition: opacity .4s var(--ease), transform .4s var(--ease), max-height .4s var(--ease); }
.off { opacity: 0; transform: translateY(8px); max-height: 0 !important; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-width: 0 !important; overflow: hidden; pointer-events: none; }
.m-hello { display: grid; justify-items: center; gap: 4px; margin: auto; text-align: center; font-size: 15px; max-height: 130px; }
.mi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #6366f1; background: rgba(99, 102, 241, .14); }
.mi.sm { width: 34px; height: 34px; }
.say { padding: 9px 11px; border-radius: 12px; background: var(--accent-soft); max-height: 90px; flex: none; }
.say.me { align-self: flex-end; max-width: 88%; background: var(--surface); border: 1px solid var(--line); }
.safe-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 11.5px; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); max-height: 30px; flex: none; }
.step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; max-height: 70px; flex: none; }
.step div { display: grid; }
.num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #6366f1; color: #fff; font-size: 11.5px; font-weight: 700; }
.done { color: var(--ok); max-height: 20px; }
.m-row { display: flex; gap: 6px; max-height: 50px; flex: none; }
.btn { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; transition: transform .15s, filter .15s; }
.btn.primary { background: #6366f1; border-color: #6366f1; color: #fff; }
.press { transform: scale(.93); filter: brightness(1.15); }
.m-run { display: grid; gap: 6px; color: var(--grey); max-height: 60px; flex: none; }
.m-bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.m-bar span { display: block; height: 100%; width: 0; background: #6366f1; border-radius: inherit; }
.result { display: grid; gap: 2px; padding: 12px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; max-height: 120px; flex: none; }
.files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.files span { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.composer { flex: none; display: grid; gap: 4px; padding: 8px; margin-top: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.c-text { min-height: 26px; padding: 3px 6px; font-size: 14px; }
.ph { color: var(--grey); }
.ph.off { display: none; }
.c-bar { display: flex; align-items: center; gap: 10px; color: var(--grey); padding: 0 4px; }
.c-bar i { flex: 1; }
.c-ai { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #6366f1; color: #fff; }
.m-cursor { position: absolute; left: 0; top: 0; z-index: 5; color: var(--text); opacity: 0; transition: transform .55s var(--ease), opacity .3s; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }

.player { position: relative; flex: 1; min-height: 0; border-radius: 16px; background: radial-gradient(90% 120% at 18% 18%, #f59e0b 0, transparent 55%), radial-gradient(100% 120% at 88% 90%, #ef4444 0, transparent 55%), linear-gradient(135deg, #7c2d12, #451a03); overflow: hidden; }
.m-subs { position: absolute; left: 12px; right: 12px; bottom: 22px; text-align: center; color: #fff; font-size: 16px; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.player-time { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.player-time span { position: absolute; top: -2px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: #fff; }
.file-line { display: flex; align-items: center; gap: 10px; flex: none; max-height: 60px; }
.file-line div { display: grid; }
.thumb { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #f59e0b, #ef4444); flex: none; }
.tl { position: relative; display: grid; grid-template-columns: 2fr 1.4fr 2.4fr 1.6fr; gap: 6px; height: 22px; padding: 4px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.tl b { border-radius: 4px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.tl b.off { max-height: none !important; transform: none; }

.sheet-mock { padding: 0; background: var(--surface); }
.s-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none; }
.s-status { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.s-grid { position: relative; flex: 1; display: grid; grid-template-columns: 1.5fr .65fr .9fr .7fr; grid-auto-rows: 1fr; min-height: 0; }
.s-c { display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.s-c.h { color: var(--grey); font-size: 12px; font-weight: 600; background: var(--soft); }
.s-c.v { color: var(--accent); font-weight: 600; }
.s-c.v.off { opacity: 1; transform: none; max-height: none !important; padding: 0 14px !important; border-width: 0 1px 1px 0 !important; color: transparent; }
.s-sel { position: absolute; left: 0; top: 16.66%; width: 40%; height: 0; border: 2px solid #1a73e8; background: rgba(26, 115, 232, .08); pointer-events: none; }
.sheet-mock .composer { margin: 10px; }

.form { gap: 18px; padding: 26px; font-size: 15px; }
.f-head { display: flex; align-items: center; gap: 11px; font-size: 18px; }
.f-head div { display: grid; }
.form label { display: grid; gap: 8px; color: var(--grey); font-size: 13px; font-weight: 600; }
.f-input { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 400; }
.f-chips { display: flex; gap: 7px; }
.chip { padding: 6px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; transition: background .3s, color .3s, border-color .3s; }
.chip.lit { background: #6366f1; border-color: #6366f1; color: #fff; }
.f-area { min-height: 112px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 400; }

.phone { max-width: 400px; margin: 0 auto; border-radius: 38px; padding: 16px; }
.t-head { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex: none; }
.t-head div { display: grid; line-height: 1.2; }
.t-list { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding-top: 10px; min-height: 0; overflow: hidden; }
.t-m { align-self: flex-start; max-width: 88%; max-height: 130px; padding: 9px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; flex: none; }
.t-m.me { align-self: flex-end; background: #6366f1; border-color: #6366f1; color: #fff; }
.t-keys { display: flex; gap: 6px; margin-top: 8px; }
.t-keys span { padding: 6px 12px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; transition: transform .15s; }
.t-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px; max-height: 40px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.t-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey); animation: dot 1s infinite; }
.t-typing i:nth-child(2) { animation-delay: .15s; } .t-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-3px); opacity: .5; } }

.isl-wrap { display: grid; justify-items: center; flex: none; }
.isl { width: 220px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1.5px #6366f1, 0 16px 34px -14px rgba(99, 102, 241, .55); overflow: hidden; transition: width .5s var(--ease), border-radius .5s var(--ease), opacity .4s, transform .4s; max-height: 220px; }
.isl.open { width: 100%; border-radius: 16px; }
.isl-pill { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; font-weight: 600; color: var(--text); }
.isl-pill span:first-child { color: #6366f1; }
.isl-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.isl.open .isl-more { grid-template-rows: 1fr; }
.isl-in { min-height: 0; overflow: hidden; }
.isl-more p { margin: 0 14px; }
.isl-more .m-row { padding: 10px 14px 14px; max-height: none; }
.draft { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); flex: none; }

.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.mod { display: grid; align-content: center; justify-items: start; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); opacity: .4; transition: opacity .35s, transform .35s var(--ease), border-color .35s; min-width: 0; }
.mod.lit { opacity: 1; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mod b { margin-top: 5px; font-size: 14px; }

/* Тарифы: витрина. Карточки стоят в ряд на одной плоскости, главная крупнее */
.pricing { height: calc(100vh + 300px); }
.pricing .pin { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 64px; }
.p-head, .shelf { width: min(1280px, 100% - 120px); }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.p-head h2 { font-size: clamp(34px, 3.3vw, 48px); }
.p-note { margin: 4px 0 0; color: var(--text-2); font-size: 16.5px; }
.p-tools { display: flex; align-items: center; gap: 18px; }
.p-tools .period { margin: 0; }
.shelf { --cw: min(300px, calc((100% - 66px) / 4.15)); --ch: clamp(320px, calc(100vh - 380px), 520px); position: relative; height: var(--ch); margin: 104px 0 92px; opacity: 0; translate: 0 46px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.pricing.in .shelf { opacity: 1; translate: 0 0; }
.shelf .plans { position: absolute; inset: 0; display: block; }
.shelf .plan-card { position: absolute; left: 50%; top: 0; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2); display: flex; flex-direction: column; padding: 24px 22px; cursor: pointer; box-shadow: 0 26px 60px -34px rgba(60, 60, 140, .5); will-change: transform; transition: border-color .35s, box-shadow .35s; }
.shelf .plan-card.picked { border-color: #6366f1; box-shadow: 0 40px 80px -34px rgba(99, 102, 241, .75); }
.shelf .plan-card:focus-visible { outline: 2px solid #6366f1; outline-offset: 3px; }
.plan-card > * { flex: none; }
.plan-card .for { margin: 0 0 14px; color: var(--text-2); font-size: 15px; line-height: 1.3; }
.plan-card .more { margin-top: auto; padding-top: 10px; color: var(--accent); font-size: 14.5px; font-weight: 600; }
.plan-card .more::after { content: ' ›'; }
.pricing .price { min-height: 70px; margin: 8px 0 8px; }
.pricing .plan-card ul { font-size: 14.5px; gap: 7px; }
@media (max-height: 720px) {
  .p-note { display: none; }
  .shelf .plan-card { padding: 18px 18px; }
  .pricing .plan-card ul { font-size: 13.5px; gap: 5px; }
  .pricing .price { min-height: 60px; margin: 2px 0 4px; }
  .pricing .price b { font-size: 34px; }
  .plan-card .for { margin-bottom: 8px; font-size: 14px; }
}

@media (max-width: 1100px) {
  .plan-card .for { display: none; }
  .shelf .plan-card { padding: 18px 16px; }
  .pricing .plan-card ul { font-size: 13.5px; gap: 5px; }
}

/* Главное отличие: 30 повторов */
.vs { gap: 12px; padding: 18px; font-size: 14px; }
.vs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; flex: none; }
.vs-count { color: var(--grey); font-variant-numeric: tabular-nums; }
.vs-lane { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .4s, box-shadow .4s; }
.vs-lane.lit { border-color: var(--ok); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ok) 80%, transparent); }
.vs-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.vs-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.vs-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; align-self: center; }
.run { display: block; aspect-ratio: 1; border-radius: 6px; background: var(--soft); transition: background .22s, scale .22s var(--ease); }
.run.lit { background: #6366f1; }
.run.free.lit { background: #22c55e; }
.vs-res { display: grid; justify-items: center; text-align: center; line-height: 1.15; }
.big { font: 700 44px/1 -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: var(--accent); font-variant-numeric: tabular-nums; }
.good .big { color: var(--ok); }
.vs-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-2); font-size: 13px; flex: none; }
.vs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vs-legend .run { width: 12px; border-radius: 4px; }

/* Подробности тарифа */
.plan-modal { position: fixed; inset: 0; z-index: 45; }
.plan-modal[hidden] { display: none; }
.pm-back { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 42%, transparent); backdrop-filter: blur(20px) saturate(140%); opacity: 0; transition: opacity .42s; }
.plan-modal.show .pm-back { opacity: 1; }
.pm-card { position: fixed; z-index: 2; margin: 0; display: flex; flex-direction: column; padding: 34px 32px; box-shadow: 0 50px 110px -40px rgba(70, 70, 170, .7); transition: left .52s var(--ease), top .52s var(--ease), width .52s var(--ease), height .52s var(--ease); overflow: hidden; }
.pm-card h2 { font-size: 30px; }
.pm-card .price { min-height: 0; margin: 16px 0 18px; }
.pm-card .price b { font-size: 58px; }
.pm-card .price small { font-size: 15px; }
.pm-card .for { margin: 0 0 20px; font-size: 18px; color: var(--text-2); }
.pm-card ul { font-size: 16.5px; gap: 12px; }
.pm-cta { align-self: flex-start; margin-top: auto; }
.pm-text { position: fixed; z-index: 2; padding-top: 104px; opacity: 0; transition: opacity .4s .12s, translate .55s .12s var(--ease); }
.plan-modal[data-side="left"] .pm-text { translate: -28px 0; }
.plan-modal[data-side="right"] .pm-text { translate: 28px 0; }
.plan-modal.show .pm-text { opacity: 1; translate: 0 0; }
.pm-text h3 { margin: 0 0 10px; font: 700 clamp(32px, 3vw, 44px)/1.14 -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; }
.pm-text p { margin: 0 0 18px; color: var(--text-2); font-size: 20px; line-height: 1.36; }
.pm-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 18px; }
.pm-text li { display: flex; gap: 11px; }
.pm-text li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: .62em; border-radius: 50%; background: var(--accent); }
.pm-text small { display: block; margin-top: 18px; font-size: 14.5px; line-height: 1.4; }
.pm-close { position: fixed; top: 20px; right: 24px; z-index: 3; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-open .buddy { z-index: 60; }

/* Маскот в центре, вокруг то, что он умеет */
.more-block { position: relative; height: calc(100vh + 240px); }
.hub-pin { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: none; text-align: center; padding-top: 64px; }
.hub-pin .sub { margin: 8px auto 0; }
.hub { position: relative; width: min(980px, 100% - 140px); height: clamp(320px, calc(100vh - 230px), 560px); margin: 14px 0 0; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hub-lines line { stroke: var(--accent); stroke-width: 1; opacity: 0; stroke-linecap: round; transition: opacity .6s, stroke-width .3s; }
.hub.in .hub-lines line { opacity: .2; }
.hub.in .hub-lines line.on { opacity: .75; stroke-width: 1.6; }
.hub-lines circle { fill: var(--accent); }
.tile { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: 7px; width: 104px; color: var(--text-2); font-size: 14px; opacity: 0; scale: .7; transition: opacity .6s var(--ease), scale .6s var(--ease), color .3s; will-change: transform; }
.tile b { font-weight: 500; }
.tile small { display: none; }
.hub.in .tile { opacity: 1; scale: 1; }
.hub.in .tile.on { scale: 1.12; color: var(--text); }
.tile:nth-of-type(2) { transition-delay: .05s, .05s, 0s; } .tile:nth-of-type(3) { transition-delay: .1s, .1s, 0s; } .tile:nth-of-type(4) { transition-delay: .15s, .15s, 0s; } .tile:nth-of-type(5) { transition-delay: .2s, .2s, 0s; } .tile:nth-of-type(6) { transition-delay: .25s, .25s, 0s; } .tile:nth-of-type(7) { transition-delay: .3s, .3s, 0s; } .tile:nth-of-type(8) { transition-delay: .35s, .35s, 0s; } .tile:nth-of-type(9) { transition-delay: .4s, .4s, 0s; } .tile:nth-of-type(10) { transition-delay: .45s, .45s, 0s; }
.hub.in .tile.on, .hub.in .tile:hover { transition-delay: 0s; }
.tile-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 21px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); color: var(--accent); box-shadow: 0 16px 34px -20px rgba(70, 70, 160, .55); transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.tile.on .tile-ico { background: #6366f1; border-color: #6366f1; color: #fff; box-shadow: 0 20px 40px -16px rgba(99, 102, 241, .85); }
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile-ico { outline: 2px solid #6366f1; outline-offset: 3px; }
.hub:not(.orbit) { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 14px; height: auto; margin: 30px 0; }
.hub:not(.orbit) .hub-lines { display: none; }
.hub:not(.orbit) .tile { position: static; translate: none; opacity: 1; scale: 1; width: auto; }
.hub:not(.orbit) .tile small { display: block; font-size: 13px; line-height: 1.3; }

/* Стрелки по разделам и подсказка */
.stages { position: fixed; right: 6px; top: 50%; translate: 0 -50%; z-index: 35; display: grid; gap: 2px; padding: 3px; }
.stages button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.stages button:hover { background: var(--accent-soft); color: var(--accent); }
.stages button:disabled { opacity: .3; cursor: default; background: none; }
.stages .up svg { rotate: 180deg; }
.st-hint { position: absolute; right: calc(100% + 8px); bottom: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; opacity: 0; translate: 6px 0; transition: opacity .4s, translate .4s var(--ease); pointer-events: none; }
.stages.hinting .st-hint { opacity: 1; translate: 0 0; }
.stages.hinting .dn svg { animation: nudge 1.5s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
body:not(.has-buddy) .stages { display: none; }
@media (max-width: 1240px) { .stages { right: 2px; } .stages button { width: 28px; height: 28px; } }

.faq { max-width: 760px; margin: 0 auto; padding: 40px 20px 120px; }
.faq h2 { margin-bottom: 26px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 20px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--text-2); margin: 10px 0 0; }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 22px 16px 34px; font-size: 13px; color: var(--grey); border-top: 1px solid var(--line); }
footer a { color: var(--grey); }
.calm-btn { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.calm-btn:hover { color: var(--text); }

/* Маскот: кружок как скафандр, робот парит внутри и работает руками. Позу каждый кадр задаёт site.js */
.buddy { position: fixed; left: 0; top: 0; z-index: 30; width: 80px; height: 80px; color: #6366f1; --suit: color-mix(in srgb, #6366f1 14%, var(--bg)); will-change: transform; opacity: 0; transition: opacity .5s; cursor: pointer; }
.has-buddy .buddy { opacity: 1; }
.b-body { position: absolute; inset: 0; will-change: transform; }
.b-tail { position: absolute; left: 4px; top: 50%; width: 72px; height: 200px; margin-top: -200px; border-radius: 50% 50% 50% 50% / 100% 100% 0 0; background: linear-gradient(to top, rgba(99, 102, 241, .42), rgba(99, 102, 241, 0) 94%); transform-origin: 50% 100%; opacity: 0; filter: blur(1.5px); pointer-events: none; }
.static .b-tail { display: none; }
.b-suit { position: absolute; inset: 4px; border-radius: calc(50% + var(--ex, 0) * 1%) calc(50% - var(--ex, 0) * 1%) calc(50% - var(--ex, 0) * 1%) calc(50% + var(--ex, 0) * 1%) / calc(50% + var(--ey, 0) * 1%) calc(50% + var(--ey, 0) * 1%) calc(50% - var(--ey, 0) * 1%) calc(50% - var(--ey, 0) * 1%); background: var(--suit); box-shadow: 0 0 0 1px color-mix(in srgb, #6366f1 18%, transparent), 0 14px 30px -10px rgba(99, 102, 241, .55), inset 0 8px 14px -8px rgba(255, 255, 255, .7); }
.b-suit::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(99, 102, 241, .42), transparent 70%); opacity: calc(.4 + var(--g, 0) * .6); transform: scale(calc(.94 + var(--g, 0) * .34)); }
.b-bot { display: block; width: 100%; height: 100%; }
.b-torso { fill: var(--suit); }
.b-say { position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 6px; padding: 7px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .35); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .3s, translate .3s var(--ease); pointer-events: none; }
.b-say.show { opacity: 1; translate: -50% 0; }
.b-say[data-side="left"] { left: auto; right: 2px; translate: 0 6px; }
.b-say[data-side="left"].show { translate: 0 0; }
.b-say[data-side="right"] { left: 2px; translate: 0 6px; }
.b-say[data-side="right"].show { translate: 0 0; }
.b-say[data-side="next-r"] { left: calc(100% + 4px); bottom: 24px; translate: -6px 0; }
.b-say[data-side="next-r"].show { translate: 0 0; }
.b-say[data-side="next-l"] { left: auto; right: calc(100% + 4px); bottom: 24px; translate: 6px 0; }
.b-say[data-side="next-l"].show { translate: 0 0; }

/* Копии маскота у блоков на телефоне: живут на обычной анимации */
.buddy.static { position: relative; opacity: 1; margin: 16px auto; will-change: auto; }
.static .b-body { animation: b-float 4.2s ease-in-out infinite; }
@keyframes b-float { 50% { translate: 0 -6px; } }
.static .b-lean { animation: b-hover 3.4s ease-in-out infinite; }
@keyframes b-hover { 0%, 100% { transform: translateY(1.1px); } 50% { transform: translateY(-1.1px); } }
.static .b-arm.l { transform-origin: 4px 14px; animation: b-sway-l 3.4s ease-in-out infinite; }
.static .b-arm.r { transform-origin: 20px 14px; animation: b-sway-r 3.4s ease-in-out infinite; }
@keyframes b-sway-l { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg) translateX(-1.4px); } }
@keyframes b-sway-r { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-10deg) translateX(1.4px); } }

/* Карточка тарифа */
.period { display: inline-flex; gap: 4px; padding: 4px; border-radius: 980px; background: var(--soft); margin: 4px 0 40px; }
.period button { border: 0; background: none; color: var(--grey); font: inherit; font-size: 14px; padding: 7px 18px; border-radius: 980px; cursor: pointer; }
.period button.on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; }
.plan-card.best { border-color: #6366f1; }
.plan-card h2 { font-size: 21px; letter-spacing: -.01em; }
.price { margin: 12px 0 14px; min-height: 76px; }
.price b { font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.price small { display: block; font-size: 13px; }
.plan-card ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 15px; display: grid; gap: 9px; }

/* Анимация выключена: обычная страница, блоки идут друг за другом */
.plain *, .plain *::before, .plain *::after { animation: none !important; transition: none !important; }
.plain #dust, .plain .gap { display: none; }
.plain .chapter { height: auto; padding: 70px 0; }
.plain .pin { position: static; height: auto; padding-top: 0; }
.plain .spot { height: auto; }
.plain .shelf { height: auto; opacity: 1; translate: 0 0; margin: 40px 0 0; }
.plain .shelf .plans { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plain .shelf .plan-card { position: static; width: auto; height: auto; margin: 0; }
.plain .more-block { height: auto; }

@media (max-width: 900px) {
  #dust { display: none; }
  .gap { display: none; }
  .chapter, .pricing, .more-block { height: auto; padding: 44px 0; }
  .pin, .flip .pin, .pricing .pin, .hub-pin { position: static; height: auto; display: flex; flex-direction: column; padding: 0 20px; }
  .words { order: 1; }
  .spot { order: 2; height: auto; }
  .art { order: 3; margin-top: 18px; }
  .corr { display: none; }
  .words h2 { max-width: none; }
  .mock { height: 570px; }
  .w-body.cases { height: 460px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .shelf { width: 100%; height: auto; opacity: 1; translate: 0 0; margin: 24px 0 0; }
  .shelf .plans { position: static; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shelf .plan-card { position: static; width: auto; height: auto; margin: 0; }
  .hub-pin { align-items: stretch; }
  .hub { width: 100%; }
  .pm-text { padding-top: 0; max-height: calc(100vh - 90px); overflow: auto; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .two .w-page { display: none; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case .w-page { display: none; }
  .case .pn { border-left: 0; }
  .p-head { width: 100%; flex-direction: column; align-items: flex-start; }
  .p-tools { flex-wrap: wrap; }
  .pricing .price { min-height: 0; }
  .hero { padding-bottom: 40px; }
}
@media (max-width: 560px) {
  .nav nav { display: none; }
}
