/* v30 — общая часть: цвета, типографика, кинетика, блоки кабинета. Раскладки —
   v30-m.css (телефон, отдельная вёрстка) и v30-d.css (компьютер). Сцена 3D меняет фон
   по яркости изделия (data-bg): светлое изделие — тёмная сцена, тёмное — светлая. */
:root {
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #2a1f2d;
  --ink-2: #5d5062;
  --line: rgb(42 31 45 / 13%);
  --accent: #8a4f5f;          /* винно-пудровый — свадебная полиграфия */
  --accent-ink: #fff8f4;
  --foil: #a87a3c;            /* «фольга» монограммы */
  --ok: #2f7d55;
  --bad: #b2453a;
  --wait: #8a6a2a;
  --stage-dark: radial-gradient(120% 90% at 50% 30%, #3a2f3f 0%, #1c161f 70%);
  --stage-light: radial-gradient(120% 90% at 50% 30%, #fbf7f1 0%, #e6ddd0 75%);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161117; --paper-2: #211a23; --card: #241c26; --ink: #f4ecf0; --ink-2: #c3b5bf;
    --line: rgb(244 236 240 / 14%); --accent: #e3a3b4; --accent-ink: #2a1520; --foil: #e0b874;
    --ok: #7fd3a4; --bad: #ff9d8f; --wait: #e6c27a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161117; --paper-2: #211a23; --card: #241c26; --ink: #f4ecf0; --ink-2: #c3b5bf;
  --line: rgb(244 236 240 / 14%); --accent: #e3a3b4; --accent-ink: #2a1520; --foil: #e0b874;
  --ok: #7fd3a4; --bad: #ff9d8f; --wait: #e6c27a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.rm, html.rm { scroll-behavior: auto; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--foil); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; background: var(--foil); color: #1b1410; padding: 8px 12px;
  border-radius: 10px; text-decoration: none; }
.skip:focus { top: 8px; }
.note { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 650; margin: 0 0 8px; }

/* ---------------------------------------------------------------- шапка */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.logo { font: 700 19px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.for { font-size: 13px; color: var(--ink-2); margin-right: auto; }
.tag-demo { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 99px;
  border: 1px solid currentColor; opacity: .75; }
.lang { min-width: 44px; height: 40px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  font-weight: 650; font-size: 13px; padding: 0 10px; }

/* ---------------------------------------------------------------- кнопки и чипы */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 99px;
  border: 1px solid transparent; font-weight: 650; text-decoration: none; text-align: center; line-height: 1.2;
  transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.btn-small { min-height: 40px; padding: 0 16px; }
.btn-wide { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: 14px; line-height: 1.2; }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); }

/* ---------------------------------------------------------------- кинетика заголовков */
.kt { font: 600 clamp(28px, 6.4vw, 54px)/1.08 var(--display); letter-spacing: -.015em; margin: 0 0 14px; text-wrap: balance; }
.kt .w { display: inline-block; overflow: hidden; vertical-align: top; clip-path: inset(-0.12em -0.18em -0.22em -0.08em);
  padding-bottom: .06em; }
.kt .wi { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease);
  transition-delay: calc(var(--i) * 55ms); }
.kt.on .wi { transform: none; }
.rm .kt .wi { transform: none; transition: none; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; max-width: 46ch; }

/* ---------------------------------------------------------------- герой: монограмма из контура */
.hero { padding: 28px 16px 36px; }
.mono { position: relative; }
.mono-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mono-t { font: italic 600 112px/1 var(--display); fill: var(--foil); fill-opacity: 0; stroke: var(--foil); stroke-width: 1.4;
  stroke-dasharray: 900; stroke-dashoffset: 900; }
.hero.on .mono-t { animation: draw 2.2s var(--ease) .2s forwards, fill 1s ease 1.9s forwards; }
.rm .mono-t { stroke-dashoffset: 0; fill-opacity: 1; animation: none !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill-opacity: 1; stroke-width: 0; } }
.mono-date { display: block; text-align: center; font: 500 13px/1 var(--sans); letter-spacing: .32em; color: var(--ink-2);
  opacity: 0; transform: translateY(6px); transition: opacity .8s ease 2.2s, transform .8s var(--ease) 2.2s; }
.hero.on .mono-date, .rm .mono-date { opacity: 1; transform: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- кабинет */
.cab { padding: 28px 16px; background: var(--paper-2); border-block: 1px solid var(--line); scroll-margin-top: 60px; }
.cab-head { margin-bottom: 16px; }
.cab-agency { font: 600 24px/1.15 var(--display); margin: 0; }
.cab-now { margin: 6px 0 0; font-weight: 600; color: var(--accent); }
.col-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; font-weight: 650; }

.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s var(--ease);
  transition-delay: calc(var(--i) * 80ms); }
.ev-list.on li, .rm .ev-list li { opacity: 1; transform: none; }
.ev { display: flex; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--card); align-items: flex-start; }
.ev[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgb(60 30 40 / 10%); }
.ev-cal { flex: none; width: 52px; border-radius: 10px; background: var(--paper-2); text-align: center; padding: 6px 0;
  border: 1px solid var(--line); }
.ev-cal b { display: block; font: 600 22px/1 var(--display); }
.ev-cal span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.ev-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-t { font-weight: 650; }
.ev-g { font-size: 13px; color: var(--ink-2); }
.ev-st { font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.ev-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); flex: none; }
.ev[data-st="approved"] .ev-st, .ev[data-st="send"] .ev-st, .ev[data-st="pick"] .ev-st { color: var(--accent); }
.ev[data-st="approved"] .ev-st::before, .ev[data-st="send"] .ev-st::before, .ev[data-st="pick"] .ev-st::before {
  background: var(--accent); animation: beat 1.8s ease-in-out infinite; }
.ev[data-st="fail"] .ev-st { color: var(--bad); }
.ev[data-st="fail"] .ev-st::before { background: var(--bad); }
.rm .ev-st::before { animation: none !important; }
@keyframes beat { 50% { transform: scale(1.5); opacity: .5; } }

.ev-cur { margin-bottom: 10px; }
.ev-cur-d { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ev-cur-t { font: 600 22px/1.15 var(--display); margin: 2px 0 0; }
.ev-cur-g { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

/* сцена: над моделью — только пилюля статуса */
.stage { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--stage-dark); aspect-ratio: 1 / 1;
  transition: background .4s ease; }
.stage[data-bg="light"] { background: var(--stage-light); }
.poster { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; opacity: .85; transition: opacity .5s ease; border-radius: 12px; }
.poster.gone { display: none; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease, filter .3s;
  touch-action: none; cursor: grab; }
.gl.ready { opacity: 1; }
.gl.ready ~ .poster, .stage:has(.gl.ready) .poster { opacity: 0; }
.gl.stale { filter: grayscale(.8) blur(1.5px); opacity: .45; }
.pill { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); margin: 0; display: inline-flex; gap: 8px;
  align-items: center; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; line-height: 1.25;
  background: rgb(20 14 22 / 70%); color: #fbf4f6; backdrop-filter: blur(8px); pointer-events: none; }
.stage[data-bg="light"] .pill { background: rgb(255 252 247 / 84%); color: #2a1f2d; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: #e6c27a; flex: none; }
.pill[data-k="wait"] i { animation: beat 1s ease-in-out infinite; }
.pill[data-k="ok"] i { background: #7fd3a4; }
.pill[data-k="bad"] i { background: #ff8a7a; }
.rm .pill i { animation: none !important; }
.attr { position: absolute; right: 10px; top: 8px; font-size: 10px; opacity: .7; color: #fff; }
.attr:empty { display: none; }

.prods { display: flex; gap: 8px; margin-top: 12px; }
.prod { flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; }
.prod span { font-weight: 650; }
.prod small { font-size: 12px; color: var(--ink-2); }
.sw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--card); background: var(--c);
  box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.08); }

/* правая панель */
.blk { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.blk-h { font: 600 18px/1.2 var(--display); margin: 0 0 4px; }
.blk-s { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.og { margin-top: 10px; }
.og-h { font-size: 12px; color: var(--ink-2); margin: 0 0 6px; letter-spacing: .04em; }
.og-row { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; font: 600 15px/1.15 var(--display); padding: 8px 12px 14px; text-align: center; justify-content: center; }
.dots { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: flex; gap: 3px; }
.dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: background .3s; }
.dots b[data-k="ok"] { background: var(--ok); }
.dots b[data-k="no"] { background: var(--bad); }

.fit { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.fit-b { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left;
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; }
.fit-b[aria-current="true"] { border-color: var(--accent); }
.fit-n { font-weight: 600; }
.fit-s { font-size: 13px; font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.fit-s::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wait); }
.fit-s[data-k="wait"] { color: var(--wait); }
.fit-s[data-k="wait"]::before { animation: beat 1s ease-in-out infinite; }
.fit-s[data-k="ok"] { color: var(--ok); }
.fit-s[data-k="ok"]::before { background: var(--ok); }
.fit-s[data-k="no"], .fit-s[data-k="err"] { color: var(--bad); }
.fit-s[data-k="no"]::before, .fit-s[data-k="err"]::before { background: var(--bad); }
.fit-b small { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }

.proto { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 0; font-size: 14px; }
.proto dt { color: var(--ink-2); }
.proto dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.proto-w { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }
.rule { margin: 8px 0 0; color: var(--bad); font-size: 14px; }
.rule:empty { display: none; }
.adv { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.adv:empty { display: none; }
.blk-proto[data-k="ok"] { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.blk-proto[data-k="no"] { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }

.share-row { display: flex; gap: 8px; }
.share-url { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  padding: 0 10px; font-size: 13px; color: var(--ink-2); }
.share-row2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share-st { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ok); }
.share-st:empty { display: none; }
.blk-share.bad .share-st { color: var(--bad); }
.kp-st { margin: 8px 0 0; font-size: 13px; }
.kp-st:empty { display: none; }

/* вид клиента агентства */
.client-act { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.client-q { font: 600 20px/1.2 var(--display); margin: 0 0 12px; }
.client-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.client-st { margin: 10px 0 0; font-weight: 600; color: var(--ok); }
.client-st:empty { display: none; }
.client .hero, .client .roles, .client .fears, .client .join, .client .events, .client .blk-opts, .client .blk-share,
.client .blk-kp, .client .mbar, .client .sw, .client .skip, .client .cab-head { display: none !important; }
.client .prod:not([aria-checked="true"]) { display: none; }

/* ---------------------------------------------------------------- роли, страхи, заявка */
.roles, .fears, .join { padding: 40px 16px; }
.roles-grid { display: grid; gap: 12px; }
.role { border-radius: var(--r); padding: 18px; border: 1px solid var(--line); background: var(--card);
  opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s var(--ease); }
.role-we { background: color-mix(in srgb, var(--accent) 9%, var(--card)); transition-delay: .15s; }
.roles-grid.on .role, .rm .role { opacity: 1; transform: none; }
.role-k { font: 600 20px/1 var(--display); margin: 0 0 10px; color: var(--accent); }
.role-l { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.fear-list { display: grid; gap: 12px; }
.fear { border-left: 3px solid var(--foil); padding: 4px 0 4px 14px; opacity: 0; transform: translateX(-10px);
  transition: opacity .6s ease, transform .6s var(--ease); }
.fear:nth-child(2) { transition-delay: .12s; }
.fear:nth-child(3) { transition-delay: .24s; }
.fear-list.on .fear, .rm .fear { opacity: 1; transform: none; }
.fear-q { font: 600 19px/1.25 var(--display); margin: 0 0 6px; }
.fear-a { margin: 0; color: var(--ink-2); }

.join { background: var(--paper-2); border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.apply { display: grid; gap: 12px; max-width: 520px; }
.apply label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.apply input[type="text"], .apply select { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  padding: 0 12px; font-weight: 400; font-size: 16px; }
.apply .tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.apply .tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.f-err { color: var(--bad); margin: 0; font-weight: 600; }
.f-err:empty { display: none; }
.done { max-width: 520px; background: var(--card); border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.done-t { font: 600 22px/1.2 var(--display); margin: 0 0 6px; color: var(--ok); }
.done-s { margin: 0 0 12px; color: var(--ink-2); }

.foot { padding: 24px 16px 40px; font-size: 13px; color: var(--ink-2); }
.foot p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
