﻿/* Self-hosted Jost (OFL) — https://fonts-online.ru/fonts/jost / github.com/indestructible-type */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Jost-VF.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/Jost-200-Thin.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Jost-300-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Jost-400-Book.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Jost-500-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Jost-600-Semi.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Jost-700-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Jost-800-Heavy.ttf') format('truetype');
}

/* ЭКОЛОГ-ПРОФЕССИОНАЛ — split-screen (макет IMG_20261111_113045) */
:root {
  /* фон левого блока — зелёный с лёгким затемнением снизу */
  --stage: #18a418;
  --stage-mid: #159015;
  --stage-deep: #0f7a0f;
  --stage-glow: #9eff00;
  --lime: #9eff00;
  --lime-hot: #8ef000;
  --lime-2: #7adf00;
  --rail: #1b1c1e;
  --rail-2: #222326;
  --card: #242628;
  --card-2: #2c2e31;
  --line: rgba(158, 255, 0), 0.18);
  --text: #f4f6f3;
  --muted: rgba(244, 246, 243, 0.68);
  --white: #ffffff;
  --font: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--rail);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
strong { font-weight: 700; }

.shell {
  min-height: 100vh;
  position: relative;
}

/* —— Full-width floating menu —— */
.float-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 14px 0;
  pointer-events: none;
}
.float-nav__bar {
  pointer-events: auto;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  /* отступы ≈ радиус скругления плашки, чтобы лого/Контакты у «плоской» зоны */
  padding: 10px clamp(28px, 2.4vw, 40px);
  border-radius: 999px;
  background: rgba(27, 28, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.float-nav__brand {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  height: 52px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.float-nav__brand img {
  width: auto;
  height: 42px;
  max-width: 210px;
  object-fit: contain;
}
.float-nav__links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.float-nav__links::-webkit-scrollbar { display: none; }
.float-nav__links a {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 246, 243, 0.88);
  white-space: nowrap;
  transition: color 0.2s ease;
}
@media (min-width: 981px) {
  /* «О конкурсе» чуть правее границы зелёного/правого блока */
  .float-nav__links {
    justify-content: space-between;
    gap: 0;
    margin-left: max(
      12px,
      calc(33.333vw + 24px - 14px - clamp(28px, 2.4vw, 40px) - 210px - 18px)
    );
    padding-right: 0;
  }
}
.float-nav__links a:hover { color: var(--lime); }
.float-nav__cta { display: none !important; }
.float-nav .burger { margin-left: auto; }

.mobile-cue {
  display: none;
}

/* —— Desktop split —— */
@media (min-width: 981px) {
  .shell {
    display: grid;
    grid-template-columns: minmax(280px, 33.333vw) minmax(0, 1fr);
    overflow-x: clip;
  }

  .stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
    container-type: inline-size;
    container-name: ep-stage;
    /* зелёный + лёгкий тёмный градиент как на макете */
    background:
      linear-gradient(165deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.22) 100%),
      linear-gradient(180deg, var(--stage) 0%, var(--stage-mid) 58%, var(--stage-deep) 100%);
    color: var(--white);
    z-index: 5;
  }

  .rail {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    background: var(--rail);
  }

  /* Лого сразу над 2026–2027, уменьшается с колонкой */
  .stage__inner {
    padding-top: clamp(88px, 12vh, 120px);
    justify-content: flex-end;
  }
  .stage__brand {
    --ep-logo: clamp(96px, 28cqi, 220px);
    position: relative;
    top: auto;
    left: auto;
    width: var(--ep-logo);
    max-width: 100%;
    max-height: none;
    margin: 0 0 clamp(8px, 1.8cqi, 14px);
    flex: 0 0 auto;
    z-index: 3;
  }
  .stage__brand img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: top left;
  }
  .stage__copy {
    flex: 0 0 auto;
    padding-top: 0;
    justify-content: flex-start;
    padding-bottom: clamp(28px, 5vh, 56px);
    margin-top: 0;
    min-height: 0;
  }

  /* правые подписи: JS ставит top по уровням слева */
  .rail-hero figcaption {
    inset: 0;
    bottom: auto;
    display: block;
    padding: 0;
    gap: 0;
    opacity: 0;
    pointer-events: none;
  }
  .rail-hero figcaption.is-synced {
    opacity: 1;
    transition: opacity 0.15s ease;
  }
  .rail-hero__lead,
  .rail-hero figcaption > span {
    position: absolute;
    left: clamp(28px, 4vw, 48px);
    right: clamp(28px, 4vw, 48px);
    margin: 0;
  }
}

.stage__inner {
  position: relative;
  height: 100%;
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stage__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.stage__stars .star {
  position: absolute;
  width: var(--s, 72px);
  height: var(--s, 72px);
  color: rgba(200, 240, 74, 0.65);
  filter: drop-shadow(0 0 22px rgba(125, 255, 77, 0.55)) drop-shadow(0 0 42px rgba(182, 230, 58, 0.28));
  animation: starfloat 8.5s ease-in-out infinite;
}

.stage__stars .star svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stage__stars .star:nth-child(1) {
  --s: 88px;
  right: 10%;
  top: 14%;
  color: rgba(230, 255, 120, 0.7);
}
.stage__stars .star:nth-child(2) {
  --s: 56px;
  right: 28%;
  top: 28%;
  animation-delay: -2.2s;
  color: rgba(182, 230, 58, 0.45);
}
.stage__stars .star:nth-child(3) {
  --s: 120px;
  right: -2%;
  bottom: 24%;
  animation-delay: -3.8s;
  color: rgba(125, 255, 77, 0.32);
}
.stage__stars .star:nth-child(4) {
  --s: 44px;
  right: 22%;
  bottom: 12%;
  animation-delay: -5.4s;
  color: rgba(200, 240, 74, 0.55);
}

@keyframes starfloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-16px) rotate(12deg) scale(1.06); }
}

.stage__brand {
  display: inline-flex;
  align-items: flex-start;
  z-index: 3;
  max-width: min(220px, 100%);
}

.stage__brand img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0;
  padding: 0;
  filter: none;
}

.stage__copy {
  position: relative;
  flex: 1;
  margin-top: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 28px;
  z-index: 2;
  gap: 0;
  text-align: left;
}

.stage__actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.stage__cta,
.stage__cta-secondary {
  margin-top: 0;
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding-left: 12px;
  padding-right: 12px;
}
.stage__cta {
  color: #102810;
  font-size: 14px;
  font-weight: 500;
}
.stage__cta-secondary {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.stage__kicker {
  margin: 0 0 10px;
  font-size: clamp(20px, 6.5cqi, 36px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: left;
  align-self: flex-start;
  line-height: 1.12;
  white-space: nowrap;
  box-sizing: border-box;
}

.stage__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 9.6cqi, 50px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 100%;
  text-align: left;
  align-self: stretch;
  overflow-wrap: normal;
  word-break: normal;
  word-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.stage__title-line {
  display: inline-block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.stage__title-word {
  display: inline-block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.stage__title > span:not(.stage__title-line) {
  color: var(--lime);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.stage__text {
  margin: 14px 0 0;
  max-width: min(36ch, 100%);
  font-size: clamp(15px, 3.8cqi, 20px);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: #ffffff;
  text-align: left;
  align-self: stretch;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.stage__meta {
  margin-top: 20px;
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--lime);
  text-align: left;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.stage__meta-label,
.stage__meta-year {
  font-size: clamp(12px, 2.8cqi, 14px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 1;
}

.stage__meta strong {
  display: block;
  font-size: clamp(20px, 6.5cqi, 36px);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.12;
  color: #ffffff;
}

/* Fallback if container queries unsupported */
@supports not (font-size: 1cqi) {
  .stage__title { font-size: clamp(26px, 3.2vw, 50px); }
  .stage__text { font-size: clamp(15px, 1.35vw, 20px); }
  .stage__meta strong { font-size: clamp(20px, 2.4vw, 36px); }
}

/* —— Right rail —— */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 90;
}
.burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger[aria-expanded="true"] {
  background: #2c2e31;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.is-nav-open .float-nav {
  z-index: 90;
}
body.is-nav-open .float-nav__bar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.is-nav-open .float-nav__brand,
body.is-nav-open .float-nav__cta {
  visibility: hidden;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--lime);
  color: #102810;
  font-size: 14px; /* как пункты меню */
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(158, 255, 0), 0.35);
}
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.92);
  filter: none;
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  filter: none;
}
.btn--ghost {
  background: transparent;
  color: var(--lime);
  border: 1.5px solid rgba(158, 255, 0), 0.55);
  filter: none;
}
.btn--ghost:hover {
  background: rgba(158, 255, 0), 0.1);
  box-shadow: none;
  filter: none;
}

.rail__content {
  padding: 36px clamp(28px, 4vw, 48px) 88px;
  max-width: none;
  width: 100%;
  margin: 0;
  min-width: 0;
  overflow-x: clip;
}

.section {
  padding: 72px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: 96px;
}
.section:first-of-type { border-top: 0; padding-top: 28px; }

.section-label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lime-2);
}
.section-label span { color: var(--lime); }

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  max-width: min(34ch, 100%);
}

.lead {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  max-width: min(52ch, 100%);
}

.prose {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: min(68ch, 100%);
}
.prose p { margin: 0; }
.prose strong { color: var(--text); }

/* Full-bleed photo on right rail — first viewport */
.rail-hero {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #121314;
}
.rail-hero img {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  /* люди левее, правый край кадра у края экрана */
  object-position: 100% 30%;
  display: block;
}
/* Soft fade stays at the bottom seam between hero and content */
.rail-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 22vh, 220px);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 17, 18, 0.72) 48%, rgba(16, 17, 18, 0.98) 100%);
  z-index: 1;
}
.rail-hero figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(88px, 14vh, 160px);
  display: grid;
  gap: 14px;
  padding: 0 40px 0 48px;
  background: none;
  z-index: 2;
}
.rail-hero__lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1em 0.28em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--lime);
  white-space: nowrap;
}
.rail-hero__lead > span {
  display: inline;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  max-width: none;
}
.rail-hero__lead .dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin: 0;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
  font-style: normal;
  transform: translateY(0.02em);
}
.rail-hero figcaption > span {
  display: block;
  color: #ffffff;
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.45;
  max-width: 36em;
}

.hero-card {
  margin-top: 28px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(34, 214, 106, 0.14) 0%, transparent 42%),
    linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  max-width: none;
  width: 100%;
  box-shadow: 0 0 28px rgba(125, 255, 77, 0.08);
}
.hero-card__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lime);
}
.hero-card__period {
  margin: 10px 0 4px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
}
.hero-card__year {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.text-link {
  color: var(--lime);
  font-weight: 700;
  font-size: 14px;
}
.founder {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* —— Values deck (appear from bottom → exit right) —— */
.values-row {
  margin-top: 28px;
  min-width: 0;
  max-width: 100%;
}
.values-row__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.values-deck__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200, 240, 74, 0.28);
  background: rgba(200, 240, 74, 0.08);
  color: var(--lime);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.values-deck__btn:hover {
  background: rgba(200, 240, 74, 0.18);
  border-color: rgba(200, 240, 74, 0.5);
}
.values-deck__btn:disabled { opacity: 0.35; cursor: default; }

.values-card {
  padding: 18px 16px;
  border-radius: 18px;
  min-height: 188px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(34, 214, 106, 0.2) 0%, transparent 46%),
    linear-gradient(165deg, #2f3236 0%, #222426 100%);
  border: 1px solid rgba(200, 240, 74, 0.2);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.values-card.is-active {
  border-color: rgba(200, 240, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(200, 240, 74, 0.18), 0 14px 32px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}
.values-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.values-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.values-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.values-row__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.values-row__nav { display: flex; gap: 8px; }
.values-dots {
  display: flex;
  gap: 8px;
}
.values-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.values-dots button.is-active {
  background: var(--lime);
  transform: scale(1.25);
}

/* —— Contest calendar path —— */
.cal-intro {
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: min(56ch, 100%);
}
.cal {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 8px;
  margin-top: 8px;
}
.cal__rail {
  position: absolute;
  left: 27px;
  top: 18px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(200, 240, 74, 0.55) 0%, rgba(34, 214, 106, 0.35) 55%, rgba(200, 240, 74, 0.15) 100%);
}
.cal__year {
  position: relative;
  z-index: 1;
  margin: 8px 0 2px 56px;
}
.cal__year span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(200, 240, 74, 0.22), rgba(34, 214, 106, 0.12));
  border: 1px solid rgba(200, 240, 74, 0.28);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.cal-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: stretch;
  z-index: 1;
}
.cal-item__node {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2c2f, #1b1c1e);
  border: 2px solid rgba(200, 240, 74, 0.55);
  box-shadow: 0 0 0 6px rgba(27, 28, 30, 1), 0 0 22px rgba(125, 255, 77, 0.28);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}
.cal-item__card {
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(34, 214, 106, 0.1) 0%, transparent 42%),
    linear-gradient(165deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cal-item__card:hover {
  border-color: rgba(200, 240, 74, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 28px rgba(125, 255, 77, 0.18);
}
.cal-item.is-accent .cal-item__card {
  border-color: rgba(200, 240, 74, 0.28);
  background:
    linear-gradient(145deg, rgba(200, 240, 74, 0.16) 0%, transparent 48%),
    linear-gradient(165deg, #2a2c2f 0%, #222426 100%);
}
.cal-item.is-final .cal-item__node {
  background: linear-gradient(145deg, var(--lime-hot), var(--lime));
  color: #0b3d1f;
  border-color: transparent;
}
.cal-item.is-final .cal-item__card {
  border-color: rgba(200, 240, 74, 0.4);
  background:
    linear-gradient(145deg, rgba(125, 255, 77, 0.16) 0%, transparent 50%),
    linear-gradient(165deg, #2c3028 0%, #222426 100%);
}
.cal-item__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-bottom: 8px;
  color: var(--lime);
}
.cal-item__dates strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.cal-item__dates span { color: var(--muted); }
.cal-item__dates em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-item__card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.cal-item__card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.cal-tag {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(200, 240, 74, 0.1);
  border: 1px solid rgba(200, 240, 74, 0.22);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.timeline-note {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.step-number {
  color: var(--lime);
  font-weight: 700;
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stage-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.stage-card {
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(34, 214, 106, 0.1) 0%, transparent 40%),
    linear-gradient(165deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
}
.stage-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.stage-number { color: var(--lime); font-weight: 700; }
.stage-mode {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}
.stage-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.stage-date {
  margin: 0 0 4px;
  color: var(--lime);
  font-weight: 700;
  font-size: 14px;
}
.stage-place {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.stage-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.route-caption {
  margin: -8px 0 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.metric {
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}
.metric b {
  display: block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}
.metric span {
  display: block;
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.docs {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.document {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.document:hover {
  border-color: var(--lime-2);
  transform: translateY(-1px);
}
.document span:first-child {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.document strong {
  font-size: 14px;
  font-weight: 700;
}
.document span:last-child {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

details {
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(34, 214, 106, 0.1) 0%, transparent 48%),
    var(--card);
  border: 1px solid rgba(200, 240, 74, 0.16);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
details[open] {
  border-color: rgba(200, 240, 74, 0.42);
  box-shadow: 0 0 24px rgba(125, 255, 77, 0.12);
}
details summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}
details[open] summary {
  color: var(--lime);
}
details summary::-webkit-details-marker { display: none; }
details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Decorative page scroll ruler (like reo-new zones-ruler) */
.scroll-ruler {
  position: fixed;
  top: 10vh;
  bottom: 10vh;
  right: 12px;
  width: 14px;
  z-index: 35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.scroll-ruler__track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(200, 240, 74, 0.55) 18%,
    rgba(125, 255, 77, 0.7) 50%,
    rgba(200, 240, 74, 0.55) 82%,
    transparent
  );
}
.scroll-ruler__marks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(200, 240, 74, 0.75) 0,
    rgba(200, 240, 74, 0.75) 1px,
    transparent 1px,
    transparent 9px
  );
  opacity: 0.5;
}
.scroll-ruler__tick {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow:
    0 0 10px rgba(200, 240, 74, 0.85),
    0 0 22px rgba(125, 255, 77, 0.45);
  transform: translateY(0);
  will-change: transform;
}

.site-footer {
  margin-top: 48px;
  padding: 40px 40px 48px 48px;
  background: #141516;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer__logos {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  max-width: none;
}
.site-footer__logos a {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.site-footer__logos a:hover { opacity: 1; }
.site-footer__logos img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.site-footer__logos a:last-child img {
  height: 68px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  max-width: none;
}
.site-footer h2 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}
.site-footer p { color: var(--muted); margin: 0 0 10px; }
.email {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 22px;
  font-weight: 700;
}
.copyright {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.mobile-nav {
  display: none;
}

/* —— Apply section —— */
.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.apply-side {
  display: grid;
  gap: 18px;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  height: 100%;
}

.apply-notice {
  margin: 0;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(34, 214, 106, 0.18) 0%, transparent 46%),
    linear-gradient(165deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 0 28px rgba(125, 255, 77, 0.08);
}
.apply-notice > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lime);
}
.apply-notice h3 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
}
.apply-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.apply-docs {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.apply-docs h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.apply-docs > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.apply-docs .apply-checklist {
  flex: 1;
}
.apply-docs .hero-actions {
  margin-top: auto;
  padding-top: 18px;
}

.apply-checklist {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.apply-checklist p {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
}
.apply-checklist span {
  color: var(--lime);
  font-weight: 700;
}
.apply-docs .apply-checklist p {
  background: rgba(255, 255, 255, 0.03);
}

.apply-form-host,
.apply-form-host .wpcf7 {
  height: 100%;
  min-width: 0;
}
.apply-form-host .wpcf7-form.apply-form,
form.apply-form.wpcf7-form {
  margin: 0;
}
.apply-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.apply-form .wpcf7-not-valid-tip,
.apply-form .wpcf7-response-output {
  margin: 10px 0 0;
  font-size: 13px;
}
.apply-form .wpcf7-spinner {
  margin-left: 10px;
}
.apply-form .field--check .wpcf7-acceptance,
.apply-form .field--check .wpcf7-list-item {
  margin: 0;
  display: contents;
}
.apply-form .field--check .wpcf7-list-item-label {
  display: none;
}
.apply-form input.wpcf7-submit.btn {
  width: auto;
  cursor: pointer;
}
.apply-form {
  padding: 28px 36px 30px 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(34, 214, 106, 0.08) 0%, transparent 40%),
    linear-gradient(165deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 0 28px rgba(125, 255, 77, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  max-width: 100%;
}
.apply-form__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.field {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
  max-width: 100%;
}
/* Одна высота подписей → селекты/инпуты в ряду на одной линии */
.apply-form__grid > .field > span:first-of-type {
  min-height: 2.7em;
  line-height: 1.35;
  display: flex;
  align-items: flex-end;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 17, 18, 0.55);
  color: var(--text);
  font: 600 15px/1.3 var(--font);
  text-transform: none;
  letter-spacing: 0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-color: #17181a;
  background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field select option,
.field select optgroup {
  background-color: #1b1c1e;
  color: #f4f6f3;
}

/* Custom themed select (replaces native Windows popup) */
.ep-select {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: end;
}
.ep-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: 0;
  top: 0;
}
.ep-select__btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #17181a;
  color: var(--text);
  font: 600 15px/1.3 var(--font);
  text-align: left;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ep-select__btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}
.ep-select.is-open .ep-select__btn::after {
  transform: translateY(-20%) rotate(225deg);
}
.ep-select__btn:hover,
.ep-select.is-open .ep-select__btn {
  border-color: rgba(200, 240, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 255, 77, 0.12);
}
.ep-select__btn.is-placeholder {
  color: rgba(244, 246, 243, 0.45);
}
.ep-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 16px;
  background: #1f2124;
  border: 1px solid rgba(200, 240, 74, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
}
.ep-select.is-open .ep-select__list {
  display: grid;
  gap: 2px;
}
.ep-select__option {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font: 600 14px/1.35 var(--font);
  cursor: pointer;
}
.ep-select__option:hover,
.ep-select__option.is-active {
  background: rgba(200, 240, 74, 0.14);
  color: var(--lime);
}
.ep-select__option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.field input:focus,
.field select:focus {
  border-color: rgba(200, 240, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 255, 77, 0.12);
}
.field--full { grid-column: 1 / -1; min-width: 0; }
.field--file {
  position: relative;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
}
.field--file input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-box {
  display: grid;
  gap: 4px;
  min-height: 72px;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(200, 240, 74, 0.35);
  background: rgba(16, 17, 18, 0.4);
  text-transform: none;
  letter-spacing: 0;
  box-sizing: border-box;
}
.file-box strong {
  color: var(--lime);
  font-size: 14px;
  font-weight: 700;
}
.file-box span,
.file-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.field--check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding-right: 8px;
  max-width: 100%;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}
.field--check > span {
  min-height: 0 !important;
  display: block !important;
  align-items: unset !important;
  line-height: 1.5;
}
.field--check a {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease, filter 0.15s ease;
}
.field--check a:hover {
  color: #e7ff8a;
  filter: drop-shadow(0 0 8px rgba(125, 255, 77, 0.35));
}
.field--check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
  flex-shrink: 0;
}
.apply-form__actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  justify-items: start;
}
.apply-form__note {
  margin: 0;
  color: var(--lime);
  font-size: 13px;
  line-height: 1.45;
  max-width: 46ch;
}
.apply-form__hint {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.apply-form__hint a { font-size: 13px; }
.apply-form.is-locked .btn {
  opacity: 0.72;
}

/* Jury draft cards */
.jury-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.jury-card {
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(34, 214, 106, 0.1) 0%, transparent 42%),
    linear-gradient(165deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.jury-card__photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(200, 240, 74, 0.35), transparent 55%),
    linear-gradient(160deg, #2a2d30, #1a1b1d);
  border: 1px solid rgba(200, 240, 74, 0.28);
  color: var(--lime);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.jury-card__photo span {
  opacity: 0.85;
}
.jury-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.jury-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.jury-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lime);
}

/* Partners placeholder grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}
.partner-slot {
  min-height: 96px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.partner-slot:hover {
  border-color: rgba(200, 240, 74, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(125, 255, 77, 0.1);
}
.partner-slot strong {
  font-size: 13px;
  font-weight: 700;
  color: rgba(244, 246, 243, 0.88);
}
.partner-slot span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: uppercase;
}
.partner-cta {
  margin-top: 20px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding: 14px 18px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(34, 214, 106, 0.12) 0%, transparent 50%),
    var(--card);
  border: 1px solid var(--line);
  pointer-events: none;
  user-select: text;
}
.partner-cta span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lime);
}
.partner-cta strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* Legal modals */
.legal-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100svh - 40px);
  margin: auto;
  border: 1px solid rgba(200, 240, 74, 0.28);
  border-radius: 22px;
  padding: 0;
  background: #1b1c1e;
  color: var(--text);
  overflow: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.legal-dialog::backdrop {
  background: rgba(8, 10, 10, 0.72);
  backdrop-filter: blur(6px);
}
.legal-dialog__inner {
  position: relative;
  padding: 28px 28px 32px;
}
.legal-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2c2e31;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.legal-dialog__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lime);
  padding-right: 44px;
}
.legal-dialog h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  max-width: 18ch;
}
.legal-dialog__body {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.legal-dialog__body h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 15px;
}
.legal-dialog__body p,
.legal-dialog__body li { margin: 0; }
.legal-dialog__body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.copyright a[data-legal-open] {
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Mobile: stack —— */
@media (max-width: 980px) {
  .float-nav { padding: 10px 10px 0; }
  .float-nav__bar {
    justify-content: space-between;
    padding: 8px 8px 8px 10px;
    min-height: 58px;
  }
  .float-nav__links { display: none; }
  .burger { display: grid; margin-left: auto; }

  .mobile-cue {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    z-index: 40;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--stage);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    color: #fff;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-cue.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .mobile-cue span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.85;
  }
  .mobile-cue strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }

  .stage {
    position: relative;
    min-height: 78svh;
    background:
      linear-gradient(165deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.22) 100%),
      linear-gradient(180deg, var(--stage) 0%, var(--stage-mid) 58%, var(--stage-deep) 100%);
    color: #fff;
    overflow: hidden;
  }
  .stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 18px;
    height: 28px;
    margin-left: -9px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    animation: cuebounce 1.8s ease-in-out infinite;
    z-index: 4;
  }
  .stage::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 36px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.8);
    animation: cuebounce 1.8s ease-in-out infinite;
    z-index: 4;
  }
  @keyframes cuebounce {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(6px); opacity: 1; }
  }
  .stage__inner {
    min-height: 78svh;
    padding: 76px 18px 56px;
    justify-content: flex-end;
    gap: 8px;
  }
  .stage__brand {
    position: relative;
    top: auto;
    left: auto;
    width: clamp(84px, 26vw, 132px);
    max-width: 38%;
    margin: 0 0 6px;
    flex: 0 0 auto;
    z-index: 3;
  }
  .stage__brand img {
    width: 100%;
    max-width: none;
    filter: none;
  }
  .stage__copy {
    min-height: 0;
    margin-top: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: 18px;
    padding-top: 0;
    text-align: left;
    width: 100%;
  }
  .stage__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .stage__cta,
  .stage__cta-secondary {
    min-height: 44px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .stage__kicker {
    margin-bottom: 8px;
    font-size: clamp(18px, 5.4vw, 24px);
    color: #ffffff;
    max-width: 100%;
  }
  .stage__title {
    font-size: clamp(26px, 8vw, 36px);
    max-width: 100%;
    line-height: 1.05;
  }
  .stage__text {
    margin-top: 10px;
    font-size: 15px;
    max-width: 100%;
    color: #ffffff;
  }
  .stage__meta { margin-top: 14px; gap: 4px; width: 100%; }
  .stage__meta strong { font-size: clamp(18px, 5.4vw, 24px); }

  .rail {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    border-radius: 24px 24px 0 0;
    background: var(--rail);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.22);
  }
  .rail__content { padding: 28px 18px 64px; }
  .section { padding-top: 48px; scroll-margin-top: 140px; }
  .section h2 { max-width: 100%; }
  .lead { max-width: 100%; }
  .prose { max-width: 100%; }
  .rail-hero {
    padding-top: 0;
    min-height: 0;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
  }
  .rail-hero img {
    height: clamp(220px, 58vw, 300px);
    object-position: 100% 30%;
  }
  .rail-hero::after { height: 120px; }
  .rail-hero figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: grid;
    gap: 8px;
    padding: 0 16px 10px;
    opacity: 1;
    pointer-events: none;
  }
  .rail-hero__lead,
  .rail-hero figcaption > span {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto;
    max-width: 100%;
  }
  .rail-hero__lead {
    flex-wrap: wrap;
    white-space: normal;
    font-size: clamp(20px, 5.8vw, 28px);
    letter-spacing: 0.02em;
    gap: 0.1em 0.28em;
    line-height: 1.2;
  }
  .rail-hero figcaption > span {
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
  }
  .scroll-ruler { display: none; }
  .site-footer { padding: 32px 18px 40px; }
  .site-footer__logos img { height: 44px; }
  .site-footer__logos a:last-child img { height: 56px; }

  .apply-layout { grid-template-columns: 1fr; gap: 18px; }
  .apply-form__grid { grid-template-columns: 1fr; }
  .apply-form { padding: 20px 18px 22px; }
  .jury-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }

  .values-row__track {
    grid-template-columns: 1fr;
  }
  .values-card { min-height: 148px; }

  .cal { padding-left: 0; }
  .cal__rail { left: 19px; }
  .cal__year { margin-left: 48px; }
  .cal-item { grid-template-columns: 40px 1fr; gap: 12px; }
  .cal-item__node { width: 40px; height: 40px; }
  .cal-item__dates strong { font-size: 18px; }

  .metrics { grid-template-columns: 1fr; }
  .document {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .stage-route { grid-template-columns: 1fr; }
  .site-footer { padding: 32px 16px 40px; }
  .site-footer__grid { grid-template-columns: 1fr; }

  .mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #101112;
    padding: 88px 24px 32px;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
    isolation: isolate;
  }
  .mobile-nav[hidden]:not(.is-open) { display: none !important; }
  .mobile-nav.is-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }
  .mobile-nav a {
    font-size: 22px;
    font-weight: 700;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-nav.is-open a {
    opacity: 1;
    transform: translateX(0);
  }
  .mobile-nav.is-open a:nth-child(2) { transition-delay: 0.04s; }
  .mobile-nav.is-open a:nth-child(3) { transition-delay: 0.07s; }
  .mobile-nav.is-open a:nth-child(4) { transition-delay: 0.1s; }
  .mobile-nav.is-open a:nth-child(5) { transition-delay: 0.13s; }
  .mobile-nav.is-open a:nth-child(6) { transition-delay: 0.16s; }
  .mobile-nav.is-open a:nth-child(7) { transition-delay: 0.19s; }
  .mobile-nav.is-open a:nth-child(8) { transition-delay: 0.22s; }
  .mobile-nav.is-open a:nth-child(9) { transition-delay: 0.25s; }
  .mobile-nav.is-open a:nth-child(10) { transition-delay: 0.28s; }
  .mobile-nav .btn {
    margin-top: 18px;
    width: fit-content;
    border-bottom: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 18px;
    min-height: 44px;
  }
  .mobile-nav__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2c2e31;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
  }
}

@media (max-width: 640px) {
  .values-row__track { grid-template-columns: 1fr; }
  .hero-card__period { font-size: clamp(26px, 8vw, 34px); }
  .jury-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .legal-dialog__inner { padding: 24px 18px 28px; }
}

@media (min-width: 981px) {
  .stage__inner { padding-top: 28px; }
  .mobile-cue { display: none !important; }
}

/* Mid desktop: prevent rail cards from overflowing when column narrows */
@media (min-width: 981px) and (max-width: 1320px) {
  .rail__content {
    padding: 28px 24px 72px 28px;
  }
  .values-row__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jury-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .apply-layout {
    grid-template-columns: 1fr;
  }
  .stage-route {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .shell {
    grid-template-columns: minmax(280px, 33.333vw) minmax(0, 1fr);
  }
  .stage__brand {
    --ep-logo: clamp(80px, 26cqi, 150px);
    top: clamp(112px, 16vh, 148px);
    left: 18px;
  }
  .stage__copy {
    padding-top: clamp(180px, 44cqi + 96px, 300px);
  }
  .section h2 {
    font-size: clamp(26px, 3.2vw, 40px);
  }
  .float-nav__links {
    gap: 2px 10px;
  }
  .float-nav__links a {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .values-card { transition: none !important; }
  .scroll-ruler__tick { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage::before,
  .stage::after { animation: none; }
  .stage__stars .star { animation: none; }
  .stage__actions {
    grid-template-columns: 1fr;
  }
  .mobile-nav,
  .mobile-nav a,
  .mobile-cue { transition: none; }
}
