/* ================= AUL KING 2027 — black & gold ================= */
:root {
  --bg0: #070605;
  --bg1: #0d0b09;
  --surface: #121009;
  --surface-2: #17140f;
  --gold: #d4af62;
  --gold-hi: #f3dfa6;
  --gold-lo: #9b7a3a;
  --gold-line: rgba(212, 175, 98, .22);
  --gold-line-strong: rgba(212, 175, 98, .55);
  --ivory: #f2ece0;
  --muted: #9c9381;
  --muted-2: #6f685b;
  --danger: #d98a7a;
  --ok: #a8c79a;
  --radius: 2px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gold-grad: linear-gradient(180deg, #fbefc8 0%, #e2c27c 38%, #b58c45 70%, #e6cc8c 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg0); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ivory);
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(212, 175, 98, .11), transparent 62%),
    radial-gradient(900px 600px at 50% 112%, rgba(212, 175, 98, .06), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* тонкая зернистость */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#dust { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* ёлочные шары */
.baubles { position: fixed; top: 0; left: 0; right: 0; height: 0; z-index: 3; pointer-events: none; }
.baubles .bb { position: absolute; top: 0; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.baubles .bb svg { display: block; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (max-width: 1340px) { .baubles:not(.inline) { display: none; } }
.baubles.inline { position: absolute; z-index: 0; }
@media (min-width: 1341px) { .baubles.inline { display: none; } }
.fl { display: inline-block; width: 16px; height: 16px; color: var(--gold); }
.fl svg { width: 100%; height: 100%; display: block; }
::selection { background: rgba(212, 175, 98, .35); color: #fff; }

/* ================= раскладка ================= */
.wrap { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 28px 24px 120px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
a { color: var(--gold-hi); }
code { color: var(--gold-hi); }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; margin-bottom: 48px;
  background: linear-gradient(180deg, rgba(10, 9, 7, .96) 60%, rgba(10, 9, 7, 0));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-line);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.logo svg { width: 26px; height: 26px; color: var(--gold); }
.logo b { font-family: var(--font-serif); font-weight: 600; letter-spacing: .28em; font-size: 18px; text-transform: uppercase; }
.logo b span { color: var(--gold); }
.topbar .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.chip b { color: var(--ivory); font-weight: 700; }

/* ================= типографика ================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase; font-weight: 600;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold-line-strong); }
.eyebrow.left::before { display: none; }
.title-xl {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(56px, 11vw, 132px); line-height: .9; letter-spacing: .04em;
  margin: 22px 0 18px; text-transform: uppercase;
}
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.45; }
.h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 6px; letter-spacing: .01em; }
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 26px auto; }
.rule::before, .rule::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line-strong)); }
.rule::after { background: linear-gradient(90deg, var(--gold-line-strong), transparent); }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); display: block; }
.rule .fl { width: 20px; height: 20px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= таймер ================= */
.countdown { display: flex; justify-content: center; gap: 0; margin: 34px auto 12px; flex-wrap: wrap; }
.cd-box { min-width: 104px; padding: 4px 22px; text-align: center; position: relative; }
.cd-box + .cd-box::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--gold-line); }
.cd-num { font-family: var(--font-serif); font-weight: 500; font-size: 56px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--ivory); }
.cd-lbl { margin-top: 10px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.cd-caption { color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.countdown.compact { margin: 0; flex-wrap: nowrap; }
.countdown.compact .cd-box { min-width: 0; padding: 0 12px; }
.countdown.compact .cd-num { font-size: 22px; }
.countdown.compact .cd-lbl { font-size: 8px; margin-top: 3px; letter-spacing: .2em; }
.ended-badge {
  display: inline-block; padding: 10px 22px; border: 1px solid var(--gold-line-strong);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi);
}

/* ================= карточки ================= */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 21, 15, .92), rgba(14, 12, 9, .92));
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.card.framed::after {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(212, 175, 98, .1); pointer-events: none;
}

/* ================= формы ================= */
.auth { max-width: 460px; margin: 44px auto 0; padding: 40px 38px 34px; }
.tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid var(--gold-line); }
.tab {
  flex: 1; padding: 0 0 14px; border: 0; cursor: pointer; background: transparent;
  color: var(--muted-2); font: 600 12px var(--font); letter-spacing: .3em; text-transform: uppercase;
  position: relative; transition: color .2s;
}
.tab::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.tab.active { color: var(--gold-hi); }
.tab.active::after { transform: scaleX(1); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 10px; font-weight: 600; color: var(--gold); margin-bottom: 8px; letter-spacing: .3em; text-transform: uppercase; }
.input, select.input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--gold-line); color: var(--ivory);
  font: 500 16px var(--font); outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: var(--muted-2); }
select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
select.input option { background: #14110c; color: var(--ivory); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 98, .12); }
.input.code { text-align: center; font: 500 36px var(--font-serif); letter-spacing: .45em; padding-left: calc(16px + .45em); }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.error { color: var(--danger); font-weight: 600; font-size: 13px; min-height: 18px; margin: 4px 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  font: 700 12px var(--font); letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  color: #1a1408;
  background: linear-gradient(180deg, #f1dc9f 0%, #d4af62 48%, #b38a42 100%);
  box-shadow: 0 10px 30px rgba(212, 175, 98, .18), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .15s, box-shadow .25s, filter .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { filter: brightness(1.07); box-shadow: 0 14px 40px rgba(212, 175, 98, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; filter: grayscale(.4); box-shadow: none; }
.btn.block { width: 100%; }
.btn.gold { /* по умолчанию кнопки и так золотые */ }
.btn.ghost, .btn.green, .btn.tg {
  background: transparent; border-color: var(--gold-line-strong); box-shadow: none; color: var(--gold-hi);
}
.btn.ghost:hover, .btn.green:hover, .btn.tg:hover { background: rgba(212, 175, 98, .08); border-color: var(--gold); filter: none; box-shadow: none; }
.btn.tg { color: var(--ivory); }
.btn.danger { background: transparent; border-color: rgba(217, 138, 122, .5); color: var(--danger); box-shadow: none; }
.btn.small { padding: 10px 16px; font-size: 10px; letter-spacing: .22em; }
.linkbtn {
  background: none; border: 0; color: var(--gold); cursor: pointer; padding: 6px;
  font: 600 11px var(--font); letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; text-decoration: none;
}
.linkbtn:hover { color: var(--gold-hi); border-bottom-color: var(--gold-line-strong); }

.steps { list-style: none; padding: 0; margin: 22px 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; line-height: 1.5; font-size: 14px; color: var(--ivory); }
.steps li::before {
  content: counter(s, upper-roman); flex: 0 0 28px; font-family: var(--font-serif); font-size: 18px; color: var(--gold); text-align: right;
}
.status {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--gold-line);
  background: rgba(0, 0, 0, .25); font-weight: 500; font-size: 13px; margin: 14px 0 18px; color: var(--muted);
}
.status .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.4s infinite; }
.status.ok { color: var(--ivory); }
.status.ok .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: none; }
@keyframes pulse { 50% { opacity: .25; } }

/* ================= список номинаций ================= */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.page-head h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1; margin: 16px 0 14px; }
.page-head p { color: var(--muted); max-width: 560px; margin: 0; line-height: 1.6; font-size: 15px; }
.progress { min-width: 260px; flex: 0 1 360px; }
.progress .lbl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.progress .lbl b { font-family: var(--font-serif); font-weight: 500; font-size: 30px; letter-spacing: 0; color: var(--ivory); }
.progress .lbl b small { font-size: 18px; color: var(--muted); }
.progress .bar { height: 2px; background: rgba(212, 175, 98, .15); overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--gold-grad); transition: width .8s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px rgba(212, 175, 98, .6); }

.banner {
  display: flex; align-items: center; gap: 18px; padding: 20px 26px; margin-bottom: 34px;
  border: 1px solid var(--gold-line-strong);
  background: linear-gradient(90deg, rgba(212, 175, 98, .1), rgba(212, 175, 98, .02));
  line-height: 1.55; font-size: 15px;
}
.banner .mark { flex: 0 0 auto; width: 38px; height: 38px; color: var(--gold); }

.nom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.nom-card {
  position: relative; display: flex; flex-direction: column; min-height: 250px;
  padding: 30px 30px 26px; text-decoration: none; color: var(--ivory);
  background: var(--bg1); overflow: hidden;
  transition: background .35s;
}
.nom-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(500px 240px at 50% 0%, rgba(212, 175, 98, .14), transparent 70%);
}
.nom-card:hover { background: #12100c; }
.nom-card:hover::before { opacity: 1; }
.nom-card .nc-flake { position: absolute; top: 26px; right: 26px; width: 26px; height: 26px; color: var(--gold); opacity: .22; transition: opacity .4s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.nom-card .nc-flake svg { width: 100%; height: 100%; display: block; }
.nom-card:hover .nc-flake { opacity: .85; transform: rotate(120deg); }
.nom-card.voted .nc-flake { opacity: .5; }
.nom-card .num { font-family: var(--font-serif); font-size: 15px; color: var(--gold); letter-spacing: .14em; }
.nom-card .num span { color: var(--muted-2); }
.nom-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 34px; line-height: 1.05; margin: 18px 0 10px; }
.nom-card .desc { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--muted); line-height: 1.4; }
.nom-card .foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nom-card .cta { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.nom-card .cta::after { content: "→"; letter-spacing: 0; font-size: 14px; transition: transform .3s; }
.nom-card:hover .cta::after { transform: translateX(5px); }
.nom-card .choice { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nom-card .choice img { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--gold-line-strong); padding: 2px; background: #000; }
.nom-card .choice small { display: block; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.nom-card .choice b { font-family: var(--font-serif); font-weight: 600; font-size: 20px; }
.nom-card.voted { background: linear-gradient(180deg, #14110b, var(--bg1)); }
.nom-card.voted .num::after { content: "  ·  голос отдан"; color: var(--ok); font-family: var(--font); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; }

/* ================= страница номинации ================= */
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; transition: color .2s; }
.back:hover { color: var(--gold-hi); }
.nom-hero { text-align: center; margin: 18px auto 46px; max-width: 820px; }
.nom-hero .eyebrow { margin-bottom: 6px; }
.nom-hero h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(44px, 8vw, 96px); line-height: .98; margin: 18px 0 16px; }
.nom-hero p { font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 2.4vw, 25px); color: var(--muted); margin: 0; line-height: 1.4; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; max-width: 1040px; margin: 0 auto; }
.person {
  position: relative; display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.person .frame {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #000;
  outline: 1px solid var(--gold-line); outline-offset: 6px;
  transition: outline-color .3s, outline-offset .3s, box-shadow .4s;
}
.person .frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s; filter: saturate(.92) contrast(1.02); }
.person:hover:not(:disabled) .frame { outline-color: var(--gold-line-strong); }
.person:hover:not(:disabled) .frame img { transform: scale(1.04); }
.person .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; }
.person .nm { font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 1; }
.person .tag { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.person .seal {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #1a1408;
  background: radial-gradient(circle at 35% 30%, #fff3c9, #d4af62 55%, #9b7a3a);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  transform: scale(0) rotate(-40deg); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.person .seal svg { width: 20px; height: 20px; }
.person.selected .frame { outline: 2px solid var(--gold); outline-offset: 6px; box-shadow: 0 0 0 1px rgba(212, 175, 98, .3), 0 24px 70px rgba(212, 175, 98, .18); }
.person.selected .seal { transform: scale(1) rotate(0); }
.person.selected .nm { color: var(--gold-hi); }
.person.selected .tag { color: var(--gold); }
.person.self { cursor: not-allowed; }
.person.self .frame img { filter: grayscale(1) brightness(.45); }
.person.self .frame::before {
  content: "Это вы"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--ivory);
}
.person:disabled:not(.self) { cursor: default; }

.confirm-bar {
  position: sticky; bottom: 0; z-index: 30; margin-top: 56px;
  background: linear-gradient(180deg, rgba(20, 17, 12, .97), rgba(12, 10, 8, .98));
  border: 1px solid var(--gold-line-strong); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.confirm-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 20px 26px; }
.confirm-pick { display: flex; align-items: center; gap: 16px; min-width: 210px; }
.confirm-pick .thumb { width: 58px; height: 58px; background: #000 center / cover; border: 1px solid var(--gold-line-strong); flex: 0 0 auto; }
.confirm-pick .thumb.empty { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(212, 175, 98, .07) 6px 7px); }
.confirm-pick small { display: block; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.confirm-pick b { font-family: var(--font-serif); font-weight: 500; font-size: 26px; line-height: 1; }
.consent { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 13px; line-height: 1.55; color: var(--muted); user-select: none; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--gold-line-strong);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.consent .box svg { width: 12px; height: 12px; color: #1a1408; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.consent input:checked + .box { background: var(--gold); border-color: var(--gold); }
.consent input:checked + .box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(212, 175, 98, .3); }
.consent:hover .box { border-color: var(--gold); }
.consent b { color: var(--ivory); font-weight: 600; }
.consent.disabled { opacity: .4; pointer-events: none; }
/* короткий текст согласия и кнопка «ещё» — только на телефоне */
.consent .cdots, .consent .cmore, .btn .lbl-short { display: none; }
.cmore {
  background: none; border: 0; padding: 0 2px; cursor: pointer; pointer-events: auto;
  font: 600 11px var(--font); letter-spacing: .06em; color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line-strong);
}
.confirm-done { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 26px; }
.confirm-done .msg { display: flex; align-items: center; gap: 14px; font-family: var(--font-serif); font-size: 24px; }
.confirm-done .msg svg { width: 30px; height: 30px; color: var(--gold); flex: 0 0 auto; }
.confirm-done .msg small { display: block; font-family: var(--font); font-size: 12px; color: var(--muted); letter-spacing: .02em; margin-top: 4px; }
.nom-nav { display: flex; justify-content: space-between; gap: 16px; margin: 40px auto 0; max-width: 1040px; }

/* ================= тост ================= */
.toast {
  position: fixed; left: 50%; top: 22px; transform: translate(-50%, -160%);
  z-index: 100; padding: 14px 24px; font-size: 13px; font-weight: 500; letter-spacing: .03em;
  background: rgba(16, 14, 10, .97); border: 1px solid var(--gold-line-strong); color: var(--ivory);
  box-shadow: var(--shadow);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.1); max-width: calc(100% - 32px); text-align: center;
}
.toast::before { content: ""; display: inline-block; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); margin-right: 12px; vertical-align: 2px; }
.toast.show { transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(217, 138, 122, .6); }
.toast.bad::before { background: var(--danger); }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ================= админка ================= */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin-bottom: 28px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.stat { padding: 24px 22px; background: var(--bg1); }
.stat .v { font-family: var(--font-serif); font-weight: 500; font-size: 38px; line-height: 1; }
.stat .k { color: var(--gold); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; margin-top: 10px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; padding: 10px; border-bottom: 1px solid var(--gold-line); }
table.t td { padding: 12px 10px; border-bottom: 1px solid rgba(212, 175, 98, .07); vertical-align: middle; }
.pill { display: inline-block; padding: 4px 10px; font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border: 1px solid currentColor; }
.pill.ok { color: var(--ok); }
.pill.no { color: var(--danger); }
.pill.gold { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.res-nom { margin-bottom: 22px; }
.res-nom h4 { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 500; font-size: 21px; }
.res-line { display: grid; grid-template-columns: 90px 1fr 80px; gap: 12px; align-items: center; font-size: 13px; margin: 6px 0; }
.res-line .b { height: 3px; background: rgba(212, 175, 98, .12); overflow: hidden; }
.res-line .b i { display: block; height: 100%; background: var(--gold-grad); }
.spoiler { filter: blur(10px); user-select: none; pointer-events: none; transition: filter .3s; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card .h2.sm { font-size: 26px; margin-bottom: 4px; }

@media (max-width: 760px) {
  /* компактная панель: сверху галочка, ниже — выбор и кнопка в одну строку */
  .confirm-inner {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "consent consent" "pick btn";
    gap: 12px 14px; padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  }
  .confirm-inner .consent { grid-area: consent; }
  .confirm-inner .confirm-pick { grid-area: pick; min-width: 0; gap: 10px; }
  .confirm-inner .btn { grid-area: btn; padding: 13px 16px; font-size: 10px; letter-spacing: .18em; }
  .confirm-pick .thumb { width: 40px; height: 40px; }
  .confirm-pick small { font-size: 8px; margin-bottom: 2px; }
  .confirm-pick b { display: block; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .consent { gap: 12px; }
  .consent .box { width: 22px; height: 22px; margin-top: 0; }
  .consent .ctail { display: none; }
  .consent .cdots, .consent .cmore { display: inline; }
  .consent.expanded .ctail { display: inline; }
  .consent.expanded .cdots { display: none; }
  .btn .lbl-full { display: none; }
  .btn .lbl-short { display: inline; }
  .confirm-done { padding: 14px 16px max(14px, env(safe-area-inset-bottom)); gap: 12px; }
  .confirm-done .msg { font-size: 20px; gap: 10px; }
  .confirm-done .msg svg { width: 24px; height: 24px; }
  .confirm-done .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .confirm-done .actions .btn { padding: 12px 6px; font-size: 9px; letter-spacing: .12em; }
}
@media (max-width: 640px) {
  .wrap { padding: 16px 16px 80px; }
  .topbar { margin-bottom: 30px; padding: 12px 0; }
  .topbar .countdown.compact { display: none; }
  .logo b { font-size: 14px; letter-spacing: .2em; }
  .card { padding: 24px 20px; }
  .auth { padding: 30px 22px 26px; }
  .cd-box { min-width: 70px; padding: 4px 10px; }
  .cd-num { font-size: 40px; }
  .nom-grid { grid-template-columns: 1fr; }
  .nom-card { min-height: 0; padding: 24px 22px 22px; }
  .nom-card h3 { font-size: 30px; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .person .frame { outline-offset: 4px; }
  .person.selected .frame { outline-offset: 4px; }
  .person .nm { font-size: 24px; }
  .person .meta { flex-direction: column; gap: 6px; margin-top: 14px; }
  .person .seal { width: 34px; height: 34px; top: 10px; right: 10px; }
  .confirm-bar { margin-left: -16px; margin-right: -16px; }
  .consent { font-size: 12px; line-height: 1.45; }
  .nom-nav .linkbtn { font-size: 9px; }
}
@media (max-width: 430px) {
  .topbar .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
