/* Night Sky. One dark look: deep navy ground, a lighter navy band, gold used sparingly. */
:root {
  --ink: #0B2140;
  --night: #0E2747;
  --band: #143A6B;
  --line: #2F5585;
  --text: #E9EEF5;
  --muted: #C2CEDF;
  --dim: #9FB0C8;
  --white: #FFFFFF;
  --gold: #E3A92B;
  --gold-text: #F1C25B;
  --dark: #1A1F2B;
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img, svg, canvas { max-width: 100%; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: #FFD98A; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--white); text-wrap: balance; margin: 0; font-weight: 400; }
h3 { font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.band { background: var(--band); }
.deep { background: var(--ink); }
.section { padding-block: 104px; }
.section-tight { padding-block: 72px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-text); }
.lede { font-size: 21px; color: var(--muted); max-width: 620px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; max-width: 720px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 19px; }

/* Header */
.site-header { position: relative; z-index: 2; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); font-family: var(--display); font-size: 23px; font-weight: 600; }
.brand:hover { color: var(--white); }
.brand small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; padding-block: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-text); }
.nav .lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #4F6E99; border-radius: 20px; font-size: 14px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 25px; text-decoration: none; font-weight: 700; font-size: 17px; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #F0BC48; color: var(--dark); }
.btn-line { border: 1px solid #8DA3C2; color: var(--white); font-weight: 600; }
.btn-line:hover { border-color: var(--white); color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-block: 72px 112px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.5px; }
.hero h1 em { font-style: italic; color: var(--gold-text); }
.hero-mark { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-inline: auto; }
.hero-mark svg { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.hero-mark figcaption { font-size: 15px; color: var(--dim); text-align: center; max-width: 300px; }
.orbit { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.6s ease-out forwards; }
.orbit.second { animation-delay: 0.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.page-hero .hero-grid { padding-block: 56px 88px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.06; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 32px 28px 32px 0; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact .num { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.fact p { color: var(--muted); font-size: 17px; }

/* Program cards */
.programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.program { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--night); }
.program .when { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); background: var(--gold); border-radius: 999px; padding: 4px 12px; }
.program h3 { font-size: 27px; line-height: 1.15; }
.program p { color: var(--muted); }
.program .example { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; color: var(--dim); }
.program .example b { color: var(--text); font-weight: 600; }
.program a.more { font-weight: 700; }

/* Story: one match, start to finish */
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; list-style: none; padding: 0; counter-reset: step; }
.story li { position: relative; padding: 0 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.story li + li { padding-left: 28px; }
.story .dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--gold); background: var(--band); position: relative; z-index: 1; }
.story li:last-child .dot { background: var(--gold); }
.story .track { position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); }
.story li:first-child .track { left: 9px; }
.story li:last-child .track { right: auto; width: 28px; }
.story li:not(:first-child) .track { left: 0; }
.story .label { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-text); }
.story h3 { font-size: 23px; line-height: 1.2; }
.story p { color: var(--muted); }

/* Photo split */
.split { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.split > * { min-width: 0; }
.split .copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.split .copy h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.split .copy p { color: var(--muted); }
.photo { flex: 1 1 440px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.photo img { width: 100%; height: auto; display: block; border-radius: 14px; }
.photo figcaption { font-size: 15px; color: var(--dim); }

/* Timeline */
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 8px 32px; padding-block: 22px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .month { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--gold-text); }
.timeline p { color: var(--muted); }
.timeline p b { color: var(--white); font-weight: 600; }

/* Principles */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 64px; }
.principle { display: flex; flex-direction: column; gap: 8px; }
.principle h3 { font-size: 24px; }
.principle p { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; font-family: var(--display); font-size: 23px; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 28px; line-height: 1; color: var(--gold-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 24px; max-width: 720px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.person { padding: 32px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 6px; }
.person .role { color: var(--gold-text); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.person h3 { font-size: 27px; }
.person p { color: var(--muted); }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.audience { padding: 28px; border-radius: 18px; background: var(--night); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.audience h3 { font-size: 22px; }
.audience p { color: var(--muted); }

/* Partners list */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.partner { padding-block: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.partner b { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--white); }
.partner span { font-size: 15px; color: var(--dim); }

/* Long-form program sections */
.detail { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.detail .side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.detail .side h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.detail .side .when { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); background: var(--gold); border-radius: 999px; padding: 4px 12px; }
.detail .main { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail .main > p { color: var(--muted); }
.detail h3 { font-size: 23px; margin-top: 10px; }
.bullets { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 22px; }
.card p { color: var(--muted); }
.status { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--gold); padding-left: 20px; }
.status p { color: var(--muted); padding-block: 6px; }
.status p b { color: var(--white); font-weight: 600; }

/* Kondratyuk route */
.route { display: flex; flex-direction: column; gap: 20px; }
.route-figure { background: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 20px; overflow-x: auto; }
.route-figure svg { display: block; width: 100%; min-width: 560px; height: auto; }
.route .seg { transition: opacity 0.35s, stroke-width 0.35s; opacity: 0.22; }
.route .seg.on { opacity: 1; }
.route .seg.now { stroke-width: 4; }
.route-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.route-steps button { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid #4F6E99; background: transparent; color: var(--text); cursor: pointer; }
.route-steps button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.route-caption { min-height: 3.4em; font-size: 19px; color: var(--muted); max-width: 720px; }
.route-caption b { color: var(--white); }

/* Contact */
.email-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink); }
.email { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); color: var(--white); user-select: all; overflow-wrap: anywhere; flex: 1 1 280px; min-width: 0; }
.copy-btn { font: inherit; font-weight: 700; min-height: 46px; padding: 0 22px; border-radius: 23px; border: 1px solid #8DA3C2; background: transparent; color: var(--white); cursor: pointer; }
.copy-btn:hover { border-color: var(--white); }

.cta { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); }
.cta p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid #22426B; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 32px 48px; font-size: 15px; color: var(--dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--gold-text); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding-block: 76px; }
  .hero-grid { padding-block: 40px 80px; }
  .hero-mark { flex-basis: 220px; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact { padding-right: 0; }
  .story { gap: 28px; }
  .story li, .story li + li { padding: 0; }
  .story .track { display: none; }
  .timeline li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none; stroke-dashoffset: 0; }
  .route .seg { transition: none; }
}

/* Contact form (posts to /api/contact, which emails the team; no address on the page). */
.contact-form { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; font-weight: 400; color: var(--dim); }
.field input, .field textarea { font: inherit; font-size: 17px; font-weight: 400; color: var(--text); background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-color: var(--gold-text); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-actions .btn:disabled { opacity: 0.6; cursor: default; }
.form-status { color: var(--muted); }
.form-status.is-ok { color: var(--gold-text); }
.form-status.is-error { color: #FFB4A8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }
