/* «Леденец» – a sheet of stickers on a night-blue desk (site-templates/README.md). Nothing glows here: flat fills, an
   outline two pixels wide, and a hard shadow without blur that peeks from under what can be pressed – pink under
   turquoise, turquoise under pink. Corners are soft squares, never capsules. Pink is the action of the moment, turquoise
   is what is chosen or said about a picture, a yellow sticker says «free» and «went through», a gold gem is a credit;
   names and marks may stand a little askew, as a sticker put on by hand. Each kind has its colour on a card: a clip pink,
   a photo turquoise, the editor yellow. Type: Unbounded for names and numbers, Manrope for reading. Phone first. */
@font-face { font-family: Unbounded; src: url(fonts/unbounded-cyrillic.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Unbounded; src: url(fonts/unbounded-latin.woff2) format("woff2"); font-weight: 200 900; 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; }

:root {
  --sky: #0b0f2e; --sky-rgb: 11 15 46; --veil: #141a45; --veil-rgb: 20 26 69; --veil-2: #1f2860; --veil-3: #2c387f; --edge: #3d4bab;
  --glow: #f4f6ff; --glow-rgb: 244 246 255; --mist: #abb6e6; --mist-rgb: 171 182 230; --ink: #0a0d2b; --ink-rgb: 10 13 43;
  --rose: #ff7bd5; --rose-rgb: 255 123 213; --iris: #9c8cff; --iris-rgb: 156 140 255; --wave: #3fe6d0; --wave-rgb: 63 230 208;
  --lime: #ffe45c; --lime-rgb: 255 228 92; --lime-deep: #6b5600; --gem: #ffd84d; --gem-rgb: 255 216 77; --gem-deep: #8a5a00; --blush: #ffc9ee;
  --line: rgb(var(--glow-rgb) / .12); --scrim: rgb(var(--ink-rgb) / .88); --shade: rgb(var(--ink-rgb) / .72); --glass: var(--veil-2);
  /* The one colour of a key (the name is «Аура»'s, whose keys are a gradient: the rules that say it are shared). */
  --grad: var(--rose);
  /* The hard shadow: its offset here, its colour where it is used – box-shadow: var(--pop) var(--wave). */
  --pop: 4px 4px 0; --pop-s: 3px 3px 0;
  --display: Unbounded, "Arial Black", system-ui, sans-serif; --sans: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --frame: 22px; --tile: 18px; --key: 16px; --top: 60px;
  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(--sky); color: var(--glow); font: 500 16px/1.5 var(--sans); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
/* The desk under the stickers: a quiet grid of dots that stays where it is while the page scrolls. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(rgb(var(--glow-rgb) / .07) 1.4px, transparent 1.6px) 0 0 / 22px 22px; }
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(--glow); 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(--glow); color: var(--ink); font-weight: 700; }
.skip:focus { top: 10px; }
/* A credit: a gold gem, its crown lighter (partials/cr.html). */
.cr { width: 1em; height: 1em; fill: var(--gem); vertical-align: -.14em; flex: 0 0 auto; }
.cr-top { fill: #fff; opacity: .5; }
svg { flex: 0 0 auto; }

/* Keys: pink is the action of the moment – a dark outline, turquoise peeking from under it, and it goes down onto its
   shadow when pressed; the dark key does the rest; a text key is the way out. */
.go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px; border: 2px solid var(--ink); border-radius: var(--key);
  background: var(--rose); color: var(--ink); font: 800 16px/1.15 var(--sans); text-align: center; text-decoration: none; box-shadow: var(--pop) var(--wave);
  transition: transform .1s, box-shadow .1s, filter .15s; }
.go:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--wave); }
.go:disabled { opacity: .5; cursor: default; }
.go .cr { fill: var(--ink); }
/* On a light key (a chosen package, quality, chip) the gem 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(--gem-deep); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 2px solid var(--edge); border-radius: 14px;
  background: var(--veil-2); color: var(--glow); font: 700 15px/1.15 var(--sans); text-decoration: none; }
.ghost:disabled { opacity: .5; }
.small { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.wide { width: 100%; }
.text-btn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--glow); font-weight: 650; text-decoration: underline; text-decoration-color: rgb(var(--glow-rgb) / .4); text-underline-offset: 4px; }
/* The spark on a key that makes something; the square key that sends the words. */
.spark { flex: 0 0 auto; width: 17px; height: 17px; fill: currentColor; }
.spark-btn { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 14px; background: var(--rose); box-shadow: var(--pop-s) var(--wave);
  transition: transform .1s, box-shadow .1s; }
.spark-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

.studio, .kind-shot, .free-shot { position: relative; isolation: isolate; }

/* Top: the brand's mark askew, «Ж / М» and the balance as dark keys with an outline. */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: var(--top); padding: 0 16px; background: var(--sky); box-shadow: 0 2px 0 var(--edge); }
.brand { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; margin-right: auto; text-decoration: none; }
/* The way home as high as the top's keys to tap (the mark is 36 px). */
.brand::after { content: ""; position: absolute; inset: -4px 0; }
/* No logo: the first letter on a pink sticker. */
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 11px; background: var(--rose); color: var(--ink); font: 900 16px/1 var(--display);
  box-shadow: var(--pop-s) var(--wave); transform: rotate(-5deg); }
.brand-logo { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; object-fit: cover; }
.brand-name { overflow: hidden; font: 800 15px/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.top-nav, .top-make { display: none; }
.aud { display: flex; flex: 0 0 auto; padding: 2px; border: 2px solid var(--edge); border-radius: 13px; background: var(--veil-2); }
/* Each a finger's width: the key as drawn, its touch area out to the box's edge (40 px; the two never overlap). */
.aud button { position: relative; display: grid; place-items: center; width: 36px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--mist); }
.aud button::after { content: ""; position: absolute; inset: -4px 0; }
.aud button:first-child::after { left: -4px; }
.aud button:last-child::after { right: -4px; }
.aud svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.aud button[aria-pressed="true"] { background: var(--wave); color: var(--ink); }
.wallet { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 44px; height: 40px; padding: 0 12px 0 10px; border: 2px solid var(--edge); border-radius: 13px; background: var(--veil-2);
  color: var(--glow); font: 700 14px/1 var(--display); font-variant-numeric: tabular-nums; }
.wallet .cr { width: 17px; height: 17px; }
.wallet-n:empty { display: none; }

.main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 16px 16px calc(116px + env(safe-area-inset-bottom)); }
.row-title { margin: 0 0 12px; font: 800 19px/1.15 var(--display); letter-spacing: -.02em; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-more { position: relative; color: var(--mist); 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 10px; border: 2px solid var(--edge); border-radius: 10px; background: var(--veil-2); font-size: 13px; font-weight: 750; }
.cost-n { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ph { width: 34%; height: 34%; fill: none; stroke: rgb(var(--glow-rgb) / .34); stroke-width: 1.6; stroke-linecap: round; }

/* The dock: one dark board floating over the page – the main screens as marks, two on each side, and «Создать» said in
   words on the pink key between them. The words of the marks stay for a screen reader. */
.dock { position: fixed; left: 10px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 25; display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; grid-template-rows: 60px; align-items: center;
  padding: 0 6px; border: 2px solid var(--edge); border-radius: 20px; background: var(--veil-2); box-shadow: var(--pop) var(--iris); }
.dock > * { grid-row: 1; }
.dock > :nth-child(1) { grid-column: 1; }
.dock > :nth-child(2) { grid-column: 2; }
.dock > :nth-child(3) { grid-column: 4; }
.dock > :nth-child(4) { grid-column: 5; }
/* Each a finger's square to tap. */
.dock-tab { position: relative; display: grid; place-items: center; justify-self: center; width: 100%; max-width: 58px; height: 46px; padding: 0; border: 0; border-radius: 13px; background: none; color: var(--mist);
  font: 700 10.5px/1.1 var(--sans); text-decoration: none; }
.dock-tab > span:last-child { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dock-tab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; 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 mark stands on turquoise. */
.dock-tab[aria-current="page"] { background: var(--wave); color: var(--ink); }
.dock-rec { grid-column: 3; display: inline-flex; align-items: center; gap: 6px; height: 44px; margin: 0 6px; padding: 0 16px 0 10px; border: 2px solid var(--ink); border-radius: 13px; background: var(--rose); color: var(--ink);
  font: 800 14.5px/1 var(--sans); white-space: nowrap; box-shadow: var(--pop-s) var(--wave); transition: transform .1s, box-shadow .1s; }
.dock-rec-ring { display: grid; place-items: center; width: 24px; height: 24px; }
.dock-rec-ring svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dock-rec:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wave); }
.is-detail .dock { display: none; }
.is-missing .dock, .is-missing .wallet, .is-missing .top-make, .is-missing .aud { display: none; }
body.is-missing .main { padding-bottom: 40px; }
body.is-detail .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* The home page on a phone: the site's own words – its name for itself and a line under it, seen by the visitor and
   by a search engine alike, never hidden –, the yellow sticker of the free try, «Свой сценарий» as a card – its picture,
   then the line for the words under it –, the four ways in as tiles of different sizes, «Примеры». The owner's words may
   be long (120 and 300 characters): a phone shows four lines of the name and three of the line under it. */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.home.is-kind { display: block; }
.hero-text { display: grid; gap: 7px; margin: 0 0 -4px; }
.hero-title, .hero-lead { display: -webkit-box; overflow: hidden; margin: 0; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.hero-title { font: 900 clamp(19px, 5.7vw, 24px)/1.14 var(--display); letter-spacing: -.03em; -webkit-line-clamp: 4; }
.hero-lead { color: var(--mist); font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 3; }
/* The free try: a yellow sticker across the page, pink under it; the gift on a dark square put on askew. */
.offer { position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% - 4px); min-height: 60px; padding: 8px 10px 8px 8px; border: 2px solid var(--ink); border-radius: 18px; background: var(--lime);
  color: var(--ink); text-align: left; text-decoration: none; box-shadow: var(--pop) var(--rose); transition: transform .1s, box-shadow .1s; }
.offer:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--rose); }
.offer-gift { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); transform: rotate(-6deg); }
.offer-gift svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.offer-text { display: grid; flex: 1 1 auto; min-width: 0; }
.offer-text strong { font: 800 14.5px/1.25 var(--display); letter-spacing: -.01em; }
.offer-text small { font-size: 12.5px; font-weight: 700; line-height: 1.3; opacity: .82; }
.offer-go { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: var(--lime); }
.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; }
/* The yellow light of «free» (the free try's card). */
.offer-light { position: relative; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 4px; background: var(--lime); transform: rotate(45deg); }

/* «Свой сценарий» as a card: its example in a low frame – the name as a turquoise sticker and «Видео / Фото» on it –, and
   under the picture, on the card itself, the line that types out ideas with the price and the pink key. A run takes the
   example's place in the frame. */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); width: calc(100% - 6px); overflow: hidden; border: 2px solid var(--edge); border-radius: var(--frame); background: var(--veil); box-shadow: 6px 6px 0 var(--rose); }
.studio-shot { position: relative; aspect-ratio: 1 / .9; overflow: hidden; background: var(--veil-2); }
.studio-bg, .studio-bg > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.studio-bg::after { content: ""; position: absolute; inset: 0 0 62%; background: linear-gradient(rgb(var(--ink-rgb) / .5), transparent); }
html[data-site-mode="edit"] .only-animate, html[data-site-mode="animate"] .only-edit, html:not([data-site-mode]) .only-edit { display: none; }
/* A mode with no picture at all (no example of its own, no video scene's to borrow – partials/studio.html): the frame
   striped in the desk's colours, as a card without an example, never a black hole. */
html[data-site-mode="animate"] .studio-bg:not(:has(> .only-animate:not([hidden]))), html[data-site-mode="edit"] .studio-bg:not(:has(> .only-edit:not([hidden]))) {
  background: repeating-linear-gradient(135deg, var(--veil-2) 0 16px, var(--veil-3) 16px 32px); }
/* Its name and «Видео / Фото» on one line over the picture's top. */
.studio-head { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.studio-title { min-width: 0; margin: 0; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--wave); color: var(--ink); font: 800 13px/1.15 var(--display); letter-spacing: -.015em;
  transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--ink); }
.toggle { display: inline-flex; flex: 0 0 auto; padding: 2px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); }
.toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--mist); font-size: 14px; font-weight: 800; }
.toggle button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.toggle button[aria-pressed="true"], .toggle button[aria-selected="true"] { background: var(--glow); color: var(--ink); }
.studio .toggle button { min-height: 32px; padding: 0 11px; font-size: 13px; }
/* Small in the frame, a finger's height to tap: 40 px up and down past the switch's edge. */
.studio .toggle button { position: relative; }
.studio .toggle button::after { content: ""; position: absolute; inset: -6px 0; }
.toggle-wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 0 0 14px; border-color: var(--edge); background: var(--sky); }
.toggle-wide button { min-height: 44px; font-size: 15px; }
/* One column as wide as the card: the line typing an idea (nowrap) never widens it. */
.studio-foot { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border-top: 2px solid var(--edge); }
.ask { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 6px 10px 6px 14px; border: 2px solid var(--edge); border-radius: 16px; background: var(--sky);
  color: var(--glow); text-align: left; }
.ask-idea svg { width: 18px; height: 18px; fill: var(--lime); }
.ask-text { flex: 1 1 auto; min-width: 0; overflow: hidden; color: rgb(var(--glow-rgb) / .86); font-size: 14.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ask-price { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; font: 700 13px/1 var(--display); font-variant-numeric: tabular-nums; }
.ask-price:empty { display: none; }
.ask .spark-btn { margin: 0 3px 3px 0; }
.ask:active .spark-btn { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wave); }
html:is([data-site-step="upload"], [data-site-step="choose"]) .home .studio { cursor: pointer; }
.after { display: grid; gap: 10px; padding: 0 4px 4px 0; }
.after-note { margin: 0; color: var(--mist); font-size: 13.5px; line-height: 1.4; }
.oops { margin: 0; padding: 10px 14px; border: 2px solid var(--rose); border-radius: 14px; background: rgb(var(--rose-rgb) / .14); color: var(--blush); font-size: 14px; line-height: 1.4; }
.oops .text-btn { min-height: 32px; color: inherit; }

/* What the visitor made, over the frame: the result on its own blur; while it runs three small squares hop in turn. */
.out { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.out > img, .out > video { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; }
.out-fill { object-fit: cover; filter: blur(28px) saturate(1.3) brightness(.55); transform: scale(1.15); }
.out-pic { object-fit: contain; object-position: 50% 0; }
.out-video { background: var(--sky); }
.out-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 32px; text-align: center; background: rgb(var(--ink-rgb) / .68); }
.out-title { margin: 8px 0 0; font: 800 24px/1.1 var(--display); letter-spacing: -.03em; }
.out-title::after { content: "…"; }
.out-note { max-width: 260px; margin: 0; color: var(--glow); opacity: .86; font-size: 14px; }
.out-line { display: block; width: 14px; height: 14px; margin: 12px 30px; border-radius: 4px; background: var(--rose); box-shadow: -24px 0 0 var(--lime), 24px 0 0 var(--wave); animation: hop .9s ease-in-out infinite; }
@keyframes hop {
  25% { transform: translateY(0); box-shadow: -24px -10px 0 var(--lime), 24px 0 0 var(--wave); }
  50% { transform: translateY(-10px); box-shadow: -24px 10px 0 var(--lime), 24px 10px 0 var(--wave); }
  75% { transform: translateY(0); box-shadow: -24px 0 0 var(--lime), 24px -10px 0 var(--wave); }
}
.out::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--scrim)); pointer-events: none; }
.out:not(:has(> img:not([hidden]), > video:not([hidden])))::after, .studio .out::after { display: none; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .studio-head { display: none; }
html:is([data-site-step="choose"], [data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .studio-bg { visibility: hidden; }
/* The home card shows the run of «Свой сценарий»: its example stays while a photo only waits (the photo is in the card). */
.home .studio .out [data-kit-src="photo"] { display: none !important; }
html[data-site-step="choose"] .home .studio-bg { visibility: visible; }
/* A result gets a taller frame than the example had: a 2:3 or 9:16 picture is seen whole, or nearly. */
html:is([data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .studio-shot { aspect-ratio: 4 / 5; }
/* 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 tiles of different sizes – the first tall on the left, two beside it, the fourth
   wide under them (three: the first tall; two: side by side). Each its example with its name on a sticker of the tile's
   own colour, the same colour peeking from under the tile. */
.takes { margin: 4px 0 0; }
.takes-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 112px; gap: 14px; padding: 0 4px 4px 0; }
.takes-row:not(:has(> :nth-child(3))) { grid-auto-rows: 168px; }
.take { --tone: var(--rose); position: relative; isolation: isolate; display: block; min-width: 0; overflow: hidden; border: 2px solid var(--edge); border-radius: var(--tile); background: var(--veil-2); color: var(--glow);
  text-decoration: none; box-shadow: var(--pop) var(--tone); transition: transform .12s, box-shadow .12s; }
.take:nth-child(2) { --tone: var(--wave); }
.take:nth-child(3) { --tone: var(--lime); }
.take:nth-child(4) { --tone: var(--iris); }
.takes-row:has(> :nth-child(3)) > :first-child { grid-row: span 2; }
.takes-row > :nth-child(4) { grid-column: 1 / -1; }
.take:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tone); }
.take-media, .take-media > img, .take-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.take-media > .ph { position: absolute; inset: 0; width: 34%; height: 34%; margin: auto; }
.take::after { content: ""; position: absolute; inset: 30% 0 0; z-index: 1; background: linear-gradient(transparent, rgb(var(--ink-rgb) / .86)); pointer-events: none; }
.take-text { position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 2; display: grid; justify-items: start; gap: 5px; }
.take-kind { display: none; }
.take-kind svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.take-title { max-width: 100%; padding: 3px 8px; border-radius: 8px; background: var(--tone); color: var(--ink); font: 800 12px/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; transform: rotate(-2deg); }
.take .cost { padding-left: 2px; font: 700 11.5px/1.2 var(--display); text-shadow: 0 1px 6px rgb(0 0 0 / .6); }
.take .cost .cr { width: 12px; height: 12px; }
.take-tag { position: absolute; top: 9px; left: 9px; z-index: 2; padding: 3px 8px; border: 2px solid var(--ink); border-radius: 8px; background: var(--lime); color: var(--ink); font-size: 10.5px; font-weight: 800; line-height: 1.2;
  white-space: nowrap; transform: rotate(-4deg); }
.take-count { position: absolute; top: 9px; right: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 7px; border-radius: 8px; background: var(--glow); color: var(--ink);
  font: 700 11.5px/1 var(--display); }
.take-count svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* «Примеры» */
.catalog { margin-top: 32px; scroll-margin-top: calc(var(--top) + 8px); }
.catalog-title { margin-bottom: 4px; }
.cat-bar { position: sticky; top: var(--top); z-index: 12; display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 8px 16px; background: var(--sky); }
.cat-kinds { display: flex; flex: 1 1 auto; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cat-kinds::-webkit-scrollbar { display: none; }
/* Rows of chips – the sections' pills, «Примеры»'s kinds and sections, the filters' chips: one line that
   scrolls sideways, never wrapping (2026-10-29: three lines of sections); no scrollbar – touch, a trackpad, shift+wheel
   and Tab scroll it –, snapping lightly to a chip; an edge fades only where more is behind it (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; }
/* The kinds as soft squares: the chosen one pink. */
.cat-kinds button { position: relative; flex: 0 0 auto; min-height: 40px; padding: 0 13px; border: 0; border-radius: 11px; background: none; color: var(--mist); font-size: 15px; font-weight: 800; white-space: nowrap; }
.cat-kinds button[aria-pressed="true"] { background: var(--grad); color: var(--ink); }
.cat-round { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; padding: 0; border: 2px solid var(--edge); border-radius: 12px; background: var(--veil-2); color: var(--glow); }
.cat-round svg, .cat-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cat-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.cat-search { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; height: 42px; padding: 0 2px 0 12px; border: 2px solid var(--edge); border-radius: 12px; background: var(--veil-2); }
.cat-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; color: var(--glow); font-size: 16px; outline: none; }
.cat-search input::placeholder { color: var(--mist); }
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--glow); }
.catalog.is-searching .cat-kinds, .catalog.is-searching [data-cat-search-open] { display: none; }
.cat-subs { display: flex; gap: 6px; min-height: 40px; margin: 2px -16px 0; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
/* A chip as drawn (36 px), its touch area 40 px: into the row's own edge, where the scrolling does not cut it. */
.cat-subs button { position: relative; }
.cat-subs button::after { content: ""; position: absolute; inset: -2px 0; }
.cat-subs::-webkit-scrollbar { display: none; }
.cat-subs.is-blank { visibility: hidden; }
.cat-subs button, .chips button { flex: 0 0 auto; min-height: 36px; padding: 0 15px; border: 0; border-radius: 10px; background: var(--veil-2); box-shadow: inset 0 0 0 2px var(--edge); color: var(--glow); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cat-subs button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--glow); color: var(--ink); box-shadow: none; }
.chips button .cr { margin-right: 1px; }
.cat-more { height: 1px; }
.cat-empty { display: grid; justify-items: start; gap: 6px; padding: 26px 0 8px; }
.cat-empty-title { margin: 0; font: 700 18px/1.2 var(--display); }
.cat-empty-lead { margin: 0 0 6px; color: var(--mist); font-size: 14.5px; }

/* A kind chosen: its own frame on top, then the cards. On the home page what is above goes. */
.kind { display: grid; gap: 16px; margin-bottom: 26px; padding-right: 6px; }
.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: 2px solid var(--edge); border-radius: var(--frame); background: var(--veil); box-shadow: 6px 6px 0 var(--wave); }
.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(var(--ink-rgb) / .45), transparent 30%); 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: 12px; transform: rotate(-3deg);
  box-shadow: 0 0 0 2px var(--glow), 4px 4px 0 rgb(var(--ink-rgb) / .7); }
.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: 8px; background: var(--shade); color: var(--glow);
  font-size: 11.5px; font-weight: 750; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card-before > span { left: 3px; bottom: 3px; padding: 0 5px; font-size: 9.5px; }
.kind-text { display: grid; justify-items: start; gap: 10px; }
.kind-title { margin: 0; font: 800 24px/1.05 var(--display); letter-spacing: -.025em; }
.kind-lead { max-width: 36em; margin: 0; color: var(--mist); font-size: 15px; line-height: 1.5; }
.home.is-kind > .hero-text, .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 frame 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 as an instant photo: the picture in a card with an outline, its name and price on one line under the picture,
   on the card itself. Its kind is a sticker put on the picture's corner askew (a clip pink, a photo turquoise, the editor
   yellow), the photo «до» a small print laid on its other corner. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0 4px 4px 0; list-style: none; }
.card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 8px 6px; min-width: 0; padding: 6px 6px 10px; border: 2px solid var(--edge); border-radius: var(--tile);
  background: var(--veil-2); color: var(--glow); text-align: left; text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.card-media { position: relative; grid-column: 1 / -1; grid-row: 1; display: block; aspect-ratio: 4 / 4.9; overflow: hidden; border-radius: 12px; background: var(--veil); }
.card-media > img, .card-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
/* No example yet: the frame striped in the desk's colours, a mark in it. */
.card-media.is-empty, .reel-media.is-empty, .variant-media.is-empty, .kind-media.is-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--veil) 0 14px, var(--veil-3) 14px 28px); }
.card-media > .ph, .reel-media > .ph { position: static; }
.card-before { position: absolute; right: 7px; bottom: 7px; z-index: 2; width: 31%; aspect-ratio: 3 / 4; overflow: hidden; border: 2px solid var(--glow); border-radius: 9px; background: var(--veil); transform: rotate(4deg);
  box-shadow: 2px 2px 0 rgb(var(--ink-rgb) / .7); }
.card-before img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.card-kind { position: absolute; top: 12px; left: 12px; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 9px; background: var(--rose);
  transform: rotate(-7deg); box-shadow: 2px 2px 0 var(--ink); }
.card-kind svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.card[data-media="image"] .card-kind { background: var(--wave); }
.card[data-kind="editor"] .card-kind, .card-fit .card-kind { background: var(--lime); }
.card[data-media="video"] .type-photo, .card[data-media="image"] .type-video { display: none; }
.card-title, .reel-title { display: -webkit-box; overflow: hidden; font-size: 13.5px; font-weight: 750; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card-title { grid-column: 1; grid-row: 2; padding-left: 4px; }
.reel-title { padding: 0 4px; }
.card-price { grid-column: 2; grid-row: 2; align-self: start; display: inline-flex; align-items: center; min-height: 22px; margin-right: 2px; padding: 0 7px; border-radius: 7px; background: var(--sky); color: var(--glow);
  font: 700 11.5px/1 var(--display); font-variant-numeric: tabular-nums; }
.card-price .cr { width: 12px; height: 12px; }
.card-lead { grid-column: 1 / -1; grid-row: 3; margin-top: -4px; padding: 0 4px; color: var(--mist); font-size: 12px; line-height: 1.3; }
.reel .card-price { justify-self: start; margin-left: 4px; }
.card:focus-visible { outline-offset: 2px; }
/* «Свой сценарий» at the head of a kind's cards: its example dimmed, the pink key over it, pink under the card. */
.card-studio { border-color: var(--rose); box-shadow: var(--pop) var(--rose); }
.card-studio .card-media::after { content: ""; position: absolute; inset: 0; background: rgb(var(--ink-rgb) / .5); }
.card-rec { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.card-rec .spark-btn { width: 54px; height: 54px; }
.card-rec .spark-btn svg { width: 26px; height: 26px; }

/* Pages */
.page { padding-top: 6px; }
.page-title { margin: 6px 0 14px; font: 800 30px/1.04 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.page-lead { max-width: 34em; margin: 0 0 18px; color: var(--mist); }
.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: 11px; background: var(--veil-2); color: var(--glow); font-size: 14.5px; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 2px var(--edge); }
.pill[aria-current="page"] { background: var(--grad); color: var(--ink); box-shadow: none; }
.page-empty { display: grid; justify-items: start; gap: 4px; padding: 22px 0 24px; }
.lost { display: grid; place-items: center; width: 100%; max-width: 440px; aspect-ratio: 16 / 9; margin-bottom: 14px; overflow: hidden; border-radius: var(--frame);
  background: repeating-linear-gradient(135deg, var(--veil) 0 14px, var(--veil-3) 14px 28px); }
.lost-mark { font: 800 72px/1 var(--display); letter-spacing: -.04em; color: var(--glow); text-shadow: 4px 4px 0 var(--rose); }
.lost > .ph { width: 56px; height: 56px; fill: rgb(var(--glow-rgb) / .5); stroke: none; }
.doc-body { max-width: 42em; color: var(--mist); line-height: 1.7; }
.doc-body h2 { margin: 28px 0 8px; color: var(--glow); font: 700 19px/1.2 var(--display); letter-spacing: -.015em; }
.doc-body a { color: var(--glow); }
.page-scenes .catalog { margin-top: 20px; }

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

/* The bar at the foot: the price big, what will be made as small marks, and the main key. */
.run-bar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--veil); box-shadow: 0 -2px 0 var(--edge); }
.item .run-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; }
.run-sum { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.run-price { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.run-price .cr { width: 19px; height: 19px; }
.run-price:empty { display: none; }
.run-sum small { display: -webkit-box; overflow: hidden; color: var(--mist); 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 8px; border-radius: 8px; background: var(--veil-2); color: var(--glow); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.run-go { flex: 0 0 auto; min-height: 52px; margin: 0 4px 4px 0; padding: 0 20px; }
.run-go .cr { width: 16px; height: 16px; }

/* «Свой сценарий»'s blocks, as a shot list. */
.block { display: grid; gap: 10px; padding: 14px; border-radius: var(--tile); background: var(--veil); box-shadow: inset 0 0 0 2px var(--edge); }
.cmp-body .block, .sheet .block { background: rgb(var(--glow-rgb) / .035); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.block-label { margin: 0; font: 700 14.5px/1.2 var(--display); letter-spacing: -.01em; }
.block-hint { color: var(--mist); font-size: 12.5px; font-weight: 600; }
.block-sub { margin: 4px 0 -2px; color: var(--mist); font-size: 12.5px; font-weight: 700; }
.field-box { border-radius: 14px; background: var(--sky); box-shadow: inset 0 0 0 2px var(--edge); transition: box-shadow .15s; }
.field-box:focus-within { box-shadow: inset 0 0 0 2px var(--wave); }
.field-box textarea, .kit-textarea { display: block; width: 100%; min-height: 112px; padding: 12px 14px 6px; border: 0; background: none; color: var(--glow); font: 500 16px/1.45 var(--sans); resize: none; outline: none; }
.field-box textarea::placeholder, .kit-textarea::placeholder, .field::placeholder { color: rgb(var(--mist-rgb) / .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: 8px; background: var(--veil-2); color: var(--glow); font-size: 13px; font-weight: 750; }
.idea-btn svg { width: 16px; height: 16px; fill: var(--lime); }
/* «✦ Подставить идею» 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(--mist); font: 700 11px/1 var(--sans); font-variant-numeric: tabular-nums; }
.field-box.is-asking { box-shadow: inset 0 0 0 1.5px var(--rose), 0 0 0 4px rgb(var(--rose-rgb) / .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: var(--blush); font-size: 13.5px; font-weight: 650; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* The lengths in one row, as many as the chosen clip offers (a video scene's stop where its model does: the kit hides the rest). */
.opts-lengths { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.opts-formats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts button { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 54px; padding: 6px 2px; border: 0; border-radius: 12px; background: var(--veil-2); color: var(--glow);
  font-size: 13px; font-weight: 750; line-height: 1.15; }
.opts .q-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opts .q-price { display: inline-flex; align-items: center; gap: 2px; color: var(--mist); font: 550 11px/1 var(--display); font-variant-numeric: tabular-nums; }
.opts .q-price .cr { width: 11px; height: 11px; }
.opts button[aria-pressed="true"] { background: var(--glow); color: var(--ink); }
.opts button[aria-pressed="true"] .q-price { color: rgb(var(--ink-rgb) / .7); }
.opts-formats button { min-height: 58px; }
.opts-fixed { color: var(--mist); 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 dashed frame to drop it in – its arrow on a pink sticker –, the picked one small. */
.drop { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 2px dashed var(--edge); border-radius: 16px; background: rgb(var(--glow-rgb) / .045);
  color: var(--glow); text-align: left; transition: background .2s; }
.drop:active, .drop.is-over { background: rgb(var(--rose-rgb) / .12); }
.drop:disabled { opacity: .55; }
.drop-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 13px; background: var(--rose); box-shadow: var(--pop-s) var(--wave); transform: rotate(-4deg); }
.drop-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.drop-text { display: grid; gap: 1px; }
.drop-title { font-size: 16px; font-weight: 800; }
.drop-note { color: var(--mist); font-size: 12.5px; font-weight: 600; }
.only-optional, .photo-optional .only-needed { display: none; }
.photo-optional .only-optional { display: inline; }
[data-slot-optional] .only-needed { display: none; }
[data-slot-optional] .only-optional { display: inline; }
/* A later photo's drop is quieter than the first one's: its plus on the dark key, not the red. */
.drop-more .drop-icon { background: var(--veil-2); border-color: var(--edge); box-shadow: none; transform: none; }
.drop-more .drop-icon svg { stroke: var(--glow); }
.picked { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgb(var(--lime-rgb) / .1); box-shadow: inset 0 0 0 1.5px rgb(var(--lime-rgb) / .5); }
.picked-thumb { position: relative; flex: 0 0 auto; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: var(--veil-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(--mist); font-size: 12.5px; }
.picked-again { flex: 0 0 auto; white-space: nowrap; }
.tips-wrap { margin-top: 8px; }
/* «Качество: 1K / 2K» under the photo and what fits (partials/photo.html): its name on the left, two of the clip's option
   tiles on the right – the lit one paper-white, 2K with its coins beside it. On the free try 2K is off, the reason under it. */
.res { margin-top: 10px; }
.res-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.res-name { margin: 0; }
.opts-res { flex: 0 1 200px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts-res button { min-height: 48px; }
.opts-res button:disabled { opacity: .45; cursor: not-allowed; }
.res-note { flex-basis: 100%; margin: 0; color: var(--mist); 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(--mist); font-size: 12px; font-weight: 650; }
.tip-yes { color: var(--glow); }
.tip-yes + .tip-no { margin-left: 8px; padding-left: 16px; box-shadow: inset 1px 0 0 var(--line); }
.tip-pic { position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--veil-2); }
.tip-pic img, .tip-pic svg { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.tip-drawn svg { padding: 3px; fill: var(--mist); }
.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(--lime); }
.tip-no .tip-mark { background: var(--rose); }
.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(--lime); 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(--mist); 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 18px; border-radius: 12px; background: var(--veil-2); font-size: 14.5px; font-weight: 700; }
.kit-chip input:checked + span { background: var(--glow); color: var(--ink); }
.kit-chip input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 3px; }
.kit-select, .kit-text, .field { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--sky); color: var(--glow); font-size: 16px; box-shadow: inset 0 0 0 2px var(--edge); }
.kit-text:focus, .field:focus, .kit-select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rose); }
/* 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(--rose); }
.kit-range-value { font-weight: 800; }
.kit-words { padding: 0; }
.kit-textarea { min-height: 96px; border-radius: 12px; background: var(--sky); box-shadow: inset 0 0 0 2px var(--edge); }

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

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

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

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

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

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

/* «Пополнить баланс»: the steps as a timeline with a bar, 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(--mist); font-size: 12.5px; font-weight: 800; }
.topup-steps li::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); }
.topup-steps li.is-on, .topup-steps li:has(i:not([hidden])) { color: var(--glow); }
.topup-steps li.is-on::before, .topup-steps li:has(i:not([hidden]))::before { background: var(--grad); }
.topup-steps i { display: none !important; }
.topup-lead { margin: 0 0 12px; color: var(--mist); 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: 12px; background: rgb(var(--lime-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--lime-rgb) / .3); font-size: 13.5px; line-height: 1.35; }
.offer-chip b { color: var(--lime); }
.offer-chip.is-promo { background: rgb(var(--glow-rgb) / .06); box-shadow: inset 0 0 0 2px var(--edge); }
.offer-ico { font-size: 18px; }
.offer-note { margin: 0; color: var(--mist); font-size: 12px; }
.topup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.topup-label { margin: 0 0 8px; font: 700 15px/1.2 var(--display); letter-spacing: -.01em; }
.topup-head .topup-label { margin: 0; }
.topup-rate { color: var(--mist); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 0 4px 4px 0; }
.pack { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 122px; padding: 18px 14px 12px; border: 0; border-radius: 16px; background: var(--veil-2); color: var(--glow);
  text-align: left; box-shadow: inset 0 0 0 2px var(--edge); }
.pack-tag { position: absolute; top: -11px; left: 12px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 8px; background: var(--rose); transform: rotate(-3deg); color: var(--ink); font-size: 10.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.pack.is-max .pack-tag { background: var(--lime); transform: rotate(2deg); }
.pack-total { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pack-total .cr { width: 17px; height: 17px; }
.pack-parts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.pack-sum { color: var(--mist); font-size: 12px; font-weight: 650; }
.pack-pct, .pack-gift { color: var(--lime); font-size: 11.5px; font-weight: 800; }
.pack-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.pack-price { font-size: 15.5px; font-weight: 800; }
.pack-worth { color: var(--mist); font-size: 11.5px; font-weight: 650; }
.pack[aria-pressed="true"] { background: var(--glow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), var(--pop) var(--rose); }
.pack[aria-pressed="true"] :is(.pack-sum, .pack-worth) { color: rgb(var(--ink-rgb) / .66); }
.pack[aria-pressed="true"] :is(.pack-pct, .pack-gift) { color: var(--lime-deep); }
.pack[aria-pressed="true"] .pack-foot { border-top-color: rgb(var(--ink-rgb) / .14); }
.promo { display: grid; gap: 8px; margin-top: 20px; }
.promo .topup-label { margin: 0; }
.promo-row { display: flex; gap: 8px; }
.promo-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--sky); color: var(--glow); font: 700 16px/1 var(--sans); letter-spacing: .06em;
  box-shadow: inset 0 0 0 2px var(--edge); }
.promo-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rose); }
.promo-input::placeholder { color: rgb(var(--mist-rgb) / .7); }
.promo-go { flex: 0 0 auto; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--veil-2); color: var(--glow); font-size: 14.5px; font-weight: 800; }
.promo-note { margin: 0; color: var(--lime); font-size: 13px; font-weight: 700; }
.promo-hint { margin: 0; color: var(--mist); 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(--veil); box-shadow: 0 -2px 0 var(--edge); }
.bar-sum { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.bar-total { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar-total .cr { width: 18px; height: 18px; }
.bar-sub { overflow: hidden; color: var(--mist); font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pay-go { flex: 0 0 auto; min-width: 124px; margin: 0 4px 4px 0; }
.bar-back { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; padding: 0; border: 0; border-radius: var(--key); background: var(--veil-2); color: var(--glow); }
/* 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(--mist); font: 700 11.5px/1.2 var(--sans); letter-spacing: .08em; 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(--mist); font-size: 12px; line-height: 1.35; }
.way { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; background: var(--veil-2); color: var(--glow);
  text-align: left; box-shadow: inset 0 0 0 2px var(--edge); }
.way[aria-pressed="true"] { background: rgb(var(--rose-rgb) / .1); box-shadow: inset 0 0 0 2px var(--rose); }
.way-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--sky); }
.way-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--glow); 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(--mist); font-size: 12.5px; line-height: 1.3; }
.way-price { display: grid; justify-items: end; gap: 3px; font: 650 14px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.way-cut { padding: 2px 6px; border-radius: 6px; background: var(--lime); color: var(--ink); font: 800 11px/1.2 var(--sans); }
.way-ico svg.flag { width: 24px; height: 16px; border-radius: 3px; stroke: none; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
.way-tile { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 3px 10px; min-height: 62px; padding: 10px 12px; }
.way-tile .way-ico { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; }
.way-tile .way-ico svg.flag { width: 22px; height: 15px; }
.way-tile .way-price { justify-items: start; color: var(--mist); }
.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(--rose); font-size: 13px; }
.way[aria-disabled="true"] .way-lock { display: block; }
/* «Криптовалюта»'s coin under the ways: two keys – the coin and its network, its sum under them; the one picked ringed in
   red, as a way is. */
.coins { display: grid; gap: 8px; margin: 2px 0 6px; padding: 0 0 0 12px; border-left: 2px solid var(--rose); }
.coins-title { margin: 0; font-size: 13px; color: var(--mist); }
.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: 12px; background: var(--veil-2);
  color: var(--glow); text-align: left; box-shadow: inset 0 0 0 2px var(--edge); }
.coin[aria-pressed="true"] { background: rgb(var(--rose-rgb) / .1); box-shadow: inset 0 0 0 2px var(--rose); }
.coin-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.coin-name b { font: 700 14px/1.2 var(--display); }
.coin-name small { color: var(--mist); font-size: 12px; font-weight: 650; white-space: nowrap; }
.coin-sum { overflow: hidden; font: 650 14px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.coin-sum:empty { display: none; }
.topup-sum { display: grid; margin: 16px 0 0; }
.topup-sum > div, .wait-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.topup-sum dt, .wait-rows dt { color: var(--mist); 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(--lime); }
.topup-sum .is-total dd { display: inline-flex; align-items: center; gap: 3px; font: 800 18px/1 var(--display); }
#checkout[open] { display: flex; flex-direction: column; }
#checkout > .topup-body:not([hidden]), #checkout > .paying:not([hidden]), #checkout .topup-page:not([hidden]) { display: flex; flex: 1 0 auto; flex-direction: column; }
.paying { gap: 12px; }
.topup-page > .topup-bar, .paying > .topup-bar { margin-top: auto; }
.topup-page > .promo, .topup-page > .sheet-hint { margin-bottom: 20px; }
.wait-card { display: grid; justify-items: center; gap: 10px; padding: 26px 16px 22px; border-radius: var(--tile); background: var(--veil-2); text-align: center; }
.wait-clock { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; transform: rotate(-5deg); background: var(--sky); }
.wait-clock svg { width: 28px; height: 28px; fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; }
.wait-title { margin: 6px 0 0; font: 800 19px/1.15 var(--display); letter-spacing: -.02em; }
.wait-lead { max-width: 30em; margin: 0; color: var(--mist); 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(--mist); text-decoration-color: rgb(var(--mist-rgb) / .4); }
.bar-close { flex: 0 0 auto; margin-left: auto; min-height: 52px; padding: 0 20px; }

/* «Криптовалюта»'s transfer: the QR code on paper (its quiet zone is in the code), the exact sum big, the visitor's own
   address on the set's dark in monospace with «Скопировать», «Открыть в кошельке», the note. Side by side from 420px. */
.transfer { display: grid; gap: 12px; padding: 18px 16px; border-radius: var(--tile); background: var(--veil-2); box-shadow: inset 0 0 0 2px var(--edge); }
.transfer-title { margin: 0; font: 800 17px/1.2 var(--display); letter-spacing: -.02em; }
.transfer-lead { margin: -6px 0 0; color: var(--mist); font-size: 13.5px; line-height: 1.45; }
.transfer-main { display: grid; gap: 14px; }
.transfer-qr { justify-self: center; width: min(220px, 70vw); padding: 6px; border-radius: 14px; background: var(--glow); 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(--mist); font-size: 12.5px; font-weight: 650; }
.transfer-rows dd { margin: 0; }
.transfer-sum b { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.transfer-sum span { color: var(--gem); font-size: 13.5px; font-weight: 750; white-space: nowrap; }
.transfer-address { padding: 10px 14px; border-radius: 12px; background: var(--sky); font: 700 13.5px/1.45 var(--mono); 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(var(--lime-rgb) / .14); color: var(--lime); }
.transfer-note { margin: 0; color: var(--mist); 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 pink card, turquoise under it, dark words on it; the number and «Скопировать» on its paper. */
.purse { position: relative; display: grid; gap: 14px; width: calc(100% - 6px); padding: 18px 16px 16px; border: 2px solid var(--ink); border-radius: var(--frame); background: var(--rose); color: var(--ink);
  box-shadow: 6px 6px 0 var(--wave); }
.purse-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font: 900 46px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.purse-n .cr { width: 34px; height: 34px; fill: var(--ink); transform: rotate(-8deg); }
.purse-n .cr-top { opacity: .28; }
.purse-label { font: 800 14px/1.2 var(--sans); letter-spacing: 0; opacity: .86; }
.purse > .go { background: var(--ink); color: var(--glow); box-shadow: none; }
.purse > .go:active { transform: scale(.98); box-shadow: none; }
.purse-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--glow); }
.purse-id-text { display: grid; min-width: 0; }
.purse-id-text small { font-size: 12px; font-weight: 700; opacity: .8; }
.purse-id .ghost { border-color: var(--ink); background: var(--ink); color: var(--glow); }
.acc-number { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.purse-note { margin: -4px 0 0; font-size: 12.5px; font-weight: 650; line-height: 1.4; opacity: .9; }
.acc-block { display: grid; gap: 10px; margin-top: 24px; }
.acc-title { margin: 0; font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.acc-lead, .acc-hint { margin: 0; color: var(--mist); font-size: 13.5px; line-height: 1.45; }
.acc-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 196 87 / .1); color: #ffd98f; font-size: 13.5px; }
[data-acc-can]:not([hidden]) { display: grid; gap: 10px; }
.acc-item { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 2px var(--edge); }
.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: 8px; box-shadow: inset 0 0 0 1px currentColor; color: var(--lime); 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: 12px; background: var(--sky); font: 700 18px/1.2 var(--mono); letter-spacing: .08em; text-align: center; user-select: all; overflow-wrap: anywhere; }
.acc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acc-status { margin: 0; font-size: 13px; font-weight: 650; }
.acc-status:empty { display: none; }
.acc-status[data-tone="ok"] { color: var(--lime); }
.acc-status[data-tone="error"] { color: var(--blush); }
/* «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: 2px dashed var(--edge); border-radius: 14px;
  color: var(--mist); 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(--lime); 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(--glow); color: var(--ink); box-shadow: var(--pop) var(--iris); }
.acc-block .go:active { box-shadow: 1px 1px 0 var(--iris); }
.acc-form, .acc-row { padding-right: 4px; }
.label { color: var(--mist); font-size: 12.5px; font-weight: 750; }
.code-field { font-family: var(--mono); 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(--mist); 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: 14px; background: var(--glass); box-shadow: inset 0 0 0 2px var(--edge); }
.kit-payment::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.kit-payment.is-pending::before { background: #ffc457; box-shadow: 0 0 10px #ffc457; animation: blink 1.6s steps(1) infinite; }
.kit-payment.is-paid::before { background: var(--lime); }
.kit-payment.is-declined::before { background: var(--rose); }
.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(--mist); font-size: 12.5px; }
.kit-payment-state { padding: 3px 10px; border-radius: 8px; background: rgb(var(--glow-rgb) / .08); color: var(--mist); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.kit-payment.is-pending .kit-payment-state { background: rgb(255 196 87 / .14); color: #ffd98f; }
.kit-payment.is-paid .kit-payment-state { background: rgb(var(--lime-rgb) / .14); color: var(--lime); }
.kit-payment.is-declined .kit-payment-state { background: rgb(var(--rose-rgb) / .16); color: var(--blush); }
.kit-payment-pay { display: inline-flex; flex: 1 0 100%; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--rose); color: var(--ink); font-weight: 800; text-decoration: none; }
.kit-payments-empty { margin: 0; color: var(--mist); font-size: 14px; }
/* Help, language and the documents: rows of one dark card, each with its mark on a sticker of its own colour. */
.menu { display: grid; margin: 22px 0 0; padding: 4px 12px; list-style: none; border: 2px solid var(--edge); border-radius: var(--tile); background: var(--veil-2); }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0; border: 0; border-bottom: 2px solid var(--veil-3); background: none;
  color: var(--glow); font-size: 15px; font-weight: 700; text-align: left; text-decoration: none; }
.menu li:last-child .menu-row { border-bottom: 0; }
.menu-ico { --tone: var(--rose); display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 10px; background: var(--tone); color: var(--ink); transform: rotate(-4deg); }
.menu-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu li:nth-child(4n+2) .menu-ico { --tone: var(--wave); transform: rotate(3deg); }
.menu li:nth-child(4n+3) .menu-ico { --tone: var(--lime); }
.menu li:nth-child(4n) .menu-ico { --tone: var(--iris); transform: rotate(4deg); }
.menu-name { flex: 1 1 auto; min-width: 0; }
.menu-chev { color: var(--mist); }
.menu-go { display: inline-flex; align-items: center; gap: 6px; color: var(--mist); font-size: 14px; }

/* «На главный экран» */
.inst-head { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; }
.inst-icon { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgb(0 0 0 / .4); }
.inst-text { display: grid; gap: 4px; min-width: 0; }
.inst-title { margin: 2px 0 0; font: 800 20px/1.15 var(--display); letter-spacing: -.02em; }
.inst-lead { margin: 0; color: var(--mist); font-size: 14px; line-height: 1.4; }
.inst-lead strong { color: var(--glow); }
.inst-way { margin-top: 18px; }
.inst-way .go { width: calc(100% - 4px); }
.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: 9px; background: var(--wave); color: var(--ink); transform: rotate(-4deg); font: 700 14px/1 var(--display); }
.inst-key { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 2px; border-radius: 8px; background: var(--veil-2); vertical-align: -8px; }
.inst-key svg { width: 18px; height: 18px; fill: none; stroke: var(--glow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inst-later { display: block; margin: 14px auto 0; }

/* Notes and the foot */
.notes { margin-top: 40px; }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 10px 0; font-size: 15.5px; font-weight: 750; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; background: linear-gradient(var(--mist) 0 0) 50% / 12px 2px no-repeat, linear-gradient(var(--mist) 0 0) 50% / 2px 12px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; color: var(--mist); font-size: 14.5px; line-height: 1.6; }
.notes-text { max-width: 44em; margin: 18px 0 0; color: var(--mist); font-size: 14px; line-height: 1.6; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); }
/* The documents' links a finger high (their own padding: on a phone they stack, and boxes over them would overlap). */
.foot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 0; padding-top: 7px; border-top: 1px solid var(--line); color: var(--mist); font-size: 12.5px; }
.foot-line a { display: inline-block; padding: 11px 0; color: var(--mist); text-underline-offset: 3px; }
.foot-name { color: var(--glow); font: 700 13px/1.2 var(--display); }
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 (64 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(74px + 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 dock's words whole, the free try's title on one line. */
@media (max-width: 359px) {
  .dock { padding: 0 3px; }
  .dock-rec { margin: 0 3px; padding: 0 11px 0 6px; font-size: 13.5px; }
  .offer-text strong { font-size: 13px; }
  .take-title { font-size: 11px; }
  .studio-title { font-size: 12px; }
  .brand-name { font-size: 14px; }
  .free-bar-title { font-size: 14px; }
}
/* Up to 400 px the bar at the foot: the main key gives way – its words on two lines – so the price and the marks
   beside it stay whole (2026-10-29: «Пополнить и изменить» covered them at 320 px, the marks were cut at 360). */
@media (max-width: 399px) {
  .run-bar { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .run-sum { min-width: 96px; }
  .run-go { flex: 0 1 auto; min-width: 0; gap: 8px; padding: 0 14px; font-size: 15px; }
  .run-marks span { white-space: normal; overflow-wrap: anywhere; }
}
/* A tablet: wider strips, three cards in a row. */
@media (min-width: 640px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .top { padding: 0 24px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .takes-row { grid-auto-rows: 150px; }
  .take-title { font-size: 13.5px; }
  .cat-bar, .cat-subs, .pills, .reels, .variants { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  :is(.pills, .cat-subs) { scroll-padding-inline: 24px; }
  .shot { margin: -14px -24px 0; }
  .studio-shot { aspect-ratio: 16 / 10; }
  .kind { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .kind-title { font-size: 28px; }
  .reels { grid-auto-columns: minmax(150px, 26%); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot { padding-left: 24px; padding-right: 24px; }
  .sheet { border-radius: var(--frame); margin-bottom: auto; }
  .sheet-full, .sheet-free, .sheet-compose { border-radius: 0; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A computer: the menu beside the brand, «Создать» as the pink key last, no dock; the home page – the site's own words
   big across the top (a phone has them too, smaller), under them «Свой сценарий» as a card on the left, the yellow sticker and the tiles on the right; a
   scenario's page with its picture staying in sight; the tall cards wide, their picture whole on the left. */
@media (min-width: 1100px) {
  :root { --top: 70px; }
  .top { padding: 0 max(24px, calc((100% - 1240px) / 2 + 24px)); gap: 10px; }
  .brand { margin-right: 14px; }
  .top-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
  .top-nav a, .top-nav button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 11px; background: none; color: var(--mist); font-size: 14.5px; font-weight: 750; text-decoration: none; white-space: nowrap; }
  .top-nav [aria-current="page"] { color: var(--ink); background: var(--wave); }
  .top-make { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 0 4px 3px 2px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 13px; background: var(--rose); color: var(--ink); font-size: 14.5px; font-weight: 800;
    box-shadow: var(--pop-s) var(--wave); transition: transform .1s, box-shadow .1s; }
  .top-make:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wave); }
  .dock { display: none; }
  .main { padding-top: 22px; padding-bottom: 48px; }
  body.is-detail .main { padding-bottom: 48px; }
  .foot { padding-bottom: 32px; }
  .home { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 22px 36px; align-items: start;
    grid-template-areas: "text text" "studio offer" "studio takes" "catalog catalog" "notes notes"; }
  .hero-text { grid-area: text; gap: 12px; margin: 0; padding: 10px 0 6px; }
  /* Big enough for it: white, a pink copy of it peeking from under, as a sticker's shadow (the room right and below is for it). */
  .hero-title { max-width: 21em; padding: 0 4px 4px 0; font: 900 clamp(34px, 3.7vw, 54px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; text-shadow: 3px 3px 0 var(--rose); }
  .hero-lead { max-width: 46em; font-size: 17px; line-height: 1.55; }
  .home > .studio { grid-area: studio; }
  .studio-shot { aspect-ratio: 16 / 11.4; }
  .studio-title { padding: 7px 12px; font-size: 15px; }
  .studio-head { top: 16px; left: 16px; right: 16px; }
  .studio-foot { padding: 14px; }
  .home > .offer { grid-area: offer; min-height: 68px; }
  .offer-text strong { font-size: 16px; }
  .offer-text small { font-size: 13.5px; }
  .home > .takes { grid-area: takes; margin: 0; }
  .home > .catalog { grid-area: catalog; margin-top: 26px; }
  .home > .notes { grid-area: notes; }
  .takes-row { grid-auto-rows: 132px; gap: 16px; }
  .takes-row:not(:has(> :nth-child(3))) { grid-auto-rows: 220px; }
  .take-kind { display: inline-flex; align-items: center; gap: 5px; padding-left: 2px; font-size: 11.5px; font-weight: 750; text-shadow: 0 1px 6px rgb(0 0 0 / .6); }
  .take-title { font-size: 13.5px; }
  .take-text { left: 12px; right: 12px; bottom: 12px; }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 14px; }
  /* The bar's ground runs to both edges of the window, not to the column's. */
  .cat-bar { top: var(--top); box-shadow: 0 0 0 100vmax var(--sky); clip-path: inset(0 -100vmax); }
  .item { grid-template-columns: auto minmax(0, 1fr); gap: 0 44px; align-items: start; }
  .item > .shot { position: sticky; top: calc(var(--top) + 20px); width: auto; height: min(calc(100vh - var(--top) - 48px), 720px); max-height: none; aspect-ratio: 4 / 5; margin: 20px 6px 0 0;
    border: 2px solid var(--edge); border-radius: var(--frame); box-shadow: 6px 6px 0 var(--rose); }
  .item-body { padding-top: 24px; }
  .item-title { font-size: 34px; }
  .item .run-bar { position: sticky; bottom: 16px; margin: 6px 4px 4px 0; border: 2px solid var(--edge); border-radius: var(--tile); box-shadow: var(--pop) var(--iris); padding: 10px 14px 12px 18px; }
  .reels { grid-auto-columns: minmax(160px, 16%); }
  .variants { grid-auto-columns: 120px; margin: 0; padding: 0 0 2px; }
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .sheet { --tall: min(88vh, 820px); --side: 440px; --wide: min(calc(var(--tall) * 3 / 4 + var(--side)), calc(100% - 48px)); margin: auto; border: 2px solid var(--edge); border-radius: var(--frame); box-shadow: 8px 8px 0 var(--iris); }
  .sheet-full { height: fit-content; max-height: min(92vh, 900px); padding-bottom: 24px; border-radius: var(--frame); }
  .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: var(--frame); }
  .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; box-shadow: 2px 0 0 var(--edge); }
  .cmp-shot { position: relative; display: block; overflow: hidden; background: var(--sky); }
  .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: 16px; right: 16px; }
  .free-title { padding-right: 52px; font-size: 26px; }
  .sheet-free .run-bar, .sheet-compose .run-bar { padding: 14px 28px 16px; }
  .before-chip { left: 22px; bottom: 22px; max-width: 132px; }
  .cmp-top { padding: 22px 18px 10px 28px; }
  .cmp-body { padding: 10px 24px 20px 28px; border-top: 2px solid var(--edge); }
  .sheet-compose .cmp-lead { max-width: 30em; }
  #create .create-panel { flex: 1 1 auto; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  #create .shots { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-height: 0; }
  #create .shotrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 12px; height: 100%; padding: 10px 14px 14px 10px; }
  #create .shotrow-media { grid-column: 1 / -1; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 12px; }
  #create .shotrow-text { padding-left: 4px; }
  #create .shotrow-title { font-size: 17px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .sheet-compose .field-box textarea { min-height: 88px; }
  .sheet-compose .cmp-lead { display: none; }
}
@media (min-width: 1800px) {
  .main, .foot { max-width: 1440px; }
  .top { padding: 0 max(24px, calc((100% - 1440px) / 2 + 24px)); }
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* A mouse: what answers the pointer – a sticker lifts off the desk, its shadow grows. */
@media (hover: hover) {
  .go:hover, .top-make:hover, .dock-rec:hover { filter: brightness(1.06) saturate(1.1); }
  .offer:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--rose); }
  .ghost:hover, .close:hover, .cat-round:hover, .idea-btn:hover, .promo-go:hover, .bar-back:hover { background: var(--veil-3); }
  .purse-id .ghost:hover { background: var(--ink); }
  .card:hover { transform: translate(-2px, -2px); border-color: var(--glow); box-shadow: var(--pop) var(--iris); }
  .card-studio:hover { border-color: var(--rose); box-shadow: 6px 6px 0 var(--rose); }
  .take:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tone); }
  .cat-kinds button:hover, .top-nav a:hover, .top-nav button:hover { color: var(--glow); }
  :is(.cat-kinds button[aria-pressed="true"], .top-nav [aria-current="page"]):hover { color: var(--ink); }
  .shotrow:hover, .way:hover, .coin:hover:not([aria-pressed="true"]), .pack:hover:not([aria-pressed="true"]), .opts button:hover:not([aria-pressed="true"]), .kit-chip:hover span { background: var(--veil-3); }
  .drop:hover { background: rgb(var(--glow-rgb) / .1); }
  .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) {
  .out-line, .kit-payment.is-pending::before { animation: none; }
  .sheet[open], .kind:not([hidden]), .create-panel, .field-box.is-asking, .consents.is-asking .consent { animation: none; }
  .card, .take, .offer, .go, .spark-btn, .dock-rec, .top-make { 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 gem's gold: the pink stays the keys'. */
[data-kit="support"] { --kit-chat-bg: var(--sky); --kit-chat-surface: var(--veil); --kit-chat-surface-2: var(--veil-2); --kit-chat-line: var(--edge);
  --kit-chat-text: var(--glow); --kit-chat-muted: var(--mist); --kit-chat-accent: var(--rose); --kit-chat-on-accent: var(--ink); --kit-chat-mine: var(--wave);
  --kit-chat-on-mine: var(--ink); --kit-chat-online: var(--wave); --kit-chat-warn: var(--gem); }
.help-dot { position: absolute; top: -2px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--gem); box-shadow: 0 0 0 2px var(--sky); }
.help-dot[hidden] { display: none; }
.wallet { position: relative; }
.wallet .help-dot { top: -3px; right: -3px; }
.help-badge { padding: 3px 8px; border-radius: 7px; background: rgb(var(--gem-rgb) / .16); color: var(--gem); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.help-badge[hidden] { display: none; }
.menu-row .menu-go { display: inline-flex; align-items: center; gap: 8px; }
.help-banner { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 14px 16px; border: 0; border-radius: var(--tile); background: rgb(var(--gem-rgb) / .1);
  box-shadow: inset 0 0 0 1px rgb(var(--gem-rgb) / .35); color: var(--glow); font: 700 14.5px/1.35 var(--sans); text-align: left; }
.help-banner[hidden] { display: none; }
.help-banner b { margin-left: auto; color: var(--gem); white-space: nowrap; }
.help-banner-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--gem); }
.pay-help { display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 0 12px; border: 0; border-radius: var(--key); background: var(--veil-2); color: var(--glow); font: 700 14px/1.3 var(--sans); }
.help-other { margin: 18px 4px 0; color: var(--mist); font-size: 13.5px; }
.faq-more { margin: 20px 0 0; color: var(--mist); font-size: 14px; }
.faq-ask { padding: 0; border: 0; background: none; color: var(--glow); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.help-other a { color: var(--glow); }
/* 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 (2026-10-30, the owner's wish), and «Бесплатная проба» as it (2026-11-01): its
   example stays where it is and the name, the choices and the photo are one sheet over it; the bar with the price and
   the button stays at the bottom, the close button where it was. Folded, nothing covers the example, so a result's own controls keep working. A computer keeps the
   example whole on the left. */
@media (max-width: 999px) {
  /* Two places for the sheet (the owner's word): folded as it opens, or unfolded just as far as its end shows above the
     bar, never higher than 56 px under the top. assets/sheet.js moves it – under the finger, then on to its place in one
     move: the room it goes up into is laid out above it (--sheet-room) and it is pushed down from there (a transform).
     The card itself never scrolls (clip: not even to show a field) – the browser's scrolling, snapped or settled after,
     went, stopped and went on. Text longer than the unfolded sheet scrolls inside it. */
  .sheet-free[open] { overflow: hidden; overflow: clip; }
  .sheet-free .free-shot { position: relative; z-index: 0; }
  .sheet-free .free-body { position: relative; z-index: 1; margin-top: calc(-20px - var(--sheet-room, 0px)); padding-top: 18px;
    border-radius: var(--frame) var(--frame) 0 0; background: var(--veil); box-shadow: 0 -2px 0 var(--edge); will-change: transform; }
  .sheet-free .run-bar { position: relative; z-index: 2; }
  /* «До» above the sheet's edge (it comes 20 px over the example), not under it. */
  .sheet-free .before-chip { bottom: 42px; }
}

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

/* «Очистить историю» under «История», «Удалить аккаунт» last in the profile (web/sites/kit-cleanup.js); the kit's question
   window in the site's own colours (web/sites/kit-confirm.css). */
:root { --kit-confirm-bg: var(--veil); --kit-confirm-text: var(--glow); --kit-confirm-muted: var(--mist); --kit-confirm-line: var(--line); --kit-confirm-danger: var(--rose); --kit-confirm-on-danger: var(--ink); --kit-confirm-radius: var(--frame);
  --kit-accent: var(--rose); --kit-on-accent: var(--ink); }
.history-clear { display: block; min-height: 44px; margin: 12px 0 0; padding: 8px 0; border: 0; background: none; color: var(--mist); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.menu-row.menu-danger { color: var(--blush); }
.menu-danger .menu-ico.menu-ico { --tone: var(--blush); }

/* «ИИ-аватары» 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(--tile); --avs-bg: var(--veil-2); --avs-name: 800 15px/1.15 var(--display); --avs-name-size: 15px; --avs-name-ls: -.02em; }
.avs-card { border: 2px solid var(--edge); }
@media (min-width: 1100px) {
  .home:not(.is-kind):has(> .avs) { grid-template-areas: "text text" "studio offer" "studio takes" "avs avs" "catalog catalog" "notes notes"; }
  .home > .avs { grid-area: avs; margin: 14px 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 (72 % 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.
   Narrower than the screen's height allows, it still goes edge to edge, as on a phone. */
@media (max-width: 1099px) {
  .item > .shot { margin-left: max(-16px, calc((100% - 72vh * .8) / 2)); margin-right: max(-16px, calc((100% - 72vh * .8) / 2));
    margin-left: max(-16px, calc((100% - 72svh * .8) / 2)); margin-right: max(-16px, calc((100% - 72svh * .8) / 2)); }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .item > .shot { margin-left: max(-24px, calc((100% - 72vh * .8) / 2)); margin-right: max(-24px, calc((100% - 72vh * .8) / 2));
    margin-left: max(-24px, calc((100% - 72svh * .8) / 2)); margin-right: max(-24px, calc((100% - 72svh * .8) / 2)); }
}
