:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dce3ed;
  --panel: #ffffff;
  --soft: #eef2f7;
  --blue: #0b2545;
  --blue-h: #1a4a82;
  --blue-light: #d6e8ff;
  --teal: #2563eb;
  --red: #e8192c;
  --red-h: #c1121f;
  --gold: #f59e0b;
  --green: #16a34a;
  --shadow: 0 10px 30px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.5;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(18, 32, 51, .12);
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.brand, .site-nav, .lang-switch, .site-footer {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  background: var(--red);
  border-radius: 4px;
  letter-spacing: 0;
}
.site-nav { gap: 18px; font-weight: 700; font-size: 14px; }
.site-nav a, .lang-switch a { text-decoration: none; color: rgba(255,255,255,.84); }
.site-nav a:hover, .lang-switch a:hover, .lang-switch a[aria-current="true"] { color: #fff; }
.lang-switch { gap: 10px; font-size: 13px; font-weight: 800; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  min-height: calc(100vh - 120px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 6vw, 72px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 78% 28%, rgba(37,99,235,.28), transparent 24rem),
    linear-gradient(135deg, #060f1e 0%, var(--blue) 42%, #163a6b 100%);
  color: white;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.lead {
  font-size: clamp(18px, 2.2vw, 23px);
  color: rgba(255,255,255,.84);
  max-width: 680px;
}
.season-context {
  max-width: 680px;
  margin: 0;
  padding: 14px 16px;
  color: #d6e8ff;
  background: rgba(255,255,255,.09);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button, .gate-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button.primary, .gate-form button {
  color: white;
  background: var(--red);
}
.button.primary:hover, .gate-form button:hover { background: var(--red-h); text-decoration: none; }
.button.secondary {
  color: white;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
}
.button.secondary:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero-preview {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.hero-panel {
  align-self: stretch;
  padding: 26px;
  color: white;
  background: rgba(6, 15, 30, .62);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-panel span { display: block; color: #b8d9f5; font-weight: 800; }
.hero-panel strong { display: block; font-size: 46px; line-height: 1.05; margin: 6px 0 12px; }
.scroll-rail {
  height: min(48vh, 470px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.scroll-track {
  display: grid;
  gap: 14px;
  padding: 14px;
  animation: rail-scroll 28s linear infinite;
}
.scroll-rail:hover .scroll-track { animation-play-state: paused; }
@keyframes rail-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.rail-card {
  padding: 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  border-top: 4px solid var(--blue);
}
.rail-card:nth-child(3n + 2) { border-top-color: var(--teal); }
.rail-card:nth-child(3n + 3) { border-top-color: var(--gold); }
.rail-card h3 { color: var(--blue); margin-bottom: 12px; }
.rail-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.stats-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: -44px auto 56px;
  padding: 0 18px;
}
.stats-title,
.stat {
  min-height: 110px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
}
.stats-title { border-radius: 8px 0 0 8px; }
.stats-title span {
  display: block;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}
.stats-title strong {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 23px;
  line-height: 1.1;
}
.stat:first-child { border-radius: 0; }
.stat:last-child { border-radius: 0 8px 8px 0; }
.stat strong { display: block; font-size: 34px; color: var(--blue); }
.stat span { color: var(--muted); font-weight: 800; }

.info-grid, .preview-section, .register-band, .form-hero, .form-wrap, .simple-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr);
  gap: 44px;
  margin-bottom: 72px;
}
.info-grid h2, .preview-section h2, .register-band h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.info-grid p { color: var(--muted); font-size: 18px; }
.info-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.info-grid li {
  padding: 16px 18px;
  border-left: 5px solid var(--teal);
  background: white;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(18,32,51,.06);
  font-weight: 800;
}
.preview-section { margin-bottom: 72px; }
.section-title { max-width: 700px; margin-bottom: 24px; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.preview-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  min-height: 300px;
  box-shadow: 0 8px 28px rgba(18,32,51,.06);
  border-top: 4px solid var(--blue);
}
.preview-card:nth-child(2) { border-top-color: var(--teal); }
.preview-card:nth-child(3) { border-top-color: var(--green); }
.preview-card:nth-child(4) { border-top-color: var(--gold); }
.preview-card h3 { margin-bottom: 16px; color: var(--blue); }
.preview-card ol,
.rail-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.preview-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
}
.preview-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--blue);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.preview-card small { display: block; color: var(--muted); font-weight: 700; }
.preview-card b, .rail-card b { color: var(--blue-h); text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.register-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  margin-bottom: 72px;
  color: white;
  background: var(--blue);
  border-radius: 8px;
}
.register-band p { color: #d8e6f4; max-width: 680px; margin-bottom: 0; }

.form-hero, .simple-page {
  padding-top: 72px;
  padding-bottom: 26px;
}
.form-hero h1, .simple-page h1 { font-size: clamp(36px, 5vw, 58px); }
.form-hero p, .simple-page p { color: var(--muted); max-width: 760px; font-size: 18px; }
.form-wrap { padding-bottom: 72px; }
.registration-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
label {
  display: grid;
  gap: 7px;
  color: #314155;
  font-weight: 900;
}
input, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-actions span { color: var(--muted); font-weight: 700; }
.form-errors, .form-error {
  padding: 14px 16px;
  color: #8a1f25;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
}
.form-errors p { margin: 0; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}
.receipt {
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #d9e8f5;
  background: #0e2238;
}
.site-footer p { margin: 4px 0 0; color: #9eb5ca; }
.site-footer a { color: white; font-weight: 900; }

.gate-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(18,60,105,.92), rgba(13,118,111,.86)),
    #123c69;
}
.gate-shell {
  width: min(480px, 100%);
  padding: 30px;
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
}
.gate-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: white;
  border-radius: 6px;
  font-weight: 900;
  margin-bottom: 18px;
}
.gate-shell p { color: #dcecf7; }
.gate-form { display: flex; gap: 10px; }

@media (max-width: 800px) {
  .site-header { position: static; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .stats-strip, .preview-grid, .form-row, .info-grid, .hero { grid-template-columns: 1fr; }
  .stats-strip { margin-top: 0; }
  .stats-title, .stat, .stat:first-child, .stat:last-child { border-radius: 8px; }
  .scroll-rail { height: 420px; }
  .register-band, .site-footer, .gate-form { flex-direction: column; align-items: stretch; }
}
