/* Стили PICSики. Источник — макеты D:\AI\pet-project\design\mockups\picsiki-mockups.html.
   Одна колонка под iPhone (до 480px), на компьютере — та же колонка по центру.
   Весь внешний вид — в этом файле: новый дизайн меняет его, шаблоны и разметку не трогает. */
:root {
  --bg: #FFFFFF;
  --surface: #F3F1F6;
  --line: #E3E0EA;
  --ink: #17151C;
  --muted: #6A6674;
  --accent: #E0245A;
  --accent-ink: #FFFFFF;
  --accent-soft: #FDE7EE;
  --pro: #7A5500;
  --pro-soft: #FFF0BF;
  --ok: #11713F;
  --ok-soft: #DDF5E6;
  --scrim: rgba(12, 10, 16, .58);
  --on-image: #FFFFFF;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --r-card: 18px;
  --r-pill: 999px;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E13; --surface: #1B1A21; --line: #2C2A34; --ink: #F3F1F8; --muted: #A6A1B0;
    --accent: #F0386C; --accent-ink: #FFFFFF; --accent-soft: #3A1622; --pro: #FFD45A; --pro-soft: #3A2F08;
    --ok: #5FD893; --ok-soft: #10301E;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  max-width: 480px; min-height: 100vh; margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
  padding-block: env(safe-area-inset-top, 0px) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}
@media (min-width: 600px) {
  body { background: var(--surface); }
  .page { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
.bleed { margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding-left: var(--gl); padding-right: var(--gr); }

/* --- шапка --- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 8px; height: 56px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; text-decoration: none; margin-right: auto; display: inline-flex; align-items: baseline; }
.logo b { font-weight: 700; }
.logo i { font-style: normal; color: var(--accent); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn { height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.pill-btn.lk { gap: 6px; padding-left: 10px; }
.pill-btn.lk svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) {   /* на телефоне — только значок человечка */
  .pill-btn.lk { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .pill-btn.lk span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* --- общие элементы --- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-block: 14px 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.015em; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 16px; }
.section { display: grid; gap: 14px; padding-block: 22px; }
.section + .section { border-top: 1px solid var(--line); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-head a { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; list-style: none; margin-top: 0; margin-bottom: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); background: var(--surface); font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); }
.chip small { color: var(--muted); font-size: 12px; }
.chip.on small { color: var(--bg); opacity: .7; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--bg); color: var(--ink); }
.badge.pro { background: var(--pro-soft); color: var(--pro); }
.badge.new { background: var(--accent); color: var(--accent-ink); }
.meta { font-size: 13px; color: var(--muted); }
.rubric { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; }

/* карточка образа */
.card { display: grid; gap: 8px; text-decoration: none; min-width: 0; align-content: start; }
.card .ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--surface); max-width: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.card b { font-weight: 600; font-size: 15px; line-height: 1.25; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gl) var(--gr); scrollbar-width: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* SEO-блок: вопрос + ответ, FAQ */
.answer { display: grid; gap: 10px; }
.answer p { color: var(--ink); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* подвал */
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-block: 28px 8px; border-top: 1px solid var(--line); margin-top: 8px; font-size: 14px; }
.foot-brand { display: grid; gap: 10px; grid-column: 1 / -1; }
.foot-copy { grid-column: 1 / -1; }
.foot h2 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot .fine { color: var(--muted); font-size: 13px; }

/* --- главная --- */
.hero { display: grid; gap: 16px; padding-block: 18px 22px; }
.hero-shot { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface); }
.hero-shot > img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot .selfie { position: absolute; left: 14px; bottom: 14px; width: 30%; border-radius: 14px; overflow: hidden; border: 3px solid var(--on-image); box-shadow: 0 6px 20px rgba(0,0,0,.25); transform: rotate(-4deg); }
.hero-shot .selfie span, .hero-shot .tag { position: absolute; font-size: 12px; font-weight: 600; color: var(--on-image); background: var(--scrim); border-radius: 8px; padding: 3px 8px; }
.hero-shot .selfie span { left: 6px; bottom: 6px; }
.hero-shot .tag { right: 14px; top: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs figure { margin: 0; display: grid; gap: 6px; }
.vs .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; max-width: 100%; }
.vs img { width: 100%; height: 100%; object-fit: cover; }
.vs figcaption { font-size: 13px; color: var(--muted); }
.vs figcaption b { color: var(--ink); }
.offer { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--accent-soft); }
.offer .price { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden; text-decoration: none; max-width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: var(--on-image); background: linear-gradient(to top, var(--scrim), transparent); font-weight: 600; line-height: 1.2; }
.tile span small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; }
.trust svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* --- блог: строка статьи --- */
.post { display: grid; grid-template-columns: 96px 1fr; gap: 12px; text-decoration: none; align-items: start; }
.post .ph { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; max-width: 100%; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post div { display: grid; gap: 4px; min-width: 0; }
.post b { font-weight: 600; line-height: 1.3; }
.list { display: grid; gap: 18px; }

/* --- меню и крошки --- */
.nav-desk { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(300px, calc(100vw - 32px)); z-index: 30; display: grid; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.menu-panel a { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--surface); }
.menu-panel small { color: var(--muted); font-weight: 400; }
.crumbs [aria-current] { color: var(--ink); }
.section.first { padding-top: 8px; }
.lead-ink { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.posts-2, .posts-3 { display: grid; gap: 18px; }
.draft { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }

/* --- образ --- */
/* #make_foto: ссылки на образ ведут сразу к галерее и кнопке — крошки уезжают вверх, галерея встаёт под шапку */
.tpl { scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.tpl-head { display: grid; gap: 12px; padding-block: 16px 8px; }
.tpl-form { display: grid; gap: 14px; padding-block: 8px 22px; }
.gallery { position: relative; }
.gallery .track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure .badge { position: absolute; left: 12px; top: 12px; }
.gallery .count { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 600; color: var(--on-image); background: var(--scrim); border-radius: 8px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); }
.seg button { border: 0; border-radius: 12px; background: transparent; padding: 10px 8px; cursor: pointer; display: grid; gap: 2px; text-align: center; }
.seg button b { font-size: 15px; }
.seg button small { font-size: 12px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.drop { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 22px; cursor: pointer; position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg, .camera svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop b { font-size: 17px; }
.drop .meta { max-width: 30ch; }
.camera { display: none; position: relative; }
.camera svg { width: 22px; height: 22px; }
.camera input { position: absolute; width: 1px; height: 1px; opacity: 0; }
@media (pointer: coarse) { .camera { display: inline-flex; } }
.thumbs { display: flex; gap: 8px; }
.thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; }
.tips { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); font-size: 14px; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats .chip { height: 34px; font-variant-numeric: tabular-nums; }
.cta-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 15; width: 100%; max-width: 480px; display: grid; gap: 4px; padding: 10px var(--gr) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gl); background: var(--bg); border-top: 1px solid var(--line); }
.cta-bar .meta { text-align: center; }
body:has(.cta-bar) .page { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

/* окно входа */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: grid; align-items: end; justify-items: center; }
.sheet { width: 100%; max-width: 480px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px var(--gr) calc(22px + env(safe-area-inset-bottom, 0px)) var(--gl); display: grid; gap: 12px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; }
.sheet .btn { font-size: 16px; }
.sheet .note { font-size: 13px; color: var(--muted); text-align: center; }
.sheet .note a, .check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sheet { max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }

/* вход по телефону: номер → код → почта и согласия */
.auth-step { display: grid; gap: 12px; min-width: 0; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field input { width: 100%; min-width: 0; height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; font-weight: 500; }
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .code-input { text-align: center; font-size: 28px; letter-spacing: .45em; padding-left: calc(16px + .45em); font-variant-numeric: tabular-nums; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.test-code { padding: 10px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 15px; text-align: center; }
.test-code b { font-size: 22px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.link-btn { border: 0; background: none; padding: 10px 2px; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
/* «Войти через Яндекс / VK» — фирменные цвета значков одинаковы в обеих темах */
.btn.prov { background: var(--surface); color: var(--ink); border: 1px solid var(--line); gap: 12px; }
.prov-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #FFFFFF; font-size: 15px; font-weight: 800; line-height: 1; }
.prov-ic.ya { background: #FC3F1D; }
.prov-ic.vk { background: #0077FF; font-size: 12px; letter-spacing: -.02em; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-btn:disabled { color: var(--muted); cursor: default; }

/* «Мои работы» */
.account-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px; border-radius: var(--r-card); background: var(--surface); margin-block: 12px 16px; }
.account-card dl { display: grid; gap: 4px; margin: 0; min-width: 0; }
.account-card dl div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.account-card dt { color: var(--muted); font-size: 14px; }
.account-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.account-card .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.account .lead { margin-block: 8px 16px; }
.wallet dd { font-weight: 500; }
.wallet dd b { font-weight: 700; }
.sub-cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sub-cancel .meta { margin: 0; flex-basis: 100%; }
.pay-history { margin-block: 0 16px; }
.pay-history summary { cursor: pointer; font-weight: 600; padding-block: 6px; }
.pay-history .cmp { margin-top: 8px; }

/* --- блог --- */
.feature { display: grid; gap: 10px; text-decoration: none; }
.feature .ph { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; max-width: 100%; }
.feature .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.feature-text { display: grid; gap: 8px; }
.feature b { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }

/* --- статья --- */
.art-head { display: grid; gap: 12px; }
.art-head .rubric { text-decoration: none; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.ava { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; color: var(--muted); flex: none; border: 1px dashed var(--line); }
.toc { border-radius: 16px; background: var(--surface); padding: 4px 16px; }
.toc summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.toc ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--muted); }
.prose { display: grid; gap: 14px; font-size: 17px; line-height: 1.6; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; margin-top: 10px; scroll-margin-top: 80px; }
.prose figure { margin: 0; display: grid; gap: 6px; }
.prose figure img { border-radius: 18px; width: 100%; }
.prose figcaption { font-size: 13px; color: var(--muted); }
.prose ol, .prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose .md { display: grid; gap: 14px; min-width: 0; }
.prose .md > * { margin: 0; }
.prose .md h2 { margin-top: 10px; }
.prose h3 { font-weight: 700; font-size: 18px; line-height: 1.3; margin-top: 4px; }
.prose a { color: var(--accent); }
.table-wrap { overflow-x: auto; min-width: 0; }
.prose pre { position: relative; margin: 0; padding: 14px 16px 44px; border-radius: 16px; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.5 var(--font-body); }
.prose pre code { font: inherit; }
.prose pre .copy { position: absolute; right: 10px; bottom: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: 600 13px/1.4 inherit; cursor: pointer; }
.figs { display: grid; gap: 10px; }
.figs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figs figure { margin: 0; display: grid; gap: 6px; align-content: start; }
.figs img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.figs figcaption { font-size: 13px; line-height: 1.35; color: var(--muted); }
.zodiac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zc { margin: 0; display: grid; gap: 6px; align-content: start; }
.prose .zc img { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.prose .zc.hl img { outline: 3px solid var(--accent); outline-offset: 2px; }
.zc figcaption { display: grid; gap: 2px; text-align: center; font-size: 13px; line-height: 1.3; }
.zc figcaption span { color: var(--muted); }
.zc figcaption a { color: var(--accent); font-weight: 600; text-decoration: none; }
.prose table { border-collapse: collapse; min-width: 100%; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--surface); }
.inline-tpl { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; }
.inline-tpl img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 88px; }
.inline-tpl div { display: grid; gap: 6px; min-width: 0; }
.inline-tpl .go { color: var(--accent); font-weight: 700; font-size: 15px; }
.author { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); }
.author .ava { width: 56px; height: 56px; }

/* --- тарифы и документы --- */
.plans { display: grid; gap: 12px; }
.plan { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 22px; border: 1px solid var(--line); }
.plan.hl { border: 2px solid var(--accent); }
.plan .top-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 15px; }
.plan .btn { margin-top: auto; }
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th[scope="row"] { padding-left: 0; color: var(--muted); font-weight: 400; }
.cmp thead th { font-size: 13px; }
.docs { display: grid; border-top: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.docs a span { color: var(--muted); font-size: 13px; font-weight: 400; }

/* --- цена в карточке и на образе --- */
.card-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-from { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.tpl-price { font-size: 15px; }
.tpl-price b { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.perks { list-style: none; margin: 0; padding: 14px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; color: var(--muted); }
.perks li { padding-left: 22px; position: relative; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.perks b { color: var(--ink); font-weight: 600; }
.more-links { font-size: 14px; color: var(--muted); }
.more-links a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* --- до и после --- */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 8px; }
.ba-2 { grid-template-columns: minmax(0, .62fr) 24px minmax(0, 1fr); }
.ba figure { margin: 0; display: grid; gap: 8px; }
.ba .ph { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface); max-width: 100%; }
.ba-2 .ba-src .ph { aspect-ratio: 1 / 1; }
.ba-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ba-many figcaption { grid-column: 1 / -1; }
.drop .roles { margin: 0; padding-left: 1.4em; font-size: 13px; color: var(--muted); text-align: left; }
.ba .ph img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { font-size: 13px; color: var(--muted); }
.ba figcaption b { color: var(--ink); }
.ba-arrow { font-family: var(--font-display); font-size: 20px; color: var(--accent); text-align: center; }

/* --- фильтры и сортировка --- */
.toolbar { display: grid; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; }
.filter small { color: var(--muted); font-size: 12px; }
.filter.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.filter.on small { color: var(--accent); }
.filter .x { font-size: 16px; line-height: 1; }
.sort-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.sort { display: flex; gap: 4px; font-size: 14px; }
.sort a { padding: 4px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); }
.sort a[aria-current] { background: var(--surface); color: var(--ink); font-weight: 600; }

/* --- страницы о сервисе --- */
.info { display: grid; gap: 16px; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.foot-copy { display: grid; gap: 4px; }
.foot-copy a { text-decoration: underline; }

/* --- компьютер: та же разметка, шире сетки --- */
@media (min-width: 960px) {
  :root { --gl: max(32px, env(safe-area-inset-left, 0px)); --gr: max(32px, env(safe-area-inset-right, 0px)); }
  body { background: var(--bg); }
  .page { max-width: 1240px; border: 0; }
  .top { height: 68px; gap: 12px; }
  .logo { margin-right: 20px; }
  .nav-desk { display: flex; gap: 2px; margin-right: auto; }
  .nav-desk a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--muted); }
  .nav-desk a:hover, .nav-desk a[aria-current] { color: var(--ink); background: var(--surface); }
  .menu { display: none; }
  .crumbs { padding-block: 20px 0; }

  .h1 { font-size: 40px; }
  .h2 { font-size: 26px; }
  .lead { font-size: 18px; max-width: 62ch; }
  .section { padding-block: 40px; gap: 20px; }
  .section.first { padding-top: 16px; }
  .chips { flex-wrap: wrap; overflow: visible; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(max(170px, calc((100% - 80px) / 5)), 1fr)); justify-content: start; gap: 28px 20px; overflow: visible; scroll-snap-type: none; }   /* не больше 5 в ряд; больше 5 образов — новыми рядами, а не сжимаются (18.11) */
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
  .card b { font-size: 16px; }

  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: center; padding-block: 40px 48px; }
  .hero-text { display: grid; gap: 22px; align-content: center; }
  .hero-text .h1 { font-size: 54px; line-height: 1.08; }
  .hero-cta { width: auto; justify-self: start; padding: 0 40px; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .std-pro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "h v" "l v" "o v"; grid-template-rows: auto auto 1fr; column-gap: 64px; }
  .std-pro > .h2 { grid-area: h; }
  .std-pro > .lead { grid-area: l; }
  .std-pro > .vs { grid-area: v; }
  .std-pro > .offer { grid-area: o; align-self: start; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .answer { max-width: 780px; }
  .posts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .posts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

  .tpl { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 16px 40px; scroll-margin-top: calc(68px + env(safe-area-inset-top, 0px)); }
  .tpl-media { position: sticky; top: 88px; }
  .gallery .track { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; border-radius: 0; scroll-snap-type: none; }
  .gallery figure { border-radius: 18px; overflow: hidden; }
  .gallery figure:only-child { grid-column: 1 / -1; border-radius: 24px; }   /* один пример — на всю колонку */
  .gallery .count { display: none; }
  .tpl-head { padding-top: 0; }
  .cta-bar { position: static; transform: none; width: auto; max-width: none; padding: 8px 0 0; border: 0; justify-items: start; }
  .cta-bar .btn { width: auto; padding: 0 40px; }
  body:has(.cta-bar) .page { padding-bottom: 24px; }

  .sheet-wrap { align-items: center; }
  .sheet { max-width: 440px; border-radius: 24px; padding: 28px; }
  .sheet .grab { display: none; }
  .feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .feature b { font-size: 30px; }
  .article { grid-template-columns: minmax(0, 720px) 260px; column-gap: 64px; justify-content: start; }
  .article > * { grid-column: 1; }
  .article > .toc { grid-column: 2; grid-row: 1 / span 6; align-self: start; position: sticky; top: 88px; }
  .prose { font-size: 18px; }
  .prose figure { max-width: 540px; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cmp-wrap { max-width: 640px; }
  .doc, .info { max-width: 780px; }
  .ba { max-width: 640px; gap: 16px; }

  .foot { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: 40px 16px; }
  .foot-brand { grid-column: auto; align-content: start; max-width: 36ch; }
}

/* --- генерация: ошибка в форме, страница заказа, журнал --- */
.form-err { font-size: 14px; color: var(--accent); font-weight: 600; text-align: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
.order { gap: 16px; }
.order-head { display: grid; gap: 8px; justify-items: start; }
.order-status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; background: var(--surface); color: var(--muted); white-space: nowrap; }
.order-status.is-running, .order-status.is-queued { background: var(--pro-soft); color: var(--pro); }
.order-status.is-done { background: var(--ok-soft); color: var(--ok); }
.order-status.is-failed { background: var(--accent-soft); color: var(--accent); }
.order-frame { margin: 0; position: relative; width: 100%; max-width: 100%; border-radius: var(--r-card); overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.order-frame img, .order-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.order-wait, .order-fail { display: grid; justify-items: center; gap: 10px; padding: 24px; text-align: center; max-width: 34ch; }
.order-wait b, .order-fail b { font-size: 17px; }
.order-wait [data-timer] { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.order-fail .meta { overflow-wrap: anywhere; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-actions { display: grid; gap: 6px; }
.order-actions .meta { text-align: center; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.4; }
.admin-table th, .admin-table td { text-align: left; vertical-align: middle; padding: 10px; border-bottom: 1px solid var(--line); }
.admin-table th { font-weight: 600; background: var(--surface); white-space: nowrap; }
.admin-table .mini a { display: block; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--surface); text-decoration: none; }
.admin-table .mini img { width: 64px; height: 80px; object-fit: cover; display: block; }
.mini-empty { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; color: var(--muted); }
.mini-empty.is-failed { color: var(--accent); background: var(--accent-soft); }
.admin-table .tpl-name a { font-weight: 600; color: var(--ink); }
.admin-table .when { color: var(--muted); white-space: nowrap; }
.admin-table .dl { text-align: right; }
.dl-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
@media (max-width: 959px) {
  .admin .table-wrap { overflow: visible; }
  .admin-table, .admin-table tbody { display: block; }
  .admin-table thead { display: none; }
  .admin-table tr { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "m n d" "m w d" "m s d"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .admin-table td { padding: 0; border: 0; }
  .admin-table td[colspan] { grid-column: 1 / -1; }
  .admin-table .mini { grid-area: m; }
  .admin-table .tpl-name { grid-area: n; }
  .admin-table .when { grid-area: w; font-size: 13px; }
  .admin-table .st { grid-area: s; }
  .admin-table .dl { grid-area: d; }
}
@media (min-width: 960px) {
  .admin .table-wrap { max-width: 900px; }
  .order { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .order > * { grid-column: 2; }
  .order > .order-frame { grid-column: 1; grid-row: 1 / span 6; }
  .order .btn { width: auto; padding: 0 40px; justify-self: start; }
  .order-actions { justify-items: start; }
  .order-actions .meta { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* тарифы: две группы и окно оплаты (две пустые галочки — как у Промоменто) */
.plans-h { margin-top: 18px; }
.plans-note { font-size: 13px; }
.pay-plans { display: grid; gap: 8px; }
.pay-plan { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.pay-plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pay-plan input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.pay-plan span { display: grid; gap: 2px; min-width: 0; }
.pay-plan small { color: var(--muted); font-size: 13px; }
.pay-plan em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-ok { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 15px; }

/* документы */
.doc-meta { font-size: 13px; color: var(--muted); }
.prose .md table { display: block; overflow-x: auto; }
.prose .md th, .prose .md td { min-width: 7.5em; }
.prose .md td:nth-child(n+4) { min-width: 13em; }
.prose .md ul, .prose .md ol { display: grid; gap: 6px; }

/* cookie-баннер: до согласия Метрику не грузим (когда подключим) */
.cookie { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; font-size: 13px; line-height: 1.45; }
.cookie p { margin: 0; max-width: 640px; color: var(--muted); }
.cookie a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie .btn { height: 40px; padding: 0 18px; font-size: 14px; }

/* тарифы: подарок на крупных суммах */
.plan .gift { margin: -4px 0 0; color: var(--accent); font-weight: 700; font-size: 15px; }
.plan .gift small { color: var(--muted); font-weight: 500; font-size: 13px; }

/* --- Лаборатория (/laboratoriya/, app/lab.py) --- */
.lab { display: grid; gap: 8px; scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.field textarea { width: 100%; min-width: 0; min-height: 150px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.45; resize: vertical; }
.field textarea::placeholder { color: var(--muted); opacity: .7; }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lab-under { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: -6px; }
.lab-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.lab-drop { padding: 16px; }
.lab-side { display: grid; gap: 12px; align-content: start; padding-bottom: 8px; }
.lab-rules { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--surface); }
.lab-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
.lab-rules a, .lab-ideas .meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lab-tip { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; }
.lab-tip:hover { border-color: var(--accent); }
.lab-group { margin: 8px 0 0; font-size: 15px; font-weight: 700; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.idea { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); }
.idea-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.idea p { margin: 0; align-self: start; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.lab-rules .h2 { font-size: 19px; }
.idea .btn { justify-self: start; min-height: 42px; padding: 0 16px; font-size: 15px; }
.lab-asked { padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; }
.lab-asked summary { cursor: pointer; font-weight: 600; }
.lab-asked p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-go-row { margin: -4px 0 16px; }
.lab-go { font-weight: 600; color: var(--accent); text-decoration: none; }
.lab-go:hover { text-decoration: underline; }
.lab-text { max-width: 46ch; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.lab-who { display: block; font-size: 13px; overflow-wrap: anywhere; }
/* «Оживить фото»: сценарии движения — карточки-переключатели (один выбран) */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.scene { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.scene b { font-size: 15px; }
.scene small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.scene:hover { border-color: var(--accent); }
.scene.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.anim-how { max-width: 760px; }
@media (min-width: 960px) {
  .lab { grid-template-columns: minmax(0, 640px) minmax(0, 340px); gap: 48px; align-items: start; padding-block: 16px 24px; }
  .lab-side { position: sticky; top: 88px; padding-top: 16px; }
  .lab .cta-bar .meta { text-align: left; }
}

/* «Оживить фото», 18.11: фото из заказа, группы сценариев, открытка, примеры, ссылка-подарок, страница /otkrytka/ */
.src-job { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); }
.src-job img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; flex: none; }
.src-job div { display: grid; gap: 4px; min-width: 0; }
.src-job a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.scene-groups { display: grid; gap: 8px; }
.scene-group { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.card-opt { display: grid; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 16px; }
.card-opt .check { font-size: 14px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.ex { margin: 0; display: grid; gap: 8px; min-width: 0; }
.ex video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); background: var(--surface); display: block; }
.ex figcaption { display: grid; gap: 2px; font-size: 14px; }
.anim-card { display: grid; gap: 20px; align-items: center; }
.ex-card { max-width: 300px; }
.ex-card video { aspect-ratio: 9 / 16; }
.dl-clean { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.share-box { display: grid; gap: 8px; margin-top: 6px; }
.share-link { display: grid; gap: 6px; }
.share-link input { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.linklike { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.gift { display: grid; gap: 20px; justify-items: center; text-align: center; }
.gift-frame { margin: 0; position: relative; width: 100%; max-width: 420px; }
.gift-frame video { width: 100%; border-radius: var(--r-card); background: var(--surface); display: block; }
.gift-sound { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 10px 18px; background: rgba(0,0,0,.6); color: #fff; font: 600 14px/1.2 inherit; cursor: pointer; }
.gift-text { display: grid; gap: 10px; max-width: 420px; width: 100%; }
@media (min-width: 960px) {
  .anim-card { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
}
