/* ========================================================================
   ИТ-БУРЯТИЯ — главная страница
   Тёмная тема, неоновый градиент (циан → фиолетовый → розовый)
   ======================================================================== */

:root {
  --bg: #07060d;
  --bg-soft: #0d0c18;
  --fg: #f4f2fb;
  --fg-dim: #a6a2bd;
  --line: rgba(255,255,255,.08);

  --accent-cyan: #22e3ff;
  --accent-violet: #8b5cf6;
  --accent-pink: #f472d0;
  --accent: var(--accent-cyan);

  --grad: linear-gradient(100deg, var(--accent-cyan), var(--accent-violet) 55%, var(--accent-pink));

  --radius: 20px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

/* ---------------------------------- SCROLL PROGRESS ---------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 10px rgba(139,92,246,.7);
  transition: width .1s linear;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 720px;
}

.section-title--center {
  margin: 0 auto 48px;
  text-align: center;
}

/* ---------------------------------- NAV ---------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,6,13,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding-right: 76px;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}

.nav__logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: .94rem;
  color: var(--fg-dim);
  transition: color .2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width .25s ease;
}

.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { color: #07060d; }

/* Внешний вид кнопки задают .btn.btn--primary — здесь только компоновка под шапку */
.nav__link--cta.btn--primary {
  padding: 13px 26px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__link { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav__link--cta { margin: 16px 24px; text-align: center; }
}

/* ---------------------------------- HERO ---------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
}

.hero__glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .35;
  pointer-events: none;
  transition: transform .4s ease-out;
  animation: glowDrift 10s ease-in-out infinite;
}

@keyframes glowDrift {
  0%, 100% { margin: 0; }
  50% { margin: 20px; }
}

.hero__glow--1 {
  background: var(--accent-violet);
  top: -120px;
  left: -160px;
}

.hero__glow--2 {
  background: var(--accent-cyan);
  bottom: -200px;
  right: -140px;
}

.hero__inner {
  position: relative;
  z-index: 3;
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.hero__title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradientShift 6s ease infinite;
}

.hero__title-year {
  display: block;
  font-size: .32em;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--fg-dim);
  margin-top: 8px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  max-width: 580px;
  font-size: 1.1rem;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--fg-dim);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s, box-shadow .25s, filter .25s, background .25s;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}

.btn:hover::before {
  left: 130%;
}

.btn--primary {
  background: var(--grad);
  color: #07060d;
  box-shadow: 0 10px 30px -8px rgba(139,92,246,.6);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(139,92,246,.75);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--fg);
  background: rgba(255,255,255,.03);
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.countdown {
  display: inline-flex;
  gap: 20px;
  padding: 18px 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.countdown__value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.countdown__label {
  font-size: .7rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 20px;
  z-index: 3;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-cyan);
  animation: scrollDot 1.6s ease infinite;
}

@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ---------------------------------- ABOUT ---------------------------------- */

.about {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: start;
}

.about__desc {
  margin-top: 20px;
  color: var(--fg-dim);
  font-size: 1.04rem;
  max-width: 560px;
}

.about__points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--fg);
}

.about__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #07060d;
  font-size: .72rem;
  flex-shrink: 0;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  padding: 28px 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 16px 36px -16px rgba(139,92,246,.5);
}

.stat__value {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__suffix {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-pink);
}

.stat__label {
  display: block;
  margin-top: 6px;
  color: var(--fg-dim);
  font-size: .88rem;
}

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------------------------------- CONTESTS ---------------------------------- */

.contests {
  padding: 120px 0;
}

.contests__head {
  max-width: 680px;
  margin-bottom: 56px;
}

.contests__desc {
  margin-top: 16px;
  color: var(--fg-dim);
  font-size: 1.02rem;
}

.contests__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.contest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  overflow: hidden;
  transition: border-color .3s, transform .15s;
  transform-style: preserve-3d;
  will-change: transform;
}

.contest-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
  filter: blur(18px);
}

.contest-card:hover {
  border-color: rgba(255,255,255,.22);
}

.contest-card:hover .contest-card__glow {
  opacity: .28;
}

.contest-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.contest-card__icon {
  font-size: 2.2rem;
  display: inline-block;
  transition: transform .35s ease;
}

.contest-card:hover .contest-card__icon {
  animation: iconWiggle .6s ease;
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-12deg) scale(1.12); }
  50% { transform: rotate(10deg) scale(1.12); }
  75% { transform: rotate(-6deg) scale(1.08); }
}

.contest-card__badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--fg-dim);
}

.contest-card__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contest-card__text {
  color: var(--fg-dim);
  font-size: .92rem;
  flex-grow: 1;
}

.contest-card__cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
}

.contest-card__cta i {
  font-style: normal;
  transition: transform .25s;
}

.contest-card:hover .contest-card__cta i {
  transform: translateX(4px);
}

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

/* ---------------------------------- PROGRAM / TIMELINE ---------------------------------- */

.program {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.program__head {
  margin-bottom: 56px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 48px;
}

.timeline__line {
  position: absolute;
  top: 18px;
  height: 0;
  left: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet), var(--accent-pink));
  opacity: .4;
}

.timeline__item {
  position: relative;
}

.timeline__dot {
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  background: var(--grad);
  color: #07060d;
  animation: dotPulse 2.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,.55); }
  50% { box-shadow: 0 0 0 10px rgba(139,92,246,0); }
}

.timeline__card {
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.timeline__day {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 8px;
}

.timeline__card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline__card p {
  color: var(--fg-dim);
  font-size: .92rem;
}

/* ---------------------------------- PARTNERS ---------------------------------- */

.partners {
  padding: 100px 0;
  text-align: center;
}

.partners__marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.partners__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.partners__marquee:hover .partners__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partners__logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg-dim);
  opacity: .6;
  white-space: nowrap;
  transition: opacity .25s, color .25s, transform .25s;
}

.partners__logo:hover {
  opacity: 1;
  color: var(--fg);
  transform: scale(1.08);
}

/* ---------------------------------- CTA ---------------------------------- */

.cta {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,.25), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  max-width: 680px;
}

.cta__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta__desc {
  color: var(--fg-dim);
  margin-bottom: 36px;
}

/* ---------------------------------- FOOTER ---------------------------------- */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__text {
  color: var(--fg-dim);
  font-size: .85rem;
}

.footer__links {
  display: flex;
  gap: 20px;
  font-size: .88rem;
  color: var(--fg-dim);
}

.footer__links a:hover { color: var(--fg); }

.footer__org {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: .8rem;
  line-height: 1.7;
  max-width: 820px;
}

.footer__org a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(34,227,255,.4);
  transition: color .2s;
}

.footer__org a:hover {
  color: var(--fg);
}
