﻿:root{
  --ink:#17231f;
  --muted:#5f6d64;
  --bg:#f7f5ef;
  --panel:#fff;
  --line:#d8ddd2;
  --green:#1b6b4a;
  --lime:#d9e7a8;
  --coral:#d9653b;
  --blue:#2c6394;
  --brand-blue:#06233d;
  --gold:#e9bc22;
  --shadow:0 16px 44px rgba(6,35,61,.1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:18px;padding:14px clamp(18px,4vw,56px);background:rgba(245,243,234,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(23,33,27,.08)}
.brand{display:flex;align-items:center;gap:12px;color:var(--brand-blue);text-decoration:none;font-weight:900;flex:0 0 auto}.brand-logo{display:grid;place-items:center;width:58px;height:44px;border-radius:8px;background:#fff;overflow:hidden;border:1px solid var(--line)}.brand-logo img{width:100%;height:100%;object-fit:contain;padding:3px}.brand-text{font-size:18px;color:var(--brand-blue)}.support-logo{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;overflow:hidden;border:1px solid var(--line);flex:0 0 auto}.support-logo img{width:100%;height:100%;object-fit:contain}.main-nav{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-left:auto}.main-nav a{color:var(--brand-blue);text-decoration:none;padding:8px 10px;border-radius:8px;font-weight:750;font-size:13px}.main-nav a:hover{background:#e7eadf}
.hero{min-height:92vh;display:grid;grid-template-columns:1.02fr .98fr;align-items:stretch}.hero-media{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(220px,.7fr);gap:14px;align-items:center;background:var(--brand-blue);padding:18px}.hero-media img{display:block;width:100%;height:auto;max-height:calc(92vh - 36px);object-fit:contain;border-radius:8px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.22)}.hero-route{align-self:center}.hero-content{display:flex;flex-direction:column;justify-content:center;padding:54px clamp(24px,5vw,72px);background:linear-gradient(180deg,#f7f5ef,#edf1e7)}.eyebrow{margin:0 0 12px;color:var(--green);font-weight:950;text-transform:uppercase;letter-spacing:0;font-size:12px}.hero h1{margin:0;max-width:760px;font-size:clamp(40px,6.8vw,88px);line-height:.96;letter-spacing:0}.hero p:not(.eyebrow){max-width:680px;font-size:19px;color:#354139}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 18px;border-radius:8px;border:1px solid transparent;font-weight:850;text-decoration:none;cursor:pointer;font:inherit}.button.primary{background:var(--brand-blue);color:#fff}.button.primary:hover{background:#0d3558}.button.secondary{background:#fff;color:var(--ink);border-color:var(--line)}.button.secondary:hover,.button.light:hover{border-color:var(--green);color:var(--brand-blue)}.button.light{background:#fff;color:var(--ink)}.button.small{min-height:38px;padding:9px 13px;font-size:14px}.button:disabled{opacity:.55;cursor:not-allowed}.countdown{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));gap:8px;max-width:480px;margin-top:26px}.countdown div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}.countdown strong{display:block;font-size:28px;line-height:1;color:var(--green)}.countdown span{font-size:12px;color:var(--muted);font-weight:800;text-transform:uppercase}
.home-hero{min-height:88vh;display:grid;grid-template-columns:.62fr 1.38fr;gap:30px;align-items:center;padding:34px clamp(18px,5vw,72px);background:linear-gradient(135deg,#f8f6f0 0%,#edf2e9 66%,#f1dea0 100%)}.home-hero-copy{max-width:520px}.home-hero-copy h1{margin:0;max-width:520px;font-size:clamp(34px,4vw,52px);line-height:.96;color:var(--brand-blue);letter-spacing:0}.home-hero-copy p:not(.eyebrow){max-width:500px;font-size:17px;color:#354139}.home-visual{display:grid;grid-template-columns:1.42fr .78fr;grid-template-rows:1fr 1fr;gap:14px;min-height:680px}.home-visual img{width:100%;height:100%;object-fit:cover;border-radius:8px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.72)}.home-visual-main{grid-row:1/-1}.community-about{background:#fff}.start-feature{background:var(--brand-blue);color:#fff}.start-feature-card{display:grid;grid-template-columns:1fr minmax(260px,420px);gap:30px;align-items:center}.start-feature h2{color:#fff}.start-feature p:not(.eyebrow){max-width:720px;color:#d8e4dc;font-size:18px}.start-feature .eyebrow{color:var(--gold)}.start-feature img{width:100%;height:auto;max-height:620px;object-fit:contain;border-radius:8px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.22)}.values-section{background:#eef2e8}.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.values-grid article{background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px;box-shadow:var(--shadow)}.values-grid span{display:inline-flex;margin-bottom:36px;color:var(--coral);font-weight:950}.values-grid h3{margin:0 0 8px;font-size:23px;color:var(--brand-blue)}.values-grid p{margin:0;color:var(--muted);font-weight:650}.winter-note{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:end;background:#153829;color:#fff}.winter-note h2{color:#fff}.winter-note p:not(.eyebrow){margin:0;color:#d8e4dc;font-size:18px;font-weight:650}
.stats-band{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-block:1px solid var(--line)}.stats-band div{background:#fff;padding:28px clamp(18px,4vw,56px)}.stats-band strong{display:block;font-size:42px;line-height:1;color:var(--green)}.stats-band span{color:var(--muted);font-weight:750}.section{padding:72px clamp(18px,5vw,72px)}.split{display:grid;grid-template-columns:.85fr 1.15fr;gap:48px}.section h2{margin:0;font-size:clamp(30px,5vw,56px);line-height:1.03;letter-spacing:0}.text-stack p{margin:0 0 18px;color:#3d4840;font-size:18px}.event-facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.event-facts span{padding:8px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:800;color:#354139}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.with-actions{align-items:center}
.distance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.distance-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px;box-shadow:var(--shadow);cursor:pointer;transition:transform .15s ease,border-color .15s ease}.distance-card:hover{transform:translateY(-2px);border-color:var(--green)}.distance-number{display:inline-flex;margin-bottom:36px;font-size:34px;font-weight:950;color:var(--green)}.distance-card h3{margin:0 0 8px;font-size:21px}.distance-card p{margin:0 0 16px;color:var(--muted)}.distance-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.distance-card dt{font-size:12px;text-transform:uppercase;color:var(--muted);font-weight:900}.distance-card dd{margin:0;font-weight:850;text-align:right}
.route-section{background:#eef2e8}.route-layout{display:grid;grid-template-columns:1.35fr .65fr;gap:24px;align-items:start}.route-map{margin:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;box-shadow:var(--shadow)}.route-map img{display:block;width:100%;height:auto;border-radius:6px}.route-notes{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px}.route-notes h3{margin:0 0 10px;font-size:22px}.route-notes p{margin:0 0 14px;color:var(--muted);font-weight:650}.route-notes ul{margin:0;padding-left:19px;color:#354139;font-weight:700}.route-notes li{margin-bottom:8px}
.marathons{background:#fff}.marathon-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.marathon-card{min-height:430px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:28px;border-radius:8px;color:#fff;box-shadow:var(--shadow);overflow:hidden}.marathon-card.winter{background:linear-gradient(180deg,rgba(19,45,68,.08),rgba(19,45,68,.88)),url('assets/winter-2026-poster.png') center/cover}.marathon-card.summer{background:linear-gradient(180deg,rgba(27,61,34,.08),rgba(27,61,34,.78)),url('assets/summer-2026-poster.jpg') center/cover}.season{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.9);color:var(--ink);font-weight:900;font-size:13px}.event-note{display:inline-flex;padding:9px 12px;border-radius:8px;background:rgba(255,255,255,.85);color:var(--ink);font-weight:900}.past-event{filter:saturate(.86)}.marathon-card h3{margin:18px 0 8px;font-size:30px;line-height:1.08}.marathon-card p{max-width:580px;margin:0 0 18px;color:#eef5ed}
.registration-layout{display:grid;grid-template-columns:.78fr 1.22fr;gap:40px;background:var(--brand-blue);color:#fff}.registration-layout .eyebrow{color:var(--gold)}.registration-copy p:not(.eyebrow){color:#d8e4dc;font-size:18px}.steps-list{margin:24px 0 0;padding-left:20px;color:#f3f8f0;font-weight:800}.steps-list li{margin-bottom:8px}.registration-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#fff;color:var(--ink);border-radius:8px;padding:24px}.registration-form label{display:grid;gap:7px;font-weight:800;font-size:14px}.registration-form input,.registration-form select,.registration-form textarea,.table-actions select,.table-actions input,.lookup-row input{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px 13px;font:inherit;background:#fbfbf8;color:var(--ink)}.registration-form input:focus,.registration-form select:focus,.registration-form textarea:focus,.table-actions select:focus,.table-actions input:focus,.lookup-row input:focus{outline:3px solid rgba(44,99,148,.2);border-color:var(--blue);background:#fff}.registration-form .full{grid-column:1/-1}.checkbox{grid-template-columns:auto 1fr!important;align-items:start;font-weight:650}.checkbox input{width:18px;height:18px;margin-top:2px}.form-status{grid-column:1/-1;margin:0;color:var(--blue);font-weight:850}.table-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.table-actions select{min-width:180px}.table-actions input{min-width:260px}.members-table-wrap{position:relative;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px}.members-table{width:100%;border-collapse:collapse;min-width:820px}.members-table th,.members-table td{padding:15px 16px;text-align:left;border-bottom:1px solid var(--line)}.members-table th{background:#eef2e8;font-size:13px;text-transform:uppercase;color:#526056}.compact-table{min-width:680px}.empty-state{margin:0;padding:26px;color:var(--muted);font-weight:750}.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;background:#e5f2d0;color:#31530d;font-size:12px;font-weight:900}
.equipment-checklist{display:grid;gap:10px;margin:2px 0;padding:16px;border:1px solid var(--line);border-radius:8px;background:#f7f8f4}.equipment-checklist legend{max-width:100%;padding:0 5px;color:var(--brand-blue);font-size:14px;font-weight:850;line-height:1.45}.equipment-checklist legend span{color:#b42318}.equipment-checklist .checkbox{padding:2px 0}
.cabinet{background:#eef2e8}.lookup-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px;max-width:860px}.lookup-panel p{margin-top:0;color:var(--muted);font-weight:700}.lookup-row{display:grid;grid-template-columns:1fr auto;gap:10px}.lookup-result{margin-top:14px;border:1px dashed var(--line);border-radius:8px;padding:16px;color:var(--muted);font-weight:700}.lookup-result strong{color:var(--ink)}
.cabinet-preview-link{margin-top:14px}
.winter-note-simple{grid-template-columns:1fr}
.start-feature-card{grid-template-columns:minmax(360px,.78fr) minmax(0,1.22fr)}
.start-feature h2{font-size:clamp(30px,2.8vw,40px)}.start-feature-media{display:grid;grid-template-columns:minmax(210px,.78fr) minmax(290px,1.22fr);gap:14px;align-items:center}.start-feature-media img{width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:8px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.22)}.start-feature-media img:last-child{max-width:350px;justify-self:center}
.gallery-item.winter-2018{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.3)),url('assets/winter-2018-collage.png');background-position:center}
.participant-hero{min-height:78vh;display:grid;grid-template-columns:.92fr 1.08fr;gap:34px;align-items:center;padding:42px clamp(18px,5vw,72px);background:linear-gradient(135deg,#f8f6f0 0%,#edf2e9 62%,#f1dea0 100%)}.participant-intro{max-width:620px}.participant-intro h1{margin:0;max-width:600px;font-size:clamp(38px,5.6vw,76px);line-height:.98;color:var(--brand-blue);letter-spacing:0}.participant-intro p:not(.eyebrow){max-width:560px;font-size:18px;color:#354139}.participant-search{max-width:580px;margin-top:22px}.participant-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px;box-shadow:0 22px 58px rgba(6,35,61,.16)}.participant-card-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:24px;border-bottom:1px solid var(--line)}.participant-card-top h2{margin:12px 0 4px;font-size:38px;color:var(--brand-blue)}.participant-card-top p{margin:0;color:var(--muted);font-weight:750}.participant-card-top strong{display:grid;place-items:center;min-width:116px;min-height:116px;border-radius:50%;background:var(--brand-blue);color:#fff;font-size:34px;box-shadow:inset 0 0 0 8px rgba(255,255,255,.12)}.status-pill.ready{background:#e8f2d4;color:#31530d}.participant-details{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:24px 0 0;background:var(--line);border:1px solid var(--line);border-radius:8px;overflow:hidden}.participant-details div{background:#fbfbf8;padding:16px}.participant-details dt{font-size:12px;text-transform:uppercase;font-weight:900;color:var(--muted)}.participant-details dd{margin:5px 0 0;font-weight:850;color:var(--ink)}.cabinet-dashboard{background:#fff}.cabinet-grid{display:grid;grid-template-columns:.9fr .9fr 1.2fr;gap:16px;align-items:stretch}.cabinet-panel{background:#fbfbf7;border:1px solid var(--line);border-radius:8px;padding:24px;box-shadow:var(--shadow)}.cabinet-panel h2{margin:0 0 12px;font-size:30px;color:var(--brand-blue)}.cabinet-panel p:not(.eyebrow){color:var(--muted);font-weight:700}.payment-panel{background:var(--brand-blue);color:#fff}.payment-panel h2{color:#fff}.payment-panel .eyebrow{color:var(--gold)}.payment-panel p:not(.eyebrow){color:#d8e4dc}.payment-amount{font-size:44px;line-height:1;font-weight:950;margin:18px 0;color:#fff}.document-actions.stacked{display:grid}.checklist-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.checklist-grid span{display:flex;align-items:center;min-height:48px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;font-weight:850;color:#354139}.cabinet-panel.wide{grid-column:span 2}.route-preview{grid-row:span 2}.route-preview img{display:block;width:100%;height:auto;border-radius:8px;border:1px solid var(--line);background:#fff}
.documents{background:#fff}.document-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.document-grid article,.results-panel{background:#fbfbf7;border:1px solid var(--line);border-radius:8px;padding:22px}.document-grid h3{margin:0 0 8px}.document-grid p,.results-panel p{color:var(--muted)}.document-actions{display:flex;gap:10px;flex-wrap:wrap}.archive{background:#fff}.timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.timeline article{padding:20px;border:1px solid var(--line);border-radius:8px;background:#fbfbf7}.timeline time{font-weight:950;color:var(--blue)}.timeline h3{margin:10px 0 6px;font-size:20px}.timeline p{margin:0;color:var(--muted)}.gallery-grid{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:14px}.gallery-item{min-height:250px;display:flex;align-items:flex-end;padding:18px;border-radius:8px;overflow:hidden;background-size:cover;background-position:center}.gallery-item span{padding:8px 10px;background:#fff;border-radius:8px;font-weight:900}.gallery-item.winter-2018{background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.3)),url('assets/winter-2018-collage.png');background-position:center}.gallery-item.winter-2022{background-image:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.38)),url('assets/winter-2022-08.jpg')}.gallery-item.summer-2024{background-image:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.38)),url('assets/summer-2024-117.jpg')}.photo-note{color:var(--muted);font-weight:700}.contact-band{display:flex;justify-content:center;align-items:center;gap:24px;background:var(--lime);padding-block:28px}.contact-band p{margin-bottom:0}.social-links{display:flex;gap:10px;flex-wrap:wrap}.social-links a{padding:10px 13px;border-radius:8px;background:#fff;color:var(--ink);text-decoration:none;font-weight:850}.social-links a.instagram-link{display:inline-flex;align-items:center;gap:8px}.instagram-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.site-footer{display:flex;justify-content:center;gap:16px;padding:14px clamp(18px,5vw,72px);background:var(--ink);color:#fff;font-size:12px;line-height:1.3;text-align:center}
@media (max-width:1100px){.distance-grid{grid-template-columns:repeat(2,1fr)}.site-header{align-items:flex-start;flex-wrap:wrap}.main-nav{margin-left:0}}
@media (max-width:900px){.site-header{position:static}.hero,.home-hero,.participant-hero{grid-template-columns:1fr}.home-visual{grid-template-columns:1fr;grid-template-rows:auto;min-height:auto}.home-visual-main{grid-row:auto}.home-visual img{max-height:420px}.hero-media{grid-template-columns:1fr;min-height:auto}.hero-media img{max-height:none}.hero-content{padding-block:42px}.stats-band,.marathon-grid,.timeline,.gallery-grid,.split,.registration-layout,.document-grid,.route-layout,.start-feature-card,.values-grid,.winter-note,.cabinet-grid,.participant-details,.checklist-grid{grid-template-columns:1fr}.section{padding-block:52px}.registration-form{grid-template-columns:1fr}.contact-band{align-items:center;flex-direction:row}.site-footer{align-items:center;flex-direction:row}.lookup-row{grid-template-columns:1fr}.distance-grid{grid-template-columns:1fr}.cabinet-panel.wide{grid-column:auto}.route-preview{grid-row:auto}}
@media (max-width:520px){.hero h1{font-size:40px}.hero-actions .button{width:100%}.countdown{grid-template-columns:repeat(2,1fr)}.stats-band strong{font-size:34px}.section h2{font-size:32px}.main-nav a{padding-inline:8px}.marathon-card{min-height:380px}.section-heading{align-items:flex-start;flex-direction:column}.table-actions input,.table-actions select,.table-actions .button{width:100%}}
@media (max-width:700px){.start-feature-media{grid-template-columns:1fr}.start-feature-media img{max-height:none}}
.contact-hub{display:grid;grid-template-columns:.82fr 1.18fr;gap:48px;align-items:start;background:#eef2e8}.contact-intro{padding-top:8px}.contact-intro h2{max-width:560px;color:var(--brand-blue)}.contact-intro>p:not(.eyebrow){max-width:580px;margin:18px 0 0;color:#354139;font-size:18px}.contact-options{display:grid;gap:12px;margin-top:28px}.training-invite{display:grid;gap:3px;padding:18px;border-left:5px solid var(--green);background:#fff}.training-invite strong{font-size:21px;color:var(--brand-blue)}.training-invite span{color:var(--muted);font-weight:750}.instagram-button{justify-self:start;background:#fff;color:var(--brand-blue);border-color:var(--line)}.instagram-button svg{width:20px;height:20px;margin-right:8px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.club-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:26px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.club-form h3{grid-column:1/-1;margin:0 0 4px;font-size:28px;color:var(--brand-blue)}.club-form label{display:grid;gap:7px;font-size:14px;font-weight:800}.club-form input,.club-form select,.club-form textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:8px;background:#fbfbf8;color:var(--ink);font:inherit}.club-form input:focus,.club-form select:focus,.club-form textarea:focus{outline:3px solid rgba(44,99,148,.2);border-color:var(--blue);background:#fff}.club-form textarea{resize:vertical}.club-form .full{grid-column:1/-1}.club-form .checkbox{grid-template-columns:auto 1fr;align-items:start;font-weight:650}.club-form .checkbox input{width:18px;height:18px;margin-top:2px}.club-form-status{min-height:24px;margin:0;color:var(--green);font-weight:850}
.kaspi-button{background:#f14635;color:#fff;border-color:#f14635}.kaspi-button:hover{background:#d93628;color:#fff;border-color:#d93628}.kaspi-button[hidden],.receipt-button[hidden]{display:none}.receipt-button{margin-top:10px;background:#229ed9;color:#fff;border-color:#229ed9}.receipt-button:hover{background:#1888bd;color:#fff;border-color:#1888bd}
.payment-dialog{width:min(92vw,430px);padding:22px;border:0;border-radius:8px;background:#fff;box-shadow:0 24px 80px rgba(6,35,61,.32)}.payment-dialog::backdrop{background:rgba(6,35,61,.68);backdrop-filter:blur(3px)}.payment-dialog-actions{display:grid;gap:12px}.payment-dialog .button{width:100%;min-height:56px;font-size:17px}.payment-dialog .receipt-button{margin-top:0}
.social-footer{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:24px clamp(18px,5vw,72px);background:var(--lime)}.social-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:132px;min-height:44px;padding:10px 16px;border:1px solid rgba(6,35,61,.14);border-radius:8px;background:#fff;color:var(--brand-blue);text-decoration:none;font-weight:850}.social-button:hover{border-color:var(--brand-blue)}.social-button svg{width:20px;height:20px;fill:currentColor}.instagram-social-button svg{fill:none;stroke:#c13584;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.telegram-button svg{color:#229ed9}.strava-button svg{color:#fc4c02}.youtube-button svg{color:#ff0033}
@media (max-width:900px){.contact-hub{grid-template-columns:1fr}.club-form{grid-template-columns:1fr}.club-form .full,.club-form h3{grid-column:auto}}

/* Keep long Russian headings inside their text columns on desktop displays. */
.home-hero{grid-template-columns:minmax(420px,.8fr) minmax(0,1.2fr);padding-inline:clamp(18px,3vw,48px)}
.home-hero-copy,.home-visual,.hero-content,.hero-media{min-width:0}
.home-hero-copy h1{font-size:40px;line-height:1;overflow-wrap:break-word}
.home-visual{min-height:620px}
.hero{grid-template-columns:.84fr 1.16fr;overflow:hidden}
.hero-content{padding-inline:clamp(24px,4vw,58px)}
.hero h1{font-size:54px;line-height:.98;overflow-wrap:break-word}
.hero-media{grid-template-columns:minmax(230px,.82fr) minmax(190px,.7fr)}

@media (max-width:1050px){
  .home-hero{grid-template-columns:1fr}
  .home-hero-copy{max-width:680px}
  .home-hero-copy h1{max-width:680px}
  .home-visual{grid-template-columns:1.42fr .78fr;grid-template-rows:1fr 1fr;min-height:560px}
  .home-visual-main{grid-row:1/-1}
  .hero h1{font-size:46px}
}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;overflow:visible}
  .hero h1{font-size:40px}
  .home-visual{grid-template-columns:1fr;grid-template-rows:auto;min-height:auto}
  .home-visual-main{grid-row:auto}
}

/* Final archive image override. */
.gallery-item.winter-2018{
  background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.3)),url('assets/winter-2018-collage.png');
  background-position:center;
}

/* Center and stabilize the mobile header and home introduction. */
@media (max-width:700px){
  .site-header{
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding:18px 16px 14px;
    text-align:center;
  }
  .brand{
    justify-content:center;
    width:100%;
  }
  .brand-text{
    max-width:390px;
    font-size:17px;
    line-height:1.25;
  }
  .support-logo{
    margin-inline:auto;
  }
  .main-nav{
    justify-content:center;
    width:100%;
    margin:2px 0 0;
    gap:2px;
  }
  .main-nav a{
    padding:8px 9px;
    font-size:13px;
  }
  .home-hero{
    justify-items:center;
    padding:38px 20px;
    text-align:center;
  }
  .home-hero-copy{
    width:100%;
    max-width:560px;
    margin-inline:auto;
  }
  .home-hero-copy h1{
    max-width:100%;
    font-size:32px;
    line-height:1.08;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
  }
  .home-hero-copy p:not(.eyebrow){
    margin-inline:auto;
  }
  .home-hero-copy .hero-actions{
    justify-content:center;
  }
  .home-hero-copy .button{
    width:min(100%,494px);
  }
  .home-visual{
    width:100%;
    max-width:560px;
    justify-self:center;
  }
}

@media (max-width:420px){
  .brand{
    flex-direction:column;
  }
  .brand-text{
    font-size:16px;
  }
  .main-nav{
    display:grid;
    grid-template-columns:repeat(2,auto);
  }
  .home-hero-copy h1{
    font-size:29px;
  }
}

@media (max-width:520px){
  .home-hero-copy h1,.hero h1{font-size:34px}
}

/* Compact event registration flow and keep the blue event visual square. */
@media (min-width:901px){
  .hero-media{align-self:center;aspect-ratio:1;height:auto}
}
#marathons{padding-bottom:48px}
main section[id]{scroll-margin-top:112px}
#payment-status{scroll-margin-top:112px}
#register{padding-block:44px;column-gap:28px}
#register .registration-copy{align-self:start}
#register .steps-list{margin-top:18px}
#register .steps-list li{margin-bottom:6px}
#register .registration-form{gap:12px;padding:20px}
#members,#cabinet{padding-block:52px}

@media (max-width:900px){
  main section[id]{scroll-margin-top:16px}
  #payment-status{scroll-margin-top:16px}
  .hero-media{aspect-ratio:auto}
  #register{padding-block:36px;row-gap:24px}
  #register .registration-form{padding:18px}
  #members,#cabinet{padding-block:42px}
}

/* Full-width, centered event page on phones. */
@media (max-width:700px){
  .trail-page main{width:100%;overflow:hidden}
  .trail-page .section{width:100%;padding:42px 18px}
  .trail-page .hero{width:100%;text-align:center}
  .trail-page .hero-media{width:100%;padding:14px;gap:14px;justify-items:center}
  .trail-page .hero-media img{width:100%;max-width:560px;margin-inline:auto}
  .trail-page .hero-content{width:100%;padding:38px 20px 44px;align-items:center;text-align:center}
  .trail-page .hero h1{
    width:100%;max-width:560px;font-size:32px;line-height:1.08;
    overflow-wrap:normal;word-break:normal;hyphens:none
  }
  .trail-page .hero-content>p:not(.eyebrow){max-width:560px;margin-inline:auto}
  .trail-page .hero-actions{justify-content:center;width:100%}
  .trail-page .hero-actions .button{width:min(100%,520px)}
  .trail-page .countdown{width:100%;max-width:520px;margin-inline:auto}
  .trail-page .stats-band{width:100%;text-align:center}
  .trail-page .stats-band div{padding:22px 10px}
  .trail-page .split,
  .trail-page .section-heading,
  .trail-page .registration-copy,
  .trail-page .route-notes{text-align:center}
  .trail-page .section-heading{align-items:center}
  .trail-page .event-facts,
  .trail-page .document-actions{justify-content:center}
  .trail-page .route-layout,
  .trail-page .route-map,
  .trail-page .route-map img,
  .trail-page .distance-grid,
  .trail-page .marathon-grid,
  .trail-page .registration-form,
  .trail-page .members-table-wrap,
  .trail-page .lookup-panel,
  .trail-page .document-grid,
  .trail-page .results-panel,
  .trail-page .gallery-grid{width:100%;max-width:100%}
  .trail-page .route-map{margin:0;padding:8px}
  .trail-page .distance-card,
  .trail-page .marathon-card,
  .trail-page .document-grid article{width:100%}
  .trail-page .registration-form{padding:18px;text-align:left}
  .trail-page .steps-list{
    display:inline-block;max-width:560px;padding-left:22px;text-align:left
  }
  .trail-page .lookup-panel{margin-inline:auto;text-align:center}
}

@media (max-width:420px){
  .trail-page .section{padding-inline:14px}
  .trail-page .hero-content{padding-inline:16px}
  .trail-page .hero h1{font-size:29px}
  .trail-page .stats-band{grid-template-columns:repeat(3,1fr)}
  .trail-page .stats-band strong{font-size:28px}
  .trail-page .stats-band span{font-size:12px}
}

/* Unified visual rhythm: compact, calm and consistent across every page. */
body{overflow-x:hidden}
.section{padding-block:56px}
.section h2{font-size:clamp(30px,4vw,48px)}
.split{gap:36px}
.section-heading{gap:18px;margin-bottom:20px}
.stats-band div{padding-block:22px}
.text-stack p{margin-bottom:14px}
.values-grid article,.distance-card{padding:20px}
.values-grid span,.distance-number{margin-bottom:20px}
.route-layout{gap:18px}
.route-notes{padding:20px}
.route-notes p{margin-bottom:10px}
.route-notes li{margin-bottom:6px}
.marathon-card{min-height:400px;padding:24px}
.registration-layout{gap:28px}
.lookup-panel,.club-form,.participant-card,.cabinet-panel{padding:22px}
.contact-hub{gap:32px}
.contact-options{margin-top:20px}
.club-form{gap:12px}
.document-grid article,.results-panel{padding:18px}
.document-grid p,.results-panel>p{margin:8px 0 16px}
.timeline{margin-bottom:18px}
.timeline article{padding:18px}
.members-table th,.members-table td{padding:11px 14px}
#members .members-table-wrap{max-height:720px}
#members .members-table th{position:sticky;top:0;z-index:2}
.results .members-table-wrap{max-height:640px}
.results .members-table th{position:sticky;top:0;z-index:2}
.compact-table th,.compact-table td{padding-block:10px}
.registration-form{gap:10px}
.registration-form input,.registration-form select,.registration-form textarea{padding:10px 12px}
.equipment-checklist{gap:7px;padding:12px}
.equipment-checklist legend{line-height:1.35}
.equipment-checklist .checkbox{padding:0}
.social-footer{padding-block:18px}
.site-footer{padding-block:11px}
.gallery-item{text-decoration:none;color:var(--ink);transition:transform .16s ease,box-shadow .16s ease}
a.gallery-item:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(6,35,61,.16)}
a.gallery-item:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* Treat the event poster and route as one intentional editorial composition. */
.trail-page .hero{min-height:clamp(640px,78vh,740px)}
.trail-page .hero-media{
  aspect-ratio:auto;
  grid-template-columns:minmax(250px,.84fr) minmax(250px,1.16fr);
  gap:22px;
  align-content:center;
  padding:28px;
}
.hero-poster-panel{display:grid;place-items:center;min-width:0}
.hero-route-panel{
  min-width:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 50px rgba(0,0,0,.2);
}
.trail-page .hero-media .hero-poster{
  width:100%;
  max-height:720px;
  object-fit:contain;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.trail-page .hero-media .hero-route{
  width:100%;
  max-height:none;
  border-radius:6px;
  box-shadow:none;
}
.hero-route-caption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 4px 2px;
  color:var(--brand-blue);
}
.hero-route-caption span{color:var(--muted);font-size:13px;font-weight:800}
.hero-route-caption strong{font-size:15px;white-space:nowrap}

@media (max-width:900px){
  .section{padding-block:40px}
  .home-hero,.participant-hero{min-height:auto;padding-block:34px}
  .home-hero{gap:26px}
  .hero,.trail-page .hero{min-height:auto}
  .hero-content{padding-block:34px}
  .split,.contact-hub{gap:24px}
  .marathon-card{min-height:350px}
  .participant-hero{gap:24px}
  .participant-search{margin-top:16px}
  #members .members-table-wrap{max-height:600px}
  .results .members-table-wrap{max-height:560px}
}

@media (max-width:700px){
  .site-header{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px 10px;
    padding:10px 14px 8px;
    text-align:left;
  }
  .brand{
    width:auto;
    min-width:0;
    justify-content:flex-start;
    gap:9px;
  }
  .brand-logo{width:48px;height:38px}
  .brand-text{max-width:none;font-size:15px;line-height:1.18}
  .support-logo{width:36px;height:36px;margin:0}
  .main-nav{
    grid-column:1/-1;
    width:100%;
    margin:0;
    padding-bottom:2px;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:2px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .main-nav::-webkit-scrollbar{display:none}
  .main-nav a{flex:0 0 auto;padding:7px 9px;font-size:12px}
  .home-hero{padding:30px 18px}
  .home-visual,.start-feature-media,.start-feature-media img{min-width:0;max-width:100%}
  .start-feature-media{width:100%;grid-template-columns:minmax(0,1fr)}
  .trail-page .section{padding-block:36px}
  .trail-page .hero-media{
    grid-template-columns:minmax(0,1fr) minmax(0,.76fr);
    align-items:center;
    padding:18px;
  }
  .trail-page .hero-content{padding-block:32px 36px}
  .trail-page .section-heading{margin-bottom:18px}
  .contact-hub{gap:22px}
  .club-form{padding:20px}
  .training-invite{padding:15px}
  .document-grid article,.results-panel{padding:16px}
  .social-footer{gap:8px;padding:16px 14px}
  .social-button{min-width:0;padding:9px 12px}
}

@media (max-width:420px){
  .brand{flex-direction:row}
  .brand-text{font-size:14px}
  .main-nav{display:flex}
  .home-hero-copy h1,.hero h1{font-size:30px}
  .section h2{font-size:30px}
  .trail-page .section{padding-block:32px}
  .trail-page .hero-media{
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    gap:10px;
    padding:12px;
  }
  .trail-page .hero-route-panel{padding:6px}
  .hero-route-caption{align-items:flex-start;flex-direction:column;gap:2px;padding:7px 2px 1px}
  .hero-route-caption span{font-size:10px}
  .hero-route-caption strong{font-size:11px}
}
