:root {
  --bg: #030305;
  --surface: #121241;
  --card: #1B2559;
  --line: #23286B;
  --line-2: #3A4380;
  --blue: #2630F5;
  --orange: #FF7A00;
  --link: #82A1FF;
  --text: #FFFFFF;
  --muted: #B7BCD9;
  --dim: #9AA3D9;
  --display: Unbounded, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; }
a { color: var(--link); }
a:hover { color: #FFFFFF; }
img { display: block; max-width: 100%; height: auto; }
input, select, button { font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--surface); }
.section h2 { font-size: 34px; }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 32px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); }
.muted { color: var(--muted); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 100px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--blue { background: var(--blue); color: #FFFFFF; }
.btn--blue:hover { background: #3B45FF; color: #FFFFFF; }
.btn--orange { background: var(--orange); color: #030305; }
.btn--orange:hover { background: #FF8F26; color: #030305; }
.btn--white { background: #FFFFFF; color: var(--surface); }
.btn--white:hover { color: var(--blue); }
.btn--ghost { background: transparent; color: #FFFFFF; border: 2px solid var(--line-2); }
.btn--ghost:hover { border-color: #FFFFFF; }
.btn--big { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* статус сверху */
.statusbar { background: #0B0B2A; font-size: 14px; }
.statusbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 8px; padding-bottom: 8px; }
.statusbar__text { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.statusbar__text b { color: #FFFFFF; }
.statusbar__dot { width: 10px; height: 10px; border-radius: 5px; background: var(--line-2); flex: none; }
.statusbar.is-registered .statusbar__dot { background: #3DDC84; }
.statusbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* шапка */
.header { background: var(--surface); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-decoration: none; color: #FFFFFF; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; gap: 0.25em; white-space: nowrap; }
.brand__cup { flex: 0 0 auto; margin-right: 0; filter: drop-shadow(0 2px 6px rgba(255, 197, 49, 0.45)); transition: transform .2s; }
.brand:hover .brand__cup { transform: rotate(-8deg) scale(1.08); }
.brand__sep { width: 1px; height: 32px; background: var(--line-2); }
.brand__logos { display: flex; align-items: center; gap: 14px; }
.brand__x { font-family: var(--display); font-weight: 700; color: var(--dim); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: #FFFFFF; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--link); }

/* первый экран */
.hero { /* taste-skill-ignore: фирменный градиент IQ Games */ background: linear-gradient(135deg, #2630F5 0%, #5B3BD6 45%, #FF7A00 100%); overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; padding-top: 40px; padding-bottom: 0; }
.hero__text { flex: 999 1 570px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-self: center; padding: 16px 0 56px; }
.hero__title { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.hero__kicker { font-size: 30px; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; }
.hero__name { font-size: 76px; line-height: 0.95; letter-spacing: -1px; }
/* Kod x IQ Games: Kod — синий, x — тонкий, IQ — оранжевый, Games — светлый; общая тёмная обводка, как у наклейки */
.hero__name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.22em; row-gap: 0; }
.hero__code, .hero__iq, .hero__games { -webkit-text-stroke: 7px #121241; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(18, 18, 65, 0.35); }
.hero__code { color: #4F86FF; }
.hero__x { font-size: 0.5em; font-weight: 700; color: #DCE3FF; }
.hero__iq { color: var(--orange); }
.hero__games { color: #F4F6FF; }
.hero__dirs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; }
.hero__dirs li.hero__break { flex-basis: 100%; height: 0; padding: 0; background: none; margin: 0; }
.hero__dirs li.hero__break::before { display: none; }
.hero__dirs li { display: flex; align-items: center; gap: 10px; background: rgba(18, 18, 65, 0.7); border-radius: 100px; padding: 11px 18px; font-family: var(--display); font-weight: 700; font-size: 15px; white-space: nowrap; margin-bottom: 8px; }
.hero__dirs li::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--orange); flex: none; }
.hero__lead { font-size: 19px; line-height: 1.55; max-width: 580px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid rgba(255, 255, 255, 0.75); border-radius: 100px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 6px; }
.hero__actions a:not(.btn) { color: #FFFFFF; font-weight: 700; }
.hero__img { flex: 1 1 550px; min-width: 0; display: flex; justify-content: center; align-self: flex-end; }
.hero__img img { width: 100%; max-width: 620px; display: block; margin-bottom: -2px; }

.ticker { background: var(--blue); overflow: hidden; white-space: nowrap; padding: 14px 0; font-family: var(--display); font-weight: 700; font-size: 20px; }
.ticker__track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
.ticker span { padding: 0 16px; }
.ticker i { font-style: normal; color: var(--orange); }

/* карточки */
.card { background: var(--card); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 19px; line-height: 1.25; }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card--skill { align-items: flex-start; gap: 16px; padding: 28px 26px; }
.card--skill img { width: 104px; height: 104px; }
.banner { position: relative; border-radius: 28px; overflow: hidden; }
.banner img { width: 100%; height: 420px; object-fit: cover; object-position: center 50%; }
.banner__cap { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 460px; background: rgba(3, 3, 5, 0.8); border-radius: 18px; padding: 14px 20px; display: flex; flex-direction: column; gap: 4px; }
.banner__cap b { font-family: var(--display); font-size: 18px; }
.banner__cap span { font-size: 14px; color: var(--muted); }
.facts { --min: 300px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.facts b { color: #FFFFFF; }

.stage { background: var(--card); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.stage img { width: 100%; height: 200px; object-fit: cover; }
.stage__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.stage h3 { font-size: 22px; }
.stage p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.stage--final { border: 3px solid var(--orange); }
.tag { align-self: flex-start; background: var(--blue); border-radius: 100px; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; padding: 7px 14px; }
.tag--orange { background: var(--orange); color: #030305; }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split__side { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.prize { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; background: var(--card); border-radius: 20px; padding: 18px 22px; }
.prize b { flex: none; width: 130px; font-family: var(--display); font-size: 17px; color: var(--link); }
.prize b.top { color: var(--orange); }
.prize span { flex: 1 1 220px; font-size: 16px; line-height: 1.45; }

/* призы */
.prizes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.prize-card { background: var(--card); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.prize-card--gold { border: 3px solid var(--orange); }
.prize-card__media { height: 240px; display: flex; align-items: center; justify-content: center; background: #121241; }
.prize-card__media img { width: 132px; height: 132px; }
.prize-card__media img.photo { width: 100%; height: 100%; object-fit: cover; }
.prize-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.prize-card h3 { font-size: 21px; }
.prize-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.prize-list li { display: flex; align-items: center; gap: 12px; }
.prize-list img { width: 36px; height: 36px; flex: none; }
.portfolio { background: var(--surface); border-radius: 24px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.portfolio__title { font-size: 20px; flex: none; }
.portfolio__list { flex: 1 1 600px; display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.portfolio__item { display: flex; align-items: center; gap: 14px; }
.portfolio__item img { width: 56px; height: 56px; flex: none; }
.portfolio__item h4 { margin: 0 0 2px; font-family: var(--display); font-size: 15px; }
.portfolio__item p { font-size: 14px; line-height: 1.4; color: var(--muted); }
.docs { background: var(--surface); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.docs__img { flex: 1 1 340px; min-width: 0; max-width: 460px; border-radius: 22px; aspect-ratio: 1 / 1; object-fit: cover; }
.docs__main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.docs__list { display: flex; flex-direction: column; gap: 22px; }
.prizes-banner { border-radius: 28px; overflow: hidden; }
.prizes-banner img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 58%; }
.docs__title { font-size: 22px; }
.doc-card { display: flex; gap: 18px; align-items: flex-start; }
.doc-card__icon { width: 72px; height: 72px; flex: none; }
.doc-card__text { display: flex; flex-direction: column; gap: 6px; }
.doc-card h4 { margin: 0; font-family: var(--display); font-size: 17px; }
.doc-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.doc-card .doc-card__who { color: var(--orange); font-weight: 700; font-size: 14px; }

.steps { margin: 0; padding: 0; list-style: none; --min: 280px; gap: 24px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps__n { flex: none; width: 52px; height: 52px; border-radius: 26px; background: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; }
.steps__n--orange { background: var(--orange); color: #030305; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* форма */
.form-area { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.form-area__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form-area__aside img { width: 100%; max-width: min(440px, 100%); height: auto; align-self: center; }
.form { flex: 999 1 520px; min-width: 0; background: #FFFFFF; color: var(--surface); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.field input, .field select { height: 50px; padding: 0 18px; border: 1px solid #D4D8EE; border-radius: 100px; background: #F1F4FF; font-size: 16px; color: var(--surface); width: 100%; }
.field input:focus, .field select:focus { outline: 3px solid rgba(38, 48, 245, 0.35); border-color: var(--blue); }
.field small { font-weight: 400; font-size: 13px; line-height: 1.4; color: #4A5070; }
.form a { color: var(--blue); }
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.45; color: #3A3F55; }
.checks label { display: flex; gap: 12px; align-items: flex-start; }
.checks input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.form__note { font-size: 13px; color: #4A5070; }
.form__err { color: #C2185B; font-size: 14px; font-weight: 700; }

/* блок «ник» */
.nickhelp { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: var(--card); border-radius: 24px; padding: 22px 26px; }
.nickhelp p { flex: 1 1 320px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.nickhelp p b { color: #FFFFFF; }
.nickhelp__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* проверка баллов */
.check { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.check__form { flex: 1 1 320px; max-width: 420px; background: #FFFFFF; color: var(--surface); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.check__form a { color: var(--blue); }
.check__result { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.check__empty { flex: 999 1 480px; min-width: 0; border: 2px dashed var(--line-2); border-radius: 28px; padding: 28px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--dim); font-size: 15px; line-height: 1.5; }
.place { position: relative; overflow: hidden; background: var(--blue); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.place__img { position: absolute; right: 10px; top: 8px; height: 190px; width: auto; }
.place__head { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.place__label { font-size: 15px; color: #E3E5FF; }
.place__num { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; }
.place__num small { font-size: 22px; font-weight: 600; color: #E3E5FF; }
.place__badge { align-self: flex-start; background: var(--orange); color: #030305; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 100px; }
.bar { position: relative; height: 14px; border-radius: 7px; background: rgba(3, 3, 5, 0.35); }
.bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 10.4%; border-radius: 7px; background: #FFFFFF; }
.bar__mark { position: absolute; left: 3.1%; top: -6px; width: 6px; height: 26px; border-radius: 3px; background: var(--orange); }
.bar__legend { display: flex; justify-content: space-between; font-size: 13px; color: #E3E5FF; margin-top: 8px; }
.rooms { background: var(--card); border-radius: 28px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.rooms__grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.room { background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.room span { font-size: 12px; line-height: 1.3; color: var(--muted); }
.room b { font-family: var(--display); font-size: 22px; }
.demo-note { font-size: 13px; color: var(--dim); }

/* организаторы, подвал */
.org { display: flex; flex-direction: column; gap: 16px; background: var(--card); border-radius: 22px; padding: 26px; }
.org img { height: 56px; width: auto; align-self: flex-start; }
.org p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.org p b { color: #FFFFFF; }
.footer { background: var(--surface); color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__logos { display: flex; align-items: center; gap: 14px; }

/* страница «спасибо» */
.thanks { padding: 64px 0 80px; }
.thanks__top { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.thanks__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.thanks__text h1 { font-size: 44px; }
.thanks__img { flex: 1 1 300px; display: flex; justify-content: center; }
.thanks__img img { max-width: 380px; }
.ticket { background: var(--blue); border-radius: 28px; padding: 26px 28px; display: grid; gap: 18px 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ticket span { display: block; font-size: 14px; color: #E3E5FF; margin-bottom: 4px; }
.ticket b { font-family: var(--display); font-size: 20px; }
.ticket b.code { font-size: 28px; letter-spacing: 2px; }
.mail-note { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: var(--muted); }
.mail-note svg { flex: none; margin-top: 2px; }
.mail-note b { color: #FFFFFF; }

.demo-flag { /* taste-skill-ignore: плавающая метка поверх страницы */ position: fixed; right: 16px; bottom: 16px; z-index: 20; background: var(--orange); color: #030305; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 100px; box-shadow: 0 6px 20px rgba(3, 3, 5, 0.5); }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
  .hero .wrap { padding-top: 40px; }
  .hero__kicker { font-size: 20px; }
  .hero__name { font-size: 46px; }
  .hero__code, .hero__iq, .hero__games { -webkit-text-stroke-width: 5px; }
  .hero__dirs li { font-size: 14px; padding: 10px 14px; }
  .hero__lead { font-size: 17px; }
  .hero__img img { margin-top: 0; max-width: 100%; }
  .brand__sep { display: none; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .header { position: static; }
  .banner img { height: 240px; }
  .form { padding: 22px 18px; }
  .thanks__text h1 { font-size: 30px; }
  .place__img { display: none; }
  .prize b { width: 100%; }
  .docs { padding: 22px 18px; }
  .prizes-banner img { height: 220px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 0; }
  .hero__text { padding-bottom: 8px; }
  .place__num { font-size: 44px; }
}
