:root {
  --turquoise: #01acc8;
  --eu-blue: #003399;
  --deep-blue: #071b48;
  --ink: #172033;
  --muted: #5d6a7d;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --gold: #ffcc00;
  --red: #c40705;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); padding: 10px 14px; background: white; color: var(--deep-blue); font-weight: 800; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: var(--header-h); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 9px 28px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--deep-blue); font-weight: 850; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.language-switcher { position: relative; display: inline-flex; align-items: center; }
.language-switcher::after { content: ""; position: absolute; right: 16px; width: 7px; height: 7px; border-right: 2px solid var(--deep-blue); border-bottom: 2px solid var(--deep-blue); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.language-switcher select { appearance: none; min-width: 132px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 35px 10px 14px; background: white; color: var(--deep-blue); font: inherit; font-size: 14px; font-weight: 800; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: inherit; line-height: 1.12; letter-spacing: 0; }
h1 { margin-bottom: 20px; font-size: clamp(30px, 3.2vw, 42px); }
h2 { margin-bottom: 24px; font-size: clamp(30px, 3.2vw, 44px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }
.kicker { margin-bottom: 12px; color: var(--turquoise); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: linear-gradient(rgba(7, 27, 72, .22), rgba(7, 27, 72, .22)), url("../images/runners.jpeg") center / cover no-repeat; }
.hero-inner { position: relative; display: flex; justify-content: center; padding: 40px 0 80px; }
.hero-panel { width: min(730px, 100%); padding: 48px; background: rgba(255, 255, 255, .96); text-align: center; }
.hero-copy { margin: 0 auto 28px; max-width: 610px; color: rgba(23, 32, 51, .72); font-size: 18px; line-height: 1.75; }
.hero-copy strong { color: var(--ink); font-weight: 850; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 850; text-decoration: none; }
.button-dark { background: var(--deep-blue); color: white; }
.button-light { background: white; color: var(--deep-blue); }

.counter-section { padding: 38px 0; background: white; }
.counter-title { margin-bottom: 20px; color: var(--red); font-size: 24px; text-align: center; }
.counter-grid { display: grid; max-width: 1104px; margin: 0 auto; border: 1px solid #ddd; border-radius: 10px; background: #f9f9f9; box-shadow: 0 4px 8px rgba(0, 0, 0, .1); overflow: hidden; }
.counter-grid-two { grid-template-columns: repeat(2, 1fr); }
.counter-item { min-height: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.counter-item + .counter-item { border-left: 1px solid var(--line); }
.counter-item strong { color: var(--red); font-size: 40px; line-height: 1; }
.counter-item span { margin-top: 8px; color: #555; font-size: 18px; }

.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.statement { max-width: 920px; margin-bottom: 40px; color: var(--deep-blue); font-size: clamp(30px, 3.2vw, 42px); }
.text-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.text-columns h3 { margin: 0; color: var(--deep-blue); line-height: 1.5; }
.text-columns h3 strong { font-weight: 900; }
.body-copy { font-size: 18px; line-height: 1.75; }
.body-copy p { margin-bottom: 26px; }
.goal { margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--turquoise); background: white; color: var(--deep-blue); font-weight: 850; }
.narrow-copy { display: grid; grid-template-columns: 192px minmax(0, 1fr); column-gap: 48px; max-width: 1104px; }
.narrow-copy .kicker { grid-column: 1; grid-row: 1; padding-top: 9px; color: var(--muted); }
.narrow-copy h2 { grid-column: 2; grid-row: 1; margin-bottom: 20px; }
.large-copy { grid-column: 2; grid-row: 2; max-width: 820px; margin-bottom: 0; font-size: 18px; }

.image-cta { position: relative; display: grid; place-items: center; overflow: hidden; color: white; text-align: center; }
.image-cta-photo { position: absolute; inset: 0; background: linear-gradient(rgba(7, 27, 72, .62), rgba(7, 27, 72, .62)), url("../images/kazan-tower.jpeg") center 44% / cover no-repeat; }
.image-cta-inner { position: relative; padding: 72px 0; }
.image-cta h2 { max-width: 760px; margin: 0 auto 28px; font-size: clamp(30px, 3.2vw, 42px); }

.results { padding: 72px 0; color: white; background: var(--red); text-align: center; }
.results h2 { margin-bottom: 40px; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.results-grid > div { display: flex; flex-direction: column; align-items: center; padding: 18px; }
.results-grid > div + div { border-left: 1px solid rgba(255, 255, 255, .35); }
.results-grid strong { font-size: clamp(54px, 7vw, 82px); line-height: 1; }
.results-grid span { margin-top: 10px; font-size: 18px; font-weight: 800; }

.organiser-band { padding: 52px 0; background: var(--soft); }
.organiser-band-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.organiser-logo-link { display: block; width: 138px; }
.organiser-logo { width: 138px; height: auto; }
.organiser-text { max-width: 620px; margin: 0 auto; color: var(--ink); font-weight: 500; text-align: center; }
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer-grid p { margin: 4px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.footer-links a { padding: 10px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--eu-blue); background: rgba(0, 51, 153, .08); }
.legal-copy { max-width: 820px; }
.legal-copy h1 { margin-bottom: 34px; color: var(--deep-blue); }
.legal-copy h2 { margin: 38px 0 14px; color: var(--deep-blue); font-size: 24px; }
.legal-copy p { margin-bottom: 18px; }
.legal-copy a { color: var(--eu-blue); }
.legal-back { margin-top: 42px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 720px) {
  .site-header { padding: 8px 14px; }
  .brand span { display: none; }
  .brand img { width: 44px; height: 44px; }
  .hero { min-height: 680px; }
  .hero-inner { padding: 54px 0; }
  .hero-panel { padding: 32px 20px; }
  .hero-copy { font-size: 17px; }
  .section { padding: 72px 0; }
  .text-columns { grid-template-columns: 1fr; }
  .narrow-copy { display: block; }
  .narrow-copy .kicker { padding-top: 0; }
  .results-grid { grid-template-columns: 1fr; }
  .results-grid > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, 1120px); }
  .language-switcher select { min-width: 116px; }
  .counter-grid-two { grid-template-columns: 1fr; }
  .counter-item { min-height: 108px; padding: 18px 10px; }
  .counter-item + .counter-item { border-left: 0; border-top: 1px solid var(--line); }
  .counter-item strong { font-size: 38px; }
  .counter-item span { font-size: 16px; }
  .hero .button { width: 100%; }
  .organiser-band { padding: 42px 0; }
  .organiser-band-inner { gap: 18px; }
  .organiser-text { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
