/* ==========================================================================
   LEKI CUP — hlavní styly
   Noční modrá + ledové tóny + závodní červená. Šikmé tvary = slalomová brána.
   ========================================================================== */

:root {
    --navy-950: #060f1f;
    --navy-900: #0b1a33;
    --navy-800: #132a4d;
    --navy-700: #1d3a66;
    --ice-50: #f2f6fb;
    --ice-100: #e4ecf5;
    --ice-200: #cddbea;
    --ice-400: #8fa8c4;
    --slate-500: #56677f;
    --slate-700: #33435c;
    --red: #e10f21;
    --red-600: #c00b1b;
    --gold: #ffc72c;
    --white: #fff;

    --ink: var(--navy-900);
    --text: #2a3a52;
    --muted: var(--slate-500);

    --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1240px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 76px;
    --radius: 6px;
    --slant: 12px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --shadow: 0 1px 2px rgba(11, 26, 51, .06), 0 8px 24px -12px rgba(11, 26, 51, .18);
    --shadow-lg: 0 2px 4px rgba(11, 26, 51, .06), 0 24px 48px -20px rgba(11, 26, 51, .35);
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }
}

/* ---------- Základ ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }

body.nav-open { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red-600); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
address { font-style: normal; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -.2em;
    flex-shrink: 0;
}
.icon--sm { width: 1em; height: 1em; }
.icon--xs { width: .85em; height: .85em; }

/* ---------- Typografie ---------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .9rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: .35rem;
    background: var(--red);
    transform: skewX(-24deg);
    flex-shrink: 0;
}
.eyebrow--light { color: var(--ice-200); }

.section-title,
.page-head__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .005em;
    line-height: .95;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    margin: 0;
}
.section-title--sm { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section > .container > .section-title { margin-bottom: 2rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--red);
    white-space: nowrap;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Tlačítka ---------- */

.btn {
    --btn-bg: var(--red);
    --btn-fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .9rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.1;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 0;
    cursor: pointer;
    clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    transition: background-color .2s, color .2s;
}
.btn:hover { color: var(--btn-fg); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary:hover { --btn-bg: var(--red-600); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .24); }
.btn--outline { --btn-bg: var(--ice-100); --btn-fg: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ice-200); }
.btn--sm { padding: .7rem 1.3rem; font-size: 1rem; --slant: 9px; }

/* ---------- Hlavička ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    color: var(--white);
    transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid,
body.nav-open .site-header {
    background: rgba(6, 15, 31, .94);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
/* backdrop-filter by z hlavičky udělal kontejner pro fixní menu (menu by mělo jen její výšku) */
body.nav-open .site-header {
    background: var(--navy-950);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
}

.wordmark {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: .5rem;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
}
.wordmark:hover { color: var(--white); }
.wordmark__name,
.wordmark__year {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.wordmark__year {
    position: relative;
    padding: .12em .42em .08em .32em;
    color: var(--white);
    isolation: isolate;
}
.wordmark__year::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--red);
    transform: skewX(-14deg);
}
.wordmark__claim {
    grid-column: 1 / -1;
    margin-top: .35rem;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ice-400);
}
.wordmark--footer .wordmark__name,
.wordmark--footer .wordmark__year { font-size: 2.2rem; }

.main-nav__list {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .8rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    opacity: .88;
    transition: opacity .2s;
}
.main-nav__link:hover { color: var(--white); opacity: 1; }
.main-nav__link::after {
    content: "";
    position: absolute;
    left: .8rem; right: .8rem; bottom: .2rem;
    height: 3px;
    background: var(--red);
    transform: skewX(-24deg) scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.main-nav__link:hover::after,
.main-nav__link.is-active::after { transform: skewX(-24deg) scaleX(1); }
.main-nav__link.is-active { opacity: 1; }

.main-nav__link--cta {
    margin-left: .5rem;
    padding-inline: 1.1rem;
    opacity: 1;
    isolation: isolate;
}
.main-nav__link--cta::after { display: none; }
.main-nav__link--cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--red);
    transform: skewX(-14deg);
    transition: background-color .2s;
}
.main-nav__link--cta:hover::before { background: var(--red-600); }

.nav-toggle {
    display: none;
    margin-right: -.5rem;
    padding: .5rem;
    color: var(--white);
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .wordmark__name, .wordmark__year { font-size: 1.45rem; }
    .wordmark__claim { font-size: .6rem; }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        padding: 2rem var(--gutter) 3rem;
        background: var(--navy-950);
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
    }
    body.nav-open .main-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .25s, transform .25s var(--ease);
    }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .main-nav__link {
        display: flex;
        padding: 1rem 0;
        font-size: 1.9rem;
        font-weight: 700;
        font-style: italic;
    }
    .main-nav__link::after { left: 0; right: auto; width: 2.5rem; bottom: .6rem; }
    .main-nav__list li:last-child { border: 0; margin-top: 1.5rem; }
    .main-nav__link--cta { margin: 0; padding: 1rem 1.25rem; justify-content: center; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: min(100svh, 920px);
    padding-top: var(--header-h);
    color: var(--white);
    background: var(--navy-950);
    overflow: hidden;
    isolation: isolate;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 40%;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 15, 31, .92) 0%, rgba(6, 15, 31, .72) 32%, rgba(6, 15, 31, .15) 62%, rgba(6, 15, 31, 0) 80%),
        linear-gradient(0deg, rgba(6, 15, 31, .9) 0%, rgba(6, 15, 31, 0) 32%),
        linear-gradient(180deg, rgba(6, 15, 31, .55) 0%, rgba(6, 15, 31, 0) 22%);
}

.hero__inner {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2.5rem;
    padding-block: clamp(3rem, 8vh, 6rem) 2.5rem;
}

.hero__content { max-width: 640px; }

.hero__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .22em;
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(4.2rem, 11.5vw, 9.5rem);
    line-height: .82;
    letter-spacing: -.005em;
    text-transform: uppercase;
    color: var(--white);
}
.hero__year {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
    position: relative;
}
.hero__year::after {
    content: "";
    position: absolute;
    left: .06em; right: -.06em; bottom: -.12em;
    height: .09em;
    background: var(--red);
    transform: skewX(-24deg);
}

.hero__lead {
    max-width: 34rem;
    margin-bottom: 2rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--ice-100);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.next-race {
    width: 300px;
    padding: 1.4rem 1.5rem 1.25rem;
    background: rgba(11, 26, 51, .55);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, .14);
    border-top: 4px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
}
.next-race p { margin: 0; }
.next-race__label {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .9rem !important;
    font-size: .85rem;
    color: var(--ice-200);
}
.next-race__label strong { color: var(--white); }
.next-race__date {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 2.1rem;
    line-height: 1;
    text-transform: uppercase;
}
.next-race__venue {
    margin-top: .3rem !important;
    font-size: 1.15rem;
    font-weight: 600;
}
.next-race__disc { margin-top: .2rem !important; font-size: .92rem; color: var(--ice-200); }
.next-race__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}
.next-race__link:hover { color: var(--white); text-decoration: underline; }

.hero__stats {
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: rgba(6, 15, 31, .35);
    backdrop-filter: blur(6px);
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}
.stats > div {
    display: flex;
    flex-direction: column-reverse;
    padding: 1.2rem 1.5rem 1.3rem 0;
}
.stats > div + div { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.stats dd {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1;
}
.stats dt {
    margin-top: .3rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ice-400);
}

@media (max-width: 960px) {
    .hero { --media-h: min(88vw, 560px); min-height: auto; }
    .hero__media { inset: 0 0 auto; height: var(--media-h); }
    .hero__media img { object-position: 74% 50%; }
    .hero::after {
        inset: 0 0 auto;
        height: var(--media-h);
        background:
            linear-gradient(0deg, var(--navy-950) 0%, rgba(6, 15, 31, .55) 30%, rgba(6, 15, 31, 0) 60%),
            linear-gradient(180deg, rgba(6, 15, 31, .65) 0%, rgba(6, 15, 31, 0) 30%);
    }
    .hero__inner {
        grid-template-columns: 1fr;
        padding-top: calc(var(--media-h) - var(--header-h) - 4.5rem);
    }
    .next-race { width: 100%; max-width: 420px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .stats > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 480px) {
    .hero__year { -webkit-text-stroke-width: 1.5px; }
    .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Sekce ---------- */

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem); }
.section--ice { background: var(--ice-50); }
.section--dark {
    color: var(--ice-100);
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 22px),
        var(--navy-900);
}
.section--dark .section-title { color: var(--white); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--spaced { margin-top: clamp(3.5rem, 6vw, 5rem); }

.empty {
    padding: 2.5rem;
    text-align: center;
    color: var(--muted);
    background: var(--ice-50);
    border: 1px dashed var(--ice-200);
    border-radius: var(--radius);
}

/* ---------- Hlavička podstránek ---------- */

.page-head {
    position: relative;
    padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 3.75rem);
    color: var(--ice-100);
    background:
        linear-gradient(90deg, rgba(6, 15, 31, .97) 0%, rgba(6, 15, 31, .88) 50%, rgba(6, 15, 31, .6) 100%),
        url("../img/hero-1440.webp") 70% 35% / cover no-repeat,
        var(--navy-900);
    overflow: hidden;
}
.page-head::after {
    content: "";
    position: absolute;
    right: -2rem; bottom: 0;
    width: 38%;
    height: 6px;
    background: var(--red);
    transform: skewX(-40deg);
    transform-origin: bottom;
}
.page-head__title { color: var(--white); }
.page-head__title--article {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1;
    text-wrap: balance;
}
.page-head__lead {
    max-width: 40rem;
    margin: 1.1rem 0 0;
    font-size: 1.15rem;
    color: var(--ice-200);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.5rem;
    font-size: .85rem;
    color: var(--ice-400);
}
.breadcrumbs a { color: var(--ice-200); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Kalendář: karty závodů ---------- */

.race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
    counter-reset: race;
}

.race-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.6rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--ice-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.race-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.race-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .6rem;
}
.race-card__no {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 3.4rem;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ice-400);
}

.badge {
    display: inline-block;
    padding: .3rem .7rem .25rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
    border-radius: 2px;
    white-space: nowrap;
}
.badge--next { color: var(--white); background: var(--red); }
.badge--past { color: var(--muted); background: var(--ice-100); }
.badge--cancelled { color: var(--white); background: var(--slate-700); }
.badge--changed { color: var(--ink); background: var(--gold); }

.race-card__date {
    margin: 0 0 .9rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink);
}
.race-card__weekday {
    display: block;
    margin-top: .35rem;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .14em;
    color: var(--muted);
}
.race-card__venue {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}
.race-card__detail { margin: .15rem 0 0; font-size: .95rem; color: var(--muted); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.chip {
    padding: .3rem .65rem;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    background: var(--ice-100);
    border-radius: 3px;
}

.race-card__meta {
    display: grid;
    gap: .45rem;
    margin: 1.1rem 0 0;
    font-size: .93rem;
    color: var(--muted);
}
.race-card__meta div { display: flex; gap: .55rem; align-items: flex-start; }
.race-card__meta dt { padding-top: .12rem; color: var(--ice-400); }
.race-card__meta dd { margin: 0; }
.race-card__meta .icon { width: 1.1em; height: 1.1em; }

.race-card__note {
    margin: 1rem 0 0;
    padding: .6rem .8rem;
    font-size: .9rem;
    color: var(--ink);
    background: #fff6d6;
    border-left: 3px solid var(--gold);
}

.race-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    margin-top: auto;
    padding-top: 1.1rem;
}
.race-card__meta + .race-card__links,
.race-card__note + .race-card__links { border-top: 1px solid var(--ice-100); margin-top: 1.25rem; }
.race-card__links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.race-card__links a:hover { text-decoration: underline; }
.race-card__links .icon { width: 1.05em; height: 1.05em; }

/* nejbližší závod */
.race-card--next {
    color: var(--ice-200);
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 20px),
        var(--navy-900);
    border-color: var(--navy-900);
    border-top: 5px solid var(--red);
    box-shadow: var(--shadow-lg);
}
.race-card--next .race-card__no { -webkit-text-stroke-color: rgba(255, 255, 255, .45); }
.race-card--next .race-card__date,
.race-card--next .race-card__venue { color: var(--white); }
.race-card--next .race-card__weekday,
.race-card--next .race-card__detail,
.race-card--next .race-card__meta { color: var(--ice-200); }
.race-card--next .race-card__meta dt { color: var(--ice-400); }
.race-card--next .chip { color: var(--white); background: rgba(255, 255, 255, .1); }
.race-card--next .race-card__links { border-color: rgba(255, 255, 255, .1); }
.race-card--next .race-card__links a { color: var(--white); }

/* proběhlé */
.race-card--past { background: rgba(255, 255, 255, .6); box-shadow: none; }
.race-card--past .race-card__date,
.race-card--past .race-card__venue { color: var(--slate-500); }
.race-card--past .race-card__no { -webkit-text-stroke-color: var(--ice-200); }
.race-card--cancelled .race-card__date { text-decoration: line-through; text-decoration-thickness: 2px; }

.race-grid--compact .race-card { padding: 1.25rem 1.35rem 1rem; }
.race-grid--compact .race-card__no { font-size: 2.6rem; }
.race-grid--compact .race-card__date { font-size: 1.6rem; }

/* ---------- Info blok (kategorie, disciplíny) ---------- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.info-block {
    padding: 1.75rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
}
.info-block__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--white);
}
.info-block__title .icon { color: var(--red); }
.info-block__note { margin: 1.25rem 0 0; font-size: .92rem; color: var(--ice-400); }
.info-block--cta {
    background:
        linear-gradient(135deg, rgba(225, 15, 33, .2), rgba(225, 15, 33, 0) 60%),
        rgba(255, 255, 255, .04);
}
.info-block--cta p { color: var(--ice-200); }
.info-block__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.cat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.cat-list li { display: flex; align-items: center; gap: .9rem; font-size: 1.1rem; font-weight: 600; color: var(--white); }
.cat-list__code {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 3rem;
    padding: .2rem 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 1.1rem;
    isolation: isolate;
}
.cat-list__code::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--red);
    transform: skewX(-14deg);
}

.disc-list { display: grid; gap: .55rem; margin: 0; }
.disc-list div { display: grid; grid-template-columns: 3.4rem 1fr; align-items: baseline; }
.disc-list dt {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--white);
}
.disc-list dd { margin: 0; color: var(--ice-200); }

@media (max-width: 960px) {
    .info-grid { grid-template-columns: 1fr; }
}

/* ---------- Novinky ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem 1.5rem;
}

.news-card { display: flex; flex-direction: column; }
.news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy-900);
}
.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.news-card:hover .news-card__media img { transform: scale(1.04); }

.news-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.4rem;
    color: var(--white);
    background:
        linear-gradient(160deg, rgba(29, 58, 102, .0) 30%, rgba(6, 15, 31, .6)),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, var(--navy-700), var(--navy-950));
    transition: background-position .6s var(--ease);
}
.news-card__placeholder::before {
    content: "";
    position: absolute;
    top: 1.4rem; right: 1.4rem;
    width: 2.6rem;
    height: 1.6rem;
    background: var(--red);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    opacity: .9;
}
.news-card__day {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 4.5rem;
    line-height: .8;
}
.news-card__month {
    margin-top: .35rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ice-200);
}

.news-card__body { padding-top: 1.1rem; }
.news-card__date {
    display: block;
    margin-bottom: .4rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.news-card__title {
    margin: 0 0 .55rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--red); }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card__excerpt { margin: 0; font-size: .98rem; color: var(--muted); }

/* ---------- Článek ---------- */

.page-head--article { padding-bottom: clamp(2rem, 4vw, 3rem); }

.article__image {
    margin: 0 0 2.5rem;
    overflow: hidden;
    border-radius: var(--radius);
}
.article__image img { width: 100%; }

.prose { font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 {
    margin: 2em 0 .6em;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 1.9rem;
    text-transform: uppercase;
}
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red); }
.prose img { margin: 1.5rem 0; border-radius: var(--radius); }
.prose figure { margin: 2rem 0 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.prose .figure-qr {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--ice-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.prose .figure-qr img { width: 200px; border-radius: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .5rem .75rem; border-bottom: 1px solid var(--ice-200); text-align: left; }
.prose strong { color: var(--ink); }
.prose__lead { font-size: 1.22rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.prose__lead > * + * { margin-top: 1em; }
.prose > h2:first-child { margin-top: 0; }

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--ice-200);
}
.article-nav__link {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    background: var(--ice-50);
    border-radius: var(--radius);
    transition: background-color .2s;
}
.article-nav__link:hover { background: var(--ice-100); }
.article-nav__link--next { text-align: right; align-items: flex-end; }
.article-nav__dir {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
}
.article-nav__title { font-weight: 600; color: var(--ink); line-height: 1.3; }

@media (max-width: 600px) {
    .article-nav { grid-template-columns: 1fr; }
    .article-nav > span:empty { display: none; }
}

/* ---------- Archiv ---------- */

.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.season-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.4rem;
    text-decoration: none;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--ice-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background-color .25s, color .25s, transform .3s var(--ease), box-shadow .3s;
}
.season-card__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--red);
}
.season-card__year {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 4rem;
    line-height: .95;
    color: var(--ink);
    transition: color .25s;
}
.season-card__meta { margin-top: .4rem; font-size: .9rem; }
.season-card__arrow {
    position: absolute;
    right: 1.4rem; bottom: 1.4rem;
    color: var(--red);
    transition: transform .25s var(--ease);
}
.season-card:hover {
    color: var(--ice-200);
    background: var(--navy-900);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.season-card:hover .season-card__year { color: var(--white); }
.season-card:hover .season-card__arrow { transform: translateX(4px); }

/* ---------- Callout, dokumenty, kontakt ---------- */

.callout {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--white);
    border: 1px solid var(--ice-200);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
}
.callout--info { margin: 0 0 3rem; background: var(--ice-50); }
.callout__icon { width: 1.75rem; height: 1.75rem; color: var(--red); }
.callout__title {
    margin-bottom: .4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    text-transform: uppercase;
}
.callout p:last-child { margin-bottom: 0; }

.doc-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding: 1.5rem 1.75rem;
    text-decoration: none;
    color: var(--white);
    background: var(--navy-900);
    border-radius: var(--radius);
    transition: background-color .2s;
}
.doc-link:hover { color: var(--white); background: var(--navy-800); }
.doc-link__icon { width: 2.25rem; height: 2.25rem; color: var(--red); }
.doc-link > span { flex: 1; display: flex; flex-direction: column; }
.doc-link__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }
.doc-link__meta { font-size: .9rem; color: var(--ice-400); }
.doc-link__arrow { width: 1.5rem; height: 1.5rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.25rem;
}
.contact-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--ice-50);
    border-radius: var(--radius);
}
.contact-card--main {
    color: var(--ice-200);
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 20px),
        var(--navy-900);
    border-top: 5px solid var(--red);
}
.contact-card__org {
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--white);
}
.contact-card__row { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; font-size: 1.1rem; }
.contact-card__row .icon { color: var(--red); }
.contact-card__row a { color: var(--white); text-decoration: none; }
.contact-card__row a:hover { text-decoration: underline; }
.contact-card__title { font-size: 1.3rem; }

@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Partneři ---------- */

.partners {
    padding-block: clamp(4rem, 7vw, 6rem);
    background: var(--white);
    border-top: 1px solid var(--ice-100);
}
.partners__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.partners__row--secondary { margin-top: 2.5rem; gap: 1rem 3rem; }
.partners__group { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.partners__label {
    margin: 0;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.partner-logo {
    display: grid;
    place-items: center;
    width: 240px;
    height: 120px;
    padding: 1.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--ice-200);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.partner-logo img { max-width: 100%; max-height: 64px; width: auto; object-fit: contain; }
.partner-logo img[src*="level"] { height: 76px; max-height: 76px; }
.partner-logo--dark { background: var(--navy-900); border-color: var(--navy-900); }
.partner-logo--sm { width: 220px; height: 100px; padding: 1rem 1.5rem; }
.partner-logo--sm img { max-height: 66px; }
a.partner-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ice-400); }

@media (max-width: 560px) {
    .partner-logo { width: calc(50% - .5rem); height: 96px; padding: 1rem; }
    .partner-logo img { max-height: 48px; }
    .partners__row--secondary { gap: 1.5rem 1rem; }
    .partners__group { width: calc(50% - .5rem); }
    .partner-logo--sm { width: 100%; height: 88px; }
}

/* ---------- Patička ---------- */

.site-footer {
    color: var(--ice-400);
    background: var(--navy-950);
    font-size: .98rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
    padding-block: clamp(3.5rem, 6vw, 5rem);
}
.site-footer__brand p { max-width: 22rem; margin-top: 1.25rem; }
.site-footer__title {
    margin-bottom: 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--white);
}
.site-footer address strong { color: var(--ice-100); font-weight: 600; }
.site-footer a { color: var(--ice-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { line-height: 1.8; }
.site-footer__links { margin: 0; padding: 0; list-style: none; line-height: 2; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-block: 1.25rem;
}

@media (max-width: 760px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Chybové stránky ---------- */

.error-page { padding-top: calc(var(--header-h) + 5rem); text-align: left; }
.error-page__code {
    margin: 0 0 .5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(6rem, 18vw, 11rem);
    line-height: .85;
    color: transparent;
    -webkit-text-stroke: 2px var(--ice-400);
}
.error-page .page-head__title { color: var(--ink); margin-bottom: 1rem; }
.error-page p:not(.error-page__code) { max-width: 32rem; margin-bottom: 2rem; color: var(--muted); }
.page-404 .site-header,
.page-error .site-header { background: var(--navy-950); }

/* ---------- Pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header, .partners, .site-footer, .hero__media, .nav-toggle { display: none !important; }
    .page-head, .hero, .section--dark { color: #000; background: none; }
    .page-head__title, .hero__title { color: #000; }
}
