/* MIYRON — Black & Gold: тёплое тёмное поле, золото в действиях, активных элементах и подсветке (под логотип). */
:root {
  --bg: #0f0e12;
  --surface: #1b1a1f;
  --surface-2: #27252b;
  --ink: #f7f3ea;
  --muted: #a59f94;
  --accent: #c9a14f;
  --accent-ink: #15120b;
  --accent-text: #e2c47e;
  --cyan: #ecd9a6;
  --gold-deep: #6b4f22;
  --grad: linear-gradient(120deg, #9c7432 0%, #d4ae62 38%, #f6e3b0 68%, #c9a14f 100%); /* taste-skill-ignore: фирменный градиент */
  --danger: #e8a598;

  --display: "Inter Tight", system-ui, sans-serif;
  --text: "Inter Tight", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.5rem, 1rem + 13vw, 13rem);

  --margin: clamp(20px, 3.4vw, 48px);
  --gap-section: clamp(120px, 14vw, 200px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 1440px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--text); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
figure { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .display {
  font-family: var(--display); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 0;
}

/* ---------------------------------------------------------------- bar */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 32px;
  height: 68px; padding: 0 var(--margin); background: var(--bg);
  transition: transform .5s var(--ease-out);
}
.topbar.tucked { transform: translateY(-100%); }
.logo { font: 600 24px/1 var(--display); letter-spacing: -.04em; }
.logo::first-letter { color: var(--accent-text); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-size: var(--step-body); transition: color .2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.balance { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--step-body); transition: color .2s; }
.balance:hover { color: var(--ink); }
.balance b { color: var(--ink); font-weight: 500; }
.coin { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  font-size: var(--step-body); font-weight: 500; white-space: nowrap; border-radius: 0;
  transition: background .25s, color .25s, transform .2s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-text); color: #0f0e12; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: var(--step-small); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; background: var(--bg); color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; background: var(--surface); color: var(--muted); font-size: var(--step-small); transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); background: var(--surface-2); }
.chip.active { background: var(--accent); color: var(--accent-ink); }
.seg { display: inline-flex; background: var(--surface); }
.seg button { padding: 10px 18px; color: var(--muted); font-size: var(--step-small); transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- main & app pages */
main { position: relative; z-index: 2; background: var(--bg); outline: none; min-height: 70vh; padding-bottom: var(--gap-section); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.page-head { padding: clamp(48px, 8vw, 112px) 0 32px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.page-title { font-size: var(--step-head); }
.page-head p { margin: 0; color: var(--muted); max-width: 44ch; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: var(--step-lead); font-family: var(--display); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 20px; }
.link-more { color: var(--muted); transition: color .2s; }
.link-more:hover { color: var(--ink); }

/* template tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; }
.grid-lg { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tcard {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; display: block; width: 100%; text-align: left;
  background: var(--surface);
}
.tcard-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(.82) contrast(1.05) saturate(.9); transition: transform 1.2s var(--ease-out), filter .4s; }
.tcard:hover .tcard-cover { transform: scale(1.05); filter: brightness(.95) contrast(1.05); }
.tcard-letter { position: absolute; right: -4%; bottom: 14%; font: 500 clamp(140px, 18vw, 240px)/.8 var(--display); color: var(--surface-2); z-index: -1; transition: transform 1.2s var(--ease-out); }
.tcard:hover .tcard-letter { transform: translateY(-8px); }
/* taste-skill-ignore: нейтральная подложка под текстом на фото */
.tcard-body { position: absolute; inset: auto 0 0; padding: 48px 16px 16px; background: linear-gradient(transparent, rgba(12, 12, 20, .86)); } /* taste-skill-ignore */
.tcard-title { font: 500 var(--step-lead)/1.05 var(--display); letter-spacing: -.01em; }
.tcard-sub { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.tcard.selected { outline: 3px solid var(--accent-text); outline-offset: -3px; }
.tag { position: absolute; top: 14px; left: 16px; font-size: var(--step-small); color: var(--ink); }
.tag.hit { color: var(--accent-text); }
.tag.trend { color: var(--cyan); }
.play { position: absolute; top: 14px; right: 16px; font-size: var(--step-small); color: var(--ink); }

/* create */
.create { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 40px; }
.create > * { min-width: 0; }
.panel { padding: 24px; background: var(--surface); }
.create-side { position: sticky; top: 88px; display: grid; gap: 4px; }
.label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; font-size: var(--step-small); color: var(--muted); }
.label a { color: var(--muted); }
.label a:hover { color: var(--ink); }
.drop { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); text-align: center; cursor: pointer; transition: background .2s; }
.drop:hover, .drop.drag { background: var(--surface-2); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-hint { padding: 24px; }
.drop-hint b { display: block; margin: 16px 0 6px; font: 500 var(--step-lead)/1.1 var(--display); }
.drop-icon { width: 64px; height: 80px; margin: 0 auto; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-text); font-size: 28px; }
.drop .icon-btn { position: absolute; top: 10px; right: 10px; }
.tips { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--step-small); color: var(--muted); }
.input {
  width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--surface-2); /* taste-skill-ignore: поле формы */ resize: vertical; min-height: 52px;
  border-radius: 0; transition: border-color .2s;
}
textarea.input { min-height: 120px; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--accent-text); }
.cost-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; color: var(--muted); }
.cost-row b { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.selected-tpl { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); margin-bottom: 10px; }
.selected-tpl .sw { width: 44px; height: 55px; flex: none; overflow: hidden; background: var(--surface-2); }
.selected-tpl .sw img { width: 100%; height: 100%; object-fit: cover; }
.selected-tpl b { display: block; font-weight: 500; }
.selected-tpl span { font-size: var(--step-small); color: var(--muted); }
.selected-tpl button { margin-left: auto; color: var(--muted); font-size: 24px; padding: 0 8px; }
.result { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; padding: 20px; background: var(--surface); margin-bottom: 40px; }
.result-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); position: relative; }
.result-media img, .result-media video { width: 100%; height: 100%; object-fit: cover; }
.result h3 { font-size: var(--step-lead); margin-bottom: 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.shimmer { position: absolute; inset: 0; background: var(--surface-2); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.progress { height: 3px; background: var(--surface-2); margin-top: 16px; max-width: 320px; }
.progress i { display: block; height: 100%; background: var(--grad); transition: width .8s ease; }

/* prompts */
.search { flex: 1 1 280px; max-width: 420px; }
.prompts { columns: 3 320px; column-gap: 4px; }
.pcard { break-inside: avoid; margin-bottom: 4px; padding: 26px; background: var(--surface); transition: background .3s; }
.pcard:hover { background: var(--surface-2); }
.pcard .meta { font-size: var(--step-small); color: var(--muted); margin-bottom: 14px; }
.pcard h3 { font-size: var(--step-lead); line-height: 1.1; margin-bottom: 14px; }
.pcard p.ptext { margin: 0; padding: 16px; background: var(--bg); font-size: var(--step-small); line-height: 1.6; color: var(--ink); }
.pcard .tags { margin: 14px 0 18px; font-size: var(--step-small); color: var(--muted); }
.pcard-actions { display: flex; gap: 4px; }

/* feed */
.feed { columns: 4 240px; column-gap: 4px; }
.post { break-inside: avoid; margin-bottom: 4px; background: var(--surface); position: relative; }
.post-media { cursor: zoom-in; overflow: hidden; }
.post-media img, .post-media video { width: 100%; transition: transform 1s var(--ease-out); }
.post:hover .post-media img, .post:hover .post-media video { transform: scale(1.03); }
.post-meta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 500 15px/1 var(--display); color: var(--bg); }
.who { min-width: 0; flex: 1; }
.who b { display: block; font-weight: 500; font-size: var(--step-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { display: block; font-size: var(--step-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.like { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--muted); font-size: var(--step-small); transition: color .2s; }
.like svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease-out), fill .2s; }
.like:hover { color: var(--ink); }
.like.on { color: var(--accent-text); }
.like.on svg { fill: currentColor; transform: scale(1.12); }
.post-repeat { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity .3s; }
.post:hover .post-repeat, .post:focus-within .post-repeat { opacity: 1; }

.empty { padding: 72px 24px; text-align: center; background: var(--surface); color: var(--muted); }
.empty b { display: block; margin-bottom: 10px; color: var(--ink); font: 500 var(--step-lead)/1.15 var(--display); }
.empty .btn { margin-top: 20px; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; }
.work { background: var(--surface); }
.work-body { padding: 14px 16px 16px; }
.work-body b { display: block; font-weight: 500; }
.work-body span { font-size: var(--step-small); color: var(--muted); }
.work-actions { display: flex; gap: 4px; margin-top: 12px; }
.work-actions .btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: var(--step-small); }
.status-fail { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; color: var(--danger); font-size: var(--step-small); }

.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; }
.pack { padding: 32px 24px; background: var(--surface); display: flex; flex-direction: column; }
.pack.best { background: var(--surface-2); }
.pack h3 { font-size: var(--step-lead); }
.pack .amount { margin: 28px 0 6px; font: 500 var(--step-head)/1 var(--display); }
.pack .amount small { display: block; margin-top: 6px; font: 400 var(--step-body) var(--text); color: var(--muted); }
.pack .price { color: var(--muted); }
.pack ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 6px; }
.pack .btn { margin-top: auto; }
.note { margin-top: 20px; color: var(--muted); font-size: var(--step-small); max-width: 70ch; }
.tg-steps { display: grid; gap: 4px; max-width: 760px; padding: 0; margin: 0; list-style-position: inside; }
.tg-steps li { padding: 20px 24px; background: var(--surface); }
.tg-steps code { padding: 2px 6px; background: var(--bg); font-size: .95em; }

/* ---------------------------------------------------------------- HOME */
.hero, .io, .looks, .index, .price-block, .calls { overflow-x: clip; }
.hero {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 68px);
}
.hero-left { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--margin); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { font-size: var(--step-head); max-width: 13ch; }
.hero-sub { margin: 24px 0 32px; max-width: 44ch; color: var(--ink); }
.hero-right { background: var(--surface); display: grid; place-items: center; padding: var(--margin); position: relative; overflow: hidden; isolation: isolate; }
.hero-right::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 36% at 46% 38%, rgba(201, 161, 79, .32), transparent 70%), radial-gradient(30% 28% at 64% 62%, rgba(236, 217, 166, .10), transparent 70%); } /* taste-skill-ignore: подсветка за зеркалом */

/* masked line reveal */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.js .line > span { transform: translateY(105%); transition: transform .95s var(--ease-out); }
.js .is-in .line > span { transform: none; }
.js .is-in .line:nth-child(2) > span { transition-delay: .11s; }
.js .hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out) .5s, transform .8s var(--ease-out) .5s; }
.js .is-in .hero-fade { opacity: 1; transform: none; }

/* the mirror — live control */
.mirror { width: min(440px, 100%); display: grid; gap: 18px; justify-items: center; }
.mirror-glass {
  position: relative; width: min(340px, 72vw); aspect-ratio: 4 / 5.1; border-radius: 50% / 46%; overflow: hidden;
  background: var(--bg); outline: 2px solid var(--accent-text); box-shadow: 0 0 0 10px var(--surface-2), 0 0 0 11px var(--gold-deep), 0 0 60px -10px rgba(201, 161, 79, .55); /* taste-skill-ignore: рама и свечение зеркала */ outline-offset: 0; cursor: crosshair; touch-action: none;
}
.mirror-glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease-out), filter .7s; transform: scale(1.04); }
.mirror-glass img.on { opacity: 1; }
.mirror-glare {
  position: absolute; inset: -30%; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 25%), rgba(255, 255, 255, .55), transparent 32%); /* taste-skill-ignore: блик стекла внутри data-ui */
  transition: background-position .2s;
}
.mirror-looks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.mirror-looks button { padding: 9px 14px; font-size: var(--step-small); background: var(--bg); color: var(--muted); transition: background .2s, color .2s; }
.mirror-looks button:hover { color: var(--ink); }
.mirror-looks button.active { background: var(--accent); color: var(--accent-ink); }
.mirror-readout { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.mirror-readout b { color: var(--ink); font-weight: 500; }
.mirror-try { font-size: var(--step-small); color: var(--accent-text); cursor: pointer; transition: color .2s; }
.mirror-try:hover { color: var(--ink); }

/* showcase: input / output */
.io { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; margin-top: var(--gap-section); }
.io-in, .io-out { position: relative; padding: var(--margin); padding-top: 22svh; }
.io-in { background: #0b0b12; }
.io-out { background: linear-gradient(135deg, #c9a14f 0%, #6a45e0 60%, #6b4f22 100%); color: #fff; } /* taste-skill-ignore: фирменный градиент */
.io-label { font-size: var(--step-small); color: var(--muted); margin: 0 0 14px; }
.io-out .io-label { color: rgba(255, 255, 255, .8); }
.io-text {
  width: min(34ch, 100%); min-height: 7em; padding: 0; background: none; border: 0; resize: none; outline: none;
  font: 400 var(--step-lead)/1.4 var(--text); color: var(--ink); caret-color: var(--accent);
}
.io-text:focus-visible { outline: none; background: #13131d; }
.io-hint { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.io-heading { position: absolute; bottom: 32px; font: 500 var(--step-head)/.95 var(--display); letter-spacing: -.03em; }
.io-in .io-heading { left: var(--margin); }
.io-out .io-heading { right: var(--margin); }
.order { width: min(480px, 100%); background: var(--bg); color: var(--ink); padding: 22px; border-radius: 6px; font-size: var(--step-small); }
.order-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--surface-2); } /* taste-skill-ignore: строки таблицы в data-ui */
.order-row:last-of-type { border-bottom: 0; }
.order-row span { color: var(--muted); }
.order-row b { font-weight: 500; text-align: right; }
.order-tpl { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.order-tpl .thumb { width: 64px; height: 80px; border-radius: 4px; overflow: hidden; background: var(--surface-2); flex: none; }
.order-tpl .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-tpl .thumb .l { display: grid; place-items: center; height: 100%; font: 500 40px/1 var(--display); color: var(--accent-text); }
.order-tpl b { display: block; font: 500 22px/1.1 var(--display); letter-spacing: -.03em; }
.order-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; }
.order-tags span { padding: 4px 9px; background: var(--surface-2); color: var(--cyan); border-radius: 4px; }
.order .btn { width: 100%; border-radius: 4px; background: var(--accent); color: var(--accent-ink); margin-top: 14px; }
.order .btn:hover { background: var(--accent-text); color: #0f0e12; }

/* gallery: prints on the headline */
.prints { position: relative; min-height: 100svh; margin-top: var(--gap-section); background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.prints h2 { position: relative; z-index: 6; font-size: var(--step-display); line-height: .85; text-align: center; letter-spacing: -.04em; pointer-events: none; }
.print { position: absolute; background: var(--ink); padding: 8px; transition: transform .5s var(--ease-out); will-change: transform; }
.print img, .print video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.print-a { width: 24vw; left: 6vw; top: 10svh; --r: -8deg; z-index: 2; }
.print-b { width: 22vw; right: 7vw; top: 30svh; --r: 6deg; z-index: 3; }
.print-c { width: 14vw; left: 40vw; bottom: -14svh; --r: -3deg; z-index: 1; }
.print { transform: translateY(var(--py, 0px)) rotate(var(--r)); }
.print:hover { transform: translateY(var(--py, 0px)) rotate(0deg); z-index: 5; }
.print figcaption { padding: 8px 2px 0; font-size: var(--step-small); color: var(--bg); line-height: 1.3; }
.prints-note { position: absolute; left: var(--margin); bottom: 24px; max-width: 38ch; font-size: var(--step-body); z-index: 4; }

/* how it works: call and response */
.calls { max-width: var(--max); margin: var(--gap-section) auto 0; padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.calls-inner { grid-column: 4 / span 6; }
.calls h2 { font-size: var(--step-head); margin-bottom: 56px; }
.exchange { margin-bottom: 88px; }
.exchange:last-child { margin-bottom: 0; }
.exchange > p { font-size: var(--step-lead); font-weight: 500; margin: 0 0 16px; line-height: 1.3; }
.call { background: var(--surface); padding: 20px; border-radius: 6px; display: flex; align-items: center; gap: 16px; }
.call .file { width: 44px; height: 54px; border-radius: 50%; background: var(--surface-2); flex: none; }
.call small, .resp small { display: block; color: var(--muted); font-size: var(--step-small); }
.resp { margin: 12px 0 0 56px; background: var(--surface-2); padding: 16px 20px; border-radius: 6px; display: flex; align-items: center; gap: 12px; font-size: var(--step-small); }
.resp .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.resp-final { width: calc(100% + 34%); max-width: 82vw; margin-left: 56px; margin-top: 12px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px; background: var(--surface-2); border-radius: 6px; align-items: center; }
.resp-final img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.resp-final .ttl { font: 500 var(--step-lead)/1.1 var(--display); margin: 0 0 8px; }
.resp-final .row { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.resp-final .btn { border-radius: 4px; }

/* looks: sticky picture, active list */
.looks { max-width: var(--max); margin: var(--gap-section) auto 0; padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
.looks-h { grid-column: 7 / span 6; grid-row: 1; font-size: var(--step-head); padding-top: 4vh; }
.looks-pic { grid-column: 1 / span 5; grid-row: 1 / span 2; position: sticky; top: 12vh; align-self: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.looks-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease-out), transform 1.4s var(--ease-out); transform: scale(1.06); filter: brightness(.88) contrast(1.05); }
.looks-pic img.on { opacity: 1; transform: none; }
.looks-pic figcaption { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 8px 14px; background: var(--bg); font-size: var(--step-small); color: var(--ink); }
.looks-list { grid-column: 7 / span 6; grid-row: 2; padding: 40px 0 16vh; }
.look-row { display: block; padding: 14px 0; color: var(--muted); transition: color .3s; }
.look-row .name { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font: 500 var(--step-lead)/1.2 var(--display); }
.look-row .name small { font: 400 var(--step-small) var(--text); }
.look-row .desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.look-row .desc > span { overflow: hidden; max-width: 40ch; font-size: var(--step-body); color: var(--ink); }
.look-row.active { color: var(--ink); }
.look-row.active .name small { color: var(--accent-text); }
.look-row.active .desc { grid-template-rows: 1fr; }
.look-row.active .desc > span { padding-top: 10px; }
.look-row .go { display: inline-block; margin-top: 10px; color: var(--accent-text); font-size: var(--step-small); }
.looks-more { margin-top: 32px; max-width: 100%; white-space: normal; }

/* prompts index: big names, fixed preview */
.index { max-width: var(--max); margin: var(--gap-section) auto 0; padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
.index-names { grid-column: 1 / span 8; }
.index h2 { font-size: var(--step-lead); color: var(--muted); margin-bottom: 40px; font-family: var(--text); font-weight: 400; letter-spacing: .01em; }
.index-name { display: flex; align-items: baseline; gap: 20px; padding: 8px 0; color: var(--muted); transition: color .3s; }
.index-name .t { font: 500 var(--step-head)/1.02 var(--display); letter-spacing: -.03em; transition: transform .5s var(--ease-out); }
.index-name small { font-size: var(--step-small); white-space: nowrap; }
.index-name.active, .index-name:focus-visible { color: var(--accent-text); }
.index-name.active .t { transform: translateX(12px); }
.index-preview { grid-column: 9 / span 4; position: sticky; top: 15vh; align-self: start; }
.index-card { background: var(--surface); padding: 24px; border-radius: 6px; min-height: 340px; display: flex; flex-direction: column; }
.index-card .k { font-size: var(--step-small); color: var(--muted); }
.index-card .ttl { font: 500 var(--step-lead)/1.1 var(--display); margin: 0 0 12px; }
.index-card .k { margin-bottom: 16px; }
.index-card p:not(.ttl) { margin: 0 0 20px; padding: 16px; background: var(--bg); border-radius: 4px; font-size: var(--step-small); line-height: 1.6; flex: 1; }
.index-card .btn { border-radius: 4px; }
.index-more { margin-top: 28px; display: inline-block; }

/* pricing: the price, very large */
.price-block { max-width: var(--max); margin: var(--gap-section) auto 0; padding: 0 var(--margin); min-height: 80svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: center; }
.price-intro { grid-column: 1 / span 4; align-self: start; padding-top: 10svh; }
.price-intro h2 { font-size: var(--step-head); margin-bottom: 20px; }
.price-intro p { margin: 0; max-width: 34ch; }
.price-fig { grid-column: 6 / span 7; position: relative; }
.figure { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; display: inline-flex; align-items: baseline; font: 500 var(--step-display)/.85 var(--display); letter-spacing: -.05em; }
.figure .cur { font-size: .5em; align-self: flex-start; margin-left: .06em; }
.per { display: block; margin-top: 14px; font-size: var(--step-lead); color: var(--muted); }
.price-obj { position: absolute; top: -34%; right: calc(-1 * clamp(110px, 12vw, 190px)); width: clamp(96px, 9.5vw, 150px); aspect-ratio: 4 / 5.1; border-radius: 50% / 46%; overflow: hidden; outline: 1.5px solid var(--accent-text); outline-offset: 6px; transform: rotate(6deg); }
.price-obj img { width: 100%; height: 100%; object-fit: cover; }
.price-lines { margin: 36px 0 32px; padding: 0; list-style: none; font-size: var(--step-lead); line-height: 1.5; }

/* faq */
.faq { max-width: var(--max); margin: var(--gap-section) auto 0; padding: 0 var(--margin); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; margin-bottom: 80px; align-items: baseline; }
.qa h2, .qa h3 { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.15; }
.qa h2 { color: var(--muted); }
.qa p { grid-column: 8 / span 5; margin: 0; max-width: 40ch; line-height: 1.55; }

/* ---------------------------------------------------------------- footer (inverted, revealed) */
.footer {
  position: sticky; bottom: 0; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--surface); color: var(--ink); padding: 40px var(--margin) 20px;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: var(--step-body); }
.footer-cols p { margin: 0 0 6px; font-weight: 500; }
.footer-cols a, .footer-cols span { display: block; color: var(--muted); line-height: 1.7; transition: color .2s; }
.footer-cols a:hover { color: var(--accent-text); }
.footer-cols .credit { font-size: var(--step-small); line-height: 1.5; margin-bottom: 6px; }
.footer-word { width: 100%; height: auto; display: block; margin-top: 4svh; }
.footer-word text { font-family: var(--display); font-weight: 600; letter-spacing: -.05em; fill: url(#wordgrad); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); color: var(--muted); margin-top: 12px; }

/* ---------------------------------------------------------------- overlays */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(10, 10, 16, .95); }
.lightbox-inner { position: relative; max-width: min(92vw, 720px); }
.lightbox img, .lightbox video { max-height: 78vh; margin: 0 auto; }
.lightbox .icon-btn { position: absolute; top: -52px; right: 0; }
.lightbox-cap { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.toasts { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 70; display: grid; gap: 6px; width: min(420px, calc(100vw - 32px)); }
.toast { padding: 14px 18px; background: var(--surface-2); color: var(--ink); border-left: 3px solid var(--accent); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); /* taste-skill-ignore: всплывающее уведомление */ animation: toast .4s var(--ease-out); }
.toast.err { background: var(--danger); }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }

/* entrances */
.js [data-rise] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-rise].is-in > * { opacity: 1; transform: none; }
.js [data-rise].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-rise].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-rise].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-rise].is-in > *:nth-child(n+5) { transition-delay: .3s; }
.page { animation: pagein .6s var(--ease-out); }
@keyframes pagein { from { opacity: 0; } }

.tabbar { display: none; }
.tabbar.tucked { transform: translateY(110%); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .create { grid-template-columns: minmax(0, 1fr); }
  .create-side { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
  .packs { grid-template-columns: 1fr; max-width: 520px; }
  .calls-inner { grid-column: 1 / -1; }
  .resp-final { width: auto; max-width: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-right { order: -1; min-height: 58svh; }
  .hero h1 { max-width: none; }
  .looks { display: flex; flex-direction: column; }
  .looks-h { order: -1; }
  .index { display: block; }
  .looks-pic { position: sticky; top: 60px; aspect-ratio: auto; z-index: 2; height: 38svh; width: 100%; }
  .looks-pic img { object-position: 50% 22%; }
  .looks-list { padding-top: 24px; }
  .looks-h { margin-bottom: 24px; padding-top: 0; }
}
@media (max-width: 760px) {
  .looks-pic { position: relative; top: auto; height: auto; aspect-ratio: 4 / 3; }
  .index-preview { position: static; margin-top: 32px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .hide-mobile { display: none; }
  .topbar { height: 60px; }
  .page-head { grid-template-columns: 1fr; gap: 14px; padding-top: 40px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-right { order: -1; min-height: 58svh; padding: 28px 20px; }
  .hero-left { padding: 32px 20px 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .mirror-glass { width: 66vw; }
  .io { grid-template-columns: 1fr; min-height: 0; }
  .io-in, .io-out { min-height: 62svh; padding: 64px 20px 96px; }
  .io-heading { font-size: 11vw; bottom: 24px; }
  .io-heading { position: static; display: block; margin-top: 32px; }
  .io-out .io-heading { margin: 0 0 24px; }
  .io-out { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 40px; }
  .io-in, .io-out { padding-bottom: 40px; }
  .prints { min-height: 100svh; place-items: start center; padding-top: 9svh; }
  .prints h2 { font-size: 22vw; }
  .print-a { width: 48vw; left: 5vw; top: 40svh; }
  .print-b { width: 46vw; left: 46vw; right: auto; top: 47svh; }
  .prints-note { bottom: 20px; }
  .print-c { display: none; }
  .prints-note { font-size: 15px; right: 20px; }
  .resp, .resp-final { margin-left: 0; }
  .resp-final { grid-template-columns: 1fr; }
  .resp-final img { max-width: 260px; }
  .looks-pic img { object-position: 50% 22%; }
  .looks-list { padding-top: 24px; }
  .index { display: block; }
  .index-name { flex-direction: column; gap: 2px; color: var(--ink); }
  .index-name .t { font-size: 9.5vw; }
  .index-preview { position: static; margin-top: 32px; }
  .price-block { display: block; min-height: 0; }
  .price-intro { padding-top: 0; margin-bottom: 40px; }
  .figure { font-size: 34vw; }
  .price-obj { width: 24vw; top: -30%; right: -18vw; }
  .price-lines { font-size: 17px; }
  .price-block .btn { width: 100%; }
  .qa { display: block; margin-bottom: 56px; }
  .qa h2, .qa h3 { font-size: 24px; }
  .qa p { margin-top: 12px; font-size: 17px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; font-size: 15px; }
  .grid, .grid-lg, .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed { columns: 2; }
  .result { grid-template-columns: 1fr; }
  .result-media { max-width: 320px; }
  .create-side { grid-template-columns: minmax(0, 1fr); }
  .drop { max-width: 340px; margin: 0 auto; width: 100%; }
  .post-repeat { opacity: 1; }
  .tabbar {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); transition: transform .5s var(--ease-out);
  }
  .tabbar a { text-align: center; font-size: 13px; color: var(--muted); }
  .tabbar a.active { color: var(--ink); }
  .tabbar .tab-create { margin: 0 4px; padding: 10px 0; background: var(--accent); color: var(--accent-ink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .line > span, .js .hero-fade, .js [data-rise] > * { transform: none !important; opacity: 1 !important; }
}

/* ================================================================ MIORA home (v2) */
.logo { color: var(--accent-text); letter-spacing: -.02em; }
.logo::first-letter { color: inherit; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: фирменный градиент */
.home2 { overflow-x: clip; }

/* 1. zoom hero */
.zoom { position: relative; height: 320vh; }
.zoom-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.zoom-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 40% at 50% 45%, rgba(201, 161, 79, .28), transparent 70%), radial-gradient(30% 30% at 70% 70%, rgba(236, 217, 166, .08), transparent 70%); } /* taste-skill-ignore: подсветка */
.z-tile, .z-center { position: absolute; left: 50%; top: 50%; margin: 0; overflow: hidden; }
.z-tile { will-change: transform; }
.z-tile { width: clamp(110px, 13vw, 210px); aspect-ratio: 4 / 5; border-radius: 14px; transform: translate(calc(-50% + var(--x) * 1vw), calc(-50% + var(--y) * 1vh)); }
.z-tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(.9); }
.z-center { width: clamp(120px, 12vw, 200px); aspect-ratio: 4 / 5; border-radius: var(--r, 18px); transform: translate(-50%, calc(-50% + 20vh)); z-index: 1; }
.z-center img { width: 100%; height: 100%; object-fit: cover; }
.z-cap { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; text-align: center; top: 40%; padding: 3% 5%; border-radius: 3px; background: rgba(15, 14, 18, .72); opacity: 0; font: 600 8px/1.1 var(--display); letter-spacing: -.02em; }
.z-cap b, .z-cap span { display: block; }
.z-cap span { color: var(--accent-text); }
.z-text { position: absolute; left: 50%; top: 13vh; translate: -50% 0; z-index: 2; width: min(980px, 92vw); text-align: center; }
.z-tag { margin: 0 0 18px; font-size: var(--step-small); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.z-text h1 { font-size: clamp(44px, 8.4vw, 136px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.z-sub { margin: 22px auto 28px; max-width: 46ch; color: var(--muted); font-size: var(--step-lead); line-height: 1.4; }
.z-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.z-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-size: var(--step-small); color: var(--muted); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(6px); } }
.btn, .z-tile, .z-center, .plan, .pcard, .tcard, .st-card, .hp-vis { border-radius: 14px; }
.btn-sm { border-radius: 10px; }
.btn-ghost { background: var(--surface-2); }

/* 2. statement */
.say { max-width: 1200px; margin: 0 auto; padding: 18vh var(--margin) 22vh; }
.say-text { margin: 0; font: 500 clamp(28px, 4.2vw, 64px)/1.15 var(--display); letter-spacing: -.035em; }
.say-text span { color: #4d4a66; transition: color .35s; }
.say-text span.on { color: var(--ink); }

/* 3. marquee */
.looks2 { padding-bottom: 12vh; }
.looks2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.looks2-head h2 { font-size: var(--step-head); max-width: 16ch; }
.mq { overflow: hidden; padding: 6px 0; }
.mq-track { display: flex; gap: 12px; width: max-content; animation: mq 70s linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; animation-duration: 80s; }
.mq-card { width: clamp(170px, 17vw, 250px); flex: none; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* 4. horizontal pin */
.hpin { position: relative; height: 520vh; }
.hpin-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hpin-track { display: flex; gap: 24px; padding: 0 var(--margin); width: max-content; will-change: transform; }
.hp { width: min(82vw, 1080px); height: min(72svh, 640px); flex: none; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 44px; background: var(--surface); border-radius: 24px; position: relative; }
.hp-intro { width: min(56vw, 720px); grid-template-columns: 1fr; align-content: center; background: none; padding-left: 0; }
.hp-intro h2 { font-size: clamp(44px, 6vw, 96px); font-weight: 600; letter-spacing: -.05em; }
.hp-intro p { color: var(--muted); font-size: var(--step-lead); max-width: 26ch; margin: 18px 0 0; }
.hp-arrow { font-size: 48px; color: var(--accent-text); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(12px); } }
.hp-n { position: absolute; top: 28px; right: 36px; font: 600 var(--step-head)/1 var(--display); color: var(--surface-2); letter-spacing: -.04em; }
.hp-copy h3 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.045em; margin-bottom: 16px; }
.hp-copy p { margin: 0; color: var(--muted); font-size: var(--step-lead); line-height: 1.45; max-width: 30ch; }
.hp-vis { height: 100%; max-height: 520px; background: var(--bg); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.up-card { display: flex; gap: 18px; align-items: center; background: var(--surface-2); padding: 16px; border-radius: 16px; width: min(380px, 100%); }
.up-card img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; }
.up-card b { display: block; font-weight: 500; }
.up-card span { display: block; color: var(--muted); font-size: var(--step-small); }
.up-card .ok { color: var(--cyan); margin-top: 8px; }
.hp-order { display: flex; flex-direction: column; gap: 14px; align-items: stretch; place-items: initial; justify-content: center; }
.hp-order .io-text { min-height: 0; width: 100%; font-size: var(--step-body); padding: 14px; background: var(--surface); border-radius: 12px; }
.hp-order .order { width: 100%; padding: 16px; background: var(--surface); }
.res-card { position: relative; height: 100%; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 14px; overflow: hidden; }
.res-card img, .res-card video { width: 100%; height: 100%; object-fit: cover; }
.res-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: rgba(15, 14, 18, .82); border-radius: 12px; font-size: var(--step-small); }
.pill-live { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.feed-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; width: 100%; }
.feed-mini figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; }
.feed-mini img { width: 100%; height: 100%; object-fit: cover; }
.feed-mini figcaption svg { width: 11px; height: 11px; fill: currentColor; margin-right: 4px; vertical-align: -1px; }
.feed-mini figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 14, 18, .8); font-size: var(--step-small); color: var(--accent-text); }
.hpin-bar { position: absolute; left: var(--margin); right: var(--margin); bottom: 6svh; height: 2px; background: var(--surface-2); }
.hpin-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* 5. stacked cards */
.stack { padding-top: 16vh; padding-bottom: 6vh; }
.stack-h { font-size: var(--step-head); font-weight: 600; letter-spacing: -.045em; margin-bottom: 40px; }
.st-card { position: sticky; top: calc(14vh + var(--i) * 26px); min-height: 66svh; margin-bottom: 8vh; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px; background: var(--surface); border-radius: 26px; transform-origin: top center; will-change: transform; }
.st-card:nth-of-type(even) { background: var(--surface-2); }
.st-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.st-n { color: var(--accent-text); font-size: var(--step-small); margin-bottom: 18px; }
.st-copy h3 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.045em; margin-bottom: 14px; }
.st-copy p { margin: 0 0 26px; color: var(--muted); font-size: var(--step-lead); line-height: 1.45; max-width: 28ch; }
.st-media { border-radius: 18px; overflow: hidden; }
.st-media img, .st-media video { width: 100%; height: 100%; object-fit: cover; }

/* 6. prompt library preview */
.lib { padding-top: 16vh; }
.lib-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 24px; }
.lib-head h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.045em; }
.lib-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.chip .cnt { margin-left: 4px; opacity: .6; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lib-grid .pcard { margin: 0; }
.lib-more { margin-top: 28px; }
.pcard { border-radius: 18px; }
.pcard p.ptext { border-radius: 10px; }
.seg { border-radius: 12px; padding: 4px; }
.seg button { border-radius: 9px; }
.chip { border-radius: 999px; }

/* 7. plans */
.plans { padding-top: 18vh; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-save { margin-top: 6px; font-size: .85rem; color: var(--cyan, #ecd9a6); }
.plan { padding: 26px 22px; background: var(--surface); border-radius: 22px; display: flex; flex-direction: column; gap: 20px; transition: transform .4s var(--ease-out); }
.plan:hover { transform: translateY(-6px); }
.plan-best { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; } /* taste-skill-ignore: рамка-градиент */
.plan-name { margin: 0; color: var(--muted); }
.plan-name span { margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); }
.plan-price { margin: 10px 0 4px; font: 600 var(--step-head)/1 var(--display); letter-spacing: -.045em; }
.plan-tokens { margin: 0; color: var(--muted); font-size: var(--step-small); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan ul li::before { content: "✓"; color: var(--cyan); margin-right: 10px; }
.plan .btn { margin-top: auto; }

/* 8. faq accordion */
.faq2 { padding-top: 18vh; max-width: 1000px; }
.faq2 h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.045em; margin-bottom: 28px; }
.qa2 { background: var(--surface); border-radius: 16px; margin-bottom: 8px; transition: background .3s; }
.qa2[open] { background: var(--surface-2); }
.qa2 summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -.02em; }
.qa2 summary::-webkit-details-marker { display: none; }
.qa2 summary span { color: var(--accent-text); transition: transform .3s var(--ease-out); }
.qa2[open] summary span { transform: rotate(45deg); }
.qa2 p { margin: 0; padding: 0 24px 24px; color: var(--muted); max-width: 64ch; }

/* 9. final */
.final { text-align: center; padding: 22vh var(--margin) 6vh; }
.final h2 { font-size: clamp(44px, 8vw, 128px); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.final p { color: var(--muted); font-size: var(--step-lead); margin: 22px 0 30px; }
.js .final .line > span { transform: translateY(105%); transition: transform .95s var(--ease-out); }
.js .final.is-in .line > span { transform: none; }
.js .final.is-in .line:nth-child(2) > span { transition-delay: .11s; }
.js .zoom .hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out) .5s, transform .8s var(--ease-out) .5s; }
.js .zoom.is-in .hero-fade { opacity: 1; transform: none; }
.js .zoom.is-in .line > span { transform: none; }
.js .zoom.is-in .line:nth-child(2) > span { transition-delay: .11s; }

/* reduced motion: всё статично и читается */
.home2.static .zoom { height: auto; }
.home2.static .zoom-stage { position: relative; height: auto; min-height: 100svh; }
.home2.static .hpin { height: auto; }
.home2.static .hpin-stage { position: relative; height: auto; overflow-x: auto; padding: 8vh 0; }
.home2.static .st-card { position: relative; top: 0; }
.home2.static .say-text span { color: var(--ink); }

@media (max-width: 960px) {
  .hp { grid-template-columns: 1fr; height: auto; min-height: 74svh; width: 86vw; padding: 26px; gap: 22px; align-content: start; }
  .hp-intro { width: 80vw; min-height: 0; }
  .hp-vis { height: 40svh; }
  .st-card { grid-template-columns: 1fr; padding: 24px; min-height: 0; }
  .st-media { aspect-ratio: 4 / 3; }
  .lib-head { grid-template-columns: 1fr; gap: 12px; }
  .lib-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 760px) {
  .z-tile { width: 22vw; }
  .z-center { width: 30vw; }
  .z-text { top: 11vh; }
  .z-text h1 { font-size: 13vw; }
  .z-sub { font-size: 17px; }
  .lib-grid { grid-template-columns: 1fr; }
  .looks2-head { flex-direction: column; align-items: flex-start; }
  .hp-n { top: 18px; right: 22px; }
  .say { padding: 12vh 20px 14vh; }
}

/* ================================================================ auth state & cabinet layout */
body:not(.authed) .balance, body:not(.authed) #btn-cabinet { display: none; }
body.authed #btn-login { display: none; }
.sidebar { display: none; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

body.in-app .topbar, body.in-app .footer { display: none; }
body.in-app .sidebar {
  display: flex; flex-direction: column; gap: 18px; position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 35;
  padding: 20px 16px; background: #0c0c13; overflow-y: auto;
}
body.in-app main { margin-left: 252px; min-height: 100vh; padding-bottom: 80px; }
body.in-app .page-head { padding-top: 40px; }
.sb-top { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.sb-balance { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: var(--step-small); transition: background .2s; }
.sb-balance:hover { background: var(--surface-2); }
.sb-create { gap: 8px; }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: background .2s, color .2s; }
.sb-nav a:hover { color: var(--ink); background: var(--surface); }
.sb-nav a.active { color: var(--ink); background: var(--surface-2); }
.sb-nav a.active .i { color: var(--accent-text); }
.sb-nav-2 { padding-top: 14px; border-top: 1px solid var(--surface); }
.sb-foot { margin: auto 0 0; padding: 0 8px; font-size: 13px; color: var(--muted); }
.sb-foot a:hover { color: var(--ink); }

/* dashboard */
.cab { padding-top: 32px; }
.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.cab-head .page-title { font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.04em; }
.cab-head p { margin: 0 0 6px; }
.cab-balance { display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; background: var(--surface); min-width: 220px; transition: background .2s; }
.cab-balance:hover { background: var(--surface-2); }
.cab-balance b { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cab-filter { margin-bottom: 22px; }
.tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.tool { position: relative; display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); transition: background .2s, transform .3s var(--ease-out); }
.tool:hover { background: var(--surface-2); transform: translateY(-3px); }
.tool-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(201, 161, 79, .16); color: var(--accent-text); }
.tool-ic .i { width: 22px; height: 22px; }
.tool-t { font-weight: 500; font-size: 15px; line-height: 1.25; }
.tool-cost { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.cab-sec { margin-top: 44px; }
.cab-sec .section-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-family: var(--display); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hs-card { width: 210px; flex: none; scroll-snap-align: start; }
.lib-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* profile */
.prof { max-width: 860px; }
.prof-sec { background: var(--surface); border-radius: 18px; padding: 24px; margin-bottom: 12px; }
.prof-sec h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 16px; }
.prof-h3 { font-size: 16px; font-weight: 600; margin: 26px 0 10px; }
.prof-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 0; }
.prof-inline { display: flex; gap: 6px; }
.prof-inline .input { width: 220px; min-height: 42px; padding: 8px 12px; border-radius: 10px; }
.prof-big { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; }
.tx { display: grid; gap: 2px; max-height: 360px; overflow-y: auto; }
.tx-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.tx-row small { display: block; color: var(--muted); font-size: 13px; }
.tx-row b { font-weight: 600; }
.tx-row b.plus { color: var(--cyan); }

/* login modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 14, .78); backdrop-filter: blur(8px); animation: toast .3s var(--ease-out); }
.modal-card { position: relative; width: min(420px, 100%); padding: 32px 28px 26px; border-radius: 24px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(201, 161, 79, .45); } /* taste-skill-ignore: диалог */
.modal-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; color: var(--muted); transition: background .2s, color .2s; }
.modal-x:hover { background: var(--surface-2); color: var(--ink); }
.modal-brand { margin: 0 0 18px; color: var(--accent-text); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.modal-card h2 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; }
.modal-card > p.muted { margin: 0 0 20px; font-size: 15px; }
.modal-card form { display: grid; gap: 12px; }
.modal-card .input { border-radius: 12px; font-size: 17px; }
.code-input { text-align: center; letter-spacing: .5em; font-size: 26px !important; font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.consent input { margin-top: 2px; accent-color: var(--accent); }
.consent a { color: var(--accent-text); }
.login-row { display: flex; justify-content: space-between; gap: 10px; }
.link-btn { color: var(--accent-text); font-size: 14px; }
.link-btn[disabled] { color: var(--muted); cursor: default; }
.dev-code { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(236, 217, 166, .1); color: var(--cyan); font-size: 13px; }
.modal-gift { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--cyan); }

@media (max-width: 1200px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lib-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  body.in-app .sidebar { display: none; }
  body.in-app main { margin-left: 0; }
  body.in-app .topbar { display: flex; }
  body.in-app .topbar .nav { display: none; }
}
@media (max-width: 760px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-grid-4 { grid-template-columns: 1fr; }
  .prof-inline .input { width: 100%; }
  .hs-card { width: 44vw; }
}
#btn-profile { display: none; }
body.in-app #btn-cabinet { display: none; }
body.in-app #btn-profile { display: inline-flex; }

/* ================================================================ MIYRON — AI Photo / AI Video generator */
.gen { padding: 24px var(--margin) 40px; }
.gen-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.gen-kind button { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 10px 18px; }
.gen-kind .i { width: 18px; height: 18px; }
.gen-bal { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.gen-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.gen-panel { position: sticky; top: 16px; background: var(--surface); border-radius: 18px; padding: 6px 16px; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; }
.gp-sec { padding: 14px 0; border-bottom: 1px solid var(--surface-2); }
.gp-sec:last-child { border-bottom: 0; }
.gp-label { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.gp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 9px; background: var(--bg); color: var(--muted); font-size: 13px; transition: background .2s, color .2s; }
.opt:hover { color: var(--ink); }
.opt.on { background: rgba(201, 161, 79, .22); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.ar-ic { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.gp-face { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--bg); cursor: pointer; transition: background .2s; }
.gp-face:hover, .gp-face.drag { background: var(--surface-2); }
.gp-face img, .gp-face-add { width: 52px; height: 64px; border-radius: 9px; object-fit: cover; flex: none; }
.gp-face-add { display: grid; place-items: center; background: rgba(201, 161, 79, .18); color: var(--accent-text); font-size: 24px; }
.gp-face b, .gp-model b, .gp-toggle b { display: block; font-weight: 500; font-size: 14px; }
.gp-face small, .gp-model small, .gp-toggle small { display: block; color: var(--muted); font-size: 12.5px; }
.gp-model { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.gp-model-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); flex: none; } /* taste-skill-ignore */
.gp-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-2); position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .25s var(--ease-out); }
.switch.on { background: var(--accent); }
.switch.on i { transform: translateX(18px); }

.gen-main { min-width: 0; }
.gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-items: start; }
.gen-item { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); }
.gen-item img, .gen-item video { width: 100%; height: 100%; object-fit: cover; }
.gen-state { position: absolute; left: 12px; bottom: 12px; font-size: 13px; color: var(--accent-text); }
.gen-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s; }
.gen-item:hover .gen-actions, .gen-item:focus-within .gen-actions { opacity: 1; }
.gen-actions .icon-btn { border-radius: 10px; background: rgba(15, 14, 18, .78); font-size: 16px; }
.gen-actions .i { width: 16px; height: 16px; }
.gen-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; border-radius: 20px; background: var(--surface); }
.gen-empty-art { display: grid; grid-template-columns: repeat(4, 64px); gap: 6px; margin-bottom: 10px; }
.gen-empty-art img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; filter: saturate(.85); }
.gen-empty b { font-size: 18px; font-weight: 600; }
.gen-empty span { color: var(--muted); max-width: 40ch; }
.gen-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--surface-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(226, 196, 126, .14); } /* taste-skill-ignore: плавающая панель */
.gen-bar textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 0; background: none; border: 0; resize: none; outline: none; color: var(--ink); line-height: 1.45; }
.gen-bar .btn { flex: none; height: 46px; min-height: 46px; padding: 0 20px; }
.go-cost { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; }
.gen-bar-tpl:empty { display: none; }
.chip-tpl { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; margin-bottom: 6px; border-radius: 10px; background: var(--bg); font-size: 13px; white-space: nowrap; }
.chip-tpl img { width: 28px; height: 34px; object-fit: cover; border-radius: 6px; }
.chip-tpl button { color: var(--muted); font-size: 18px; padding: 0 4px; }
.gen-quick { margin-top: 36px; }
.gen-quick .section-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* studio card on dashboard */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin-bottom: 26px; }
.studio-card { padding: 20px; border-radius: 20px; background: var(--surface); }
.studio-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: rgba(201, 161, 79, .16); box-shadow: inset 0 0 0 1px rgba(226, 196, 126, .45); color: var(--accent-text); font-size: 14px; font-weight: 500; }
.plan-badge .i { width: 16px; height: 16px; }
.studio-l { margin: 0; font-size: 14px; }
.studio-num { margin: 6px 0 14px; font-size: 22px; color: var(--muted); }
.studio-num b { font-size: 40px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); }
.studio-num span { display: block; font-size: 13px; }
.studio-bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.studio-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.recent-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.recent { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(226, 196, 126, .25); }
.recent img, .recent video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.recent:hover img { transform: scale(1.06); }
.recent span { position: absolute; left: 6px; bottom: 5px; font-size: 11px; color: var(--ink); background: rgba(15, 14, 18, .7); padding: 1px 6px; border-radius: 6px; }

/* AI Templates gallery */
.tplg { padding-top: 32px; }
.tplg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.tplg-head .page-title { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; }
.tplg-head p { margin: 6px 0 0; }
.tplg-head .search { flex: 0 1 360px; }
.tplg-head .search .input { border-radius: 12px; }
.tplg-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; min-width: 0; }
.tplg-cats { margin: 0; flex: 1; min-width: 0; }
.pgrid, .lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lib-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard2 { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); transition: transform .35s var(--ease-out), background .2s; }
.pcard2:hover { transform: translateY(-4px); background: var(--surface-2); }
.pc-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pcard2:hover .pc-media img { transform: scale(1.05); }
.pc-kind { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.pc-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.pc-body h3 { font: 600 16px/1.25 var(--display); letter-spacing: -.02em; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.pc-cat { padding: 3px 10px; border-radius: 999px; background: rgba(201, 161, 79, .18); color: var(--accent-text); font-size: 12px; }
.pc-actions { display: flex; gap: 6px; margin-top: auto; }
.pc-actions .btn-sm { min-height: 36px; padding: 0 12px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pager button, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 14px; }
.pager span { background: none; }
.pager button:hover:not([disabled]) { color: var(--ink); background: var(--surface-2); }
.pager button.on { background: var(--accent); color: var(--accent-ink); }
.pager button[disabled] { opacity: .35; cursor: default; }
.pd { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); width: min(900px, 94vw); max-height: 88vh; border-radius: 22px; overflow: hidden; background: var(--surface); }
.pd > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.pd-body { padding: 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pd-body h2 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.pd-text { margin: 0; padding: 14px; border-radius: 12px; background: var(--bg); font-size: 14px; line-height: 1.6; }
.pd-tags { margin: 0; font-size: 13px; }
.pd-note { margin: 0; font-size: 12.5px; }
.pd-x { position: absolute; top: 12px; right: 12px; z-index: 2; border-radius: 50%; }

@media (max-width: 1100px) { .gen-body { grid-template-columns: 260px minmax(0, 1fr); } .recent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .gen-body { grid-template-columns: 1fr; }
  .gen-panel { position: static; max-height: none; }
  .studio { grid-template-columns: 1fr; }
  .tplg-bar { flex-direction: column; align-items: stretch; }
  .pd { grid-template-columns: 1fr; }
  .pd > img { max-height: 34vh; min-height: 0; }
}
@media (max-width: 760px) {
  .gen { padding: 16px 16px 90px; }
  .gen-grid { grid-template-columns: 1fr 1fr; }
  .gen-bar { bottom: 80px; }
  .gen-bar .btn { padding: 0 14px; }
  .pgrid, .lib-grid, .lib-grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pc-actions { flex-direction: column; }
  .recent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pc-trend { background: var(--cyan); color: #0f0e12; }
.pcard2 .pc-media img { background: var(--surface-2); }

.pd-body .pc-actions { flex-wrap: wrap; }

/* ---------- Промпт из фото */
.ds { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.ds-drop { min-height: 360px; border: 1.5px dashed var(--line, rgba(255,255,255,.18)); border-radius: 22px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; cursor: pointer;
  transition: border-color .3s, background .3s; overflow: hidden; }
.ds-drop:hover, .ds-drop.drag { border-color: var(--accent); background: var(--surface-2); }
.ds-drop.has { padding: 0; border-style: solid; }
.ds-drop img { width: 100%; height: 100%; max-height: 560px; object-fit: contain; display: block; }
.ds-ico .i { width: 40px; height: 40px; color: var(--accent-text); }
.ds-out { background: var(--surface); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; }
.ds-how ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.ds-ru { font-size: var(--step-lead, 1.15rem); line-height: 1.5; margin: 0; }
.ds-l { font-size: .85rem; color: var(--muted); }
.ds-out textarea { width: 100%; resize: vertical; background: var(--bg, #0f0e12); color: inherit; border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 14px; padding: 14px; font: inherit; font-size: .95rem; line-height: 1.5; }
.ds-out textarea:focus { outline: none; border-color: var(--accent); }
.ds-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-wait { display: grid; gap: 14px; }
.ds-wait .shimmer { height: 180px; border-radius: 14px; }
@media (max-width: 860px) { .ds { grid-template-columns: 1fr; } .ds-drop, .ds-out { min-height: 240px; } }

/* ---------- Фотосеты */
.ps-sec { margin-bottom: 40px; }
.ps-h { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.ps-card { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.ps-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 18px; }
.ps-collage { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 9 / 10;
  border-radius: 18px; overflow: hidden; background: var(--surface); }
.ps-collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.ps-collage img:first-child { grid-row: 1 / 3; }
.ps-card:hover .ps-collage img { transform: scale(1.04); }
.ps-count { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 99px; font-size: 13px;
  background: rgba(15, 14, 18, .72); backdrop-filter: blur(8px); color: #fff; }
.ps-title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.psd { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); width: min(1040px, 94vw); max-height: 90vh;
  border-radius: 22px; overflow: hidden; background: var(--surface); }
.psd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; overflow-y: auto; background: var(--bg); }
.psd-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.psd-body { padding: 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.psd-body h2 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.psd-body p { margin: 0; }
.psd-selfie { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--bg); }
.psd-selfie > img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.psd-selfie > div { display: flex; flex-direction: column; gap: 2px; }
.psd-selfie label { cursor: pointer; }
.psd-up { display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.psd-up .i { width: 32px; height: 32px; color: var(--accent-text); }
@media (max-width: 860px) {
  .psd { grid-template-columns: 1fr; overflow-y: auto; }
  .psd-gallery { overflow: visible; }
  .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- Редактор фото */
.ed { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.ed-stage { display: flex; flex-direction: column; gap: 12px; }
.ed-pair { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ed-pair.two, .ed-pair:has(.ed-wait) { grid-template-columns: 1fr 1fr; }
.ed-pair figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--surface);
  background-image: linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.04) 75%),
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.04) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.ed-pair img { width: 100%; max-height: 640px; object-fit: contain; display: block; }
.ed-pair figcaption { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px;
  background: rgba(15, 14, 18, .72); backdrop-filter: blur(8px); color: #fff; }
.ed-after figcaption { background: var(--accent); color: var(--accent-ink); }
.ed-wait { min-height: 320px; display: grid; }
.ed-wait .shimmer { height: 100%; min-height: 320px; }
.ed-wait figcaption { top: auto; bottom: 12px; }
.ed-under { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-under label { cursor: pointer; }
.ed-panel { background: var(--surface); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.ed-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-tool { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg);
  border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.ed-tool:hover { background: var(--surface-2); }
.ed-tool.active { border-color: var(--accent); }
.ed-tool .i { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.ed-tool span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-tool b { font-weight: 500; font-size: 14px; line-height: 1.25; }
.ed-tool small { color: var(--muted); font-size: 12px; }
.ed-tool:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ed-desc { margin: 0; font-size: 14px; }
.ed-opts { margin: 0; flex-wrap: wrap; }
.ed-panel textarea { width: 100%; resize: vertical; background: var(--bg); color: inherit; border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 14px; padding: 12px; font: inherit; font-size: 14px; }
.ed-panel textarea:focus { outline: none; border-color: var(--accent); }
@media (max-width: 900px) { .ed { grid-template-columns: 1fr; } .ed-panel { position: static; } }

/* ---------- AI-инструменты */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tl-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: var(--surface);
  border: 1.5px solid transparent; transition: border-color .2s, transform .3s var(--ease-out); color: inherit; text-decoration: none; }
.tl-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.tl-card .i { width: 26px; height: 26px; color: var(--accent-text); }
.tl-card b { font-weight: 500; font-size: 17px; }
.tl-card span { font-size: 14px; line-height: 1.45; }
.tl-result { background: var(--bg); border-radius: 14px; padding: 18px; font-size: 15px; line-height: 1.6; max-height: 60vh; overflow-y: auto; }
.tl-result p { margin: 0 0 10px; } .tl-result p:last-child { margin: 0; }
.tl-result ul { margin: 0 0 10px; padding-left: 20px; } .tl-result li { margin: 3px 0; }
.tl-result code { font-size: .92em; background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.fr { display: grid; gap: 14px; max-width: 900px; }
.fr-player { display: grid; gap: 12px; }
.fr-player video { width: 100%; max-height: 70vh; border-radius: 18px; background: #000; }

/* ---------- ИИ-тренды */
.tr-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tr-search { flex: 0 1 280px; background: var(--surface); color: inherit; border: 1px solid transparent; border-radius: 99px; padding: 10px 16px; font: inherit; font-size: 14px; }
.tr-search:focus { outline: none; border-color: var(--accent); }
.tr-quick { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 34px; }
.tr-quick::-webkit-scrollbar { display: none; }
.tr-q { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.25; color: inherit; text-decoration: none; }
.tr-q-ic { position: relative; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid rgba(255,255,255,.06); transition: transform .3s var(--ease-out), border-color .2s; }
.tr-q:hover .tr-q-ic { transform: translateY(-3px); border-color: var(--accent); }
.tr-q-ic > .i { width: 28px; height: 28px; color: var(--accent-text); }
.tr-q-n { position: absolute; top: -8px; right: -10px; padding: 2px 7px; border-radius: 99px; background: var(--bg); border: 1px solid rgba(255,255,255,.1); font-size: 11.5px; white-space: nowrap; }
.tr-sec { margin-bottom: 38px; }
.tr-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tr-h h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.tr-h .link-more { margin-left: auto; }
.tr-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.tr-row::-webkit-scrollbar { display: none; }
.tr-row > * { scroll-snap-align: start; }
.tr-row-sm { grid-auto-columns: minmax(170px, 200px); }
.tr-v { all: unset; cursor: pointer; position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--surface); display: block; }
.tr-v img, .tr-v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.tr-v:hover img { transform: scale(1.04); }
.tr-v::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(8, 8, 14, .85)); pointer-events: none; }
.tr-v-title { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-weight: 600; font-size: 17px; line-height: 1.25; color: #fff; }
.tr-v:focus-visible, .tr-t:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.tr-badges { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; gap: 6px; }
.tr-cost, .tr-new, .tr-cnt { display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 99px; font-size: 12.5px; color: #fff;
  background: rgba(15, 14, 18, .7); backdrop-filter: blur(8px); }
.tr-cost .i { width: 12px; height: 12px; color: var(--cyan); }
.tr-new { background: var(--accent); color: var(--accent-ink); }
.tr-t-img .tr-cnt { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.tr-t { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.tr-t-img { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface); display: block; }
.tr-t-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.tr-t:hover img { transform: scale(1.04); }
.tr-t-title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; align-items: start; }
.tr-grid .tr-v { aspect-ratio: 4 / 5; }
.tr-pd { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.tr-pd-media { background: #000; display: grid; }
.tr-pd-media img, .tr-pd-media video { width: 100%; height: 100%; max-height: 88vh; object-fit: cover; }
@media (max-width: 760px) {
  .tr-row { grid-auto-columns: 62%; }
  .tr-row-sm { grid-auto-columns: 44%; }
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tr-search { flex: 1 1 100%; }
}

/* ---------- логотип: золотая монограмма + MIYRON (Cinzel) */
:root { --gold: linear-gradient(135deg, #f6e3b0 0%, #d4ae62 45%, #9c7432 100%); --gold-solid: #d4ae62; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-solid); text-decoration: none; letter-spacing: 0; }
.logo::first-letter { color: inherit; }
.logo .mono { width: 32px; height: 32px; flex: none; }
.logo-word { font: 600 21px/1 "Cinzel", "Trajan Pro", Georgia, serif; letter-spacing: .14em; padding-left: .14em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-top .logo .mono { width: 28px; height: 28px; }
.sb-top .logo-word { font-size: 18px; }
.modal-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 22px; }
.modal-brand .mono { width: 46px; height: 46px; }
.modal-brand .logo-word { font-size: 26px; }
.brand-rule { position: relative; width: 140px; height: 1px; background: linear-gradient(90deg, transparent, #d4ae62, transparent); }
.brand-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; background: #e6c77f; transform: translate(-50%, -50%) rotate(45deg); }

.psd-slots { display: grid; gap: 8px; }
.psd-slot { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--bg); cursor: pointer; }
.psd-slot > img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.psd-slot > span { display: flex; flex-direction: column; gap: 2px; }
.psd-slot.psd-up .i { width: 30px; height: 30px; color: var(--accent-text); flex: none; }

/* ================================================================ мобильная версия: статично и с меню */
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--ink); }
.mnav { position: fixed; inset: 0; z-index: 90; background: rgba(8, 7, 10, .6); backdrop-filter: blur(6px); }
.mnav-panel { position: absolute; inset: 0 0 0 auto; width: min(380px, 100%); background: var(--bg); border-left: 1px solid rgba(226, 196, 126, .14);
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.mnav-top .icon-btn { width: 42px; height: 42px; font-size: 26px; border-radius: 12px; background: var(--surface); }
.mnav-bal { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 15px; }
.mnav-bal .link-more { margin-left: auto; }
.mnav-links { display: flex; flex-direction: column; }
.mnav-h { margin: 14px 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mnav-links a { padding: 11px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.mnav-links a.active { color: var(--accent-text); }
.menu-open, .menu-open body { overflow: hidden; }
body.authed .mnav-login { display: none; }
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
}
@media (max-width: 960px) {
  /* панели не уезжают при прокрутке */
  .topbar, .tabbar { transform: none !important; transition: none; }
  body.in-app .topbar .burger { display: inline-flex; }
  #btn-cabinet, #btn-profile { display: none !important; }

  /* первый экран: заголовок, кнопки и сетка фото — без эффектов по прокрутке */
  .home2.static .zoom { height: auto; }
  .home2.static .zoom-stage { position: relative; height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column;
    padding: 28px 16px 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .home2.static .z-text { position: static; translate: none; transform: none !important; opacity: 1 !important; width: auto; grid-column: 1 / -1; order: -2; margin-bottom: 18px; }
  .home2.static .z-text .line > span, .home2.static .hero-fade { transform: none !important; opacity: 1 !important; transition: none !important; }
  .home2.static .z-text h1 { font-size: clamp(42px, 12.5vw, 64px); }
  .home2.static .z-cta { display: flex; flex-direction: column; gap: 10px; }
  .home2.static .z-cta .btn { width: 100%; justify-content: center; }
  .home2.static .z-tile, .home2.static .z-center { position: relative; left: auto; top: auto; width: auto; transform: none !important; opacity: 1 !important; border-radius: 14px; }
  .home2.static .z-tile img { filter: none; }
  .home2.static .z-center { grid-column: span 2; grid-row: span 2; order: -1; }
  .home2.static .z-cap, .home2.static .z-hint { display: none; }
  .home2.static .zoom-stage::before { inset: -10% 0 auto; height: 60%; }

  /* «Как это работает» — шаги друг под другом */
  .home2.static .hpin { height: auto; }
  .home2.static .hpin-stage { position: relative; height: auto; overflow: visible; padding: 48px 0 0; }
  .home2.static .hpin-track { flex-direction: column; width: auto; transform: none !important; padding: 0 16px; gap: 12px; }
  .home2.static .hp { width: auto; min-height: 0; height: auto; }
  .home2.static .hp-intro { width: auto; }
  .home2.static .hp-arrow, .home2.static .hpin-bar { display: none; }
  .home2.static .hp-vis { height: auto; min-height: 240px; }

  /* «Что можно создать» — обычные карточки */
  .home2.static .st-card { position: relative; top: 0; transform: none !important; filter: none !important; margin-bottom: 12px; }
  .home2.static .say-text span { color: var(--ink); }
  .home2.static .say { padding: 64px 20px; }
}
@media (max-width: 960px) {
  /* без «проявления» страниц и блоков: на телефоне контент сразу на месте */
  .page { animation: none; }
  .js [data-rise] > *, .js .line > span, .js .hero-fade { transform: none !important; opacity: 1 !important; transition: none !important; }
}

@media (max-width: 760px) {
  /* компактные карточки промптов: на экране помещается больше идей */
  .pcard2 .pc-media { aspect-ratio: 4 / 5; }
  .pc-body { padding: 10px; gap: 6px; }
  .pc-body h3 { font-size: 14.5px; }
  .pc-meta { font-size: 12px; }
  .pc-meta .muted { display: none; }
  .pc-actions { flex-direction: row; }
  .pc-actions .btn-sm { min-height: 34px; flex: 1; font-size: 13px; padding: 0 8px; }
  .pcard2 .pc-actions [data-copy] { display: none; }
}
@media (max-width: 960px) {
  /* немного жизни без эффектов прокрутки: один раз при открытии */
  .home2.static .z-tile, .home2.static .z-center { animation: tilein .9s var(--ease-out) both; }
  .home2.static .z-tile:nth-child(2) { animation-delay: .08s; } .home2.static .z-tile:nth-child(3) { animation-delay: .16s; }
  .home2.static .z-tile:nth-child(4) { animation-delay: .24s; } .home2.static .z-tile:nth-child(5) { animation-delay: .32s; }
  .home2.static .z-tile:nth-child(6) { animation-delay: .4s; } .home2.static .z-tile:nth-child(7) { animation-delay: .48s; }
  .home2.static .z-tile:nth-child(8) { animation-delay: .56s; }
  .home2.static .z-center img { animation: kenburns 14s ease-in-out infinite alternate; }
  .home2.static .z-center { box-shadow: 0 0 0 1px rgba(226, 196, 126, .35), 0 24px 60px -24px rgba(201, 161, 79, .45); }
}
@keyframes tilein { from { opacity: 0; transform: scale(.94); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .home2.static .z-tile, .home2.static .z-center, .home2.static .z-center img { animation: none; } }
