/* v33 «Колекція на один вечір» — сдержанная роскошь: тёмный/кремовый фон, тонкая антиква
   крупным кеглем, шампань вместо золота, много воздуха, медленные (1,2–2,4 с) переходы.
   Общие правила; телефон — v33-m.css, широкий экран — v33-d.css. */
:root {
  --bg: #14110e; --bg2: #1b1713; --bg3: #231e19;
  --ink: #efe6d6; --ink2: #b8ad9b; --ink3: #8e8474;
  --gold: #cdb57f; --gold2: #a88f5a;
  --line: rgba(239, 230, 214, .14); --line2: rgba(239, 230, 214, .28);
  --st-dark: #0e0c0a; --st-light: #ebe3d5;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --slow: 1.4s;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4eee4; --bg2: #ece4d7; --bg3: #e3d9c9;
    --ink: #1e1a15; --ink2: #5c5347; --ink3: #7c7264;
    --gold: #85693a; --gold2: #6f5730;
    --line: rgba(30, 26, 21, .14); --line2: rgba(30, 26, 21, .3);
    --shadow: 0 30px 70px rgba(60, 40, 20, .18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4eee4; --bg2: #ece4d7; --bg3: #e3d9c9;
  --ink: #1e1a15; --ink2: #5c5347; --ink3: #7c7264;
  --gold: #85693a; --gold2: #6f5730;
  --line: rgba(30, 26, 21, .14); --line2: rgba(30, 26, 21, .3);
  --shadow: 0 30px 70px rgba(60, 40, 20, .18);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--serif); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { top: 8px; }

/* ── шапка ── */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 0 20px; height: 56px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { font: 400 19px/1 var(--serif); letter-spacing: .06em; text-decoration: none; }
.tag, .ch-k, .kicker, .sub, .lt-k, .pill-more, .tool, .attr, .foot, .sum dt, .bar-t {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
}
.tag { color: var(--gold); border: 1px solid var(--line2); padding: 3px 7px 2px; border-radius: 2px; }
.top-sp { flex: 1; }
.top-a { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink2); }
.top-a:hover { color: var(--ink); }
.theme { background: none; border: 0; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.theme svg path { fill: currentColor; stroke: none; }

/* ── кинетика: слова выходят из масок медленно ── */
.kt { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; line-height: 1.08; margin: 0; }
.kt .w { display: inline-block; overflow: hidden; vertical-align: top; clip-path: inset(-0.12em -0.16em -0.22em -0.16em); padding-bottom: .04em; }
.kt .wi { display: inline-block; transform: translateY(105%); transition: transform 1.6s var(--ease); transition-delay: calc(var(--i) * 140ms); }
.kt.in .wi { transform: none; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.rv.in { opacity: 1; transform: none; }
html.rm .kt .wi, html.rm .rv { transition: none !important; transform: none !important; opacity: 1 !important; }

/* ── пролог ── */
.pro { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.crest { color: var(--gold); }
.crest svg { display: block; width: 100%; height: auto; overflow: visible; }
.crest .c-mark, .crest .c-mono {
  fill: currentColor;
  filter: drop-shadow(0 1px 0 rgba(255, 246, 228, .22)) drop-shadow(0 -1px 0 rgba(0, 0, 0, .55));
}
.crest .c-mono { font-family: var(--serif); font-weight: 400; letter-spacing: .04em; }
/* «тиснение»: знак проявляется снизу вверх, затем монограмма */
.crest .c-mark { clip-path: inset(100% 0 0 0); transition: clip-path 2.6s var(--ease); }
.crest .c-mono { opacity: 0; transition: opacity 2s var(--ease) 1.4s; }
.crest.in .c-mark { clip-path: inset(0 0 0 0); }
.crest.in .c-mono { opacity: 1; }
html.rm .crest .c-mark { clip-path: none; transition: none; }
html.rm .crest .c-mono { opacity: 1; transition: none; }
.kicker { color: var(--gold); margin: 0 0 18px; }
.lead { color: var(--ink2); margin: 22px auto 0; max-width: 34em; }
.pro-cta { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: center; margin-top: 34px; }
.demo-note { margin: 26px 0 0; color: var(--ink3); font-size: 14px; font-style: italic; }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 52px;
  padding: 14px 30px; border: 1px solid var(--gold); background: var(--gold); color: #17130f;
  font: 500 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border-radius: 1px; transition: background .9s var(--ease), color .9s var(--ease);
}
.btn:hover { background: transparent; color: var(--gold); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-wide { width: 100%; }
.link { font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2);
  text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 3px; }
.link:hover { color: var(--ink); border-color: var(--gold); }

/* ── сцена ── */
.stage { position: relative; margin: 0; overflow: hidden; background: var(--st-dark); transition: background 1.6s var(--ease); }
.stage[data-bg="light"] { background: var(--st-light); }
.stage::before { /* мягкое пятно света под изделием */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 58%, rgba(255, 236, 205, .10), transparent 70%);
}
.stage[data-bg="light"]::before { background: radial-gradient(60% 45% at 50% 58%, rgba(255, 255, 255, .55), transparent 70%); }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.stage.live .gl { opacity: 1; }
.poster { position: absolute; left: 50%; top: 50%; width: min(70%, 420px); transform: translate(-50%, -50%); opacity: .9;
  transition: opacity 1.2s var(--ease); border-radius: 2px; }
.stage.live .poster { opacity: 0; }
.stage.busy .poster { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
html.rm .stage.busy .poster { animation: none; }
.tools { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; z-index: 2; }
.tool {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 40px; cursor: pointer;
  background: rgba(20, 17, 14, .55); color: #efe6d6; border: 1px solid rgba(239, 230, 214, .22); letter-spacing: .14em; font-size: 10px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stage[data-bg="light"] .tool { background: rgba(245, 239, 228, .7); color: #1e1a15; border-color: rgba(30, 26, 21, .2); }
.tool svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tool[aria-pressed="true"] { border-color: #cdb57f; color: #cdb57f; }
.stage[data-bg="light"] .tool[aria-pressed="true"] { border-color: #85693a; color: #6f5730; }
.pill {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  max-width: calc(100% - 28px); padding: 9px 14px; border-radius: 40px; cursor: pointer; text-align: left;
  background: rgba(20, 17, 14, .62); color: #efe6d6; border: 1px solid rgba(239, 230, 214, .2);
  font: 400 13px/1.3 var(--sans); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stage[data-bg="light"] .pill { background: rgba(245, 239, 228, .78); color: #1e1a15; border-color: rgba(30, 26, 21, .18); }
.pill i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #cdb57f; }
.pill[data-k="wait"] i { animation: blink 1.8s ease-in-out infinite; }
.pill[data-k="rule"] i, .pill[data-k="fail"] i { background: #d07a62; }
@keyframes blink { 50% { opacity: .25; } }
html.rm .pill i { animation: none !important; }
.pill-t { min-width: 0; }
.pill-more { flex: none; opacity: .7; font-size: 10px; border-left: 1px solid currentColor; padding-left: 9px; }
.attr { position: absolute; right: 14px; bottom: 6px; color: rgba(239, 230, 214, .5); font-size: 9px; letter-spacing: .08em; }

/* ── главы ── */
.ch-k { color: var(--gold); margin: 0 0 10px; font-size: 12px; letter-spacing: .3em; }
.ch-p { color: var(--ink2); margin: 16px 0 0; }
.note { color: var(--ink3); font-size: 14px; margin: 18px 0 0; font-style: italic; }
.sub { color: var(--ink3); margin: 26px 0 10px; }

.comps { display: grid; gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.comp {
  display: grid; grid-template-columns: 54px 1fr; gap: 4px 16px; align-items: center; padding: 14px 16px; text-align: left;
  background: var(--bg); border: 0; cursor: pointer; transition: background .9s var(--ease);
}
.comp:hover { background: var(--bg2); }
.comp[aria-checked="true"] { background: var(--bg3); }
.comp-i { grid-row: span 2; width: 54px; height: 54px; color: var(--gold); display: grid; place-items: center; }
.comp-i svg { width: 46px; height: 46px; fill: currentColor; }
.comp-i .ini { font: 400 22px/1 var(--serif); }
.comp-t { font: 400 20px/1.2 var(--serif); }
.comp-d { color: var(--ink3); font: 400 13px/1.35 var(--sans); }
.comp[aria-checked="true"] .comp-t::after { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--gold); vertical-align: middle; margin-left: 12px; }

.mono { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.lt {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 104px; padding: 18px 12px 14px;
  background: transparent; border: 1px solid var(--line2); cursor: pointer; transition: border-color .9s var(--ease);
}
.lt:hover, .lt:focus-visible { border-color: var(--gold); }
.lt[disabled] { opacity: .35; cursor: default; }
.lt-v { font: 400 64px/1 var(--serif); color: var(--ink); }
.lt-k { color: var(--ink3); font-size: 9px; }
.amp { font: italic 400 46px/1 var(--serif); color: var(--gold); }
.spell { text-align: center; color: var(--ink2); margin: 16px 0 0; }
.rule { color: #d07a62; margin: 12px 0 0; font-size: 15px; }

.items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.it {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 12px; text-align: left;
  background: transparent; border: 0; cursor: pointer;
}
.it-img { aspect-ratio: 1; background: var(--bg2); overflow: hidden; border: 1px solid var(--line); transition: border-color .9s var(--ease); }
.it-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 2.4s var(--ease); }
.it:hover .it-img img { transform: scale(1.07); }
.it-img .no-img { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); }
.it-img .no-img svg { width: 40%; fill: currentColor; opacity: .7; }
.it[aria-checked="true"] .it-img { border-color: var(--gold); }
.it-t { font: 400 18px/1.2 var(--serif); margin-top: 8px; }
.it-k { color: var(--ink3); font: 400 12px/1.3 var(--sans); letter-spacing: .06em; }
html.rm .it-img img { transition: none; }

.sw { display: flex; flex-wrap: wrap; gap: 12px; }
.sw button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 3px var(--bg); transition: box-shadow .8s var(--ease);
}
.sw button[aria-checked="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 1px var(--gold); }
.sw-name { color: var(--ink2); font-size: 14px; margin: 10px 0 0; }

/* ── коробка: крышка медленно приподнимается, внутри — изделие ── */
.box { position: relative; margin: 34px auto 0; width: min(100%, 340px); aspect-ratio: 1 / .82; perspective: 900px; }
.box-base {
  position: absolute; inset: 18% 0 0; background: linear-gradient(160deg, #241e18, #120f0c);
  border: 1px solid rgba(205, 181, 127, .35); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden;
}
:root[data-theme="light"] .box-base { background: linear-gradient(160deg, #fbf7f0, #e6dccb); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .box-base { background: linear-gradient(160deg, #fbf7f0, #e6dccb); } }
.box-base img { width: 66%; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.box-lid {
  position: absolute; left: -3%; right: -3%; top: 12%; height: 34%; transform-origin: 50% 0;
  background: linear-gradient(170deg, #2a231c, #17130f); border: 1px solid rgba(205, 181, 127, .45);
  display: grid; place-items: center; transition: transform 2.4s var(--ease); box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] .box-lid { background: linear-gradient(170deg, #fffaf2, #e9dfcf); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .box-lid { background: linear-gradient(170deg, #fffaf2, #e9dfcf); } }
.box.in .box-lid { transform: translateY(-46%) rotateX(52deg); }
.box-seal { width: 46px; height: 46px; color: #cdb57f; display: grid; place-items: center; }
.box-seal .ini { font: 400 17px/1 var(--serif); white-space: nowrap; }
.box-seal svg { width: 100%; height: 100%; fill: currentColor; }
.box-cap { text-align: center; color: var(--ink2); margin: 20px 0 0; font-size: 15px; }
html.rm .box-lid { transition: none; }

/* ── страхи ── */
.fears ol { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; counter-reset: f; }
.fears li { counter-increment: f; padding: 26px 0; border-top: 1px solid var(--line); }
.fears li::before { content: counter(f, upper-roman); display: block; color: var(--gold); font: 400 12px/1 var(--sans); letter-spacing: .3em; margin-bottom: 12px; }
.fears h3 { font: italic 400 24px/1.25 var(--serif); margin: 0; }
.fears p { color: var(--ink2); margin: 12px 0 0; }

/* ── запрос ── */
.sum { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.sum dt, .sum dd { padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; }
.sum dt { color: var(--ink3); padding-right: 18px; font-size: 10px; padding-top: 17px; }
.sum dd { font-size: 17px; text-align: right; overflow-wrap: anywhere; }
.sum dd.price { color: var(--gold); font-style: italic; }
.occ { display: flex; flex-wrap: wrap; gap: 8px; }
.occ button {
  padding: 9px 15px; background: transparent; border: 1px solid var(--line2); cursor: pointer; border-radius: 40px;
  font: 400 15px/1.2 var(--serif); transition: border-color .8s var(--ease), color .8s var(--ease);
}
.occ button[aria-checked="true"] { border-color: var(--gold); color: var(--gold); }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line2); max-width: 260px; }
.st-b { width: 52px; background: transparent; border: 0; cursor: pointer; font: 300 24px/1 var(--serif); }
.st-b:hover { color: var(--gold); }
.stepper input { flex: 1; min-width: 0; text-align: center; background: transparent; border: 0; border-inline: 1px solid var(--line);
  font: 400 26px/1 var(--serif); padding: 10px 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.req-form .btn-wide { margin-top: 30px; }
.req-st { min-height: 1.5em; margin: 14px 0 0; color: var(--ink2); }

.foot { text-align: center; color: var(--ink3); padding: 40px 20px 120px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.8; }
.foot p { margin: 0; }

/* ── листы (протокол, выбор буквы) ── */
.sheet { border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); padding: 0; max-width: 560px; width: calc(100% - 24px); }
.sheet::backdrop { background: rgba(8, 6, 4, .62); }
.sheet-in { padding: 26px 22px 22px; }
.sheet h2 { font: 400 28px/1.15 var(--serif); margin: 0 0 18px; }
.proto { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.proto dt, .proto dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.proto dt { color: var(--ink3); font: 400 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding-right: 14px; padding-top: 13px; }
.proto dd { text-align: right; }
.adv { margin: 16px 0 18px; padding-left: 18px; color: var(--ink2); font-size: 14px; }
.adv li + li { margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-bottom: 18px; }
.grid button {
  aspect-ratio: 1; background: transparent; border: 1px solid var(--line); cursor: pointer; font: 400 26px/1 var(--serif);
}
.grid button[aria-checked="true"] { border-color: var(--gold); color: var(--gold); }
.grid button[disabled] { opacity: .25; cursor: not-allowed; text-decoration: line-through; }
