/* Демо «Збірки»: примірка сайту й прототип програми. Без inline-стилів (CSP). */
:root {
  --d-bg: #0a0a0f; --d-bg2: #111118; --d-card: #17171f; --d-soft: #1f1f29; --d-line: #2a2a36;
  --d-ink: #f5f3ff; --d-muted: #a3a1b8; --d-violet: #7c4dff; --d-lime: #d4ff3a;
  --d-font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.dm { margin: 0; background: var(--d-bg); color: var(--d-ink); font: 16px/1.55 var(--d-font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.dm h1, .dm h2, .dm h3, .dm p, .dm ul, .dm ol { margin: 0; }
.dm ul, .dm ol { padding: 0; list-style: none; }
.dm h1, .dm h2, .dm h3 { overflow-wrap: break-word; text-wrap: balance; }
:where(.dm) a { color: inherit; }
.dm :focus-visible { outline: 3px solid var(--d-lime); outline-offset: 2px; border-radius: 8px; }
.d-wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.d-top { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 15, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--d-soft); }
.d-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.d-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.d-logo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px 10px 10px 3px; background: var(--d-violet); color: #fff; font-weight: 900; font-size: 14px; }
.d-tag { padding: 4px 10px; border-radius: 999px; background: var(--d-lime); color: var(--d-bg); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.d-links { display: flex; gap: 6px; font-size: 14px; }
.d-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--d-muted); }
.d-links a:hover { color: var(--d-ink); }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.d-btn-main { background: var(--d-violet); color: #fff; }
.d-btn-lime { background: var(--d-lime); color: var(--d-bg); }
.d-btn-line { background: transparent; border: 1px solid var(--d-line); color: var(--d-ink); }

/* хаб */
.d-hero { padding: 56px 0 28px; }
.d-k { font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--d-lime); }
.d-hero h1 { margin-top: 12px; font-size: clamp(32px, 6vw, 60px); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; max-width: 900px; }
.d-hero p { margin-top: 14px; max-width: 640px; color: var(--d-muted); font-size: 17px; }
.d-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; padding-bottom: 60px; }
.d-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 26px; background: var(--d-bg2); border: 1px solid var(--d-soft); text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.d-card:hover { transform: translateY(-3px); border-color: var(--d-line); }
.d-card-hot { background: var(--d-violet); border-color: transparent; }
.d-card h2 { font-size: 26px; font-weight: 850; letter-spacing: -.02em; }
.d-card p { color: var(--d-muted); }
.d-card-hot p { color: #f1ecff; }
.d-card span { margin-top: auto; font-weight: 700; }
.d-note { padding: 18px 0 40px; color: var(--d-muted); font-size: 14px; }

/* примірка сайту */
.t-layout { display: grid; gap: 18px; padding: 18px 0 40px; }
.t-form { display: grid; gap: 18px; align-content: start; padding: 20px; border-radius: 22px; background: var(--d-bg2); border: 1px solid var(--d-soft); }
.t-form h1 { font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.t-form > p { color: var(--d-muted); font-size: 14px; }
.t-field { display: grid; gap: 6px; font-size: 13px; color: var(--d-muted); }
.t-field input, .t-field select { min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); font: inherit; font-size: 15px; width: 100%; }
.t-group { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.t-group legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--d-muted); }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip { position: relative; }
.t-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--d-line); font-size: 14px; font-weight: 600; }
.t-chip input:checked + span { background: var(--d-ink); color: var(--d-bg); border-color: var(--d-ink); }
.t-chip input:focus-visible + span { outline: 3px solid var(--d-lime); outline-offset: 2px; }
.t-sw { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.t-sw-clay { background: #c2410c; } .t-sw-concrete { background: #6b7280; } .t-sw-forest { background: #1f3a33; } .t-sw-night { background: #7c4dff; }
.t-stage { display: grid; gap: 10px; align-content: start; min-width: 0; }
.t-stagebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.t-views { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--d-bg2); border: 1px solid var(--d-soft); }
.t-views button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--d-muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.t-views button[aria-pressed="true"] { background: var(--d-ink); color: var(--d-bg); }
.t-hint { font-size: 13px; color: var(--d-muted); }
.t-browser { margin-inline: auto; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--d-line); background: #fff; box-shadow: 0 50px 100px -50px rgba(124, 77, 255, .55); transition: max-width .35s cubic-bezier(.2,.8,.2,1); }
.t-browser.is-mobile { max-width: 390px; }
.t-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #e9e6df; }
.t-dots { display: flex; gap: 6px; } .t-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cbc4b6; }
.t-url { flex: 1; min-width: 0; padding: 6px 12px; border-radius: 8px; background: #fff; color: #555; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-url b { color: #1d1d1d; }
.t-demo-badge { padding: 4px 9px; border-radius: 7px; background: #0a0a0f; color: #d4ff3a; font-size: 11px; font-weight: 800; letter-spacing: .06em; }

/* згенерований сайт: кольори приходять з JS через CSS-змінні */
.s { position: relative; max-height: 78vh; overflow: auto; background: var(--s-bg); color: var(--s-ink); font-family: var(--d-font); user-select: none; -webkit-user-select: none; }
.s-wm { position: sticky; top: 0; height: 0; z-index: 5; pointer-events: none; }
.s-wm::before { content: 'ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО ДЕМО'; position: absolute; left: -30%; top: 120px; width: 160%; transform: rotate(-18deg); font: 900 clamp(34px, 7vw, 72px)/1.5 var(--d-font); letter-spacing: .08em; word-spacing: .8em; color: var(--s-ink); opacity: .07; text-align: center; }
.s-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4%, 40px); border-bottom: 1px solid var(--s-line); }
.s-brand { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.s-menu { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.s-burger { display: none; font-size: 22px; }
.t-browser.is-mobile .s-menu { display: none; }
.t-browser.is-mobile .s-burger { display: block; }
.s-sec { padding: clamp(28px, 6%, 64px) clamp(16px, 4%, 40px); display: grid; gap: 14px; }
.s-alt { background: var(--s-card); }
.s-dark { background: var(--s-ink); color: var(--s-bg); }
.s-k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--s-accent); }
.s-dark .s-k { color: var(--s-accent2); }
.s-h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.05; max-width: 720px; overflow-wrap: break-word; }
.t-browser.is-mobile .s-h1 { font-size: 32px; }
.s-h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; line-height: 1.1; }
.s-p { max-width: 620px; opacity: .8; }
.s-btn { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--s-accent); color: var(--s-on); font: inherit; font-weight: 700; cursor: pointer; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.s-item { padding: 16px; border-radius: 14px; background: var(--s-bg); border: 1px solid var(--s-line); display: grid; gap: 6px; align-content: start; }
.s-item b { font-size: 16px; }
.s-item span { font-size: 14px; opacity: .75; }
.s-ph { height: 90px; border-radius: 10px; background: var(--s-line); }
.s-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; align-items: end; }
.s-calc label { display: grid; gap: 4px; font-size: 13px; }
.s-calc input, .s-form input { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--s-line); background: var(--s-bg); color: var(--s-ink); font: inherit; width: 100%; }
.s-out { padding: 14px; border-radius: 12px; background: var(--s-accent); color: var(--s-on); font-weight: 700; }
.s-faq details { padding: 14px 0; border-bottom: 1px solid var(--s-line); }
.s-faq summary { cursor: pointer; font-weight: 650; }
.s-faq p { margin-top: 8px; opacity: .8; }
.s-form { display: flex; flex-wrap: wrap; gap: 10px; }
.s-form input { flex: 1 1 200px; width: auto; }
.s-foot { padding: 22px clamp(16px, 4%, 40px); font-size: 13px; opacity: .7; border-top: 1px solid var(--s-line); }
.s-toast { position: sticky; bottom: 14px; z-index: 6; margin: 0 auto; width: max-content; max-width: calc(100% - 28px); padding: 12px 16px; border-radius: 14px; background: #0a0a0f; color: #f5f3ff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.s-toast.on { opacity: 1; transform: none; }
.t-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--d-bg2); border: 1px solid var(--d-soft); }
.t-cta p { color: var(--d-muted); font-size: 14px; max-width: 560px; }

@media (min-width: 1000px) {
  .t-layout { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
  .t-form { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- прототип програми ---------- */
.a-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 61px); }
.a-main > * { min-width: 0; }
.a-search { max-width: 100%; }
.a-side { display: none; }
.a-main { min-width: 0; padding: 18px 16px 110px; display: grid; gap: 16px; align-content: start; }
.a-h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 900; letter-spacing: -.02em; }
.a-h1 i { font-style: normal; color: var(--d-lime); }
.a-sub { color: var(--d-muted); font-size: 14px; }
.a-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.a-search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--d-line); background: var(--d-bg2); color: var(--d-muted); font: inherit; font-size: 14px; cursor: pointer; }
.a-search kbd { font: inherit; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--d-soft); color: var(--d-ink); }
.a-next { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--d-violet); box-shadow: 0 28px 70px -30px var(--d-violet); }
.a-next p { flex: 1 1 260px; font-weight: 600; line-height: 1.4; }
.a-next small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.a-pulse { position: relative; width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--d-lime); }
.a-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--d-lime); animation: a-ping 1.8s ease-out infinite; }
@keyframes a-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
.a-lane { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.a-col { flex: 0 0 min(260px, 78vw); scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 18px; background: var(--d-bg2); }
.a-col h2 { display: flex; justify-content: space-between; font-size: 13px; font-weight: 650; padding: 2px 4px; }
.a-col h2 span { color: var(--d-muted); }
.a-deal { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--d-card); border: 1px solid transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.a-deal:hover { transform: translateY(-2px); border-color: var(--d-line); }
.a-deal.hot { border-color: var(--d-lime); }
.a-deal b { font-size: 15px; }
.a-deal span { font-size: 13px; color: var(--d-muted); }
.a-deal em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--d-lime); }
.a-card { padding: 18px; border-radius: 20px; background: var(--d-bg2); border: 1px solid var(--d-soft); display: grid; gap: 10px; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.a-btn-lime { background: var(--d-lime); color: var(--d-bg); }
.a-btn-v { background: var(--d-violet); color: #fff; }
.a-btn-w { background: var(--d-ink); color: var(--d-bg); }
.a-btn-line { background: transparent; border: 1px solid var(--d-line); color: var(--d-ink); }
.a-btn[disabled] { opacity: .45; cursor: not-allowed; }
.a-grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.a-tl { display: grid; gap: 10px; }
.a-ev { position: relative; padding: 14px 16px 14px 20px; border-radius: 16px; background: var(--d-bg2); border-left: 3px solid var(--d-violet); }
.a-ev.call { border-left-color: var(--d-lime); } .a-ev.msg { border-left-color: var(--d-ink); } .a-ev.note { border-left-color: #ffb547; background: rgba(255, 181, 71, .08); }
.a-ev small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--d-muted); }
.a-ev b { display: block; margin-top: 4px; }
.a-ev p { margin-top: 4px !important; color: var(--d-muted); font-size: 14px; }
.a-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--d-bg2); border: 1px solid var(--d-soft); }
.a-tabs button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--d-muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.a-tabs button[aria-pressed="true"] { background: var(--d-ink); color: var(--d-bg); }
.a-note { display: flex; gap: 8px; }
.a-note input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--d-line); background: var(--d-bg2); color: var(--d-ink); font: inherit; }
.a-lines { display: grid; gap: 8px; }
.a-line { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--d-bg2); }
.a-line b { font-size: 14px; } .a-line span { display: block; font-size: 12px; color: var(--d-muted); }
.a-line input { width: 100%; min-height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); font: inherit; }
.a-line output { font-weight: 700; text-align: right; white-space: nowrap; }
.a-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.a-total strong { font-size: 28px; font-weight: 900; }
.a-sum { display: flex; justify-content: space-between; color: var(--d-muted); font-size: 14px; }
.a-sum .d { color: var(--d-lime); }
.a-steps { display: grid; gap: 8px; font-size: 14px; }
.a-steps li { display: flex; align-items: center; gap: 10px; color: var(--d-muted); }
.a-steps li i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--d-soft); font-style: normal; font-size: 12px; font-weight: 800; color: var(--d-ink); }
.a-steps li.done { color: var(--d-ink); } .a-steps li.done i { background: var(--d-lime); color: var(--d-bg); }
.a-mods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.a-mod { display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: var(--d-bg2); border: 1.5px solid var(--d-soft); transition: border-color .3s, transform .3s; }
.a-mod.open { border-color: var(--d-violet); background: var(--d-card); }
.a-mod h3 { font-size: 18px; font-weight: 800; }
.a-mod p { color: var(--d-muted); font-size: 14px; }
.a-chip { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--d-soft); color: var(--d-muted); }
.a-mod.open .a-chip { background: var(--d-violet); color: #fff; }
.a-progress { display: flex; gap: 4px; } .a-progress i { width: 22px; height: 6px; border-radius: 3px; background: var(--d-line); } .a-progress i.on { background: var(--d-violet); }
.a-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); background: #0d0d13; border-top: 1px solid var(--d-line); }
.a-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border: 0; background: transparent; color: var(--d-muted); font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.a-bottom button[aria-current="page"] { color: var(--d-ink); }
.a-bottom button[aria-current="page"] svg { color: var(--d-lime); }
.a-nav-side { display: grid; gap: 4px; }
.a-nav-side button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--d-muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.a-nav-side button[aria-current="page"] { background: var(--d-soft); color: var(--d-ink); font-weight: 650; }
.a-pal { position: fixed; inset: 0; z-index: 40; display: none; align-items: flex-start; justify-content: center; padding: 90px 16px 16px; background: rgba(0, 0, 0, .55); }
.a-pal.on { display: flex; }
.a-pal-box { width: min(560px, 100%); border-radius: 18px; background: var(--d-card); border: 1px solid var(--d-line); overflow: hidden; }
.a-pal-box input { width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--d-line); background: transparent; color: var(--d-ink); font: inherit; font-size: 16px; }
.a-pal-box ul { padding: 8px; display: grid; gap: 2px; }
.a-pal-box li button { width: 100%; display: flex; justify-content: space-between; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--d-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.a-pal-box li button:hover, .a-pal-box li button:focus-visible { background: var(--d-soft); }
.a-pal-box kbd { font: inherit; font-size: 12px; color: var(--d-muted); }
.a-toast { position: fixed; left: 50%; bottom: 96px; z-index: 50; transform: translate(-50%, 10px); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--d-ink); color: var(--d-bg); font-size: 14px; font-weight: 650; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.a-toast.on { opacity: 1; transform: translate(-50%, 0); }
.a-hidden { display: none !important; }

@media (min-width: 900px) {
  .a-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .a-side { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; border-right: 1px solid var(--d-soft); background: #0d0d13; }
  .a-main { padding: 24px 28px 40px; }
  .a-bottom { display: none; }
  .a-toast { bottom: 28px; }
}

.t-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.t-cta-btns .d-btn { flex: 1 1 auto; }

/* ---------- магазин: картки рівної висоти, кнопки внизу ---------- */
.a-mod { align-content: start; grid-template-rows: auto auto 1fr auto; }
.a-mod .a-chip { align-self: start; }
.a-mod-act { margin-top: 4px; justify-content: flex-start; }

/* ---------- вікно прев'ю модуля ---------- */
.a-pv { width: min(760px, calc(100% - 24px)); max-height: min(88vh, 880px); padding: 0; border: 1px solid var(--d-line); border-radius: 22px; background: var(--d-bg2); color: var(--d-ink); overflow: hidden; }
.a-pv::backdrop { background: rgba(5, 5, 9, .72); backdrop-filter: blur(4px); }
.a-pv[open] { display: flex; flex-direction: column; animation: pv-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes pv-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.a-pv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--d-soft); }
.a-pv-top h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 900; letter-spacing: -.01em; }
.a-pv-x { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--d-line); background: transparent; color: var(--d-ink); font: inherit; font-size: 18px; cursor: pointer; }
.a-pv-body { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 20px; display: grid; gap: 16px; align-content: start; }
.a-pv-body::before { content: 'ДЕМО'; position: absolute; top: 10px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--d-lime); color: var(--d-bg); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.a-pv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--d-soft); background: #0d0d13; }
.a-pv-foot p { color: var(--d-muted); font-size: 13px; flex: 1 1 220px; }

.p-sec { display: grid; gap: 10px; min-width: 0; }
.p-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--d-lime); }
.p-list { display: grid; gap: 8px; }
.p-list li { position: relative; padding-left: 18px; color: var(--d-muted); font-size: 14px; }
.p-list li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--d-violet); }
.p-note { color: var(--d-muted); font-size: 13px; }
.p-card { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--d-card); min-width: 0; }
.p-card span { color: var(--d-muted); font-size: 14px; overflow-wrap: anywhere; }
.p-next { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--d-violet); color: #fff; font-weight: 600; }
.p-next small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.p-lane { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.p-col { flex: 0 0 min(200px, 70vw); scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 14px; background: var(--d-bg); }
.p-col > b { font-size: 13px; }
.p-scroll { overflow-x: auto; }
.p-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-t th, .p-t td { padding: 9px 8px; border-bottom: 1px solid var(--d-soft); text-align: left; white-space: nowrap; }
.p-t th { color: var(--d-muted); font-size: 12px; font-weight: 600; }
.p-t .num { text-align: right; }
.a-chip.p-warn { background: rgba(255, 181, 71, .16); color: #ffb547; }
.p-bar { height: 8px; border-radius: 8px; background: var(--d-soft); overflow: hidden; }
.p-bar i { display: block; width: 64%; height: 100%; background: var(--d-violet); }
.p-site { border-radius: 16px; overflow: hidden; border: 1px solid var(--d-line); background: #f4efe6; color: #1f2a24; }
.p-url { padding: 9px 12px; background: #e7e1d6; font-size: 13px; overflow-wrap: anywhere; }
.p-site-hero { display: grid; gap: 10px; padding: 20px 16px; justify-items: start; }
.p-site-hero small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a4b2a; }
.p-site-hero strong { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(22px, 4vw, 30px); line-height: 1.1; }
.p-pal { display: flex; flex-wrap: wrap; gap: 8px; }
.p-add { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--d-line); background: transparent; color: var(--d-ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.p-add[aria-pressed='true'] { border-style: solid; border-color: var(--d-lime); background: rgba(212, 255, 58, .1); }
.p-canvas { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: var(--d-bg); border: 1px solid var(--d-soft); }
.p-blk { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--d-card); border-left: 4px solid var(--d-violet); font-weight: 650; animation: pv-in .25s ease; }
.p-blk-hero { min-height: 84px; border-left-color: var(--d-lime); }
.p-blk-calc { border-left-color: #57e39b; } .p-blk-form { border-left-color: #ffb547; }
.p-blk-act { display: flex; gap: 6px; }
.p-mini { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--d-line); background: transparent; color: var(--d-ink); font: inherit; cursor: pointer; }
.p-mini[disabled] { opacity: .35; cursor: default; }
.p-empty { padding: 18px; text-align: center; color: var(--d-muted); }
.p-bubble { justify-self: start; max-width: 420px; display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #7360f2; color: #fff; font-size: 14px; }
.p-bubble small { font-size: 11px; opacity: .85; font-weight: 700; }
@media (max-width: 560px) {
  .a-pv { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .a-pv[open], .p-blk { animation: none; } }
