/* ==========================================================================
   RASIK AI — interim platform styles still needed by markup: page-head primitives, legacy helpers that
   platform.js can still render (P.tile, P.strip, P.empty, P.pricePill, P.sampleTag) and the wizard re-host.
   Design «Галерея»: tokens, fonts, shared .g-* components and the app shell live in gallery.css; the
   per-area files (g-home.css, g-studio.css, g-account.css, g-wizard.css) load after it and override these.
   The old home / studio / catalog / credits / profile screen rules were removed (foundation, 2026-10): no
   page or script emits those classes any more (checked against every HTML/JS string + computed-style A/B).
   The landing (index.html) does not need this file at all.
   ========================================================================== */

/* ---------- type & primitives ---------- */
.num, kbd { font-family: var(--g-font-ui); font-variant-numeric: tabular-nums; }
h1, .page-head h1 { font-family: var(--g-font-display); font-weight: 400; letter-spacing: -.03em; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 43px); line-height: 1.2; }
.page-head p { max-width: 64ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.page-head p b { color: var(--ink); }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn:focus-visible, .tab:focus-visible { outline-offset: 3px; }

/* former hand-written motifs → quiet uppercase labels */
.hand { font-family: var(--g-font-ui) !important; font-weight: 600 !important; font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--acc) !important; transform: none !important; }
.polaroid { background: var(--card); padding: 6px 6px 34px; border-radius: var(--g-r-xs); border: 1px solid var(--line); box-shadow: none; transform: none !important; }
.pol-cap { font-family: var(--g-font-ui); font-size: 13px; font-weight: 600; color: var(--ink); }
.pol-cap span { color: var(--acc); }

/* progress dot (was REC), duration chip (was timecode), price, demo label */
.price-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 2px 9px; border-radius: var(--g-r-xs); background: var(--g-accent-soft); color: var(--ink); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-pill span { color: var(--muted); }
.price-pill b { font-weight: 700; color: var(--acc); }
.stars { color: var(--warn); letter-spacing: 1px; font-size: 12px; white-space: nowrap; }
.stars em { font-style: normal; color: var(--line-2); }

/* empty / error (P.empty, P.errorState) — base look comes from .g-empty */
.empty { grid-column: 1 / -1; }
.empty .btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- media tile (P.tile → .tile.g-art) & horizontal strip (P.strip, no perforation) ---------- */
/* .tile = legacy hand-made tiles in screen markup; P.tile() now renders .tile.g-art (same look) */
.tile { position: relative; display: block; width: 100%; aspect-ratio: var(--ratio, 1 / 1); overflow: hidden; border: 0; border-radius: var(--g-r-xs); background: var(--g-soft-2); }
.tile > img, .tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--g-line-strong) transparent; }
.strip-compact { grid-auto-columns: 88px; }

/* ---------- studio ---------- */
.switch { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); transition: background-color var(--dur); }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFAF5; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--dur) var(--ease); }
.switch[aria-checked="true"] { background: var(--acc); }
.switch[aria-checked="true"] i { transform: translateX(18px); }
/* result */
.re-tag { position: absolute; z-index: 3; top: 10px; right: 10px; left: auto; padding: 3px 8px; border-radius: var(--g-r-xs); background: var(--g-media-chip); color: var(--g-media-chip-ink); font: 600 11px/1.4 var(--g-font-ui); letter-spacing: .02em; text-transform: none; }

/* ---------- credits & profile ---------- */
.pl-price b { font-size: 26px; font-weight: 600; }
.pl-price small { color: var(--muted); margin-left: 6px; }
.pl-list { display: grid; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.pl-list li { padding-left: 22px; position: relative; }
.pl-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- «Ролик под ключ» (wizard.js markup): interim gallery steps; g-wizard.css refines ---------- */
.wz-steps { margin: 0 0 24px; }
.wz-steps ol { gap: 8px; }
.wz-steps ol::before { display: none; }
.wz-steps li > a, .wz-steps li > span { display: grid; justify-items: start; gap: 6px; min-height: 44px; padding: 10px 2px 12px; border-radius: 0; border-bottom: 2px solid var(--line); }
.wz-steps li.done > a, .wz-steps li.done > span { border-bottom-color: var(--line-2); }
.wz-steps li.now > a, .wz-steps li.now > span { border-bottom-color: var(--acc); }
.view[data-route="create"] .wz-title .n, .view[data-route="order"] .wz-title .n { font: 600 12px/1 var(--g-font-ui); color: var(--acc); transform: none; padding: 0; background: none; min-width: 0; letter-spacing: .08em; }
.wz-title .n::after { content: ""; }
.wz-title { font-family: var(--g-font-ui); font-weight: 700; font-size: 16px; }
.wz-bar { background: var(--card); box-shadow: var(--g-shadow-pop); }
.wz-bar .info b { font-family: var(--g-font-ui); font-weight: 700; font-variant-numeric: tabular-nums; }
.fmt-card, .q-card, .dur, .tpl-chip { border-radius: var(--g-r-md); box-shadow: none; }
.fmt-card[aria-checked="true"], .q-card[aria-checked="true"], .dur[aria-checked="true"] { border-color: var(--acc) !important; background: var(--acc-soft) !important; box-shadow: none; }
.login-code { font-family: var(--g-font-ui) !important; transform: none; border-radius: var(--g-r-md); background: var(--card-2); color: var(--ink); box-shadow: none; }

/* former handwritten (Caveat) labels in the wizard & cabinet → quiet uppercase labels */
.step-num::after,
.step .free,
.price .per,
.price.hot .badge,
.wz-title .n,
.bubble.bot .who,
.sc-ph span,
.cast-fail b,
.eta-k,
.refs-help summary,
.li-pol figcaption,
.hp-card b,
.plan.hot .badge,
.cp-day {
  font-family: var(--g-font-ui) !important; font-weight: 600 !important; font-size: 11.5px !important; line-height: 1.4 !important;
  letter-spacing: .12em; text-transform: uppercase; transform: none !important; color: var(--acc);
}
.refs-help summary, .cast-fail b { text-transform: none; letter-spacing: .01em; font-size: 13px !important; }
.bubble.bot .who { color: var(--muted); }

/* ---------- responsive (screens; the shell is responsive in gallery.css) ---------- */
@media (max-width: 639px) {
  .wz-steps ol { gap: 4px; }
}
