/* NAVIGATOR UMP 3.0 — дизайн-система UMP (06 — ДИЗАЙН И ШРИФТЫ): тёмно-синий, светящийся портал, фиолетовый/голубой, золото PARTNERS, Manrope.
   Редакционная подача: крупная типографика, обложки 16:9, сдержанные акценты, мягкие переходы. T002, 19.10.2026. */
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Variable.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0B1020; --bg-2: #0F162B; --card: rgba(255,255,255,.045); --card-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.12);
  --text: #F4F6FF; --muted: #ADB9D2; --dim: #7480A0; --violet: #8B7CFF; --blue: #67C7FF; --gold: #E8C88E; --teal: #4FD1C5; --rose: #F28FB5; --amber: #F5B971;
  --grad: linear-gradient(135deg, #8B7CFF 0%, #67C7FF 100%); --grad-gold: linear-gradient(135deg, #F3DCB0 0%, #C99A5A 100%);
  --r: 20px; --r-sm: 14px; --pad: 18px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: hidden; background: var(--bg); }
html, body { margin: 0; color: var(--text); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'ss01' on; }
body { min-height: 100vh; overflow-x: hidden; background: var(--bg); }
body.noscroll { overflow: hidden; }
body::before { content: ''; position: fixed; inset: -25% -30% auto; height: 75vh; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 45% at 18% 8%, rgba(139,124,255,.20), transparent 70%), radial-gradient(45% 40% at 88% 0%, rgba(103,199,255,.13), transparent 70%); }
svg { stroke: currentColor; flex: 0 0 auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.app { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 var(--pad) calc(96px + var(--safe-b)); }
.tap { transition: transform .14s var(--ease), opacity .14s, background .2s, border-color .2s; }
.tap:active { transform: scale(.975); opacity: .9; }
.small { font-size: 13px; line-height: 1.45; } .muted { color: var(--muted); } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.ey { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ey.glow { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.gold-t { color: var(--gold) !important; }

/* верх */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 calc(-1 * var(--pad));
  padding: 12px var(--pad) 10px; background: linear-gradient(180deg, rgba(11,16,32,.94) 60%, rgba(11,16,32,0)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-2); }
.brand b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .14em; line-height: 1.1; }
.brand span { display: block; font-size: 10px; letter-spacing: .2em; color: var(--dim); font-weight: 700; }
.top-r { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.glass { background: rgba(11,16,32,.55); border-color: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.icon-btn.on { color: var(--rose); } .icon-btn.on svg { fill: var(--rose); }
.pill { height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.pill svg { width: 14px; height: 14px; }
.pill.gold { color: #1A1406; background: var(--grad-gold); border: 0; }
.offline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--amber); background: rgba(245,185,113,.08); border: 1px solid rgba(245,185,113,.2); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.offline svg { width: 16px; height: 16px; }
.demo-bar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #CFC8FF; background: rgba(139,124,255,.1); border: 1px solid rgba(139,124,255,.25); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.demo-bar svg { width: 16px; height: 16px; flex: 0 0 auto; }
a.btn { text-decoration: none; }
.gcta { margin-top: 24px; padding: 20px 18px; border-radius: 22px; background: radial-gradient(100% 90% at 100% 0%, rgba(232,200,142,.16), transparent 65%), var(--card); border: 1px solid rgba(232,200,142,.22); }
.gcta h3 { font-size: 19px; margin: 6px 0 8px; } .gcta p { color: var(--muted); font-size: 14px; }
.price.sm { font-size: 26px; margin: 12px 0; }

/* переход между экранами */
.view.enter { animation: rise .28s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* заголовки экранов */
.hello { padding: 10px 0 6px; }
.hello h1 { font-size: 32px; line-height: 1.08; font-weight: 800; margin: 6px 0 8px; }
.lead { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.searchbar { margin-top: 16px; width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--dim); font-size: 15px; }
.searchbar svg { width: 19px; height: 19px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.sh h2 { font-size: 19px; font-weight: 800; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.more svg { width: 15px; height: 15px; }

/* чипы */
.chips { display: flex; gap: 8px; }
.chips.scroll { overflow-x: auto; margin: 14px calc(-1 * var(--pad)) 0; padding: 2px var(--pad); scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; }
.chip { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.chip svg { width: 15px; height: 15px; }
.chip.on { color: #0B1020; background: #F4F6FF; border-color: #F4F6FF; }
.chip.flt.on { background: var(--grad); color: #fff; border: 0; }

/* обложки */
.cv { position: relative; overflow: hidden; background: #121a33; }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv.wide { aspect-ratio: 16 / 9; border-radius: var(--r); }
.cv.sq { width: 92px; height: 72px; border-radius: 14px; flex: 0 0 auto; }
.cv.gen { display: grid; place-items: center; background: radial-gradient(120% 120% at 85% 10%, rgba(var(--t), .55), transparent 60%), linear-gradient(160deg, #18213f, #0d1328); }
.cv.gen span { width: 44%; max-width: 64px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 30%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.cv.gen span svg { width: 55%; height: 55%; }
.cv.wide.gen span { max-width: 88px; }

/* большие карточки и подборки */
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 18px calc(-1 * var(--pad)) 0; padding: 2px var(--pad) 6px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.bc { flex: 0 0 86%; max-width: 420px; scroll-snap-align: start; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.bc .cv.wide { border-radius: 0; }
.bc-b { padding: 14px 16px 16px; }
.bc-b h3 { font-size: 18px; line-height: 1.25; font-weight: 800; margin: 6px 0 10px; }
.rail.cols { margin-top: 0; }
.cc { flex: 0 0 64%; max-width: 300px; scroll-snap-align: start; position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.cc .cv.wide { border-radius: 0; aspect-ratio: 4 / 3; }
.cc-b { position: absolute; inset: auto 0 0 0; padding: 40px 14px 13px; background: linear-gradient(180deg, transparent, rgba(8,12,26,.92) 55%); }
.cc-b h4 { font-size: 15.5px; line-height: 1.25; font-weight: 800; margin-top: 3px; }
.cc-b .ey { color: rgba(255,255,255,.7); }

/* строки списка */
.list { display: grid; gap: 10px; }
.rc { position: relative; width: 100%; display: flex; gap: 13px; align-items: flex-start; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.rc-b { flex: 1; min-width: 0; }
.rc-b .ey { font-size: 10.5px; letter-spacing: .1em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-b h4 { font-size: 15px; line-height: 1.3; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-b p { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc .sv { position: absolute; top: 10px; right: 10px; color: var(--rose); } .rc .sv svg { width: 15px; height: 15px; fill: var(--rose); }
.rc.li { align-items: center; }
.li-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(139,124,255,.28), rgba(103,199,255,.12)); border: 1px solid var(--line-2); flex: 0 0 auto; }
.li-ic svg { width: 20px; height: 20px; }
.rc .go { color: var(--dim); } .rc .go svg { width: 18px; height: 18px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cost { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted); }
.cost.free, .cost.open { color: #8EF0D6; background: rgba(79,209,197,.12); }
.cost.freemium { color: #B9C6FF; background: rgba(139,124,255,.14); }
.cost.paid { color: var(--amber); background: rgba(245,185,113,.12); }
.pls { display: inline-flex; gap: 3px; }
.pl { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--muted); }
.pl svg { width: 13px; height: 13px; }
.stars { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--gold); }
.stars svg { width: 12px; height: 12px; fill: var(--gold); stroke: none; }
.lock-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--gold); padding: 3px 7px; border-radius: 8px; background: rgba(232,200,142,.1); }
.lock-tag svg { width: 11px; height: 11px; }
.v-partners .lock-tag.open { display: none; }
.tile em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid2 .cc { flex: none; max-width: none; }
.tile { text-align: left; padding: 16px; border-radius: 20px; min-height: 140px; display: flex; flex-direction: column; background: radial-gradient(120% 100% at 100% 0%, rgba(var(--t), .35), transparent 60%), var(--card); border: 1px solid var(--line); }
.tile span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); margin-bottom: auto; }
.tile span svg { width: 20px; height: 20px; }
.tile h4 { font-size: 15px; line-height: 1.3; margin-top: 14px; }
.tile em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: 4px; }
.note-me { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px; border-radius: 16px; background: rgba(103,199,255,.06); border: 1px solid rgba(103,199,255,.14); color: var(--muted); font-size: 13px; }
.note-me svg { width: 18px; height: 18px; color: var(--blue); margin-top: 1px; }

/* карточка материала */
.dt { padding-top: 4px; }
.hero-cv { position: relative; margin: 0 0 18px; }
.hero-cv .cv.wide { border-radius: 24px; box-shadow: 0 20px 50px rgba(3,6,20,.55); }
.hero-act { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.ey.kind { color: var(--muted); }
h1.t { font-size: 26px; line-height: 1.16; font-weight: 800; margin: 8px 0 10px; }
.dt .lead { font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.fact { padding: 12px 13px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.fact.wide { grid-column: 1 / -1; }
.fact small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.fact b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.fact em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.can { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.can li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.can li svg { width: 18px; height: 18px; color: var(--teal); margin-top: 2px; padding: 3px; border-radius: 6px; background: rgba(79,209,197,.12); box-sizing: content-box; }
.txt { color: #DCE2F2; font-size: 15.5px; line-height: 1.6; }
.demos { display: grid; gap: 10px; }
.demos.multi { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.demos.multi::-webkit-scrollbar { display: none; }
.demo-img { margin: 0; scroll-snap-align: start; }
.demo-img img { width: 100%; max-height: 300px; object-fit: contain; background: #0E1428; border-radius: 16px; border: 1px solid var(--line-2); }
.demo-img figcaption { font-size: 12.5px; color: var(--dim); margin-top: 7px; }
.limits { display: flex; gap: 12px; margin: 22px 0 18px; padding: 14px; border-radius: 16px; background: rgba(245,185,113,.07); border: 1px solid rgba(245,185,113,.18); }
.limits > svg { width: 20px; height: 20px; color: var(--amber); margin-top: 1px; }
.limits b { font-size: 14px; } .limits p { color: #D9DFEE; font-size: 14px; margin-top: 3px; line-height: 1.5; }
.checked { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--dim); }
.checked svg { width: 15px; height: 15px; color: var(--teal); }
details.more-d, details.faq { margin-top: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
details summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details summary span { flex: 1; }
details summary > svg:first-child { width: 18px; height: 18px; color: var(--gold); }
details summary > svg:last-child { width: 17px; height: 17px; color: var(--dim); transition: transform .2s var(--ease); }
details[open] summary > svg:last-child { transform: rotate(90deg); }
details > *:not(summary) { padding: 0 14px 14px; }
details.faq p { color: var(--muted); font-size: 14px; }
.steps { margin: 0; padding: 0 14px 14px 34px; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.45; }
.steps li::marker { color: var(--violet); font-weight: 800; }
code.cmd { display: inline-block; margin: 4px 0; padding: 5px 9px; border-radius: 9px; background: #0A0F1E; border: 1px solid var(--line-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #CFE4FF; }

/* библиотека */
.lib-hero { position: relative; height: 150px; border-radius: 24px; margin-bottom: 18px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 120% at 85% 0%, rgba(var(--t), .55), transparent 62%), radial-gradient(70% 90% at 0% 100%, rgba(var(--t), .18), transparent 70%), linear-gradient(160deg, #17203d, #0d1328);
  border: 1px solid var(--line); }
.lib-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); }
.lib-ic { position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.lib-ic svg { width: 32px; height: 32px; }
.lib-hero .hero-act { z-index: 2; }
.blk { margin-top: 22px; }
.blk h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.blk p { color: #DCE2F2; font-size: 15.5px; line-height: 1.6; }
ul.dots { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
ul.dots li { position: relative; padding-left: 18px; color: #DCE2F2; font-size: 15px; line-height: 1.5; }
ul.dots li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.demo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0D1327; }
.demo .q { padding: 14px; border-bottom: 1px solid var(--line); background: rgba(139,124,255,.06); }
.demo .a { padding: 14px; }
.demo .lbl { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.demo .a .lbl { color: var(--teal); }
.demo .t { font-size: 14.5px; line-height: 1.55; color: #E3E8F6; }
.copy { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.copy svg { width: 14px; height: 14px; }
.locked { margin-top: 20px; padding: 20px 18px; border-radius: 22px; text-align: center; background: radial-gradient(100% 80% at 50% 0%, rgba(232,200,142,.14), transparent 70%), var(--card); border: 1px solid rgba(232,200,142,.22); }
.locked > svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 8px; }
.locked h3 { font-size: 18px; margin-bottom: 6px; } .locked p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* кнопки и поля */
.btn { height: 50px; padding: 0 18px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; font-size: 15px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(103,124,255,.28); }
.btn svg { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card-2); border: 1px solid var(--line-2); box-shadow: none; color: var(--text); }
.btn.gold { background: var(--grad-gold); color: #1A1406; box-shadow: 0 10px 26px rgba(201,154,90,.25); }
.btn.sm { height: 40px; font-size: 13.5px; padding: 0 14px; border-radius: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.row-in { display: flex; gap: 8px; } .row-in .field { flex: 1; }
.field { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; outline: none; resize: vertical; }
.field:focus { border-color: rgba(139,124,255,.6); box-shadow: 0 0 0 3px rgba(139,124,255,.15); }
.field::placeholder { color: var(--dim); }

/* карточки-блоки */
.card { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.card.me { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.card.me h3 { font-size: 18px; } .card.me p { color: var(--muted); font-size: 13.5px; }
.ava { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: 22px; flex: 0 0 auto; }
.admin-entry { margin-top: 12px; }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.empty.full { padding-top: 22vh; } .empty h3 { color: var(--text); font-size: 20px; margin-bottom: 6px; }
.empty p { font-size: 14px; margin-bottom: 14px; }
.em-ic { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 19px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(139,124,255,.3), rgba(103,199,255,.12)); border: 1px solid var(--line-2); color: #fff; }
.em-ic svg { width: 26px; height: 26px; }
.sk { border-radius: 20px; background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: sh 1.4s infinite; margin-top: 14px; }
@keyframes sh { to { background-position: -200% 0; } }

/* PARTNERS */
.prem { position: relative; overflow: hidden; border-radius: 26px; margin-top: 8px; border: 1px solid rgba(232,200,142,.22); background: #120F1F; }
.prem-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.prem::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,.2), rgba(11,16,32,.92) 70%); }
.prem-in { position: relative; z-index: 1; padding: 26px 18px 18px; }
.prem-in h1 { font-size: 27px; line-height: 1.12; font-weight: 800; margin: 8px 0 10px; }
.prem-in p { color: #D7DCEA; font-size: 14.5px; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 14px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.inc { display: grid; gap: 8px; }
.inc-r { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.inc-r span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(232,200,142,.12); color: var(--gold); flex: 0 0 auto; }
.inc-r span svg { width: 19px; height: 19px; }
.inc-r p { font-size: 14px; line-height: 1.4; }
.card.prog, .card.cab { position: relative; }
.pct { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: transparent; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; line-height: 1; margin-bottom: 8px; }
.card.prog p, .card.cab > p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.card.cab .steps { padding: 0 0 12px 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stats div { padding: 12px 8px; border-radius: 14px; background: rgba(255,255,255,.04); text-align: center; }
.stats b { display: block; font-size: 24px; font-weight: 800; } .stats span { font-size: 11px; color: var(--muted); line-height: 1.25; display: block; }
.linkbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px; border-radius: 14px; border: 1px dashed var(--line-2); }
.linkbox div { flex: 1; min-width: 0; } .linkbox small { display: block; font-size: 11px; color: var(--dim); }
.linkbox span { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.cand { margin-top: 10px; } .card.cand h4 { font-size: 15px; margin: 4px 0; } .card.cand .row2 { margin-top: 10px; }

/* поиск */
.sbox { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 14px; margin-top: 8px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2); }
.sbox > span svg { width: 19px; height: 19px; color: var(--dim); }
.sbox input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 16px; }
.sbox .icon-btn { width: 34px; height: 34px; background: none; border: 0; }

/* редакция */
.fl { display: block; margin-top: 14px; }
.fl > span { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
.fl > span em { font-style: normal; color: var(--dim); font-weight: 600; }
.cv-prev { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 8px; border: 1px solid var(--line-2); }
.upl { position: relative; overflow: hidden; }
.demo-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.demo-row img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.as-end { align-self: end; margin-bottom: 1px; }
.ed-bar { position: sticky; bottom: calc(80px + var(--safe-b)); z-index: 15; display: grid; grid-template-columns: 52px 1fr 1.4fr; gap: 8px; margin-top: 18px; padding: 10px; border-radius: 18px;
  background: rgba(15,22,43,.92); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ed-bar .btn { height: 46px; padding: 0 10px; }
.admin-fab { position: fixed; right: 16px; bottom: calc(88px + var(--safe-b)); z-index: 18; height: 40px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,22,43,.9); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-fab svg { width: 16px; height: 16px; }
.btn-tg { margin: 10px 0; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(103,199,255,.12); color: var(--blue); font-weight: 700; font-size: 14px; }
.prev .admin-fab { display: none; }
.prev { margin: 0 -4px; }

/* нижняя панель */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 12px calc(8px + var(--safe-b));
  background: linear-gradient(180deg, rgba(11,16,32,0), rgba(11,16,32,.92) 30%); }
.tabbar .in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 22px;
  background: rgba(20,28,52,.82); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.tab { height: 52px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); font-size: 10.5px; font-weight: 700; }
.tab svg { width: 21px; height: 21px; }
.tab.on { color: var(--text); background: rgba(255,255,255,.08); }
.tab.gold.on { color: var(--gold); }

/* листы, зум, тост */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(3,6,16,.6); opacity: 0; transition: opacity .25s; }
.sheet-bg.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 640px; margin: 0 auto; max-height: 88vh; overflow-y: auto; padding: 8px 18px calc(22px + var(--safe-b));
  border-radius: 26px 26px 0 0; background: #111830; border-top: 1px solid var(--line-2); transform: translateY(102%); transition: transform .3s var(--ease); overscroll-behavior: contain; }
.sheet.open { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); margin: 0 auto 12px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-h h3 { font-size: 19px; font-weight: 800; }
.sh-t { font-size: 24px; line-height: 1.15; margin: 6px 0 0; }
.fg { margin-top: 16px; } .fg .ey { margin-bottom: 8px; }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(3,6,16,.94); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.zoom.open { opacity: 1; }
.zoom img { max-width: 100%; max-height: 84vh; border-radius: 12px; }
.zoom .icon-btn { position: absolute; top: 16px; right: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: 86vw;
  padding: 11px 16px; border-radius: 14px; background: #F4F6FF; color: #0B1020; font-weight: 700; font-size: 14px; text-align: center; transition: all .25s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 560px) { .bc { flex-basis: 60%; } .cc { flex-basis: 42%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── 3.1: Библиотека, шаги, прогресс, сценарии ── */
.seg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; padding: 5px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.seg4 button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border-radius: 13px; color: var(--dim); font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.15; }
.seg4 button svg { width: 19px; height: 19px; }
.seg4 button.on { background: rgba(255,255,255,.09); color: var(--text); }
.lib-intro { font-size: 14px; margin: 12px 0 4px; }
.devsel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 14px; }
.devsel > span { font-size: 12px; font-weight: 700; color: var(--dim); margin-right: 4px; }
.devs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dev { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); }
.dev svg { width: 14px; height: 14px; } .dev.remote { color: var(--gold); background: rgba(232,200,142,.1); }
.pg { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; color: #B9C6FF; background: rgba(139,124,255,.14); display: inline-flex; align-items: center; gap: 4px; }
.pg.done { color: #8EF0D6; background: rgba(79,209,197,.12); } .pg svg { width: 12px; height: 12px; }
.mode { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.06); }
.demo-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 8px; color: var(--gold); background: rgba(232,200,142,.1); }
.srow .snum { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; font-weight: 800; font-size: 15px; background: rgba(139,124,255,.16); color: #CFC8FF; }
.srow.done .snum { background: rgba(79,209,197,.15); color: var(--teal); } .srow .snum svg { width: 18px; height: 18px; }
.cont { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 18px; text-align: left;
  background: linear-gradient(120deg, rgba(139,124,255,.22), rgba(103,199,255,.1)); border: 1px solid rgba(139,124,255,.3); }
.cont > svg { width: 18px; height: 18px; color: var(--muted); margin-left: auto; }
.cont-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); flex: 0 0 auto; } .cont-ic svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.cont h4 { font-size: 15px; margin: 2px 0; } .cont p { font-size: 12.5px; color: var(--muted); }
.apply { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 18px; text-align: left; background: rgba(79,209,197,.08); border: 1px solid rgba(79,209,197,.25); }
.apply > svg:first-child { width: 22px; height: 22px; color: var(--teal); } .apply > svg:last-child { width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
.apply small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); } .apply b { font-size: 15px; }
.need { display: flex; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(103,199,255,.06); border: 1px solid rgba(103,199,255,.18); }
.need > svg { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; flex: 0 0 auto; }
.need b { font-size: 14px; } .need p { color: #D9DFEE; font-size: 14px; margin-top: 3px; line-height: 1.5; }
.need.ok { background: rgba(79,209,197,.06); border-color: rgba(79,209,197,.2); } .need.ok > svg { color: var(--teal); }
.fact b.nb { font-weight: 600; font-size: 14px; line-height: 1.45; } .fact .dots { margin-top: 4px; } .fact .dots li { font-size: 13.5px; }
.stepl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.step .sn { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 800; font-size: 14px; border: 1.5px solid var(--line-2); color: var(--muted); }
.step .sn svg { width: 16px; height: 16px; }
.step.done .sn { background: var(--teal); border-color: var(--teal); color: #08202a; } .step.done b { color: var(--muted); }
.step.cur { border-color: rgba(139,124,255,.45); background: rgba(139,124,255,.07); } .step.cur .sn { border-color: var(--violet); color: #CFC8FF; }
.step b { font-size: 14.5px; display: block; } .step p { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.inputs .btn { justify-content: flex-start; }
.result { border-radius: 18px; padding: 14px; background: #0D1327; border: 1px solid var(--line-2); max-height: 520px; overflow: auto; }
.result > .ey { color: var(--teal); margin-bottom: 8px; }
.md { font-size: 13.5px; line-height: 1.55; color: #E3E8F6; } .md p { margin: 6px 0; } .md .mdh { font-size: 14.5px; margin: 12px 0 6px; }
.md blockquote { margin: 6px 0; padding-left: 10px; border-left: 2px solid var(--violet); color: var(--muted); } .md hr { border: 0; border-top: 1px solid var(--line-2); margin: 10px 0; }
.md code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 6px; }
.md .mdo { padding-left: 20px; margin: 6px 0; } .md .dots li { font-size: 13.5px; }
.mdt { overflow-x: auto; margin: 8px 0; } .mdt table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.mdt th, .mdt td { border: 1px solid var(--line-2); padding: 5px 7px; text-align: left; vertical-align: top; } .mdt th { background: rgba(255,255,255,.05); white-space: nowrap; }
.card.sub { margin-top: 12px; } .card.sub b { display: block; font-size: 16px; margin: 4px 0; }

/* 3.2 · Партнёрство: состояние подключения — иконка + текст (не только цвет) */
.pstate { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-top: 8px; }
.pstate > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--violet); margin-top: 1px; }
.pstate b { display: block; font-size: 15px; margin-bottom: 2px; }
.pstate p { color: var(--muted); font-size: 13.5px; }
.pstate.wait > svg { color: var(--blue); }
.pstate.warn { border-color: rgba(245,185,113,.35); } .pstate.warn > svg { color: var(--amber); }
.pstate.ok { border-color: rgba(79,209,197,.35); } .pstate.ok > svg { color: var(--teal); }
.step span.sn { display: grid; place-items: center; }
/* 3.2 · Моё: результаты, рабочее место */
.rc.res { align-items: flex-start; }
.rc.res .row3 { width: 100%; }
.sheet .rc.li.on { border-color: rgba(139,124,255,.55); background: rgba(139,124,255,.08); }
.btn[disabled] { opacity: .45; pointer-events: none; }
select.field { appearance: none; -webkit-appearance: none; }
/* 3.2 · Открытия ↔ Библиотека: первые результаты, где работает, мастер */
.rail.try { margin-top: 4px; }
.tc { flex: 0 0 74%; max-width: 300px; scroll-snap-align: start; text-align: left; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.tc .cv.wide { aspect-ratio: 16 / 10; }
.tc .cv.wide img { object-fit: cover; object-position: center 70%; }
.tc-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tc-b h4 { font-size: 15.5px; line-height: 1.25; } .tc-b p { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 750; color: var(--violet); } .tc-go svg { width: 15px; height: 15px; }
.rc.sug { border-style: dashed; }
.where { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.where .chip { height: 32px; font-size: 12.5px; }
.where p.small svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--blue); }
textarea.mono { font: 500 12.5px/1.45 ui-monospace, Consolas, monospace; }
.hero-cv .cv.shot img { object-fit: cover; object-position: center 60%; }
