/* «Выпускник Краснообска 2026» — дизайн-система.
   Тёмная тема по мотивам reevun.app / resend.com, фирменные цвета группы
   конкурса. Монохромная: белый, серые, чёрный. */

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f10;
  --card: rgba(23, 23, 23, 0.6);
  --card-solid: #151516;
  --card-hover: #1a1a1b;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ring: rgba(255, 255, 255, 0.22);
  --text: #fafafa;
  --muted: #a1a1a1;
  --subtle: #6e6e6e;

  --blue: #d4d4d4;
  --cyan: #fafafa;
  --mint: #fafafa;
  --grad: #fafafa;
  --grad-soft: rgba(255, 255, 255, 0.08);

  --success: #fafafa;
  --danger: #ff6568;
  --warning: #ffc15e;

  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Unbounded', 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 0.6s var(--ease) both;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
}

::selection {
  background: rgba(255, 255, 255, 0.15);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 18px;
  font-weight: 500;
}
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 820px;
}
@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
}

.muted {
  color: var(--muted);
}
.subtle {
  color: var(--subtle);
}
.small {
  font-size: 13px;
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}
.hidden {
  display: none !important;
}
.center {
  text-align: center;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--border), 0 4px 16px rgba(255, 255, 255, 0.125);
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

.nav {
  position: relative;
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  position: relative;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
}
.nav__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 0;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) {
  top: 14px;
}
.nav-toggle span:nth-child(2) {
  top: 19px;
}
.nav-toggle span:nth-child(3) {
  top: 24px;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.35s var(--ease);
  }
  .nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 14px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav__pill {
    display: none;
  }
}

/* ---------- основной контент ---------- */

main {
  flex: 1;
  position: relative;
}
.section {
  padding: 88px 0;
}
.section--line {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.page-head {
  padding: 56px 0 32px;
}
.page-head p {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  max-width: 28ch;
}
.section-sub {
  margin-top: 12px;
  color: var(--muted);
  max-width: 60ch;
}
.stack > * + * {
  margin-top: 16px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid > * {
  min-width: 0;
}
@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid--main {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  isolation: isolate;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(36px, 7.4vw, 78px);
}
.hero h1 .thin {
  display: block;
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.34em;
  letter-spacing: 0.32em;
  margin-top: 14px;
  color: var(--muted);
}
.hero__lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 50ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero__hat {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 20px 60px rgba(255, 255, 255, 0.175);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

/* ---------- кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 500 14px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  user-select: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.16s ease-out, opacity 0.2s;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg.arrow {
  transform: translateX(3px);
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.175);
}
/* блик, пробегающий по кнопке при наведении */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.65s;
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn--primary {
  background: #ececec;
  color: #111;
}
.btn--primary:hover {
  background: #fff;
}
.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn--brand {
  color: #0a0a0a;
  background: var(--grad);
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
  animation: brand-pulse 3s ease-in-out infinite;
}
.btn--brand:hover {
  box-shadow: 0 10px 44px rgba(255, 255, 255, 0.225);
}
@keyframes brand-pulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.14);
  }
  50% {
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.21);
  }
}
.btn--ghost {
  color: var(--muted);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.btn--danger {
  color: #fff;
  background: rgba(255, 101, 104, 0.14);
  border-color: rgba(255, 101, 104, 0.35);
}
.btn--danger:hover {
  background: rgba(255, 101, 104, 0.24);
}
.btn--sm {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 12px;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.45;
  pointer-events: none;
  animation: none;
}
.btn.is-loading {
  opacity: 0.85;
}
.btn .spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.link:hover {
  text-decoration-color: currentColor;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
@media (max-width: 560px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- карточки ---------- */

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.4s var(--ease);
}
@media (min-width: 768px) {
  .card--pad {
    padding: 32px;
  }
}
.card--hover:hover {
  background: var(--card-hover);
  box-shadow: 0 0 0 1px var(--ring);
}
/* подсветка, следующая за курсором */
.spot {
  overflow: hidden;
}
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.045), transparent 45%);
}
.spot:hover::before {
  opacity: 1;
}
.card h3 + p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--mint);
  margin-bottom: 16px;
  transition: transform 0.5s var(--ease);
}
.icon-box svg {
  width: 20px;
  height: 20px;
}
.card--hover:hover .icon-box {
  transform: rotate(-6deg) scale(1.08);
}

/* ---------- появление при прокрутке ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}
.swap-in {
  animation: swap-in 0.55s var(--ease) both;
}
@keyframes swap-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
}
.swap-in > * {
  animation: swap-in 0.6s var(--ease) both;
}
.swap-in > *:nth-child(2) {
  animation-delay: 60ms;
}
.swap-in > *:nth-child(3) {
  animation-delay: 120ms;
}
.swap-in > *:nth-child(4) {
  animation-delay: 180ms;
}
.swap-in > *:nth-child(5) {
  animation-delay: 240ms;
}
.swap-in > *:nth-child(n + 6) {
  animation-delay: 300ms;
}

/* ---------- скелетоны и мерцающий текст ---------- */

.sk {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: sk 1.4s ease-in-out infinite;
}
@keyframes sk {
  to {
    transform: translateX(100%);
  }
}
.sk--title {
  height: 32px;
  width: 60%;
}
.sk--line {
  height: 14px;
  width: 100%;
}
.sk--line + .sk--line {
  margin-top: 10px;
}
.sk--short {
  width: 40%;
}
.sk--block {
  height: 72px;
  border-radius: 12px;
}
.sk--block + .sk--block {
  margin-top: 12px;
}
.sk--btn {
  height: 44px;
  width: 180px;
  border-radius: 10px;
}

.shimmer {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 40%, #fff 50%, var(--muted) 60%, var(--muted) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}

/* ---------- метки ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  white-space: nowrap;
}
.badge--live {
  color: var(--mint);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.badge--done {
  color: var(--cyan);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.badge--draft {
  color: var(--warning);
  border-color: rgba(255, 193, 94, 0.3);
  background: rgba(255, 193, 94, 0.08);
}
.badge--danger {
  color: var(--danger);
  border-color: rgba(255, 101, 104, 0.3);
  background: rgba(255, 101, 104, 0.08);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.dot--pulse {
  box-shadow: 0 0 0 0 currentColor;
  animation: dot-pulse 1.8s ease-out infinite;
}
@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.0);
  }
}

/* ---------- уведомления ---------- */

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.note__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.note b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.note p {
  color: var(--muted);
  font-size: 14px;
}
.note--success {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.note--success .note__icon {
  color: var(--mint);
}
.note--danger {
  border-color: rgba(255, 101, 104, 0.3);
  background: rgba(255, 101, 104, 0.06);
}
.note--danger .note__icon {
  color: var(--danger);
}
.note--warning {
  border-color: rgba(255, 193, 94, 0.28);
  background: rgba(255, 193, 94, 0.05);
}
.note--warning .note__icon {
  color: var(--warning);
}
.note + *,
* + .note {
  margin-top: 16px;
}

/* ---------- статистика ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-2);
  padding: 20px 22px;
}
.stat__value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat__value {
  display: flex;
  align-items: center;
  min-height: 34px;
}
.stat__value--sm {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.4;
  word-break: break-word;
}
.stat__label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- таймер ---------- */

.countdown {
  display: flex;
  gap: 8px;
}
.countdown__cell {
  min-width: 68px;
  padding: 10px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.countdown__num {
  display: block;
  height: 30px;
  overflow: hidden;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 30px;
}
.countdown__num span {
  display: block;
  animation: digit-in 0.5s var(--ease);
}
@keyframes digit-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
}
.countdown__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- шаги «как это работает» ---------- */

.steps {
  counter-reset: step;
}
.step-card {
  counter-increment: step;
}
.step-card::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 22px;
  font: 600 13px var(--mono);
  color: var(--subtle);
}

/* ---------- номинации на главной ---------- */

.nominee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.chip:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
}
.avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

/* ---------- голосование ---------- */

.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.stepper__item {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--subtle);
  transition: color 0.3s;
}
.stepper__bar {
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}
.stepper__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.stepper__item.done .stepper__bar::after,
.stepper__item.current .stepper__bar::after {
  transform: scaleX(1);
}
.stepper__item.done,
.stepper__item.current {
  color: var(--text);
}
@media (max-width: 600px) {
  .stepper__item {
    font-size: 0;
  }
  .stepper__item.current {
    font-size: 12px;
    flex: 3;
  }
}

.question + .question {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
fieldset.question {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.question__title {
  font-size: 20px;
  font-weight: 600;
}
.question__desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
@media (min-width: 700px) {
  .options {
    grid-template-columns: 1fr 1fr;
  }
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.option:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.option:active {
  transform: scale(0.99);
}
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s;
}
.option:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.275);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.125), 0 10px 30px rgba(255, 255, 255, 0.06);
}
.option:has(input:checked)::before {
  opacity: 1;
}
.option > * {
  position: relative;
}
.option__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}
.option__radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.option input:checked ~ .option__radio {
  border-color: var(--mint);
}
.option input:checked ~ .option__radio::after {
  transform: scale(1);
}
.option input:focus-visible ~ .option__radio {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.175);
}
.option__name {
  font-weight: 500;
}
.option__desc {
  font-size: 13px;
  color: var(--muted);
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.check input {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.check input::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #0a0a0a;
  border-bottom: 2px solid #0a0a0a;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.check input:checked {
  background: var(--mint);
  border-color: var(--mint);
}
.check input:checked::after {
  transform: rotate(-45deg) scale(1);
}
.check input:checked + span {
  color: var(--text);
}

/* процесс отправки */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.flow li {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 0 0 22px;
  color: var(--subtle);
  transition: color 0.4s;
}
.flow li:last-child {
  padding-bottom: 0;
}
.flow li::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.flow li:last-child::before {
  display: none;
}
.flow li::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.flow li.done::after {
  transform: scaleY(1);
}
.flow li:last-child::after {
  display: none;
}
.flow li.active,
.flow li.done {
  color: var(--text);
}
.flow li.error {
  color: var(--danger);
}
.flow__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: border-color 0.3s, background 0.3s;
}
.flow li.active .flow__icon {
  border-color: transparent;
  background: conic-gradient(from 0deg, var(--cyan), var(--mint), transparent 70%);
  animation: spin 0.9s linear infinite;
}
.flow li.active .flow__icon::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--bg-2);
}
.flow li.done .flow__icon {
  border-color: transparent;
  background: var(--grad);
}
.flow li.error .flow__icon {
  border-color: var(--danger);
  background: rgba(255, 101, 104, 0.15);
}
.flow__icon svg {
  width: 14px;
  height: 14px;
  opacity: 0;
}
.flow li.done .flow__icon svg {
  opacity: 1;
  color: #0a0a0a;
}
.flow li.done .flow__icon svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.45s var(--ease) 0.1s forwards;
}
.flow__title {
  font-weight: 500;
}
.flow__desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--subtle);
}
.flow li.active .flow__desc,
.flow li.done .flow__desc {
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* большая галочка успеха */
.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04), 0 20px 60px rgba(255, 255, 255, 0.175);
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success-mark svg {
  width: 36px;
  height: 36px;
  color: #0a0a0a;
}
.success-mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.6s var(--ease) 0.35s forwards;
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

/* квитанция */
.receipt {
  position: relative;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}
.receipt__code {
  position: relative;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #070707;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
  overflow: hidden;
}
.typing::after {
  content: '▍';
  color: var(--mint);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.kv {
  display: grid;
  grid-template-columns: minmax(110px, 170px) 1fr;
  gap: 10px 16px;
  margin: 0;
  font-size: 14px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  min-width: 0;
}
@media (max-width: 560px) {
  .kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .kv dd {
    margin-bottom: 10px;
  }
}
.kv + .receipt,
.receipt + .kv,
.actions + p {
  margin-top: 16px;
}

/* список проверок */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checks li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.checks li:last-child {
  border-bottom: 0;
}
.checks .ci {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--d, 0ms);
}
.checks .ci svg {
  width: 12px;
  height: 12px;
}
.checks .ok .ci {
  background: var(--grad);
  color: #0a0a0a;
}
.checks .fail .ci {
  background: var(--danger);
  color: #fff;
}
.checks .na .ci {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.checks .sub {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- формы ---------- */

.input,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 400 15px/1.4 var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.textarea {
  min-height: 84px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--subtle);
}
.input:hover,
.textarea:hover {
  border-color: var(--border-strong);
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.05);
}
.input--mono {
  font-family: var(--mono);
  font-size: 13px;
}
.field + .field {
  margin-top: 14px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row > .input {
  flex: 1 1 260px;
}
.shake {
  animation: shake 0.45s;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* ---------- таблица реестра ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th {
  color: var(--subtle);
  font-weight: 500;
}
.table tbody tr {
  transition: background 0.2s;
  animation: swap-in 0.5s var(--ease) both;
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.table tr.hl td {
  background: rgba(255, 255, 255, 0.035);
}


/* ---------- итоги ---------- */

.result-row + .result-row {
  margin-top: 18px;
}
.result-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
}
.result-row__value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
.result-row__value b {
  color: var(--text);
  font-size: 16px;
}
.bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 1.2s var(--ease);
}
.result-row.leader .bar__fill {
  background: var(--grad);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ---------- FAQ ---------- */

.faq {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--mint);
}
.faq summary i {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.faq summary i::before,
.faq summary i::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq summary i::after {
  transform: rotate(90deg);
}
.faq[open] summary i::after {
  transform: rotate(0deg);
}
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq[open] .faq__body {
  grid-template-rows: 1fr;
}
.faq__body > div {
  overflow: hidden;
}
.faq__body p {
  padding-bottom: 20px;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- модальное окно и тост ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.25s both;
}
.modal__box {
  width: 100%;
  max-width: 440px;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.4s var(--ease) both;
}
.modal__box h3 {
  font-size: 18px;
  font-weight: 600;
}
.modal__box p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.modal.closing {
  animation: fade 0.2s reverse both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(23, 23, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  transform: translateX(-50%);
  animation: toast-in 0.45s var(--ease) both;
}
.toast.out {
  animation: toast-out 0.3s var(--ease) both;
}
.toast .dot {
  color: var(--mint);
  background: var(--mint);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.95);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.97);
  }
}

/* ---------- подвал ---------- */

.footer {
  position: relative;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  gap: 40px;
  padding: 56px 0 40px;
}
@media (min-width: 860px) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}
.footer__about p {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 14px;
}
.footer__status {
  margin-top: 20px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer li {
  font-size: 14px;
  color: var(--muted);
}
.footer li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.3s var(--ease);
}
.footer li a:hover {
  color: var(--text);
  transform: translateX(3px);
}
.footer li a svg {
  width: 13px;
  height: 13px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--subtle);
}
.footer__word {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  margin-bottom: -2px;
  font: 700 128px var(--display);
  text-transform: uppercase;
  user-select: none;
}

/* ---------- админ-панель ---------- */

.admin-list {
  display: grid;
  gap: 12px;
}
.election-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.election-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.builder-q {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  animation: swap-in 0.45s var(--ease) both;
}
.builder-q + .builder-q {
  margin-top: 12px;
}
.builder-q__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.builder-c {
  display: grid;
  grid-template-columns: 28px 1fr 1fr 36px;
  gap: 8px;
  align-items: center;
  animation: swap-in 0.35s var(--ease) both;
}
.builder-c + .builder-c {
  margin-top: 8px;
}
.builder-c__num {
  font: 500 12px var(--mono);
  color: var(--subtle);
  text-align: center;
}
@media (max-width: 640px) {
  .builder-c {
    grid-template-columns: 1fr 36px;
  }
  .builder-c__num {
    display: none;
  }
  .builder-c .input:nth-of-type(2) {
    grid-column: 1 / 2;
  }
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover {
  color: var(--danger);
  border-color: rgba(255, 101, 104, 0.4);
  background: rgba(255, 101, 104, 0.08);
}
.icon-btn:active {
  transform: scale(0.92);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}
.empty {
  text-align: center;
  padding: 56px 24px;
}
.empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  animation: float 6s ease-in-out infinite;
}
.empty__icon svg {
  width: 28px;
  height: 28px;
}
.empty p {
  margin: 10px auto 0;
  max-width: 44ch;
  color: var(--muted);
}

/* ---------- доступность ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- вспомогательные ---------- */

.top-gap {
  margin-top: 40px;
}
.badge-sk,
.footer__status .sk--btn {
  display: block;
  height: 28px;
  width: 190px;
  border-radius: 999px;
}
.lead-sk {
  width: min(480px, 100%);
}
.center-sk {
  margin: 10px auto 0;
}
.hero .sk--btn {
  display: inline-block;
}
.top-gap-sm {
  margin-top: 16px;
}
.center-v {
  align-self: center;
}
.top-gap-xs {
  margin-top: 6px;
}
.empty .actions {
  justify-content: center;
}
.eyebrow .badge + span {
  color: var(--text);
}
.winners {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  display: grid;
  gap: 4px;
}
.election-card__head h2 {
  font-size: 24px;
}
.error-code {
  font: 700 clamp(96px, 22vw, 200px) / 1 var(--display);
  letter-spacing: -0.04em;
}
.page-head h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  max-width: 22ch;
}
@media (min-width: 768px) {
  .grid--main > aside {
    position: sticky;
    top: 88px;
  }
}

/* ---------- правки: итоги, прогресс, подвал ---------- */

.stat__label {
  margin-top: 0;
}
.result-row__name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.winner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  margin-left: 6px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.175);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}
.winner svg {
  width: 13px;
  height: 13px;
}

.progress {
  height: 4px;
  margin-top: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: opacity 0.6s;
}
.progress.done {
  opacity: 0;
}
.progress__fill {
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  transition: width 0.3s var(--ease);
}
.progress__fill.bad {
  background: var(--danger);
}

/* одна номинация — на всю ширину; нечётная последняя — тоже */
@media (min-width: 768px) {
  .nominations-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* «ВЫПУСКНИК» в подвале выезжает снизу и уходит за край */
.footer__word {
  margin-bottom: -4.2%;
  opacity: 0;
  transform: translateY(60%);
  transition: transform 1.6s var(--ease), opacity 1.6s var(--ease);
}
.footer__word.in {
  opacity: 1;
  transform: none;
}

/* логотип: обе строки строго одной ширины */
.brand__word {
  display: block;
  width: 124px;
  height: 30px;
  overflow: visible;
}
.brand__word .brand__name {
  font: 700 14.5px var(--display);
  fill: var(--text);
}
.brand__word .brand__sub {
  font: 400 9px var(--font);
  fill: var(--muted);
}

/* кнопка входа через ВКонтакте */
.btn--vk {
  color: #fff;
  background: #0077ff;
  box-shadow: 0 8px 28px rgba(0, 119, 255, 0.35);
}
.btn--vk:hover {
  background: #1a85ff;
}
.btn--vk svg {
  width: 20px;
  height: 20px;
}
.text {
  color: var(--text);
}

/* сообщения об ошибке под формой — с отступом от полей */
[id$='-error']:not(:empty),
[id$='-report']:not(:empty) {
  margin-top: 16px;
}

/* ---------- одностраничное голосование ---------- */

.hero--compact {
  padding: 56px 0 56px;
}
.eyebrow--center {
  justify-content: center;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--mint);
}
.vote-section {
  padding-bottom: 120px;
}
.vote-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.vote-head + .note {
  margin: 0 0 24px;
}
.candidates {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (max-width: 560px) {
  .candidates {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.candidate-sk {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}
.candidate {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.candidate:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.candidate:active {
  transform: scale(0.98);
}
.candidate input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.candidate:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.175), 0 18px 50px rgba(255, 255, 255, 0.1);
}
.candidate:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.225);
}
.candidate__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.06));
  overflow: hidden;
}
.candidate__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.candidate:hover .candidate__photo img {
  transform: scale(1.04);
}
.candidate__initials {
  font: 700 44px var(--display);
  color: rgba(255, 255, 255, 0.85);
}
.candidate__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #0a0a0a;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.candidate__check svg {
  width: 16px;
  height: 16px;
}
.candidate:has(input:checked) .candidate__check {
  transform: scale(1);
}
.candidate__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
}
.candidate__name {
  font-weight: 600;
  line-height: 1.3;
}
.candidate__desc {
  font-size: 13px;
  color: var(--muted);
}

/* панель «Проголосовать» внизу экрана */
.vote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--border);
  animation: bar-in 0.45s var(--ease) both;
}
.vote-bar[hidden] {
  display: none;
}
@keyframes bar-in {
  from {
    transform: translateY(100%);
  }
}
.vote-bar__inner {
  max-width: 1104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vote-bar__choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vote-bar__choice b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vote-bar .btn {
  flex-shrink: 0;
}
.thanks h2 {
  margin-top: 4px;
}
.thanks .actions,
.empty .actions {
  justify-content: center;
}
.empty h2 {
  font-size: 24px;
}

/* ---------- админка: участники с фото и итоги ---------- */

.builder-p {
  display: grid;
  grid-template-columns: 96px 1fr 36px;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  animation: swap-in 0.35s var(--ease) both;
}
.builder-p + .builder-p {
  margin-top: 10px;
}
.builder-p__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.builder-p__photo:hover {
  border-color: var(--mint);
  background: rgba(255, 255, 255, 0.03);
}
.builder-p__photo svg {
  width: 20px;
  height: 20px;
}
.builder-p__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.builder-p__photo.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23fafafa' stroke-width='2.5' stroke-dasharray='40 20'/%3E%3C/svg%3E") center/28px no-repeat;
  animation: spin 0.9s linear infinite;
}
.builder-p__fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.builder-p__fields .builder-c__num {
  text-align: left;
}
@media (max-width: 560px) {
  .builder-p {
    grid-template-columns: 80px 1fr;
  }
  .builder-p__photo {
    width: 80px;
  }
  .builder-p .icon-btn {
    grid-column: 2;
    justify-self: end;
  }
}
.results-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.results-table tfoot td {
  font-weight: 600;
  border-bottom: 0;
}

/* уточнения одностраничной версии */
.candidates {
  grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
  justify-content: center;
}
@media (max-width: 560px) {
  .candidates {
    grid-template-columns: repeat(2, 1fr);
  }
}
.vote-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}
.vote-head p {
  max-width: 52ch;
}
@media (min-width: 860px) {
  .footer__grid {
    grid-template-columns: minmax(0, 350px) auto;
    justify-content: space-between;
    align-items: center;
    column-gap: 56px;
  }
}

/* ---------- окно симуляции ---------- */

.modal__box--wide {
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.seg input {
  position: absolute;
  opacity: 0;
}
.seg span {
  display: block;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg input:checked + span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.sim-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.sim-row + .sim-row {
  margin-top: 8px;
}

/* ---------- логотип конкурса вместо текстового заголовка ---------- */

.hero__logo {
  width: min(300px, 70vw);
  margin: 0 auto;
  line-height: 0;
}
.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(255, 255, 255, 0.125));
}
.hero--compact .eyebrow--center {
  order: -1;
}

/* ---------- подсказка «Зрительское голосование» ---------- */

.hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hint__btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: help;
  transition: color 0.2s;
}
.hint__btn svg {
  width: 16px;
  height: 16px;
}
.hint__btn:hover,
.hint__btn:focus-visible,
.hint.open .hint__btn {
  color: var(--text);
}
.hint__tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(300px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card-solid);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.hint:hover .hint__tip,
.hint__btn:focus-visible + .hint__tip,
.hint.open .hint__tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (max-width: 640px) {
  .hint__tip {
    left: 0;
    right: auto;
  }
}

/* ---------- «На главную» на внутренних страницах ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.back-link svg {
  width: 16px;
  height: 16px;
}
.back-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- «Отправляем ваш голос…» ---------- */

.sending {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease-out both;
}
.sending.closing {
  opacity: 0;
  transition: opacity 0.2s;
}
.sending__box {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-solid);
  font-size: 16px;
}
.sending__spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- галочка после голосования — скромнее ---------- */

.success-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  box-shadow: none;
}
.success-mark svg {
  width: 26px;
  height: 26px;
}

/* ---------- логотип в подвале — серый ---------- */

.brand__logo {
  display: block;
  width: 150px;
  height: auto;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.brand--footer:hover .brand__logo {
  opacity: 0.8;
}
.hero__lead[hidden] {
  display: none;
}

/* ---------- логотипы организаторов в подвале ---------- */

.footer .partners li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer .partners li + li {
  margin-top: 4px;
}
.partner__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
}
.partner__logo img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
