/* =========================================================
   aioblik — дизайн-система
   Тёмная редакционная эстетика: тёплый чёрный, костяной белый,
   один акцент (киноварь). Без градиентов-свечений.
   ========================================================= */

:root {
  --bg: #0c0c0b;
  --bg-2: #111110;
  --card: #171715;
  --card-2: #1f1e1c;
  --card-3: #282724;
  --line: #2a2926;
  --line-2: #3a3935;
  --text: #f1ede6;
  --muted: #9a958c;
  --dim: #625e58;
  --accent: #8d6bff;
  --accent-ink: #100726;
  --ok: #a9d66f;

  --serif: "Prata", "Times New Roman", serif;
  --sans: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --header-h: 68px;
  --tabbar-h: 66px;
  --container: 1320px;
  --pad: 32px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
@media (min-width: 761px) { .only-mobile { display: none !important; } }

/* ---------- типографика ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.h2 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.h1 em, .h2 em { font-style: normal; color: inherit; }

/* ---------- иконки ---------- */
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: #0c0c0b; }
.btn-primary:hover { background: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #a088ff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--card-2); color: var(--text); }
.btn-dark:hover { background: var(--card-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--card-2); color: var(--text);
  transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--card-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.glass { background: rgba(12,12,11,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--text); }

/* ---------- чипы / бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px; font-weight: 500; color: var(--muted);
  white-space: nowrap;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--text); color: #0c0c0b; border-color: var(--text); }
.chip .count { font-size: 12px; opacity: .55; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(12,12,11,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
.badge.hot { background: var(--accent); color: var(--accent-ink); }
.badge.new { background: var(--text); color: #0c0c0b; }

.credits {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 6px;
  border-radius: 999px; background: var(--card-2);
  font-weight: 600; font-size: 14px;
}
.credits .coin {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.credits .coin .i { width: 15px; height: 15px; stroke-width: 2; }

/* =========================================================
   ШАПКА (desktop) / APP BAR (mobile)
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(12,12,11,.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(141,107,255,.35)); flex: none; transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-word { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.logo-word b { font-weight: 800; background: linear-gradient(135deg, #d2bfff, #8d6bff 55%, #6a3df0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; }
.nav a {
  height: 38px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--card-2); }
.header-search {
  flex: 1; max-width: 360px; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--dim);
}
.header-search input { background: none; border: 0; outline: 0; flex: 1; font-size: 14px; color: var(--text); }
.header-search input::placeholder { color: var(--dim); }
.header-search kbd { font: 500 11px var(--sans); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--dim); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--card-2); border: 1px solid var(--line-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ava-letter {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #c9b2ff, #6b4dff); border: 0;
  color: #100726; font-weight: 700; font-size: 17px;
}
.ava-letter.big { width: 88px; height: 88px; font-size: 36px; margin: 0 auto; }
.cover-formats.many { grid-template-columns: repeat(4, 1fr); }
.seg-wrap { flex-wrap: wrap; justify-content: flex-end; max-width: 460px; }
.seg-wrap button { padding: 0 11px; }
@media (max-width: 760px) {
  .opt-row.row-stack { flex-direction: column; align-items: stretch; gap: 10px; }
  .opt-row.row-stack .seg-wrap { max-width: none; justify-content: flex-start; }
}
.opt-row.hidden { display: none; }
.seg-q button { line-height: 1.15; padding-top: 7px; padding-bottom: 7px; }
.seg-q button small { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }

.toast.err { background: #ffd9d9; }
.result .acts a { display: grid; place-items: center; }
.load-more { display: flex; justify-content: center; margin-top: 24px; }

/* =========================================================
   ТАББАР (мобильный)
   ========================================================= */
.tabbar { display: none; }

/* =========================================================
   КАРТОЧКИ ОБРАЗОВ
   ========================================================= */
.look-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--card); isolation: isolate; }
.look-card .ph { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.look-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.look-card:hover .ph img { transform: scale(1.04); }
.look-card .ph::after {
  content: ""; position: absolute; inset: 45% 0 0 0;
  background: linear-gradient(to top, rgba(8,8,7,.85), rgba(8,8,7,0));
  pointer-events: none;
}
.look-card .top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.look-card .fav {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12,12,11,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); margin-left: auto;
  transition: transform .15s, background .2s;
}
.look-card .fav:active { transform: scale(.88); }
.look-card .fav.on { background: var(--accent); color: var(--accent-ink); }
.look-card .fav.on .i { fill: currentColor; }
.look-card .meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.look-card .meta .t { font-weight: 600; font-size: 15px; line-height: 1.25; }
.look-card .meta .s { font-size: 12px; color: rgba(241,237,230,.6); margin-top: 3px; display: flex; gap: 10px; }
.look-card .use {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--text); color: #0c0c0b; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(6px); transition: all .25s var(--ease);
}
.look-card:hover .use { opacity: 1; transform: none; }
.look-card:hover .meta { right: 120px; }

.bw img { filter: grayscale(1) contrast(1.08); }

/* сетка-мозаика */
.masonry { display: flex; gap: 16px; align-items: flex-start; }
.masonry .m-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.masonry .look-card.r45 .ph { aspect-ratio: 4/5; }
.masonry .look-card.r23 .ph { aspect-ratio: 2/3; }

/* горизонтальная лента */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* =========================================================
   СЕКЦИИ
   ========================================================= */
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { max-width: 420px; color: var(--muted); }
.divider { height: 1px; background: var(--line); }

/* ---------- ГЛАВНАЯ: HERO ---------- */
.hero { padding: 56px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: end; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-copy .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-copy .lead { font-size: 18px; color: var(--muted); max-width: 460px; margin: 28px 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero-stats .l { font-size: 13px; color: var(--muted); margin-top: 8px; }

.hero-visual { position: relative; height: 640px; }
.hv-main { position: absolute; right: 0; top: 0; width: 68%; height: 100%; border-radius: var(--r-lg); overflow: hidden; }
.hv-main img { width: 100%; height: 100%; object-fit: cover; }
.hv-main .tag { position: absolute; left: 16px; bottom: 16px; }
.hv-side { position: absolute; left: 0; bottom: 60px; width: 40%; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.hv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; display: flex; gap: 12px; align-items: center;
}
.hv-card .thumb { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex: none; }
.hv-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hv-card .t { font-size: 13px; font-weight: 600; }
.hv-card .s { font-size: 12px; color: var(--muted); }
.hv-arrow { align-self: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.hv-progress { height: 3px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.hv-progress span { display: block; height: 100%; width: 72%; background: var(--text); animation: grow 3s var(--ease) infinite; }
@keyframes grow { from { width: 8%; } to { width: 100%; } }
.hv-label {
  position: absolute; top: 24px; left: 6%;
  font-size: 15px; color: var(--muted); font-weight: 500;
  writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em;
}

/* бегущая строка */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-weight: 500; font-size: 24px; white-space: nowrap; display: flex; align-items: center; gap: 48px; color: var(--muted); }
.ticker-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* как это работает */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 32px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 32px; }
.step:last-child { border-right: 0; }
.step .num { font-weight: 600; font-size: 40px; line-height: 1; color: var(--dim); }
.step h4 { font-size: 20px; margin: 28px 0 10px; font-weight: 600; }
.step p { color: var(--muted); max-width: 320px; }
.step .visual { margin-top: 28px; height: 200px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; position: relative; }

.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; height: 100%; }
.sv-grid div { border-radius: 8px; overflow: hidden; }
.sv-grid div.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.sv-grid img { width: 100%; height: 100%; object-fit: cover; }
.sv-upload { position: absolute; inset: 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.sv-upload .face { width: 92px; height: 120px; border-radius: 10px; overflow: hidden; }
.sv-upload .face img { width: 100%; height: 100%; object-fit: cover; }
.sv-upload .checks { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.sv-upload .checks span { display: flex; align-items: center; gap: 6px; }
.sv-upload .checks .i { color: var(--ok); }
.sv-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; height: 100%; }
.sv-result div { border-radius: 8px; overflow: hidden; }
.sv-result img { width: 100%; height: 100%; object-fit: cover; }

/* категории — сетка */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; background: var(--card); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: saturate(.85); }
.cat-tile:hover img { transform: scale(1.05); filter: saturate(1); }
.cat-tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(8,8,7,.9), transparent); }
.cat-tile .lbl { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; }
.cat-tile .lbl b { font-weight: 600; font-size: 18px; line-height: 1.15; }
.cat-tile .lbl span { font-size: 12px; color: rgba(241,237,230,.6); }
.cats .cat-tile.wide { grid-column: span 2; aspect-ratio: auto; }

/* до / после */
.compare-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.compare { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--card); user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--text); transform: translateX(-1px); pointer-events: none; }
.compare .handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: #0c0c0b;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare .lb { position: absolute; top: 16px; z-index: 2; }
.compare .lb.l { left: 16px; } .compare .lb.r { right: 16px; }
.compare-list { display: grid; gap: 0; margin-top: 36px; }
.compare-list div { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.compare-list b { font-weight: 600; color: var(--dim); font-size: 20px; min-width: 32px; }
.compare-list p { color: var(--muted); }
.compare-list strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

/* пакеты кредитов */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pack { text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; background: var(--bg-2); transition: border-color .2s; }
.pack:hover { border-color: var(--line-2, #3a3833); }
.pack.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(141,107,255,.12), var(--bg-2) 60%); }
.pack-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; }
.pack-cr { font-weight: 600; font-size: 15px; }
.pack-price { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 24px 0 6px; }
.pack-per { color: var(--muted); font-size: 13px; }
.pack ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; }
.pack li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.pack li .i { color: var(--accent); margin-top: 1px; }
.cost-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cost-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; font-size: 15px; }
.cost-table > div + div { border-top: 1px solid var(--line); }
.cost-table span { color: var(--muted); }
.cost-table b { font-weight: 600; white-space: nowrap; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--text); color: #0c0c0b; border-color: var(--text); }
.faq details p { color: var(--muted); padding: 0 56px 24px 0; max-width: 640px; }

/* финальный CTA */
.cta-band { border-radius: var(--r-lg); background: var(--accent); color: var(--accent-ink); padding: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.cta-band .h2 em { color: #fff; }
.cta-band p { font-size: 17px; margin-top: 18px; opacity: .8; max-width: 440px; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--text); }
.cta-faces { display: flex; justify-content: flex-end; }
.cta-faces div { width: 120px; height: 160px; border-radius: 14px; overflow: hidden; border: 3px solid var(--accent); margin-left: -36px; transform: rotate(var(--r, 0deg)); }
.cta-faces img { width: 100%; height: 100%; object-fit: cover; }

/* футер */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer .bottom { display: flex; justify-content: space-between; margin-top: 64px; font-size: 13px; color: var(--dim); }
.store-btns { display: flex; gap: 10px; margin-top: 24px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 12px; line-height: 1.15; }
.store-btn b { display: block; font-size: 14px; }

/* =========================================================
   КАТАЛОГ
   ========================================================= */
.page-head { padding-block: 48px 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head .h2 { margin-top: 12px; }
.catalog-bar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(12,12,11,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.catalog-bar .container { display: flex; gap: 16px; align-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); flex: none; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button.active { background: var(--card-3); color: var(--text); }
.select {
  height: 40px; padding: 0 36px 0 14px; border-radius: 999px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239a958c' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line); appearance: none; -webkit-appearance: none; font-size: 14px; outline: 0;
}
.catalog-body { padding-block: 28px; }
.results-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .h3 { color: var(--text); margin-bottom: 8px; }

.cat-hero { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 8px; }
.cat-pill { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.cat-pill:hover, .cat-pill.active { border-color: var(--text); }
.cat-pill .im { width: 44px; height: 54px; border-radius: 9px; overflow: hidden; flex: none; }
.cat-pill .im img { width: 100%; height: 100%; object-fit: cover; }
.cat-pill b { font-size: 14px; font-weight: 600; display: block; }
.cat-pill span { font-size: 12px; color: var(--muted); }

/* =========================================================
   ГЕНЕРАЦИЯ (страница образа)
   ========================================================= */
.gen { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 32px 0 64px; align-items: start; }
.gen-visual { position: sticky; top: calc(var(--header-h) + 24px); }
.gen-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--card); aspect-ratio: 4/5; }
.gen-stage > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.gen-stage .overlay-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 3; }
.gen-stage .ref-label { position: absolute; left: 16px; bottom: 16px; z-index: 3; }
.gen-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gen-thumbs button { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s; }
.gen-thumbs button.active { border-color: var(--text); opacity: 1; }
.gen-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* состояние генерации */
.gen-progress { position: absolute; inset: 0; z-index: 4; display: none; background: rgba(12,12,11,.55); }
.gen-stage.loading .gen-progress { display: block; }
/* Пока идёт генерация, под прогрессом не должно остаться читаемых подписей */
.gen-stage.loading > *:not(.gen-progress):not(.overlay-top):not(.ref-label) { filter: blur(14px) grayscale(.6); }
.gen-stage .ref-label, .gen-stage .lb { transition: opacity .2s; }
.gen-stage.loading .ref-label, .gen-stage.loading .lb { opacity: 0; }
.gen-progress .scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(141,107,255,.28), transparent); animation: scan 1.6s linear infinite; }
.gen-progress .scan::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent); }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.gen-progress .info { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.gen-progress .pct { font-weight: 700; font-size: 56px; line-height: 1; }
.gen-progress .stage-txt { color: var(--muted); margin-top: 6px; font-size: 14px; }
.gen-progress .bar { height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.gen-progress .bar span { display: block; height: 100%; width: 0; background: var(--text); transition: width .2s linear; }

.gen-panel .crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.gen-panel .crumbs a:hover { color: var(--text); }
.gen-panel .title-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.gen-panel .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.gen-panel .tags span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.gen-panel .stat-line { display: flex; gap: 20px; color: var(--muted); font-size: 13px; margin-top: 12px; }
.gen-panel .stat-line span { display: inline-flex; align-items: center; gap: 6px; }

.gen-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.gen-block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.gen-block-head h4 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.gen-block-head h4 .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-size: 12px; color: var(--muted); }
.gen-block.done h4 .n { background: var(--ok); color: #0c0c0b; border-color: var(--ok); }
.gen-block-head .hint { font-size: 13px; color: var(--muted); }

.dropzone {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 20px; border-radius: var(--r);
  border: 1.5px dashed var(--line-2); background: var(--bg-2);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--text); background: var(--card); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 64px; height: 64px; border-radius: 14px; background: var(--card-2); display: grid; place-items: center; flex: none; }
.dropzone b { display: block; font-weight: 600; }
.dropzone span { font-size: 13px; color: var(--muted); }
.dropzone.has-file { border-style: solid; border-color: var(--line); }

.faces { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.faces::-webkit-scrollbar { display: none; }
.face-opt { position: relative; width: 64px; flex: none; text-align: center; font-size: 11px; color: var(--muted); }
.face-opt .im { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; background: var(--card-2); display: grid; place-items: center; }
.face-opt .im img { width: 100%; height: 100%; object-fit: cover; }
.face-opt.active .im { border-color: var(--accent); }
.face-opt.active::after { content: "✓"; position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.face-opt div + div { margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face-opt.add .im { border: 1.5px dashed var(--line-2); color: var(--muted); }

.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tip { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); padding: 10px; border-radius: 12px; background: var(--bg-2); }
.tip .im { width: 36px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; position: relative; }
.tip .im img { width: 100%; height: 100%; object-fit: cover; }
.tip.bad .im img { filter: blur(2px) brightness(.5); }
.tip .mk { font-weight: 800; font-size: 13px; }
.tip.good .mk { color: var(--ok); }
.tip.bad .mk { color: var(--accent); }

.opt-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.opt-row + .opt-row, .opt-block + .opt-row { border-top: 1px solid var(--line); }
.opt-row label { font-size: 14px; }
.opt-row label small { display: block; color: var(--muted); font-size: 12px; }
.opt-row.shoot { flex-wrap: wrap; }
.opt-row.shoot > label:first-child { flex: 1; cursor: pointer; }
.shoot-qty { display: none; flex-basis: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 13px; color: var(--muted); }
.shoot.on .shoot-qty { display: flex; animation: fadeUp .3s var(--ease); }
.opt-block { padding: 12px 0; border-top: 1px solid var(--line); }
.opt-block > label { font-size: 14px; display: block; margin-bottom: 12px; }
.opt-block > label small { display: block; color: var(--muted); font-size: 12px; }
.framing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.frame-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.2; text-align: center; transition: border-color .2s, color .2s; }
.frame-opt:hover { border-color: var(--line-2); color: var(--text); }
.frame-opt .fr { width: 36px; height: 48px; border-radius: 6px; border: 1.5px solid currentColor; overflow: hidden; display: grid; place-items: center; opacity: .8; }
.frame-opt .fr svg { width: 100%; height: 100%; fill: currentColor; opacity: .55; }
.frame-opt .fr svg.auto { width: 20px; height: 20px; opacity: 1; }
.frame-opt.active { border-color: var(--accent); color: var(--text); background: rgba(141,107,255,.1); }
.frame-opt.active .fr { color: var(--accent); opacity: 1; }

.range { -webkit-appearance: none; appearance: none; width: 180px; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--text) var(--v, 70%), var(--line-2) var(--v, 70%)); outline: 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--text); cursor: pointer; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; }

.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--card-3); transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease), background .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--accent-ink); }

.gen-cta { margin-top: 28px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 20px; }
.gen-cta .cost { flex: 1; }
.gen-cta .cost b { font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.gen-cta .cost > span { display: block; font-size: 12px; color: var(--muted); }

.results { display: none; margin-top: 28px; }
.results.show { display: block; animation: fadeUp .5s var(--ease); }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; background: var(--card); }
.result img { width: 100%; height: 100%; object-fit: cover; }
.result .acts { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.result .acts .icon-btn { width: 36px; height: 36px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* мобильная нижняя панель действия */
.action-bar { display: none; }

/* =========================================================
   РЕЖИМЫ: PRO и РЕСТАВРАЦИЯ
   ========================================================= */
.modes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.mode-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; padding: 28px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); isolation: isolate;
  transition: border-color .25s;
}
.mode-card:hover { border-color: var(--line-2); }
.mode-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.mode-card:hover > img { transform: scale(1.04); }
.mode-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,10,9,.96) 30%, rgba(10,10,9,.2) 75%, rgba(10,10,9,.35)); }
.mode-card .num { font-weight: 600; position: absolute; top: 24px; left: 28px; font-size: 15px; color: var(--muted); }
.mode-card .badge { position: absolute; top: 22px; right: 22px; }
.mode-card h3 { font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -.015em; }
.mode-card p { color: var(--muted); margin: 10px 0 22px; max-width: 360px; font-size: 14px; }
.mode-card .prompt-demo {
  font-size: 13px; color: var(--text); background: rgba(23,23,21,.85); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mode-card .prompt-demo::after { content: "|"; color: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mode-card .split { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr 1fr; }
.mode-card .split img { width: 100%; height: 100%; object-fit: cover; }
.mode-card .split img:first-child { filter: grayscale(1) sepia(.55) contrast(.8) brightness(.9) blur(1.2px); }
.mode-card .split::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--text); }

.mode-switch { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 24px; }
.mode-switch button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; }
.mode-switch button.active { background: var(--text); color: #0c0c0b; }

.prompt-box { border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s; }
.prompt-box:focus-within { border-color: var(--text); }
.prompt-box textarea {
  display: block; width: 100%; min-height: 132px; resize: vertical; padding: 16px 16px 8px;
  background: none; border: 0; outline: 0; font-size: 15px; line-height: 1.5;
}
.prompt-box textarea::placeholder { color: var(--dim); }
.prompt-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px 16px; font-size: 12px; color: var(--dim); gap: 10px; }
.prompt-foot .icon-btn { width: 34px; height: 34px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.suggest button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px dashed var(--line-2); transition: all .2s; }
.suggest button:hover { color: var(--text); border-style: solid; }

.canvas-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px;
  background-color: var(--bg-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
}
.canvas-empty .h3 { margin: 16px 0 8px; }
.canvas-empty p { color: var(--muted); max-width: 300px; font-size: 14px; margin: 0 auto; }
.canvas-empty .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--card-2); display: grid; place-items: center; margin: 0 auto; color: var(--muted); }
.pro-page .gen-stage.has-image .canvas-empty { display: none; }
.pro-page .gen-stage:not(.has-image) > img { opacity: 0; }

.inspo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.inspo-card { text-align: left; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.inspo-card:hover { border-color: var(--line-2); }
.inspo-card .im { aspect-ratio: 1; overflow: hidden; }
.inspo-card .im img { width: 100%; height: 100%; object-fit: cover; }
.inspo-card p { font-size: 12px; color: var(--muted); padding: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* реставрация */
.restore-compare { aspect-ratio: 4/5; border-radius: var(--r-lg); }
.restore-compare .before { filter: grayscale(1) sepia(.6) contrast(.75) brightness(.92) blur(1.4px); }
.restore-compare .grain { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); opacity: .5; mix-blend-mode: multiply;
  background:
    linear-gradient(97deg, transparent 48%, rgba(255,255,255,.55) 48.3%, transparent 48.8%) 0 0 / 100% 100%,
    linear-gradient(12deg, transparent 70%, rgba(255,255,255,.4) 70.2%, transparent 70.6%) 0 0 / 100% 100%,
    radial-gradient(circle at 30% 20%, rgba(120,90,40,.35), transparent 30%),
    radial-gradient(circle at 80% 85%, rgba(90,60,20,.4), transparent 35%);
}
.restore-compare.user .after { filter: contrast(1.08) saturate(1.1); }
.restore-compare.user .before { filter: none; }
.restore-compare.user .grain { display: none; }
/* инструменты */
@property --sweep { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@keyframes sweep { 0%, 22% { --sweep: 100%; } 42%, 72% { --sweep: 0%; } 92%, 100% { --sweep: 100%; } }
@keyframes ba-after { 0% { opacity: 0; } 32% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes ba-before { 0% { opacity: 1; } 32% { opacity: 0; } 82%, 100% { opacity: 1; } }
.tools-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.tools-search { display: flex; align-items: center; gap: 10px; width: 280px; flex: none; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.tools-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 18px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; }
.tool-media { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 22px; background: var(--card-2); transition: transform .35s var(--ease), box-shadow .35s; }
a.tool-card:hover .tool-media { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(141,107,255,.45); }
.tool-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.tool-media .lb { position: absolute; top: 12px; z-index: 2; }
.tool-media .lb.l { left: 12px; } .tool-media .lb.r { right: 12px; }
.tools-empty { display: grid; justify-items: center; gap: 6px; padding: 64px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); text-align: center; font-size: 14px; }
.tools-empty b { color: var(--text); font-weight: 600; margin-top: 6px; }
.tools-empty[hidden] { display: none; }
.ba { --sweep: 100%; animation: sweep 11s ease-in-out infinite; }
.ba-lb.b { animation: ba-before 11s step-end infinite; }
.ba-lb.a { animation: ba-after 11s step-end infinite; }.ba.old .before { filter: grayscale(1) sepia(.6) contrast(.75) brightness(.92) blur(1.4px); }
.ba .after { clip-path: inset(0 0 0 var(--sweep)); }
.ba .grain { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 calc(100% - var(--sweep)) 0 0); opacity: .5; mix-blend-mode: multiply;
  background:
    linear-gradient(97deg, transparent 48%, rgba(255,255,255,.55) 48.3%, transparent 48.8%) 0 0 / 100% 100%,
    radial-gradient(circle at 30% 20%, rgba(120,90,40,.35), transparent 30%),
    radial-gradient(circle at 80% 85%, rgba(90,60,20,.4), transparent 35%);
}
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--sweep); width: 2px; transform: translateX(-1px); background: var(--text); box-shadow: 0 0 12px rgba(0,0,0,.4); }
.tool-body { padding: 0 2px; }
.tool-body h3 { font-size: 17px; font-weight: 600; line-height: 1.25; }
.tool-body p { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.tool-price { display: inline-flex; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ba, .ba-lb { animation: none; } .ba-lb.a { opacity: 0; } }

/* обложка и сторис */
.cover-stage { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a2833, #141318 70%); container-type: size; }
.gen-stage.cover-stage, .gen-stage.doc-compare, .gen-stage.restore-compare { aspect-ratio: auto; height: clamp(340px, calc(100svh - var(--header-h) - 150px), 680px); }
.cover-canvas { position: relative; width: min(84cqw, calc(80cqh * (var(--ar)))); aspect-ratio: var(--ar); overflow: hidden; border-radius: 12px; container-type: size; box-shadow: 0 18px 50px rgba(0,0,0,.55); transition: aspect-ratio .35s var(--ease), width .35s var(--ease); }
.cover-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.gen-stage.loading .cover-canvas { filter: blur(14px) grayscale(.6); }
.tool-media .after:not(img) { position: absolute; inset: 0; container-type: size; }
.cover-result { aspect-ratio: var(--ar); }
.cover-result .cover-canvas { height: 100%; width: 100%; border-radius: 0; box-shadow: none; }

.cv { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8cqmin; color: #fff; pointer-events: none; overflow-wrap: break-word; }
.cv-title, .cv-sub { position: relative; }
.cv-sub:empty { display: none; }
.cv-min { align-items: center; text-align: center; }
.cv-min .cv-title { font-size: 7.5cqmin; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; line-height: 1.25; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.cv-min .cv-sub { margin-top: 2.5cqmin; font-size: 3.4cqmin; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.cv-mag { justify-content: space-between; }
.cv-mag .cv-title { font-size: 12.5cqmin; font-weight: 800; letter-spacing: -.04em; line-height: .88; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.cv-mag .cv-sub { align-self: flex-start; font-size: 3.6cqmin; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 1.6cqmin 3cqmin; border: .4cqmin solid #fff; }
.cv-bright { justify-content: flex-end; align-items: flex-start; }
.cv-bright .cv-title { font-size: 10.5cqmin; font-weight: 800; line-height: 1.18; letter-spacing: -.02em; }
.cv-bright .cv-title { display: inline; background: #ffe14d; color: #111; padding: .6cqmin 2.4cqmin; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cv-bright .cv-sub { margin-top: 3cqmin; font-size: 4cqmin; font-weight: 700; padding: 1.4cqmin 3cqmin; background: var(--accent); border-radius: 99px; }
.cv-cozy { justify-content: flex-end; align-items: center; text-align: center; }
.cv-cozy::before { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(40,22,8,.75), transparent); }
.cv-cozy .cv-title { font-size: 10cqmin; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; color: #ffecd6; }
.cv-cozy .cv-sub { margin-top: 2.4cqmin; font-size: 3.8cqmin; color: #f3d8bb; }

.cover-styles { grid-template-columns: repeat(4, 1fr); }
.cover-styles .st { width: 44px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--card-2); font-size: 16px; line-height: 1; }
.st-min { font-weight: 500; letter-spacing: .18em; font-size: 12px !important; }
.st-mag { font-weight: 800; font-size: 20px !important; letter-spacing: -.04em; }
.st-bright { font-weight: 800; background: #ffe14d !important; color: #111; }
.st-cozy { background: linear-gradient(to top, #5a3a1c, #a7764a) !important; color: #ffecd6; }
.cover-formats { grid-template-columns: repeat(5, 1fr); }
.cover-formats .frame-opt { padding: 10px 4px; gap: 6px; }
.cover-formats .sz { height: 28px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .8; }
.cover-formats small { font-size: 10px; color: var(--dim); font-weight: 400; margin-top: -4px; }
.cover-note { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* общие элементы страниц инструментов */
.tp-art, .art { position: absolute; inset: 0; }
.tp-thumb { position: absolute; inset: 0; container-type: size; }
.framing.pick2 { grid-template-columns: repeat(2, 1fr); }
.pick2 .frame-opt { flex-direction: row; justify-content: center; padding: 14px 8px; font-size: 13px; }
.pick2 .frame-opt .dv { width: 18px; height: 18px; }
.cover-formats.six { grid-template-columns: repeat(6, 1fr); }
.st-type { font-weight: 800; background: #111 !important; color: #ffd23f; letter-spacing: -.04em; }
.st-elegant { font-weight: 400; background: #13261f !important; color: #e3c98f; letter-spacing: .08em; }
.st-playful { font-weight: 800; background: linear-gradient(135deg, #ff7ab6, #ffd23f) !important; color: #fff; transform: rotate(-4deg); }
.pick3 .st { width: 44px; height: 36px; display: grid; place-items: center; border-radius: 8px; font-size: 16px; line-height: 1; }
.lang-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-opt { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s; }
.lang-opt:hover { color: var(--text); border-color: var(--line-2); }
.lang-opt.active { border-color: var(--accent); color: var(--text); background: rgba(141,107,255,.1); }
.sub-label { display: flex; gap: 8px; align-items: baseline; margin: 16px 0 8px; font-size: 14px; font-weight: 500; }
.sub-label span { font-size: 12px; color: var(--dim); font-weight: 400; }

.req { color: var(--accent); }
.link-accent { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.fields-grid .field { margin-top: 12px; }
.fields-grid .field:not(.half) { grid-column: span 2; }
.fields-grid .field:first-child { margin-top: 0; }
.framing.pick4 { grid-template-columns: repeat(4, 1fr); }
.pick4 .frame-opt { padding: 12px 6px; }
.lgs { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #fff; }
.lgs i { display: block; width: 18px; height: 18px; }
.lgs-min i { border: 1.5px solid #1b1b1b; border-radius: 50%; }
.lgs-warm i { background: #c0623f; border-radius: 0 60% 0 60%; }
.lgs-geo i { background: #1d3a8a; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lgs-hand i { border: 2px solid #2f6b4f; border-radius: 47% 53% 42% 58% / 52% 44% 56% 48%; transform: rotate(-10deg); }
.bcs { width: 44px; height: 26px; border-radius: 4px; position: relative; overflow: hidden; }
.bcs-strict { background: #fff; box-shadow: inset 3px 0 #14213d; }
.bcs-modern { background: linear-gradient(#6b4dff 0 30%, #f4f1ec 30%); }
.bcs-creative { background: radial-gradient(circle at 100% 0, #141414 0 45%, #f5c518 46%); }
.bcs-premium { background: #141414; box-shadow: inset 0 0 0 2px #141414, inset 0 0 0 3px #c9a24b; }
.pick-sides .frame-opt { flex-direction: column; padding: 14px 8px; }
.pick-sides small { display: block; font-size: 11px; color: var(--dim); font-weight: 400; }
.sides { display: flex; gap: 4px; }
.sides i { width: 30px; height: 18px; border: 1.5px solid currentColor; border-radius: 3px; }
.sides.s2 i:last-child { background: currentColor; opacity: .5; }

/* логотип */
.logo-art { display: grid; place-items: center; background: #fff; }
.logo-art.transp { background: repeating-conic-gradient(#efefef 0 25%, #fff 0 50%) 0 0 / 6cqmin 6cqmin; }
.lg-wrap { display: flex; flex-direction: column; align-items: center; gap: 3.4cqmin; max-width: 84%; text-align: center; overflow-wrap: break-word; }
.lg-mark { position: relative; width: 30cqmin; height: 30cqmin; display: grid; place-items: center; }
.lg-mark i { position: absolute; }
.lg-mark b { position: relative; font-size: 13cqmin; line-height: 1; }
.lg-name { line-height: 1.05; }
.lg-about { font-size: 3.2cqmin; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.lg-min { color: #1b1b1b; }
.lg-min .lg-mark i:first-child { inset: 0; border: .7cqmin solid currentColor; border-radius: 50%; }
.lg-min .lg-mark b { font-weight: 300; }
.lg-min .lg-name { font-weight: 300; letter-spacing: .3em; text-transform: uppercase; margin-right: -.3em; }
.lg-warm { color: #6b3a22; }
.lg-warm .lg-mark i:first-child { inset: 2cqmin; background: #c0623f; border-radius: 0 62% 0 62%; transform: rotate(-8deg); }
.lg-warm .lg-mark i:last-of-type { width: 8cqmin; height: 8cqmin; top: -1cqmin; right: 0; border-radius: 50%; background: #e9b44c; }
.lg-warm .lg-mark b { color: #fff; font-weight: 600; }
.lg-warm .lg-name { font-weight: 600; letter-spacing: -.02em; }
.lg-geo { color: #14213d; }
.lg-geo .lg-mark i:first-child { inset: 0; background: #1d3a8a; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lg-geo .lg-mark i:last-of-type { width: 10cqmin; height: 10cqmin; right: -2cqmin; bottom: -2cqmin; background: #f5c518; transform: rotate(45deg); }
.lg-geo .lg-mark b { color: #fff; font-weight: 800; font-size: 10cqmin; margin-top: 8cqmin; }
.lg-geo .lg-name { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.lg-hand { color: #2f6b4f; }
.lg-hand .lg-mark i:first-child { inset: 1cqmin; border: 1cqmin solid currentColor; border-radius: 47% 53% 42% 58% / 52% 44% 56% 48%; transform: rotate(-10deg); }
.lg-hand .lg-mark b { font-weight: 500; font-style: italic; }
.lg-hand .lg-name { font-weight: 500; font-style: italic; text-decoration: underline wavy #e9b44c .4cqmin; text-underline-offset: 2cqmin; }

/* визитка */
.card-canvas { box-shadow: none; border-radius: 0; overflow: visible; }
.tp-thumb .card-art { justify-content: center; gap: 5%; padding: 0 9%; background: radial-gradient(circle at 50% 40%, #2a2833, #141318 75%); }
.tp-thumb .bc { flex: none; aspect-ratio: 9/5; }
.card-art { display: flex; flex-direction: column; gap: 7cqh; }
.card-art.vert.two { flex-direction: row; gap: 7cqw; }
.bc { position: relative; flex: 1; min-width: 0; min-height: 0; container-type: size; overflow: hidden; border-radius: 1.4cqmin; background: var(--c-bg); color: var(--c-ink); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.bc > * { position: relative; }
.bc-deco { position: absolute !important; }
.bc:not(.bc-back) { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; column-gap: 6cqmin; padding: 10cqmin 9cqmin 9cqmin 11cqmin; }
.bc.vert:not(.bc-back) { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 12cqmin 10cqmin; }
.bc-logo { width: 17cqmin; height: 17cqmin; border-radius: 3cqmin; background: var(--c-acc); color: var(--c-acc-ink); display: grid; place-items: center; overflow: hidden; }
.bc-logo b { font-size: 9cqmin; font-weight: 700; }
.bc-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bc-main { grid-column: 1; grid-row: 2; align-self: end; overflow-wrap: break-word; }
.bc-name { font-size: 9.5cqmin; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.bc-role { margin-top: 1.6cqmin; font-size: 5.2cqmin; opacity: .75; }
.bc-co { margin-top: 1cqmin; font-size: 5.2cqmin; font-weight: 600; }
.bc-rows { grid-column: 2; grid-row: 1 / 3; align-self: end; display: grid; gap: 1.8cqmin; font-size: 4.6cqmin; overflow-wrap: anywhere; }
.bc-rows span { display: block; font-size: 3.4cqmin; opacity: .55; text-transform: uppercase; letter-spacing: .08em; }
.bc.vert .bc-main { grid-row: 2; align-self: center; }
.bc.vert .bc-rows { grid-column: 1; grid-row: 3; }
.bc-strict .bc-deco { left: 0; top: 0; bottom: 0; width: 2.4cqmin; background: var(--c-acc); }
.bc-modern .bc-deco { left: 0; right: 0; top: 0; height: 24%; background: var(--c-acc); }
.bc-modern .bc-logo { background: var(--c-bg); color: var(--c-ink); }
.bc-creative .bc-deco { width: 80cqmin; height: 80cqmin; right: -30cqmin; top: -42cqmin; border-radius: 50%; background: var(--c-acc); }
.bc-creative .bc-logo { background: var(--c-ink); color: var(--c-bg); border-radius: 50%; }
.bc-premium .bc-deco { inset: 4cqmin; border: .35cqmin solid var(--c-acc); }
.bc-premium .bc-name { color: var(--c-acc); font-weight: 500; letter-spacing: .02em; }
.bc-premium .bc-logo { background: none; border: .4cqmin solid var(--c-acc); color: var(--c-acc); }
.bc-back { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqmin; text-align: center; padding: 8cqmin; background: var(--c-acc); color: var(--c-acc-ink); }
.bc-back .bc-deco { display: none; }
.bc-premium.bc-back { background: var(--c-bg); color: var(--c-acc); }
.bc-premium.bc-back .bc-deco { display: block; }
.bc-logo.big { width: 26cqmin; height: 26cqmin; background: var(--c-bg); color: var(--c-ink); }
.bc-premium .bc-logo.big { background: none; color: var(--c-acc); }
.bc-logo.big b { font-size: 13cqmin; }
.bc-back .bc-co { font-size: 6cqmin; margin: 0; }
.bc-back-t { font-size: 4.4cqmin; max-width: 86%; opacity: .85; line-height: 1.3; }
.bc-qr { width: 20cqmin; height: 20cqmin; padding: 1.6cqmin; background: #fff; border-radius: 1.4cqmin;
  background-image: repeating-conic-gradient(#111 0 25%, #fff 0 50%), linear-gradient(#fff, #fff); background-size: 3.4cqmin 3.4cqmin; background-clip: content-box; }

/* афиша */
.pst { overflow: hidden; display: flex; flex-direction: column; padding: 8cqmin; overflow-wrap: break-word; }
.pst-deco { position: absolute; border-radius: 50%; }
.pst-t, .pst-r { position: relative; }
.pst-r { display: flex; flex-direction: column; gap: 1.6cqmin; }
.pst-type { background: #121110; justify-content: space-between; }
.pst-type .pst-deco { width: 70cqmin; height: 70cqmin; right: -22cqmin; top: 26%; background: #ff5a1f; }
.pst-type .pst-deco.b { width: 26cqmin; height: 26cqmin; left: -8cqmin; bottom: 18%; top: auto; right: auto; background: #ffd23f; }
.pst-type .pst-t { font-size: 15cqmin; font-weight: 800; line-height: .9; letter-spacing: -.05em; text-transform: uppercase; color: #ffd23f; }
.pst-type .pst-r { align-items: flex-start; }
.pst-type .pst-r span { background: #fff; color: #121110; font-weight: 700; font-size: 4.4cqmin; padding: 1cqmin 2.6cqmin; }
.pst-elegant { background: #13261f; color: #e3c98f; align-items: center; justify-content: center; text-align: center; gap: 5cqmin; }
.pst-elegant::before { content: ""; position: absolute; inset: 4.5cqmin; border: .35cqmin solid rgba(227,201,143,.7); outline: .35cqmin solid rgba(227,201,143,.35); outline-offset: -2.2cqmin; }
.pst-elegant .pst-deco { width: 14cqmin; height: 14cqmin; top: 12%; border: .35cqmin solid #e3c98f; }
.pst-elegant .pst-deco.b { display: none; }
.pst-elegant .pst-t { font-size: 10cqmin; font-weight: 400; letter-spacing: .02em; line-height: 1.1; }
.pst-elegant .pst-r { align-items: center; font-size: 3.6cqmin; letter-spacing: .2em; text-transform: uppercase; color: #f3e6c8; }
.pst-playful { background: linear-gradient(160deg, #ff7ab6, #ffb86b 60%, #ffd23f); justify-content: center; gap: 6cqmin; }
.pst-playful .pst-deco { width: 40cqmin; height: 40cqmin; top: -12cqmin; left: -12cqmin; background: #6b4dff; opacity: .85; }
.pst-playful .pst-deco.b { width: 30cqmin; height: 30cqmin; bottom: -8cqmin; right: -6cqmin; top: auto; left: auto; background: #35d0ba; }
.pst-playful .pst-t { font-size: 13cqmin; font-weight: 800; line-height: .95; color: #fff; transform: rotate(-5deg); text-shadow: .8cqmin .8cqmin 0 #2b1650; }
.pst-playful .pst-r { align-items: flex-start; transform: rotate(-2deg); }
.pst-playful .pst-r span { background: #fff; color: #2b1650; border-radius: 99px; font-weight: 700; font-size: 4.2cqmin; padding: 1.2cqmin 3.4cqmin; }

/* идея интерфейса */
.ui-art { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #f7e3dd, #e9dcf3 60%, #dfe7f5); }
.ui-phone { position: relative; height: 88%; aspect-ratio: 9/19; max-width: 88%; border-radius: 6cqmin; background: #111; padding: 1.4cqmin; box-shadow: 0 4cqmin 8cqmin rgba(60,30,80,.3); }
.ui-notch { position: absolute; top: 2.4cqmin; left: 50%; transform: translateX(-50%); width: 22%; height: 2.4cqmin; border-radius: 9px; background: #111; z-index: 2; }
.ui-laptop { width: 88%; max-height: 88%; aspect-ratio: 16/10; border-radius: 2.4cqmin; background: #fff; overflow: hidden; box-shadow: 0 4cqmin 8cqmin rgba(60,30,80,.3); display: flex; flex-direction: column; }
.ui-bar { display: flex; gap: 1cqmin; padding: 1.6cqmin 2cqmin; background: #eee9e4; }
.ui-bar i { width: 1.6cqmin; height: 1.6cqmin; border-radius: 50%; background: #d4cbc3; }
.ui-screen { flex: 1; height: 100%; border-radius: 4.8cqmin; background: #fffaf6; color: #2a1d17; padding: 7cqmin 3.6cqmin 3.6cqmin; display: flex; flex-direction: column; gap: 2.6cqmin; overflow: hidden; }
.ui-laptop .ui-screen { border-radius: 0; padding: 3cqmin 4cqmin; display: grid; grid-template-columns: 1fr 1.3fr; grid-template-rows: auto auto 1fr; gap: 2cqmin 3cqmin; }
.ui-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqmin; }
.ui-top b { font-size: 4cqmin; font-weight: 700; line-height: 1.1; }
.ui-ava { width: 5cqmin; height: 5cqmin; flex: none; border-radius: 50%; background: linear-gradient(135deg, #f2a28a, #c76b8f); }
.ui-hero { border-radius: 3cqmin; padding: 3cqmin; min-height: 14cqmin; display: flex; align-items: flex-end; background: linear-gradient(135deg, #f7b9a6, #d97a96); color: #fff; font-size: 3.2cqmin; font-weight: 600; line-height: 1.2; }
.ui-list { display: flex; flex-direction: column; gap: 1.8cqmin; }
.ui-item { display: flex; gap: 2.2cqmin; align-items: center; background: #fff; border-radius: 2.4cqmin; padding: 1.6cqmin; box-shadow: 0 .4cqmin 1.6cqmin rgba(80,40,30,.08); }
.ui-item b { display: block; font-size: 2.9cqmin; font-weight: 600; }
.ui-item span { font-size: 2.6cqmin; color: #b0566e; font-weight: 600; }
.ui-pic { width: 9cqmin; height: 9cqmin; flex: none; border-radius: 1.8cqmin; }
.ui-pic.p0 { background: radial-gradient(circle at 35% 35%, #ffd1dc, #e86a8e); }
.ui-pic.p1 { background: radial-gradient(circle at 35% 35%, #fff1c9, #f2a03d); }
.ui-pic.p2 { background: radial-gradient(circle at 35% 35%, #e3f4d8, #6cab6a); }
.ui-btn { margin-top: auto; text-align: center; padding: 2.4cqmin; border-radius: 99px; background: #2a1d17; color: #fff; font-size: 3cqmin; font-weight: 600; }
.ui-laptop .ui-top { grid-column: span 2; }
.ui-laptop .ui-hero { grid-row: span 2; }
.ui-laptop .ui-btn { grid-column: 2; margin-top: 0; padding: 1.6cqmin; align-self: start; }
.tool-media .lb.lb-bottom { top: auto; bottom: 12px; }
.ui-laptop .ui-list { grid-column: 2; grid-row: 2; }

/* приглашение */
.inv { overflow: hidden; display: grid; place-items: center; text-align: center; padding: 7cqmin; }
.inv-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3cqmin; max-width: 100%; overflow-wrap: break-word; }
.inv-k { font-size: 3.2cqmin; letter-spacing: .24em; text-transform: uppercase; }
.inv-t { font-size: 10cqmin; line-height: 1.05; }
.inv-r { display: flex; flex-direction: column; gap: 1.2cqmin; font-size: 4cqmin; }
.inv-ph { width: 26cqmin; height: 26cqmin; border-radius: 50%; overflow: hidden; border: .8cqmin solid currentColor; }
.inv-ph img { width: 100%; height: 100%; object-fit: cover; }
.inv-deco { position: absolute; }
.inv-elegant::before { content: ""; position: absolute; inset: 4cqmin; border: .3cqmin solid currentColor; opacity: .55; }
.inv-elegant .inv-t { font-weight: 400; letter-spacing: -.01em; }
.inv-elegant.inv-birthday { background: #f7f0e6; color: #9a7442; }
.inv-elegant.inv-wedding { background: #f4f6f1; color: #5f7559; }
.inv-elegant.inv-party { background: #15121c; color: #e0c48c; }
.inv-elegant .inv-deco { width: 30cqmin; height: 30cqmin; border-radius: 50%; bottom: -10cqmin; left: -10cqmin; background: radial-gradient(circle, rgba(232,180,160,.55), transparent 70%); }
.inv-elegant .inv-deco.b { left: auto; right: -10cqmin; top: -10cqmin; bottom: auto; }
.inv-elegant.inv-wedding .inv-deco { background: radial-gradient(circle, rgba(160,190,150,.5), transparent 70%); }
.inv-elegant.inv-party .inv-deco { background: radial-gradient(circle, rgba(224,196,140,.3), transparent 70%); }
.inv-playful .inv-t { font-weight: 800; letter-spacing: -.03em; }
.inv-playful .inv-k { font-weight: 700; padding: 1.2cqmin 3cqmin; border-radius: 99px; background: rgba(255,255,255,.85); color: #2b1650; letter-spacing: .1em; }
.inv-playful.inv-birthday { background: linear-gradient(160deg, #ff8fb8, #ffcf6b); color: #fff; }
.inv-playful.inv-wedding { background: linear-gradient(160deg, #9fe3d0, #f8d7e6); color: #23413a; }
.inv-playful.inv-party { background: linear-gradient(160deg, #6b4dff, #ff4fa3); color: #fff; }
.inv-playful .inv-deco { width: 34cqmin; height: 34cqmin; border-radius: 50%; top: -10cqmin; right: -10cqmin; background: rgba(255,255,255,.3); }
.inv-playful .inv-deco.b { width: 18cqmin; height: 18cqmin; top: auto; right: auto; bottom: 6cqmin; left: -5cqmin; background: rgba(255,255,255,.45); }

/* перевод картинки */
.tr-art { background: #e9e2d6; }
.tr-art .before, .tr-art .after { position: absolute; inset: 0; display: grid; place-items: center; background: #e9e2d6; }
.tr-art.ba .after { clip-path: inset(0 0 0 var(--sweep)); }
.menu { width: 74%; padding: 6cqmin 5cqmin; background: #fffaf0; color: #3a2a1e; box-shadow: 0 2cqmin 5cqmin rgba(80,50,20,.18); border: .3cqmin solid #e2d2b8; }
.menu-t { text-align: center; font-size: 6.4cqmin; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #b3261e; line-height: 1.05; }
.menu-rule { display: block; width: 30%; height: .4cqmin; margin: 2.4cqmin auto 3.4cqmin; background: #b3261e; }
.menu-row { display: flex; align-items: baseline; gap: 1.6cqmin; font-size: 3.8cqmin; margin-bottom: 2.2cqmin; }
.menu-row i { flex: 1; border-bottom: .3cqmin dotted #b8a68c; }
.menu-row b { font-weight: 700; }
.menu-pics { display: flex; justify-content: center; gap: 4cqmin; margin-top: 3cqmin; }
.menu-pics i { width: 14cqmin; height: 10cqmin; border-radius: 50%; }
.menu-pics .cup { background: radial-gradient(circle at 50% 40%, #d9b48a 30%, #fff 32%, #fff 52%, #e9dccb 54%); }
.menu-pics .tart { background: radial-gradient(circle at 50% 45%, #f6d743 40%, #d39b4a 42%); }

/* фото на документы */
.doc-compare { aspect-ratio: 4/5; border-radius: var(--r-lg); }
.doc-compare .doc-after { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a2833, #141318 70%); }
.doc-print { position: relative; height: 74%; aspect-ratio: var(--ar); background: var(--doc-bg); box-shadow: 0 18px 50px rgba(0,0,0,.55); outline: 6px solid #fff; transition: aspect-ratio .35s var(--ease), background .3s; }
.doc-compare .doc-print img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; mix-blend-mode: multiply; }
.doc-caption { margin-top: 14px; display: grid; gap: 4px; font-size: 14px; }
.doc-caption span { font-size: 12px; color: var(--muted); }
.framing.pick3 { grid-template-columns: repeat(3, 1fr); }
.pick3 .frame-opt { padding: 12px 8px; text-align: center; line-height: 1.25; justify-content: center; min-height: 52px; }
.pick3 .frame-opt small { display: block; font-size: 11px; color: var(--dim); font-weight: 400; margin-top: -4px; }
.pick3 .frame-opt.active small { color: var(--muted); }
.frame-opt .sz { height: 30px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .8; }
.frame-opt .sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); }
.frame-opt.active .sw { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 760px) {
  .tools-bar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 18px; }
  .tools-search { width: auto; }
  .tools-bar .chips { order: 0; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .tool-media { border-radius: 18px; }
  .tool-media .lb { top: 8px; font-size: 10px; padding: 3px 7px; }
  .tool-media .lb.l { left: 8px; } .tool-media .lb.r { right: 8px; }
  .tool-body h3 { font-size: 15px; }
  .tool-body p { font-size: 12px; }
}
}

.process-list { display: grid; gap: 0; }
.process-list div { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.process-list div:first-child { border-top: 0; }
.process-list .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; flex: none; color: var(--accent); }
.process-list span { color: var(--muted); font-size: 12px; display: block; }
.prompt-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: rgba(141,107,255,.1); border: 1px solid rgba(141,107,255,.3); font-size: 13px; color: var(--muted); margin-top: 14px; }
.prompt-note b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; font-size: 14px; }
.prompt-note .i { color: var(--accent); flex: none; margin-top: 2px; }
.examples-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ex-pair { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.ex-pair img { width: 100%; height: 100%; object-fit: cover; }
.ex-pair img:first-child { filter: grayscale(1) sepia(.6) contrast(.75) blur(1px); }
.ex-pair::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--text); }

/* шторка «Создать» */
.create-opts { display: grid; gap: 10px; }
.create-opt { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.create-opt .im { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; background: var(--card-2); display: grid; place-items: center; color: var(--accent); }
.create-opt .im img { width: 100%; height: 100%; object-fit: cover; }
.create-opt b { display: block; font-weight: 600; }
.create-opt span { font-size: 13px; color: var(--muted); }
.create-opt .i:last-child { margin-left: auto; color: var(--dim); }

/* =========================================================
   ГАЛЕРЕЯ
   ========================================================= */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 14px 0; font-weight: 500; color: var(--muted); position: relative; white-space: nowrap; }
.tabs button.active { color: var(--text); }
.tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.tabs button sup { font-size: 11px; color: var(--dim); margin-left: 4px; }
.day-group + .day-group { margin-top: 40px; }
.day-group h5 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 14px; display: flex; justify-content: space-between; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.g-item { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item .src { position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 8px; overflow: hidden; border: 2px solid var(--bg); }
.g-item .src img { width: 100%; height: 100%; object-fit: cover; }
.g-item .heart { position: absolute; top: 8px; right: 8px; color: var(--accent); }
.g-item .heart .i { fill: currentColor; }
.g-item.processing { cursor: default; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); }
.g-item.processing img { position: absolute; inset: 0; filter: blur(16px) brightness(.5); }
.g-item.processing .p { position: relative; z-index: 2; font-size: 12px; color: var(--muted); }
.g-item.processing .p b { display: block; font-weight: 600; font-size: 28px; color: var(--text); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--text); animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 200; background: #070706; display: none; }
.lightbox.open { display: grid; grid-template-columns: 1fr 360px; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-stage { position: relative; display: grid; place-items: center; padding: 40px; min-height: 0; }
.lb-stage img { max-height: calc(100vh - 80px); max-width: 100%; border-radius: var(--r); object-fit: contain; }
.lb-side { border-left: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 24px; background: var(--bg); overflow-y: auto; }
.lb-close { position: absolute; top: 20px; left: 20px; }
.lb-src { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card); }
.lb-src .im { width: 52px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; }
.lb-src .im img { width: 100%; height: 100%; object-fit: cover; }
.lb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-meta { display: grid; gap: 10px; font-size: 13px; }
.lb-meta div { display: flex; justify-content: space-between; color: var(--muted); }
.lb-meta div b { color: var(--text); font-weight: 500; }

/* =========================================================
   ПРОФИЛЬ
   ========================================================= */
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 32px; padding: 40px 0 64px; align-items: start; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.p-user { text-align: center; }
.p-user .avatar { width: 96px; height: 96px; margin: 0 auto 16px; border: 3px solid var(--bg); outline: 1px solid var(--line-2); }
.p-user .name { font-weight: 600; font-size: 22px; line-height: 1.1; }
.p-user .mail { color: var(--muted); font-size: 14px; margin-top: 4px; }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; text-align: center; }
.p-stats div + div { border-left: 1px solid var(--line); }
.p-stats b { font-weight: 600; font-size: 26px; display: block; }
.p-stats span { font-size: 12px; color: var(--muted); }

.p-section + .p-section { margin-top: 20px; }
.p-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.p-section-head h3 { font-size: 18px; font-weight: 600; }
.face-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.face-model { border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); padding: 10px; }
.face-model .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.face-model .stack img { width: 100%; height: 100%; object-fit: cover; }
.face-model b { display: block; font-size: 14px; font-weight: 600; margin-top: 10px; }
.face-model span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.face-model span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.face-model.add { display: grid; place-items: center; text-align: center; border-style: dashed; color: var(--muted); min-height: 180px; }
.face-model.add .icon-btn { margin: 0 auto 10px; }

.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; padding-top: 4px; }
.list-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; flex: none; color: var(--muted); }
.list-row .tx { flex: 1; min-width: 0; }
.list-row .tx b { display: block; font-weight: 500; font-size: 15px; }
.list-row .tx span { font-size: 13px; color: var(--muted); }
.list-row .val { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.list-row.danger { color: var(--accent); }
.list-row.danger .ic { color: var(--accent); }
.history-row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.history-row:first-child { border-top: 0; }
.history-row span { color: var(--muted); font-size: 13px; }
.history-row .plus { color: var(--ok); }
.ref-card { display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.ref-code { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ref-code code { font-family: ui-monospace, Menlo, monospace; background: var(--card-2); padding: 8px 12px; border-radius: 10px; font-size: 14px; letter-spacing: .06em; }

/* =========================================================
   ВХОД
   ========================================================= */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual { position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; opacity: .55; }
.auth-collage .col { display: flex; flex-direction: column; gap: 10px; animation: drift 30s linear infinite alternate; }
.auth-collage .col:nth-child(2) { animation-direction: alternate-reverse; margin-top: -120px; }
.auth-collage .col div { aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; }
.auth-collage img { width: 100%; height: 100%; object-fit: cover; }
@keyframes drift { to { transform: translateY(-160px); } }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 8%, rgba(12,12,11,.2) 60%, rgba(12,12,11,.6)); }
.auth-visual > * { position: relative; z-index: 2; }
.auth-form { display: grid; place-items: center; padding: 40px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .h2 { margin: 16px 0 10px; }
.field { display: grid; gap: 8px; margin-top: 16px; }
.field label { font-size: 13px; color: var(--muted); }
.input {
  height: 52px; padding: 0 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); outline: 0; font-size: 16px;
  transition: border-color .2s;
}
.input:focus { border-color: var(--text); }
.or { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 13px; margin: 24px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.social .btn { border-radius: 14px; }
.auth-note { font-size: 12px; color: var(--dim); margin-top: 24px; text-align: center; }
.auth-note a { text-decoration: underline; }
.otp { display: flex; gap: 10px; margin-top: 16px; }
.otp input { font-weight: 600; width: 100%; height: 60px; text-align: center; font-size: 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); outline: 0; }
.otp input:focus { border-color: var(--text); }
.otp input { min-width: 0; }
.otp-6 { gap: 8px; }
.otp-6 input { height: 56px; font-size: 22px; }

/* =========================================================
   ТОСТ / ШТОРКА
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: #0c0c0b;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: all .3s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 160; left: 50%; bottom: 0; width: min(560px, 100%);
  transform: translate(-50%, 100%); transition: transform .35s var(--ease);
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 18px; }
.sheet h4 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.sheet .chips { flex-wrap: wrap; }
.sheet-group + .sheet-group { margin-top: 22px; }
.sheet-group .eyebrow { margin-bottom: 10px; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1200px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-hero { grid-template-columns: repeat(4, 1fr); }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 560px; }
  .compare-wrap, .faq { grid-template-columns: 1fr; gap: 32px; }
  .modes { grid-template-columns: 1fr 1fr; }
  .modes .mode-card:first-child { grid-column: span 2; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .gen { grid-template-columns: 1fr; }
  .gen-visual { position: relative; top: 0; }
  .profile { grid-template-columns: 1fr; }
  .lightbox.open { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-side { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- МОБИЛЬНАЯ ВЕРСИЯ = ПРИЛОЖЕНИЕ ---------- */
@media (max-width: 760px) {
  :root { --pad: 16px; --header-h: 56px; }
  body { font-size: 15px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.no-tabbar { padding-bottom: 0; }
  .hide-mobile { display: none !important; }

  /* app bar */
  .header { background: rgba(12,12,11,.9); border-bottom-color: transparent; padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
  .header.scrolled { border-bottom-color: var(--line); }
  .header .container { gap: 10px; }
  .nav { display: none; }
  .logo-word { font-size: 19px; }
  .logo-mark { width: 31px; height: 31px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .avatar { display: none; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .credits { height: 36px; }
  .app-title { font-weight: 600; font-size: 17px; }

  /* таббар */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom);
    background: rgba(12,12,11,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .no-tabbar .tabbar { display: none; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 500; color: var(--dim); transition: color .2s; }
  .tab .i { width: 22px; height: 22px; }
  .tab.active { color: var(--text); }
  .tab.active .i { stroke-width: 2; }
  .tab-create { display: grid; place-items: center; }
  .tab-create span { width: 52px; height: 40px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
  .tab-create .i { width: 24px; height: 24px; stroke-width: 2.2; }

  .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  .no-tabbar .toast { bottom: 110px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 20px; align-items: flex-end; }
  .section-head p { display: none; }
  .section-head .h2 { font-size: 22px; }
  .btn { height: 46px; }
  .btn-lg { height: 52px; }

  /* главная */
  .hero { padding: 12px 0 40px; }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  .h1 { font-size: 28px; }
  .hero-copy .lead { font-size: 16px; margin: 16px 0 24px; }
  .hero-cta .btn { flex: 1; }
  .hero-stats { gap: 0; justify-content: space-between; margin-top: 28px; padding-top: 20px; }
  .hero-stats .n { font-size: 26px; }
  .hero-stats .l { font-size: 12px; }
  .hero-grid { gap: 28px; }
  .hero-visual { height: 460px; order: -1; }
  .hv-main { width: 100%; border-radius: var(--r-lg); }
  .hv-side { left: 12px; bottom: 12px; width: auto; right: 12px; flex-direction: row; align-items: center; }
  .hv-side .hv-card { flex: 1; padding: 8px; gap: 8px; background: rgba(23,23,21,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .hv-side .hv-card .thumb { width: 44px; height: 44px; }
  .hv-side .hv-card .s { display: none; }
  .hv-arrow { width: 28px; height: 28px; flex: none; }
  .hv-label { display: none; }
  .hv-main .tag { top: 14px; bottom: auto; left: 14px; }
  .ticker { padding: 14px 0; }
  .ticker-track span { font-size: 20px; gap: 28px; }
  .ticker-track { gap: 28px; }

  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; }
  .step .num { font-size: 36px; grid-row: span 2; }
  .step h4 { margin: 0 0 4px; font-size: 17px; }
  .step p { font-size: 14px; }
  .step .visual { display: none; }

  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cats .cat-tile.wide { grid-column: span 3; aspect-ratio: 2/1; }
  .cat-tile { border-radius: 14px; }
  .cat-tile .lbl { left: 10px; bottom: 10px; right: 10px; }
  .cat-tile .lbl b { font-size: 16px; }
  .cat-tile .lbl span { display: none; }

  .rail { grid-auto-columns: 62%; gap: 10px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }

  .compare-list { margin-top: 20px; }
  .modes { grid-template-columns: 1fr; gap: 10px; }
  .modes .mode-card:first-child { grid-column: auto; }
  .mode-card { min-height: 300px; padding: 20px; border-radius: 20px; }
  .mode-card .num { top: 18px; left: 20px; }
  .mode-card .badge { top: 16px; right: 16px; }
  .mode-card h3 { font-size: 21px; }
  .mode-switch { margin-bottom: 18px; }
  .inspo { grid-template-columns: repeat(2, 1fr); }
  .examples-row { grid-template-columns: repeat(2, 1fr); }
  .restore-compare { border-radius: 0; }
  .restore-compare .lb { bottom: 44px !important; }
  .pro-page .gen-stage:not(.has-image):not(.loading) { aspect-ratio: 4/3; }
  .pro-page .gen-stage .overlay-top .badge { display: none; }
  .packs { grid-template-columns: 1fr; gap: 12px; }
  .pack { padding: 20px; }
  .pack-price { font-size: 32px; margin-top: 16px; }
  .pack ul { margin: 16px 0 20px; }
    .cost-table > div { padding: 14px 16px; font-size: 14px; }
  .faq summary { font-size: 16px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; border-radius: var(--r-lg); }
  .cta-faces { justify-content: center; }
  .cta-faces div { width: 90px; height: 120px; }
  .footer { display: none; }

  /* каталог */
  .page-head { padding-block: 12px 14px; }
  .page-head .h2 { font-size: 24px; margin-top: 0; }
  .page-head .eyebrow { display: none; }
  .catalog-bar { padding: 10px 0; border-bottom: 0; }
  .catalog-bar .container { flex-wrap: wrap; gap: 10px; }
  .chips { order: 3; flex-basis: 100%; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .chip { height: 34px; padding: 0 14px; font-size: 13px; }
  .catalog-bar .seg { flex: 1; }
  .catalog-bar .seg button { flex: 1; }
  .catalog-bar .select { display: none; }
  .cat-hero { display: none; }
  .catalog-body { padding-block: 12px; }
  .masonry, .masonry .m-col { gap: 8px; }
  .look-card { border-radius: 14px; }
  .look-card .meta { left: 10px; bottom: 10px; right: 10px; }
  .look-card .meta .t { font-size: 13px; }
  .look-card .meta .s { font-size: 11px; }
  .look-card .top { top: 8px; left: 8px; right: 8px; }
  .look-card .fav { width: 32px; height: 32px; }
  .look-card .use { display: none; }
  .look-card:hover .meta { right: 10px; }
  .results-info { font-size: 13px; margin-bottom: 12px; }

  /* генерация — экран приложения */
  .gen-page .header { display: none; }
  .gen { padding: 0 0 24px; gap: 0; }
  .gen-page .container.gen { padding: 0; }
  .gen-stage { border-radius: 0; aspect-ratio: 4/5; }
  .gen-stage .ref-label { bottom: 44px; }
  .gen-progress .info { bottom: 48px; }
  .gen-stage .overlay-top { top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; }
  .gen-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; margin-top: 10px; scrollbar-width: none; }
  .gen-thumbs button { width: 56px; flex: none; }
  .gen-panel {
    position: relative; z-index: 5; margin-top: -28px; padding: 20px 16px 0;
    background: var(--bg); border-radius: 24px 24px 0 0;
  }
  .gen-visual .gen-thumbs { display: none; }
  .doc-compare { border-radius: 0; }
  .doc-caption { margin: 0; padding: 12px 16px 40px; }
  .gen-stage.cover-stage, .gen-stage.doc-compare, .gen-stage.restore-compare {
    height: min(62vw, 320px); margin: calc(10px + env(safe-area-inset-top)) 16px 0; border-radius: 20px;
  }
  .gen-stage.cover-stage .overlay-top, .gen-stage.doc-compare .overlay-top, .gen-stage.restore-compare .overlay-top { top: 10px; left: 10px; right: 10px; }
  .gen-stage.cover-stage .overlay-top .icon-btn, .gen-stage.doc-compare .overlay-top .icon-btn, .gen-stage.restore-compare .overlay-top .icon-btn { width: 36px; height: 36px; }
  .gen-stage.restore-compare .lb { bottom: 12px !important; }
  .gen-stage.cover-stage .overlay-top .badge, .gen-stage.doc-compare .overlay-top .badge { display: none; }
  .gen-stage.cover-stage .gen-progress .info, .gen-stage.doc-compare .gen-progress .info, .gen-stage.restore-compare .gen-progress .info { bottom: 14px; }
  .gen-visual:has(.cover-stage, .doc-compare, .restore-compare) .doc-caption { padding: 10px 16px 0; }
  .gen-visual:has(.cover-stage, .doc-compare, .restore-compare) + .gen-panel { margin-top: 0; }
  .framing.pick4 { grid-template-columns: repeat(2, 1fr); }
  .fields-grid { grid-template-columns: 1fr; }
  .fields-grid .field:not(.half) { grid-column: auto; }
  .gen-panel .crumbs { display: none; }
  .gen-panel .h2 { font-size: 22px; }
  .gen-block { margin-top: 22px; padding-top: 22px; }
  .dropzone { padding: 14px; gap: 14px; }
  .dropzone .dz-icon { width: 52px; height: 52px; }
  .range { width: 140px; }
  .gen-panel .gen-cta { display: none; }
  .action-bar {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(12,12,11,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .action-bar .cost { flex: none; }
  .action-bar .cost b { font-weight: 600; font-size: 22px; display: block; line-height: 1; }
  .action-bar .cost > span { font-size: 11px; color: var(--muted); }
  .action-bar .btn { flex: 1; }
  .gen-page main { padding-bottom: 100px; }
  .gen-progress .pct { font-size: 56px; }

  /* галерея */
  .tabs { gap: 22px; margin: 0 calc(var(--pad) * -1) 20px; padding: 0 var(--pad); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .g-item { border-radius: 6px; }
  .g-item .src { width: 22px; height: 22px; border-radius: 6px; left: 5px; bottom: 5px; }
  .day-group + .day-group { margin-top: 28px; }
  .lightbox.open { grid-template-rows: 1fr auto; }
  .lb-stage { padding: 60px 0 0; }
  .lb-stage img { border-radius: 0; max-height: 62vh; }
  .lb-side { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
  .lb-side .lb-meta, .lb-side .h3 { display: none; }
  .lb-close { top: calc(12px + env(safe-area-inset-top)); left: 12px; }

  /* профиль */
  .profile { padding: 8px 0 24px; gap: 16px; }
  .p-card { padding: 20px; border-radius: 20px; }
  .p-user { display: grid; grid-template-columns: 72px 1fr; text-align: left; column-gap: 16px; align-items: center; }
  .p-user .avatar { width: 72px; height: 72px; margin: 0; grid-row: span 3; }
  .p-user .name { font-size: 24px; }
  .p-user     .face-models { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); display: flex; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
  .face-model { width: 132px; flex: none; }
  .face-model.add { min-height: 0; }

  /* вход */
  .auth { grid-template-columns: 1fr; }
  .auth-visual { position: fixed; inset: 0; padding: 0; }
  .auth-visual .auth-top, .auth-visual .auth-quote { display: none; }
  .auth-visual::after { background: linear-gradient(to top, var(--bg) 52%, rgba(12,12,11,.3)); }
  .auth-form { position: relative; z-index: 3; align-items: end; min-height: 100vh; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
  .auth-box .h2 { font-size: 26px; }

  .sheet { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 761px) {
  .sheet { bottom: auto; top: 50%; transform: translate(-50%, -40%); opacity: 0; visibility: hidden; pointer-events: none; border-radius: 24px; border-bottom: 1px solid var(--line); transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; pointer-events: auto; }
  .sheet .grab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ai + облик */
.brand-sec { padding-bottom: 0; }
.brand-formula { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; }
.brand-formula .tok { display: inline-flex; align-items: baseline; height: 76px; padding: 0 30px; align-items: center; border-radius: 999px; border: 1px solid var(--line-2); font-size: 40px; font-weight: 700; letter-spacing: -.04em; }
.brand-formula .tok-ai { background: linear-gradient(135deg, #c9b2ff, #8d6bff 50%, #5a2fe6); border-color: transparent; color: var(--accent-ink); }
.brand-formula .tok-res { background: var(--text); border-color: var(--text); color: #0c0c0b; }
.brand-formula .tok-res b { color: #6a48f0; }
.brand-formula .tok-res small { font-size: .5em; font-weight: 600; color: #7a776f; margin-left: 2px; letter-spacing: 0; align-self: flex-end; margin-bottom: 20px; }
.brand-formula .op { font-size: 34px; color: var(--dim); font-weight: 300; }
.brand-defs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.def { padding: 24px 0 0; border-top: 1px solid var(--line); }
.def-word { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.def-word i { font-style: normal; font-weight: 400; font-size: 14px; color: var(--dim); margin-left: 4px; }
.def p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 340px; }
@media (max-width: 760px) {
  .brand-formula { gap: 8px 10px; }
  .brand-formula .tok { height: 48px; padding: 0 18px; font-size: 24px; }
  .brand-formula .tok-res small { margin-bottom: 12px; }
  .brand-formula .op { font-size: 22px; }
  .brand-defs { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .def { padding: 16px 0; }
}

/* второй ряд фильтров: города / праздники */
.catalog-bar .sub-row { margin-top: 10px; }
.sub-row .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.sub-row .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) {
  .catalog-bar .sub-row { margin-top: 0; }
  .sub-row .chips { order: 0; }
}
