:root {
  --bg: #000; --fg: #fff; --muted: #9a9a9a; --line: #262626;
  --gold: #c9a96e; --gold-2: #e3cc9a; --gold-3: #8a6f3e; --red: #e05555;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 300 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; }
[hidden] { display: none !important; }
.pre { white-space: pre-line; }
a { color: var(--gold-2); }

.brand { text-align: center; padding: 22px 16px 6px; padding-top: max(22px, env(safe-area-inset-top)); }
.brand span { font: 500 15px var(--sans); letter-spacing: .5em; color: var(--gold); padding-left: .5em; }

main.narrow { max-width: 560px; margin: 0 auto; padding: 8px 20px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.step { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1 { font: 500 40px/1.1 var(--serif); margin: 10px 0 18px; font-variant-numeric: lining-nums; }
h2 { font: 500 28px/1.2 var(--serif); margin: 28px 0 12px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 500; margin: 18px 0 0; }
.lead { color: #ddd; margin: 0 0 22px; }
.note { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
.err { color: var(--red); font-size: 16px; min-height: 1em; margin: 10px 0; }

.facts { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 10px; }
.facts li { flex: 1; border: 1px solid var(--line); padding: 14px 6px; text-align: center; font-size: 13px; color: var(--muted); }
.facts b { display: block; font: 500 32px/1 var(--serif); color: var(--gold); margin-bottom: 4px; font-variant-numeric: lining-nums; }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; margin: 0 0 26px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 26px; height: 26px; border: 1px solid var(--gold); margin: 0; display: grid; place-content: center; cursor: pointer; }
.check input:checked::after { content: ""; width: 12px; height: 12px; background: var(--gold); }

.btn { display: block; width: 100%; min-height: 58px; margin: 12px 0 0; border: 1px solid var(--gold); background: var(--gold); color: #000;
  font: 500 15px var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; border-radius: 0; -webkit-tap-highlight-color: transparent; text-align: center; text-decoration: none; line-height: 56px; }
.btn:active { background: var(--gold-2); }
.btn:disabled { opacity: .35; cursor: default; }
.btn.ghost { background: transparent; color: var(--gold); }

.field { display: block; margin: 0 0 18px; }
.field span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.field input, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #555; color: #fff; font: 400 20px var(--sans); padding: 10px 0; border-radius: 0; outline: none; }
.field select option { background: #111; }
.field input:focus, .field select:focus { border-bottom-color: var(--gold); }

.cam { position: relative; background: #111; border: 1px solid var(--line); overflow: hidden; margin: 0 0 14px; }
.cam video { display: block; width: 100%; max-height: 52vh; object-fit: cover; aspect-ratio: 3 / 4; transform: scaleX(-1); background: #111; }
.meter { height: 6px; background: #1c1c1c; margin: 6px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .08s linear; }

dialog { background: #0b0b0b; color: #ddd; border: 1px solid var(--gold); padding: 0; width: min(640px, 94vw); max-height: 86vh; }
dialog::backdrop { background: rgba(0, 0, 0, .8); }
.dlg-body { padding: 20px; font-size: 14px; line-height: 1.5; overflow: auto; max-height: calc(86vh - 90px); }
dialog .btn { margin: 0; }

/* ---------- Диалог с Анастасией ---------- */
.talk { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; }
.talk .top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 0; padding-top: max(14px, env(safe-area-inset-top));
  font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; z-index: 3; }
.talk .top .brandmark { color: var(--gold); letter-spacing: .45em; font-weight: 500; }
.talk .top .rec { margin-left: auto; color: #ff5a5a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.progress { height: 2px; background: #1a1a1a; margin: 10px 16px 0; z-index: 3; }
.progress b { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s; }

.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.stage .portrait, .stage video.avatar, .stage video.idle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.stage video.avatar { opacity: 0; transition: opacity .15s; }
.stage video.avatar.on { opacity: 1; }
/* мягкие переходы (boutique.yaml: soft_transitions): появление фразы 0,4 с, уход в ожидание 0,25 с */
.stage video.avatar.soft { transition: opacity .25s ease-in-out; }
.stage video.avatar.soft.on { transition: opacity .4s ease-in-out; }
.stage .overlay { pointer-events: none; }
.stage .boutique { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.92)); pointer-events: none; }

.silhouette { position: absolute; inset: 0; display: grid; justify-items: center; align-items: start; padding-top: 3vh; }
.silhouette svg { width: min(70vw, 44vh); height: auto; overflow: visible; }
.silhouette .halo { transform-origin: 200px 190px; transition: transform .1s linear, opacity .2s; opacity: .35; }

.selfview { position: absolute; top: 12px; right: 12px; width: 27vw; max-width: 150px; aspect-ratio: 3 / 4; border: 1px solid var(--gold-3);
  overflow: hidden; z-index: 4; background: #111; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.selfview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }

.caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px 14px; z-index: 3; }
.caption .who { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.caption .text { font: 500 25px/1.28 var(--serif); color: #fff; text-shadow: 0 2px 10px #000; font-variant-numeric: lining-nums; max-height: 34vh; overflow: auto; }
.caption .text.question { font-size: 28px; }

.controls { padding: 12px 20px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); z-index: 3; background: #000; }
.status { display: flex; align-items: center; gap: 12px; min-height: 30px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.status .bars { display: flex; gap: 3px; align-items: center; height: 22px; }
.status .bars i { width: 4px; height: 4px; background: var(--gold); display: block; transition: height .08s; }
.status.listening { color: #fff; }
.status .pause { margin-left: auto; color: var(--gold-2); font-size: 13px; }
.controls .btn { margin-top: 10px; }

.video-page main { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.video-page video { width: 100%; max-height: 78vh; background: #000; border: 1px solid var(--line); display: block; }
.placeholder { border: 1px solid var(--gold-3); padding: 48px 24px; text-align: center; color: #ddd; }
.placeholder b { display: block; font: 500 30px/1.2 var(--serif); color: var(--gold); margin-bottom: 10px; }

/* таблица рекрутёра */
.wide { max-width: 1100px; margin: 0 auto; padding: 8px 20px 60px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.result { border: 1px solid var(--gold-3); padding: 16px 18px; margin: 16px 0; font-size: 15px; word-break: break-all; }
.result .row { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.result .row code { flex: 1; color: var(--gold-2); font-size: 14px; }
.small-btn { border: 1px solid var(--gold); background: transparent; color: var(--gold); font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 8px 6px; }
table.list td { border-bottom: 1px solid #161616; padding: 9px 6px; vertical-align: top; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid #444; font-size: 12px; white-space: nowrap; }
.tag.done { border-color: var(--gold); color: var(--gold-2); }
.tag.remind { border-color: #c0654a; color: #f0a38c; }
.tag.next { border-color: #5a9a6a; color: #9fd8ab; }
.home-links li { margin: 12px 0; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } table.list .hide-m { display: none; } }
@media (min-width: 700px) {
  h1 { font-size: 48px; }
  .caption .text { font-size: 30px; } .caption .text.question { font-size: 34px; }
  .selfview { width: 180px; max-width: 180px; top: 16px; right: 16px; }
  .talk { max-width: 900px; margin: 0 auto; border-left: 1px solid #111; border-right: 1px solid #111; }
}

/* надпись на вывеске (поверх видео Анастасии) */
.sign { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; z-index: 2; font-family: "Marcellus", "Cormorant Garamond", serif; color: #fff;
  text-transform: uppercase; white-space: nowrap; line-height: 1; filter: blur(0.35px);
  text-shadow: 0 0 2px rgba(255,255,255,.95), 0 0 7px rgba(255,246,230,.75), 0 0 16px rgba(255,236,210,.45); }
.sign span { display: block; letter-spacing: .14em; padding-left: .14em; }
.sign .l2 { letter-spacing: .22em; padding-left: .22em; margin-top: .28em; opacity: .95; }

/* подсказка над кнопкой окончания ответа */
.done-hint { text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--gold); opacity: .9; margin: 6px 0 4px; }
