/* Berounské běhy · společné styly
   Barvy a písma odpovídají návrhu v pen.dev (proměnné bb-*, b10, bp).
   Stránka závodu nastaví body.theme-b10 / theme-bp → --accent. */

:root {
  --ink: #0E1116;
  --bg: #FFFFFF;
  --soft: #F3F4F6;
  --line: #E4E6EA;
  --muted: #5F6670;
  --b10: #2733EA;
  --b10-soft: #E9EBFE;
  --bp: #0EA35A;
  --bp-soft: #E2F6EB;
  --lime: #D4FF00;
  --accent: var(--ink);
  --accent-soft: var(--soft);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1344px;
  --gutter: 48px;
  --section: 120px;
}
.theme-b10 { --accent: var(--b10); --accent-soft: var(--b10-soft); }
.theme-bp { --accent: var(--bp); --accent-soft: var(--bp-soft); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 140px; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 700; line-height: .92; text-transform: uppercase; letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; }
.section-sm { padding: 64px 0 0; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------- Type ---------- */
.h-hero { font-size: clamp(56px, 9vw, 128px); }
.h-xl { font-size: clamp(48px, 6.5vw, 96px); }
.h-lg { font-size: clamp(40px, 4.6vw, 64px); }
.h-md { font-size: clamp(32px, 3.2vw, 44px); }
.h-sm { font-size: clamp(24px, 2.2vw, 30px); }
.eyebrow { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow-h { font-family: var(--head); font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.c-b10 { color: var(--b10); }
.c-bp { color: var(--bp); }
.c-lime { color: var(--lime); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.link-more { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.prose { max-width: 760px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 14px 0 0; }
.prose li + li { margin-top: 6px; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent; font-family: var(--head); font-size: 20px; font-weight: 700; text-transform: uppercase; text-decoration: none; line-height: 1; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 24px; font-size: 17px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-b10 { background: var(--b10); color: #fff; }
.btn-bp { background: var(--bp); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-family: var(--head); font-size: 15px; font-weight: 700; text-transform: uppercase; line-height: 1.1; background: var(--ink); color: #fff; white-space: nowrap; }
.chip-b10 { background: var(--b10); }
.chip-bp { background: var(--bp); }
.chip-lime { background: var(--lime); color: var(--ink); }
.chip-white { background: #fff; color: var(--ink); }
.chip-soft { background: var(--soft); color: var(--ink); }
.chip-alert { background: #FDECEC; color: #C81E1E; }
.chip-alert::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Panels ---------- */
.panel { border-radius: var(--radius); padding: 56px; }
.panel-ink { background: var(--ink); color: #fff; }
.panel-soft { background: var(--soft); }
.panel-accent { background: var(--accent-soft); }
.panel-bp { background: var(--bp-soft); }
.panel-b10 { background: var(--b10-soft); }
.card { border-radius: var(--radius); overflow: hidden; position: relative; }
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 30%, rgba(14,17,22,.82) 100%); pointer-events: none; }
.tint-b10::after { content: ""; position: absolute; inset: 0; background: rgba(39,51,234,.78); mix-blend-mode: multiply; }
.tint-bp::after { content: ""; position: absolute; inset: 0; background: rgba(14,163,90,.8); mix-blend-mode: multiply; }
.credit { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1; white-space: nowrap; }
.brand .mark { width: 26px; height: 32px; flex: none; }
.brand-white { color: #fff; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-family: var(--head); font-weight: 600; font-size: 18px; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.show-sm { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; padding: 20px 20px 32px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mm-brand { font-family: var(--head); font-weight: 700; font-size: 22px; }
.mm-close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.mm-big a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--head); font-weight: 700; font-size: 36px; text-transform: uppercase; text-decoration: none; line-height: 1; }
.mm-big small { font-family: var(--body); font-weight: 400; font-size: 12px; color: #9AA0A8; text-transform: none; }
.mm-small { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.mm-small a { font-weight: 600; font-size: 17px; text-decoration: none; }
.mm-social { margin-top: 12px; font-size: 13px; color: #9AA0A8; }
.mm-social a { text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.trail { margin-top: var(--section); height: 72px; }
.trail svg { width: 100%; height: 100%; }
.trail path { fill: none; stroke-width: 8; }
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 48px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand p { margin-top: 16px; color: #C9CDD3; font-size: 15px; }
.footer-brand a { text-decoration: none; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.footer-col h2 { font-family: var(--body); font-size: 12px; letter-spacing: .2em; color: #9AA0A8; margin-bottom: 6px; line-height: 1.4; }
.footer-col a { font-size: 15px; text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: #9AA0A8; }
.footer-bottom a { text-decoration: none; }

/* ---------- Page hero (podstránky) ---------- */
.page-hero { padding: 72px 0 0; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p.lead { margin-top: 20px; max-width: 720px; }
.subnav { position: sticky; top: 80px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 16px 0; font-family: var(--head); font-weight: 600; font-size: 17px; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.is-active { border-bottom-color: var(--accent); color: var(--accent); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.input, .select { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 15px; }
.input:focus, .select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft); gap: 2px; }
.seg button, .seg a { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--muted); cursor: pointer; text-decoration: none; }
.seg .is-on { background: var(--ink); color: #fff; }
.seg-accent .is-on { background: var(--accent); }

/* ---------- Tables (startovky, výsledky, ceny) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 16px; background: var(--soft); white-space: nowrap; }
.t td, .t tbody th { padding: 14px 16px; border-top: 1px solid var(--line); }
.t tbody th { background: none; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; white-space: normal; text-align: left; }
.t tr:hover td { background: #FAFAFB; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t strong { font-weight: 700; }

/* ---------- Accordion (propozice, FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--head); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 28px; line-height: 1; color: var(--accent); flex: none; }
.acc details[open] summary::after { content: "–"; }
.acc .acc-body { padding: 0 0 24px; max-width: 820px; }
.acc .acc-num { color: var(--accent); margin-right: 14px; }

/* ---------- Numbers / stats ---------- */
.stat-n { font-family: var(--head); font-weight: 700; font-size: 56px; line-height: 1; }
.stat-l { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; height: min(780px, calc(100vh - 80px)); min-height: 560px; color: #fff; overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.15) 0%, rgba(14,17,22,.25) 45%, rgba(14,17,22,.78) 100%); }
.hero-in { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 48px; }
.hero-text .eyebrow-h { color: var(--lime); margin-bottom: 20px; }
.hero-text h1 { font-size: clamp(56px, 9vw, 128px); }
.hero-text .lead-white { margin-top: 16px; font-size: 18px; max-width: 520px; color: #E6E8EB; }
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero-credit { font-size: 12px; color: #D0D3D8; }
.hero-nav { display: flex; align-items: center; gap: 16px; }
.hero-count { font-family: var(--head); font-weight: 700; font-size: 22px; }
.hero-bars { display: flex; gap: 6px; }
.hero-bars span { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.hero-bars span.is-on { width: 48px; background: #fff; }
.circle-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.circle-btn.dark { border-color: var(--line); background: var(--soft); color: var(--ink); width: 44px; height: 44px; }
.circle-btn.dark.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-strip { display: none; }

/* ---------- Home: offers carousel ---------- */
.offers-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.offers-track::-webkit-scrollbar { display: none; }
.offer { flex: 0 0 auto; width: min(620px, 86vw); height: 340px; border-radius: var(--radius); padding: 36px 32px 32px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; scroll-snap-align: start; color: #fff; }
.offer.narrow { width: min(440px, 80vw); }
.offer > * { position: relative; z-index: 2; }
.offer-bg { position: absolute !important; inset: 0; z-index: 0 !important; }
.offer-bg img { width: 100%; height: 100%; object-fit: cover; }
.offer .eyebrow-h { font-size: 16px; }
.offer h3 { font-size: 44px; margin-top: 8px; }
.offer.big h3 { font-size: 60px; }
.offer-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.offer-price { font-family: var(--head); font-weight: 700; font-size: 52px; line-height: 1; text-transform: uppercase; }
.offer.big .offer-price { font-size: 72px; }
.offer-note { font-size: 13px; font-weight: 600; margin-top: 4px; opacity: .9; }
.offer-lime { background: var(--lime); color: var(--ink); }
.offer-ink { background: var(--ink); }
.dots { display: flex; gap: 6px; margin-top: 24px; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line); }
.dots span.is-on { width: 24px; background: var(--ink); }

/* ---------- Home: hall of fame ---------- */
.hall { padding: 40px; }
.hall-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.hall .eyebrow { color: var(--lime); margin-bottom: 12px; }
.hall-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hall-card { border: 1.5px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.hall-card.win { border-color: var(--lime); }
.hall-card .eyebrow { color: var(--lime); margin: 0; font-size: 12px; }
.hall-card:not(.win) .eyebrow { color: #9AA0A8; }
.hall-card h3 { font-size: 32px; }
.hall-card:not(.win) h3 { font-size: 40px; color: #9AA0A8; }
.hall-card p { font-size: 14px; color: #B5BAC1; }
.hall-card .chip { align-self: flex-start; margin-top: 6px; }

/* ---------- Home: race cards ---------- */
.race-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.race-card { position: relative; min-height: 560px; border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; border-top: 8px solid var(--rc, var(--ink)); }
.race-card.b10 { --rc: var(--b10); }
.race-card.bp { --rc: var(--bp); }
.race-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.race-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.05) 25%, rgba(14,17,22,.85) 100%); z-index: 1; }
.race-card > * { position: relative; z-index: 2; }
.race-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.race-card-top .right { display: flex; align-items: center; gap: 12px; }
.race-card .days { font-family: var(--head); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.race-card .cas { height: 44px; width: auto; border-radius: 4px; }
.race-card h3 { font-size: 56px; margin-top: 10px; }
.race-card .when { font-weight: 600; font-size: 17px; margin-top: 14px; }
.race-card .what { font-size: 15px; color: #DADDE1; margin-top: 10px; }
.race-card .row { margin-top: 28px; }
.next-race { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 36px; border-radius: var(--radius); background: var(--soft); flex-wrap: wrap; }
.next-race .facts { display: flex; gap: 40px; flex-wrap: wrap; font-weight: 600; font-size: 15px; color: var(--muted); }
.next-race .eyebrow { color: var(--b10); }

/* ---------- Medvěd (blok + kalkulačka) ---------- */
.medved { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.medved .h-xl { font-size: clamp(64px, 8vw, 112px); margin-top: 20px; }
.medved .h-sub { font-size: 36px; color: var(--b10); margin-top: 20px; }
.medved .lead { margin-top: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step b { display: block; font-family: var(--head); font-size: 40px; line-height: 1; color: var(--b10); }
.step h4 { font-size: 22px; margin-top: 6px; }
.step p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.calc h3 { font-size: 26px; }
.calc .seg { display: flex; }
.calc .seg button { flex: 1; }
.calc-out { background: var(--soft); border-radius: var(--radius-sm); padding: 18px 20px; display: none; }
.calc-out.is-on { display: block; }
.calc-out .big { font-family: var(--head); font-weight: 700; font-size: 44px; line-height: 1; }

/* ---------- Vládce block ---------- */
.vladce { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; }
.vladce-copy { padding: 64px 56px; }
.vladce-copy .eyebrow { color: var(--lime); display: flex; align-items: center; gap: 10px; }
.vladce-copy .eyebrow .mark { width: 16px; height: 20px; }
.vladce-copy h2 { font-size: clamp(56px, 6vw, 84px); margin-top: 28px; }
.vladce-copy p { margin-top: 24px; color: #C9CDD3; font-size: 17px; max-width: 640px; }
.vladce-visual { display: grid; grid-template-rows: 1fr 1fr; }
.vladce-half { position: relative; display: flex; align-items: flex-end; padding: 28px 32px; min-height: 240px; }
.vladce-half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vladce-half span { position: relative; z-index: 2; font-family: var(--head); font-weight: 700; font-size: 28px; text-transform: uppercase; }

/* ---------- News cards ---------- */
.news-card { text-decoration: none; display: block; }
.news-card .photo { aspect-ratio: 432 / 260; }
.news-card .eyebrow { margin-top: 20px; color: var(--ink); }
.news-card .eyebrow.c-b10 { color: var(--b10); }
.news-card .eyebrow.c-bp { color: var(--bp); }
.news-card h3 { font-size: 30px; margin-top: 12px; }
.news-card p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.news-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Results teaser ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.podium > div { border-top: 2px solid var(--line); padding-top: 22px; }
.podium .eyebrow { color: var(--muted); }
.podium > div:first-child .eyebrow { color: var(--bp); }
.podium h3 { font-size: 30px; margin-top: 10px; }
.podium p { font-weight: 600; font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 214px 214px; gap: 12px; }
.gallery-grid .photo:first-child { grid-row: span 2; }
.gallery-grid .photo { border-radius: var(--radius-sm); }

/* ---------- Volunteers ---------- */
.vol { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; padding: 56px 68px; }
.vol .mark { width: 96px; height: 120px; }
.vol .eyebrow { color: var(--bp); }
.vol h2 { font-size: 56px; margin-top: 12px; }
.vol p { margin-top: 14px; color: var(--muted); }
.vol-right { text-align: center; }
.vol-right p { font-size: 13px; margin-top: 12px; }

/* ---------- Partners ---------- */
.partners { text-align: center; }
.partners h2 { font-size: 22px; color: var(--muted); }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: 72px; margin-top: 28px; flex-wrap: wrap; }
.partner-logos img { height: 96px; width: auto; }

/* ---------- Live data states ---------- */
[data-live] .live-loading { color: var(--muted); }
.live-error { color: #B42318; font-size: 14px; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 16px; }
  .hall-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --gutter: 32px; --section: 96px; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .race-cards, .medved, .vladce, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .vol { grid-template-columns: 1fr; gap: 24px; padding: 40px; }
  .vol-right { text-align: left; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 180px 180px; }
  .gallery-grid .photo:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 64px; --radius: 18px; }
  body { font-size: 15px; }
  .header-in { height: 64px; }
  .subnav { top: 64px; }
  .brand { font-size: 22px; }
  .brand .mark { width: 20px; height: 25px; }
  .btn { min-height: 48px; font-size: 18px; padding: 0 22px; }
  .btn-sm { min-height: 36px; font-size: 15px; padding: 0 16px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .panel { padding: 28px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 520px; }
  .hero-in { flex-direction: column; align-items: stretch; padding-top: 220px; padding-bottom: 28px; }
  .hero-text h1 { font-size: 52px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .btn-ghost { display: none; }
  .hero-controls { display: none; }
  .hero-strip { display: block; background: var(--lime); padding: 14px var(--gutter); font-weight: 600; font-size: 14px; }
  .offer { height: 300px; padding: 26px 22px; }
  .offer h3, .offer.big h3 { font-size: 34px; }
  .offer-price, .offer.big .offer-price { font-size: 44px; }
  .hall { padding: 28px 20px; }
  .hall-cards { grid-template-columns: 1fr; gap: 10px; }
  .hall-card { padding: 14px 16px; gap: 4px; }
  .hall-card h3, .hall-card:not(.win) h3 { font-size: 26px; }
  .hall-card p { font-size: 12px; }
  .hall-card .chip { display: none; }
  .hall-card.win .chip { display: inline-flex; font-size: 13px; }
  .race-card { min-height: 0; padding: 0; border-top: 0; background: var(--rc); }
  .race-card > img { position: relative; height: 180px; }
  .race-card::after { display: none; }
  .race-card-top { position: absolute; top: 14px; left: 14px; right: 14px; }
  .race-card .race-body { padding: 20px 18px 22px; }
  .race-card h3 { font-size: 34px; }
  .race-card .what { display: none; }
  .race-card .row { margin-top: 16px; }
  .race-card .row .btn { flex: 1; }
  .next-race { padding: 22px 20px; }
  .next-race .facts { gap: 8px 20px; }
  .steps { grid-template-columns: 1fr; }
  .calc { padding: 22px; }
  .vladce-copy { padding: 36px 22px; }
  .vladce-half { min-height: 150px; }
  .vol h2 { font-size: 40px; }
  .podium { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-rows: 220px 140px 140px; }
  .partner-logos { gap: 32px; }
  .partner-logos img { height: 64px; }
  .trail path { stroke-width: 5; }
  .trail { height: 40px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .acc summary { font-size: 21px; }
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(14,17,22,.25); }
  body.has-sticky .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
