:root {
  --bg-deep: #050511;
  --bg-card: rgba(13, 12, 34, 0.78);
  --bg-card-hover: rgba(22, 20, 56, 0.9);
  --violet: #8b5cf6;
  --violet-bright: #a855f7;
  --magenta: #c026d3;
  --cyan: #38bdf8;
  --diamond: #5eead4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-crystal: rgba(139, 92, 246, 0.42);
  --border-glow: rgba(56, 189, 248, 0.7);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Unbounded', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 15%, rgba(139, 92, 246, 0.18), transparent 42%),
    radial-gradient(circle at 82% 35%, rgba(56, 189, 248, 0.14), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(192, 38, 211, 0.16), transparent 50%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 110px;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.ambient-glow--top {
  top: -180px;
  left: -120px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.ambient-glow--bottom {
  bottom: -200px;
  right: -120px;
  background: linear-gradient(135deg, #c026d3, #06b6d4);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 17, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand__diamond {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--diamond), var(--violet-bright));
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--diamond);
}

.brand__badge {
  display: inline-block;
  padding: 3px 10px;
  margin-left: 4px;
  font-size: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.35), rgba(56, 189, 248, 0.35));
  border: 1px solid var(--border-glow);
  color: #e0f2fe;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav__link:hover {
  color: var(--diamond);
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid var(--border-crystal);
  color: #ddd6fe;
}

/* Кристаллические рамки как на карточках номинаций */
.crystal-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-crystal);
  border-radius: 18px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.6),
    inset 0 0 24px rgba(139, 92, 246, 0.14);
  backdrop-filter: blur(14px);
}

.crystal-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.65), rgba(168, 85, 247, 0.25), rgba(192, 38, 211, 0.65));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Фирменный разделитель с ромбом */
.crystal-divider {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 16px;
  margin: 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crystal-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.85), transparent);
}

.crystal-divider span {
  position: relative;
  width: 10px;
  height: 10px;
  background: var(--diamond);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--diamond), 0 0 24px var(--cyan);
}

/* Hero секция */
.hero {
  padding: 56px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 44px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.crystal-dot {
  width: 8px;
  height: 8px;
  background: var(--diamond);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--diamond);
}

.hero__title {
  font-family: var(--font-accent);
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(120deg, #e0f2fe 0%, #38bdf8 35%, #a855f7 70%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 28px;
}

/* Таймер */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(13, 12, 34, 0.85);
  border: 1px solid var(--border-crystal);
  margin-bottom: 30px;
}

.countdown__item {
  text-align: center;
  min-width: 54px;
}

.countdown__val {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.7);
}

.countdown__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.countdown__sep {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--cyan);
  margin-top: -12px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #0284c7 100%);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.55);
}

.btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--glass {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.btn--glass:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--cyan);
}

/* Медиа-рамка с промо-роликом */
.hero__frame {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04040d;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__frame-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  pointer-events: none;
}

.hero__frame-tag {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: rgba(5, 5, 17, 0.75);
  border: 1px solid var(--border-glow);
  color: var(--diamond);
}

/* Секция номинаций */
.voting {
  padding: 36px 0 40px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f1f5f9;
  text-shadow: 0 0 24px rgba(139, 92, 246, 0.55);
}

.section-head__sub {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Табы быстрого перехода */
.nom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
}

.nom-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(13, 12, 34, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nom-tab:hover {
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-1px);
}

.nom-tab.is-voted {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.28));
  border-color: var(--diamond);
  color: #fff;
}

.nom-tab__check {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: rgba(148, 163, 184, 0.45);
}

.nom-tab.is-voted .nom-tab__check {
  background: var(--diamond);
  box-shadow: 0 0 8px var(--diamond);
}

/* Блок одной номинации */
.nominations-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.nom-section {
  padding: 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: stretch;
  scroll-margin-top: 94px;
}

/* Левая карточка с кристаллом номинации (1-в-1 стилистика PNG) */
.nom-poster {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #191645, #050511 80%);
  border: 1px solid rgba(139, 92, 246, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
}

.nom-poster__img-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nom-poster__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.nom-section:hover .nom-poster__img {
  transform: scale(1.04);
}

.nom-poster__fallback {
  padding: 24px;
  text-align: center;
}

.nom-poster__caption {
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(5, 5, 17, 0.2), rgba(5, 5, 17, 0.96) 35%);
  text-align: center;
}

.nom-poster__title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
}

/* Правая часть со списком кандидатов */
.nom-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nom-body__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.nom-body__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nom-body__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.nom-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.nom-badge.is-selected {
  background: rgba(94, 234, 212, 0.14);
  color: var(--diamond);
  border-color: var(--diamond);
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Карточка кандидата */
.cand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.28);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.cand-card:hover {
  transform: translateY(-4px);
  background: rgba(139, 92, 246, 0.11);
  border-color: rgba(56, 189, 248, 0.65);
}

.cand-card.is-chosen {
  background: linear-gradient(155deg, rgba(124, 58, 237, 0.28), rgba(6, 182, 212, 0.2));
  border-color: var(--diamond);
  box-shadow: 0 0 26px rgba(94, 234, 212, 0.25);
}

.cand-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cand-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #0284c7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.cand-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cand-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.25;
}

.cand-card__tag {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #7dd3fc;
}

.cand-card__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cand-card__btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(13, 12, 34, 0.7);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.cand-card.is-chosen .cand-card__btn {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-color: transparent;
  color: #fff;
}

/* Плавающая панель отправки */
.submit-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(7, 7, 22, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.65);
}

.submit-dock__inner {
  min-height: 82px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.submit-dock__info {
  flex: 1;
  max-width: 340px;
}

.submit-dock__title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: #f1f5f9;
}

.submit-dock__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.submit-dock__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-bright), var(--diamond));
  transition: width 0.3s ease;
}

.submit-dock__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-input {
  width: 260px;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(15, 14, 40, 0.9);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
}

.dock-input:focus {
  border-color: var(--diamond);
}

/* Модальное окно результатов */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 10, 0.82);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a091f;
}

.modal__header {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.1em;
}

.modal__subtitle {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  color: #fff;
}

.modal__body {
  padding: 22px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.res-block {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.24);
}

.res-block__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: #e0f2fe;
}

.res-row {
  margin-bottom: 10px;
}

.res-row:last-child {
  margin-bottom: 0;
}

.res-row__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 5px;
}

.res-row__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.res-row__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #38bdf8);
}

.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .nom-section {
    grid-template-columns: 1fr;
  }

  .nom-poster {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .nav {
    display: none;
  }

  .submit-dock__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-dock__info {
    max-width: 100%;
  }

  .submit-dock__controls {
    flex-direction: column;
  }

  .dock-input {
    width: 100%;
  }
}