/* «Аура» – a night lit from three sides (site-templates/README.md). The page is a deep violet with soft light behind it:
   pink from the left, violet from the right, blue from below. The same three run through everything that asks for a
   press – the keys, the ticket of the free try, the ring around a frame that matters – as one gradient (--grad), dark
   words on it. The rest is glass on the night: round capsules, no corners. A lime light says «free» and «went through»;
   a gold gem is a credit. Each kind has its colour on a card: a clip pink, a photo blue, the editor gold. Type:
   Unbounded for names and numbers, Onest 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: Onest; src: url(fonts/onest-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(fonts/onest-latin.woff2) format("woff2"); font-weight: 100 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; }

:root {
  --sky: #120a24; --sky-rgb: 18 10 36; --veil: #1d1238; --veil-rgb: 29 18 56; --veil-2: #2a1b4d; --veil-3: #3a2670;
  --glow: #fbf3ff; --glow-rgb: 251 243 255; --mist: #bdabdb; --mist-rgb: 189 171 219; --ink: #14072a; --ink-rgb: 20 7 42;
  --rose: #ff4fa3; --rose-rgb: 255 79 163; --iris: #a970ff; --iris-rgb: 169 112 255; --wave: #4cc9ff; --wave-rgb: 76 201 255;
  --lime: #c8ff5e; --lime-rgb: 200 255 94; --lime-deep: #3c6700; --gem: #ffd84d; --gem-rgb: 255 216 77; --gem-deep: #8a5a00; --blush: #ffc4dd;
  --line: rgb(var(--glow-rgb) / .12); --scrim: rgb(var(--ink-rgb) / .88); --shade: rgb(var(--ink-rgb) / .62); --glass: rgb(var(--glow-rgb) / .07);
  --grad: linear-gradient(115deg, var(--rose), var(--iris) 55%, var(--wave));
  --display: Unbounded, "Arial Black", system-ui, sans-serif; --sans: Onest, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --frame: 30px; --tile: 22px; --key: 999px; --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 light behind the page: it stays where it is while the page scrolls. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70vmax 46vmax at 0% 0%, rgb(var(--rose-rgb) / .2), transparent 62%), radial-gradient(60vmax 52vmax at 100% 14%, rgb(var(--iris-rgb) / .24), transparent 60%),
    radial-gradient(74vmax 48vmax at 60% 100%, rgb(var(--wave-rgb) / .13), transparent 62%); }
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: 999px; 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: the gradient is the action of the moment, glass does the rest, a text key is the way out. All of them capsules. */
.go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--key);
  background: var(--grad); color: var(--ink); font: 800 16px/1.15 var(--sans); text-align: center; text-decoration: none; box-shadow: 0 12px 28px -12px rgb(var(--rose-rgb) / .8);
  transition: transform .12s, filter .15s; }
.go:active { transform: scale(.97); }
.go:disabled { opacity: .5; cursor: default; }
.go .cr { fill: var(--ink); }
/* On a light key (a chosen package, quality, chip) the 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 20px; border: 0; border-radius: var(--key);
  background: var(--veil-2); color: var(--glow); font: 700 15px/1.15 var(--sans); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.ghost:disabled { opacity: .5; }
.small { min-height: 42px; padding: 0 18px; 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 round 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-radius: 50%; background: var(--grad); box-shadow: 0 6px 18px rgb(var(--rose-rgb) / .5); transition: transform .12s; }
.spark-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* A frame that matters – «Свой сценарий», a kind's example – has the three lights as a ring around it. */
.studio, .kind-shot, .free-shot { position: relative; isolation: isolate; }
.studio::after, .kind-shot::after { content: ""; position: absolute; inset: 0; z-index: 4; padding: 2px; border-radius: inherit; background: var(--grad); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* Top */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: var(--top); padding: 0 16px;
  background: rgb(var(--sky-rgb) / .74); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
/* Its lower edge: the three lights as a hairline. */
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--rose-rgb) / .7) 20%, rgb(var(--iris-rgb) / .7) 50%, rgb(var(--wave-rgb) / .7) 80%, transparent); }
.brand { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; text-decoration: none; }
/* The way home as high as the top's keys to tap (the mark is 36 px). */
.brand::after { content: ""; position: absolute; inset: -4px 0; }
/* No logo: the first letter on the gradient. */
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: var(--ink); font: 800 16px/1 var(--display); }
.brand-logo { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; object-fit: cover; }
.brand-name { overflow: hidden; font: 700 15px/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.top-nav, .top-make { display: none; }
.aud { display: flex; flex: 0 0 auto; padding: 3px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
/* Each a finger's width: the key as drawn, its touch area out to the capsule's edge (40 px; the two never overlap). */
.aud button { position: relative; display: grid; place-items: center; width: 38px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--mist); }
.aud button::after { content: ""; position: absolute; inset: -3px 0; }
.aud button:first-child::after { left: -3px; }
.aud button:last-child::after { right: -3px; }
.aud svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.aud button[aria-pressed="true"] { background: var(--grad); 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 14px 0 11px; border: 0; border-radius: 999px; background: var(--glass);
  color: var(--glow); font: 650 14px/1 var(--display); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line); }
.wallet .cr { width: 17px; height: 17px; }
.wallet-n:empty { display: none; }

.main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 14px 16px calc(112px + env(safe-area-inset-bottom)); }
.row-title { margin: 0 0 12px; font: 700 19px/1.15 var(--display); letter-spacing: -.015em; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-more { position: relative; color: var(--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 12px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); 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: the four main screens in one glass capsule floating over the page, «Создать» a round key of its own beside it. */
.dock { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 25; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 66px; grid-template-rows: 62px; }
.dock::before { content: ""; grid-column: 1 / 5; grid-row: 1; z-index: -1; border-radius: 999px; background: rgb(var(--veil-rgb) / .84); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgb(0 0 0 / .45); }
.dock > * { grid-row: 1; }
.dock > :nth-child(1) { grid-column: 1; }
.dock > :nth-child(2) { grid-column: 2; }
.dock > :nth-child(3) { grid-column: 3; }
.dock > :nth-child(4) { grid-column: 4; }
/* Each the dock's whole height to tap. */
.dock-tab { position: relative; display: grid; align-content: center; justify-items: center; gap: 3px; min-width: 0; padding: 0 2px; border: 0; background: none; color: var(--mist);
  font: 700 10.5px/1.1 var(--sans); text-decoration: none; }
.dock-tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The current tab: the page's, or the main screen's on top – app.js sets aria-current. It is lit from behind. */
.dock-tab[aria-current="page"] { color: var(--glow); }
.dock-tab[aria-current="page"]::before {
  content: ""; position: absolute; inset: 6px 5px; z-index: -1; border-radius: 999px; background: linear-gradient(140deg, rgb(var(--rose-rgb) / .34), rgb(var(--iris-rgb) / .3) 60%, rgb(var(--wave-rgb) / .24));
  box-shadow: inset 0 0 0 1px rgb(var(--glow-rgb) / .2); }
.dock-rec { grid-column: 5; display: grid; place-items: center end; padding: 0; border: 0; background: none; }
.dock-rec-ring { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--grad); box-shadow: 0 10px 26px rgb(var(--rose-rgb) / .55), inset 0 0 0 1px rgb(255 255 255 / .35);
  transition: transform .12s; }
.dock-rec-ring svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; }
.dock-rec:active .dock-rec-ring { transform: scale(.93); }
.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 ticket, the four ways in as bubbles, the glowing frame with the site's own heading on its
   top, the site's own line under it, «Примеры». The heading and the line are the page's own items there (their box is
   display: contents), each in its row: no row is left empty with a gap around it when the ticket is gone. */
.home { display: grid; grid-template-columns: minmax(0, 1fr); }
.home.is-kind { display: block; }
.home > .offer { grid-row: 1; }
.home > .takes { grid-row: 2; }
.home > .studio { grid-row: 3; grid-column: 1; margin-top: 16px; }
.home > .catalog { grid-row: 5; }
.home > .notes { grid-row: 6; }
.hero-text { display: contents; }
.home.is-kind .hero-text { display: none; }
.hero-title, .hero-lead { margin: 0; }
.hero-title { grid-row: 3; grid-column: 1; z-index: 5; align-self: start; display: -webkit-box; overflow: hidden; margin-top: 16px; padding: 20px 22px 0; font: 800 clamp(19px, 5.6vw, 30px)/1.12 var(--display);
  letter-spacing: -.025em; text-shadow: 0 2px 18px rgb(var(--ink-rgb) / .75); text-wrap: balance; overflow-wrap: anywhere; -webkit-line-clamp: 3; -webkit-box-orient: vertical; pointer-events: none; }
.hero-lead { grid-row: 4; display: -webkit-box; overflow: hidden; margin-top: 12px; padding: 0 4px; color: var(--mist); font-size: 14px; line-height: 1.5; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
/* A run in the frame: its picture clear, the heading gone for the while. */
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .home .hero-title { visibility: hidden; }
/* The free try's ticket: the gradient whole, a shine in its corner, dark words. */
.offer { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 12px; overflow: hidden; border: 0; border-radius: 24px; background: var(--grad);
  color: var(--ink); text-align: left; text-decoration: none; box-shadow: 0 16px 36px -16px rgb(var(--rose-rgb) / .85); }
.offer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(150px 70px at 88% 0%, rgb(255 255 255 / .5), transparent 70%), radial-gradient(160px 90px at 0% 120%, rgb(var(--ink-rgb) / .2), transparent 70%); }
.offer-gift { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 15px; background: rgb(255 255 255 / .3); }
.offer-gift svg { width: 25px; height: 25px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer-text { display: grid; flex: 1 1 auto; min-width: 0; }
.offer-text strong { font: 800 15px/1.25 var(--display); letter-spacing: -.01em; }
.offer-text small { font-size: 12.5px; font-weight: 650; line-height: 1.3; opacity: .86; }
.offer-go { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--glow); }
.offer-go svg, .shotrow-go svg, .menu-chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The lime light of «free» (the free try's card). */
.offer-light { position: relative; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgb(var(--lime-rgb) / .7); }
.offer-light::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(var(--lime-rgb) / .6); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* «С чего начнём»: the four ways in as bubbles in one row – each its example in a ring of the three lights, its name and
   price under it; «Популярно» pinned over the first, the count on the second. */
.takes { margin: 18px 0 0; }
.takes > .row-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.takes-row { --d: clamp(58px, 18.6vw, 78px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding-top: 8px; }
.take { position: relative; isolation: isolate; display: grid; align-content: start; justify-items: center; gap: 9px; min-width: 0; color: var(--glow); text-align: center; text-decoration: none; }
.take::before { content: ""; position: absolute; top: -4px; left: 50%; z-index: -1; width: calc(var(--d) + 8px); height: calc(var(--d) + 8px); margin-left: calc(var(--d) / -2 - 4px); border-radius: 50%; background: var(--grad); }
.take-media { position: relative; display: block; width: var(--d); height: var(--d); overflow: hidden; border-radius: 50%; background: var(--veil-2); box-shadow: 0 0 0 2px var(--sky); }
.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: 40%; height: 40%; margin: auto; }
.take-text { display: grid; justify-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.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 { display: -webkit-box; overflow: hidden; font: 750 11.5px/1.2 var(--sans); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; hyphens: auto; }
.take .cost { color: var(--mist); font: 600 10.5px/1.2 var(--display); }
.take .cost .cr { width: 11px; height: 11px; }
.take-tag { position: absolute; top: -9px; left: 50%; z-index: 2; padding: 2px 7px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 9.5px; font-weight: 800; line-height: 1.3; white-space: nowrap;
  transform: translateX(-50%); box-shadow: 0 0 0 2px var(--sky); }
.take-count { position: absolute; top: -6px; left: calc(50% + var(--d) / 2 - 16px); z-index: 2; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--glow); color: var(--ink);
  font: 700 10.5px/1 var(--display); box-shadow: 0 0 0 2px var(--sky); }
.take-count svg { display: none; }

/* «Свой сценарий» in the glowing frame: its example plays edge to edge, the title, then the line that types out ideas with
   the round key. A run takes the example's place. */
/* Its height set outright: a min-height with an aspect ratio would widen it past the screen. */
.studio { display: flex; flex-direction: column; justify-content: flex-end; height: clamp(440px, calc((100vw - 32px) * 1.18), 620px); overflow: hidden;
  border-radius: var(--frame); background: var(--veil); box-shadow: 0 34px 70px -40px rgb(var(--rose-rgb) / .9), 0 26px 60px -34px rgb(var(--wave-rgb) / .6); }
.studio-bg, .studio-bg > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.studio-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(var(--ink-rgb) / .28), transparent 16%, transparent 56%, var(--scrim) 97%); }
.home .studio-bg::after { background: linear-gradient(rgb(var(--ink-rgb) / .7), rgb(var(--ink-rgb) / .2) 24%, transparent 34%, transparent 56%, var(--scrim) 97%); }
html[data-site-mode="edit"] .only-animate, html[data-site-mode="animate"] .only-edit, html:not([data-site-mode]) .only-edit { display: none; }
/* A mode with no picture at all (no example of its own, no video scene's to borrow – partials/studio.html): the frame lit
   softly by the three lights, as an effect's page without an example, never a black hole. */
html[data-site-mode="animate"] .studio-bg:not(:has(> .only-animate:not([hidden]))), html[data-site-mode="edit"] .studio-bg:not(:has(> .only-edit:not([hidden]))) {
  background: radial-gradient(90% 70% at 20% 10%, rgb(var(--rose-rgb) / .5), transparent 70%), radial-gradient(80% 60% at 95% 85%, rgb(var(--wave-rgb) / .4), transparent 70%), var(--veil-2); }
/* Its name and «Видео / Фото» on one line at the foot: the picture above them stays clear. */
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.studio-title { min-width: 0; margin: 0; font: 750 16.5px/1.15 var(--display); letter-spacing: -.015em; text-shadow: 0 1px 14px rgb(0 0 0 / .55); text-wrap: balance; }
.toggle { display: inline-flex; flex: 0 0 auto; padding: 3px; border-radius: 999px; background: var(--shade); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--mist); font-size: 14px; font-weight: 750; }
.toggle button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.toggle button[aria-pressed="true"], .toggle button[aria-selected="true"] { background: var(--glow); color: var(--ink); }
.studio .toggle button { min-height: 32px; padding: 0 13px; font-size: 13px; }
/* Small in the frame, a finger's height to tap: 40 px up and down past the switch's edge. */
.studio .toggle button { position: relative; }
.studio .toggle button::after { content: ""; position: absolute; inset: -4px 0; }
.toggle-wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 0 0 14px; background: var(--sky); }
.toggle-wide button { min-height: 46px; font-size: 15px; }
/* One column as wide as the frame: the line typing an idea (nowrap) once widened it, and «Фото» went past the frame's edge. */
.studio-foot { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px 16px; }
.ask { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 8px 8px 8px 18px; border: 0; border-radius: 999px; background: rgb(var(--ink-rgb) / .66);
  color: var(--glow); text-align: left; box-shadow: inset 0 0 0 1px rgb(var(--glow-rgb) / .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.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) / .88); 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: 650 13px/1 var(--display); font-variant-numeric: tabular-nums; }
.ask-price:empty { display: none; }
.ask:active .spark-btn { transform: scale(.93); }
html:is([data-site-step="upload"], [data-site-step="choose"]) .home .studio { cursor: pointer; }
.after { display: grid; gap: 8px; }
.after-note { margin: 0; color: var(--mist); font-size: 13.5px; line-height: 1.4; }
.studio .after-note { color: var(--glow); }
.oops { margin: 0; padding: 10px 14px; border-radius: 16px; background: rgb(var(--rose-rgb) / .14); color: var(--blush); font-size: 14px; line-height: 1.4; box-shadow: inset 0 0 0 1px rgb(var(--rose-rgb) / .4); }
.oops .text-btn { min-height: 32px; color: inherit; }

/* What the visitor made, over the frame: the result on its own blur; while it runs a ring of the three lights turning. */
.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) / .6); }
.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: .84; font-size: 14px; }
.out-line { display: block; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--rose), var(--iris), var(--wave), rgb(var(--wave-rgb) / 0) 82%, var(--rose));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); animation: turn 1.1s linear infinite; }
@keyframes turn { to { transform: rotate(1turn); } }
.out::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--scrim)); pointer-events: none; }
.out:not(:has(> img:not([hidden]), > video:not([hidden])))::after { display: none; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]):not([data-site-mode="effect"]) .studio-head { display: none; }
html:is([data-site-step="choose"], [data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .studio-bg { visibility: hidden; }
/* The home card shows the run of «Свой сценарий»: its example stays while a photo only waits (the photo is in the card). */
.home .studio .out [data-kit-src="photo"] { display: none !important; }
html[data-site-step="choose"] .home .studio-bg { visibility: visible; }
html[data-site-step="preview"] .studio .out, html[data-site-step="result"] .studio .out { position: relative; flex: 1 1 auto; min-height: 0; }
/* The free trial's card and a scene's run an effect: «Свой сценарий» behind them stays as it was. */
html[data-site-mode="effect"] .home .studio .out { display: none; }
html[data-site-mode="effect"] .home .studio-bg { visibility: visible; }

/* «Примеры» */
.catalog { margin-top: 32px; scroll-margin-top: calc(var(--top) + 8px); }
.catalog-title { margin-bottom: 4px; }
.cat-bar { position: sticky; top: var(--top); z-index: 12; display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 8px 16px; background: rgb(var(--sky-rgb) / .5);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }
.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 capsules: the chosen one on the gradient. */
.cat-kinds button { position: relative; flex: 0 0 auto; min-height: 40px; padding: 0 15px; border: 0; border-radius: 999px; background: none; color: var(--mist); font-size: 15px; font-weight: 750; 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: 0; border-radius: 50%; background: var(--veil-2); box-shadow: inset 0 0 0 1px var(--line); 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 4px 0 14px; border-radius: 999px; background: var(--veil-2); box-shadow: inset 0 0 0 1px var(--line); }
.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: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; 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: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); 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: 14px; margin-bottom: 26px; }
.kind:not([hidden]) { animation: rise-in .28s cubic-bezier(.3, .7, .2, 1); }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
.kind-shot { aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--frame); background: var(--veil); }
.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: 18px;
  box-shadow: 0 0 0 2px var(--glow), 0 10px 26px rgb(0 0 0 / .5); }
.kind-before img, .before-chip img { width: 100%; height: 100%; object-fit: cover; }
.kind-before > span, .before-chip figcaption, .card-before > span, .hold-word { position: absolute; left: 5px; bottom: 5px; padding: 1px 8px; border-radius: 999px; 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: 50%; bottom: 4px; padding: 0 6px; font-size: 9.5px; transform: translateX(-50%); }
.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 > .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: its picture whole, its name on the picture's foot; its kind as a coloured mark top left (a clip pink, a photo
   blue, the editor gold), its price as a glass chip top right, the photo «до» as a bubble in the corner. The name and the
   line under it are rows of the card's own grid laid over the picture, so a second line never falls out of it. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; min-width: 0; padding: 0; overflow: hidden; border: 0;
  border-radius: var(--tile); background: none; color: var(--glow); text-align: left; text-decoration: none; }
.card-media { position: relative; grid-area: 1 / 1 / -1 / -1; display: block; aspect-ratio: 3 / 4.1; overflow: hidden; border-radius: var(--tile); background: var(--veil); }
.card-media > img, .card-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.card-media::after { content: ""; position: absolute; inset: 46% 0 0; z-index: 1; background: linear-gradient(transparent, rgb(var(--ink-rgb) / .9)); pointer-events: none; }
/* No example yet: the frame lit by the lights, 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: radial-gradient(90% 70% at 20% 0%, rgb(var(--rose-rgb) / .4), transparent 70%), radial-gradient(90% 80% at 100% 100%, rgb(var(--wave-rgb) / .34), transparent 70%), var(--veil-2); }
.card-media > .ph, .reel-media > .ph { position: static; }
.card-before { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 30%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px var(--glow), 0 6px 16px rgb(0 0 0 / .45); }
.card-before img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.card-kind { position: absolute; top: 8px; left: 8px; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); box-shadow: 0 4px 12px rgb(0 0 0 / .35); }
.card-kind svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; 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(--gem); }
.card[data-media="video"] .type-photo, .card[data-media="image"] .type-video { display: none; }
.card-title, .card-lead { position: relative; z-index: 2; grid-column: 1; padding: 0 12px 12px; text-shadow: 0 1px 10px rgb(0 0 0 / .6); }
.card-title { grid-row: 2; display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 750; line-height: 1.22; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card:has(.card-before) .card-title { padding-right: calc(30% + 16px); }
.card-lead { grid-row: 3; margin-top: -8px; color: rgb(var(--glow-rgb) / .82); font-size: 12px; line-height: 1.3; }
.reel-title { display: -webkit-box; overflow: hidden; padding: 0 4px; font-size: 14px; font-weight: 750; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card-price { position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--shade); color: var(--glow);
  font: 650 12px/1 var(--display); font-variant-numeric: tabular-nums; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card-price .cr { width: 13px; height: 13px; }
.card:focus-visible { outline: none; }
.card:focus-visible .card-media, .reel:focus-visible .reel-media { box-shadow: inset 0 0 0 3px var(--glow); }
/* «Свой сценарий» at the head of a kind's cards: its example dimmed in a ring of the lights, the round key over it. */
.card-studio .card-media { box-shadow: inset 0 0 0 2px var(--rose); }
.card-studio .card-media::after { inset: 0; background: linear-gradient(rgb(var(--ink-rgb) / .3), rgb(var(--ink-rgb) / .86)); }
.card-rec { position: absolute; inset: 0 0 18%; z-index: 2; display: grid; place-items: center; }
.card-rec .spark-btn { width: 56px; height: 56px; }
.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: 999px; background: var(--glass); color: var(--glow); font-size: 14.5px; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.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: radial-gradient(90% 80% at 15% 0%, rgb(var(--rose-rgb) / .4), transparent 70%), radial-gradient(90% 90% at 100% 100%, rgb(var(--wave-rgb) / .34), transparent 70%), var(--veil-2); }
.lost-mark { font: 800 72px/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.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: radial-gradient(90% 70% at 20% 10%, rgb(var(--rose-rgb) / .5), transparent 70%), radial-gradient(80% 60% at 95% 85%, rgb(var(--wave-rgb) / .4), transparent 70%), var(--veil-2); }
.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-radius: 50%; background: var(--shade); color: var(--glow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.back-btn svg, .bar-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hold { position: absolute; left: 18px; bottom: 18px; z-index: 7; width: 24%; max-width: 112px; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: var(--veil);
  box-shadow: 0 0 0 2px var(--glow), 0 10px 26px rgb(0 0 0 / .5); 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), 0 10px 26px rgb(0 0 0 / .5); }
html:is([data-site-step="choose"], [data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .hold { display: none; }
html:is([data-site-step="processing"], [data-site-step="preview"], [data-site-step="result"]) .back-btn { display: none; }
.item-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 18px; }
.item-title { margin: 0; font: 800 27px/1.05 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.item-lead { margin: -4px 0 0; color: var(--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: 18px; 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: 18px; 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 -1px 0 var(--line); }
.item .run-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; }
.run-sum { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.run-price { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.run-price .cr { width: 19px; height: 19px; }
.run-price:empty { display: none; }
.run-sum small { display: -webkit-box; overflow: hidden; color: var(--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: 999px; 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: 54px; padding: 0 20px; }
.run-go .cr { width: 16px; height: 16px; }

/* «Свой сценарий»'s blocks, as a shot list. */
.block { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: var(--veil); box-shadow: inset 0 0 0 1px var(--line); }
.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: 18px; background: var(--sky); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.field-box:focus-within { box-shadow: inset 0 0 0 1.5px rgb(var(--glow-rgb) / .55); }
.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: 999px; 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: 16px; 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, the picked one small. */
.drop { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 1.5px dashed rgb(var(--glow-rgb) / .34); border-radius: 22px; 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-radius: 50%; background: var(--grad); }
.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); box-shadow: inset 0 0 0 1px rgb(var(--glow-rgb) / .3); }
.drop-more .drop-icon svg { stroke: var(--glow); }
.picked { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 22px; 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: 16px; 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: 999px; 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: 16px; background: var(--sky); color: var(--glow); font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.kit-text:focus, .field:focus, .kit-select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--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 1px var(--line); }

/* Cards (dialogs): from the bottom on a phone; the tall ones take the screen. */
.sheet { width: 100%; max-width: 540px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: 30px 30px 0 0; background: var(--veil); 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: 0; border-radius: 50%; background: var(--veil-2); color: var(--glow); box-shadow: inset 0 0 0 1px var(--line); }
.close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sheet-full { height: 100vh; height: 100dvh; max-height: none; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 0; }
.sheet-full .sheet-top { position: sticky; top: 0; z-index: 8; margin: 0 -16px 14px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: rgb(var(--veil-rgb) / .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.age-mark { justify-self: start; width: fit-content; margin: 0 0 4px; font: 800 44px/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.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: radial-gradient(90% 70% at 20% 0%, rgb(var(--rose-rgb) / .4), transparent 70%), radial-gradient(90% 80% at 100% 100%, rgb(var(--wave-rgb) / .34), transparent 70%), var(--veil-2); }
.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; background: var(--shade); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.free-body { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; overflow: auto; overscroll-behavior: contain; padding: 14px 16px 16px; }
.free-light { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--lime); font-size: 12.5px; font-weight: 800; }
.free-light .offer-light { width: 9px; height: 9px; }
.free-title { margin: 0; font: 800 22px/1.1 var(--display); letter-spacing: -.025em; }
.free-lead { margin: 0; font-size: 15.5px; line-height: 1.35; }
.free-lead strong { font-weight: 800; }
.scene-lead { color: var(--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 10px; border-radius: 999px; background: rgb(var(--rose-rgb) / .16); color: var(--rose); font-size: 12px; font-weight: 800; }
.scene-type:empty { display: none; }
.sheet-scene:not([data-clip="yes"]) .scene-video { display: none; }
.scene-video { display: grid; gap: 8px; }
/* «1 фото бесплатно» beside «Создать бесплатно»: on two even lines when the key leaves it no room for one, never cut. */
.free-bar .free-bar-title { text-wrap: balance; }
.free-bar-title { font: 700 15.5px/1.15 var(--display); }
.free-go { padding: 0 18px; }
.consents { display: grid; gap: 6px; margin-top: 4px; }
.consent { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 14px; border-radius: 16px; 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: 24px;
  background: var(--veil-2); color: var(--glow); text-align: left; text-decoration: none; }
.shotrow-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; 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: 50%; background: var(--veil); }
.shotrow-go.is-rec { background: var(--grad); color: var(--ink); }
.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: 16px; 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: radial-gradient(90% 70% at 20% 0%, rgb(var(--rose-rgb) / .4), transparent 70%), radial-gradient(90% 80% at 100% 100%, rgb(var(--wave-rgb) / .34), transparent 70%), var(--veil-2); }
.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-item .card-kind { display: none; }
.chart-rank { position: absolute; top: 6px; left: 12px; 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: 999px; background: var(--sky); }
.seg button { min-height: 42px; padding: 0 10px; border: 0; border-radius: 999px; 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 -1px 0 var(--line); }
.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: 18px; 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 1px var(--line); }
.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: 12px 8px; }
.pack { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 122px; padding: 18px 14px 12px; border: 0; border-radius: 22px; background: var(--veil-2); color: var(--glow);
  text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.pack-tag { position: absolute; top: -9px; left: 12px; padding: 3px 9px; border-radius: 999px; background: var(--rose); 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); }
.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: 0 0 0 2px 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 18px; border: 0; border-radius: 999px; background: var(--sky); color: var(--glow); font: 700 16px/1 var(--sans); letter-spacing: .06em;
  box-shadow: inset 0 0 0 1px var(--line); }
.promo-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--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: 999px; 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 -1px 0 var(--line); }
.bar-sum { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.bar-total { display: inline-flex; align-items: center; gap: 3px; font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar-total .cr { width: 18px; height: 18px; }
.bar-sub { overflow: hidden; color: var(--mist); font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pay-go { flex: 0 0 auto; min-width: 128px; }
.bar-back { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; padding: 0; border: 0; border-radius: var(--key); background: var(--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: 20px; background: var(--veil-2); color: var(--glow);
  text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.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: 14px; 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: 14px; background: var(--veil-2);
  color: var(--glow); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.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: 26px; background: var(--veil-2); text-align: center; }
.wait-clock { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; 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: 26px; background: var(--veil-2); box-shadow: inset 0 0 0 1px var(--line); }
.transfer-title { margin: 0; font: 800 17px/1.2 var(--display); letter-spacing: -.02em; }
.transfer-lead { margin: -6px 0 0; color: var(--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: 16px; 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 card of the three lights, dark words on it; the number and «Скопировать» on its glass. */
.purse { position: relative; isolation: isolate; display: grid; gap: 14px; padding: 20px 18px 18px; overflow: hidden; border-radius: 28px; background: var(--grad); color: var(--ink);
  box-shadow: 0 24px 50px -26px rgb(var(--rose-rgb) / .9); }
.purse::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px 150px at 100% 0%, rgb(255 255 255 / .46), transparent 70%), radial-gradient(280px 170px at 0% 120%, rgb(var(--ink-rgb) / .26), transparent 70%); }
.purse-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font: 800 46px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.purse-n .cr { width: 34px; height: 34px; filter: drop-shadow(0 3px 8px rgb(var(--ink-rgb) / .35)); }
.purse-label { font: 700 14px/1.2 var(--sans); letter-spacing: 0; opacity: .86; }
.purse > .go { background: var(--ink); color: var(--glow); box-shadow: none; }
.purse-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 20px; background: rgb(255 255 255 / .3); }
.purse-id-text { display: grid; min-width: 0; }
.purse-id-text small { font-size: 12px; font-weight: 700; opacity: .84; }
.purse-id .ghost { background: rgb(var(--ink-rgb) / .88); color: var(--glow); box-shadow: none; }
.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: 600; line-height: 1.4; opacity: .88; }
.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: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.acc-item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.acc-item-title { font-size: 15px; font-weight: 800; }
.acc-item-state { min-width: 0; padding: 3px 9px; border-radius: 999px; 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: 16px; 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: 1px dashed rgb(var(--glow-rgb) / .28); border-radius: var(--key);
  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: none; }
.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: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.kit-payment::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--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: 999px; 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: 999px; background: var(--grad); 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 glass card, each with its mark in a colour of its own. */
.menu { display: grid; margin: 22px 0 0; padding: 4px 14px; list-style: none; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0; border: 0; border-bottom: 1px solid var(--line); 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-rgb); display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; background: rgb(var(--tone) / .16); color: rgb(var(--tone)); }
.menu-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu li:nth-child(5n+2) .menu-ico { --tone: var(--iris-rgb); }
.menu li:nth-child(5n+3) .menu-ico { --tone: var(--wave-rgb); }
.menu li:nth-child(5n+4) .menu-ico { --tone: var(--lime-rgb); }
.menu li:nth-child(5n) .menu-ico { --tone: var(--gem-rgb); }
.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: 18px; 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: 100%; }
.inst-steps { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.inst-steps li { position: relative; min-height: 34px; padding: 6px 0 0 46px; font-size: 15px; line-height: 1.4; counter-increment: step; }
.inst-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: var(--ink); 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 (62 px over its 10 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(72px + max(10px, 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-tab, .dock-rec { font-size: 9.5px; letter-spacing: -.01em; }
  .offer-text strong { font-size: 13.5px; }
  .offer { gap: 10px; padding: 10px; }
  .dock { grid-template-columns: repeat(4, minmax(0, 1fr)) 58px; }
  .dock-tab { padding: 0; }
  .dock-rec-ring { width: 52px; height: 52px; }
  .take-title { font-size: 10.5px; }
  .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: 12px; }
  .takes-row { --d: 84px; }
  .take-title { font-size: 13px; }
  .take .cost { font-size: 11.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 { height: clamp(480px, 66vw, 600px); }
  .kind { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .kind-title { font-size: 28px; }
  .reels { grid-auto-columns: minmax(150px, 26%); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot { padding-left: 24px; padding-right: 24px; }
  .sheet { border-radius: 30px; 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 as a capsule in the middle of the top, «Создать» last, no dock; the home page in two columns – the
   site's own words big, the ticket and the four ways in as rows on the left, the glowing frame on the right; a
   scenario's page with its picture staying in sight; the tall cards wide, their picture whole on the right. */
@media (min-width: 1100px) {
  :root { --top: 70px; }
  .top { padding: 0 max(24px, calc((100% - 1240px) / 2 + 24px)); gap: 10px; }
  .brand { margin-right: 0; }
  .top-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 3px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
  .top-nav a, .top-nav button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--mist); font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .top-nav [aria-current="page"] { color: var(--ink); background: var(--glow); }
  .top-make { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--grad); color: var(--ink); font-size: 14.5px; font-weight: 800;
    box-shadow: 0 10px 24px -10px rgb(var(--rose-rgb) / .8); }
  .dock { display: none; }
  .main { padding-top: 22px; padding-bottom: 48px; }
  body.is-detail .main { padding-bottom: 48px; }
  .foot { padding-bottom: 32px; }
  /* The left column stands in the middle of the frame's height (the empty rows above and below it share what is left). */
  .home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); grid-template-rows: 1fr auto auto auto 1fr; gap: 0 48px; align-items: start;
    grid-template-areas: ". studio" "text studio" "offer studio" "takes studio" ". studio" "catalog catalog" "notes notes"; }
  .hero-text { grid-area: text; display: grid; gap: 14px; margin: 0 0 24px; }
  .hero-title, .hero-lead { grid-row: auto; grid-column: auto; display: block; margin: 0; padding: 0; overflow: visible; text-shadow: none; pointer-events: auto; }
  .home .studio-bg::after { background: linear-gradient(rgb(var(--ink-rgb) / .28), transparent 16%, transparent 56%, var(--scrim) 97%); }
  html .home .hero-title { visibility: visible; }
  .hero-title { font: 800 clamp(34px, 3.5vw, 50px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
  .hero-lead { max-width: 32em; color: var(--mist); font-size: 17px; line-height: 1.55; }
  .home > .offer { grid-area: offer; min-height: 76px; padding: 12px 14px; }
  .offer-text strong { font-size: 17px; }
  .offer-text small { font-size: 14px; }
  .home > .studio { grid-area: studio; height: min(calc(100vh - 130px), 700px); min-height: 560px; margin: 0; }
  .home > .takes { grid-area: takes; margin: 26px 0 0; }
  .home > .catalog { grid-area: catalog; margin-top: 30px; }
  .home > .notes { grid-area: notes; }
  /* The four ways in as rows, two by two: the bubble on the left, the kind, the name and the price beside it. */
  .takes > .row-title { position: static; width: auto; height: auto; margin: 0 0 12px; overflow: visible; clip-path: none; white-space: normal; color: var(--mist); font: 700 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
  .takes-row { --d: 62px; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; }
  .take { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 24px; background: var(--glass); text-align: left;
    box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, transform .2s; }
  .take::before { top: 8px; left: 8px; margin: 0; }
  .take-text { justify-items: start; gap: 3px; }
  .take-kind { display: inline-flex; align-items: center; gap: 5px; color: var(--mist); font-size: 11.5px; font-weight: 750; }
  .take-title { font: 700 14.5px/1.2 var(--display); letter-spacing: -.015em; }
  .take .cost { font-size: 12px; }
  .take .cost .cr { width: 12px; height: 12px; }
  .take-tag { top: -8px; left: auto; right: 14px; transform: none; font-size: 10.5px; }
  .take-count { top: 4px; left: calc(12px + var(--d) - 14px); }
  .studio-title { font-size: 20px; }
  .studio-foot { padding: 14px 20px 20px; }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  /* The bar's tint runs to both edges of the window, not to the column's. */
  .cat-bar { top: var(--top); box-shadow: 0 0 0 100vmax rgb(var(--sky-rgb) / .5); 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) - 44px), 720px); max-height: none; aspect-ratio: 4 / 5; margin: 20px 0 0;
    border-radius: var(--frame); box-shadow: 0 34px 70px -40px rgb(var(--rose-rgb) / .9), 0 26px 60px -34px rgb(var(--wave-rgb) / .6); }
  .item-body { padding-top: 24px; }
  .item-title { font-size: 34px; }
  .item .run-bar { position: sticky; bottom: 16px; margin: 6px 0 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgb(0 0 0 / .4); padding: 10px 10px 10px 26px; }
  .reels { grid-auto-columns: minmax(160px, 16%); }
  .variants { grid-auto-columns: 120px; margin: 0; padding: 0 0 2px; }
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .sheet { --tall: min(88vh, 820px); --side: 440px; --wide: min(calc(var(--tall) * 3 / 4 + var(--side)), calc(100% - 48px)); margin: auto; border-radius: 30px; box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgb(var(--iris-rgb) / .6); }
  .sheet-full { height: fit-content; max-height: min(92vh, 900px); padding-bottom: 24px; border-radius: 30px; }
  .sheet-full .sheet-top { padding-top: 16px; }
  .topup-bar { bottom: -24px; margin-bottom: -24px; padding-bottom: 14px; }
  .sheet-free, .sheet-compose, #create { width: var(--wide); max-width: none; height: var(--tall); max-height: none; border-radius: 30px; }
  /* The words on the left, the example whole on the right. */
  .sheet-free[open], .sheet-compose[open] { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); 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: 2; grid-row: 1 / -1; height: auto; min-height: 0; }
  .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: 1; }
  .free-body { gap: 9px; padding: 28px 28px 16px; align-content: safe center; }
  .free-close { top: 18px; right: 18px; }
  .free-title { font-size: 26px; }
  .sheet-free .run-bar, .sheet-compose .run-bar { padding: 14px 28px; }
  .before-chip { left: 22px; bottom: 22px; max-width: 132px; }
  .cmp-top { padding: 22px 24px 10px 28px; }
  /* «Закрыть» stands on the example's corner, as on a scenario's card. */
  .cmp-top > .close { position: absolute; top: 18px; right: 18px; z-index: 9; background: var(--shade); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .cmp-body { padding: 10px 24px 20px 28px; border-top: 1px solid var(--line); }
  .sheet-compose .cmp-lead { max-width: 30em; }
  #create .create-panel { flex: 1 1 auto; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  #create .shots { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-height: 0; }
  #create .shotrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 12px; height: 100%; padding: 10px 14px 14px 10px; }
  #create .shotrow-media { grid-column: 1 / -1; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 18px; }
  #create .shotrow-text { padding-left: 4px; }
  #create .shotrow-title { font-size: 17px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .sheet-compose .field-box textarea { min-height: 88px; }
  .sheet-compose .cmp-lead { display: none; }
}
@media (min-width: 1800px) {
  .main, .foot { max-width: 1440px; }
  .top { padding: 0 max(24px, calc((100% - 1440px) / 2 + 24px)); }
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* A mouse: what answers the pointer. */
@media (hover: hover) {
  .go:hover, .top-make:hover, .offer:hover { filter: brightness(1.08) saturate(1.1); }
  .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 .card-media > img, .card:hover .card-media > video, .reel:hover .reel-media > img { transform: scale(1.05); }
  .reel-media > img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .take:hover { background: rgb(var(--glow-rgb) / .12); transform: translateY(-2px); }
  .cat-kinds button:hover, .top-nav a:hover, .top-nav button:hover { color: var(--glow); }
  .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) {
  .offer-light::after, .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-media > img, .card-media > video, .reel-media > img, .take, .go, .spark-btn, .dock-rec-ring { 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(--line);
  --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(--iris);
  --kit-chat-on-mine: var(--ink); --kit-chat-online: var(--lime); --kit-chat-warn: var(--gem); --kit-chat-danger: var(--blush); }
.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: 30px 30px 0 0; background: var(--veil); box-shadow: 0 -12px 28px rgb(0 0 0 / .4); 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(--rose-rgb); }

/* «ИИ-аватары» 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); }
@media (max-width: 1099px) {
  .home > .avs { grid-row: 5; }
  .home:has(> .avs) > .catalog { grid-row: 6; }
  .home:has(> .avs) > .notes { grid-row: 7; }
}
@media (min-width: 1100px) {
  .home:not(.is-kind):has(> .avs) { grid-template-areas: ". studio" "text studio" "offer studio" "takes studio" ". studio" "avs avs" "catalog catalog" "notes notes"; }
  .home > .avs { grid-area: avs; margin: 40px 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)); }
}
