/* TG-WOW (21.10.2026): Telegram Mini App BizFlow. Токени — з мови v2 сайту (site-v2.css / site-wow.css), шрифти системні. */
:root {
  --accent: #7C5CFC; --accent-2: #5B8DEF; --accent-3: #38BDF8;
  --accent-ink: #6A48EE; --accent-soft: rgba(124, 92, 252, .12);
  --grad: linear-gradient(135deg, #7C5CFC, #5B8DEF);
  --grad-btn: linear-gradient(135deg, #6A48EE, #4C5FD8);
  --grad-text: linear-gradient(135deg, #6A48EE, #3F6FE0);
  --bg: #F4F5F7; --card: #FFFFFF; --card-2: #F7F8FA; --fill: #EEF0F3; --fill-2: #E4E7EC;
  --text: #1A1A2E; --text-2: #3C4150; --muted: #5E6472; --faint: #8A90A0;
  --border: #E6E8EE; --success: #0E9F6E; --success-soft: rgba(16, 185, 129, .14); --danger: #DC2626; --warning: #B45309; --warning-soft: rgba(245, 158, 11, .16);
  --glass: rgba(244, 245, 247, .74); --glass-line: rgba(26, 26, 46, .08);
  --shadow-sm: 0 1px 2px rgba(20, 20, 50, .06);
  --shadow: 0 1px 2px rgba(20, 20, 50, .05), 0 10px 30px rgba(20, 20, 50, .07);
  --shadow-lg: 0 20px 60px rgba(40, 30, 120, .18);
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --ease: cubic-bezier(.32, .72, 0, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --safe-top: max(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top, 0px));
  --safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --tabbar-h: 64px;
  --vh: var(--tg-viewport-stable-height, 100vh);
  color-scheme: light;
}
[data-theme="dark"] {
  --accent-ink: #B7A3FF; --accent-soft: rgba(124, 92, 252, .22);
  --grad-text: linear-gradient(135deg, #C4B5FD, #93C5FD);
  --bg: #0B0A18; --card: #17162B; --card-2: #1E1D36; --fill: rgba(255, 255, 255, .07); --fill-2: rgba(255, 255, 255, .12);
  --text: #F5F5FA; --text-2: #D6D7E2; --muted: #A3A7B8; --faint: #7D8297;
  --border: rgba(255, 255, 255, .08); --success: #34D399; --success-soft: rgba(52, 211, 153, .16); --danger: #F87171; --warning: #FBBF24; --warning-soft: rgba(251, 191, 36, .14);
  --glass: rgba(16, 15, 34, .72); --glass-line: rgba(255, 255, 255, .08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body { font-size: 16px; line-height: 1.45; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent-ink); text-decoration: none; }
:focus-visible { outline: 3px solid rgba(124, 92, 252, .45); outline-offset: 2px; border-radius: 10px; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Завантаження ── */
.boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 22px; justify-items: center; background: var(--bg); z-index: 50; transition: opacity .35s ease; }
.boot__mark { width: 64px; height: 64px; animation: bootPulse 1.4s var(--ease) infinite; }
.boot__bar { width: 96px; height: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.boot__bar i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--grad); animation: bootBar 1.1s var(--ease) infinite; }
.boot.is-out { opacity: 0; pointer-events: none; }
@keyframes bootPulse { 50% { transform: scale(.92); opacity: .8; } }
@keyframes bootBar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ── Каркас ── */
.app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.screen { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--bg);
  padding: 0 16px calc(var(--tabbar-h) + var(--safe-bottom) + 28px); transition: transform .52s var(--ease), filter .52s var(--ease), opacity .3s ease; will-change: transform; }
.screen[hidden] { display: none; }
.screen.is-push { transform: translateX(104%); box-shadow: -10px 0 40px rgba(0, 0, 0, .12); }
.screen.is-push.is-in { transform: none; }
.screen.is-under { transform: translateX(-26%); filter: brightness(.9); pointer-events: none; }
.screen.is-fade { opacity: 0; transform: translateY(10px) scale(.995); }
.app.no-tabbar .screen { padding-bottom: calc(var(--safe-bottom) + 24px); }
.app.chat-mode .screen.is-chat { padding-bottom: 0; }

/* Навбар з великим заголовком (iOS) */
.nav { position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: calc(var(--safe-top) + 6px) 12px 6px; min-height: calc(var(--safe-top) + 46px); display: flex; align-items: center; gap: 8px;
  background: transparent; transition: background .25s ease, box-shadow .25s ease; }
.nav__title { flex: 1; text-align: center; font-weight: 650; font-size: 16px; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .3s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 44px; }
.nav__back { position: absolute; left: 8px; bottom: 6px; height: 34px; display: inline-flex; align-items: center; gap: 2px; padding: 0 10px 0 4px; color: var(--accent-ink); font-size: 16px; border-radius: 10px; }
.nav__back svg { width: 24px; height: 24px; }
.nav__action { position: absolute; right: 8px; bottom: 6px; height: 34px; padding: 0 10px; color: var(--accent-ink); font-weight: 600; border-radius: 10px; }
html.tg .nav__back { display: none; }
.screen.is-scrolled .nav { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 .5px 0 var(--glass-line); }
.screen.is-scrolled .nav__title { opacity: 1; transform: none; }
.ltitle { margin: 4px 0 4px; font-size: 32px; line-height: 1.12; font-weight: 750; letter-spacing: -.02em; }
.lsub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.gtext { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Таббар (скло) ── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + var(--safe-bottom)); padding: 6px 6px var(--safe-bottom);
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 -.5px 0 var(--glass-line); transition: transform .45s var(--ease); }
.app.no-tabbar .tabbar { transform: translateY(110%); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .01em; min-width: 0; border-radius: 14px; transition: color .2s ease; }
.tab svg { width: 25px; height: 25px; transition: transform .45s var(--spring); }
.tab.is-active { color: var(--accent-ink); }
.tab.is-active svg { transform: translateY(-1px) scale(1.06); }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab__dot { position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0); transition: opacity .2s, transform .4s var(--spring); }
.tab.is-active .tab__dot { opacity: 1; transform: scale(1); top: 2px; }

/* ── Базові блоки ── */
.sec { margin: 26px 0 0; }
.sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.sec__h h2 { margin: 0; font-size: 21px; font-weight: 720; letter-spacing: -.01em; }
.sec__h a, .sec__h button { color: var(--accent-ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { margin: 10px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.grow { flex: 1; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 650; font-size: 16px; line-height: 1.15; text-align: center;
  transition: transform .25s var(--spring), box-shadow .25s ease, background .2s ease; user-select: none; -webkit-user-select: none; }
.btn:active { transform: scale(.97); }
.btn--primary { color: #fff; background: var(--grad-btn); box-shadow: 0 8px 22px rgba(106, 72, 238, .32); }
.btn--glass { color: var(--text); background: var(--card); box-shadow: var(--shadow-sm); }
.btn--ghost { color: var(--accent-ink); background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); white-space: nowrap; transition: transform .25s var(--spring), background .2s, color .2s; }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--text); color: var(--bg); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.chips .chip { scroll-snap-align: start; }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg button { position: relative; z-index: 1; height: 34px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: var(--text-2); transition: color .2s; white-space: nowrap; }
.seg button.is-on { color: var(--text); }
.seg__thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); transition: transform .45s var(--spring), width .3s var(--ease); }
[data-theme="dark"] .seg__thumb { background: #34325A; }

.list { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.cell { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; text-align: left; color: var(--text); position: relative; transition: background .15s; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--border); }
.cell:active { background: var(--fill); }
.cell__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; background: var(--grad); }
.cell__ic svg { width: 20px; height: 20px; }
.cell__t { flex: 1; min-width: 0; }
.cell__t b { display: block; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.cell__t small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 1px; overflow-wrap: anywhere; }
.cell__chev { color: var(--faint); width: 18px; height: 18px; }

.skel { border-radius: 14px; background: linear-gradient(90deg, var(--fill) 0, var(--fill-2) 40%, var(--fill) 80%); background-size: 300% 100%; animation: skel 1.3s ease infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* Поява при прокрутці */
.rv { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .6s ease, transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ── Головна: hero ── */
.hero { position: relative; margin: 6px -4px 0; border-radius: var(--r-xl); overflow: hidden; padding: 26px 20px 22px; color: #fff; background: #241B5E; box-shadow: var(--shadow-lg); isolation: isolate; }
.hero__aur { position: absolute; inset: -30%; z-index: -1; will-change: transform; }
.hero__aur i { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .9; }
.hero__aur i:nth-child(1) { width: 70%; height: 70%; left: 0; top: 10%; background: #7C5CFC; animation: aur1 14s ease-in-out infinite alternate; }
.hero__aur i:nth-child(2) { width: 60%; height: 60%; right: 0; top: 0; background: #3B82F6; animation: aur2 17s ease-in-out infinite alternate; }
.hero__aur i:nth-child(3) { width: 55%; height: 55%; left: 30%; bottom: 0; background: #38BDF8; opacity: .55; animation: aur3 19s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes aur2 { to { transform: translate(-16%, 18%) scale(.9); } }
@keyframes aur3 { to { transform: translate(-12%, -16%) scale(1.2); } }
.hero__grain { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0, rgba(255, 255, 255, .18), transparent 60%); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }
.hero__badge svg { width: 20px; height: 20px; }
.hero h1 { margin: 16px 0 8px; font-size: 31px; line-height: 1.1; letter-spacing: -.025em; font-weight: 780; }
.hero p { margin: 0 0 18px; font-size: 15.5px; color: rgba(255, 255, 255, .86); }
.hero__acts { display: grid; gap: 10px; }
.hero__acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero .btn--primary { background: #fff; color: #3B2BB0; box-shadow: 0 10px 26px rgba(10, 6, 40, .35); }
.hero .btn--glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-height: 46px; font-size: 15px; padding: 0 12px; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
.hero__badge { min-width: 0; max-width: 54%; }
.hero__badge > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hero__float { position: relative; flex: 0 1 auto; display: flex; align-items: center; gap: 8px; max-width: 46%; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: #1A1A2E; font-size: 12px; line-height: 1.25; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: floaty 5s ease-in-out infinite; }
.hero__float b { display: block; font-size: 12.5px; }
.hero__float .dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex: none; box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
@keyframes floaty { 50% { transform: translateY(-6px); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { background: var(--card); border-radius: var(--r); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); min-width: 0; }
.stat b { display: block; font-size: 24px; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 2px; }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); min-width: 0; text-align: left; transition: transform .3s var(--spring); }
.tile:active { transform: scale(.97); }
.tile--wide { grid-column: 1 / -1; }
.tile__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; background: var(--grad); }
.tile__ic svg { width: 22px; height: 22px; }
.tile b { display: block; font-size: 15px; font-weight: 680; line-height: 1.25; }
.tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tile__tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }

/* ── Ніші: карусель ── */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.ncard { flex: none; width: min(78%, 300px); scroll-snap-align: center; border-radius: var(--r-xl); padding: 18px; color: #fff; min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 12px 30px rgba(30, 20, 90, .22); transition: transform .35s var(--spring); }
.ncard:active { transform: scale(.97); }
.ncard::after { content: ""; position: absolute; inset: auto -20% -50% 30%; height: 90%; border-radius: 50%; background: rgba(255, 255, 255, .16); z-index: -1; }
.ncard__ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.ncard__ic svg { width: 28px; height: 28px; }
.ncard b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.01em; margin-top: 14px; }
.ncard small { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .88); margin-top: 4px; line-height: 1.35; }
.ncard__go { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 650; font-size: 14px; }
.ngrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nmini { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm); text-align: left; min-width: 0; transition: transform .25s var(--spring); }
.nmini:active { transform: scale(.97); }
.nmini__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.nmini__ic svg { width: 20px; height: 20px; }
.nmini b { font-size: 14px; font-weight: 650; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }

/* Картка ніші */
.nhero { margin: 4px -4px 0; border-radius: var(--r-xl); padding: 22px 18px; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.nhero::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -20%; top: -30%; border-radius: 50%; background: rgba(255, 255, 255, .14); z-index: -1; }
.nhero .ncard__ic { width: 56px; height: 56px; }
.nhero h1 { margin: 14px 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.nhero p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 15px; }
.pains { display: grid; gap: 8px; }
.pain { display: flex; gap: 10px; align-items: flex-start; background: var(--card); padding: 12px 14px; border-radius: var(--r); box-shadow: var(--shadow-sm); font-size: 14.5px; color: var(--text-2); }
.pain svg { color: var(--danger); width: 20px; height: 20px; margin-top: 1px; }
.sol { display: grid; gap: 10px; }
.solc { display: flex; gap: 12px; align-items: flex-start; background: var(--card); padding: 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.solc__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.solc__ic svg { width: 22px; height: 22px; }
.solc b { display: block; font-size: 15.5px; font-weight: 680; }
.solc p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.flist { display: grid; gap: 2px; padding: 6px 14px; }
.flist li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; color: var(--text-2); }
.flist li svg { color: var(--success); width: 19px; height: 19px; margin-top: 1px; }
.roles { display: grid; gap: 10px; }

/* ── Демо: телефон ── */
.demo-wrap { display: grid; justify-items: center; margin-top: 6px; perspective: 1200px; }
.phone { position: relative; width: min(100%, 330px); aspect-ratio: 9 / 18.4; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2B2A3A, #0E0D18); box-shadow: 0 30px 70px rgba(30, 20, 90, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  transform: rotateX(4deg); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.pscr { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F4F5F7; color: #1A1A2E; display: flex; flex-direction: column; font-size: 12.5px; }
[data-theme="dark"] .pscr { background: #0E0E1A; color: #F5F5FA; }
.pscr__top { padding: 44px 14px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pscr__top b { font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pscr__av { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); flex: none; }
.pscr__body { flex: 1; overflow: hidden; padding: 4px 12px 8px; position: relative; }
.pview { position: absolute; inset: 4px 12px 8px; transition: opacity .35s ease, transform .45s var(--ease); }
.pview[hidden] { display: block; opacity: 0; transform: translateX(14px); pointer-events: none; }
.ptabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: .5px solid rgba(0, 0, 0, .08); padding: 6px 4px 14px; background: rgba(255, 255, 255, .85); }
[data-theme="dark"] .ptabs { background: rgba(23, 22, 43, .9); border-top-color: rgba(255, 255, 255, .08); }
.ptab { display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 650; color: #8A90A0; padding: 4px 0; border-radius: 10px; }
.ptab svg { width: 20px; height: 20px; }
.ptab.is-on { color: #6A48EE; }
[data-theme="dark"] .ptab.is-on { color: #B7A3FF; }
.pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pk div { background: #fff; border-radius: 12px; padding: 9px 6px; text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); min-width: 0; }
[data-theme="dark"] .pk div, [data-theme="dark"] .prow, [data-theme="dark"] .pbox { background: #17162B; }
.pk b { display: block; font-size: 15px; font-weight: 780; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk .is-acc b { color: #6A48EE; }
[data-theme="dark"] .pk .is-acc b { color: #B7A3FF; }
.pk span { font-size: 10px; color: #6B7280; }
.ph { margin: 12px 2px 6px; font-weight: 750; font-size: 12.5px; }
.prow { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 9px; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.prow__t { font-weight: 750; font-size: 12px; min-width: 34px; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prow__m { flex: 1; min-width: 0; }
.prow__m b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow__m small { display: block; font-size: 10.5px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbadge { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; flex: none; background: rgba(124, 92, 252, .14); color: #5B3FD6; }
.pbadge.is-done { background: rgba(16, 185, 129, .16); color: #047857; }
.pbadge.is-now { background: rgba(245, 158, 11, .18); color: #92400E; }
[data-theme="dark"] .pbadge { color: #C4B5FD; } [data-theme="dark"] .pbadge.is-done { color: #6EE7B7; } [data-theme="dark"] .pbadge.is-now { color: #FCD34D; }
.pav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex: none; }
.pbox { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 8px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #7C5CFC, #5B8DEF); transform-origin: bottom; transform: scaleY(.04); transition: transform .9s var(--spring); }
.bars.is-on i { transform: scaleY(1); }
.bars-l { display: flex; gap: 6px; margin-top: 4px; } .bars-l span { flex: 1; text-align: center; font-size: 9.5px; color: #8A90A0; }
.ptoast { position: absolute; left: 10px; right: 10px; top: 40px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: #1A1A2E; box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  transform: translateY(-140%); transition: transform .6s var(--spring); }
.ptoast.is-on { transform: none; }
.ptoast__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #229ED9; color: #fff; flex: none; }
.ptoast__ic svg { width: 18px; height: 18px; }
.ptoast b { display: block; font-size: 12px; } .ptoast small { display: block; font-size: 11px; color: #5E6472; }
.demo-note { margin-top: 12px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ── Можливості ── */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Тарифи ── */
.plans { display: grid; gap: 12px; }
.plan { position: relative; background: var(--card); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow); overflow: hidden; }
.plan.is-hot { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan__tag { position: absolute; top: 16px; right: 16px; font-size: 11.5px; font-weight: 750; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--grad-btn); }
.plan h3 { margin: 0; font-size: 18px; font-weight: 720; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 2px; }
.plan__price b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--muted); font-size: 14px; }
.plan__tot { color: var(--muted); font-size: 13px; min-height: 18px; }
.plan ul { margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.plan li { list-style: none; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.plan li svg { width: 18px; height: 18px; color: var(--success); margin-top: 1px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.cmp th, .cmp td { padding: 10px 4px; border-bottom: .5px solid var(--border); text-align: center; vertical-align: middle; }
.cmp th:first-child, .cmp td:first-child { text-align: left; width: 46%; padding-left: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.cmp thead th { font-size: 12.5px; color: var(--muted); font-weight: 650; position: sticky; top: 0; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .y { color: var(--success); } .cmp .n { color: var(--faint); }
.cmp svg { width: 18px; height: 18px; }
.calc { display: grid; gap: 16px; }
.calc__row { display: grid; gap: 8px; }
.calc__lab { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; color: var(--text-2); gap: 10px; }
.calc__lab output { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 750; }
.calc__sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: .5px solid var(--border); gap: 12px; }
.calc__sum b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; --pct: 50%; margin: 0; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--pct), var(--fill-2) var(--pct)); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--fill-2); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .06); transition: transform .2s var(--spring); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); }
.range-ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); padding: 0 4px; }
.toggle { position: relative; width: 52px; height: 32px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: var(--fill-2); transition: background .25s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--spring); }
.toggle input:checked + i { background: #22C55E; }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 3px solid rgba(124, 92, 252, .45); outline-offset: 2px; }
.price-list .cell__t b { font-size: 15px; }
.price-tag { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }

/* ── ШІ-чат ── */
.chat { display: flex; flex-direction: column; min-height: calc(var(--vh) - var(--safe-top) - 60px); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 6px 0 12px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 20px; font-size: 15.5px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop .45s var(--spring) both; }
.msg--bot { align-self: flex-start; background: var(--card); color: var(--text); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.msg--me { align-self: flex-end; color: #fff; background: linear-gradient(180deg, #7C5CFC, #5B6CEF); border-bottom-right-radius: 6px; }
.msg a { color: inherit; text-decoration: underline; }
.msg--typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: typing 1.2s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.msg-time { align-self: center; font-size: 11.5px; color: var(--faint); margin: 6px 0; }
.qr { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.qr .chip { height: 34px; font-size: 13.5px; background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.composer { position: sticky; bottom: 0; margin: 0 -16px; padding: 8px 12px calc(var(--safe-bottom) + 10px); display: flex; gap: 8px; align-items: flex-end; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 -.5px 0 var(--glass-line); }
.composer textarea { flex: 1; min-width: 0; resize: none; min-height: 40px; max-height: 120px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); line-height: 1.35; font-size: 16px; }
.composer textarea:focus { outline: none; border-color: var(--accent); }
.send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-btn); flex: none; transition: transform .25s var(--spring), opacity .2s; }
.send:active { transform: scale(.9); } .send[disabled] { opacity: .4; }
.send svg { width: 20px; height: 20px; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; }
.ai-ava { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; position: relative; flex: none; }
.ai-ava svg { width: 26px; height: 26px; }
.ai-ava::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 2px var(--bg); }
.ai-ava.is-think { animation: think 1.2s ease-in-out infinite; }
/* SITE-BIZIK-4 D ('bizik_app', html[data-bizik="1"]): аватар ШІ-консультанта — бюст Бізика (webp), м'яка підкладка замість градієнта; вуха не обрізаються (без overflow:hidden) */
html[data-bizik="1"] .ai-ava { border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
html[data-bizik="1"] .ai-ava .bz-ava { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes think { 50% { transform: scale(.94); } }

/* ── Форма ── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--muted); padding-left: 4px; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.is-bad { border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.consent i { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--fill-2); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .3s var(--spring); margin-top: 1px; }
.consent input:checked + i { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.consent i svg { width: 16px; height: 16px; color: #fff; opacity: 0; transition: opacity .2s; stroke-width: 2.6; }
.consent input:checked + i svg { opacity: 1; }
.consent input:focus-visible + i { outline: 3px solid rgba(124, 92, 252, .45); outline-offset: 2px; }
.ferr { color: var(--danger); font-size: 13.5px; min-height: 18px; padding-left: 4px; }
.tg-fill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 600; }
.tg-fill svg { width: 20px; height: 20px; }

/* Успіх */
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 30px 8px; }
.done__c { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.done__c svg { width: 52px; height: 52px; stroke-width: 2.4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { margin: 6px 0 0; font-size: 24px; }
.done p { margin: 0; color: var(--muted); max-width: 320px; }
.confetti { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

/* ── FAQ ── */
.acc { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc details { border-top: .5px solid var(--border); }
.acc details:first-child { border-top: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; padding: 14px; font-weight: 620; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary span { flex: 1; min-width: 0; }
.acc summary svg { width: 20px; height: 20px; color: var(--faint); transition: transform .35s var(--spring); margin-top: 1px; }
.acc details[open] summary svg { transform: rotate(180deg); color: var(--accent-ink); }
.acc .ans { padding: 0 14px 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }

/* Блог */
.post { display: block; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 16px; color: var(--text); }
.post + .post { margin-top: 10px; }
.post b { display: block; font-size: 16px; line-height: 1.3; }
.post p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.post small { display: block; margin-top: 8px; color: var(--faint); font-size: 12.5px; }

/* Поділитися */
.share-card { text-align: center; padding: 26px 18px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.share-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(124, 92, 252, .22), transparent); }
.share-card svg.mark { width: 72px; height: 72px; position: relative; }
.share-card h2 { margin: 12px 0 6px; font-size: 22px; position: relative; }
.share-card p { margin: 0 0 16px; color: var(--muted); position: relative; }
.linkbox { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--fill); font-size: 14px; font-weight: 600; margin-bottom: 12px; min-width: 0; position: relative; }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.btns { display: grid; gap: 10px; position: relative; }

/* Профіль у «Ще» */
.me { display: flex; align-items: center; gap: 14px; padding: 16px; }
.me__av { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 750; flex: none; }
.me b { display: block; font-size: 18px; }
.me small { color: var(--muted); }

/* ── Нижній аркуш ── */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(8, 6, 24, .42); opacity: 0; transition: opacity .3s ease; }
.sheet-bg.is-on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 86vh; overflow-y: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 8px 18px calc(var(--safe-bottom) + 22px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  transform: translateY(105%); transition: transform .5s var(--ease); touch-action: pan-y; }
.sheet.is-on { transform: none; }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto 12px; }
.sheet h3 { margin: 6px 0 8px; font-size: 21px; }
.sheet p { color: var(--text-2); margin: 0 0 12px; }
.sheet .tile__ic { width: 52px; height: 52px; border-radius: 16px; }
.sheet .tile__ic svg { width: 28px; height: 28px; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); }
.badge--ok { background: var(--success-soft); color: var(--success); }
.badge--warn { background: var(--warning-soft); color: var(--warning); }

/* ── Сторі-знайомство ── */
.stories { position: fixed; inset: 0; z-index: 70; color: #fff; background: #1D1650; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 12px) 20px calc(var(--safe-bottom) + 22px); transition: opacity .4s ease, transform .5s var(--ease); }
.stories.is-out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.stories .hero__aur { inset: -40%; }
.st-bars { display: flex; gap: 5px; }
.st-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.st-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.st-top { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.st-top svg { width: 34px; height: 34px; }
.st-skip { color: rgba(255, 255, 255, .9); font-weight: 650; padding: 8px 4px; }
.st-slide { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.st-slide h2 { margin: 0; font-size: 34px; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.st-slide p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .88); }
.st-emoji { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.st-emoji svg { width: 46px; height: 46px; }
.st-slide > * { animation: stIn .7s var(--ease) both; }
.st-slide > *:nth-child(2) { animation-delay: .08s; } .st-slide > *:nth-child(3) { animation-delay: .16s; }
@keyframes stIn { from { opacity: 0; transform: translateY(24px); } }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chips span { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13.5px; font-weight: 600; }
.stories .btn--primary { background: #fff; color: #3B2BB0; }
.st-tap { position: absolute; top: 90px; bottom: 120px; width: 35%; z-index: 1; }
.st-tap--l { left: 0; } .st-tap--r { right: 0; }

.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 12px); z-index: 80; transform: translate(-50%, -160%); padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); transition: transform .5s var(--spring); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }

.empty { text-align: center; color: var(--muted); padding: 24px 10px; font-size: 14.5px; }
.cta-band { margin-top: 26px; border-radius: var(--r-xl); padding: 22px 18px; background: var(--grad); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; }
.cta-band p { margin: 0 0 14px; color: rgba(255, 255, 255, .9); font-size: 14.5px; }
.cta-band .btn--primary { background: #fff; color: #3B2BB0; box-shadow: none; }
.foot { margin: 24px 0 0; text-align: center; color: var(--faint); font-size: 12px; }
.foot a { color: var(--muted); }

.wrap { max-width: 560px; margin: 0 auto; position: relative; }
.screen > .nav { margin: 0 -16px; }
@media (min-width: 600px) { .tabbar { padding-left: calc(50% - 280px); padding-right: calc(50% - 280px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
html.rm .rv { opacity: 1; transform: none; }
