:root {
  --bg: #030a1f;
  --surface: #071538;
  --card: #0a1a45;
  --line: #17306b;
  --text: #eef5ff;
  --muted: #93a8d1;
  --accent: #5cc8ff;
  --accent-light: #a6e3ff;
  --blue: #1663d6;
  --radius: 12px;
  --violet: #9b7bff;
  --teal: #3fd8c4;
  --rose: #ff6fa8;
  --gold: #f5c76a;
  --amber: #ff9f5a;
  --t: var(--accent);
  --t-rgb: 92 200 255;
  --grad: linear-gradient(135deg, #1663d6, #6d4fe0);
}
/* Тона карточек номинаций: --t — основной цвет, --t-rgb — для прозрачных заливок */
[data-tone="gold"]   { --t: var(--gold);   --t-rgb: 245 199 106; }
[data-tone="violet"] { --t: var(--violet); --t-rgb: 155 123 255; }
[data-tone="teal"]   { --t: var(--teal);   --t-rgb: 63 216 196; }
[data-tone="rose"]   { --t: var(--rose);   --t-rgb: 255 111 168; }
[data-tone="sky"]    { --t: var(--accent); --t-rgb: 92 200 255; }
[data-tone="amber"]  { --t: var(--amber);  --t-rgb: 255 159 90; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: radial-gradient(ellipse 1100px 700px at 100% 18%, #6d4fe01a, transparent 70%), radial-gradient(ellipse 900px 600px at 0 55%, #3fd8c412, transparent 70%), var(--bg); color: var(--text); font: 400 16px/1.65 Inter, system-ui, sans-serif; }
main { overflow-x: clip; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, .logo, .countdown b, .about b { font-family: Montserrat, Inter, system-ui, sans-serif; line-height: 1.15; }
h1 { font-size: clamp(42px, 9vw, 104px); font-weight: 800; letter-spacing: .02em; margin: 22px 0 14px; }
h1 span { background: linear-gradient(100deg, var(--accent), var(--violet) 55%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 700; margin-bottom: 8px; }
h3 { font-size: 18px; font-weight: 700; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0 0; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border-radius: 8px; background: var(--grad); color: #fff; font-weight: 600; border: 1px solid #7a8cf5; transition: filter .2s, border-color .2s, transform .2s, background .2s; }
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--card); border-color: var(--accent); filter: none; }
/* Кнопка-ссылка на видео */
.btn--link { background: rgb(63 216 196 / .1); color: var(--teal); border-color: rgb(63 216 196 / .45); }
.btn--link:hover { background: rgb(63 216 196 / .2); border-color: var(--teal); filter: none; }
.btn--sm { padding: 7px 18px; font-size: 14px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: #030a1fe6; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .08em; white-space: nowrap; }
.logo span { background: linear-gradient(100deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 32px; margin-right: auto; margin-left: 36px; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.header__actions { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 6px auto; }

/* Первый экран */
.hero { position: relative; text-align: center; padding: 96px 0 72px; isolation: isolate; background: radial-gradient(ellipse 760px 420px at 28% 0, #14398c80, transparent 70%), radial-gradient(ellipse 640px 380px at 78% 10%, #6d4fe055, transparent 70%), radial-gradient(ellipse 500px 300px at 50% 100%, #f5c76a14, transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#5cc8ff12 1px, transparent 1px), linear-gradient(90deg, #5cc8ff12 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); }
.hero__in { display: flex; flex-direction: column; align-items: center; }
.tag { border: 1px solid rgb(245 199 106 / .4); background: rgb(245 199 106 / .08); border-radius: 999px; padding: 5px 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hero__sub { font: 600 clamp(17px, 2.4vw, 26px)/1.4 Montserrat, Inter, sans-serif; color: var(--accent-light); }
.lead { max-width: 620px; color: var(--muted); font-size: 17px; margin: 14px 0 32px; }
.hero .row { justify-content: center; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(560px, 100%); margin-top: 52px; }
.countdown div:nth-child(1) { border-top-color: var(--accent); }
.countdown div:nth-child(3) { border-top-color: var(--teal); }
.countdown div:nth-child(4) { border-top-color: var(--rose); }
.countdown div { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--violet); border-radius: var(--radius); padding: 16px 4px 12px; }
.countdown b { display: block; font-size: clamp(24px, 3.4vw, 38px); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted); font-size: 12px; }

/* Спонсоры */
.sponsors { background: var(--surface); border-block: 1px solid var(--line); }
.sponsors ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.sponsors li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 12px; overflow-wrap: anywhere; }
.sponsors li + li { border-left: 1px solid var(--line); }
.sponsors span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sponsors b, .sponsors a { font: 700 20px/1.4 Montserrat, Inter, sans-serif; color: var(--gold); }
.sponsors a:hover { text-decoration: underline; }

/* О премии */
.about { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 28px; }
.about article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.about article p { color: var(--muted); margin-top: 8px; }
.about b { font-size: 40px; color: var(--teal); }
.about article:last-child { display: flex; flex-direction: column; justify-content: center; border-color: rgb(63 216 196 / .35); background: linear-gradient(160deg, rgb(63 216 196 / .12), var(--card) 70%); }
.about .about__main { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: linear-gradient(130deg, #1b3a96, #3a2a8f 55%, var(--card)); border-color: #4d57c4; }
.about__main h3 { font-size: 28px; }
.about .about__main p { max-width: 560px; margin-top: 14px; color: #c3d3f2; }

/* Номинации */
.section__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; }
.progress { width: 260px; font-size: 14px; }
.progress__bar { height: 5px; border-radius: 3px; background: var(--card); margin-top: 8px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--accent), var(--violet)); transition: width .4s; }
.tabs { display: flex; gap: 8px; margin: 28px 0 22px; overflow-x: auto; padding: 4px; }
.tabs button { padding: 7px 20px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; font-size: 15px; }
.tabs button:hover { border-color: var(--violet); }
.tabs button[aria-pressed="true"] { background: var(--grad); border-color: #7a8cf5; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; padding: 24px; min-height: 210px; background: linear-gradient(160deg, rgb(var(--t-rgb) / .1), var(--card) 65%); border: 1px solid rgb(var(--t-rgb) / .25); border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--t); box-shadow: 0 10px 30px -12px rgb(var(--t-rgb) / .5); }
.card--big { grid-column: span 6; min-height: 250px; background: linear-gradient(130deg, rgb(var(--t-rgb) / .2), #12286a 45%, var(--card) 85%); border-color: rgb(var(--t-rgb) / .45); }
.card--big h3 { font-size: 26px; }
.card__icon { width: 48px; height: 48px; padding: 11px; border-radius: 6px; border: 1px solid rgb(var(--t-rgb) / .4); background: rgb(var(--t-rgb) / .12); color: var(--t); }
.card--big .card__icon { width: 68px; height: 68px; padding: 16px; }
.card h3 { margin-top: auto; overflow-wrap: anywhere; }
.card__state { font-size: 14px; color: var(--muted); }
.card.is-voted { border-color: var(--t); }
.card__state { transition: color .2s; }
.card:hover .card__state { color: var(--t); }
.card.is-voted .card__state { color: var(--t); }

/* Фото выбранного в главных номинациях: справа, плавно исчезает влево */
.card > :not(.card__photo) { position: relative; z-index: 1; }
.card__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); }
.card.has-photo h3, .card.has-photo .card__state { max-width: 55%; }

/* Победители */
.arrow { width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); }
.arrow:hover { background: var(--card); border-color: var(--violet); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.winner:hover { border-color: rgb(245 199 106 / .6); }
.winner { scroll-snap-align: start; text-align: center; background: linear-gradient(180deg, var(--card), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.winner__pic { aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #3a4fd0, #2a1f80 55%, var(--card)); }
.winner__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.winner__pic i { display: grid; place-items: center; font: 700 48px Montserrat, Inter, sans-serif; font-style: normal; color: var(--accent-light); }
.winner__text { position: relative; margin-top: -30px; padding: 0 16px 22px; }
.winner small { display: block; color: var(--gold); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.winner h3 { font-size: 19px; letter-spacing: .03em; overflow-wrap: anywhere; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq > div:first-child { position: sticky; top: 100px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 20px; }

/* Подвал */
.footer { margin-top: 100px; border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0; font-size: 15px; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); }

/* Модальное окно и уведомление */
.modal { margin: auto; width: min(760px, 100% - 24px); max-height: 88vh; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 28px; }
.modal::backdrop { background: #01040ed9; backdrop-filter: blur(6px); }
.modal__close { position: absolute; top: 14px; right: 18px; font-size: 18px; }
.modal h3 { font-size: 23px; margin-bottom: 8px; padding-right: 30px; }
.modal--wide { width: min(1100px, 100% - 24px); }
.vote__head { padding: 20px 22px; margin-bottom: 8px; border: 1px solid #4d57c4; border-radius: var(--radius); background: linear-gradient(130deg, #1b3a96, #3a2a8f 55%, var(--card)); }
.vote__head h3 { font-size: 26px; }
.vote__desc { color: #c3d3f2; margin-bottom: 8px; max-width: 640px; }
.vote__head .btn { margin-top: 12px; }
.vote__done { width: 180px; margin: 18px auto 0; }
.nominees { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 22px; }
.nominee { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; transition: border-color .2s, background .2s; }
.nominee__name { font: 700 15px/1.3 Montserrat, Inter, sans-serif; overflow-wrap: anywhere; margin-top: auto; }
.nominee__pic { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; object-position: center top; background: linear-gradient(150deg, #2a56c8, #4a2fa8 60%, #0b2160); display: grid; place-items: center; font: 700 34px Montserrat, Inter, sans-serif; font-style: normal; color: var(--accent-light); -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.nominee .btn { width: 100%; }
.nominee:hover { border-color: rgb(155 123 255 / .6); }
.nominee__name { min-height: 2.6em; display: flex; align-items: center; }
.nominee.is-selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 8px 24px -10px rgb(245 199 106 / .5); background: linear-gradient(180deg, #1c2f78, #12286a); }
.input { width: 100%; padding: 12px 16px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.stack { display: grid; gap: 10px; margin-top: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150px); visibility: hidden; background: var(--text); color: var(--bg); padding: 12px 22px; border-radius: 6px; font-weight: 600; width: max-content; max-width: calc(100% - 32px); z-index: 30; transition: .3s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; gap: 16px; }
  .faq > div:first-child { position: static; }
  .card { grid-column: span 4; }
  .card--big { grid-column: span 6; }
  .rail { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 780px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 18px; padding: 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .about { grid-template-columns: 1fr 1fr; }
  .about .about__main { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .section { padding-top: 64px; }
  .hero { padding: 56px 0 48px; }
  .countdown { gap: 8px; margin-top: 40px; }
  .sponsors ul { grid-template-columns: 1fr; }
  .sponsors li { padding: 16px 0; }
  .sponsors li + li { border-left: 0; border-top: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; }
  .about .about__main { grid-column: auto; padding: 28px; }
  .card, .card--big { grid-column: span 6; padding: 18px; }
  .card--big { grid-column: span 12; }
  .card h3 { font-size: 14px; }
  .card--big h3 { font-size: 21px; }
  .rail { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Имя вошедшего пользователя в шапке */
#account { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { #account { max-width: 130px; } }
[hidden] { display: none !important; }

/* Окошко с описанием номинанта */
.modal--desc { width: min(520px, 100% - 24px); }
.modal--desc::backdrop { background: #01040e99; }
.desc__text { color: #c3d3f2; margin-top: 12px; white-space: pre-line; }

/* Кнопки в карточке номинанта: «Смотреть» — бирюзовая, «Описание» — нейтральная, «Выбрать» — золотой контур */
.btn--about { background: transparent; color: var(--muted); border-color: var(--line); }
.btn--about:hover { color: var(--text); border-color: var(--violet); background: rgb(155 123 255 / .1); filter: none; }
.btn--pick { background: rgb(245 199 106 / .08); color: var(--gold); border: 1.5px solid var(--gold); font-weight: 700; }
.btn--pick:hover:not(:disabled) { background: var(--gold); color: #1a1405; filter: none; box-shadow: 0 6px 18px -6px rgb(245 199 106 / .6); }
.btn--pick.is-on { background: var(--gold); color: #1a1405; }
.btn--pick:disabled { opacity: .35; }

/* ---------- Анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Первый экран */
.hero__in > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero__in > :nth-child(2) { animation-delay: .08s; }
.hero__in > :nth-child(3) { animation-delay: .16s; }
.hero__in > :nth-child(4) { animation-delay: .24s; }
.hero__in > :nth-child(5) { animation-delay: .32s; }
.hero__in > :nth-child(6) { animation-delay: .4s; }
.hero::after { content: ""; position: absolute; inset: -20% 10% auto; height: 60%; z-index: -1; background: radial-gradient(closest-side, #9b7bff2e, transparent); animation: float 9s ease-in-out infinite; pointer-events: none; }

/* Появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Карточки номинаций и номинантов */
.card.is-enter, .nominee.is-enter { animation: pop .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.card__icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .2s; }
.card:hover .card__icon { transform: scale(1.1) rotate(-6deg); background: rgb(var(--t-rgb) / .22); }
.card:active { transform: translateY(-1px) scale(.99); }
.nominee { transition: transform .25s, border-color .2s, background .2s, box-shadow .25s; }
.nominee:hover { transform: translateY(-3px); }
.winner { transition: transform .25s, border-color .25s; }
.winner:hover { transform: translateY(-4px); }
.btn:active:not(:disabled) { transform: scale(.97); }
.tabs button { transition: background .2s, border-color .2s, transform .15s; }
.tabs button:active { transform: scale(.96); }
.progress__bar i { transition: width .8s cubic-bezier(.2, .7, .2, 1); }

/* Модальные окна */
.modal[open] { animation: pop .35s cubic-bezier(.2, .7, .2, 1); }
.modal[open]::backdrop { animation: fade .3s ease; }

/* FAQ */
details p { animation: fade .35s ease; }
summary::after { transition: transform .25s; }
details[open] summary::after { transform: rotate(180deg); }

.nominee__pic--link { object-position: center; }
