/* LifeOS inner pages (catalog, life, support, privacy, terms, delete-account, 404).
   Sits on top of krea.css: same tokens, header, footer, CTA, reveals. Tokens only, no raw colours. */

/* ---------- shared ---------- */
.pg main { display: block; }
.pg-hero { padding-top: clamp(112px, 12vw, 184px); }
.pg-hero .lead { margin-top: var(--s3); }
.pg-h1 { margin-top: var(--s3); font-weight: 500; font-size: clamp(44px, 6.2vw, 100px); line-height: .96; letter-spacing: -.04em; text-wrap: balance; max-width: 13em; }
.pg-h1 .dim { display: block; color: var(--text-muted); }
.pg-h1--xl { font-size: clamp(48px, 7.4vw, 112px); }
.pg-hero .pg-h1:first-child { margin-top: 0; }
.pg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s3); }
.pg-tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
@media (max-width: 600px) { .pg-tag { height: auto; min-height: 32px; padding: 6px 12px; white-space: normal; line-height: 1.35; } }
.pg-note-inline { font-size: 14px; color: var(--text-muted); padding-left: 4px; }
.pg-kicker { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--text-muted); margin-bottom: var(--s2); }
.close .pg-kicker, .on-dark .pg-kicker { color: var(--text-inverse-muted); }
.close .lead { color: var(--text-inverse-muted); }
.pg-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.pg-link:hover { text-decoration-color: currentColor; }
.pg-link .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.pg-link:hover .ico { transform: translateX(3px); }
.on-dark .pg-link { color: var(--text-inverse); text-decoration-color: var(--text-inverse-muted); }
.pg-close--solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.pg-close--solo .close-copy { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.pg-close--solo .close-copy > div:first-child { flex: 1 1 560px; }
[aria-current="page"] { color: var(--text-primary) !important; font-weight: 500; }

/* ---------- catalog ---------- */
/* filter bar: in the flow it has no fill; stuck under the header it takes the header's own surface (canvas 88 % + blur),
   so header and filters read as one band, not a second white strip (pages.js sets .is-stuck) */
.pg-filter { position: sticky; top: var(--hd-h); z-index: 20; margin-top: clamp(40px, 5vw, 64px); padding: 12px 0; }
.pg-filter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-canvas-a88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .3s; }
.pg-filter.is-stuck::before { opacity: 1; }
/* stuck, the band is bg/canvas-a88, the same tone as the chip fill (surface/muted), so inactive chips lost their pill
   (reviewer 2026-10-18 tg2). There they step one kit tone down (surface/sunken): the same light-grey pill on a lighter
   backing as at the top of the page. The active chip keeps its accent fill. */
.pg-filter.is-stuck .chip:not(.on) { background: var(--surface-sunken); }
.pg--catalog { background: var(--paper); }
/* one row at every width: scrolls sideways, edges fade (no 2-row band under the header) */
.pg-chips { justify-content: flex-start; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--text-primary) var(--pad), var(--text-primary) calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, var(--text-primary) var(--pad), var(--text-primary) calc(100% - 48px), transparent 100%); }
@media (max-width: 759px) {
  /* phones: a longer, clearly visible fade where the row is cut at the right edge (reviewer 2026-10-18) */
  .pg-chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--text-primary) var(--pad), var(--text-primary) calc(100% - 80px), transparent calc(100% - 4px));
    mask-image: linear-gradient(90deg, transparent 0, var(--text-primary) var(--pad), var(--text-primary) calc(100% - 80px), transparent calc(100% - 4px)); }
}
.pg-chips::-webkit-scrollbar { display: none; }
.pg-chips .chip { white-space: nowrap; flex: none; }
/* >= 768 px (reviewer 2026-10-18 tg2): every chip visible, the row wraps onto as many lines as it needs, no fade,
   no sideways scroll; it starts on the content edge. Phones keep the one scrolling row above. */
@media (min-width: 768px) {
  .pg-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
.pg-cat .wrap { padding-bottom: 8px; }
.pg-group { margin-top: clamp(48px, 6vw, 96px); scroll-margin-top: 140px; }
.pg-group[hidden], .pg-grid[hidden] { display: none; }
/* catalog flat list (2026-10-18): no category heading, so the first grid sits closer to the chip bar */
.pg-group--flat { margin-top: clamp(24px, 3vw, 40px); }
.pg-group--flat > .pg-grid:first-child { margin-top: 0; }
.pg-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.pg-group-h h2 { font-weight: 500; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; letter-spacing: -.03em; }
.pg-count { font-size: 15px; color: var(--text-muted); white-space: nowrap; }
/* grids: fixed column counts, every card at its normal grid size (Nick 2026-10-18 tg3): a card is never stretched
   because it is last, so a short last row stays short and left-aligned, in every view and every chip filter.
   Text cards 1 / 2 / 3 / 4 columns, film cards 1 / 2 / 3. */
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s3); }
.pg-grid > * { min-width: 0; }
@media (min-width: 760px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .pg-grid:not(.pg-grid--v) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--card); overflow: hidden; min-height: 196px; transition: background-color .25s; }
.pg-card[hidden] { display: none; }
/* number, then the title at a fixed offset: titles of one row start on one line; the status tag sits in the number row */
.pg-card-c { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--s3); flex: 1; }
.pg-card-c .mono { font-family: var(--mono); font-size: 13px; line-height: 26px; color: var(--text-faint); }
.pg-card-c h3 { padding-top: var(--s1); font-size: clamp(19px, 1.5vw, 22px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.pg-card-c p { font-size: 15px; line-height: 1.45; color: var(--text-muted); text-wrap: pretty; max-width: 44em; }
.pg-st { position: absolute; top: var(--s3); right: var(--s3); display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-default); font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.pg-card--v { min-height: 0; }
.pg-card--v .pg-card-c { padding-top: var(--s2); }
.pg-card--v .pg-card-c h3 { padding-top: 0; }
.pg-card--v .pg-st { top: var(--s2); }
/* film card: the poster button = the frame with the «Смотреть» pill always on top of it, top left (Nick 2026-10-18) */
.pg-poster { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: var(--r-l) var(--r-l) 0 0; }
.pg-poster-m { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-subtle); border-radius: inherit; }
.pg-poster-m picture { position: absolute; inset: 0; }
.pg-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .7s var(--ease); }
.pg-poster:hover img { transform: scale(1.03); }
.pg-poster:focus-visible { outline-offset: -3px; }
.pg-play { position: absolute; z-index: 1; left: var(--s2); top: var(--s2); display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--surface-default); color: var(--text-primary); box-shadow: var(--elev-2); font-size: 15px; font-weight: 500; letter-spacing: -.01em; transition: transform .3s var(--ease); }
.pg-poster:hover .pg-play { transform: translateY(-2px); }
.pg-play-i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-primary); color: var(--text-on-accent); display: grid; place-items: center; }
.pg-play-i svg { width: 14px; height: 14px; fill: currentColor; }
/* scenario illustration (cards without a film; Nick 2026-10-18 «похожими на приложение»): the LifeOS App v6 chat
   (Figma VBytXObcfjCZm7ndRb2QGz, App v6 7084:481335: 1.2, 5.3, 14.1, 14.3) drawn in HTML inside the home page's .phone,
   on a soft panel. The phone stands at the top of the panel and the panel's bottom edge crops its body below the chat;
   the chat (.pa) is exactly as tall as the visible part of the screen, its feed is bottom-aligned and never overflows,
   everything is clipped by the screen (.phone-in, its corner radius). align-items: flex-start keeps the phone at its own
   height (stretched to the panel it was shorter than its screen: the screen stuck out under the bezel). Fixed panel height: every row of cards stays even.
   Every length inside the screen = calc(var(--u) * pt) in App points (--u from krea.css .phone). Colours: tokens only;
   the LifeOS avatar is ink here (catalog illustrations carry no logo orange). Markup: scripts/pages/catalog_app.py. */
.pg-ill { --ph: 340px; --pt: 22px; position: relative; flex: none; display: flex; justify-content: center; align-items: flex-start; height: var(--ph); overflow: hidden; background: var(--bg-subtle); }
.pg-ill .phone { --w: 232px; --sb: var(--bg-canvas); margin-top: var(--pt); transition: transform .6s var(--ease); }
@media (hover: hover) { .pg-card--i:hover .pg-ill .phone { transform: translate3d(0, -6px, 0); } }
.pa { --c: var(--u); position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column;
  height: calc(var(--ph) - var(--pt) - var(--pb) - var(--pf) - var(--u) * 62); overflow: hidden;
  font-family: var(--sans); color: var(--text-primary); letter-spacing: -.01em; background: var(--bg-canvas); }
.pa b { font-weight: 600; }
.pa small { display: block; }
.pa-i { display: block; flex: none; width: calc(var(--c) * 20); height: calc(var(--c) * 20); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* header: back, avatar 40, «LifeOS / основной агент», more; the feed scrolls under it */
.pa-hd { order: -1; position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: calc(var(--c) * 12); height: calc(var(--c) * 56); padding: 0 calc(var(--c) * 16);
  background: var(--bg-canvas); box-shadow: 0 calc(var(--c) * 8) calc(var(--c) * 10) calc(var(--c) * -2) var(--bg-canvas); }
.pa-hd .pa-hb { width: calc(var(--c) * 24); height: calc(var(--c) * 24); stroke-width: 2; }
.pa-hk { width: calc(var(--c) * 24); height: calc(var(--c) * 24); margin-left: auto; stroke-width: 2.6; }
.pa-hn { display: flex; flex-direction: column; gap: calc(var(--c) * 2); line-height: 1.15; }
.pa-hn b { font-size: calc(var(--c) * 18); font-weight: 600; letter-spacing: -.02em; }
.pa-hn small { font-size: calc(var(--c) * 13); color: var(--text-muted); }
.pa-av { flex: none; display: grid; place-items: center; width: calc(var(--c) * 32); height: calc(var(--c) * 32); border-radius: 50%; background: var(--accent-primary); color: var(--text-on-accent); }
.pa-av--40 { width: calc(var(--c) * 40); height: calc(var(--c) * 40); }
.pa-av--ghost { background: none; }
.pa-mk { width: 50%; height: 50%; fill: currentColor; }
/* feed */
.pa-feed { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: calc(var(--c) * 12); padding: 0 calc(var(--c) * 16) calc(var(--c) * 14); overflow: hidden; }
.pa-m { display: flex; align-items: flex-start; gap: calc(var(--c) * 8); }
.pa-m--out { justify-content: flex-end; }
.pa-mc { display: flex; flex-direction: column; min-width: 0; }
.pa-m--out .pa-mc { align-items: flex-end; max-width: calc(var(--c) * 290); }
.pa-m--in .pa-mc { flex: 1 1 auto; align-items: flex-start; }
.pa-b { padding: calc(var(--c) * 10) calc(var(--c) * 15); border-radius: calc(var(--c) * 20); font-size: calc(var(--c) * 15.5); line-height: 1.36; text-wrap: pretty; }
.pa-m--out .pa-b { background: var(--surface-sunken); }
.pa-m--in .pa-b { background: var(--surface-default); max-width: calc(var(--c) * 290); }
.pa-tm { display: flex; align-items: center; gap: calc(var(--c) * 3); margin-top: calc(var(--c) * 4); font: 500 calc(var(--c) * 10.5)/1 var(--mono); color: var(--text-faint); letter-spacing: 0; }
.pa-ck { width: calc(var(--c) * 13); height: calc(var(--c) * 13); stroke-width: 2.2; }
/* kit card: white, radius 20, elevation; head = 40 icon tile + title + meta */
.pa-card { width: 100%; display: flex; flex-direction: column; gap: calc(var(--c) * 12); padding: calc(var(--c) * 14); border-radius: calc(var(--c) * 20); background: var(--surface-default);
  box-shadow: 0 0 0 calc(var(--c) * 1) var(--shadow-v6-ring), 0 calc(var(--c) * 2) calc(var(--c) * 4) 0 var(--shadow-v6-key), 0 calc(var(--c) * 8) calc(var(--c) * 20) calc(var(--c) * -6) var(--shadow-v6-deep); }
.pa-ch { display: flex; align-items: center; gap: calc(var(--c) * 12); }
.pa-tile { flex: none; display: grid; place-items: center; width: calc(var(--c) * 40); height: calc(var(--c) * 40); border-radius: calc(var(--c) * 12); background: var(--surface-muted); }
.pa-tile .pa-i { width: calc(var(--c) * 21); height: calc(var(--c) * 21); }
.pa-ct { min-width: 0; display: flex; flex-direction: column; gap: calc(var(--c) * 3); line-height: 1.2; }
.pa-ct b { font-size: calc(var(--c) * 15.5); }
.pa-ct small { font-size: calc(var(--c) * 13); color: var(--text-muted); }
.pa-ir { display: flex; align-items: center; gap: calc(var(--c) * 18); width: 100%; padding: calc(var(--c) * 10) calc(var(--c) * 14) 0; color: var(--text-secondary); }
.pa-ir span { flex: 1; }
.pa-btn { display: grid; place-items: center; height: calc(var(--c) * 40); border-radius: 999px; background: var(--accent-primary); color: var(--text-on-accent); font-size: calc(var(--c) * 14.5); font-weight: 500; }
/* tones */
.pa .t-ok { color: var(--status-success); } .pa .t-warn { color: var(--status-warning); } .pa .t-bad { color: var(--status-danger); }
.pa .t-info { color: var(--status-info); } .pa .t-strong { color: var(--text-primary); font-weight: 600; }
.pa .b-ok { background: var(--status-success); } .pa .b-warn { background: var(--status-warning); } .pa .b-bad { background: var(--status-danger); } .pa .b-n { background: var(--accent-secondary); }
/* rows: lead (letter / icon / state) + title + sub */
.pa-rows, .pa-mt { display: flex; flex-direction: column; }
.pa-r, .pa-mr { display: flex; align-items: center; gap: calc(var(--c) * 10); padding: calc(var(--c) * 8) 0; }
.pa-r + .pa-r, .pa-mr + .pa-mr { background: linear-gradient(var(--border-subtle), var(--border-subtle)) top / 100% 1px no-repeat; }
.pa-rows .pa-r:first-child, .pa-mt .pa-mr:first-child { padding-top: 0; }
.pa-rows .pa-r:last-child, .pa-mt .pa-mr:last-child { padding-bottom: 0; }
.pa-rt { min-width: 0; display: flex; flex-direction: column; gap: calc(var(--c) * 2); line-height: 1.25; }
.pa-rt b, .pa-mrt b { font-size: calc(var(--c) * 14); font-weight: 500; }
.pa-rt small, .pa-mrt small { font-size: calc(var(--c) * 12.5); color: var(--text-muted); }
.pa-lt { flex: none; display: grid; place-items: center; width: calc(var(--c) * 30); height: calc(var(--c) * 30); border-radius: 50%; background: var(--surface-muted); font-size: calc(var(--c) * 13); font-weight: 600; color: var(--text-secondary); }
.pa-lt .pa-i { width: calc(var(--c) * 16); height: calc(var(--c) * 16); }
.pa-st { flex: none; display: grid; place-items: center; width: calc(var(--c) * 22); height: calc(var(--c) * 22); border-radius: 50%; }
.pa-st--ok { background: var(--status-success-soft); color: var(--status-success); }
.pa-st--ok .pa-i { width: calc(var(--c) * 13); height: calc(var(--c) * 13); stroke-width: 2.6; }
.pa-st--now { background: var(--status-info-soft); }
.pa-st--now i { width: calc(var(--c) * 8); height: calc(var(--c) * 8); border-radius: 50%; background: var(--status-info); animation: fxGlow 1.6s ease-in-out infinite; }
.pa-pg { height: calc(var(--c) * 6); border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.pa-pg i { display: block; height: 100%; width: calc(var(--pv) * 100%); border-radius: inherit; background: var(--accent-primary); }
.pa-pg--b { margin-top: calc(var(--c) * 2); }
/* meter rows */
.pa-mrc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--c) * 6); }
.pa-mrt { display: flex; justify-content: space-between; align-items: baseline; gap: calc(var(--c) * 8); line-height: 1.2; }
.pa-mrt small { white-space: nowrap; }
.pa-bar { display: block; height: calc(var(--c) * 6); border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.pa-bar i { display: block; height: 100%; width: calc(var(--pv) * 100%); border-radius: inherit; }
/* key / value */
.pa-kv { display: flex; flex-direction: column; }
.pa-kvr { display: flex; justify-content: space-between; align-items: baseline; gap: calc(var(--c) * 12); padding: calc(var(--c) * 7) 0; font-size: calc(var(--c) * 13.5); line-height: 1.25; }
.pa-kvr + .pa-kvr { box-shadow: 0 calc(var(--c) * -1) 0 var(--border-subtle); }
.pa-kvr:first-child { padding-top: 0; }
.pa-kvr:last-child { padding-bottom: 0; }
.pa-kvr span { color: var(--text-muted); }
.pa-kvr b { font-weight: 500; text-align: right; font-feature-settings: "tnum"; }
.pa-kvt { padding-top: calc(var(--c) * 9); }
.pa-kvt span { color: var(--text-primary); font-weight: 600; }
.pa-kvt b { font-weight: 600; }
/* table (kit table: muted header row, hairlines, figures right) */
.pa-tb { display: flex; flex-direction: column; border-radius: calc(var(--c) * 12); background: var(--surface-muted); overflow: hidden; font-size: calc(var(--c) * 13.5); line-height: 1.2; }
.pa-th, .pa-tr { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(calc(var(--n) - 1), minmax(0, 1fr)); gap: calc(var(--c) * 8); padding: calc(var(--c) * 9) calc(var(--c) * 12); }
.pa-th { font-size: calc(var(--c) * 12); color: var(--text-muted); font-weight: 500; }
.pa-tr { background: var(--surface-default); margin: 0 calc(var(--c) * 1); }
.pa-tr + .pa-tr { box-shadow: 0 calc(var(--c) * -1) 0 var(--border-subtle); }
.pa-tr:last-child { margin-bottom: calc(var(--c) * 1); border-radius: 0 0 calc(var(--c) * 11) calc(var(--c) * 11); }
.pa-th span + span, .pa-tr span + span { text-align: right; font-feature-settings: "tnum"; }
.pa-tr span:first-child { font-weight: 500; }
/* schedule */
.pa-sc { display: flex; flex-direction: column; gap: calc(var(--c) * 6); }
.pa-scr { display: flex; align-items: center; gap: calc(var(--c) * 10); padding: calc(var(--c) * 8) calc(var(--c) * 10); border-radius: calc(var(--c) * 12); background: var(--surface-muted); font-size: calc(var(--c) * 13.5); line-height: 1.2; }
.pa-when { flex: none; min-width: calc(var(--c) * 62); font: 500 calc(var(--c) * 11.5)/1.2 var(--mono); color: var(--text-muted); letter-spacing: 0; }
/* list */
.pa-li { display: flex; flex-direction: column; gap: calc(var(--c) * 8); }
.pa-lir { display: flex; align-items: flex-start; gap: calc(var(--c) * 10); font-size: calc(var(--c) * 13.5); line-height: 1.3; }
.pa-dot { flex: none; width: calc(var(--c) * 5); height: calc(var(--c) * 5); margin-top: calc(var(--c) * 7); border-radius: 50%; background: var(--text-faint); }
.pa-chev { width: calc(var(--c) * 16); height: calc(var(--c) * 16); margin-top: calc(var(--c) * 1); transform: rotate(-90deg); color: var(--text-faint); }
.pa-foot { font-size: calc(var(--c) * 12.5); color: var(--text-muted); line-height: 1.3; }
/* tiles 2 x 2 */
.pa-tl { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--c) * 6); }
.pa-tile2 { display: flex; flex-direction: column; gap: calc(var(--c) * 3); min-height: calc(var(--c) * 58); padding: calc(var(--c) * 10); border-radius: calc(var(--c) * 12); background: var(--surface-muted); line-height: 1.22; }
.pa-tile2 b { font-size: calc(var(--c) * 13); font-weight: 600; }
.pa-tile2 small { font-size: calc(var(--c) * 12); color: var(--text-muted); }
.pa-tl--img .pa-tile2 { justify-content: flex-end; min-height: calc(var(--c) * 70); }
.pa-tl--img .pa-tile2 b { font-weight: 500; }
.pa-tl--img .pa-tile2 { background: var(--surface-muted); }
/* conversation inside a card (review, support, trainer, translation) */
.pa-stars { display: flex; gap: calc(var(--c) * 3); margin-top: calc(var(--c) * -4); }
.pa-stars .pa-i { width: calc(var(--c) * 15); height: calc(var(--c) * 15); fill: var(--surface-sunken); stroke: none; }
.pa-stars .on .pa-i { fill: var(--status-warning); }
.pa-cv { display: flex; flex-direction: column; gap: calc(var(--c) * 6); font-size: calc(var(--c) * 13.5); line-height: 1.3; }
.pa-cvi { align-self: flex-start; max-width: 88%; padding: calc(var(--c) * 8) calc(var(--c) * 12); border-radius: calc(var(--c) * 14) calc(var(--c) * 14) calc(var(--c) * 14) calc(var(--c) * 4); background: var(--surface-muted); }
.pa-cvo { align-self: flex-end; max-width: 88%; padding: calc(var(--c) * 8) calc(var(--c) * 12); border-radius: calc(var(--c) * 14) calc(var(--c) * 14) calc(var(--c) * 4) calc(var(--c) * 14); background: var(--surface-sunken); color: var(--text-primary); }
/* plain text draft */
.pa-tx { padding: calc(var(--c) * 10) calc(var(--c) * 12); border-radius: calc(var(--c) * 12); background: var(--surface-muted); font-size: calc(var(--c) * 13.5); line-height: 1.38; }
/* flow: two systems and the link between them */
.pa-fl { display: flex; flex-direction: column; }
.pa-flr { display: flex; align-items: center; gap: calc(var(--c) * 10); padding: calc(var(--c) * 8) calc(var(--c) * 10); border-radius: calc(var(--c) * 12); background: var(--surface-muted); }
.pa-flr .pa-lt { background: var(--surface-default); }
.pa-fll { position: relative; height: calc(var(--c) * 22); margin-left: calc(var(--c) * 24); width: calc(var(--c) * 2); background: var(--border-subtle); }
.pa-fll i { position: absolute; left: 50%; top: 0; width: calc(var(--c) * 8); height: calc(var(--c) * 8); margin-left: calc(var(--c) * -4); border-radius: 50%; background: var(--status-success); --ty: calc(var(--c) * 14); }
/* voice note, meeting notes */
.pa-vo { display: flex; align-items: center; gap: calc(var(--c) * 10); padding: calc(var(--c) * 7) calc(var(--c) * 12) calc(var(--c) * 7) calc(var(--c) * 7); border-radius: 999px; background: var(--surface-muted); }
.pa-play { flex: none; display: grid; place-items: center; width: calc(var(--c) * 28); height: calc(var(--c) * 28); border-radius: 50%; background: var(--accent-primary); color: var(--text-on-accent); }
.pa-play .pa-i { width: calc(var(--c) * 12); height: calc(var(--c) * 12); fill: currentColor; stroke: none; margin-left: calc(var(--c) * 2); }
.pa-wv { flex: 1; display: flex; align-items: center; gap: calc(var(--c) * 2.5); height: calc(var(--c) * 22); }
.pa-wv i { flex: 1; height: calc(var(--h) * 100%); border-radius: 999px; background: var(--text-secondary); }
.pa-dur { font: 500 calc(var(--c) * 11.5)/1 var(--mono); color: var(--text-muted); letter-spacing: 0; }
.pa-rec { display: flex; align-items: center; gap: calc(var(--c) * 8); padding: calc(var(--c) * 8) calc(var(--c) * 12); border-radius: 999px; background: var(--status-danger-soft); font-size: calc(var(--c) * 13); font-weight: 500; color: var(--status-danger); }
.pa-rec .pa-dur { margin-left: auto; color: var(--status-danger); }
.pa-rd { width: calc(var(--c) * 8); height: calc(var(--c) * 8); border-radius: 50%; background: var(--status-danger); }
.pa-nt { display: flex; flex-direction: column; gap: calc(var(--c) * 7); font-size: calc(var(--c) * 13.5); line-height: 1.32; }
.pa-nt b { font-weight: 600; }
/* charts */
.pa-big { display: flex; flex-direction: column; gap: calc(var(--c) * 2); }
.pa-big b { font-size: calc(var(--c) * 28); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.pa-big small { font-size: calc(var(--c) * 12.5); color: var(--text-muted); }
.pa-ln { position: relative; height: calc(var(--c) * 72); overflow: hidden; }
.pa-ln svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pa-ln-l { fill: none; stroke-width: calc(var(--c) * 2.4); vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.pa-ln-l.l-ok { stroke: var(--status-success); } .pa-ln-l.l-bad { stroke: var(--status-danger); }
.pa-ln-a.a-ok { fill: var(--status-success-soft); } .pa-ln-a.a-bad { fill: var(--status-danger-soft); }
.pa-wipe { position: absolute; inset: calc(var(--c) * -4); background: var(--surface-default); transform-origin: right center; }
.pa-ax { display: flex; justify-content: space-between; margin-top: calc(var(--c) * -4); font: 500 calc(var(--c) * 11)/1 var(--mono); color: var(--text-faint); letter-spacing: 0; }
.pa-bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: calc(var(--c) * 10); }
.pa-bc { display: flex; flex-direction: column; align-items: center; gap: calc(var(--c) * 6); min-width: 0; }
.pa-bc small { font-size: calc(var(--c) * 12.5); font-weight: 600; font-feature-settings: "tnum"; white-space: nowrap; }
.pa-bt { position: relative; width: 100%; height: calc(var(--c) * 94); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: calc(var(--c) * 5); }
.pa-bt i { display: block; flex: none; width: 100%; border-radius: calc(var(--c) * 8) calc(var(--c) * 8) calc(var(--c) * 3) calc(var(--c) * 3); background: var(--surface-sunken); }
.pa-bl { font-size: calc(var(--c) * 12); color: var(--text-muted); white-space: nowrap; }
.pa-dn { display: flex; align-items: center; gap: calc(var(--c) * 16); }
.pa-dn svg { flex: none; width: calc(var(--c) * 96); height: calc(var(--c) * 96); transform: rotate(-90deg); }
.pa-dn circle { fill: none; stroke-width: 6; }
.pa-dn-bg { stroke: var(--surface-muted); }
.pa-lg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--c) * 7); font-size: calc(var(--c) * 13.5); line-height: 1.2; }
.pa-lgr { display: flex; align-items: center; gap: calc(var(--c) * 8); }
.pa-lgr i { flex: none; width: calc(var(--c) * 9); height: calc(var(--c) * 9); border-radius: 50%; }
.pa-lgr b { margin-left: auto; font-weight: 600; font-feature-settings: "tnum"; }
.pa .s-0 { stroke: var(--accent-primary); background: var(--accent-primary); } .pa .s-1 { stroke: var(--accent-secondary); background: var(--accent-secondary); }
.pa .s-2 { stroke: var(--text-faint); background: var(--text-faint); } .pa .s-3 { stroke: var(--border-subtle); background: var(--border-subtle); }
/* reply options (two drafts to choose from) */
.pa-m--opts .pa-mc { gap: calc(var(--c) * 6); }
.pa-opt { padding: calc(var(--c) * 10) calc(var(--c) * 14); border-radius: calc(var(--c) * 16); background: var(--surface-default); font-size: calc(var(--c) * 14); line-height: 1.3;
  box-shadow: 0 0 0 calc(var(--c) * 1) var(--shadow-v6-ring), 0 calc(var(--c) * 2) calc(var(--c) * 6) calc(var(--c) * -2) var(--shadow-v6-ambient); }
.pa-m--opts .pa-mc { flex: 1; min-width: 0; } .pa-opt { align-self: stretch; }
.pa-note { padding: 0 calc(var(--c) * 4); font-size: calc(var(--c) * 13); line-height: 1.32; color: var(--text-secondary); }
.pa-note--s { color: var(--text-muted); font-size: calc(var(--c) * 12.5); }
/* one 9 s loop for every screen; --i = place in the queue (message, answer, card, then its rows), .12 s apart, so the
   whole chat is built within about 1.5 s and then stays for most of the loop before it replays. Runs by default (no JS,
   reduced motion included: Nick's Windows has animations off and he must see them); pages.js pauses the screens that are
   off screen (.is-off) and they resume from where they stopped. transform / opacity only. */
.pa .fx { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: var(--ease);
  animation-delay: calc(var(--i, 0) * .12s); animation-fill-mode: both; }
.pg-ill.is-off .fx, .pg-ill.is-off .fx-wave, .pg-ill.is-off .pa-st--now i, .pg-ill.is-off .fx-glow2 { animation-play-state: paused; }
.pa .fx-in { animation-name: fxIn; }
.pa .fx-grow { animation-name: fxGrow; transform-origin: left center; }
.pa .fx-bar { animation-name: fxBar; transform-origin: center bottom; }
.pa .fx-wipe { animation-name: fxWipe; }
.pa .fx-trav { animation-name: fxTrav; animation-duration: 3.2s; animation-delay: 0s; }
.pa .fx-wave { animation: fxWave 1.6s ease-in-out infinite; transform-origin: center; }
.pa .fx-glow2 { animation: fxGlow 1.6s ease-in-out infinite; }
.pa-m.fx-in, .pa-card .fx-in { animation-name: fxIn; }
@keyframes fxIn { 0% { opacity: 0; transform: translateY(6px); } 5%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes fxGrow { 0%, 2% { opacity: 0; transform: scaleX(.02); } 10%, 95% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes fxBar { 0%, 2% { transform: scaleY(.05); } 10%, 95% { transform: scaleY(1); } 100% { transform: scaleY(.05); } }
@keyframes fxWipe { 0%, 2% { transform: scaleX(1); } 14%, 95% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes fxGlow { 0%, 15% { opacity: .25; } 30%, 88% { opacity: 1; } 100% { opacity: .25; } }
@keyframes fxTrav { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 52% { opacity: 1; transform: translateY(var(--ty, 44px)); } 62%, 100% { opacity: 0; transform: translateY(var(--ty, 44px)); } }
@keyframes fxWave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.pg-empty { margin-top: var(--s4); color: var(--text-muted); }

/* lightbox */
.pg-lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); }
.pg-lb[hidden] { display: none; }
.pg-lb-bd { position: absolute; inset: 0; background: var(--surface-media); opacity: .9; }
.pg-lb-box { position: relative; width: min(100%, calc((100svh - 160px) * 16 / 9), 1600px); opacity: 0; transform: translate3d(0, 16px, 0) scale(.98); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.pg-lb.is-on .pg-lb-box { opacity: 1; transform: none; }
.pg-lb-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--surface-media); box-shadow: var(--elev-3); }
.pg-lb-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface-media); }
.pg-lb-cap { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-top: var(--s2); color: var(--text-inverse); font-size: 16px; }
.pg-lb-cap b { font-weight: 500; }
.pg-lb-cap .mono { font-family: var(--mono); font-size: 13px; color: var(--text-inverse-muted); }
.pg-lb-x { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-inverse); color: var(--text-inverse); cursor: pointer; transition: background-color .2s; }
.pg-lb-x:hover { background: var(--text-secondary); }
.pg-lb-x .ico { width: 20px; height: 20px; }
.pg-lb.is-v .pg-lb-box { width: min(100%, calc((100svh - 140px) * 9 / 16)); }
.pg-lb.is-v .pg-lb-media { aspect-ratio: 9 / 16; }
html.pg-lock, html.pg-lock body { overflow: hidden; }

/* ---------- documents ---------- */
.pg-docsec { padding-top: clamp(48px, 6vw, 96px); }
.pg-doc { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1100px) { .pg-doc { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(48px, 6vw, 120px); } .pg-toc { position: sticky; top: 104px; } }
.pg-toc { border-radius: var(--r-l); background: var(--card); padding: var(--s3); }
.pg-toc-h { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: var(--s1); }
.pg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pg-toc a { display: flex; gap: 12px; padding: 8px 12px; margin: 0 -12px; border-radius: var(--r-s); font-size: 15px; line-height: 1.35; color: var(--text-muted); transition: background-color .2s, color .2s; }
.pg-toc a .mono { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-faint); }
.pg-toc a:hover { color: var(--text-primary); }
.pg-toc a.on { background: var(--surface-default); color: var(--text-primary); box-shadow: var(--elev-1); }
.pg-prose { max-width: 68ch; font-size: 17px; line-height: 1.65; color: var(--text-secondary); }
.pg-ds { scroll-margin-top: 104px; }
.pg-ds + .pg-ds { margin-top: clamp(40px, 4vw, 64px); padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--line); }
.pg-prose h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; color: var(--text-primary); margin-bottom: var(--s2); text-wrap: balance; }
.pg-prose h3 { font-size: 19px; font-weight: 500; color: var(--text-primary); margin: var(--s3) 0 8px; }
.pg-prose p + p, .pg-prose p + ul, .pg-prose ul + p, .pg-prose .pg-note + p, .pg-prose p + .pg-note, .pg-prose ul + .pg-note { margin-top: var(--s2); }
.pg-prose ul, .pg-prose ol { padding-left: 1.2em; list-style: disc; }
.pg-prose ol { list-style: decimal; }
.pg-prose li { padding-left: 4px; }
.pg-prose li + li { margin-top: 8px; }
.pg-prose li::marker { color: var(--text-faint); }
.pg-prose b, .pg-prose strong { color: var(--text-primary); font-weight: 500; }
.pg-prose a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.pg-prose a:hover { text-decoration-color: currentColor; }
/* long legal URLs (Google API terms, Anthropic privacy) must wrap: at 320 px they widened the whole page by 15 px */
.pg-doc > * { min-width: 0; }
.pg-prose a { overflow-wrap: anywhere; }
.pg-note { border-radius: var(--r-m); background: var(--card); padding: var(--s2) var(--s3); color: var(--text-secondary); }

/* delete-account form */
.pg-formcard { display: grid; gap: var(--s4); border-radius: var(--r-xl); background: var(--card); padding: clamp(24px, 4vw, 64px); }
@media (min-width: 1000px) { .pg-formcard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); } }
.pg-formcopy .lead { margin-top: var(--s3); }
.pg-form { display: grid; gap: var(--s2); }
.pg-form[hidden] { display: none; } /* display:grid beat the hidden attribute, so after a successful send the form stayed next to the thank-you line (feedback and delete-account) */
.pg-field { display: grid; gap: 8px; }
.pg-field span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.pg-field input, .pg-field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--border-subtle); background: var(--surface-default); color: var(--text-primary); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.pg-field textarea { resize: vertical; min-height: 104px; }
/* feedback form: the box grows with the text (up to a cap, then scrolls) so no resize handle is needed; supported browsers only, others keep 5 rows */
.pg-form[data-form="feedback"] textarea { resize: none; min-height: 140px; max-height: 360px; field-sizing: content; }
.pg-fg { display: grid; gap: 8px; }
.pg-fe { margin: 0; font-size: 14px; line-height: 1.4; color: var(--status-danger); }
.pg-fe[hidden] { display: none; }
.pg-field textarea[aria-invalid="true"] { border-color: var(--status-danger); }
.pg-field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--status-danger); border-color: var(--status-danger); }
/* feedback page: no side copy next to the form (the hero already says what this is), one column, equal padding on all sides */
.pg-formcard--solo { max-width: 760px; padding: clamp(20px, 3vw, 40px); gap: 0; }
@media (min-width: 1000px) { .pg-formcard--solo { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.pg-fine { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.pg-fine a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.pg-fine a:hover { text-decoration-color: currentColor; }
.pg-field input:hover, .pg-field textarea:hover { border-color: var(--border-strong); }
.pg-field input:focus, .pg-field textarea:focus { outline: none; border-color: var(--text-primary); box-shadow: 0 0 0 1px var(--text-primary); }
.pg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.pg-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--text-secondary); cursor: pointer; }
.pg-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent-primary); }
.pg-check.is-need { color: var(--status-danger); }
.pg-form button { justify-self: start; margin-top: 8px; border: 0; cursor: pointer; font: inherit; }
@media (max-width: 759px) { .pg-form button { justify-self: stretch; } }
.pg-ok, .pg-err { border-radius: var(--r-m); padding: var(--s2) var(--s3); font-size: 16px; }
.pg-ok { background: var(--surface-default); color: var(--text-primary); }
.pg-err { margin-top: var(--s2); background: var(--status-danger-soft); color: var(--status-danger); }
/* feedback page (Early access strip target): short lead-to-form gap so the button is on the first screen, error above the button, sending and success states */
.sec--fb { padding-top: var(--s4); }
.pg-form .pg-err { margin-top: 0; }
.pg-err a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pg-form .btn[disabled] { background: var(--surface-sunken); color: var(--text-secondary); cursor: progress; transform: none; } /* sending: flat fill + the label changes to «Отправляем…» (pages.js); one signal, no motion */
.pg-done { display: grid; justify-items: start; gap: 0; padding: clamp(8px, 2vw, 24px) 0; outline: none; }
.pg-done[hidden] { display: none; }
.pg-done-ico { display: block; color: var(--status-success); }
.pg-done-ico .ico { width: 40px; height: 40px; }
.pg-done-t { margin: var(--s3) 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--text-primary); }
.pg-done-s { margin: 8px 0 0; font-size: 18px; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
.pg-done-t { text-wrap: balance; }
.pg-done .btn { margin-top: var(--s4); }
.pg-done .btn--line { background: var(--surface-default); } /* the card is --surface-muted, the kit's .btn--line fill is the same colour and vanished: white pill like the inputs on this card */
.pg-done .btn--line:hover { background: var(--surface-sunken); }
@media (max-width: 759px) { .pg-done .btn { justify-self: stretch; } }

/* ---------- life ---------- */
.pg-hero--media .head { align-items: end; }
.pg-hero--media .pg-h1 { font-size: clamp(44px, 5.4vw, 88px); max-width: none; }
.pg-hero-side .ctas { margin-top: var(--s3); }
.pg-hero-side .lead { margin-top: 0; }
.pg-media { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-subtle); }
.pg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-media--hero { margin-top: clamp(32px, 4vw, 56px); aspect-ratio: 21 / 9; max-height: 72svh; width: 100%; }
.pg-media--hero img { object-position: 50% 22%; }
.pg-band { position: relative; margin-top: clamp(40px, 5vw, 72px); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 7; background: var(--bg-subtle); }
.pg-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.pg-band-card { position: absolute; left: var(--s3); bottom: var(--s3); max-width: 560px; padding: var(--s3); border-radius: var(--r-l); background: var(--surface-default); box-shadow: var(--elev-2); }
.pg-band-card .pg-kicker { margin-bottom: 10px; }
.pg-band-t { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; text-wrap: balance; }
.pg-band-t .dim { color: var(--text-muted); }
.pg-band .pg-tags { margin-top: var(--s2); }
.pg-flow, .pg-steps { display: grid; gap: var(--s2); margin-top: clamp(40px, 5vw, 72px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1200px) { .pg-flow, .pg-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-steps { list-style: none; padding: 0; }
.pg-fcard, .pg-step { display: flex; flex-direction: column; gap: 10px; min-height: clamp(220px, 18vw, 280px); padding: var(--s3); border-radius: var(--r-l); background: var(--card); }
.pg-fcard .mono, .pg-step .mono { font-family: var(--mono); font-size: 13px; color: var(--text-faint); }
.pg-fcard h3, .pg-step h3 { margin-top: auto; font-size: clamp(19px, 1.5vw, 22px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.pg-fcard p, .pg-step p { font-size: 15px; line-height: 1.45; color: var(--text-muted); text-wrap: pretty; }
.pg-step--cta { justify-content: space-between; background: var(--bg-inverse); color: var(--text-inverse); }
.pg-step--cta p.mono { color: var(--text-inverse-muted); font-size: 13px; }
.pg-modes { margin-top: var(--sec); }
.pg-modes-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.pg-modes-cols b { display: block; font-size: 18px; font-weight: 500; color: var(--text-inverse); margin-bottom: 8px; }
.pg-modes-cols p { font-size: 15px; line-height: 1.5; color: var(--text-inverse-muted); }
.pg-modes-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--surface-inverse); }
.pg-modes-foot .mono { font-family: var(--mono); font-size: 13px; color: var(--text-inverse-muted); }
.pg-modes .night-in { grid-template-columns: minmax(0, 1fr); }
.pg-modes .night-copy { max-width: 680px; }
.pg-pstrip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 3vw, 48px); border-radius: var(--r-xl); background: var(--card); }
.pg-pstrip-p { display: flex; flex-direction: column; gap: 6px; }
.pg-pstrip-p b { font-weight: 500; font-size: clamp(64px, 7vw, 112px); line-height: .9; letter-spacing: -.05em; }
.pg-pstrip-p span { font-size: 15px; color: var(--text-muted); }
.pg-pstrip-t p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--text-secondary); max-width: 34em; margin-bottom: var(--s2); }

/* ---------- 404 ---------- */
.pg-nf { padding-top: clamp(140px, 16vw, 220px); min-height: 72svh; }
.pg-nf .lead { margin-top: var(--s3); }
.pg-nf .ctas { margin-top: var(--s4); }
.pg-nf-links { list-style: none; padding: 0; margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }

/* ---------- small screens ---------- */
@media (max-width: 999px) {
  .pg-pstrip { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .pg-hero { padding-top: 104px; }
  .pg-filter { padding: 8px 0; }
  .pg-chips { margin-top: 0; }
  .pg-group { scroll-margin-top: 120px; }
  .pg-group-h { flex-direction: column; gap: 6px; }
  .pg-card { min-height: 0; border-radius: 20px; }
  .pg-card-c { padding: var(--s2); }
  .pg-card-c h3 { padding-top: 8px; }
  .pg-st, .pg-card--v .pg-st { top: var(--s2); right: var(--s2); }
  .pg-card--v .pg-card-c { padding-top: 12px; }
  .pg-poster { border-radius: 20px 20px 0 0; }
  .pg-play { left: 12px; top: 12px; height: 40px; font-size: 14px; }
  .pg-hero .ctas > .cta, .pg-hero .ctas > .btn { flex: 1 1 100%; }
  .pg--support .pg-h1, .pg--privacy .pg-h1, .pg--terms .pg-h1, .pg--delete-account .pg-h1 { font-size: clamp(30px, 8.4vw, 44px); }
  .pg-play-i { width: 28px; height: 28px; }
  .pg-lb { padding: 56px 16px 16px; }
  .pg-lb-x { top: -50px; }
  .pg-lb.is-v .pg-lb-box { width: min(100%, calc((100svh - 150px) * 9 / 16)); }
  .pg-toc { padding: var(--s2); }
  .pg-prose { font-size: 16px; }
  .pg-formcard { border-radius: var(--r-l); }
  .pg-media--hero { aspect-ratio: 4 / 5; border-radius: var(--r-l); }
  .pg-band { aspect-ratio: auto; display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--card); }
  .pg-band picture { display: block; position: relative; aspect-ratio: 4 / 3; }
  .pg-band-card { position: static; max-width: none; box-shadow: none; background: var(--card); border-radius: 0; padding: var(--s2); }
  .pg-fcard, .pg-step { min-height: 0; padding: var(--s2); border-radius: 20px; }
  .pg-fcard h3, .pg-step h3 { margin-top: var(--s2); }
  .pg-modes-cols { grid-template-columns: minmax(0, 1fr); }
  .pg-close--solo .close-copy { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; }
  .pg-close--solo .close-copy > div:first-child { flex: none; }
}
/* phones: the 9:16 poster (the phone UI of the film, <picture> in catalog.html), framed 4:5 from the top so the
   app screen stays large and readable; the whole vertical film opens in the lightbox */
@media (max-width: 599px) {
  .pg-poster-m { aspect-ratio: 4 / 5; }
  .pg-poster img { object-position: 50% 0; }
  /* the pill sits bottom left here, off the phone's status bar / Dynamic Island (reviewer 2026-10-18 tg2) */
  .pg-play { top: auto; bottom: 12px; }
}
/* «В разработке» sits in the text column, on its own line above the title, never over it (reviewer 2026-10-18 rev5) */
.pg-card-c > .pg-st { position: static; display: inline-flex; width: fit-content; margin-bottom: 2px; }
.pg-card-c > .pg-st + h3 { padding-top: 0; }

/* ---------- catalog: share a card (Nick 2026-11-03). A round light button in the media's top-right corner, the same
   surface and shadow as the play pill; the play pill keeps the top-left. A card opened by its link is marked once, by its fill: site cards keep fills, never outlines (D-386, D-424). ---------- */
.pg-share { position: absolute; z-index: 1; top: var(--s2); right: var(--s2); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-default); color: var(--text-primary); box-shadow: var(--elev-2); cursor: pointer; transition: transform .3s var(--ease); }
.pg-share .ico { width: 20px; height: 20px; }
@media (hover: hover) { .pg-share:hover { transform: translateY(-2px); } }
.pg-share:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
@keyframes pg-hit { 0%, 55% { background-color: var(--surface-pressed); } 100% { background-color: var(--card); } }
.pg-card.is-hit { animation: pg-hit 2.6s var(--ease) both; }
@keyframes pg-hit-ill { 0%, 55% { background-color: var(--surface-pressed); } 100% { background-color: var(--bg-subtle); } }
.pg-card.is-hit .pg-ill { animation: pg-hit-ill 2.6s var(--ease) both; }
.pg-toast { position: fixed; z-index: 210; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 12px; padding: 12px 20px; border-radius: 999px; background: var(--bg-inverse); color: var(--text-inverse); font-size: 15px; font-weight: 500; box-shadow: var(--elev-2); opacity: 0; pointer-events: none; transition: opacity .25s, translate .3s var(--ease); }
.pg-toast.is-on { opacity: 1; translate: -50% 0; }
@media (max-width: 759px) { .pg-share { top: 12px; right: 12px; width: 40px; height: 40px; } }
