/* «Хром» – the early two-thousands (site-templates/README.md). The page is dark graphite with a holographic glow at its
   top; what is metal is chrome – rims, chosen keys, the brand's bead –, and what makes a thing is a glossy bubble in a
   holographic sheen (lilac, aqua, pink, a touch of mint). Two rules keep it from looking cheap: holo means «do it»
   (every make-it key, the free try, a sticker's rim), chrome means «chosen» or «a frame»; and the sheen is only ever on
   edges and keys, never under text. «Свой сценарий» is an old gadget – a screen with a player's status line in a
   graphite body, keys on its sides; the ways in are round drops; the examples are stickers with a shimmering rim.
   Type: Science Gothic, wide, for names and numbers; Manrope for reading; JetBrains Mono only on the screen's status line.
   Phone first. */
@font-face { font-family: "Science Gothic"; src: url(fonts/science-gothic-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 200%; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Science Gothic"; src: url(fonts/science-gothic-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 200%; 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; }
@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; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --void: #0a0b10; --slab: #14161d; --slab-2: #1d2029; --slab-3: #282c38; --pearl: #eef0f8; --haze: #a0a7bb; --ink: #0b0c12;
  --lilac: #b9a2ff; --aqua: #74f0e6; --pink: #ff96da; --mint: #92f4c8; --hot: #ff6f8f; --coin: #ffd36e; --coin-deep: #8a5c00;
  --line: rgb(238 240 248 / .1); --line-2: rgb(238 240 248 / .2); --scrim: rgb(8 9 14 / .86); --shade: rgb(10 11 16 / .58);
  /* The holographic foil and the chrome: one sheen for «do it», one metal for frames and what is chosen. */
  --holo: linear-gradient(115deg, #ff9fdc 0%, #c9abff 22%, #92e4ff 45%, #b4fbdc 63%, #ffe2b8 80%, #ff9fdc 100%);
  --holo-soft: linear-gradient(115deg, rgb(255 159 220 / .9), rgb(201 171 255 / .9) 30%, rgb(146 228 255 / .9) 60%, rgb(180 251 220 / .9) 85%);
  --chrome: linear-gradient(180deg, #fbfcff 0%, #d3d8e2 18%, #8e96aa 42%, #3f4555 50%, #a7aec0 60%, #eceff5 80%, #b3bac9 100%);
  --chrome-edge: linear-gradient(140deg, #f6f8fc 0%, #9ba3b5 16%, #464c5c 32%, #e2e6ee 50%, #6f778a 66%, #f2f4f8 82%, #8b93a6 100%);
  --metal: linear-gradient(180deg, #ffffff 0%, #e6e9f0 46%, #c6cbd6 54%, #f0f2f6 100%);
  --display: "Science Gothic", "Arial Black", system-ui, sans-serif; --sans: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  --lcd: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --screen-r: 26px; --card-r: 22px; --tile: 18px; --key: 999px; --top: 70px;
  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(--void); color: var(--pearl); font: 500 16px/1.5 var(--sans); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
/* The glow at the top of the page and a little star dust: a layer behind everything, still while the page scrolls. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 34% at 12% -4%, rgb(185 162 255 / .2), transparent 70%), radial-gradient(46% 30% at 96% 4%, rgb(116 240 230 / .12), transparent 70%),
    radial-gradient(50% 30% at 60% 104%, rgb(255 150 218 / .07), transparent 70%),
    radial-gradient(1px 1px at 18% 32%, rgb(255 255 255 / .5), transparent), radial-gradient(1px 1px at 72% 18%, rgb(255 255 255 / .4), transparent),
    radial-gradient(1.5px 1.5px at 86% 56%, rgb(201 171 255 / .6), transparent), radial-gradient(1px 1px at 34% 78%, rgb(255 255 255 / .35), transparent),
    radial-gradient(1.5px 1.5px at 8% 64%, rgb(146 228 255 / .5), transparent), radial-gradient(1px 1px at 52% 46%, rgb(255 255 255 / .25), 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(--aqua); 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: 12px; background: var(--pearl); 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; }
/* A spark: the four-pointed star of the era, in the holographic sheen (decoration, on the keys that make something). */
.spark, .rec-dot, .rec-btn > span, .dock-rec-dot { clip-path: polygon(50% 0, 60.5% 39.5%, 100% 50%, 60.5% 60.5%, 50% 100%, 39.5% 60.5%, 0 50%, 39.5% 39.5%); }

/* Keys. A bubble in the holographic sheen makes something: round ends, a gloss along its top, a soft shadow of its own
   colour. A graphite key with a chrome hairline does the rest; a text key is the way out. */
.go { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; overflow: hidden; border: 0;
  border-radius: var(--key); background: var(--holo); background-size: 140% 100%; color: var(--ink); font: 800 16px/1.15 var(--sans); text-align: center; text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -10px 16px rgb(110 70 190 / .22), inset 0 0 0 1px rgb(255 255 255 / .4), 0 10px 26px -10px rgb(185 162 255 / .75);
  transition: transform .12s, background-position .6s, filter .15s; }
.go::before { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 3px; height: 44%; border-radius: var(--key); background: linear-gradient(rgb(255 255 255 / .8), rgb(255 255 255 / 0)); pointer-events: none; }
.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 20px; border: 0; border-radius: var(--key);
  background: var(--slab-2); color: var(--pearl); font: 700 15px/1.15 var(--sans); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgb(255 255 255 / .08); }
.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(--pearl); font-weight: 650; text-decoration: underline; text-decoration-color: rgb(238 240 248 / .4); text-underline-offset: 4px; }
/* The spark on a make-it key (ink on the bubble), and the round bubble key with a spark in it. */
.rec-dot { flex: 0 0 auto; width: 13px; height: 13px; background: currentColor; }
.rec-btn { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: var(--holo); background-size: 160% 160%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -8px 12px rgb(110 70 190 / .28), 0 6px 18px -6px rgb(185 162 255 / .8); transition: transform .12s; }
.rec-btn::before { content: ""; position: absolute; left: 18%; right: 18%; top: 4%; height: 42%; border-radius: 50%; background: linear-gradient(rgb(255 255 255 / .85), rgb(255 255 255 / 0)); }
.rec-btn > span { position: relative; width: 22px; height: 22px; background: var(--ink); }

/* A screen: a picture behind dark glass – the glass's edge and one soft glare across its corner over the picture
   (.vf::after), the player's status line on top (partials/hud.html): «PLAY» and the time of the clip it shows (app.js). */
.vf { position: relative; isolation: isolate; }
.vf::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  background: linear-gradient(128deg, rgb(255 255 255 / .13) 0%, rgb(255 255 255 / .04) 26%, transparent 27%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 0 0 4px rgb(0 0 0 / .35), inset 0 0 46px rgb(0 0 0 / .4); }
.hud { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--aqua); font: 700 11px/1 var(--lcd); letter-spacing: .08em; text-shadow: 0 0 8px rgb(116 240 230 / .7), 0 1px 4px rgb(0 0 0 / .8); pointer-events: none; }
.hud-rec { display: inline-flex; align-items: center; gap: 7px; }
.hud-rec::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; filter: drop-shadow(0 0 4px rgb(116 240 230 / .9)); }
.hud-tc { display: inline-flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
/* A battery after the time: three cells and a cap. */
.hud-tc::after { content: ""; width: 19px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px currentColor;
  background: linear-gradient(currentColor 0 0) 3px 3px / 3px 4px no-repeat, linear-gradient(currentColor 0 0) 7.5px 3px / 3px 4px no-repeat, linear-gradient(currentColor 0 0) 12px 3px / 3px 4px no-repeat; }
@keyframes shine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .55; } }
@keyframes sheen { to { background-position: 100% 0; } }

/* The top: a chrome-rimmed capsule floating over the page – the brand as a chrome bead, the ways in (a computer),
   «Создать» as a bubble, «Ж / М» and the balance. */
.top { position: sticky; top: 8px; z-index: 30; display: flex; align-items: center; gap: 8px; height: 56px; margin: 8px 10px 0; padding: 0 8px 0 8px;
  border-radius: var(--key); background: rgb(20 22 29 / .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / .7); }
/* A chrome rim drawn on the edge only (the inside stays glass): the shape's own box, its middle masked out. */
:is(.top, .dock, .run-bar, .offer, .studio, .toggle, .wallet, .aud)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: var(--rim, 1.5px); pointer-events: none;
  background: var(--rim-paint, var(--chrome-edge)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: var(--rim-a, .55); }
.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 bead is 40 px). */
.brand::after { content: ""; position: absolute; inset: -2px 0; }
/* No logo: the first letter on a chrome bead, a glint on its shoulder. */
.brand-mark { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 34% 28%, #fff 0 8%, transparent 30%), linear-gradient(170deg, #f7f8fc 0%, #c7ccd8 34%, #6f778a 52%, #dfe3eb 70%, #9aa2b4 100%);
  box-shadow: inset 0 -3px 6px rgb(0 0 0 / .25), 0 0 0 1px rgb(0 0 0 / .5), 0 4px 14px -4px rgb(185 162 255 / .6);
  font: 800 ultra-expanded 15px/1 var(--display); }
.brand-logo { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px #c7ccd8, 0 0 0 3px rgb(0 0 0 / .5); }
/* The name on one line while it fits, else on two (a long balance or a narrow phone cut it to «DEMO ST…»), then cut. */
.brand-name { display: -webkit-box; overflow: hidden; font: 700 12.5px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; text-wrap: balance;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow-wrap: anywhere; }
.top-nav, .top-make { display: none; }
.aud { position: relative; display: flex; flex: 0 0 auto; gap: 2px; padding: 3px; border-radius: var(--key); background: rgb(0 0 0 / .35); --rim-a: .3; }
/* 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: 36px; height: 34px; padding: 0; border: 0; border-radius: var(--key); background: none; color: var(--haze); }
.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: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.aud button[aria-pressed="true"] { background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .15), 0 1px 3px rgb(0 0 0 / .4); }
.wallet { position: relative; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; min-width: 44px; height: 40px; padding: 0 13px 0 11px; border: 0; border-radius: var(--key);
  background: rgb(0 0 0 / .35); color: var(--pearl); font: 700 14px/1 var(--lcd); font-variant-numeric: tabular-nums; --rim-a: .4; }
.wallet .cr { width: 17px; height: 17px; }
.wallet-n:empty { display: none; }

.main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 14px 16px calc(116px + env(safe-area-inset-bottom)); }
/* A section's name: wide capitals, a small holographic spark before it. */
.row-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 extra-expanded 15px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.row-title::before { content: ""; flex: 0 0 auto; width: 13px; height: 13px; background: var(--holo);
  clip-path: polygon(50% 0, 60.5% 39.5%, 100% 50%, 60.5% 60.5%, 50% 100%, 39.5% 60.5%, 0 50%, 39.5% 39.5%); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-more { position: relative; color: var(--haze); 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: 4px; min-height: 30px; padding: 0 12px; border-radius: var(--key); background: var(--slab-2); font-size: 13px; font-weight: 750;
  box-shadow: inset 0 0 0 1px var(--line); }
.cost-n { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ph { width: 34%; height: 34%; fill: none; stroke: rgb(238 240 248 / .3); stroke-width: 1.6; stroke-linecap: round; }

/* The dock: a chrome-rimmed capsule floating over the page with the main screens, «Создать» as a holographic bubble
   rising out of its middle. */
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, 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 6px 7px; border-radius: var(--key); background: rgb(20 22 29 / .86); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 36px rgb(0 0 0 / .55); }
/* 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(--haze);
  font: 700 10.5px/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 { position: relative; z-index: 1; width: 23px; height: 23px; padding: 0; 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. Its icon lit in the sheen's aqua,
   a soft holographic glow behind it. */
.dock-tab[aria-current="page"] { color: var(--pearl); }
.dock-tab[aria-current="page"] svg { stroke: var(--aqua); filter: drop-shadow(0 0 6px rgb(116 240 230 / .6)); }
.dock-tab[aria-current="page"]::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 30px; margin-left: -20px; border-radius: var(--key);
  background: radial-gradient(closest-side, rgb(185 162 255 / .3), transparent); }
.dock-rec { color: var(--pearl); }
.dock-rec-ring { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-top: -26px; overflow: hidden; border-radius: 50%; background: var(--holo); background-size: 170% 170%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -10px 16px rgb(110 70 190 / .3), 0 0 0 4px var(--void), 0 0 0 5.5px #9ba3b5, 0 10px 24px -6px rgb(185 162 255 / .8);
  transition: transform .12s; }
.dock-rec-ring::before { content: ""; position: absolute; left: 18%; right: 18%; top: 5%; height: 40%; border-radius: 50%; background: linear-gradient(rgb(255 255 255 / .85), rgb(255 255 255 / 0)); }
.dock-rec-dot { position: relative; width: 26px; height: 26px; background: var(--ink); }
.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(112px + env(safe-area-inset-bottom)); }

/* The home page: the site's name in chrome letters, the free try, the gadget, the drops, «Примеры». */
.hero-text { position: relative; display: grid; gap: 8px; margin: 6px 0 16px; }
.hero-title, .hero-lead { display: -webkit-box; overflow: hidden; margin: 0; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
/* Chrome letters: light above the horizon line, a darker band at it, light again – and a hard shadow under them. */
.hero-title { padding-right: 20px; font: 800 expanded 22px/1.14 var(--display); letter-spacing: .01em; text-transform: uppercase; -webkit-line-clamp: 4; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #e8ebf2 40%, #8a92a6 52%, #f4f6fa 58%, #bfc5d2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / .55)) drop-shadow(0 0 18px rgb(185 162 255 / .25)); }
.hero-lead { max-width: 36em; color: var(--haze); font-size: 14px; line-height: 1.45; -webkit-line-clamp: 3; }
.spark { position: absolute; pointer-events: none; background: var(--holo); }
.spark-a { top: -6px; right: 2px; width: 22px; height: 22px; animation: twinkle 3.2s ease-in-out infinite; }
.spark-b { top: 22px; right: 26px; width: 10px; height: 10px; background: var(--pearl); animation: twinkle 3.2s ease-in-out 1.1s infinite; }
.home.is-kind > .hero-text { display: none; }

/* The free try: a ticket with a holographic rim, a twinkling spark, the way in as a chrome bead. */
.offer { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 10px 10px 14px; border: 0; border-radius: 22px;
  background: linear-gradient(100deg, rgb(201 171 255 / .14), rgb(146 228 255 / .08) 60%, rgb(255 159 220 / .1)), var(--slab); color: var(--pearl); text-align: left; text-decoration: none;
  --rim: 1.5px; --rim-paint: var(--holo); --rim-a: .9; }
.offer-light { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .5), transparent 45%), var(--holo); box-shadow: inset 0 -4px 8px rgb(110 70 190 / .3), 0 4px 14px -4px rgb(185 162 255 / .8); }
.offer-light::after { content: ""; width: 18px; height: 18px; background: var(--ink); clip-path: polygon(50% 0, 60.5% 39.5%, 100% 50%, 60.5% 60.5%, 50% 100%, 39.5% 60.5%, 0 50%, 39.5% 39.5%);
  animation: twinkle 2.6s ease-in-out infinite; }
.offer-text { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; }
/* Its name on one line from 360 px up (on two it made the first screen 18 px taller): as large as the row leaves room for. */
.offer-text strong { font: 700 expanded clamp(12.5px, calc((100vw - 160px) / 16.2), 14.5px)/1.2 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.offer-text small { color: var(--haze); font-size: 13px; font-weight: 600; line-height: 1.3; }
.offer-go { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 4px rgb(0 0 0 / .18), 0 2px 6px rgb(0 0 0 / .4); }
.offer-go svg, .shotrow-go svg, .menu-chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* «Свой сценарий» as an old gadget: a gunmetal body with a chrome rim (.studio::after), a speaker slot above the screen,
   a rocker on its left side and a key on its right; the screen on top, its controls on the body under it. A run takes the
   example's place on the screen. */
.studio { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding: 24px 12px 14px; border-radius: 40px;
  background: radial-gradient(30px 4px at 50% 12px, #000 55%, rgb(255 255 255 / .16) 72%, transparent 100%), radial-gradient(4px 4px at calc(50% + 34px) 12px, rgb(116 240 230 / .9) 40%, transparent 100%),
    linear-gradient(165deg, #2a2e39 0%, #16181f 38%, #101218 70%, #1c1f28 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 -2px 0 rgb(0 0 0 / .5), 0 30px 60px -24px rgb(0 0 0 / .85), 0 0 50px -10px rgb(185 162 255 / .18);
  --rim: 2px; --rim-a: .8; }
.offer[hidden] + .studio { margin-top: 0; }
/* The side keys: chrome, standing a little out of the body's edge. */
.studio::before { content: ""; position: absolute; top: 96px; left: -4px; right: -4px; height: 128px; pointer-events: none; z-index: -1;
  background: linear-gradient(90deg, #6f778a, #eef1f6 60%, #8b93a6) 0 0 / 6px 62px no-repeat, linear-gradient(90deg, #6f778a, #eef1f6 60%, #8b93a6) 0 72px / 6px 40px no-repeat,
    linear-gradient(90deg, #8b93a6, #eef1f6 40%, #6f778a) 100% 18px / 6px 54px no-repeat; border-radius: 3px; }
.screen { position: relative; flex: 0 0 auto; height: clamp(340px, calc((100vw - 56px) * 1.18), 560px); overflow: hidden; border-radius: var(--screen-r); background: #05060a;
  box-shadow: 0 0 0 5px #05060a, 0 0 0 6px rgb(255 255 255 / .07); }
/* A phone: the home gadget's screen only as tall as leaves its name, «Видео / Фото» and the line above the dock and its
   bubble on the first screen (375 × 812: 266 px; a 376 px screen put «Свой сценарий» under the dock), never under 220 px.
   While a run of its own shows there, the screen at its full height. */
@media (max-width: 639px) {
  .home > .studio .screen { height: clamp(220px, min(calc((100vw - 56px) * 1.18), calc(100svh - 546px)), 560px); }
  html:not([data-site-mode="effect"]):is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .home > .studio .screen { height: clamp(340px, calc((100vw - 56px) * 1.18), 560px); }
}
/* Once, as the page opens, a light passes over the glass. */
.screen::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 5; width: 45%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .12), transparent); transform: translateX(-120%) skewX(-18deg); animation: shine 1.6s cubic-bezier(.3, .6, .2, 1) .5s 1 both; }
.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(5 6 10 / .55), transparent 16%, transparent 78%, rgb(5 6 10 / .45)); }
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 screen
   glows softly in the sheen, 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(80% 60% at 25% 15%, rgb(185 162 255 / .35), transparent 70%), radial-gradient(70% 60% at 85% 90%, rgb(116 240 230 / .22), transparent 70%), #0d0e14; }
/* The body's controls: the name with «Видео / Фото» as two keys, then the line. */
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 0 4px; }
.studio-title { min-width: 0; margin: 0; font: 700 12.5px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; text-wrap: balance;
  background: linear-gradient(180deg, #fff, #c9ced9 55%, #9aa2b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toggle { position: relative; display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border-radius: var(--key); background: rgb(0 0 0 / .45); box-shadow: inset 0 2px 5px rgb(0 0 0 / .5); --rim-a: .28; }
.toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 0; border-radius: var(--key); background: none; color: var(--haze); 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(--metal); color: var(--ink); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .14), 0 1px 4px rgb(0 0 0 / .5); }
.studio .toggle button { min-height: 32px; padding: 0 13px; font-size: 13px; }
/* Small on the body, 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; }
.toggle-wide button { min-height: 46px; font-size: 15px; }
/* One column as wide as the body: the line typing an idea (nowrap) once widened it, and «Фото» went past the edge. */
.studio-foot { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* The line: a small dark display set into the body, the idea typing on it, the price and the bubble key. */
.ask { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 8px 8px 8px 14px; border: 0; border-radius: var(--key); background: #07080c;
  color: var(--pearl); text-align: left; box-shadow: inset 0 2px 8px rgb(0 0 0 / .8), inset 0 0 0 1px rgb(255 255 255 / .06), 0 1px 0 rgb(255 255 255 / .08); }
.ask-idea svg { width: 18px; height: 18px; fill: var(--aqua); filter: drop-shadow(0 0 5px rgb(116 240 230 / .7)); }
.ask-text { flex: 1 1 auto; min-width: 0; overflow: hidden; color: rgb(238 240 248 / .9); 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; color: var(--pearl); font: 700 expanded 12.5px/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(--haze); font-size: 13.5px; line-height: 1.4; }
.studio .after-note { color: var(--pearl); padding: 0 4px; }
.oops { margin: 0; padding: 10px 14px; border-radius: 16px; background: rgb(255 111 143 / .13); color: #ffd1dc; font-size: 14px; line-height: 1.4; box-shadow: inset 0 0 0 1px rgb(255 111 143 / .4); }
.oops .text-btn { min-height: 32px; color: inherit; }

/* What the visitor made, on the screen: the result on its own blur; while it runs, a row of lit cells fills as an old
   player's progress bar. */
.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(.5); transform: scale(1.15); }
.out-pic { object-fit: contain; object-position: 50% 0; }
.out-video { background: #05060a; }
.out-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 32px; text-align: center;
  background: radial-gradient(70% 50% at 50% 45%, rgb(185 162 255 / .2), transparent 70%), rgb(5 6 10 / .6); }
.out-title { margin: 4px 0 0; font: 800 extra-expanded 21px/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #dfe3ec 45%, #8a92a6 55%, #eef1f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.out-title::after { content: "…"; }
.out-note { max-width: 260px; margin: 0; color: var(--pearl); opacity: .82; font-size: 14px; }
.out-line { position: relative; display: block; width: 172px; height: 14px; overflow: hidden; border-radius: 4px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(116 240 230 / .35); }
.out-line::before { content: ""; position: absolute; inset: 3px; width: 0; background: repeating-linear-gradient(90deg, var(--aqua) 0 8px, transparent 8px 11px);
  filter: drop-shadow(0 0 4px rgb(116 240 230 / .8)); animation: cells 2.4s steps(15) infinite; }
@keyframes cells { to { width: calc(100% - 6px); } }
.out::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgb(5 6 10 / .6)); 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 gadget 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; }
/* 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 round drops – a picture in a bubble with a chrome ring, a gloss on its shoulder –,
   two by two, each row on one line – they bob out of step (their float), not out of line: set a little lower every
   second one looked crooked, its name and price off the row's. Their names and prices under them. */
.takes { margin-top: 34px; }
.takes-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.take { position: relative; display: grid; align-content: start; justify-items: center; gap: 10px; min-width: 0; padding: 2px 0 6px; color: var(--pearl); text-align: center; text-decoration: none; }
.take-media { position: relative; display: block; width: min(100%, 150px); aspect-ratio: 1; overflow: hidden; border: 3px solid transparent; border-radius: 50%;
  background: radial-gradient(70% 70% at 30% 25%, #2a2e3b, #101218) padding-box, var(--chrome-edge) border-box;
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / .8), 0 0 34px -8px rgb(185 162 255 / .35); animation: float 6s ease-in-out infinite; }
.take:nth-child(2) .take-media { animation-delay: -1.5s; }
.take:nth-child(3) .take-media { animation-delay: -3s; }
.take:nth-child(4) .take-media { animation-delay: -4.5s; }
.take-media > img, .take-media > video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
/* The drop's glass: a gloss up on its left shoulder, a holographic glow welling up from its bottom. */
.take-media::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(34% 22% at 32% 20%, rgb(255 255 255 / .6), transparent 70%), radial-gradient(90% 60% at 50% 115%, rgb(201 171 255 / .45), transparent 60%);
  box-shadow: inset 0 -12px 24px rgb(0 0 0 / .45), inset 0 6px 14px rgb(255 255 255 / .12); }
.take-media > .ph { position: absolute; inset: 0; width: 36%; height: 36%; margin: auto; stroke: var(--lilac); }
.take-text { display: grid; justify-items: center; gap: 4px; max-width: 100%; }
.take-kind { display: inline-flex; align-items: center; gap: 5px; color: var(--haze); font-size: 11.5px; font-weight: 750; }
.take-kind svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.take-title { font: 700 13px/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; hyphens: auto; }
.take .cost { display: inline-flex; padding: 3px 10px; border-radius: var(--key); background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--pearl);
  font: 650 12px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.take-tag { position: absolute; top: 4px; left: calc(50% - 76px); z-index: 3; padding: 4px 9px; border-radius: var(--key); background: var(--holo); color: var(--ink); font-size: 11px; font-weight: 800;
  box-shadow: 0 4px 12px -4px rgb(185 162 255 / .8), inset 0 1px 0 rgb(255 255 255 / .7); }
.take-count { position: absolute; top: 4px; right: calc(50% - 76px); z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--key);
  background: var(--metal); color: var(--ink); font: 700 12px/1.2 var(--display); box-shadow: 0 3px 10px rgb(0 0 0 / .5); }
.take-count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* «Примеры» */
.catalog { margin-top: 36px; scroll-margin-top: calc(var(--top) + 8px); }
.catalog-title { margin-bottom: 6px; }
.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(10 11 16 / .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* The kinds as a chrome-rimmed track: the chosen one a polished metal key. */
.cat-kinds { display: flex; flex: 0 1 auto; gap: 2px; min-width: 0; padding: 3px; overflow-x: auto; border-radius: var(--key); background: rgb(0 0 0 / .4); scrollbar-width: none;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 6px rgb(0 0 0 / .5); }
.cat-kinds::-webkit-scrollbar { display: none; }
/* Rows of chips – the sections' pills, «Примеры»'s kinds and sections, the filters' chips: one line that
   scrolls sideways, never wrapping; 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 (the kit's web/sites/rails.js, with ‹ › for a mouse). */
: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; }
.cat-kinds button { position: relative; flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--key); background: none; color: var(--haze); font-size: 14.5px; font-weight: 750; white-space: nowrap; }
.cat-kinds button[aria-pressed="true"] { background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .14), 0 1px 4px rgb(0 0 0 / .5); }
.cat-round { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--pearl);
  background: radial-gradient(circle at 35% 25%, rgb(255 255 255 / .14), transparent 55%), var(--slab-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 12px rgb(0 0 0 / .4); }
.cat-round svg, .cat-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cat-bar > [data-cat-search-open] { margin-left: auto; }
.cat-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--holo); box-shadow: 0 0 0 2px var(--slab-2); }
.cat-search { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 4px 0 14px; border-radius: var(--key); background: #07080c;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 6px rgb(0 0 0 / .6); }
.cat-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; color: var(--pearl); font-size: 16px; outline: none; }
.cat-search input::placeholder { color: var(--haze); }
.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: 50%; background: none; color: var(--pearl); }
.catalog.is-searching .cat-kinds, .catalog.is-searching [data-cat-search-open] { display: none; }
.cat-subs { display: flex; gap: 6px; min-height: 40px; margin: 4px -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 15px; border: 0; border-radius: var(--key); background: transparent; color: var(--pearl); font-size: 13.5px; font-weight: 700;
  white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-2); }
.cat-subs button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .14); }
.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 expanded 17px/1.2 var(--display); text-transform: uppercase; }
.cat-empty-lead { margin: 0 0 6px; color: var(--haze); font-size: 14.5px; }

/* A kind chosen: its own screen on top (a chrome rim around it), then the cards. On the home page what is above goes. */
.kind { display: grid; gap: 16px; margin-bottom: 28px; }
.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: 8px solid transparent; border-radius: 32px;
  background: #05060a padding-box, linear-gradient(165deg, #2a2e39 0%, #16181f 40%, #101218 70%, #1c1f28 100%) border-box;
  box-shadow: 0 0 0 1.5px #9ba3b5, 0 0 0 2.5px rgb(0 0 0 / .6), 0 24px 50px -24px rgb(0 0 0 / .8); }
.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(5 6 10 / .5), transparent 26%); pointer-events: none; }
.kind-before, .before-chip { position: absolute; left: 18px; bottom: 18px; z-index: 5; width: 23%; max-width: 110px; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border-radius: 16px;
  box-shadow: 0 0 0 2px #dfe3ec, 0 0 0 3.5px rgb(0 0 0 / .5), 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 8px; border-radius: var(--key); background: var(--shade); color: var(--pearl);
  font-size: 11.5px; font-weight: 750; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kind-text { display: grid; justify-items: start; gap: 12px; }
.kind-title { margin: 0; font: 800 extra-expanded 21px/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.kind-lead { max-width: 36em; margin: 0; color: var(--haze); 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 gadget 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: a sticker – a holographic rim around it all, its picture inside with rounded corners (its kind on a chrome
   bead, «до» in the corner), its name and price on the sticker under the picture. A pointer brings the sheen round. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.card { position: relative; display: grid; align-content: start; gap: 7px; min-width: 0; padding: 5px 5px 11px; border: 2px solid transparent; border-radius: var(--card-r); color: var(--pearl); text-align: left; text-decoration: none;
  background: linear-gradient(170deg, #1b1e27, #121419) padding-box, var(--holo) border-box; background-size: 100% 100%, 220% 220%; background-position: 0 0, 0 0;
  box-shadow: 0 12px 26px -16px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .4); transition: background-position .8s ease, transform .2s; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--card-r) - 6px); background: #0d0e14; }
.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); }
/* The sticker's gloss: a band of light across the picture's top corner. */
.card-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / .03) 22%, transparent 23%); }
.card-media.is-empty, .reel-media.is-empty, .variant-media.is-empty, .kind-media.is-empty { display: grid; place-items: center;
  background: radial-gradient(70% 60% at 30% 20%, rgb(185 162 255 / .22), transparent 70%), radial-gradient(60% 60% at 80% 90%, rgb(116 240 230 / .14), transparent 70%), #0f1117; }
.card-media > .ph, .reel-media > .ph { position: static; }
/* Never narrower than «Before» on it (at 320 px a third of the picture cut its «e»). */
.card-before { position: absolute; right: 7px; bottom: 7px; z-index: 2; width: max(32%, 48px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1.5px #dfe3ec, 0 6px 14px rgb(0 0 0 / .5); }
.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: 12px; left: 12px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 35% 28%, #fff 0 10%, transparent 35%), linear-gradient(170deg, #f7f8fc, #c3c9d5 45%, #7b8396 60%, #e3e6ee); box-shadow: 0 3px 8px rgb(0 0 0 / .5); }
.card-kind svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; 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 5px; font-size: 14px; font-weight: 750; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card-price { justify-self: start; margin: 0 5px; padding: 3px 9px; border-radius: var(--key); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--pearl); font: 650 11.5px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.card-price .cr { width: 13px; height: 13px; }
.card:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--void), 0 0 0 4px var(--aqua); }
.reel:focus-visible .reel-media { box-shadow: 0 0 0 2px var(--void), 0 0 0 4px var(--aqua); }
/* «Свой сценарий» at the head of a kind's cards: its example dimmed, the bubble key over it. */
.card-studio { background: linear-gradient(170deg, #241f35, #121419) padding-box, var(--holo) border-box; }
.card-studio .card-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(10 11 16 / .4); }
.card-rec { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.card-rec .rec-btn { width: 60px; height: 60px; }
.card-rec .rec-btn > span { width: 28px; height: 28px; }
/* A pointer on a sticker: a spark lights on its corner. */
.card::after { content: ""; position: absolute; top: -7px; right: -7px; z-index: 3; width: 18px; height: 18px; background: var(--holo); opacity: 0; transform: scale(.4) rotate(-45deg);
  clip-path: polygon(50% 0, 60.5% 39.5%, 100% 50%, 60.5% 60.5%, 50% 100%, 39.5% 60.5%, 0 50%, 39.5% 39.5%); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.card-lead { padding: 0 5px; color: var(--haze); font-size: 12.5px; line-height: 1.3; }

/* Pages */
.page { padding-top: 6px; }
.page-title { margin: 8px 0 14px; font: 800 extra-expanded 25px/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #ffffff 0%, #e8ebf2 40%, #8a92a6 52%, #f4f6fa 58%, #bfc5d2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The documents' names on a phone: their long words («ИСПОЛЬЗОВАНИЯ», «КОНФИДЕНЦИАЛЬНОСТЬ») whole on a line – in the
   wide face at 25 px they broke in the middle («ИСПОЛЬЗОВА / НИЯ», «КОНФИДЕНЦИ / АЛЬНОСТЬ»). The face at its own width,
   as large as the longest word fits; the sections' names under it smaller than it. */
@media (max-width: 639px) {
  .doc .page-title { font-stretch: normal; font-size: clamp(15px, calc((100vw - 32px) / 17.8), 25px); }
  .doc .doc-body h2 { font-size: clamp(12.5px, calc((100vw - 32px) / 24.5), 14px); }
}
.page-lead { max-width: 34em; margin: 0 0 18px; color: var(--haze); }
.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 16px; border-radius: var(--key); color: var(--pearl); font-size: 14.5px; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-2); }
.pill[aria-current="page"] { background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .14); }
.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: 3px solid transparent; border-radius: 30px;
  background: radial-gradient(70% 70% at 30% 20%, rgb(185 162 255 / .2), transparent 70%), #0d0e14 padding-box, var(--chrome-edge) border-box; }
.lost-mark { font: 600 extra-expanded 64px/1 var(--display); letter-spacing: .02em;
  background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .8; }
.doc-body { max-width: 42em; color: var(--haze); line-height: 1.7; }
.doc-body h2 { margin: 28px 0 8px; color: var(--pearl); font: 700 expanded 16px/1.25 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.doc-body a { color: var(--pearl); }
.page-scenes .catalog { margin-top: 20px; }

/* A scenario's page and a mode's page: the picture on a chrome-rimmed screen, 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); }
/* The screen in the gadget's own body: a gunmetal bezel, a chrome line round it. */
.shot { position: relative; margin: 2px 0 0; aspect-ratio: 4 / 5; max-height: 70vh; max-height: 70svh; overflow: hidden; border: 8px solid transparent; border-radius: 34px;
  background: #05060a padding-box, linear-gradient(165deg, #2a2e39 0%, #16181f 40%, #101218 70%, #1c1f28 100%) border-box;
  box-shadow: 0 0 0 1.5px #9ba3b5, 0 0 0 2.5px rgb(0 0 0 / .6), 0 26px 50px -24px rgb(0 0 0 / .85), 0 0 50px -14px rgb(185 162 255 / .25); }
.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(80% 60% at 25% 15%, rgb(185 162 255 / .32), transparent 70%), radial-gradient(70% 60% at 85% 90%, rgb(116 240 230 / .2), 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(5 6 10 / .55), transparent 20%, transparent 72%, rgb(5 6 10 / .5)); pointer-events: none; }
.shot .hud { left: auto; top: 20px; right: 16px; gap: 14px; }
.back-btn { position: absolute; top: 10px; left: 10px; z-index: 7; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 35% 25%, #fff 0 10%, transparent 40%), var(--metal); box-shadow: inset 0 -2px 4px rgb(0 0 0 / .2), 0 4px 12px rgb(0 0 0 / .5); }
.back-btn svg, .bar-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hold { position: absolute; left: 16px; bottom: 16px; z-index: 7; width: 24%; max-width: 112px; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--slab);
  box-shadow: 0 0 0 2px #dfe3ec, 0 0 0 3.5px rgb(0 0 0 / .5), 0 10px 26px rgb(0 0 0 / .5); color: var(--pearl); 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(--aqua), 0 0 18px rgb(116 240 230 / .6), 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: 20px; }
.item-title { margin: 0; font: 800 extra-expanded 24px/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; hyphens: auto;
  background: linear-gradient(180deg, #ffffff 0%, #e8ebf2 40%, #8a92a6 52%, #f4f6fa 58%, #bfc5d2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.item-lead { margin: -4px 0 0; color: var(--haze); font-size: 15px; }
.item-body > .pills { margin-bottom: 0; }
.item-body .row-title { margin: 6px 0 -4px; font-size: 13.5px; }
.strip { margin-top: 36px; }
/* 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(--haze); 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; }
.about-steps li::marker { color: var(--lilac); font-weight: 800; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 40%); gap: 12px; 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; padding: 4px 4px 10px; border: 1.5px solid transparent; border-radius: var(--card-r); color: var(--pearl); text-decoration: none; scroll-snap-align: start;
  background: linear-gradient(170deg, #1b1e27, #121419) padding-box, var(--holo) border-box; }
.reel-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(var(--card-r) - 5px); background: #0d0e14; }
.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"] { background: linear-gradient(170deg, #2a2340, #121419) padding-box, var(--holo) border-box; box-shadow: 0 0 22px -6px rgb(185 162 255 / .7); }
/* «Варианты» of a mode: a strip of small frames; the one whose words are in the field is ringed in the sheen. */
.variants { display: grid; grid-auto-flow: column; grid-auto-columns: 108px; gap: 10px; margin: 0 -16px; padding: 4px 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(--pearl); text-align: left; }
.variant-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: var(--slab); box-shadow: inset 0 0 0 1px var(--line); }
.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: 0 0 0 2.5px var(--lilac), 0 0 16px rgb(185 162 255 / .5); }
.variant-words { grid-auto-columns: auto; align-content: center; width: 200px; min-height: 76px; padding: 10px 14px; border-radius: 18px; background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--line); }
.variant-words .variant-title { -webkit-line-clamp: 3; }
.variant-words[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--lilac), 0 0 16px rgb(185 162 255 / .4); }
.variants:has(.variant-words) { grid-auto-columns: 200px; }

/* The bar at the foot: the price big, what will be made as small chrome tags, and the bubble key. On a scenario's page a
   capsule floating over the bottom of the screen. */
.run-bar { position: relative; 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(--slab); box-shadow: 0 -1px 0 var(--line); --rim-a: 0; }
.item .run-bar { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; margin: 0; padding: 8px 8px 8px 20px; border-radius: 30px;
  background: rgb(20 22 29 / .9); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 16px 36px rgb(0 0 0 / .6); --rim-a: .6; }
.run-sum { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; }
.run-price { display: inline-flex; align-items: center; gap: 4px; font: 800 expanded 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.run-price .cr { width: 18px; height: 18px; }
.run-price:empty { display: none; }
.run-sum small { display: -webkit-box; overflow: hidden; color: var(--haze); 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 7px; border-radius: var(--key); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--pearl); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.run-go { flex: 0 0 auto; min-height: 54px; padding: 0 22px; }
.run-go .cr { width: 16px; height: 16px; }
/* A key's price – the coin and its number (app.js) – never split between two lines. */
.cr-n { white-space: nowrap; }

/* «Свой сценарий»'s blocks: graphite panels with a hairline. */
.block { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: var(--slab); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .05); }
.cmp-body .block, .sheet .block { background: rgb(238 240 248 / .035); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.block-label { margin: 0; font: 700 expanded 13px/1.25 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.block-hint { color: var(--haze); font-size: 12.5px; font-weight: 600; }
.block-sub { margin: 4px 0 -2px; color: var(--haze); font-size: 12.5px; font-weight: 700; }
.field-box { border-radius: 18px; background: #07080c; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 8px rgb(0 0 0 / .6); transition: box-shadow .15s; }
.field-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--aqua), 0 0 0 4px rgb(116 240 230 / .12); }
.field-box textarea, .kit-textarea { display: block; width: 100%; min-height: 112px; padding: 12px 14px 6px; border: 0; background: none; color: var(--pearl); font: 500 16px/1.45 var(--sans); resize: none; outline: none; }
.field-box textarea::placeholder, .kit-textarea::placeholder, .field::placeholder { color: rgb(160 167 187 / .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 14px; border: 0; border-radius: var(--key); background: var(--slab-2); color: var(--pearl); font-size: 13px; font-weight: 750;
  box-shadow: inset 0 0 0 1px var(--line-2); }
.idea-btn svg { width: 16px; height: 16px; fill: var(--aqua); }
/* «✦ Подставить идею» 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(--haze); font: 700 11px/1 var(--lcd); font-variant-numeric: tabular-nums; }
.field-box.is-asking { box-shadow: inset 0 0 0 1.5px var(--hot), 0 0 0 4px rgb(255 111 143 / .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: #ffc3d0; 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: 16px; background: var(--slab-2); color: var(--pearl);
  font-size: 13px; font-weight: 750; line-height: 1.15; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .05); }
.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(--haze); font: 600 11px/1 var(--display); font-variant-numeric: tabular-nums; }
.opts .q-price .cr { width: 11px; height: 11px; }
.opts button[aria-pressed="true"] { background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 4px rgb(0 0 0 / .15), 0 0 0 1px rgb(255 255 255 / .5), 0 4px 14px -6px rgb(185 162 255 / .7); }
.opts button[aria-pressed="true"] .q-price { color: rgb(11 12 18 / .7); }
.opts-formats button { min-height: 58px; }
.opts-fixed { color: var(--haze); 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 slot with a dashed lilac edge on a faint sheen and a bubble with a plus, the picked one small. */
.drop { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; padding: 13px 15px; border: 1.5px dashed rgb(201 171 255 / .55); border-radius: 22px;
  background: linear-gradient(110deg, rgb(255 159 220 / .07), rgb(185 162 255 / .08) 45%, rgb(146 228 255 / .06));
  color: var(--pearl); text-align: left; transition: background .2s; }
.drop:active, .drop.is-over { background: rgb(185 162 255 / .14); }
.drop:disabled { opacity: .55; }
.drop-icon { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: var(--holo); background-size: 160% 160%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -8px 12px rgb(110 70 190 / .28), 0 6px 16px -6px rgb(185 162 255 / .8); }
.drop-icon::before { content: ""; position: absolute; left: 18%; right: 18%; top: 4%; height: 40%; border-radius: 50%; background: linear-gradient(rgb(255 255 255 / .8), rgb(255 255 255 / 0)); }
.drop-icon svg { position: relative; width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.drop-text { display: grid; gap: 1px; }
.drop-title { font-size: 16px; font-weight: 800; }
.drop-note { color: var(--haze); 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 slot is quieter than the first one's: its plus on a graphite bead, not the bubble. */
.drop-more .drop-icon { background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.drop-more .drop-icon::before { display: none; }
.drop-more .drop-icon svg { stroke: var(--pearl); }
.picked { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 22px; background: rgb(146 244 200 / .08); box-shadow: inset 0 0 0 1.5px rgb(146 244 200 / .45); }
.picked-thumb { position: relative; flex: 0 0 auto; width: 58px; height: 58px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--slab-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(--haze); 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
   keys on the right – the lit one polished metal, 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(--haze); 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(--haze); font-size: 12px; font-weight: 650; }
.tip-yes { color: var(--pearl); }
.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: 50%; background: var(--slab-2); }
.tip-pic img, .tip-pic svg { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.tip-drawn svg { padding: 4px; fill: var(--haze); }
.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(--mint); }
.tip-no .tip-mark { background: var(--hot); }
.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(--mint); 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(--haze); 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 17px; border-radius: var(--key); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14.5px; font-weight: 700; }
.kit-chip input:checked + span { background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .14); }
.kit-chip input:focus-visible + span { outline: 2px solid var(--aqua); outline-offset: 3px; }
.kit-select, .kit-text, .field { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 16px; background: #07080c; color: var(--pearl); font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 6px rgb(0 0 0 / .5); }
.kit-text:focus, .field:focus, .kit-select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--aqua), 0 0 0 4px rgb(116 240 230 / .12); }
/* 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(--lilac); }
.kit-range-value { font-weight: 800; }
.kit-words { padding: 0; }
.kit-textarea { min-height: 96px; border-radius: 16px; background: #07080c; box-shadow: inset 0 0 0 1px var(--line-2); }

/* Cards (dialogs): from the bottom on a phone, graphite with a chrome light along their top edge; 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: 30px 30px 0 0; background: linear-gradient(180deg, #1a1d26, var(--slab) 140px); color: var(--pearl);
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .16), inset 0 0 0 1px rgb(255 255 255 / .05); scrollbar-width: thin; scrollbar-color: rgb(238 240 248 / .22) transparent; }
.sheet::backdrop { background: rgb(5 6 10 / .76); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.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: 44px; height: 5px; margin: -4px auto 14px; border-radius: 3px; background: var(--holo); opacity: .8; }
.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 extra-expanded 19px/1.15 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.sheet-top .sheet-title { margin: 0; }
.sheet-text { margin: 0 0 14px; color: var(--haze); font-size: 15px; }
.sheet-text a { color: var(--pearl); }
.sheet-hint { margin: 12px 0 0; color: var(--haze); font-size: 12.5px; line-height: 1.45; }
.sheet-status { margin: 0; color: var(--haze); font-size: 13.5px; }
.sheet-status:empty { display: none; }
.sheet-actions { display: grid; gap: 6px; }
.sheet-actions .text-btn { justify-self: center; }
/* «Закрыть»: a polished chrome bead. */
.close { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 35% 25%, #fff 0 10%, transparent 40%), var(--metal); box-shadow: inset 0 -2px 4px rgb(0 0 0 / .2), 0 3px 10px rgb(0 0 0 / .45); }
.close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; 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(26 29 38 / .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.age-mark { margin: 0 0 4px; font: 800 ultra-expanded 44px/1 var(--display); letter-spacing: .02em; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet .oops { margin-top: 10px; }

/* «Бесплатная проба» and a scene's card: the example on a screen 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: #05060a; }
@media (max-height: 700px) { .free-shot { height: 34%; } }
/* A scenario's card and «Бесплатная проба» on a phone or a tablet: 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 screen glowing softly, as its card is. */
.free-media:not(:has(> :not([hidden]))) { background: radial-gradient(70% 60% at 30% 20%, rgb(185 162 255 / .22), transparent 70%), radial-gradient(60% 60% at 80% 90%, rgb(116 240 230 / .14), transparent 70%), #0f1117; }
.free-shot::before { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 30%; background: linear-gradient(transparent, rgb(5 6 10 / .6)); pointer-events: none; }
.free-shot .hud { top: auto; bottom: 22px; left: auto; right: 20px; 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; }
.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(--mint); font-size: 12.5px; font-weight: 800; }
.free-light .offer-light { width: 22px; height: 22px; }
.free-light .offer-light::after { width: 11px; height: 11px; }
.free-title { margin: 0; font: 800 extra-expanded 19px/1.15 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.free-lead { margin: 0; font-size: 15.5px; line-height: 1.35; }
.free-lead strong { font-weight: 800; }
.scene-lead { color: var(--haze); font-size: 13.5px; line-height: 1.4; }
.free-note { margin: 0 0 4px; color: var(--haze); font-size: 13px; line-height: 1.4; }
.scene-type { justify-self: start; margin: 0; padding: 3px 10px; border-radius: var(--key); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--haze); 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 –
   its longest word sets how far the key may come (at 320 px the key covered half of «БЕСПЛАТНО»). */
.free-bar .free-bar-title { text-wrap: balance; }
.free-bar .run-sum { min-width: min-content; }
.free-bar-title { font: 700 expanded 14px/1.2 var(--display); text-transform: uppercase; }
.free-go { padding: 0 20px; }
.consents { display: grid; gap: 6px; margin-top: 4px; }
.consent { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 14px; border-radius: 16px; background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--line); 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: 7px; box-shadow: inset 0 0 0 1.5px var(--haze); }
.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(--holo); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7); }
.consent input:checked + .consent-box svg { opacity: 1; }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--aqua); outline-offset: 2px; }
.consent-text a { color: var(--pearl); text-underline-offset: 3px; }
.consents.is-asking .consent:not(:has(input:checked)) { box-shadow: inset 0 0 0 1.5px var(--hot); background: rgb(255 111 143 / .14); 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(--haze); 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 rows, each with its picture in a round drop. */
.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(--haze); font-size: 14px; line-height: 1.45; }
.create-all { position: relative; color: var(--pearl); font-weight: 750; text-underline-offset: 4px; white-space: nowrap; }
.shots { display: grid; gap: 10px; }
.shotrow { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 10px 12px 10px 10px; border: 0; border-radius: 24px;
  background: var(--slab-2); color: var(--pearl); text-align: left; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .05); }
.shotrow-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid transparent; border-radius: 50%; background: #05060a padding-box, var(--chrome-edge) border-box; }
.shotrow-media::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(34% 22% at 32% 20%, rgb(255 255 255 / .5), transparent 70%); pointer-events: none; }
.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; stroke: var(--lilac); }
.shotrow-text { display: grid; gap: 3px; min-width: 0; }
.shotrow-title { font: 700 expanded 13.5px/1.2 var(--display); letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; hyphens: auto; }
.shotrow-lead { color: var(--haze); 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: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--metal); box-shadow: inset 0 -2px 4px rgb(0 0 0 / .18), 0 2px 6px rgb(0 0 0 / .4); }
.shotrow-go.is-rec { background: var(--holo); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 4px 12px -4px rgb(185 162 255 / .8); }
.shotrow-go .rec-dot { width: 15px; height: 15px; }

/* «История» as a sheet of round-cornered frames; «Популярное» as a chart with holographic numbers. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kit-result { position: relative; padding: 0; overflow: hidden; aspect-ratio: 3 / 4; border: 0; border-radius: 16px; background: #05060a; box-shadow: inset 0 0 0 1px var(--line); }
.kit-result img { width: 100%; height: 100%; object-fit: cover; }
/* A result whose picture is gone (app.js): its tile glowing softly as a card without an example, its name and date on it. */
.kit-result.is-empty { background: radial-gradient(70% 60% at 30% 20%, rgb(185 162 255 / .22), transparent 70%), #0f1117; }
.kit-result[data-when]::before { content: attr(data-when); position: absolute; left: 5px; bottom: 5px; z-index: 1; padding: 1px 7px; border-radius: var(--key); background: var(--shade); color: var(--aqua); font: 700 10px/1.5 var(--lcd); }
.kit-result.is-video::after { content: ""; position: absolute; right: 8px; bottom: 7px; border-left: 9px solid var(--pearl); border-top: 6px solid transparent; border-bottom: 6px solid transparent; filter: drop-shadow(0 0 3px rgb(0 0 0 / .8)); }
/* 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 7px; border-radius: var(--key); background: var(--metal); color: var(--ink); font: 700 10px/1.5 var(--lcd); }
.kit-result-name { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: -webkit-box; overflow: hidden; padding: 7px 8px 14px; background: linear-gradient(rgb(5 6 10 / .8), transparent);
  color: var(--pearl); 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: 22px; background: #05060a; object-fit: contain; }
#history:not(.is-viewing) .acc-out { display: none !important; }
.history-empty { display: grid; justify-items: start; gap: 4px; }
/* An empty history: an empty screen waiting for its first picture. */
.history-empty .lost { max-width: none; aspect-ratio: 16 / 8; margin-bottom: 10px; }
.chart { counter-reset: none; }
.chart-item { position: relative; display: grid; }
.chart-rank { position: absolute; top: 8px; right: 10px; z-index: 3; color: transparent; font: 800 extra-expanded 30px/1 var(--display); -webkit-text-stroke: 1.2px var(--pearl); pointer-events: none;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / .6)); }
.chart-item:nth-child(-n+3) .chart-rank { -webkit-text-stroke: 0; background: var(--metal); -webkit-background-clip: text; background-clip: text; }
.chart-item:first-child .chart-rank { background: var(--holo); -webkit-background-clip: text; background-clip: text; }
.chart-all { display: flex; margin-top: 20px; }

/* «Фильтры» */
.flt { display: grid; gap: 10px; margin-top: 16px; }
.flt-title { margin: 0; color: var(--haze); 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: var(--key); background: rgb(0 0 0 / .4); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 6px rgb(0 0 0 / .5); }
.seg button { min-height: 42px; padding: 0 10px; border: 0; border-radius: var(--key); background: none; color: var(--haze); font-size: 14.5px; font-weight: 750; }
.seg button[aria-pressed="true"] { background: var(--metal); color: var(--ink); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .14), 0 1px 4px rgb(0 0 0 / .5); }
.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(--slab); box-shadow: 0 -1px 0 var(--line); }
.flt-show { flex: 1 1 auto; max-width: 260px; }

/* «Пополнить баланс»: the steps as a progress line in the sheen, 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(--haze); font-size: 12.5px; font-weight: 800; }
.topup-steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.topup-steps li.is-on, .topup-steps li:has(i:not([hidden])) { color: var(--pearl); }
.topup-steps li.is-on::before, .topup-steps li:has(i:not([hidden]))::before { background: var(--holo); box-shadow: 0 0 10px rgb(185 162 255 / .5); }
.topup-steps i { display: none !important; }
.topup-lead { margin: 0 0 12px; color: var(--haze); 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 14px; border-radius: 16px; background: rgb(146 244 200 / .08); box-shadow: inset 0 0 0 1px rgb(146 244 200 / .3); font-size: 13.5px; line-height: 1.35; }
.offer-chip b { color: var(--mint); }
.offer-chip.is-promo { background: rgb(238 240 248 / .05); box-shadow: inset 0 0 0 1px var(--line); }
.offer-ico { font-size: 18px; }
.offer-note { margin: 0; color: var(--haze); 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 expanded 13px/1.25 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.topup-head .topup-label { margin: 0; }
.topup-rate { color: var(--haze); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
/* A package: a graphite tile; the chosen one polished metal with a holographic ring. */
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.pack { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 124px; padding: 18px 14px 12px; border: 0; border-radius: 22px; background: var(--slab-2); color: var(--pearl);
  text-align: left; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .06); }
.pack-tag { position: absolute; top: -10px; left: 12px; padding: 3px 9px; border-radius: var(--key); background: var(--holo); color: var(--ink); font-size: 10.5px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 4px 10px -4px rgb(185 162 255 / .8); }
.pack.is-max .pack-tag { background: var(--mint); }
.pack-total { display: inline-flex; align-items: center; gap: 4px; font: 800 expanded 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.pack-total .cr { width: 17px; height: 17px; }
.pack-parts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.pack-sum { color: var(--haze); font-size: 12px; font-weight: 650; }
.pack-pct, .pack-gift { color: var(--mint); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
/* A phone: the bonus percent and the gift on a line of their own under the sum, together – after the sum, «+24» alone
   went down to a line of its own, and the tiles' lines went every which way. */
@media (max-width: 999px) { .pack-sum { flex: 1 0 100%; } }
.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(--haze); font-size: 11.5px; font-weight: 650; }
.pack[aria-pressed="true"] { background: var(--metal); color: var(--ink); box-shadow: 0 0 0 2px var(--lilac), 0 0 24px -4px rgb(185 162 255 / .7), inset 0 -3px 6px rgb(0 0 0 / .12); }
.pack[aria-pressed="true"] :is(.pack-sum, .pack-worth) { color: rgb(11 12 18 / .66); }
.pack[aria-pressed="true"] :is(.pack-pct, .pack-gift) { color: #0b7a4a; }
.pack[aria-pressed="true"] .pack-foot { border-top-color: rgb(11 12 18 / .14); }
/* One column no wider than the sheet: the field gives way, not the page (its own width would push the key out). */
.promo { display: grid; grid-template-columns: minmax(0, 1fr); 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 16px; border: 0; border-radius: var(--key); background: #07080c; color: var(--pearl); font: 700 16px/1 var(--sans); letter-spacing: .06em;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 6px rgb(0 0 0 / .5); }
.promo-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--aqua); }
.promo-input::placeholder { color: rgb(160 167 187 / .7); }
.promo-go { flex: 0 0 auto; min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--key); background: var(--slab-2); color: var(--pearl); font-size: 14.5px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line-2); }
.promo-note { margin: 0; color: var(--mint); font-size: 13px; font-weight: 700; }
.promo-hint { margin: 0; color: var(--haze); 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(--slab); 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: 4px; font: 800 expanded 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar-total .cr { width: 18px; height: 18px; }
.bar-sub { overflow: hidden; color: var(--haze); 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: 50%; color: var(--ink);
  background: radial-gradient(circle at 35% 25%, #fff 0 10%, transparent 40%), var(--metal); box-shadow: inset 0 -2px 4px rgb(0 0 0 / .2), 0 3px 10px rgb(0 0 0 / .45); }
/* 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(--haze); font: 700 11px/1.2 var(--lcd); letter-spacing: .1em; text-transform: uppercase; }
.way-list { display: grid; gap: 8px; }
.is-cards .way-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Google Pay and Apple Pay side by side, «Карта Visa / Mastercard» under them the whole width (2026-12-01). */
.is-wallet .way-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.is-wallet .way:not(.way-pair) { grid-column: 1 / -1; }
.way-note { margin: 0 2px; color: var(--haze); 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: 20px; background: var(--slab-2); color: var(--pearl);
  text-align: left; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .05); }
.way[aria-pressed="true"] { background: linear-gradient(110deg, rgb(255 159 220 / .12), rgb(185 162 255 / .14) 50%, rgb(146 228 255 / .1)), var(--slab-2); box-shadow: inset 0 0 0 2px var(--lilac), 0 0 20px -6px rgb(185 162 255 / .6); }
.way-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #07080c; box-shadow: inset 0 0 0 1px var(--line-2); }
.way-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--pearl); 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(--haze); font-size: 12.5px; line-height: 1.3; }
.way-price { display: grid; justify-items: end; gap: 3px; font: 650 13.5px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.way-cut { padding: 2px 7px; border-radius: var(--key); background: var(--mint); 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; }
.way-tile .way-ico svg.flag { width: 22px; height: 15px; }
.way-tile .way-price { justify-items: start; color: var(--haze); }
.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(--pink); 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
   lilac, as a way is. */
.coins { display: grid; gap: 8px; margin: 2px 0 6px; padding: 0 0 0 12px; border-left: 2px solid var(--lilac); }
.coins-title { margin: 0; font-size: 13px; color: var(--haze); }
.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: 18px; background: var(--slab-2);
  color: var(--pearl); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.coin[aria-pressed="true"] { background: rgb(185 162 255 / .12); box-shadow: inset 0 0 0 2px var(--lilac); }
.coin-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.coin-name b { font: 700 expanded 13px/1.2 var(--display); }
.coin-name small { color: var(--haze); font-size: 12px; font-weight: 650; white-space: nowrap; }
.coin-sum { overflow: hidden; font: 650 13.5px/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(--haze); 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(--mint); }
.topup-sum .is-total dd { display: inline-flex; align-items: center; gap: 4px; font: 800 expanded 17px/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: 26px; background: var(--slab-2); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.wait-clock { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #07080c; box-shadow: inset 0 0 0 1.5px rgb(185 162 255 / .5), 0 0 20px -4px rgb(185 162 255 / .6); }
.wait-clock svg { width: 28px; height: 28px; fill: none; stroke: var(--lilac); stroke-width: 2; stroke-linecap: round; }
.wait-title { margin: 6px 0 0; font: 800 expanded 17px/1.2 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.wait-lead { max-width: 30em; margin: 0; color: var(--haze); 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(--haze); text-decoration-color: rgb(160 167 187 / .4); }
.bar-close { flex: 0 0 auto; margin-left: auto; min-height: 52px; padding: 0 20px; }

/* «Криптовалюта»'s transfer: the QR code on white (its quiet zone is in the code), the exact sum big, the visitor's own
   address on a dark display in monospace with «Скопировать», «Открыть в кошельке», the note. Side by side from 420px. */
.transfer { display: grid; gap: 12px; padding: 18px 16px; border-radius: 26px; background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--line); }
.transfer-title { margin: 0; font: 800 expanded 15px/1.25 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.transfer-lead { margin: -6px 0 0; color: var(--haze); 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: 16px; background: #fff; 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(--haze); font-size: 12.5px; font-weight: 650; }
.transfer-rows dd { margin: 0; }
.transfer-sum b { font: 800 expanded 20px/1.1 var(--display); 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: 14px; background: #07080c; color: var(--aqua); font: 700 13.5px/1.45 var(--lcd); 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(146 244 200 / .14); color: var(--mint); }
.transfer-note { margin: 0; color: var(--haze); 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; }
}

/* «Профиль»: the balance on a holographic card, the number in chrome. */
.purse { position: relative; display: grid; gap: 14px; padding: 20px 18px 18px; overflow: hidden; border-radius: 28px;
  background: radial-gradient(90% 80% at 0% 0%, rgb(185 162 255 / .3), transparent 60%), radial-gradient(70% 70% at 100% 100%, rgb(116 240 230 / .18), transparent 60%), var(--slab-2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .14); }
/* The balance is read off like the gadget's own display: the LCD face, whose zero never looks like a square key. */
.purse-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 700 40px/1 var(--lcd); letter-spacing: -.02em; text-shadow: 0 0 18px rgb(185 162 255 / .35); font-variant-numeric: tabular-nums; }
.purse-n .cr { width: 32px; height: 32px; }
.purse-label { color: var(--haze); font: 650 normal 14px/1.2 var(--sans); letter-spacing: 0; text-shadow: none; }
.purse-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 20px; background: rgb(5 6 10 / .55); }
.purse-id-text { display: grid; min-width: 0; }
.purse-id-text small { color: var(--haze); font-size: 12px; font-weight: 650; }
/* The number on one line («123 456» / «0005» at 320 px read as two numbers). */
.acc-number { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.purse-note { margin: -4px 0 0; color: var(--haze); font-size: 12.5px; line-height: 1.4; }
.acc-block { display: grid; gap: 10px; margin-top: 24px; }
.acc-title { margin: 0; font: 700 expanded 14px/1.25 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.acc-lead, .acc-hint { margin: 0; color: var(--haze); font-size: 13.5px; line-height: 1.45; }
.acc-warn { margin: 0; padding: 10px 14px; border-radius: 16px; background: rgb(255 211 110 / .1); color: #ffe3a1; font-size: 13.5px; }
[data-acc-can]:not([hidden]) { display: grid; gap: 10px; }
.acc-item { display: grid; gap: 8px; padding: 14px 16px; border-radius: 22px; background: var(--slab-2); 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-title { font-size: 15px; font-weight: 800; }
.acc-item-state { min-width: 0; padding: 3px 9px; border-radius: var(--key); box-shadow: inset 0 0 0 1px currentColor; color: var(--mint); font-size: 12.5px; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.acc-item-state::before { content: "✓ "; }
.acc-item-state:empty { display: none; }
.acc-code { display: grid; gap: 8px; }
.code { margin: 0; padding: 14px; border-radius: 16px; background: #07080c; color: var(--aqua); font: 700 18px/1.2 var(--lcd); letter-spacing: .1em; text-align: center; user-select: all; overflow-wrap: anywhere;
  text-shadow: 0 0 8px rgb(116 240 230 / .5); }
.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(--mint); }
.acc-status[data-tone="error"] { color: #ffb6c6; }
/* «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 var(--line-2); border-radius: var(--key);
  color: var(--haze); 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(--mint); 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(--metal); }
.label { color: var(--haze); font-size: 12.5px; font-weight: 750; }
.code-field { font-family: var(--lcd); 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(--haze); 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 16px; border-radius: 20px; background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--line); }
.kit-payment::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--haze); }
.kit-payment.is-pending::before { background: var(--coin); box-shadow: 0 0 10px var(--coin); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.kit-payment.is-paid::before { background: var(--mint); }
.kit-payment.is-declined::before { background: var(--hot); }
.kit-payment-main { display: grid; flex: 1 1 0; gap: 2px; min-width: 0; }
.kit-payment-sum { font-weight: 800; font-variant-numeric: tabular-nums; }
.kit-payment-meta { color: var(--haze); font-size: 12.5px; }
.kit-payment-state { padding: 3px 10px; border-radius: var(--key); background: rgb(238 240 248 / .08); color: var(--haze); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.kit-payment.is-pending .kit-payment-state { background: rgb(255 211 110 / .14); color: #ffe3a1; }
.kit-payment.is-paid .kit-payment-state { background: rgb(146 244 200 / .14); color: var(--mint); }
.kit-payment.is-declined .kit-payment-state { background: rgb(255 111 143 / .16); color: #ffb6c6; }
.kit-payment-pay { position: relative; overflow: hidden; display: inline-flex; flex: 1 0 100%; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--key); background: var(--holo);
  color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 6px 16px -8px rgb(185 162 255 / .8); }
.kit-payments-empty { margin: 0; color: var(--haze); 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(--pearl); font-size: 15px; font-weight: 700; text-align: left; text-decoration: none; }
.menu-chev { color: var(--haze); }
.menu-go { color: var(--haze); 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: 18px; box-shadow: 0 0 0 1.5px #c7ccd8, 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 expanded 17px/1.2 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.inst-lead { margin: 0; color: var(--haze); font-size: 14px; line-height: 1.4; }
.inst-lead strong { color: var(--pearl); }
.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: 50%; background: var(--metal); color: var(--ink);
  font: 800 expanded 13px/1 var(--display); }
.inst-key { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 2px; border-radius: 50%; background: var(--slab-2); vertical-align: -8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.inst-key svg { width: 18px; height: 18px; fill: none; stroke: var(--pearl); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inst-later { display: block; margin: 14px auto 0; }

/* Notes and the foot */
.notes { margin-top: 44px; }
.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: 56px; 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: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2);
  background: linear-gradient(var(--pearl) 0 0) 50% / 10px 2px no-repeat, linear-gradient(var(--pearl) 0 0) 50% / 2px 10px no-repeat; transition: transform .2s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgb(185 162 255 / .2); }
.faq p { margin: 0 0 14px; color: var(--haze); font-size: 14.5px; line-height: 1.6; }
.notes-text { max-width: 44em; margin: 18px 0 0; color: var(--haze); font-size: 14px; line-height: 1.6; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 16px calc(108px + 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; color: var(--haze); font-size: 12.5px;
  border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgb(201 171 255 / .45), rgb(146 228 255 / .35), transparent) 1; }
.foot-line a { display: inline-block; padding: 11px 0; color: var(--haze); text-underline-offset: 3px; }
body:has(.foot) .main { padding-bottom: 28px; }
/* With the dock (a phone, a tablet) the footer is compact (2026-11-30, the owner: the links stood one under another, a
   lot of empty space under them): the documents in a row that wraps – boxes 32 px high, 14 px apart, no gap between the
   rows – and under them only the dock with its raised «Создать» (64 + 16 px over its 12 px) and 10 px. On a phone the
   year and the name on a line of their own, the documents all on the next. */
@media (max-width: 1099px) {
  .foot { padding-bottom: calc(90px + max(12px, env(safe-area-inset-bottom))); }
  .foot-line { gap: 0 14px; }
  .foot-line a { display: inline-flex; align-items: center; min-height: 32px; padding: 0; }
}
@media (max-width: 639px) {
  .foot-line::after { content: ""; flex-basis: 100%; order: 1; }
  .foot-line a { order: 2; }
}

/* The narrowest phones (320 px): the site's name whole on top and the dock's words whole (the capsules a little nearer
   the screen's edges, their insides a little tighter – «DEMO ST…», «Популярн…» were cut), the drops a little smaller. */
@media (max-width: 359px) {
  .top { gap: 6px; margin-left: 6px; margin-right: 6px; padding: 0 6px; }
  .brand { gap: 8px; }
  .brand-mark, .brand-logo { width: 36px; height: 36px; }
  .wallet { padding: 0 10px 0 9px; }
  .dock { left: 8px; right: 8px; padding-left: 3px; padding-right: 3px; }
  .dock-tab, .dock-rec { font-size: 9.5px; letter-spacing: -.01em; }
  .brand-name { font-size: 11.5px; }
  .free-bar-title { font-size: 12.5px; }
  .hero-title { font-size: 20px; }
  .take-title { font-size: 11.5px; }
  .take-tag { left: 0; }
  .take-count { right: 0; }
  .cat-kinds button { padding: 0 11px; font-size: 13.5px; }
  /* A package's sum and its price with «≈ N видео» each on one line (at 14 px a side «бонус» and «≈ 150 видео» fell
     to a line of their own, and that tile stood taller than its neighbour). */
  .packs { gap: 14px 8px; }
  .pack { padding-left: 10px; padding-right: 10px; }
  /* The account's number and «Скопировать» side by side, the number on one line. */
  .purse { padding-left: 14px; padding-right: 14px; }
  .purse-id { gap: 8px; padding-left: 12px; }
  .purse-id .ghost { padding: 0 12px; }
  .acc-number { font-size: 15px; }
}
/* Up to 400 px the bar at the foot: the bubble key keeps its words on one line while they fit (the price takes only
   what is left), and gives way – two lines – only when they do not, so the price and the tags beside it stay whole. */
@media (max-width: 399px) {
  .run-bar { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .item .run-bar { padding: 8px 8px 8px 16px; }
  .run-sum { flex: 1 1 0; min-width: 96px; }
  .run-go { flex: 0 1 auto; min-width: 0; gap: 8px; padding: 0 16px; font-size: 15px; }
  .run-marks span { white-space: normal; overflow-wrap: anywhere; }
}
/* 320 px: «Загрузить фото» on one line in the bar (it fell short by a pixel and broke in two). */
@media (max-width: 359px) {
  .item .run-bar { padding-left: 14px; }
  .run-go { gap: 6px; padding: 0 13px; }
}
/* A tablet: wider strips, three cards in a row, the four drops in one row. */
@media (min-width: 640px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .top { margin-left: 16px; margin-right: 16px; padding: 0 10px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .takes-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .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; }
  .screen { height: clamp(420px, 62vw, 560px); }
  .hero-title { font-size: 30px; }
  .hero-lead { font-size: 15px; }
  .kind { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
  .kind-title { font-size: 24px; }
  .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: 30px; margin-bottom: auto; }
  .sheet-full, .sheet-free, .sheet-compose { border-radius: 0; }
  .item .run-bar { left: 50%; right: auto; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A computer: the menu in the capsule on top, no dock; the home page in two columns – the gadget on the left, the name,
   the free try and the drops on the right; a scenario's page with its screen staying in sight; the tall cards wide, their
   picture whole on the left. */
@media (min-width: 1100px) {
  :root { --top: 80px; }
  /* Floating off the screen's sides at every width (from 1100 to 1270 px it ran into both edges). */
  .top { top: 12px; max-width: min(1240px, calc(100% - 32px)); height: 60px; margin: 12px auto 0; padding: 0 10px 0 10px; gap: 10px; }
  .brand { margin-right: 8px; }
  .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 14px; border: 0; border-radius: var(--key); background: none; color: var(--haze); font-size: 14.5px; font-weight: 700; text-decoration: none; }
  .top-nav [aria-current="page"] { color: var(--ink); background: var(--metal); box-shadow: inset 0 -2px 3px rgb(0 0 0 / .14); }
  .top-make { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--key); background: var(--holo);
    color: var(--ink); font-size: 14.5px; font-weight: 800; box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -8px 12px rgb(110 70 190 / .22), 0 6px 18px -8px rgb(185 162 255 / .8); }
  .top-make::before { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 3px; height: 44%; border-radius: var(--key); background: linear-gradient(rgb(255 255 255 / .8), rgb(255 255 255 / 0)); }
  .top-make .rec-dot { width: 12px; height: 12px; }
  .dock { display: none; }
  .main { padding-top: 22px; padding-bottom: 48px; }
  body.is-detail .main { padding-bottom: 48px; }
  .foot { padding-bottom: 32px; }
  .home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; column-gap: 48px; }
  .home > .studio { grid-column: 1; grid-row: 1 / span 3; height: min(calc(100vh - 120px), 780px); min-height: 600px; margin: 0; }
  .home > .studio .screen { flex: 1 1 auto; height: auto; min-height: 0; }
  .home > .hero-text, .home > .offer, .home > .takes { grid-column: 2; }
  .home > .hero-text { margin: 18px 0 22px; gap: 16px; }
  .hero-title { padding-right: 40px; font-size: clamp(30px, 2.6vw, 44px); -webkit-line-clamp: 4; }
  .hero-lead { font-size: 16px; line-height: 1.55; -webkit-line-clamp: 5; }
  .spark-a { top: -4px; right: 0; width: 30px; height: 30px; }
  .spark-b { top: 34px; right: 34px; width: 13px; height: 13px; }
  .home > .takes { margin: 30px 0 0; }
  .home .takes-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .home .take-media { width: min(100%, 140px); }
  .home .take-tag { left: calc(50% - 86px); }
  .home .take-count { right: calc(50% - 86px); }
  .home > .catalog, .home > .notes { grid-column: 1 / -1; }
  .home > .catalog { margin-top: 48px; }
  .home.is-kind { grid-template-rows: none; }
  .studio { padding: 26px 16px 18px; border-radius: 46px; }
  .studio-title { font-size: 15px; }
  .studio .hud { top: 18px; left: 22px; right: 22px; }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; }
  .cat-bar { top: var(--top); }
  .item { grid-template-columns: auto minmax(0, 1fr); gap: 0 48px; 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; }
  .item-body { padding-top: 24px; }
  .item-title { font-size: 32px; }
  .item .run-bar { position: sticky; bottom: 16px; left: auto; width: auto; transform: none; margin: 6px 0 0; padding: 10px 10px 10px 22px; border-radius: 34px; }
  .reels { grid-auto-columns: minmax(160px, 16%); }
  .variants { grid-auto-columns: 120px; margin: 0; padding: 4px 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: 30px; }
  .sheet-full { height: fit-content; max-height: min(92vh, 900px); padding-bottom: 24px; border-radius: 30px; }
  .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: 30px; }
  .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; margin: 12px 0 12px 12px; border-radius: 24px; }
  .cmp-shot { position: relative; display: block; overflow: hidden; background: #05060a; }
  .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; }
  .free-title { padding-right: 52px; font-size: 22px; }
  .sheet-free .run-bar, .sheet-compose .run-bar { padding: 14px 28px; background: transparent; box-shadow: 0 -1px 0 var(--line); }
  .before-chip { left: 18px; bottom: 18px; 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; border-radius: 28px; }
  #create .shotrow-media { grid-column: 1 / -1; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 22px; }
  #create .shotrow-media::after { border-radius: 20px; background: linear-gradient(135deg, rgb(255 255 255 / .14), transparent 30%); }
  #create .shotrow-text { padding-left: 4px; }
  #create .shotrow-title { font-size: 15px; }
}
@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 { max-width: min(1440px, calc(100% - 32px)); }
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* A mouse: what answers the pointer – a bubble's sheen slides, a sticker's rim turns, a drop rises. */
@media (hover: hover) {
  .go:hover, .top-make:hover, .kit-payment-pay:hover { background-position: 100% 0; filter: brightness(1.05); }
  .ghost:hover, .idea-btn:hover, .promo-go:hover { background: var(--slab-3); }
  .close:hover, .back-btn:hover, .bar-back:hover, .offer-go:hover, .shotrow-go:hover { filter: brightness(1.08); }
  .cat-round:hover { background: radial-gradient(circle at 35% 25%, rgb(255 255 255 / .2), transparent 55%), var(--slab-3); }
  .offer:hover { background: linear-gradient(100deg, rgb(201 171 255 / .2), rgb(146 228 255 / .12) 60%, rgb(255 159 220 / .14)), var(--slab); }
  .card:hover { background-position: 0 0, 100% 100%; transform: translateY(-3px); }
  .card:hover::after { opacity: 1; transform: scale(1) rotate(0); }
  .card:hover .card-media > img, .card:hover .card-media > video, .reel:hover .reel-media > img { transform: scale(1.04); }
  .take:hover .take-media { box-shadow: 0 18px 34px -12px rgb(0 0 0 / .8), 0 0 44px -6px rgb(185 162 255 / .6); }
  .take:hover .take-media > img, .take:hover .take-media > video { transform: scale(1.06); }
  .take-media > img, .take-media > video, .reel-media > img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .cat-kinds button:hover:not([aria-pressed="true"]), .top-nav a:hover:not([aria-current="page"]), .top-nav button:hover { color: var(--pearl); }
  .shotrow:hover, .way:hover:not([aria-pressed="true"]), .coin:hover:not([aria-pressed="true"]), .pack:hover:not([aria-pressed="true"]), .opts button:hover:not([aria-pressed="true"]) { background: var(--slab-3); }
  .kit-chip:hover input:not(:checked) + span, .cat-subs button:hover:not([aria-pressed="true"]), .chips button:hover:not([aria-pressed="true"]), .pill:hover:not([aria-current="page"]) { background: rgb(255 255 255 / .06); }
  .drop:hover { background: rgb(185 162 255 / .12); }
  .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) {
  .screen::before, .spark, .offer-light::after, .take-media, .out-line::before, .kit-payment.is-pending::before { animation: none; }
  .screen::before { display: none; }
  .out-line::before { width: calc(100% - 6px); }
  .sheet[open], .kind:not([hidden]), .create-panel, .field-box.is-asking, .consents.is-asking .consent { animation: none; }
  .card, .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 as a messenger (web/sites/support.js, support.css, kit-chat-*) in the colours named here.
   The mark of an answer not read yet is the coin's gold: the sheen stays the keys'. */
[data-kit="support"] { --kit-chat-bg: var(--void); --kit-chat-surface: var(--slab); --kit-chat-surface-2: var(--slab-2); --kit-chat-line: var(--line-2);
  --kit-chat-text: var(--pearl); --kit-chat-muted: var(--haze); --kit-chat-accent: var(--lilac); --kit-chat-on-accent: var(--ink); --kit-chat-online: var(--mint);
  --kit-chat-warn: var(--coin); --kit-chat-danger: var(--hot); }
.help-dot { position: absolute; top: 4px; right: calc(50% - 18px); z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--coin); box-shadow: 0 0 0 2px var(--void); }
.help-dot[hidden] { display: none; }
.wallet .help-dot { top: -2px; right: -2px; }
.help-badge { padding: 3px 9px; border-radius: var(--key); background: rgb(255 211 110 / .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: 20px; background: rgb(255 211 110 / .1);
  box-shadow: inset 0 0 0 1px rgb(255 211 110 / .35); color: var(--pearl); 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 14px; border: 0; border-radius: var(--key); background: var(--slab-2); color: var(--pearl); font: 700 14px/1.3 var(--sans);
  box-shadow: inset 0 0 0 1px var(--line-2); }
.help-other { margin: 18px 4px 0; color: var(--haze); font-size: 13.5px; }
.faq-more { margin: 20px 0 0; color: var(--haze); font-size: 14px; }
.faq-ask { padding: 0; border: 0; background: none; color: var(--pearl); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.help-other a { color: var(--pearl); }
/* A computer: «Помощь» as tall as a chat. */
@media (min-width: 760px) { #support.sheet-full { min-height: min(70vh, 640px); } }

/* A scenario's card on a phone or a tablet, and «Бесплатная проба» as it: 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: 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). 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(-22px - var(--sheet-room, 0px)); padding-top: 20px;
    border-radius: 26px 26px 0 0; background: linear-gradient(180deg, #1a1d26, var(--slab) 120px); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .16), 0 -12px 28px rgb(0 0 0 / .45); will-change: transform; }
  .sheet-free .free-body::before { content: ""; justify-self: center; width: 44px; height: 5px; margin: -10px 0 4px; border-radius: 3px; background: var(--holo); opacity: .7; }
  .sheet-free .run-bar { position: relative; z-index: 2; }
  /* «До» and the screen's status line above the sheet's edge (it comes 22 px over the example), not under it. */
  .sheet-free .before-chip { bottom: 42px; }
  .sheet-free .free-shot .hud { bottom: 42px; }
}

/* A main screen on a phone or a tablet – «Популярное», «Создать», «История», «Профиль», the profile's «Помощь» and
   «Вопросы и ответы»: 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(108px + 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(--slab); --kit-confirm-text: var(--pearl); --kit-confirm-muted: var(--haze); --kit-confirm-line: var(--line); --kit-confirm-danger: var(--hot); --kit-confirm-on-danger: var(--ink); --kit-confirm-radius: 28px; }
.history-clear { display: block; min-height: 44px; margin: 12px 0 0; padding: 8px 0; border: 0; background: none; color: var(--haze); font: inherit; font-family: var(--lcd); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.menu-row.menu-danger { color: var(--hot); }

/* «ИИ-аватары» 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). «Популярно» on «Оживить фото» is a small orange star that softly shimmers – a light
   running over it, never a blink (2026-11-22: the word took a lot of the card). */
:root { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.4 0 .7.2.9.6l2.3 4.7 5.2.8c.8.1 1.1 1.1.5 1.7l-3.7 3.6.9 5.1c.1.8-.7 1.4-1.4 1L12 17.7l-4.6 2.4c-.7.4-1.5-.2-1.4-1l.9-5.1-3.7-3.6c-.6-.6-.3-1.6.5-1.7l5.2-.8 2.3-4.7c.2-.4.5-.6.9-.6Z'/%3E%3C/svg%3E"); }
.take-tag.take-star { display: grid; place-items: center; width: 28px; height: 28px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--star-bg, rgb(16 13 11 / .58)); box-shadow: 0 0 14px rgb(255 122 26 / .38); font-size: 0; line-height: 0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.take-tag.take-star::before { content: ""; width: 17px; height: 17px; background: linear-gradient(110deg, #ff6a00 15%, #ffa63d 38%, #ffe2ae 50%, #ffa63d 62%, #ff6a00 85%) 0 50% / 300% 100%;
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; animation: star-sheen 3.2s ease-in-out infinite alternate; }
@keyframes star-sheen { to { background-position: 100% 50%; } }
.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) {
  .take-tag.take-star::before { animation: none; background-position: 50% 50%; }
  .avs-media > img, .avs-media > video { transition: none; }
}
.avs { --avs-r: var(--card-r); --avs-bg: #0d0e14; --avs-name: 700 13px/1.2 var(--display); --avs-name-size: 13px; --avs-name-ls: .04em; --avs-name-case: uppercase; }
/* Its wide title takes the head's first line: «онлайн» and «Все» stand under it. */
.avs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
.avs-head .row-title { grid-column: 1 / -1; }
.avs-live { justify-self: start; }
@media (min-width: 1100px) { .home > .avs { grid-column: 1 / -1; margin: 48px 0 0; } }
/* (end of «ИИ-аватары» and the star) */

/* The top bar on a computer: a word of the menu never breaks in two, and the site's name keeps its room (2026-11-26:
   at 1100 px, with «ИИ-аватары» and «Партнёрам» in it, the menu took the name down to «S…» and broke «ИИ-аватары» over
   two lines; up to 1536 px it still cut the name). Until a big screen's wider bar (1800 px) the menu's words stand
   closer; up to 1279 px «Популярное» leaves it where «ИИ-аватары» are, as on a phone's dock – «Примеры» on the home page
   are the most run first. */
@media (min-width: 1100px) {
  .top-nav a, .top-nav button { white-space: nowrap; }
}
@media (min-width: 1100px) and (max-width: 1799px) {
  .top-nav { gap: 0; }
  .top-nav a, .top-nav button { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .top-nav:has(> a[href$="/avatars"]) > [data-kit-open="popular"] { display: none; }
}

/* The promo code's row in «Пополнить баланс» (2026-11-26): the field's own width (twenty letters) made the row wider than
   the sheet on a phone – at 375 px the sheet slid sideways by up to 25 px. The field takes the room the button leaves. */
.promo-row { min-width: 0; }
.promo-input { width: 100%; }

/* A scenario's picture on a tablet (2026-11-26): when the screen's height caps it (70 % of it, 4 : 5), it stands in the
   middle – it stood at the left with an empty band on the right, 163 px at 768 × 1024 and 567 px at 1024 × 768. */
@media (max-width: 1099px) {
  .item > .shot { margin-left: max(0px, calc((100% - 70vh * .8) / 2)); margin-right: max(0px, calc((100% - 70vh * .8) / 2));
    margin-left: max(0px, calc((100% - 70svh * .8) / 2)); margin-right: max(0px, calc((100% - 70svh * .8) / 2)); }
}
