/* «Кино» — a streaming service's front page after dark (site-templates/README.md). The page is the screen: near black,
   the pictures lit on it. The one loud thing is the billboard — «Свой сценарий»'s own example across the whole width from
   the very top, under a see-through top bar, sinking into black, the site's title over its foot in tall capitals; the
   scenarios come under it as rows of posters. Red is «make it» and nothing else: the main keys, «Создать», «Хит», the
   «В эфире» light. White is the second key (the free try); gold is the coin. Type: Oswald for titles and names, in
   capitals and set tight; Manrope for reading and numbers. The skeleton is Prod's: the same partials and app.js, every
   class as there — this file only dresses them. Phone first. */
@font-face { font-family: Oswald; src: url(fonts/oswald.woff2) format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/manrope-cyrillic.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url(fonts/manrope-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --set: #070708; --deck: #141416; --deck-2: #1f1f23; --paper: #f6f6f7; --fog: #a1a1aa; --tally: #ff2b45; --go: #4ade80;
  --ink: #070708; --coin: #ffc53d; --coin-deep: #8a5a00; --line: rgb(255 255 255 / .09); --scrim: rgb(7 7 8 / .92); --shade: rgb(0 0 0 / .55);
  /* The red under white words: a shade deeper than the accent, so «Загрузить фото» on it reads (4.7:1). */
  --red-key: #e5132f; --glass: rgb(255 255 255 / .12); --glass-line: rgb(255 255 255 / .16); --soft: #d4d4d8;
  --display: Oswald, "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; --sans: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  --hud: Manrope, "Segoe UI", system-ui, sans-serif; --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --frame: 12px; --tile: 8px; --key: 8px; --top: 58px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; background: var(--set); color: var(--paper); font: 500 16px/1.5 var(--sans); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
:is(.cat-kinds button, .cat-subs button, .pill):focus-visible { outline-offset: -2px; }
/* Every scrolling strip holds its own hidden words: one that does not lets them out past the screen's edge. */
:is(.reels, .takes-row, .variants, .pills, .cat-subs, .cat-kinds, .reel) { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip:focus { top: 10px; }
/* A credit: a gold coin with the spark cut out (partials/cr.html) — the only gold on the page. */
.cr { width: 1em; height: 1em; fill: var(--coin); vertical-align: -.14em; flex: 0 0 auto; }
svg { flex: 0 0 auto; }

/* Keys: red records (the action of the moment), the dark key does the rest, a text key is the way out. Rectangles with
   soft corners, as a camera's buttons — no pills. */
.go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--key);
  background: var(--tally); color: var(--ink); font: 800 16px/1.15 var(--sans); text-align: center; text-decoration: none; transition: transform .12s, filter .15s; }
.go:active { transform: scale(.97); }
.go:disabled { opacity: .5; cursor: default; }
.go .cr { fill: var(--ink); }
/* On a light key (a chosen package, quality, chip) the coin a deeper gold. */
:is(.pack, .opts button, .chips button, .cat-subs button, .kit-chip span)[aria-pressed="true"] .cr, .acc-block .go .cr { fill: var(--coin-deep); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--key);
  background: var(--deck-2); color: var(--paper); font: 700 15px/1.15 var(--sans); text-decoration: none; }
.ghost:disabled { opacity: .5; }
.small { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.wide { width: 100%; }
.text-btn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--paper); font-weight: 650; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: 4px; }
/* The record light: a white dot on red, a red dot on dark. */
.rec-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgb(255 255 255 / .28); }
.rec-btn { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--paper); transition: transform .12s; }
.rec-btn > span { width: 28px; height: 28px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 14px rgb(255 43 69 / .55); }

/* The viewfinder: four corner marks inside a frame (.vf::after), and the display (partials/hud.html): «REC» with its
   blinking light, the timecode of the clip (app.js). Its corners close in once, as a camera finds focus. */
.vf { position: relative; isolation: isolate; }
.vf::after, .drop::before { content: ""; position: absolute; pointer-events: none; background-repeat: no-repeat;
  background-image: linear-gradient(var(--cc) 0 0), linear-gradient(var(--cc) 0 0), linear-gradient(var(--cc) 0 0), linear-gradient(var(--cc) 0 0),
    linear-gradient(var(--cc) 0 0), linear-gradient(var(--cc) 0 0), linear-gradient(var(--cc) 0 0), linear-gradient(var(--cc) 0 0);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-size: var(--cl) var(--cw), var(--cw) var(--cl), var(--cl) var(--cw), var(--cw) var(--cl), var(--cl) var(--cw), var(--cw) var(--cl), var(--cl) var(--cw), var(--cw) var(--cl); }
.vf::after { inset: 12px; z-index: 4; --cc: rgb(255 255 255 / .9); --cl: 20px; --cw: 2px; }
.studio.vf::after { animation: focus 1s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes focus { from { inset: 34px; opacity: 0; } 60% { opacity: 1; } }
.hud { position: absolute; top: 22px; left: 24px; right: 24px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--paper); font: 700 11px/1 var(--hud); letter-spacing: .06em; text-shadow: 0 1px 6px rgb(0 0 0 / .6); pointer-events: none; }
.hud-rec { display: inline-flex; align-items: center; gap: 6px; }
.hud-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 8px var(--tally); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hud-tc { font-variant-numeric: tabular-nums; opacity: .92; }

/* Top */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: var(--top); padding: 0 16px;
  background: rgb(7 7 8 / .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; text-decoration: none; }
/* The way home as high as the top's keys to tap (the slate is 34 px). */
.brand::after { content: ""; position: absolute; inset: -4px 0; }
/* No logo: the first letter on a slate, the clapper's red stripe along its top edge (2026-10-29: a red dot on its corner
   read as an unread badge). */
.brand-mark { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; padding-top: 4px; overflow: hidden; border-radius: 9px; background: var(--paper); color: var(--ink);
  font: 800 16px/1 var(--display); }
.brand-mark::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--tally) 0 4px, var(--ink) 4px 7px); }
.brand-logo { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand-name { overflow: hidden; font: 700 15px/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.top-nav, .top-make { display: none; }
.aud { display: flex; flex: 0 0 auto; padding: 3px; border-radius: 12px; background: var(--deck-2); }
/* Each a finger's width: the key as drawn, its touch area out to the pill's edge (40 px; the two never overlap). */
.aud button { position: relative; display: grid; place-items: center; width: 38px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--fog); }
.aud button::after { content: ""; position: absolute; inset: -3px 0; }
.aud button:first-child::after { left: -3px; }
.aud button:last-child::after { right: -3px; }
.aud svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.aud button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.wallet { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; min-width: 44px; height: 40px; padding: 0 12px 0 10px; border: 0; border-radius: 12px; background: var(--deck-2);
  color: var(--paper); font: 650 14px/1 var(--display); font-variant-numeric: tabular-nums; }
.wallet .cr { width: 17px; height: 17px; }
.wallet-n:empty { display: none; }

.main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 12px 16px calc(112px + env(safe-area-inset-bottom)); }
.row-title { margin: 0 0 12px; font: 700 19px/1.15 var(--display); letter-spacing: -.015em; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-more { position: relative; color: var(--fog); font-size: 14px; font-weight: 650; text-underline-offset: 4px; }
/* A small word that is a link («Все», «Все примеры»): its look as it is, its touch area at least 40 px high around it. */
:is(.row-more, .create-all)::after { content: ""; position: absolute; inset: -12px -8px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 10px; border-radius: 8px; background: var(--deck-2); font-size: 13px; font-weight: 750; }
.cost-n { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ph { width: 34%; height: 34%; fill: none; stroke: rgb(255 255 255 / .28); stroke-width: 1.6; stroke-linecap: round; }

/* The dock: floating over the page, the main screens, «Создать» as the record button raised in the middle. */
.dock { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 25; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  height: 64px; padding: 0 4px 6px; border-radius: 22px; background: rgb(20 20 22 / .9); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgb(0 0 0 / .45); }
/* Each the dock's whole height to tap (its icon and word at the foot, as drawn). */
.dock-tab, .dock-rec { position: relative; display: grid; align-self: stretch; align-content: end; justify-items: center; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; color: var(--fog);
  font: 700 11px/1.1 var(--sans); text-decoration: none; }
.dock-tab span, .dock-rec > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The current tab: the page's, or the main screen's on top — app.js sets aria-current (2026-11-02; it was lit by
   body:has(#…[open]), and «Главная» stayed lit under a screen). */
.dock-tab[aria-current="page"] { color: var(--paper); }
.dock-tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 11px; width: 18px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tally); }
.dock-rec { color: var(--paper); }
.dock-rec-ring { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -22px; border-radius: 50%; background: var(--set); box-shadow: inset 0 0 0 3px var(--paper), 0 6px 18px rgb(0 0 0 / .45); transition: transform .12s; }
.dock-rec-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 16px rgb(255 43 69 / .6); }
.dock-rec:active .dock-rec-ring { transform: scale(.94); }
.is-detail .dock { display: none; }
.is-missing .dock, .is-missing .wallet, .is-missing .top-make, .is-missing .aud { display: none; }
body.is-missing .main { padding-bottom: 40px; }
body.is-detail .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* The home page: the green light, the viewfinder, the strip of ways in, «Примеры». */
.offer { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 10px 10px 16px; border: 0; border-radius: var(--tile); background: var(--deck);
  color: var(--paper); text-align: left; text-decoration: none; box-shadow: inset 0 0 0 1px rgb(74 222 128 / .3); }
.offer-light { position: relative; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--go); box-shadow: 0 0 12px rgb(74 222 128 / .7); }
.offer-light::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(74 222 128 / .6); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.offer-text { display: grid; flex: 1 1 auto; min-width: 0; }
.offer-text strong { font: 700 15px/1.25 var(--display); letter-spacing: -.01em; }
.offer-text small { color: var(--fog); font-size: 13px; font-weight: 600; }
.offer-go { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: var(--deck-2); }
.offer-go svg, .shotrow-go svg, .menu-chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* «Свой сценарий» as the viewfinder: its example plays edge to edge, «REC» and the timecode on top, the title, then the line
   that types out ideas with the record button. A run takes the example's place. */
/* Its height set outright: a min-height with an aspect ratio would widen it past the screen. */
.studio { display: flex; flex-direction: column; justify-content: flex-end; height: clamp(470px, calc((100vw - 32px) * 1.25), 640px); margin-top: 12px; overflow: hidden;
  border-radius: var(--frame); background: var(--deck); }
.offer[hidden] + .studio { margin-top: 0; }
.studio-bg, .studio-bg > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.studio-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(7 7 8 / .45), transparent 18%, transparent 58%, var(--scrim) 97%); }
html[data-site-mode="edit"] .only-animate, html[data-site-mode="animate"] .only-edit, html:not([data-site-mode]) .only-edit { display: none; }
/* A mode with no picture at all (no example of its own, no video scene's to borrow — partials/studio.html): the frame lit
   softly, as an effect's page without an example, never a black hole. */
html[data-site-mode="animate"] .studio-bg:not(:has(> .only-animate:not([hidden]))), html[data-site-mode="edit"] .studio-bg:not(:has(> .only-edit:not([hidden]))) {
  background: radial-gradient(90% 70% at 30% 10%, #3a1219, transparent 70%), radial-gradient(80% 60% at 90% 90%, #18181c, transparent 70%); }
/* Its name and «Видео / Фото» on one line at the foot: the picture above them stays clear. */
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.studio-title { min-width: 0; margin: 0; font: 750 16.5px/1.15 var(--display); letter-spacing: -.015em; text-shadow: 0 1px 14px rgb(0 0 0 / .55); text-wrap: balance; }
.toggle { display: inline-flex; flex: 0 0 auto; padding: 3px; border-radius: 12px; background: var(--shade); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--fog); font-size: 14px; font-weight: 750; }
.toggle button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.toggle button[aria-pressed="true"], .toggle button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.studio .toggle button { min-height: 32px; padding: 0 11px; font-size: 13px; }
/* Small in the frame, a finger's height to tap: 40 px up and down past the switch's edge. */
.studio .toggle button { position: relative; }
.studio .toggle button::after { content: ""; position: absolute; inset: -4px 0; }
.toggle-wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 0 0 14px; background: var(--set); }
.toggle-wide button { min-height: 46px; font-size: 15px; }
/* The foot stays inside the frame's corner marks. */
/* One column as wide as the frame: the line typing an idea (nowrap) once widened it, and «Фото» went past the frame's edge. */
.studio-foot { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 22px 24px; }
.ask { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 8px 8px 8px 14px; border: 0; border-radius: 16px; background: rgb(7 7 8 / .7);
  color: var(--paper); text-align: left; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ask-idea svg { width: 18px; height: 18px; fill: var(--go); }
.ask-text { flex: 1 1 auto; min-width: 0; overflow: hidden; color: rgb(255 255 255 / .86); font-size: 14.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ask-price { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; font: 650 13px/1 var(--display); font-variant-numeric: tabular-nums; }
.ask-price:empty { display: none; }
.ask:active .rec-btn { transform: scale(.93); }
html:is([data-site-step="upload"], [data-site-step="choose"]) .home .studio { cursor: pointer; }
.after { display: grid; gap: 8px; }
.after-note { margin: 0; color: var(--fog); font-size: 13.5px; line-height: 1.4; }
.studio .after-note { color: var(--paper); }
.oops { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 43 69 / .14); color: #ffc9cf; font-size: 14px; line-height: 1.4; box-shadow: inset 0 0 0 1px rgb(255 43 69 / .4); }
.oops .text-btn { min-height: 32px; color: inherit; }

/* What the visitor made, over the frame: the result on its own blur; while it runs a timeline and its playhead. */
.out { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.out > img, .out > video { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; }
.out-fill { object-fit: cover; filter: blur(28px) saturate(1.3) brightness(.55); transform: scale(1.15); }
.out-pic { object-fit: contain; object-position: 50% 0; }
.out-video { background: var(--set); }
.out-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 32px; text-align: center; background: rgb(7 7 8 / .55); }
.out-title { margin: 6px 0 0; font: 800 26px/1.1 var(--display); letter-spacing: -.03em; }
.out-title::after { content: "…"; }
.out-note { max-width: 260px; margin: 0; color: var(--paper); opacity: .82; font-size: 14px; }
.out-line { position: relative; display: block; width: 168px; height: 18px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .35) 0 1px, transparent 1px 12px) 0 100% / 100% 7px no-repeat, linear-gradient(rgb(255 255 255 / .18) 0 0) 0 100% / 100% 1px no-repeat; }
.out-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--tally); box-shadow: 0 0 8px var(--tally); animation: playhead 1.8s linear infinite; }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(166px); } }
.out::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--scrim)); pointer-events: none; }
.out:not(:has(> img:not([hidden]), > video:not([hidden])))::after { display: none; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .studio-head { display: none; }
html:is([data-site-step="choose"], [data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .studio-bg { visibility: hidden; }
/* The home card shows the run of «Свой сценарий»: its example stays while a photo only waits (the photo is in the card). */
.home .studio .out [data-kit-src="photo"] { display: none !important; }
html[data-site-step="choose"] .home .studio-bg { visibility: visible; }
html[data-site-step="preview"] .studio .out, html[data-site-step="result"] .studio .out { position: relative; flex: 1 1 auto; min-height: 0; }
/* The free trial's card and a scene's run an effect: «Свой сценарий» behind them stays as it was. */
html[data-site-mode="effect"] .home .studio .out { display: none; }
html[data-site-mode="effect"] .home .studio-bg { visibility: visible; }

/* «Что снимаем»: the four ways in as tall frames of one strip. */
.takes { margin-top: 30px; }
.takes-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 16px; scrollbar-width: none; }
.takes-row::-webkit-scrollbar { display: none; }
.take { position: relative; display: block; aspect-ratio: 3 / 4.3; overflow: hidden; border-radius: var(--tile); background: var(--deck); color: var(--paper); text-decoration: none; scroll-snap-align: start; }
.take-media, .take-media > img, .take-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.take-media > .ph { position: absolute; inset: 0; width: 34%; height: 34%; margin: auto; }
.take::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .9)); pointer-events: none; }
.take-text { position: absolute; left: 12px; right: 10px; bottom: 12px; z-index: 2; display: grid; gap: 3px; }
.take-kind { display: inline-flex; align-items: center; gap: 5px; color: var(--fog); font-size: 11.5px; font-weight: 750; }
.take-kind svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.take-title { font: 700 15px/1.15 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.take .cost { font-size: 12.5px; font-weight: 750; color: rgb(255 255 255 / .86); }
.take-tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 8px; border-radius: 7px; background: var(--tally); color: var(--ink); font-size: 11.5px; font-weight: 800; }
.take-count { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 7px; background: var(--shade);
  font: 650 12px/1.2 var(--display); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.take-count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* «Примеры» */
.catalog { margin-top: 32px; scroll-margin-top: calc(var(--top) + 8px); }
.catalog-title { margin-bottom: 4px; }
.cat-bar { position: sticky; top: var(--top); z-index: 12; display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 8px 16px; background: rgb(7 7 8 / .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cat-kinds { display: flex; flex: 1 1 auto; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cat-kinds::-webkit-scrollbar { display: none; }
/* Rows of chips — the sections' pills, «Примеры»'s kinds and sections, the filters' chips (app.js ROWS): one line that
   scrolls sideways, never wrapping (2026-10-29: three lines of sections); no scrollbar — touch, a trackpad, shift+wheel
   and Tab scroll it —, snapping lightly to a chip; an edge fades only where more is behind it (app.js fades). */
:is(.pills, .cat-subs, .cat-kinds, .chips) { position: relative; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; }
:is(.pills, .cat-subs, .cat-kinds, .chips)::-webkit-scrollbar { display: none; }
:is(.pills, .cat-subs, .cat-kinds, .chips) > * { flex: 0 0 auto; scroll-snap-align: start; }
:is(.pills, .cat-subs) { scroll-padding-inline: 16px; }
:is(.pills, .cat-subs, .cat-kinds, .chips).fade-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
:is(.pills, .cat-subs, .cat-kinds, .chips).fade-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
:is(.pills, .cat-subs, .cat-kinds, .chips).fade-start.fade-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px calc(100% - 28px), transparent); }
/* The kinds as an editor's tabs: the chosen one has the red playhead under it. */
.cat-kinds button { position: relative; flex: 0 0 auto; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--fog); font-size: 15px; font-weight: 750; white-space: nowrap; }
.cat-kinds button[aria-pressed="true"] { color: var(--paper); }
.cat-kinds button[aria-pressed="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--tally); }
.cat-round { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: var(--deck-2); color: var(--paper); }
.cat-round svg, .cat-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cat-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); }
.cat-search { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; height: 42px; padding: 0 4px 0 12px; border-radius: 12px; background: var(--deck-2); }
.cat-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; color: var(--paper); font-size: 16px; outline: none; }
.cat-search input::placeholder { color: var(--fog); }
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--paper); }
.catalog.is-searching .cat-kinds, .catalog.is-searching [data-cat-search-open] { display: none; }
.cat-subs { display: flex; gap: 6px; min-height: 40px; margin: 2px -16px 0; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
/* A chip as drawn (36 px), its touch area 40 px: into the row's own edge, where the scrolling does not cut it. */
.cat-subs button { position: relative; }
.cat-subs button::after { content: ""; position: absolute; inset: -2px 0; }
.cat-subs::-webkit-scrollbar { display: none; }
.cat-subs.is-blank { visibility: hidden; }
.cat-subs button, .chips button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--deck-2); color: var(--paper); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cat-subs button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.chips button .cr { margin-right: 1px; }
.cat-more { height: 1px; }
.cat-empty { display: grid; justify-items: start; gap: 6px; padding: 26px 0 8px; }
.cat-empty-title { margin: 0; font: 700 18px/1.2 var(--display); }
.cat-empty-lead { margin: 0 0 6px; color: var(--fog); font-size: 14.5px; }

/* A kind chosen: its own frame on top, then the cards. On the home page what is above goes. */
.kind { display: grid; gap: 14px; margin-bottom: 26px; }
.kind:not([hidden]) { animation: rise-in .28s cubic-bezier(.3, .7, .2, 1); }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
.kind-shot { aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--frame); background: var(--deck); }
.kind-media, .kind-media > img, .kind-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.kind-shot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgb(7 7 8 / .45), transparent 30%); pointer-events: none; }
.kind-before, .before-chip { position: absolute; left: 22px; bottom: 22px; z-index: 5; width: 23%; max-width: 110px; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border-radius: 12px;
  box-shadow: 0 0 0 2px var(--paper), 0 10px 26px rgb(0 0 0 / .5); }
.kind-before img, .before-chip img { width: 100%; height: 100%; object-fit: cover; }
.kind-before > span, .before-chip figcaption, .card-before > span, .hold-word { position: absolute; left: 5px; bottom: 5px; padding: 1px 7px; border-radius: 6px; background: var(--shade); color: var(--paper);
  font-size: 11.5px; font-weight: 750; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kind-text { display: grid; justify-items: start; gap: 10px; }
.kind-title { margin: 0; font: 800 24px/1.05 var(--display); letter-spacing: -.025em; }
.kind-lead { max-width: 36em; margin: 0; color: var(--fog); font-size: 15px; line-height: 1.5; }
.home.is-kind > .offer, .home.is-kind > .studio, .home.is-kind > .takes { display: none !important; }
.home.is-kind > .catalog { margin-top: 0; }
/* A run of «Свой сценарий» started from its card (which closes) always has its viewfinder in sight: on the home page with a
   kind of «Примеры» chosen it comes back, on «Готовые сценарии» it shows under the sections while it runs and with the result.
   An idea's card of «Примеры» (#scene) shows its own run: not behind it, only once it is closed on a run still going. */
.page-scenes > .studio { display: none; margin: 0 0 24px; }
html:is([data-site-mode="animate"], [data-site-mode="edit"]):is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not(:has(#scene[open])) :is(.home.is-kind, .page-scenes) > .studio { display: flex !important; }

/* A card: its picture in a frame (its kind top left, «до» in the corner), its name and price under it. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.card { position: relative; display: grid; align-content: start; gap: 7px; min-width: 0; padding: 0; border: 0; background: none; color: var(--paper); text-align: left; text-decoration: none; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--tile); background: var(--deck); }
.card-media > img, .card-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.card-media.is-empty, .reel-media.is-empty, .variant-media.is-empty, .kind-media.is-empty { display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--deck) 0 14px, #1b1b1f 14px 28px); }
.card-media > .ph, .reel-media > .ph { position: static; }
.card-before { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 32%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 9px; box-shadow: 0 0 0 2px var(--set); }
.card-before img { width: 100%; height: 100%; object-fit: cover; }
.card-before > span { left: 3px; bottom: 3px; padding: 0 5px; font-size: 10px; }
.card-kind { position: absolute; top: 8px; left: 8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--shade);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card-kind svg { width: 17px; height: 17px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card[data-media="video"] .type-photo, .card[data-media="image"] .type-video { display: none; }
.card-title, .reel-title { display: -webkit-box; overflow: hidden; padding: 0 2px; font-size: 14px; font-weight: 750; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card-price { padding: 0 2px; color: var(--fog); font: 600 12px/1 var(--display); font-variant-numeric: tabular-nums; }
.card-price .cr { width: 13px; height: 13px; }
.card:focus-visible { outline: none; }
.card:focus-visible .card-media, .reel:focus-visible .reel-media { box-shadow: 0 0 0 2px var(--set), 0 0 0 4px var(--paper); }
/* «Свой сценарий» at the head of a kind's cards: a dashed red frame and the record button over its example. */
.card-studio .card-media { box-shadow: inset 0 0 0 1.5px var(--tally); }
.card-studio .card-media::after { content: ""; position: absolute; inset: 0; background: rgb(7 7 8 / .35); }
.card-rec { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.card-rec .rec-btn { width: 56px; height: 56px; background: var(--shade); }
.card-rec .rec-btn > span { width: 34px; height: 34px; }
.card-lead { padding: 0 2px; color: var(--fog); font-size: 12.5px; line-height: 1.3; }

/* Pages */
.page { padding-top: 6px; }
.page-title { margin: 6px 0 14px; font: 800 30px/1.04 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.page-lead { max-width: 34em; margin: 0 0 18px; color: var(--fog); }
.pills { display: flex; gap: 6px; margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--deck-2); color: var(--paper); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.pill[aria-current="page"] { background: var(--paper); color: var(--ink); }
.page-empty { display: grid; justify-items: start; gap: 4px; padding: 22px 0 24px; }
.lost { display: grid; place-items: center; width: 100%; max-width: 440px; aspect-ratio: 16 / 9; margin-bottom: 14px; overflow: hidden; border-radius: var(--frame); background: var(--deck); }
.lost-mark { font: 800 72px/1 var(--display); color: rgb(255 255 255 / .12); letter-spacing: -.04em; }
.doc-body { max-width: 42em; color: var(--fog); line-height: 1.7; }
.doc-body h2 { margin: 28px 0 8px; color: var(--paper); font: 700 19px/1.2 var(--display); letter-spacing: -.015em; }
.doc-body a { color: var(--paper); }
.page-scenes .catalog { margin-top: 20px; }

/* A scenario's page and a mode's page: the picture in the viewfinder, the rest under it, the bar at the foot. */
/* One column as wide as the screen: the strips inside it scroll, they never widen it. */
.item { display: grid; grid-template-columns: minmax(0, 1fr); }
.shot { position: relative; margin: -12px -16px 0; aspect-ratio: 4 / 5; max-height: 72vh; max-height: 72svh; overflow: hidden; background: var(--deck); }
.shot-media, .shot-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.shot-media:not(:has(> :not([hidden]))) { background: radial-gradient(90% 70% at 30% 10%, #3a1219, transparent 70%), radial-gradient(80% 60% at 90% 90%, #18181c, transparent 70%); }
.shot-before { opacity: 0; transition: opacity .18s; }
.shot.is-before .shot-before { opacity: 1; }
.shot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgb(7 7 8 / .5), transparent 22%, transparent 70%, rgb(7 7 8 / .55)); pointer-events: none; }
.shot .hud { left: auto; top: 38px; right: 28px; gap: 14px; }
.back-btn { position: absolute; top: 24px; left: 24px; z-index: 7; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--shade); color: var(--paper);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.back-btn svg, .bar-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hold { position: absolute; left: 22px; bottom: 22px; z-index: 7; width: 24%; max-width: 112px; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--deck);
  box-shadow: 0 0 0 2px var(--paper), 0 10px 26px rgb(0 0 0 / .5); color: var(--paper); touch-action: none; user-select: none; -webkit-user-select: none; }
.hold img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shot.is-before .hold { box-shadow: 0 0 0 3px var(--tally), 0 10px 26px rgb(0 0 0 / .5); }
html:is([data-site-step="choose"], [data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .hold { display: none; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .back-btn { display: none; }
.item-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 18px; }
.item-title { margin: 0; font: 800 27px/1.05 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.item-lead { margin: -4px 0 0; color: var(--fog); font-size: 15px; }
.item-body > .pills { margin-bottom: 0; }
.item-body .row-title { margin: 6px 0 -4px; font-size: 16px; }
.strip { margin-top: 34px; }
/* A scenario's own words at its page's foot (pages/effect.html): quiet, under «Похожие». */
.about { max-width: 44em; margin-top: 40px; }
.about-text, .about-steps { color: var(--fog); font-size: 14.5px; line-height: 1.6; }
.about-text { margin: 0; }
.about-steps { margin: 12px 0 0; padding-left: 1.4em; }
.about-steps li + li { margin-top: 4px; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 40%); gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { display: grid; align-content: start; gap: 7px; min-width: 0; color: var(--paper); text-decoration: none; scroll-snap-align: start; }
.reel-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--tile); background: var(--deck); }
.reel-media > img, .reel-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.reel[aria-current="page"] .reel-media { box-shadow: inset 0 0 0 2px var(--tally); }
/* «Варианты» of a mode: a strip of small frames; the one whose words are in the field is lit red. */
.variants { display: grid; grid-auto-flow: column; grid-auto-columns: 108px; gap: 8px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.variants::-webkit-scrollbar { display: none; }
.variant { display: grid; align-content: start; gap: 6px; padding: 0; border: 0; background: none; color: var(--paper); text-align: left; }
.variant-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--deck); }
.variant-media img { width: 100%; height: 100%; object-fit: cover; }
.variant-title { display: -webkit-box; overflow: hidden; font-size: 12.5px; font-weight: 700; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; hyphens: auto; }
.variant[aria-pressed="true"] .variant-media { box-shadow: inset 0 0 0 2.5px var(--tally); }
.variant-words { grid-auto-columns: auto; align-content: center; width: 200px; min-height: 76px; padding: 10px 12px; border-radius: 12px; background: var(--deck-2); }
.variant-words .variant-title { -webkit-line-clamp: 3; }
.variant-words[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--tally); }
.variants:has(.variant-words) { grid-auto-columns: 200px; }

/* The bar at the foot: the price big, what will be made as the camera's marks, and the record button. */
.run-bar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--deck); box-shadow: 0 -1px 0 var(--line); }
.item .run-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; }
.run-sum { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.run-price { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.run-price .cr { width: 19px; height: 19px; }
.run-price:empty { display: none; }
.run-sum small { display: -webkit-box; overflow: hidden; color: var(--fog); font-size: 12.5px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.run-sum small.run-marks { display: flex; flex-wrap: wrap; gap: 4px; }
.run-marks span { padding: 2px 6px; border-radius: 6px; background: var(--deck-2); color: var(--paper); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.run-go { flex: 0 0 auto; min-height: 54px; padding: 0 20px; }
.run-go .cr { width: 16px; height: 16px; }

/* «Свой сценарий»'s blocks, as a shot list. */
.block { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--line); }
.cmp-body .block, .sheet .block { background: rgb(255 255 255 / .035); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.block-label { margin: 0; font: 700 14.5px/1.2 var(--display); letter-spacing: -.01em; }
.block-hint { color: var(--fog); font-size: 12.5px; font-weight: 600; }
.block-sub { margin: 4px 0 -2px; color: var(--fog); font-size: 12.5px; font-weight: 700; }
.field-box { border-radius: 14px; background: var(--set); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.field-box:focus-within { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); }
.field-box textarea, .kit-textarea { display: block; width: 100%; min-height: 112px; padding: 12px 14px 6px; border: 0; background: none; color: var(--paper); font: 500 16px/1.45 var(--sans); resize: none; outline: none; }
.field-box textarea::placeholder, .kit-textarea::placeholder, .field::placeholder { color: rgb(161 161 170 / .85); }
.field-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 8px; }
.idea-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--deck-2); color: var(--paper); font-size: 13px; font-weight: 750; }
.idea-btn svg { width: 16px; height: 16px; fill: var(--go); }
/* «✦ Подставить идею» as drawn (36 px), a finger's height to tap. */
.idea-btn::after { content: ""; position: absolute; inset: -2px 0; }
.field-count { margin-left: auto; color: var(--fog); font: 700 11px/1 var(--hud); font-variant-numeric: tabular-nums; }
.field-box.is-asking { box-shadow: inset 0 0 0 1.5px var(--tally), 0 0 0 4px rgb(255 43 69 / .18); animation: nod .45s ease-in-out; }
@keyframes nod { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.field-ask { margin: 0; color: #ffb3bd; font-size: 13.5px; font-weight: 650; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* The lengths in one row, as many as the chosen clip offers (a video scene's stop where its model does: the kit hides the rest). */
.opts-lengths { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.opts-formats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts button { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 54px; padding: 6px 2px; border: 0; border-radius: 12px; background: var(--deck-2); color: var(--paper);
  font-size: 13px; font-weight: 750; line-height: 1.15; }
.opts .q-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opts .q-price { display: inline-flex; align-items: center; gap: 2px; color: var(--fog); font: 550 11px/1 var(--display); font-variant-numeric: tabular-nums; }
.opts .q-price .cr { width: 11px; height: 11px; }
.opts button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.opts button[aria-pressed="true"] .q-price { color: rgb(7 7 8 / .7); }
.opts-formats button { min-height: 58px; }
.opts-fixed { color: var(--fog); font-size: 14px; font-weight: 700; }
/* A video scene's page: the clip's quality, length and frame, each row under its name (pages/effect.html). */
.clip-row { display: grid; gap: 8px; }
/* Each frame drawn as its outline. */
.q-frame { display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.q-frame[data-frame="9:16"] { width: 11px; height: 19px; }
.q-frame[data-frame="2:3"] { width: 13px; height: 19px; }
.q-frame[data-frame="3:4"] { width: 14px; height: 18px; }
.q-frame[data-frame="1:1"] { width: 17px; height: 17px; }
.q-frame[data-frame="4:3"] { width: 19px; height: 14px; }
.q-frame[data-frame="3:2"] { width: 20px; height: 13px; }
.q-frame[data-frame="16:9"] { width: 22px; height: 12px; }

/* The photo: «Загрузить фото» as a frame with the viewfinder's corners to drop it in, the picked one small. */
.drop { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .045);
  color: var(--paper); text-align: left; transition: background .2s; }
.drop::before { inset: 0; --cc: rgb(255 255 255 / .7); --cl: 14px; --cw: 2px; border-radius: inherit; }
.drop:active, .drop.is-over { background: rgb(255 43 69 / .12); }
.drop:disabled { opacity: .55; }
.drop-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--tally); }
.drop-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.drop-text { display: grid; gap: 1px; }
.drop-title { font-size: 16px; font-weight: 800; }
.drop-note { color: var(--fog); font-size: 12.5px; font-weight: 600; }
.only-optional, .photo-optional .only-needed { display: none; }
.photo-optional .only-optional { display: inline; }
[data-slot-optional] .only-needed { display: none; }
[data-slot-optional] .only-optional { display: inline; }
/* A later photo's drop is quieter than the first one's: its plus on the dark key, not the red. */
.drop-more .drop-icon { background: var(--deck-2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.drop-more .drop-icon svg { stroke: var(--paper); }
.picked { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 16px; background: rgb(74 222 128 / .1); box-shadow: inset 0 0 0 1.5px rgb(74 222 128 / .5); }
.picked-thumb { position: relative; flex: 0 0 auto; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 0; border-radius: 11px; background: var(--deck-2); }
.picked-thumb img { width: 100%; height: 100%; object-fit: cover; }
.picked-text { display: grid; flex: 1 1 auto; min-width: 0; }
.picked-text strong { font-size: 15px; font-weight: 800; }
.picked-text small { color: var(--fog); font-size: 12.5px; }
.picked-again { flex: 0 0 auto; white-space: nowrap; }
.tips-wrap { margin-top: 8px; }
/* «Качество: 1K / 2K» under the photo and what fits (partials/photo.html): its name on the left, two of the clip's option
   tiles on the right — the lit one paper-white, 2K with its coins beside it. On the free try 2K is off, the reason under it. */
.res { margin-top: 10px; }
.res-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.res-name { margin: 0; }
.opts-res { flex: 0 1 200px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts-res button { min-height: 48px; }
.opts-res button:disabled { opacity: .45; cursor: not-allowed; }
.res-note { flex-basis: 100%; margin: 0; color: var(--fog); font-size: 12.5px; line-height: 1.35; }
/* What fits stands apart; what does not, together after a hairline. */
.tips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tip { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--fog); font-size: 12px; font-weight: 650; }
.tip-yes { color: var(--paper); }
.tip-yes + .tip-no { margin-left: 8px; padding-left: 16px; box-shadow: inset 1px 0 0 var(--line); }
.tip-pic { position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--deck-2); }
.tip-pic img, .tip-pic svg { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.tip-drawn svg { padding: 3px; fill: var(--fog); }
.tip-blur svg { filter: blur(1.4px); }
.tip-mark { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; color: var(--ink); font-size: 8.5px; font-weight: 900; line-height: 1; }
.tip-yes .tip-mark { background: var(--go); }
.tip-no .tip-mark { background: var(--tally); }
.photo-slot, .slot, .scene-photo { display: grid; gap: 8px; }
.more-photos, .scene-more { display: grid; gap: 14px; }
.more-photos:not(:has(.slot:not([hidden]))), .scene-more:not(:has(.slot:not([hidden]))) { display: none; }
.slot-head { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.slot-name { font-size: 14px; font-weight: 800; }
.slot-opt { color: var(--go); font-size: 12px; font-weight: 700; }
:not([data-slot-optional]) > .slot-head .slot-opt { display: none; }
[data-slot-waiting] > .slot-head { opacity: .55; }
.fx-words { padding: 0; background: none; box-shadow: none; }

/* The settings the kit draws (data-kit-params). */
.params { display: grid; gap: 14px; }
.params:empty { display: none; }
.kit-param { display: grid; gap: 8px; }
.kit-param-label { margin: 0; color: var(--fog); font-size: 13px; font-weight: 750; }
.kit-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-chip { position: relative; cursor: pointer; }
.kit-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kit-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 11px; background: var(--deck-2); font-size: 14.5px; font-weight: 700; }
.kit-chip input:checked + span { background: var(--paper); color: var(--ink); }
.kit-chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
.kit-select, .kit-text, .field { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--set); color: var(--paper); font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.kit-text:focus, .field:focus, .kit-select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--tally); }
/* A slider («Возраст»): its line as the browser draws it, its touch area a finger high. */
.kit-range { width: 100%; height: 40px; margin: 0; accent-color: var(--tally); }
.kit-range-value { font-weight: 800; }
.kit-words { padding: 0; }
.kit-textarea { min-height: 96px; border-radius: 12px; background: var(--set); box-shadow: inset 0 0 0 1px var(--line); }

/* Cards (dialogs): from the bottom on a phone; the tall ones take the screen. */
.sheet { width: 100%; max-width: 540px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: 26px 26px 0 0; background: var(--deck); color: var(--paper); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .22) transparent; }
.sheet::backdrop { background: rgb(0 0 0 / .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .32s cubic-bezier(.3, .7, .2, 1); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet:is(.sheet-small, .sheet-filters, .sheet-install)::before { content: ""; display: block; width: 40px; height: 4px; margin: -4px auto 14px; border-radius: 2px; background: rgb(255 255 255 / .2); }
.sheet-small { max-width: 440px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-title { margin: 0 0 8px; font: 800 22px/1.1 var(--display); letter-spacing: -.025em; }
.sheet-top .sheet-title { margin: 0; }
.sheet-text { margin: 0 0 14px; color: var(--fog); font-size: 15px; }
.sheet-text a { color: var(--paper); }
.sheet-hint { margin: 12px 0 0; color: var(--fog); font-size: 12.5px; line-height: 1.45; }
.sheet-status { margin: 0; color: var(--fog); font-size: 13.5px; }
.sheet-status:empty { display: none; }
.sheet-actions { display: grid; gap: 6px; }
.sheet-actions .text-btn { justify-self: center; }
.close { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: var(--deck-2); color: var(--paper); }
.close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sheet-full { height: 100vh; height: 100dvh; max-height: none; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 0; }
.sheet-full .sheet-top { position: sticky; top: 0; z-index: 8; margin: 0 -16px 14px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: rgb(20 20 22 / .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.age-mark { margin: 0 0 4px; color: var(--tally); font: 800 44px/1 var(--display); letter-spacing: -.04em; }
.sheet .oops { margin-top: 10px; }

/* «Бесплатная проба» and a scene's card: the example in the viewfinder on top, «до» in its corner, the rest under it, the
   bar at the foot. */
.sheet-free { height: 100vh; height: 100dvh; max-height: none; margin: auto auto 0; padding: 0; overflow: hidden; border-radius: 0; }
.sheet-free[open], .sheet-compose[open], .sheet-create[open] { display: flex; flex-direction: column; }
.free-shot { flex: 0 0 auto; height: 42%; min-height: 200px; overflow: hidden; background: var(--set); }
@media (max-height: 700px) { .free-shot { height: 34%; } }
/* A scenario's card and «Бесплатная проба» on a phone or a tablet (2026-10-30, the free one 2026-11-01): the example as
   tall as its own proportions make it at the card's width (app.js: --shot-ratio, its height ÷ width) — a 2:3 or 9:16 clip whole, or nearly, not cut at the
   bottom —, never lower than the frame a landscape one keeps, never more than about two thirds of the screen (the name,
   the photo and the button stay in sight); a short phone a little less. Unknown proportions: the frame as it was. A
   computer shows it whole on the left anyway. */
@media (max-width: 999px) {
  .sheet-free .free-shot { height: clamp(42%, calc(min(100vw, 540px) * var(--shot-ratio, 0)), 68%); }
}
@media (max-width: 999px) and (max-height: 700px) { .sheet-free .free-shot { height: clamp(34%, calc(min(100vw, 540px) * var(--shot-ratio, 0)), 56%); } }
.free-media, .free-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
/* A scenario with no example yet: the empty frame striped, as its card is. */
.free-media:not(:has(> :not([hidden]))) { background: repeating-linear-gradient(135deg, var(--deck) 0 14px, #1b1b1f 14px 28px); }
.free-shot::before { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 30%; background: linear-gradient(transparent, rgb(7 7 8 / .6)); pointer-events: none; }
.free-shot .hud { top: auto; bottom: 24px; left: auto; right: 26px; gap: 12px; }
.sheet-free .out [data-kit-src="photo"] { display: none !important; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .before-chip { display: none; }
.free-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 9; background: var(--shade); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.free-body { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; overflow: auto; overscroll-behavior: contain; padding: 14px 16px 16px; }
.free-light { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--go); font-size: 12.5px; font-weight: 800; }
.free-light .offer-light { width: 9px; height: 9px; }
.free-title { margin: 0; font: 800 22px/1.1 var(--display); letter-spacing: -.025em; }
.free-lead { margin: 0; font-size: 15.5px; line-height: 1.35; }
.free-lead strong { font-weight: 800; }
.scene-lead { color: var(--fog); font-size: 13.5px; line-height: 1.4; }
.free-note { margin: 0 0 4px; color: var(--fog); font-size: 13px; line-height: 1.4; }
.scene-type { justify-self: start; margin: 0; padding: 3px 8px; border-radius: 7px; background: var(--deck-2); color: var(--fog); font-size: 12px; font-weight: 800; }
.scene-type:empty { display: none; }
.sheet-scene:not([data-clip="yes"]) .scene-video { display: none; }
.scene-video { display: grid; gap: 8px; }
/* «1 фото бесплатно» beside «Создать бесплатно»: on two even lines when the key leaves it no room for one, never cut. */
.free-bar .free-bar-title { text-wrap: balance; }
.free-bar-title { font: 700 15.5px/1.15 var(--display); }
.free-go { padding: 0 18px; }
.consents { display: grid; gap: 6px; margin-top: 4px; }
.consent { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border-radius: 12px; background: var(--deck-2); font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.consent-box { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--fog); }
.consent-box svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.consent input:checked + .consent-box { background: var(--go); box-shadow: none; }
.consent input:checked + .consent-box svg { opacity: 1; }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--paper); outline-offset: 2px; }
.consent-text a { color: var(--paper); text-underline-offset: 3px; }
.consents.is-asking .consent:not(:has(input:checked)) { box-shadow: inset 0 0 0 1.5px var(--tally); background: rgb(255 43 69 / .16); animation: nod .45s ease-in-out; }

/* «Свой сценарий» as a card. */
.sheet-compose { height: 100vh; height: 100dvh; max-height: none; padding: 0; overflow: hidden; border-radius: 0; }
.cmp-shot { display: none; }
.cmp-top { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 10px; }
.cmp-top .sheet-title { margin: 0; }
.cmp-lead { margin: 4px 0 0; color: var(--fog); font-size: 13.5px; line-height: 1.4; }
.cmp-body { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; overflow: auto; overscroll-behavior: contain; padding: 4px 16px 16px; }

/* «Создать»: «Видео / Фото», then the ways as a shot list. */
.sheet-create .sheet-top { margin-bottom: 12px; }
.sheet-create[data-tab="animate"] [data-create-panel="edit"], .sheet-create[data-tab="edit"] [data-create-panel="animate"] { display: none; }
.create-panel { display: grid; gap: 12px; align-content: start; animation: rise-in .28s cubic-bezier(.3, .7, .2, 1); }
.create-lead { margin: 0; color: var(--fog); font-size: 14px; line-height: 1.45; }
.create-all { position: relative; color: var(--paper); font-weight: 750; text-underline-offset: 4px; white-space: nowrap; }
.shots { display: grid; gap: 10px; }
.shotrow { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 8px 12px 8px 8px; border: 0; border-radius: 18px;
  background: var(--deck-2); color: var(--paper); text-align: left; text-decoration: none; }
.shotrow-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--set); }
.shotrow-media > img, .shotrow-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.shotrow-media > .ph { position: absolute; inset: 0; margin: auto; }
.shotrow-text { display: grid; gap: 3px; min-width: 0; }
.shotrow-title { font: 700 15.5px/1.15 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; hyphens: auto; }
.shotrow-lead { color: var(--fog); font-size: 13px; line-height: 1.35; }
.shotrow-price { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; font: 600 12.5px/1 var(--display); }
.shotrow-go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--deck); }
.shotrow-go.is-rec { background: var(--tally); }
.shotrow-go .rec-dot { width: 12px; height: 12px; }

/* «История» as a contact sheet; «Популярное» as a chart. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kit-result { position: relative; padding: 0; overflow: hidden; aspect-ratio: 3 / 4; border: 0; border-radius: 10px; background: var(--set); }
.kit-result img { width: 100%; height: 100%; object-fit: cover; }
/* A result whose picture is gone (app.js): its tile striped as a card without an example, its name and date on it. */
.kit-result.is-empty { background: repeating-linear-gradient(135deg, var(--deck) 0 14px, #1b1b1f 14px 28px); }
.kit-result[data-when]::before { content: attr(data-when); position: absolute; left: 5px; bottom: 5px; z-index: 1; padding: 1px 6px; border-radius: 6px; background: var(--shade); color: var(--paper); font: 700 10px/1.5 var(--hud); }
.kit-result.is-video::after { content: ""; position: absolute; right: 7px; bottom: 7px; border-left: 9px solid var(--paper); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
/* A picture made 2K after its run: «2K» in its lower right corner (a clip has its mark there). */
.kit-result.is-2k::after { content: "2K"; position: absolute; right: 5px; bottom: 5px; z-index: 1; padding: 1px 6px; border-radius: 6px; background: var(--paper); color: var(--ink); font: 700 10px/1.5 var(--hud); }
.kit-result-name { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: -webkit-box; overflow: hidden; padding: 6px 7px 14px; background: linear-gradient(rgb(7 7 8 / .8), transparent);
  color: var(--paper); font-size: 11px; font-weight: 750; line-height: 1.25; text-align: left; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.acc-out { display: grid; gap: 10px; margin-bottom: 14px; }
.acc-out img, .acc-out video { width: 100%; max-height: 62vh; border-radius: 16px; background: var(--set); object-fit: contain; }
#history:not(.is-viewing) .acc-out { display: none !important; }
.history-empty { display: grid; justify-items: start; gap: 4px; }
/* An empty contact sheet: a dark empty frame waiting for its first take. */
.history-empty .lost { max-width: none; aspect-ratio: 16 / 8; margin-bottom: 10px; background: var(--set); }
.chart { counter-reset: none; }
.chart-item { position: relative; display: grid; }
.chart-rank { position: absolute; top: 4px; right: 8px; z-index: 3; color: transparent; font: 800 34px/1 var(--display); letter-spacing: -.04em; -webkit-text-stroke: 1.4px var(--paper); pointer-events: none;
  text-shadow: 0 2px 12px rgb(0 0 0 / .35); }
.chart-item:nth-child(-n+3) .chart-rank { color: var(--paper); -webkit-text-stroke: 0; }
.chart-item:first-child .chart-rank { color: var(--tally); }
.chart-all { display: flex; margin-top: 20px; }

/* «Фильтры» */
.flt { display: grid; gap: 10px; margin-top: 16px; }
.flt-title { margin: 0; color: var(--fog); font-size: 13px; font-weight: 750; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--set); }
.seg button { min-height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--fog); font-size: 14.5px; font-weight: 750; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.chips { display: flex; gap: 6px; padding: 2px 0; }
.chips button { display: inline-flex; align-items: center; min-height: 40px; }
.flt-bar { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px -18px calc(-22px - env(safe-area-inset-bottom));
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--deck); box-shadow: 0 -1px 0 var(--line); }
.flt-show { flex: 1 1 auto; max-width: 260px; }

/* «Пополнить баланс»: the steps as a timeline with a playhead, the packages, the ways, the waiting card. */
.topup-steps { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.topup-steps li { display: grid; flex: 1 1 0; gap: 7px; color: var(--fog); font-size: 12.5px; font-weight: 800; }
.topup-steps li::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); }
.topup-steps li.is-on, .topup-steps li:has(i:not([hidden])) { color: var(--paper); }
.topup-steps li.is-on::before, .topup-steps li:has(i:not([hidden]))::before { background: var(--tally); }
.topup-steps i { display: none !important; }
.topup-lead { margin: 0 0 12px; color: var(--fog); font-size: 13.5px; line-height: 1.45; }
.topup-offers { display: grid; gap: 6px; margin-bottom: 14px; }
.offer-chip { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(74 222 128 / .1); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .3); font-size: 13.5px; line-height: 1.35; }
.offer-chip b { color: var(--go); }
.offer-chip.is-promo { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line); }
.offer-ico { font-size: 18px; }
.offer-note { margin: 0; color: var(--fog); font-size: 12px; }
.topup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.topup-label { margin: 0 0 8px; font: 700 15px/1.2 var(--display); letter-spacing: -.01em; }
.topup-head .topup-label { margin: 0; }
.topup-rate { color: var(--fog); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
.pack { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 122px; padding: 16px 12px 12px; border: 0; border-radius: 16px; background: var(--deck-2); color: var(--paper);
  text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.pack-tag { position: absolute; top: -9px; left: 10px; padding: 3px 8px; border-radius: 6px; background: var(--tally); color: var(--ink); font-size: 10.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.pack.is-max .pack-tag { background: var(--go); }
.pack-total { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pack-total .cr { width: 17px; height: 17px; }
.pack-parts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.pack-sum { color: var(--fog); font-size: 12px; font-weight: 650; }
.pack-pct, .pack-gift { color: var(--go); font-size: 11.5px; font-weight: 800; }
.pack-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.pack-price { font-size: 15.5px; font-weight: 800; }
.pack-worth { color: var(--fog); font-size: 11.5px; font-weight: 650; }
.pack[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--tally); }
.pack[aria-pressed="true"] :is(.pack-sum, .pack-worth) { color: rgb(7 7 8 / .66); }
.pack[aria-pressed="true"] :is(.pack-pct, .pack-gift) { color: #15803d; }
.pack[aria-pressed="true"] .pack-foot { border-top-color: rgb(7 7 8 / .14); }
.promo { display: grid; gap: 8px; margin-top: 20px; }
.promo .topup-label { margin: 0; }
.promo-row { display: flex; gap: 8px; }
.promo-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--set); color: var(--paper); font: 700 16px/1 var(--sans); letter-spacing: .06em;
  box-shadow: inset 0 0 0 1px var(--line); }
.promo-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--tally); }
.promo-input::placeholder { color: rgb(161 161 170 / .7); }
.promo-go { flex: 0 0 auto; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--deck-2); color: var(--paper); font-size: 14.5px; font-weight: 800; }
.promo-note { margin: 0; color: var(--go); font-size: 13px; font-weight: 700; }
.promo-hint { margin: 0; color: var(--fog); font-size: 12.5px; }
.topup-bar { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 12px; margin: 20px -16px calc(-24px - env(safe-area-inset-bottom));
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--deck); box-shadow: 0 -1px 0 var(--line); }
.bar-sum { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.bar-total { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar-total .cr { width: 18px; height: 18px; }
.bar-sub { overflow: hidden; color: var(--fog); font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pay-go { flex: 0 0 auto; min-width: 128px; }
.bar-back { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; padding: 0; border: 0; border-radius: var(--key); background: var(--deck-2); color: var(--paper); }
/* The ways in their groups: a row each, the countries' cards as flag tiles two to a row (the sum under the name). */
.ways { display: grid; gap: 18px; }
.way-group { display: grid; gap: 8px; }
.way-group-title { margin: 0 2px; color: var(--fog); font: 700 11.5px/1.2 var(--hud); letter-spacing: .08em; text-transform: uppercase; }
.way-list { display: grid; gap: 8px; }
.is-cards .way-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way-note { margin: 0 2px; color: var(--fog); font-size: 12px; line-height: 1.35; }
.way { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; background: var(--deck-2); color: var(--paper);
  text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.way[aria-pressed="true"] { background: rgb(255 43 69 / .1); box-shadow: inset 0 0 0 2px var(--tally); }
.way-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--set); }
.way-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.way-text { display: grid; min-width: 0; }
.way-text b { font-size: 15px; font-weight: 800; }
.way-text small { color: var(--fog); font-size: 12.5px; line-height: 1.3; }
.way-price { display: grid; justify-items: end; gap: 3px; font: 650 14px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.way-cut { padding: 2px 6px; border-radius: 6px; background: var(--go); color: var(--ink); font: 800 11px/1.2 var(--sans); }
.way-ico svg.flag { width: 24px; height: 16px; border-radius: 3px; stroke: none; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
.way-tile { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 3px 10px; min-height: 62px; padding: 10px 12px; }
.way-tile .way-ico { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; }
.way-tile .way-ico svg.flag { width: 22px; height: 15px; }
.way-tile .way-price { justify-items: start; color: var(--fog); }
.way-tile .way-price:has(span:empty:last-child) { display: none; }
/* A country's card the package is too cheap or too dear for: dimmed, a lock and the packages it takes where its sum would
   be («от 10 $»); a press picks such a package (the kit). */
.way-lock { display: none; width: 12px; height: 12px; fill: currentColor; stroke: none; }
.way[aria-disabled="true"] { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.way[aria-disabled="true"] .way-ico, .way[aria-disabled="true"] .way-text { opacity: .5; }
.way[aria-disabled="true"] .way-ico { filter: grayscale(.6); }
.way[aria-disabled="true"] .way-price { display: flex; align-items: center; gap: 4px; color: var(--tally); font-size: 13px; }
.way[aria-disabled="true"] .way-lock { display: block; }
/* «Криптовалюта»'s coin under the ways: two keys — the coin and its network, its sum under them; the one picked ringed in
   red, as a way is. */
.coins { display: grid; gap: 8px; margin: 2px 0 6px; padding: 0 0 0 12px; border-left: 2px solid var(--tally); }
.coins-title { margin: 0; font-size: 13px; color: var(--fog); }
.coin-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.coin { display: grid; align-content: center; gap: 5px; min-width: 0; min-height: 60px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--deck-2);
  color: var(--paper); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.coin[aria-pressed="true"] { background: rgb(255 43 69 / .1); box-shadow: inset 0 0 0 2px var(--tally); }
.coin-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.coin-name b { font: 700 14px/1.2 var(--display); }
.coin-name small { color: var(--fog); font-size: 12px; font-weight: 650; white-space: nowrap; }
.coin-sum { overflow: hidden; font: 650 14px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.coin-sum:empty { display: none; }
.topup-sum { display: grid; margin: 16px 0 0; }
.topup-sum > div, .wait-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.topup-sum dt, .wait-rows dt { color: var(--fog); font-size: 13.5px; }
.topup-sum dd, .wait-rows dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.topup-sum .is-plus { color: var(--go); }
.topup-sum .is-total dd { display: inline-flex; align-items: center; gap: 3px; font: 800 18px/1 var(--display); }
#checkout[open] { display: flex; flex-direction: column; }
#checkout > .topup-body:not([hidden]), #checkout > .paying:not([hidden]), #checkout .topup-page:not([hidden]) { display: flex; flex: 1 0 auto; flex-direction: column; }
.paying { gap: 12px; }
.topup-page > .topup-bar, .paying > .topup-bar { margin-top: auto; }
.topup-page > .promo, .topup-page > .sheet-hint { margin-bottom: 20px; }
.wait-card { display: grid; justify-items: center; gap: 8px; padding: 26px 16px 22px; border-radius: 20px; background: var(--deck-2); text-align: center; }
.wait-clock { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--set); }
.wait-clock svg { width: 28px; height: 28px; fill: none; stroke: var(--tally); stroke-width: 2; stroke-linecap: round; }
.wait-title { margin: 6px 0 0; font: 800 19px/1.15 var(--display); letter-spacing: -.02em; }
.wait-lead { max-width: 30em; margin: 0; color: var(--fog); font-size: 13.5px; line-height: 1.45; }
.wait-rows { display: grid; width: 100%; margin: 8px 0 4px; text-align: left; }
.wait-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* «Отменить счёт»: the quiet way out beside «Статус платежа». «Закрыть» at the bar's right end, as high as the keys there. */
.pay-cancel { color: var(--fog); text-decoration-color: rgb(161 161 170 / .4); }
.bar-close { flex: 0 0 auto; margin-left: auto; min-height: 52px; padding: 0 20px; }

/* «Криптовалюта»'s transfer: the QR code on paper (its quiet zone is in the code), the exact sum big, the visitor's own
   address on the set's dark in monospace with «Скопировать», «Открыть в кошельке», the note. Side by side from 420px. */
.transfer { display: grid; gap: 12px; padding: 18px 16px; border-radius: 20px; background: var(--deck-2); box-shadow: inset 0 0 0 1px var(--line); }
.transfer-title { margin: 0; font: 800 17px/1.2 var(--display); letter-spacing: -.02em; }
.transfer-lead { margin: -6px 0 0; color: var(--fog); font-size: 13.5px; line-height: 1.45; }
.transfer-main { display: grid; gap: 14px; }
.transfer-qr { justify-self: center; width: min(220px, 70vw); padding: 6px; border-radius: 14px; background: var(--paper); color: var(--ink); line-height: 0; }
.transfer-qr svg { display: block; width: 100%; height: auto; }
.transfer-facts { display: grid; align-content: start; gap: 10px; min-width: 0; }
.transfer-rows { display: grid; gap: 10px; margin: 0; }
.transfer-rows div { display: grid; gap: 3px; }
.transfer-rows dt { color: var(--fog); font-size: 12.5px; font-weight: 650; }
.transfer-rows dd { margin: 0; }
.transfer-sum b { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.transfer-sum span { color: var(--coin); font-size: 13.5px; font-weight: 750; white-space: nowrap; }
.transfer-address { padding: 10px 12px; border-radius: 12px; background: var(--set); font: 700 13.5px/1.45 var(--hud); letter-spacing: .01em; overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.transfer-copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.transfer-copy[data-copied] { background: rgb(74 222 128 / .14); color: #86efac; }
.transfer-note { margin: 0; color: var(--fog); font-size: 12.5px; line-height: 1.45; }
@media (min-width: 420px) {
  .transfer-main { grid-template-columns: 160px minmax(0, 1fr); align-items: start; }
  .transfer-qr { width: 100%; }
  .transfer-copy { justify-self: start; }
}

/* «Профиль» */
.purse { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: var(--deck-2); }
.purse-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font: 800 46px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.purse-n .cr { width: 34px; height: 34px; }
.purse-label { color: var(--fog); font: 650 14px/1.2 var(--sans); letter-spacing: 0; }
.purse-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--set); }
.purse-id-text { display: grid; min-width: 0; }
.purse-id-text small { color: var(--fog); font-size: 12px; font-weight: 650; }
.acc-number { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.purse-note { margin: -4px 0 0; color: var(--fog); font-size: 12.5px; line-height: 1.4; }
.acc-block { display: grid; gap: 10px; margin-top: 24px; }
.acc-title { margin: 0; font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.acc-lead, .acc-hint { margin: 0; color: var(--fog); font-size: 13.5px; line-height: 1.45; }
.acc-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 196 87 / .1); color: #ffd98f; font-size: 13.5px; }
[data-acc-can]:not([hidden]) { display: grid; gap: 10px; }
.acc-item { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--deck-2); }
.acc-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acc-item-title { font-size: 15px; font-weight: 800; }
.acc-item-state { color: var(--go); font-size: 12.5px; font-weight: 750; text-align: right; }
.acc-code { display: grid; gap: 8px; }
.code { margin: 0; padding: 14px; border-radius: 12px; background: var(--set); font: 700 18px/1.2 var(--hud); letter-spacing: .08em; text-align: center; user-select: all; overflow-wrap: anywhere; }
.acc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acc-status { margin: 0; font-size: 13px; font-weight: 650; }
.acc-status:empty { display: none; }
.acc-status[data-tone="ok"] { color: var(--go); }
.acc-status[data-tone="error"] { color: #ffb3bd; }
/* «Telegram» (partials/account.html; the kit's web/sites/kit-telegram.js): the paper plane in its buttons; while the bot's
   button is not pressed, «Ждём подтверждения в Telegram…» in the button's place with «Отмена»; «Отвязать» under the item. */
.tg-glyph { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; stroke: none; }
.acc-tg-wait { display: flex; align-items: center; gap: 2px 10px; min-height: 48px; padding: 3px 4px 3px 16px; border: 1px dashed rgb(246 246 247 / .24); border-radius: var(--key);
  color: var(--fog); font-size: 14px; font-weight: 650; line-height: 1.3; }
.acc-tg-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 8px rgb(255 43 69 / .6); animation: acc-tg-wait 1.1s ease-in-out infinite alternate; }
.acc-tg-wait-text { flex: 1 1 auto; min-width: 0; }
.acc-tg-wait .text-btn { flex: 0 0 auto; min-height: 38px; padding: 0 10px; font-size: 14px; }
.acc-tg-off { justify-self: start; padding-inline: 0; }
@keyframes acc-tg-wait { from { opacity: 1; } to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .acc-tg-dot { animation: none; } }
.acc-form { display: grid; gap: 8px; }
.acc-block .go { background: var(--paper); color: var(--ink); }
.label { color: var(--fog); font-size: 12.5px; font-weight: 750; }
.code-field { font-family: var(--hud); letter-spacing: .08em; text-transform: uppercase; }
.acc-pays-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.acc-pays-note { color: var(--fog); font-size: 12.5px; }
.kit-payments { display: grid; gap: 8px; }
.kit-payment { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; background: var(--deck-2); }
.kit-payment::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--fog); }
.kit-payment.is-pending::before { background: #ffc457; box-shadow: 0 0 10px #ffc457; animation: blink 1.6s steps(1) infinite; }
.kit-payment.is-paid::before { background: var(--go); }
.kit-payment.is-declined::before { background: var(--tally); }
.kit-payment-main { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.kit-payment-sum { font-weight: 800; font-variant-numeric: tabular-nums; }
.kit-payment-meta { color: var(--fog); font-size: 12.5px; }
.kit-payment-state { padding: 3px 9px; border-radius: 7px; background: rgb(255 255 255 / .08); color: var(--fog); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.kit-payment.is-pending .kit-payment-state { background: rgb(255 196 87 / .14); color: #ffd98f; }
.kit-payment.is-paid .kit-payment-state { background: rgb(74 222 128 / .14); color: #86efac; }
.kit-payment.is-declined .kit-payment-state { background: rgb(255 43 69 / .16); color: #ffb3bd; }
.kit-payment-pay { display: inline-flex; flex: 1 0 100%; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--tally); color: var(--ink); font-weight: 800; text-decoration: none; }
.kit-payments-empty { margin: 0; color: var(--fog); font-size: 14px; }
.menu { display: grid; margin: 22px 0 0; padding: 0; list-style: none; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--paper); font-size: 15px; font-weight: 700; text-align: left; text-decoration: none; }
.menu-chev { color: var(--fog); }
.menu-go { color: var(--fog); font-size: 14px; }

/* «На главный экран» */
.inst-head { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; }
.inst-icon { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgb(0 0 0 / .4); }
.inst-text { display: grid; gap: 4px; min-width: 0; }
.inst-title { margin: 2px 0 0; font: 800 20px/1.15 var(--display); letter-spacing: -.02em; }
.inst-lead { margin: 0; color: var(--fog); font-size: 14px; line-height: 1.4; }
.inst-lead strong { color: var(--paper); }
.inst-way { margin-top: 18px; }
.inst-way .go { width: 100%; }
.inst-steps { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.inst-steps li { position: relative; min-height: 34px; padding: 6px 0 0 46px; font-size: 15px; line-height: 1.4; counter-increment: step; }
.inst-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--deck-2); font: 700 14px/1 var(--display); }
.inst-key { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 2px; border-radius: 8px; background: var(--deck-2); vertical-align: -8px; }
.inst-key svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inst-later { display: block; margin: 14px auto 0; }

/* Notes and the foot */
.notes { margin-top: 40px; }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 10px 0; font-size: 15.5px; font-weight: 750; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; background: linear-gradient(var(--fog) 0 0) 50% / 12px 2px no-repeat, linear-gradient(var(--fog) 0 0) 50% / 2px 12px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; color: var(--fog); font-size: 14.5px; line-height: 1.6; }
.notes-text { max-width: 44em; margin: 18px 0 0; color: var(--fog); font-size: 14px; line-height: 1.6; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); }
/* The documents' links a finger high (their own padding: on a phone they stack, and boxes over them would overlap). */
.foot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 0; padding-top: 7px; border-top: 1px solid var(--line); color: var(--fog); font-size: 12.5px; }
.foot-line a { display: inline-block; padding: 11px 0; color: var(--fog); text-underline-offset: 3px; }
body:has(.foot) .main { padding-bottom: 28px; }

/* The narrowest phones (320 px): the dock's words whole, the free try's title on one line. */
@media (max-width: 359px) {
  .dock-tab, .dock-rec { font-size: 9.5px; letter-spacing: -.01em; }
  .offer-text strong { font-size: 14px; }
  .brand-name { font-size: 14px; }
  .free-bar-title { font-size: 14px; }
}
/* Up to 400 px the bar at the foot: the record button gives way — its words on two lines — so the price and the marks
   beside it stay whole (2026-10-29: «Пополнить и изменить» covered them at 320 px, the marks were cut at 360). */
@media (max-width: 399px) {
  .run-bar { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .run-sum { min-width: 96px; }
  .run-go { flex: 0 1 auto; min-width: 0; gap: 8px; padding: 0 14px; font-size: 15px; }
  .run-marks span { white-space: normal; overflow-wrap: anywhere; }
}
/* A tablet: wider strips, three cards in a row. */
@media (min-width: 640px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .top { padding: 0 24px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .takes-row { grid-auto-columns: minmax(170px, 30%); margin: 0 -24px; padding: 0 24px 4px; scroll-padding: 0 24px; }
  .cat-bar, .cat-subs, .pills, .reels, .variants { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  :is(.pills, .cat-subs) { scroll-padding-inline: 24px; }
  .shot { margin: -12px -24px 0; }
  .studio { height: clamp(480px, 66vw, 600px); }
  .kind { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .kind-title { font-size: 28px; }
  .reels { grid-auto-columns: minmax(150px, 26%); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot { padding-left: 24px; padding-right: 24px; }
  .sheet { border-radius: 26px; margin-bottom: auto; }
  .sheet-full, .sheet-free, .sheet-compose { border-radius: 0; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .takes-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .take { aspect-ratio: 3 / 4; }
}

/* A computer: the menu in the top, no dock; the home page in two columns — the viewfinder on the left, the green light and
   the four ways on the right; a scenario's page with its picture staying in sight; the tall cards wide, their picture
   whole on the left. */
@media (min-width: 1100px) {
  :root { --top: 66px; }
  .top { padding: 0 max(24px, calc((100% - 1240px) / 2 + 24px)); gap: 10px; }
  .brand { margin-right: 6px; }
  .top-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
  .top-nav a, .top-nav button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--fog); font-size: 14.5px; font-weight: 700; text-decoration: none; }
  .top-nav [aria-current="page"] { color: var(--paper); background: var(--deck-2); }
  .top-make { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--tally); color: var(--ink); font-size: 14.5px; font-weight: 800; }
  .top-make .rec-dot { width: 9px; height: 9px; box-shadow: 0 0 0 3px rgb(255 255 255 / .35); }
  .dock { display: none; }
  .main { padding-bottom: 48px; }
  body.is-detail .main { padding-bottom: 48px; }
  .foot { padding-bottom: 32px; }
  .home { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 18px 22px; }
  .home > .studio { grid-column: 1; grid-row: 1 / span 2; height: min(calc(100vh - 110px), 720px); min-height: 560px; max-height: none; aspect-ratio: auto; margin: 0; }
  .home > .offer, .home > .takes { grid-column: 2; }
  .home > .takes { margin: 0; }
  .home .takes-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home .take { aspect-ratio: 4 / 4.6; }
  .home > .catalog, .home > .notes { grid-column: 1 / -1; }
  .home > .catalog { margin-top: 26px; }
  .home.is-kind { grid-template-rows: none; }
  .studio-title { font-size: 20px; }
  .studio-foot { padding: 14px 26px 28px; }
  .studio .hud { top: 26px; left: 30px; right: 30px; }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-bar { top: var(--top); }
  .item { grid-template-columns: auto minmax(0, 1fr); gap: 0 44px; align-items: start; }
  .item > .shot { position: sticky; top: calc(var(--top) + 20px); width: auto; height: min(calc(100vh - var(--top) - 44px), 720px); max-height: none; aspect-ratio: 4 / 5; margin: 20px 0 0;
    border-radius: 24px; }
  .item-body { padding-top: 24px; }
  .item-title { font-size: 34px; }
  .item .run-bar { position: sticky; bottom: 16px; margin: 6px 0 0; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgb(0 0 0 / .4); padding: 12px 12px 12px 18px; }
  .reels { grid-auto-columns: minmax(160px, 16%); }
  .variants { grid-auto-columns: 120px; margin: 0; padding: 0 0 2px; }
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .sheet { --tall: min(88vh, 820px); --side: 440px; --wide: min(calc(var(--tall) * 3 / 4 + var(--side)), calc(100% - 48px)); margin: auto; border-radius: 26px; }
  .sheet-full { height: fit-content; max-height: min(92vh, 900px); padding-bottom: 24px; border-radius: 26px; }
  .sheet-full .sheet-top { padding-top: 16px; }
  .topup-bar { bottom: -24px; margin-bottom: -24px; padding-bottom: 14px; }
  .sheet-free, .sheet-compose, #create { width: var(--wide); max-width: none; height: var(--tall); max-height: none; border-radius: 26px; }
  .sheet-free[open], .sheet-compose[open] { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); grid-template-rows: minmax(0, 1fr) auto; }
  .sheet-compose[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
  #popular, #history { width: var(--wide); max-width: none; }
  #account, #checkout { max-width: 620px; }
  .free-shot, .cmp-shot { grid-column: 1; grid-row: 1 / -1; height: auto; min-height: 0; }
  .cmp-shot { position: relative; display: block; overflow: hidden; background: var(--set); }
  .cmp-shot-mode, .cmp-shot-mode > img, .cmp-shot-mode > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
  .cmp-shot-mode > .before-chip { position: absolute; inset: auto auto 20px 20px; width: 23%; height: auto; }
  .free-shot .out-pic { object-position: 50% 50%; }
  .sheet-free .out::after { display: none; }
  .free-body, .sheet-free .run-bar, .cmp-top, .cmp-body, .sheet-compose .run-bar { grid-column: 2; }
  .free-body { gap: 9px; padding: 28px 28px 16px; align-content: safe center; }
  .free-close { top: 18px; right: 18px; background: var(--deck-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .free-title { padding-right: 52px; font-size: 26px; }
  .sheet-free .run-bar, .sheet-compose .run-bar { padding: 14px 28px; }
  .before-chip { left: 22px; bottom: 22px; max-width: 132px; }
  .cmp-top { padding: 22px 18px 10px 28px; }
  .cmp-body { padding: 10px 24px 20px 28px; border-top: 1px solid var(--line); }
  .sheet-compose .cmp-lead { max-width: 30em; }
  #create .create-panel { flex: 1 1 auto; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  #create .shots { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-height: 0; }
  #create .shotrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 12px; height: 100%; padding: 10px 14px 14px 10px; }
  #create .shotrow-media { grid-column: 1 / -1; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 14px; }
  #create .shotrow-text { padding-left: 4px; }
  #create .shotrow-title { font-size: 17px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .sheet-compose .field-box textarea { min-height: 88px; }
  .sheet-compose .cmp-lead { display: none; }
}
@media (min-width: 1800px) {
  .main, .foot { max-width: 1440px; }
  .top { padding: 0 max(24px, calc((100% - 1440px) / 2 + 24px)); }
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* A mouse: what answers the pointer. */
@media (hover: hover) {
  .go:hover { filter: brightness(1.08); }
  .ghost:hover, .close:hover, .cat-round:hover, .offer-go:hover, .idea-btn:hover, .promo-go:hover, .bar-back:hover { background: #2a2a2f; }
  .offer:hover { background: #1d1d21; }
  .card:hover .card-media > img, .card:hover .card-media > video, .take:hover .take-media > img, .take:hover .take-media > video, .reel:hover .reel-media > img { transform: scale(1.04); }
  .take-media > img, .take-media > video, .reel-media > img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .cat-kinds button:hover, .top-nav a:hover, .top-nav button:hover { color: var(--paper); }
  .shotrow:hover, .way:hover, .coin:hover:not([aria-pressed="true"]), .pack:hover:not([aria-pressed="true"]), .opts button:hover:not([aria-pressed="true"]), .kit-chip:hover span { background: #2a2a2f; }
  .drop:hover { background: rgb(255 255 255 / .08); }
  .menu-row:hover { color: #fff; }
}
/* A phone: the page under an open card holds still (a mouse keeps its scrollbar: app.js keeps the wheel in the card). */
@media (pointer: coarse) { html:has(dialog[open]) { overflow: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .studio.vf::after, .hud-rec::before, .offer-light::after, .out-line::before, .kit-payment.is-pending::before { animation: none; }
  .sheet[open], .kind:not([hidden]), .create-panel, .field-box.is-asking, .consents.is-asking .consent { animation: none; }
  .card-media > img, .card-media > video, .take-media > img, .take-media > video, .go, .rec-btn { transition: none; }
}

/* «Помощь» (partials/support.html): the visitor's requests to support, drawn by the kit (web/sites/support.js, kit-help-*).
   The mark of an answer not read yet is the coin's yellow: red stays the record button's. */
.help-dot { position: absolute; top: -2px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--coin); box-shadow: 0 0 0 2px var(--set); }
.help-dot[hidden] { display: none; }
.wallet { position: relative; }
.wallet .help-dot { top: -3px; right: -3px; }
.help-badge { padding: 3px 8px; border-radius: 7px; background: rgb(255 197 61 / .16); color: var(--coin); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.help-badge[hidden] { display: none; }
.menu-row .menu-go { display: inline-flex; align-items: center; gap: 8px; }
.help-banner { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 14px 16px; border: 0; border-radius: var(--tile); background: rgb(255 197 61 / .1);
  box-shadow: inset 0 0 0 1px rgb(255 197 61 / .35); color: var(--paper); font: 700 14.5px/1.35 var(--sans); text-align: left; }
.help-banner[hidden] { display: none; }
.help-banner b { margin-left: auto; color: var(--coin); white-space: nowrap; }
.help-banner-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--coin); }
.pay-help { display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 0 12px; border: 0; border-radius: var(--key); background: var(--deck-2); color: var(--paper); font: 700 14px/1.3 var(--sans); }
.help-other { margin: 18px 4px 0; color: var(--fog); font-size: 13.5px; }
.faq-more { margin: 20px 0 0; color: var(--fog); font-size: 14px; }
.faq-ask { padding: 0; border: 0; background: none; color: var(--paper); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.help-other a { color: var(--paper); }
.kit-help { display: grid; gap: 12px; }
.kit-help-lead { margin: 0; color: var(--fog); font-size: 14px; line-height: 1.45; }
.kit-help-new, .kit-help-send { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--key);
  background: var(--paper); color: var(--ink); font: 800 16px/1.15 var(--sans); }
.kit-help-new:disabled, .kit-help-send:disabled { opacity: .5; }
.kit-help-title { margin: 6px 0 0; font: 800 17px/1.25 var(--display); letter-spacing: -.02em; }
.kit-help-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kit-help-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--deck-2); color: var(--paper); text-align: left; }
.kit-help-row.is-unread { box-shadow: inset 0 0 0 1.5px var(--coin); }
.kit-help-row-main { display: grid; gap: 3px; min-width: 0; flex: 1 1 auto; }
.kit-help-subject { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.kit-help-meta { margin: 0; color: var(--fog); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kit-help-row-side { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.kit-help-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coin); }
.kit-help-state { padding: 3px 9px; border-radius: 7px; background: rgb(255 255 255 / .08); color: var(--fog); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.kit-help-state.is-answered { background: rgb(74 222 128 / .14); color: var(--go); }
.kit-help-state.is-waiting { background: rgb(255 197 61 / .16); color: var(--coin); }
.kit-help-empty, .kit-help-hint { margin: 0; color: var(--fog); font-size: 13.5px; }
.kit-help-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(74 222 128 / .12); color: var(--go); font-size: 13.5px; }
.kit-help-back { justify-self: start; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--deck-2); color: var(--paper); font: 700 14px/1 var(--sans); }
.kit-help-form { display: grid; gap: 12px; margin: 0; padding: 16px; border-radius: var(--tile); background: var(--deck); box-shadow: inset 0 0 0 1px var(--line); }
.kit-help-field { display: grid; gap: 6px; }
.kit-help-label { color: var(--fog); font-size: 13.5px; font-weight: 600; }
.kit-help-input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--set); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--paper); font: 500 16px/1.4 var(--sans); resize: vertical; }
.kit-help-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--paper); }
.kit-help-input::placeholder { color: rgb(161 161 170 / .7); }
/* The file field as wide as the form, never its own width (it pushed a 320 px screen sideways). */
.kit-help-files { width: 100%; min-width: 0; max-width: 100%; color: var(--fog); font-size: 13.5px; }
.kit-help-files::file-selector-button { margin-right: 10px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--deck-2); color: var(--paper); font: 700 13.5px/1 var(--sans); }
.kit-help-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.kit-help-cats legend { width: 100%; margin-bottom: 6px; padding: 0; }
.kit-help-cat { position: relative; }
.kit-help-cat input { position: absolute; opacity: 0; pointer-events: none; }
.kit-help-cat span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px; background: var(--set); box-shadow: inset 0 0 0 1px var(--line); color: var(--fog); font-weight: 700; font-size: 14px; cursor: pointer; }
.kit-help-cat input:checked + span { background: var(--paper); box-shadow: none; color: var(--ink); }
.kit-help-cat input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.kit-help-about { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 8px 10px 14px; border-radius: 12px; background: rgb(255 197 61 / .12); color: var(--coin); font-weight: 750; font-size: 14px; }
.kit-help-drop { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--deck-2); color: var(--paper); font-size: 18px; line-height: 1; }
.kit-help-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 43 69 / .14); color: var(--paper); font-size: 14px; }
.kit-help-error[hidden] { display: none; }
.kit-help-ticket-head { display: grid; gap: 4px; }
.kit-help-ticket-head .kit-help-title { margin: 0; overflow-wrap: anywhere; }
.kit-help-thread { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kit-help-msg { max-width: 88%; padding: 10px 14px 12px; border-radius: 14px 14px 14px 4px; background: var(--deck-2); }
.kit-help-msg.is-mine { justify-self: end; border-radius: 14px 14px 4px 14px; background: rgb(255 255 255 / .12); }
.kit-help-msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 13px; }
.kit-help-msg-head small { color: var(--fog); font-size: 12px; }
.kit-help-msg.is-support .kit-help-msg-head b { color: var(--go); }
.kit-help-msg-text { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 15px; line-height: 1.45; }
.kit-help-pictures { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kit-help-pictures img { display: block; width: 84px; height: 84px; border-radius: 8px; object-fit: cover; }
.kit-help-event { justify-self: center; color: var(--fog); font-size: 12.5px; text-align: center; }
.kit-help-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.kit-help-close { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--fog); font: 700 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 760px) { #support.sheet-full { min-height: min(70vh, 640px); } }

/* A scenario's card on a phone or a tablet (2026-10-30, the owner's wish), and «Бесплатная проба» as it (2026-11-01): its
   example stays where it is and the name, the choices and the photo are one sheet over it; the bar with the price and
   the button stays at the bottom, the close button where it was. Folded, nothing covers the example, so a result's own controls keep working. A computer keeps the
   example whole on the left. */
@media (max-width: 999px) {
  /* Two places for the sheet (the owner's word): folded as it opens, or unfolded just as far as its end shows above the
     bar, never higher than 56 px under the top. assets/sheet.js moves it — under the finger, then on to its place in one
     move: the room it goes up into is laid out above it (--sheet-room) and it is pushed down from there (a transform).
     The card itself never scrolls (clip: not even to show a field) — the browser's scrolling, snapped or settled after,
     went, stopped and went on. Text longer than the unfolded sheet scrolls inside it. */
  .sheet-free[open] { overflow: hidden; overflow: clip; }
  .sheet-free .free-shot { position: relative; z-index: 0; }
  .sheet-free .free-body { position: relative; z-index: 1; margin-top: calc(-20px - var(--sheet-room, 0px)); padding-top: 18px;
    border-radius: 22px 22px 0 0; background: var(--deck); box-shadow: 0 -12px 28px rgb(0 0 0 / .4); will-change: transform; }
  .sheet-free .run-bar { position: relative; z-index: 2; }
  /* «До» and the frame's «REC» above the sheet's edge (it comes 20 px over the example), not under it. */
  .sheet-free .before-chip { bottom: 42px; }
  .sheet-free .free-shot .hud { bottom: 44px; }
}

/* A main screen on a phone or a tablet — «Популярное», «Создать», «История», «Профиль», the profile's «Помощь» and
   «Вопросы и ответы» (2026-11-02): app.js moves the dock into the open one. The dock stays where it was, so the screen's
   content comes up instead of the whole screen, and ends above the dock. A scenario's page has no dock of its own; its
   screens do. From 1000 px a screen is a card in the middle: no dock in it. */
@media (max-width: 999px) {
  .sheet-full:has(> .dock) { padding-bottom: calc(104px + env(safe-area-inset-bottom)); animation: none; }
  .is-detail .sheet-full > .dock { display: grid; }
  /* From 541 px a screen is a 540 px column in the middle: the dock no wider. */
  .sheet-full > .dock { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  .sheet-full:has(> .dock) > :not(.dock) { animation: rise .32s cubic-bezier(.3, .7, .2, 1); }
}
@media (min-width: 1000px) { .sheet-full > .dock { display: none; } }

/* «Очистить историю» under «История», «Удалить аккаунт» last in the profile (web/sites/kit-cleanup.js); the kit's question
   window in the site's own colours (web/sites/kit-confirm.css). */
:root { --kit-confirm-bg: var(--deck); --kit-confirm-text: var(--paper); --kit-confirm-muted: var(--fog); --kit-confirm-line: var(--line); --kit-confirm-danger: var(--tally); --kit-confirm-on-danger: #fff; --kit-confirm-radius: var(--frame); }
.history-clear { display: block; min-height: 44px; margin: 12px 0 0; padding: 8px 0; border: 0; background: none; color: var(--fog); font: inherit; font-family: var(--hud); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.menu-row.menu-danger { color: var(--tally); }

/* «ИИ-аватары» on the home page (pages/home.html .avs, 2026-11-22): a head — the title, «N онлайн», «Все ›» —
   over a strip of the site's first characters, a tall frame each with its live clip (or the cover), «онлайн», the name and
   age and the short line. A phone swipes the strip (the next frame peeks out), from 900 px the four stand side by side; a
   computer has the block across the page's whole width under the first screen. The design's own radius, type and colours
   come in through --avs-* (below). */
.avs { margin-top: 30px; }
.home.is-kind > .avs { display: none !important; }
.avs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.avs-head .row-title { margin: 0; }
.avs-live { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: rgb(46 204 113 / .14); color: var(--avs-live, #3ddc84);
  font: 750 12px/1 var(--sans); white-space: nowrap; }
.avs-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgb(61 220 132 / .24); }
.avs-all { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; margin-left: auto; padding: 0 2px 0 8px; color: inherit; font: 750 14px/1 var(--sans); text-decoration: none;
  white-space: nowrap; }
.avs-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.avs-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px, 42%); gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.avs-row::-webkit-scrollbar { display: none; }
.avs-card { position: relative; isolation: isolate; display: block; min-width: 0; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: var(--avs-r, 16px); background: var(--avs-bg, #1a1a1f);
  color: #fff; text-decoration: none; scroll-snap-align: start; }
.avs-media, .avs-media > img, .avs-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.avs-card::after { content: ""; position: absolute; inset: 42% 0 0; z-index: 1; background: linear-gradient(transparent, rgb(8 6 12 / .88)); pointer-events: none; }
.avs-text { position: absolute; left: 12px; right: 10px; bottom: 12px; z-index: 2; display: grid; gap: 3px; }
.avs-status { display: inline-flex; align-items: center; gap: 6px; color: #9af5c4; font: 750 11.5px/1.2 var(--sans); }
.avs-status .avs-dot { width: 6px; height: 6px; box-shadow: 0 0 0 2px rgb(61 220 132 / .3); }
.avs-name { font: var(--avs-name, 700 16px/1.15 var(--display)); font-style: var(--avs-name-style, normal); letter-spacing: var(--avs-name-ls, -.01em); text-transform: var(--avs-name-case, none);
  overflow-wrap: anywhere; }
.avs-line { display: -webkit-box; overflow: hidden; color: rgb(255 255 255 / .8); font: 500 12px/1.3 var(--sans); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 640px) { .avs-row { grid-auto-columns: minmax(170px, 30%); margin: 0 -24px; padding: 0 24px 4px; scroll-padding: 0 24px; } }
@media (min-width: 900px) {
  .avs-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; overflow: visible; }
  .avs-card { aspect-ratio: 4 / 5; }
  .avs-text { left: 16px; right: 14px; bottom: 16px; }
  .avs-name { font-size: calc(var(--avs-name-size, 16px) + 3px); }
}
@media (hover: hover) {
  .avs-media > img, .avs-media > video { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .avs-card:hover .avs-media > img, .avs-card:hover .avs-media > video { transform: scale(1.04); }
  .avs-all:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .avs-media > img, .avs-media > video { transition: none; }
}
.avs { --avs-r: var(--tile); --avs-bg: var(--deck); }
@media (min-width: 1100px) { .home > .avs { grid-column: 1 / -1; margin: 10px 0 0; } }
/* (end of «ИИ-аватары») */

/* ===================== «Кино»: the dressing over Prod's skeleton ===================== */

body { background: var(--set); }
::selection { background: rgb(255 43 69 / .4); color: #fff; }
:focus-visible { outline-color: #fff; }
.skip { background: #fff; color: var(--ink); }

/* Titles and names: Oswald in capitals, set tight. Reading and numbers: Manrope. */
.row-title { font: 600 19px/1.1 var(--display); letter-spacing: .035em; text-transform: uppercase; }
.page-title, .page-extra > h1 { font: 600 36px/1.02 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.item-title { font: 600 33px/1.02 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.kind-title { font: 600 28px/1.04 var(--display); letter-spacing: .015em; text-transform: uppercase; }
:is(.sheet-title, .free-title, .wait-title, .inst-title, .transfer-title, .cat-empty-title, .kit-help-title) { font-family: var(--display); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
:is(.take-title, .shotrow-title, .topup-label, .acc-title, .block-label, .doc-body h2, .avs-name) { font-family: var(--display); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
:is(.run-price, .bar-total, .pack-total, .purse-n, .transfer-sum b, .out-title, .lost-mark) { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
:is(.wallet, .ask-price, .card-price, .free-bar-title, .offer-text strong) { font-family: var(--sans); font-weight: 800; letter-spacing: 0; }
.code, .code-field, .transfer-address { font-family: var(--mono); }

/* Keys: red «make it» with white words; the white key the second; glass the rest. Crisp corners, no pills. */
.go { border-radius: var(--key); background: var(--red-key); color: #fff; font: 800 16px/1.15 var(--sans); letter-spacing: .005em; box-shadow: 0 8px 22px rgb(229 19 47 / .28); }
.go .cr { fill: #ffd76a; }
.go:active { transform: scale(.98); }
.ghost { border-radius: var(--key); background: var(--glass); color: #fff; font-weight: 750; }
.text-btn { color: #fff; text-decoration-color: rgb(255 255 255 / .35); }
/* The «make it» light on a red key: a play mark. */
.rec-dot { width: 10px; height: 12px; border-radius: 0; background: currentColor; box-shadow: none; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* The red play key (the glass line's end, «Свой сценарий» at the head of a kind's cards). */
.rec-btn { width: 44px; height: 44px; border-radius: var(--key); background: var(--red-key); box-shadow: 0 6px 18px rgb(229 19 47 / .35); }
.rec-btn > span { width: 14px; height: 16px; margin-left: 3px; border-radius: 0; background: #fff; box-shadow: none; clip-path: polygon(0 0, 100% 50%, 0 100%); }
:is(.pack, .opts button, .chips button, .cat-subs button, .kit-chip span)[aria-pressed="true"] .cr { fill: var(--coin-deep); }
.acc-block .go { background: #fff; color: var(--ink); box-shadow: none; }
.acc-block .go .cr { fill: var(--coin-deep); }

/* No camera here: no viewfinder corners, no «REC», no timecode (a photo's frame read «00:00:00:00»). */
.vf::after, .drop::before { content: none; }
.hud { display: none !important; }

/* Top: solid black glass on every page; on the home page it lies over the billboard see-through, a shade from black at
   its top, and darkens as the page scrolls (where the browser can tie it to the scroll). */
.top { gap: 8px; padding: 0 14px; background: rgb(7 7 8 / .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
body:has(.home:not(.is-kind)) .top { position: fixed; left: 0; right: 0; background: linear-gradient(rgb(0 0 0 / .78), rgb(0 0 0 / .32) 62%, transparent); box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; }
/* The fixed top lies over the page, so whatever the page scrolls to (a field, a key) stops under it, not behind it. */
html:has(.home:not(.is-kind)) { scroll-padding-top: calc(var(--top) + 8px); }
@supports (animation-timeline: scroll()) {
  body:has(.home:not(.is-kind)) .top { animation: top-dark linear both; animation-timeline: scroll(root); animation-range: 40px 260px; }
  @keyframes top-dark { to { background-color: rgb(7 7 8 / .94); box-shadow: 0 1px 0 var(--line); } }
}
.brand { gap: 9px; }
.brand-mark { width: 32px; height: 32px; padding-top: 0; border-radius: 7px; background: var(--red-key); color: #fff; font: 600 19px/1 var(--display); text-transform: uppercase; }
.brand-mark::after { content: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 7px; }
.brand-name { font: 600 19px/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.aud { padding: 3px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.aud button { width: 36px; border-radius: 999px; color: #e4e4e7; }
.aud button[aria-pressed="true"] { background: #fff; color: #000; }
.wallet { height: 40px; padding: 0 13px 0 11px; gap: 6px; border-radius: 999px; background: var(--glass); color: #fff; font-size: 15px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wallet .cr { width: 17px; height: 17px; }

/* The dock: solid black along the bottom, a hairline over it; the current tab white. «Создать» a red key with a plus in the
   middle, its word for screen readers only. */
.dock { left: 0; right: 0; bottom: 0; height: calc(66px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); align-items: stretch; border-radius: 0; background: var(--set);
  box-shadow: 0 -1px 0 rgb(255 255 255 / .08); backdrop-filter: none; -webkit-backdrop-filter: none; }
.dock-tab { align-content: start; gap: 4px; padding-top: 11px; color: var(--fog); font: 750 10.5px/1.1 var(--sans); }
/* The middle column only as wide as «Создать»'s key, so the words beside it get the room. A word still too long for its
   column (English on the narrowest phones) takes a second line under its icon, which stays level with the others. */
.dock { grid-template-columns: repeat(2, minmax(0, 1fr)) 58px repeat(2, minmax(0, 1fr)); }
.dock-tab > span:last-child { max-height: 2.2em; text-align: center; text-overflow: clip; text-wrap: balance; white-space: normal; }
.dock-tab svg { width: 23px; height: 23px; stroke-width: 1.9; }
.dock-tab[aria-current="page"] { color: #fff; }
.dock-tab[aria-current="page"]::before { content: none; }
.dock-rec { align-content: center; }
.dock-rec-ring { position: relative; width: 50px; height: 50px; margin: 0; border-radius: 12px; background: var(--red-key); box-shadow: 0 8px 22px rgb(229 19 47 / .45); }
.dock-rec-dot { width: 24px; height: 24px; border-radius: 0; background: linear-gradient(#fff 0 0) 50% / 100% 3px no-repeat, linear-gradient(#fff 0 0) 50% / 3px 100% no-repeat; box-shadow: none; }
.dock-rec > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sheet-full > .dock { max-width: none; }

/* ---- The billboard (pages/home.html .bill): the studio's picture under everything, the words over its foot. ---- */
.bill { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; margin: -12px -16px 0; padding: calc(var(--top) + 12px) 16px 2px;
  min-height: clamp(470px, min(calc(100vw * 1.42), calc(100svh - 250px)), 640px); }
/* The studio lends the billboard its picture and its run: both lie over the whole billboard, the glass line stays in its
   place among the words. */
.bill > .studio { position: static; isolation: auto; display: block; height: auto; margin: 0; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.bill .studio-bg { z-index: -1; }
.bill .studio-bg > * { object-position: 50% 16%; }
.bill .studio-bg::after { background: linear-gradient(180deg, transparent 32%, rgb(7 7 8 / .5) 52%, rgb(7 7 8 / .9) 74%, var(--set) 97%); }
html[data-site-mode="animate"] .bill .studio-bg:not(:has(> .only-animate:not([hidden]))), html[data-site-mode="edit"] .bill .studio-bg:not(:has(> .only-edit:not([hidden]))) {
  background: radial-gradient(70% 55% at 70% 18%, #3a1219, transparent 70%), radial-gradient(60% 50% at 10% 60%, #18181c, transparent 70%); }
.bill .out { z-index: 1; }
.bill > .hero, .bill > .bill-keys { position: relative; z-index: 3; }
.bill .studio-foot { z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "oops" "card" "after"; gap: 0; padding: 0; }

.hero { display: grid; gap: 0; margin: 0 0 14px; padding: 0; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; color: var(--soft); font: 800 11.5px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
/* «● В эфире · Фото и видео · 18+»: a small dot between them, 18+ in a thin box. */
.hero-kicker > span { position: relative; display: inline-flex; align-items: center; }
.hero-kicker > span + span { margin-left: 21px; }
.hero-kicker > span + span::before { content: ""; position: absolute; left: -12px; top: calc(50% - 1.5px); width: 3px; height: 3px; border-radius: 50%; background: #8b8b94; }
.hero-genre:empty { display: none !important; }
.hero-live { gap: 6px; color: #fff; }
.hero-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 3px rgb(255 43 69 / .25); animation: on-air 1.8s ease-in-out infinite; }
@keyframes on-air { 50% { box-shadow: 0 0 0 5px rgb(255 43 69 / .08); } }
.hero-age { padding: 0 5px; border: 1px solid #a1a1aa; border-radius: 3px; color: #fff; line-height: 1.35; }
.hero-title { display: -webkit-box; margin: 10px 0 8px; overflow: hidden; font: 600 clamp(36px, 12.1vw, 50px)/.98 var(--display); letter-spacing: .005em; text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 2px 24px rgb(0 0 0 / .45); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.hero-lead { display: -webkit-box; max-width: 34em; margin: 0; overflow: hidden; color: var(--soft); font-size: 13.5px; font-weight: 500; line-height: 1.42; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.home.is-kind > .bill { display: none; }

/* «Свой сценарий» as one glass line: its name and «Видео · Фото» small on top, the idea it types, the price, the red ▶. */
.studio-foot > .oops { grid-area: oops; margin-bottom: 8px; }
.studio-foot > .studio-head { grid-area: card; align-self: start; z-index: 2; justify-content: flex-start; gap: 0; min-width: 0; padding: 9px 108px 0 15px; pointer-events: none; }
.studio-foot > .compose { grid-area: card; }
.studio-foot > .after { grid-area: after; }
.studio-head > .toggle { pointer-events: auto; }
.studio-title { flex: 0 1 auto; overflow: hidden; color: var(--fog); font: 800 10.5px/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-shadow: none; text-overflow: ellipsis; white-space: nowrap; }
.studio .toggle { flex: 0 0 auto; gap: 0; padding: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.studio .toggle::before { content: ""; align-self: center; width: 3px; height: 3px; margin: 0 3px 0 7px; border-radius: 50%; background: #8b8b94; }
.studio .toggle button { min-height: 0; height: 16px; padding: 0 4px; border-radius: 0; background: none; color: rgb(255 255 255 / .55); font: 800 10.5px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
/* «Видео · Фото» reach up past the line's edge for a finger, and stop short of the description under them. */
.studio .toggle button::after { inset: -16px 0 -2px; }
.studio .toggle button[aria-pressed="true"] { background: none; color: #fff; }
.ask { min-height: 64px; gap: 10px; padding: 7px 7px 7px 15px; border-radius: 10px; background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px var(--glass-line);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.ask-idea { display: none; }
.ask-text { padding-top: 17px; color: #e4e4e7; font-size: 14px; font-weight: 600; }
.ask-price { gap: 5px; font-size: 15px; }
.ask-price .cr { width: 16px; height: 16px; }
.ask:active .rec-btn { transform: scale(.94); }
.studio .after { gap: 8px; }
.studio .after-note { color: var(--soft); }

/* The keys under it: the free try white with a play mark, «Все примеры» glass beside it (alone, it turns white). */
.bill-keys { display: flex; gap: 10px; margin-top: 10px; }
.offer { flex: 1.25 0 auto; width: auto; justify-content: center; gap: 9px; min-width: 0; min-height: 48px; padding: 0 12px; border-radius: var(--key); background: #fff; color: var(--ink); box-shadow: none; }
.offer-light { width: 11px; height: 13px; border-radius: 0; background: var(--ink); box-shadow: none; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.offer-light::after { content: none; }
.offer-text { flex: 0 1 auto; }
.offer-text strong { overflow: hidden; font-size: 15px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.offer-text small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.offer-go { display: none; }
.bill-all { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 0 10px; border-radius: var(--key); background: rgb(255 255 255 / .14);
  color: #fff; font: 800 15px/1.15 var(--sans); text-align: center; text-decoration: none; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bill-keys:not(:has(> .offer:not([hidden]))) > .bill-all { background: #fff; color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* A run of «Свой сценарий» takes the billboard: the words and keys step aside, the run fills the frame under the top. */
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .bill > :is(.hero, .bill-keys) { display: none; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .bill > .studio { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .bill .out { top: calc(var(--top) + 4px); }
html:is([data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .bill .studio-foot { margin-top: 12px; padding-bottom: 6px; }
html:is([data-site-mode="animate"], [data-site-mode="edit"]):is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not(:has(#scene[open])) .home.is-kind > .bill {
  display: flex !important; margin: 0 0 24px; padding-top: 12px; border-radius: var(--frame); overflow: hidden; }
.out-busy { gap: 10px; background: rgb(7 7 8 / .72); }
.out-title { font-size: 30px; text-transform: uppercase; }
.out-line { width: 180px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .16); }
.out-line::before { width: 38%; border-radius: 2px; background: var(--tally); box-shadow: 0 0 12px rgb(255 43 69 / .7); animation: buffer 1.3s ease-in-out infinite alternate; }
@keyframes buffer { from { transform: translateX(0); } to { transform: translateX(300px); } }
.out-line { overflow: hidden; }

/* ---- Rows of posters ---- */
.row-head { align-items: center; margin: 0 0 12px; }
.row-head .row-title { margin: 0; }
.row-more { display: inline-flex; align-items: center; gap: 4px; color: var(--fog); font: 750 13.5px/1 var(--sans); text-decoration: none; }
.row-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* «Что снимаем»: the four ways in as posters, a shade from black under the name, the price in gold. */
.takes { margin-top: 24px; }
.takes-row { grid-auto-columns: minmax(116px, 32%); gap: 8px; padding-top: 0; }
.take { aspect-ratio: 3 / 4; border-radius: var(--tile); background: var(--deck); }
.take::before { content: none; }
.take::after { inset: 38% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .55) 40%, rgb(0 0 0 / .92)); }
.take-media, .take-media > img, .take-media > video { object-position: 50% 18%; }
.take-text { left: 9px; right: 8px; bottom: 9px; gap: 3px; }
.take-kind { display: none; }
.take-title { font: 500 15px/1.08 var(--display); letter-spacing: .03em; overflow-wrap: normal; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.take .cost { color: var(--coin); font: 800 11.5px/1.2 var(--sans); }
.take .cost .cr { width: 11px; height: 11px; }
.take-tag { top: 7px; left: 7px; padding: 3px 6px; border-radius: 3px; background: var(--red-key); color: #fff; font: 800 9.5px/1.25 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
/* «Популярно» is a mark (its word for screen readers, as Prod has it); here the mark is a red «Хит» plate, its word drawn. */
.take-tag.take-star::before { content: attr(data-hit); }
.take-count { top: 7px; right: 7px; padding: 3px 7px; border-radius: 4px; background: rgb(0 0 0 / .55); font: 800 11px/1.2 var(--sans); }
.take-count svg { width: 13px; height: 13px; }

/* «Примеры»: tabs with a red line under the chosen one, chips white when chosen; every card a poster with its name and
   price over a shade at its foot. */
.catalog { margin-top: 30px; }
.cat-bar { background: rgb(7 7 8 / .94); }
.cat-kinds button { border-radius: 0; color: var(--fog); font: 600 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.cat-kinds button[aria-pressed="true"] { color: #fff; }
.cat-kinds button[aria-pressed="true"]::after { left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 0; background: var(--tally); }
.cat-round, .cat-search { border-radius: var(--key); background: var(--deck-2); }
.cat-dot { background: var(--tally); }
.cat-subs button, .chips button, .pill, .kit-chip span { border-radius: 999px; background: var(--deck-2); }
.cat-subs button[aria-pressed="true"], .chips button[aria-pressed="true"], .pill[aria-current="page"], .kit-chip input:checked + span { background: #fff; color: var(--ink); }
.cards { gap: 10px 8px; }
.card { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto auto; gap: 0; }
.card > .card-media { grid-row: 1 / -1; grid-column: 1; aspect-ratio: 3 / 4; border-radius: var(--tile); }
.card-media::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(transparent, rgb(0 0 0 / .5) 40%, rgb(0 0 0 / .9)); pointer-events: none; }
.card-media.is-empty::after { inset: 55% 0 0; }
.card > .card-title, .card > .card-lead, .card > .card-price { position: relative; z-index: 2; grid-column: 1; align-self: end; margin: 0 10px; padding: 0; }
.card > .card-title { grid-row: 2; font-size: 13.5px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.card > .card-lead { grid-row: 3; margin-top: 2px; color: var(--soft); font-size: 11.5px; }
.card > .card-price { grid-row: 4; justify-self: start; margin-top: 4px; margin-bottom: 10px; color: var(--coin); font-size: 12px; }
.card > :is(.card-title, .card-lead):last-child { margin-bottom: 10px; }
.card-price .cr { width: 12px; height: 12px; }
.card-kind { top: 7px; left: 7px; width: 28px; height: 28px; border-radius: 6px; background: rgb(0 0 0 / .5); }
.card-kind svg { width: 16px; height: 16px; }
.card-before { top: 7px; right: 7px; bottom: auto; width: 30%; border-radius: 5px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .9), 0 6px 16px rgb(0 0 0 / .45); }
.card-before > span { left: 2px; bottom: 2px; padding: 0 4px; border-radius: 3px; font-size: 9.5px; }
.card:focus-visible .card-media, .reel:focus-visible .reel-media { box-shadow: 0 0 0 2px var(--set), 0 0 0 4px #fff; }
.card-studio .card-media { box-shadow: inset 0 0 0 1.5px var(--tally); }
.card-studio .card-media::after { inset: 0; background: linear-gradient(rgb(7 7 8 / .2), rgb(0 0 0 / .85)); }
.card-rec .rec-btn { width: 54px; height: 54px; }
.card-rec .rec-btn > span { width: 17px; height: 20px; }
.kind-shot { border-radius: var(--frame); }
.kind-shot::before { background: linear-gradient(rgb(7 7 8 / .35), transparent 30%, transparent 70%, rgb(7 7 8 / .5)); }
.facts li { border-radius: 6px; background: var(--deck-2); }
.kind-before, .before-chip, .hold { border-radius: 8px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .9), 0 10px 26px rgb(0 0 0 / .5); }
.kind-before > span, .before-chip figcaption, .card-before > span, .hold-word { border-radius: 4px; background: rgb(0 0 0 / .6); }

/* ---- A scenario's page: the picture from edge to edge under the top, sinking into black; the name in capitals. ---- */
.shot { margin: -12px -16px 0; border-radius: 0; background: var(--deck); }
.shot::before { background: linear-gradient(rgb(7 7 8 / .45), transparent 22%, transparent 62%, rgb(7 7 8 / .65) 88%, var(--set)); }
.back-btn { top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgb(0 0 0 / .5); }
/* «До» stands clear of the name, which rises over the picture's foot. */
.hold { left: 16px; bottom: 48px; }
.shot.is-before .hold { box-shadow: 0 0 0 2.5px var(--tally), 0 10px 26px rgb(0 0 0 / .5); }
.item-body { padding-top: 6px; }
.item-title { position: relative; z-index: 2; margin-top: -26px; text-shadow: 0 2px 20px rgb(0 0 0 / .6); }
.reel-media, .variant-media { border-radius: var(--tile); }
.reel[aria-current="page"] .reel-media, .variant[aria-pressed="true"] .variant-media { box-shadow: inset 0 0 0 2px var(--tally); }
.variant-words { border-radius: var(--tile); background: var(--deck-2); }
.variant-words[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--tally); }
.reel-title { font-size: 13.5px; font-weight: 750; }
.card-price { font-family: var(--sans); }
.reel .card-price { padding: 0 2px; color: var(--coin); font-size: 12px; }
/* The bar at the foot: the price big in Oswald, what will be made, the red key — on black with a hairline. */
.run-bar { background: rgb(7 7 8 / .96); box-shadow: 0 -1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.run-price { gap: 5px; font-size: 25px; }
.run-price .cr { width: 20px; height: 20px; }
.run-marks span { border-radius: 4px; background: var(--deck-2); }
/* The key keeps its words on one line where it can («Оживить · 60» broke between the coin and its number): the price
   and the marks beside it take what is left, the marks wrapping. */
.run-sum { flex: 1 1 0; }

/* «Свой сценарий»'s blocks and the fields: dark cards with a hairline, the chosen option white. */
.block { border-radius: var(--frame); background: var(--deck); }
.cmp-body .block, .sheet .block { background: rgb(255 255 255 / .035); }
.field-box, .kit-textarea { border-radius: 10px; background: var(--set); }
.field-box:focus-within { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.field-box.is-asking { box-shadow: inset 0 0 0 1.5px var(--tally), 0 0 0 4px rgb(255 43 69 / .2); }
.idea-btn { border-radius: 999px; background: var(--deck-2); }
.idea-btn svg { fill: var(--coin); }
.opts button { border-radius: var(--key); background: var(--deck-2); }
.opts button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.opts button[aria-pressed="true"] .q-price { color: rgb(7 7 8 / .7); }
.drop { border-radius: 10px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.drop-icon { width: 44px; height: 44px; border-radius: var(--key); background: var(--red-key); }
.drop-icon svg { stroke: #fff; }
.drop:active, .drop.is-over { background: rgb(255 43 69 / .1); }
.picked { border-radius: 10px; background: rgb(74 222 128 / .08); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .45); }
.picked-thumb { border-radius: 6px; }
.kit-select, .kit-text, .field, .promo-input { border-radius: var(--key); }
.kit-text:focus, .field:focus, .kit-select:focus, .promo-input:focus { box-shadow: inset 0 0 0 1.5px #fff; }
.tip-pic { border-radius: 5px; }

/* ---- Cards (dialogs): black-grey sheets, titles in capitals, round close. ---- */
.sheet { border-radius: 16px 16px 0 0; background: var(--deck); }
.sheet::backdrop { background: rgb(0 0 0 / .78); }
.sheet-full { background: var(--set); }
.sheet-full .sheet-top { margin-bottom: 18px; background: rgb(7 7 8 / .94); box-shadow: 0 1px 0 var(--line); }
.sheet-title { font-size: 25px; line-height: 1.05; }
.close { width: 40px; height: 40px; border-radius: 50%; background: var(--deck-2); }
.age-mark { color: var(--tally); font: 600 60px/1 var(--display); }
.free-shot { background: var(--set); }
.free-shot::before { height: 40%; background: linear-gradient(transparent, rgb(7 7 8 / .7)); }
.free-close, .free-close:hover { border-radius: 50%; background: rgb(0 0 0 / .5); }
.free-light { color: #fff; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.free-light .offer-light { width: 7px; height: 7px; border-radius: 50%; background: var(--tally); clip-path: none; box-shadow: 0 0 0 3px rgb(255 43 69 / .25); }
.free-title { font-size: 27px; line-height: 1.02; }
.scene-type { border-radius: 4px; background: var(--deck-2); color: var(--soft); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.consent { border-radius: 10px; background: var(--deck-2); }
.consent-box { border-radius: 5px; }
.consent input:checked + .consent-box { background: var(--red-key); }
.consent-box svg { stroke: #fff; }
.consents.is-asking .consent:not(:has(input:checked)) { background: rgb(255 43 69 / .14); }
/* «Создать»: rows with a poster at the left, the name in capitals, the price in gold. */
.shotrow { border-radius: var(--frame); background: var(--deck-2); }
.shotrow-media { border-radius: 6px; }
.shotrow-title { font-size: 18px; line-height: 1.05; }
.shotrow-price { color: var(--coin); font: 800 12.5px/1 var(--sans); }
.shotrow-go { border-radius: 50%; background: rgb(255 255 255 / .08); }
.shotrow-go.is-rec { background: var(--red-key); color: #fff; }
.shotrow-go.is-rec .rec-dot { width: 11px; height: 13px; margin-left: 2px; background: #fff; }
.create-all { text-decoration-color: var(--tally); }
/* «История»: a contact sheet; «Популярное»: a top chart with big outlined numbers. Empty, «История» is a dark screen
   with a play sign waiting in it. */
.history-empty { justify-items: center; padding: 4px 0 8px; text-align: center; }
.history-empty .lost { max-width: 420px; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(60% 70% at 50% 45%, rgb(255 43 69 / .12), transparent 72%), var(--deck); }
.history-empty .lost::before, .history-empty .lost.vf::after { content: ""; grid-area: 1 / 1; }
.history-empty .lost::before { width: 62px; height: 62px; border: 1.5px solid var(--glass-line); border-radius: 50%; background: var(--glass); }
.history-empty .lost.vf::after { position: static; width: 18px; height: 21px; margin-left: 4px; background: var(--paper); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.history-empty .sheet-text { max-width: 400px; }
.kit-result { border-radius: 6px; }
.kit-result[data-when]::before, .kit-result.is-2k::after { border-radius: 4px; }
.chart-rank { top: auto; bottom: 46px; right: 6px; font: 700 52px/.9 var(--display); -webkit-text-stroke: 1.5px rgb(255 255 255 / .9); text-shadow: 0 4px 18px rgb(0 0 0 / .5); }
.chart-item:nth-child(-n+3) .chart-rank { color: #fff; -webkit-text-stroke: 0; }
.chart-item:first-child .chart-rank { color: var(--tally); }
.seg { border-radius: 10px; }
.seg button { border-radius: 7px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.flt-bar, .topup-bar { background: var(--deck); }
.sheet-full .topup-bar, #checkout .topup-bar { background: rgb(7 7 8 / .96); }

/* ---- «Пополнить баланс»: the steps as a red progress line, the packages as dark tiles (the chosen one ringed red), the
   ways as rows. ---- */
.topup-steps li::before { height: 3px; border-radius: 2px; }
.topup-steps li.is-on::before, .topup-steps li:has(i:not([hidden]))::before { background: var(--tally); }
.offer-chip { border-radius: 10px; }
.pack { border-radius: var(--frame); background: var(--deck); }
.pack-total { font-size: 25px; letter-spacing: .01em; }
.pack-total .cr { width: 19px; height: 19px; }
.pack-tag { top: -9px; left: 10px; padding: 3px 7px; border-radius: 3px; background: var(--red-key); color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.pack.is-max .pack-tag { background: #fff; color: var(--ink); }
.pack[aria-pressed="true"] { background: rgb(255 43 69 / .1); color: var(--paper); box-shadow: inset 0 0 0 2px var(--tally); }
.pack[aria-pressed="true"] :is(.pack-sum, .pack-worth) { color: var(--fog); }
.pack[aria-pressed="true"] :is(.pack-pct, .pack-gift) { color: var(--go); }
.pack[aria-pressed="true"] .pack-foot { border-top-color: var(--line); }
.pack[aria-pressed="true"] .cr { fill: var(--coin); }
.way, .coin { border-radius: var(--frame); background: var(--deck); }
.way-ico { border-radius: 50%; background: var(--deck-2); }
.way[aria-pressed="true"], .coin[aria-pressed="true"] { background: rgb(255 43 69 / .1); box-shadow: inset 0 0 0 2px var(--tally); }
.way-cut { border-radius: 4px; }
.way-group-title { font: 800 11px/1.2 var(--sans); letter-spacing: .1em; }
.coins { border-left-color: var(--tally); }
.promo-go { border-radius: var(--key); background: var(--deck-2); }
.bar-back { border-radius: var(--key); background: var(--deck-2); }
.wait-card, .transfer { border-radius: var(--frame); background: var(--deck); }
.wait-clock { background: var(--deck-2); }
.wait-title { font-size: 22px; }

/* ---- «Профиль»: the balance big in Oswald on a dark card lit red from a corner. ---- */
.purse { position: relative; overflow: hidden; border-radius: 14px; background: radial-gradient(120% 90% at 100% 0, rgb(255 43 69 / .2), transparent 55%), var(--deck); isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line); }
.purse-n { gap: 4px 10px; font-size: 54px; }
.purse-n .cr { width: 36px; height: 36px; }
.purse-label { font-family: var(--sans); font-weight: 650; }
/* The account number whole: «Скопировать» goes under it when the two do not fit (a 320 px phone). */
.purse-id { flex-wrap: wrap; border-radius: 10px; background: rgb(0 0 0 / .45); }
.acc-number { white-space: nowrap; }
.acc-title { font-size: 18px; letter-spacing: .04em; }
.acc-item { border-radius: var(--frame); background: var(--deck); box-shadow: inset 0 0 0 1px var(--line); }
.acc-item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.acc-item-state { min-width: 0; padding: 3px 9px; border-radius: 999px; background: rgb(74 222 128 / .12); color: var(--go); font-size: 12px; font-weight: 750; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.acc-item-state::before { content: "✓ "; }
.acc-item-state:empty { display: none; }
.code { border-radius: var(--key); }
.kit-payment { border-radius: var(--frame); background: var(--deck); }
.kit-payment-main { flex: 1 1 0; }
.kit-payment-state { border-radius: 4px; }
.kit-payment-pay { border-radius: var(--key); background: var(--red-key); color: #fff; }
.acc-warn, .oops, .kit-help-note, .kit-help-error, .kit-help-about { border-radius: 10px; }
.oops { background: rgb(255 43 69 / .14); box-shadow: inset 0 0 0 1px rgb(255 43 69 / .45); }
.menu-row { border-bottom-color: var(--line); }

/* «Помощь»: quiet rows and bubbles; a reply not read yet gold. */
.help-banner, .kit-help-row, .kit-help-form { border-radius: var(--frame); }
.kit-help-row { background: var(--deck); }
.kit-help-new, .kit-help-send { border-radius: var(--key); background: #fff; color: var(--ink); }
.kit-help-msg { border-radius: 14px 14px 14px 4px; }
.kit-help-msg.is-mine { border-radius: 14px 14px 4px 14px; background: rgb(255 255 255 / .1); }
.kit-help-cat span, .kit-help-back, .kit-help-files::file-selector-button, .kit-help-drop, .kit-help-state, .help-badge { border-radius: 999px; }
.kit-help-cat input:checked + span { background: #fff; }
.pay-help { padding: 8px 16px; border-radius: var(--key); line-height: 1.3; }

/* Notes and the foot. */
.faq summary::after { background: linear-gradient(#fff 0 0) 50% / 12px 2px no-repeat, linear-gradient(#fff 0 0) 50% / 2px 12px no-repeat; }
.inst-steps li::before { border-radius: 50%; background: var(--red-key); color: #fff; font-family: var(--display); font-weight: 600; }
.inst-icon { border-radius: 14px; }

/* «ИИ-аватары»: posters as the rest, the name in capitals, «онлайн» green. */
.avs { --avs-r: var(--tile); --avs-bg: var(--deck); --avs-name: 500 17px/1.05 var(--display); --avs-name-case: uppercase; --avs-name-ls: .03em; --avs-live: var(--go); margin-top: 28px; }
.avs-row { grid-auto-columns: minmax(132px, 40%); gap: 8px; }
.avs-card { aspect-ratio: 3 / 4; }
.avs-card::after { inset: 40% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .55) 40%, rgb(0 0 0 / .92)); }
.avs-live { border-radius: 4px; }
.avs-all { color: var(--fog); font-size: 13.5px; }

/* The kit's question window in the site's own colours. */
:root { --kit-confirm-bg: var(--deck); --kit-confirm-text: var(--paper); --kit-confirm-muted: var(--fog); --kit-confirm-line: var(--line); --kit-confirm-danger: var(--red-key); --kit-confirm-on-danger: #fff; --kit-confirm-radius: 16px; }
.menu-row.menu-danger { color: #ff5a6e; }

@media (max-width: 999px) {
  .pack-sum { flex: 1 0 100%; }
  .sheet-free .free-body { border-radius: 16px 16px 0 0; }
}
/* The narrowest phone (320 px): the free try alone on the billboard (its second key would cut it), the sum to pay keeps
   its number, the dock's words whole. */
@media (max-width: 359px) {
  .brand-name { font-size: 17px; letter-spacing: .02em; }
  .dock-tab { font-size: 10px; }
  .bill-keys > .offer:not([hidden]) ~ .bill-all { display: none; }
  /* The glass line's name and «Видео · Фото» across its whole width, the price and ▶ along its foot under them. */
  .studio-foot > .studio-head { padding: 8px 14px 0 13px; }
  .ask { min-height: 70px; align-items: flex-end; padding: 6px 6px 6px 13px; }
  .ask-text { padding-top: 0; line-height: 40px; }
  .ask-price { height: 40px; }
  .ask .rec-btn { width: 40px; height: 40px; }
  .topup-bar { gap: 10px; }
  .pay-go { min-width: 0; padding: 0 16px; font-size: 15.5px; }
  .bar-back { width: 46px; height: 46px; }
  .bar-sub { white-space: normal; line-height: 1.25; text-wrap: balance; }
}
/* Up to 390 px the two keys under the billboard a size smaller, so both keep their words whole. */
@media (min-width: 360px) and (max-width: 389px) { :is(.offer-text strong, .bill-all) { font-size: 14px; } }
@media (min-width: 640px) {
  .shot { margin: -12px -24px 0; }
  .bill { margin: -12px -24px 0; padding-left: 24px; padding-right: 24px; min-height: clamp(520px, calc(100svh - 300px), 680px); }
  .hero-title { font-size: 54px; }
  .sheet { border-radius: 16px; }
  .sheet-full, .sheet-free, .sheet-compose { border-radius: 0; }
  .takes-row { grid-auto-columns: minmax(170px, 26%); }
  .avs-row { grid-auto-columns: minmax(160px, 28%); }
}
@media (min-width: 900px) {
  .takes-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .take { aspect-ratio: 4 / 5; }
}
@media (min-width: 1000px) {
  .sheet, .sheet-full, .sheet-free, .sheet-compose, #create { border-radius: 16px; }
  .free-close { background: var(--deck-2); }
  .sheet-free, .sheet-compose, #create { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgb(0 0 0 / .7); }
}

/* A computer: the home page as a streaming service's front — the billboard across the whole window (the picture on the
   right sinking into black on the left, the title, «Свой сценарий» and the keys over the dark), the posters of «Что
   снимаем» coming up over its foot, then the rows. The top bar's menu lies over the billboard. */
@media (min-width: 1100px) {
  :root { --top: 68px; }
  .top { padding: 0 max(24px, calc((100% - 1240px) / 2 + 24px)); gap: 10px; }
  .top-nav { gap: 0; }
  .top-nav a, .top-nav button { position: relative; min-height: 40px; padding: 0 11px; border-radius: 0; background: none; color: rgb(255 255 255 / .72); font: 700 14.5px/1 var(--sans); }
  .top-nav [aria-current="page"] { background: none; color: #fff; }
  .top-nav [aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--tally); }
  .top-make { gap: 9px; min-height: 40px; padding: 0 16px 0 13px; border-radius: var(--key); background: var(--red-key); color: #fff; font: 800 14.5px/1 var(--sans); box-shadow: 0 6px 18px rgb(229 19 47 / .3); }
  .top-make .rec-dot { width: 13px; height: 13px; clip-path: none; box-shadow: none; background: linear-gradient(#fff 0 0) 50% / 100% 2.5px no-repeat, linear-gradient(#fff 0 0) 50% / 2.5px 100% no-repeat; }
  .brand-mark, .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 21px; }
  .wallet { font-size: 15.5px; }

  body:has(.home) .main { max-width: none; padding: 0 0 56px; }
  .home { display: block; }
  .home > :not(.bill) { width: min(calc(100% - 48px), 1192px); margin-left: auto; margin-right: auto; }
  .bill { margin: 0; padding: calc(var(--top) + 48px) max(24px, calc((100% - 1192px) / 2)) 150px; min-height: clamp(600px, 92vh, 860px); }
  .bill > :is(.hero, .studio, .bill-keys) { width: min(540px, 46%); }
  .bill .studio-bg { left: 30%; width: auto; }
  .bill .studio-bg > * { object-position: 50% 20%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%); mask-image: linear-gradient(90deg, transparent, #000 34%); }
  .bill .studio-bg::after { background: linear-gradient(90deg, var(--set), rgb(7 7 8 / .55) 30%, transparent 58%), linear-gradient(transparent 52%, rgb(7 7 8 / .72) 80%, var(--set)); }
  .bill::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(48% 58% at 16% 62%, rgb(255 43 69 / .08), transparent 70%); pointer-events: none; }
  .hero { margin-bottom: 22px; }
  .hero-kicker { font-size: 12.5px; }
  .hero-title { margin: 14px 0 12px; font-size: clamp(60px, 5.6vw, 84px); line-height: .96; -webkit-line-clamp: 3; }
  .hero-lead { font-size: 16.5px; line-height: 1.5; -webkit-line-clamp: 3; }
  .ask { min-height: 70px; padding: 8px 8px 8px 18px; }
  .studio-foot > .studio-head { padding: 11px 130px 0 18px; }
  .ask-text { padding-top: 19px; font-size: 15px; }
  .rec-btn { width: 52px; height: 52px; }
  .rec-btn > span { width: 16px; height: 19px; }
  .bill-keys { gap: 12px; margin-top: 14px; }
  .offer, .bill-all { flex: 0 0 auto; width: auto; min-height: 52px; padding: 0 26px; font-size: 16px; }
  .offer-text strong { font-size: 16px; }
  html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .bill { min-height: min(88vh, 820px); padding-bottom: 40px; }
  html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .bill .studio-bg { left: 0; }

  .home > .takes { position: relative; z-index: 2; margin-top: -108px; }
  .home .takes-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .home .take { aspect-ratio: 4 / 5; }
  .take-text { left: 16px; right: 14px; bottom: 16px; gap: 5px; }
  .take-kind { display: inline-flex; color: var(--soft); font: 800 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
  .take-title { font-size: 24px; }
  .take .cost { font-size: 13px; }
  .take .cost .cr { width: 13px; height: 13px; }
  .take-tag { top: 12px; left: 12px; padding: 4px 8px; font-size: 11px; }
  .home > .avs { margin-top: 40px; }
  .home > .catalog { margin-top: 40px; }
  .row-title { font-size: 22px; }
  .avs-row { gap: 16px; }
  .avs-card { aspect-ratio: 4 / 5; }
  .cards { gap: 16px 12px; }
  .card > .card-title { margin: 0 12px; font-size: 14.5px; }
  .card > .card-price { margin: 4px 12px 12px; }

  .item > .shot { border-radius: var(--frame); margin: 20px 0 0; }
  .item-title { margin-top: 0; font-size: 42px; }
  .hold { bottom: 22px; }
  .item .run-bar { border-radius: var(--frame); background: var(--deck); box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgb(0 0 0 / .55); }
  .page-title { font-size: 48px; }
}
@media (hover: hover) {
  .go:hover, .top-make:hover { filter: brightness(1.1); }
  .offer:hover, .bill-keys:not(:has(> .offer:not([hidden]))) > .bill-all:hover, .kit-help-new:hover, .kit-help-send:hover, .acc-block .go:hover { background: #e4e4e7; filter: none; }
  .bill-all:hover { background: rgb(255 255 255 / .22); }
  .ghost:hover, .close:hover, .cat-round:hover, .idea-btn:hover, .promo-go:hover, .bar-back:hover, .shotrow-go:hover { background: #2a2a2f; }
  .shotrow:hover, .way:hover, .coin:hover:not([aria-pressed="true"]), .pack:hover:not([aria-pressed="true"]), .opts button:hover:not([aria-pressed="true"]), .kit-chip:hover input:not(:checked) + span { background: #26262b; }
  .top-nav a:hover, .top-nav button:hover, .row-more:hover, .avs-all:hover { color: #fff; }
  .take:hover .take-media > img, .take:hover .take-media > video { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-live::before, .out-line::before { animation: none; }
  body:has(.home:not(.is-kind)) .top { animation: none; }
}
