:root {
  --ice:#f4fafe; --ice100:#e4f3fb; --ice200:#c8e6f5; --line:#dcebf5;
  --navy:#082541; --brand:#1f6feb; --deep:#0a3d7a; --muted:#5a7287; --ink:#0d2438;
}
* {box-sizing:border-box}
body {margin:0;color:var(--ink);background:var(--ice);font:16px/1.5 Manrope,system-ui,sans-serif}
a {color:var(--brand);text-underline-offset:.2em}
a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible {outline:3px solid var(--brand);outline-offset:2px}
header {position:sticky;top:0;z-index:2;background:rgba(244,250,254,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.bar {max-width:1152px;min-height:70px;margin:auto;padding:0 24px;display:flex;gap:22px;align-items:center;justify-content:space-between}
.brand,h1,h2,h3,.stamp b {font-family:Unbounded,system-ui,sans-serif;color:var(--navy);letter-spacing:-.035em}
.brand {display:flex;align-items:center;gap:12px;font-weight:700;font-size:20px;text-decoration:none}
.mark {width:36px;height:36px;border-radius:12px;background:linear-gradient(140deg,#1f6feb,#19b3a6);color:white;display:grid;place-items:center;box-shadow:0 6px 16px -4px #1f6feb80}
.mark svg {width:20px}
.bar nav {display:flex;gap:24px;font-size:15px}.bar nav a,.find {text-decoration:none;font-weight:700;color:var(--navy)}
.bar nav a:hover,.agenda h3 a:hover {color:var(--brand)}
.find {border-radius:8px;background:var(--navy);color:white;padding:9px 18px;font-size:14px}
main {max-width:1024px;margin:auto;padding:38px 24px 64px}
h1,h2,h3,p {margin:0}h1 {font-size:clamp(26px,3.6vw,38px);line-height:1.18;margin:14px 0 10px}h2 {font-size:20px;line-height:1.35}h3 {font-size:16px;line-height:1.42}
.intro {margin-bottom:27px}.intro p {font-size:17px;color:var(--muted)}.back {font-size:14px;text-decoration:none}
.layout {display:grid;grid-template-columns:minmax(285px,0.85fr) minmax(0,1.5fr);gap:24px;align-items:start}
.panel,.agenda li {background:white;border:1px solid var(--line);border-radius:16px}.panel {padding:20px}
.month-title,.agenda-title {display:flex;align-items:center;justify-content:space-between;gap:9px}
.month-title b,.agenda-title span {font-size:13px;color:var(--deep);border-radius:50px;background:var(--ice100);padding:3px 10px}
form {display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 10px;align-items:center;margin:18px 0}label {font-size:14px;font-weight:700}
select,input {font:inherit;min-width:0;min-height:42px;max-width:100%;padding:6px 9px;color:var(--navy);background:white;border:1px solid #aac4d7;border-radius:10px}input {width:100%}
.week,.days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:3px}.week {color:var(--muted);font-size:12px;margin-bottom:6px}
.days>* {display:grid;place-items:center;min-height:39px;position:relative;font-weight:700;font-variant-numeric:tabular-nums}
.days a {background:var(--ice100);color:var(--deep);border-radius:8px;text-decoration:none}.days i {position:absolute;bottom:4px;width:4px;height:4px;border-radius:100%;background:var(--brand)}
.days a:hover,.days a[aria-current] {background:var(--brand);color:white}.days a:hover i,.days a[aria-current] i {background:white}
.empty,.legend {color:var(--muted)}.legend {font-size:13px;margin:9px 0 16px}.legend:before {content:"";background:var(--brand);width:6px;height:6px;border-radius:100%;display:inline-block;margin-right:6px}
.sub {display:block;text-align:center;padding:12px 7px;border-radius:12px;color:white;text-decoration:none;font-weight:700;background:linear-gradient(135deg,var(--brand),var(--deep));box-shadow:0 6px 16px -4px #1f6feb80}
details {font-size:14px;color:var(--muted)}summary {cursor:pointer;padding:8px 0;color:var(--deep);min-height:36px}
#month,#starts {scroll-margin-top:80px}.agenda-title {padding:3px 0 12px}
.agenda {margin:0;padding:0;list-style:none;display:grid;gap:10px}.agenda li {display:grid;grid-template-columns:58px minmax(0,1fr);gap:15px;padding:17px 18px 10px}
.stamp {text-align:center}.stamp b,.stamp small {display:block}.stamp b {font-size:17px;line-height:1.35;color:var(--brand)}.stamp small {font-size:11px;text-transform:uppercase;font-weight:700;color:var(--muted)}
.arena {font-size:14px;color:var(--muted);margin-top:4px}.agenda h3 a {color:var(--navy);text-decoration:none}
.agenda:empty:after {content:"По выбранным условиям подтверждённых стартов нет.";background:white;padding:18px;border:1px solid var(--line);border-radius:16px}
@media(max-width:840px){.bar nav{display:none}}
@media(max-width:700px){main{padding:21px 15px 36px}.layout{grid-template-columns:1fr;gap:21px}.bar{padding:0 16px;min-height:62px}.panel{padding:16px}.intro{margin-bottom:18px}.intro p{font-size:15px}.agenda li{padding:15px 12px 8px;gap:9px;grid-template-columns:52px minmax(0,1fr)}}
@media(max-width:490px){.find{display:none}h1{font-size:clamp(22px,6.2vw,28px)}}
