/* =====================================================================
   Borský trail — hlavní styl
   Statický web, bez externích závislostí (GDPR-friendly, žádné CDN).
   ===================================================================== */

/* ---------- 1. Proměnné / design tokens ---------- */
:root {
  /* Barvy */
  --forest-950: #06111f;
  --forest-900: #0a1d31;
  --forest-800: #102943;
  --forest-700: #b91c1c;
  --forest-600: #d7281c;
  --forest-500: #ef3b2d;
  --lime-400: #ff4b3b;
  --lime-300: #ff796c;
  --amber-500: #e53427;
  --amber-600: #bd2119;

  --sand-50: #fbfaf9;
  --sand-100: #f5f1ef;
  --sand-200: #e7dedb;
  --ink-900: #101c2a;
  --ink-700: #384655;
  --ink-500: #6a7682;
  --white: #ffffff;

  --danger: #c0392b;
  --success: #1e7d4f;

  /* Rozměry */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --header-h: 76px;

  /* Stíny */
  --shadow-sm: 0 1px 2px rgba(6, 17, 31, .06), 0 2px 8px rgba(6, 17, 31, .06);
  --shadow-md: 0 4px 12px rgba(6, 17, 31, .08), 0 12px 32px rgba(6, 17, 31, .10);
  --shadow-lg: 0 12px 28px rgba(6, 17, 31, .14), 0 32px 64px rgba(6, 17, 31, .16);

  /* Typografie – systémový stack, žádné Google Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Segoe UI Semibold", "Segoe UI", -apple-system,
    BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--sand-50);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--forest-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-500); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid var(--lime-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout pomocníci ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--forest-900); color: var(--sand-100); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--lime-300); }
.section--sand { background: var(--sand-100); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: .9rem;
}
.section--dark .eyebrow { color: var(--lime-400); }

.lead { font-size: 1.16rem; color: var(--ink-700); max-width: 60ch; }
.section--dark .lead { color: rgba(255, 255, 255, .82); }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- 4. Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.7em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--lime-400); color: var(--forest-950); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--lime-300); color: var(--forest-950); box-shadow: var(--shadow-md); }

.btn--dark { background: var(--forest-700); color: var(--white); }
.btn--dark:hover { background: var(--forest-600); color: var(--white); }

.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: inherit; }

.btn--outline { border-color: var(--forest-700); color: var(--forest-700); background: transparent; }
.btn--outline:hover { background: var(--forest-700); color: var(--white); }

.btn--lg { padding: 1.05em 2.2em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 5. Hlavička / navigace ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 17, 31, .78), rgba(6, 17, 31, 0));
  opacity: 1;
  transition: opacity .3s;
  pointer-events: none;
}
.site-header.is-stuck {
  background: rgba(10, 29, 49, .97);
  backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .22);
  height: 64px;
}
.site-header.is-stuck::before { opacity: 0; }
/* Vnitřní stránky: tmavý pruh hned od začátku */
body.has-solid-header .site-header { background: rgba(10, 29, 49, .97); }
body.has-solid-header .site-header::before { opacity: 0; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.brand:hover { color: var(--white); }
.brand__mark {
  width: 50px;
  height: 50px;
  flex: none;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}
.brand__name { font-size: 1.12rem; }
.brand__sub {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  padding: .55rem .78rem;
  border-radius: 999px;
  transition: background-color .18s, color .18s;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, .13); color: var(--white); }
.nav a[aria-current="page"] { color: var(--lime-400); }
.nav .nav__cta { margin-left: .5rem; background: var(--lime-400); color: var(--forest-950); }
.nav .nav__cta:hover { background: var(--lime-300); color: var(--forest-950); }
.nav__fb { display: inline-flex; align-items: center; gap: .4rem; }
.nav__fb svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
  cursor: pointer;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.6rem;
    background: var(--forest-900);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform .32s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a {
    padding: .85rem .8rem;
    border-radius: var(--radius-sm);
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .nav .nav__cta { margin: .8rem 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  color: var(--white);
  background: var(--forest-950);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 17, 31, .95) 0%, rgba(6, 17, 31, .62) 45%, rgba(6, 17, 31, .36) 100%),
    linear-gradient(to right, rgba(6, 17, 31, .68), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border: 1px solid rgba(255, 75, 59, .6);
  border-radius: 999px;
  background: rgba(6, 17, 31, .5);
  color: var(--lime-400);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero h1 {
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
  margin-bottom: .35em;
}
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--lime-400);
}
.hero__tagline {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.8rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta svg { width: 19px; height: 19px; stroke: var(--lime-400); fill: none; stroke-width: 2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, .6);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ---------- Partneři ---------- */
.section--partners { background: var(--white); }
.partners__intro { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.partners__media {
  width: min(100%, 1040px);
  margin-inline: auto;
  aspect-ratio: 2245 / 1350;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}
.partners__image {
  width: 100%;
  max-width: none;
  transform: translateY(-3.5%);
}

/* ---------- Video galerie ---------- */
.gallery-intro { margin-bottom: 2.4rem; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.video-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--forest-900);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s;
}
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 15%, rgba(239, 59, 45, .32) 100%);
}
.video-card:hover {
  transform: translateY(-5px);
  color: var(--white);
  background: var(--forest-800);
  box-shadow: var(--shadow-lg);
}
.video-card > span { position: relative; z-index: 1; }
.video-card__number {
  position: absolute !important;
  top: .8rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .08);
}
.video-card__platform {
  margin-bottom: auto;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lime-300);
}
.video-card__play {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--lime-400);
  color: var(--forest-950);
  font-size: 1rem;
  padding-left: 3px;
}
.video-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.video-card__link { margin-top: .75rem; font-size: .88rem; font-weight: 700; color: rgba(255, 255, 255, .72); }
@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } .video-card { min-height: 235px; } }

/* ---------- 7. Odpočet ---------- */
.countdown {
  background: var(--forest-800);
  background: linear-gradient(120deg, var(--forest-700), var(--forest-600));
  color: var(--white);
  padding: 2.2rem 0;
}
.countdown__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.countdown__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.countdown__label small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-400);
  margin-bottom: .25rem;
}
.countdown__clock { display: flex; gap: .7rem; }
.countdown__unit {
  min-width: 78px;
  padding: .7rem .5rem;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  text-align: center;
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit small {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* ---------- 8. Karty ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lime-400); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sand-100);
  color: var(--forest-600);
  margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Karty tratí */
.race-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.race-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.race-card__top {
  padding: 1.4rem 1.5rem;
  background: var(--forest-900);
  color: var(--white);
}
.race-card--accent .race-card__top { background: linear-gradient(135deg, var(--forest-700), var(--forest-500)); }
.race-card--kids .race-card__top { background: linear-gradient(135deg, #9f1d17, var(--amber-500)); }
.race-card__dist {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.race-card__dist span { font-size: 1.1rem; opacity: .8; }
.race-card__name { font-weight: 700; margin-top: .3rem; }
.race-card__body { padding: 1.4rem 1.5rem; flex: 1; }
.race-card__body dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .95rem; }
.race-card__body dt { color: var(--ink-500); }
.race-card__body dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- 9. Časový program ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand-200);
  margin: 0;
}
.section--dark .timeline li { border-color: rgba(255, 255, 255, .13); }
.timeline li:last-child { border-bottom: 0; }
.timeline time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--forest-600);
  font-variant-numeric: tabular-nums;
}
.section--dark .timeline time { color: var(--lime-400); }
.timeline strong { display: block; }
.timeline small { color: var(--ink-500); }
.section--dark .timeline small { color: rgba(255, 255, 255, .65); }

/* ---------- 10. Tabulky ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
thead th {
  position: sticky; top: 0;
  background: var(--forest-900);
  color: var(--white);
  text-align: left;
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: .85rem 1rem;
  white-space: nowrap;
}
tbody td { padding: .78rem 1rem; border-top: 1px solid var(--sand-200); }
tbody tr:nth-child(even) { background: var(--sand-50); }
tbody tr:hover { background: #fff0ee; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sand-100);
  font-weight: 800;
  font-size: .85rem;
}
tr:nth-child(1) .rank { background: #f6d365; }
tr:nth-child(2) .rank { background: #dfe3e6; }
tr:nth-child(3) .rank { background: #e8c39e; }

/* Ovládání tabulky */
.table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.chip {
  padding: .5rem 1.1rem;
  border: 1px solid var(--sand-200);
  background: var(--white);
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--forest-500); }
.chip.is-active { background: var(--forest-700); color: var(--white); border-color: var(--forest-700); }

/* Výsledkový archiv */
.results-archive { display: grid; gap: clamp(4rem, 8vw, 6.5rem); }
.results-year { min-width: 0; }
.results-year__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.results-year__head p { margin-bottom: 0; color: var(--ink-500); }
.results-search {
  flex: 1;
  min-width: 230px;
  padding: .58rem 1rem;
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-900);
  font: inherit;
  font-size: .9rem;
}
.results-search:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(239, 59, 45, .16);
}
@media (max-width: 700px) {
  .results-year__head { align-items: flex-start; flex-direction: column; }
  .results-search { min-width: 100%; }
}

/* ---------- 11. Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .9rem;
}
.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand-200);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 31, .58), transparent 55%);
  opacity: 0;
  transition: opacity .25s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute;
  left: .9rem; right: .9rem; bottom: .75rem;
  z-index: 1;
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 2rem 1rem 4rem;
  background: rgba(9, 18, 13, .95);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox__cap {
  position: absolute;
  bottom: 1.4rem; left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  padding: 0 1rem;
}
.lightbox__btn {
  position: absolute;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- 12. Formuláře ---------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: .38rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field label .req { color: var(--danger); }
.field small { color: var(--ink-500); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .78rem .95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius-sm);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(239, 59, 45, .18);
}
.field input:user-invalid { border-color: var(--danger); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin-top: .18rem; flex: none; accent-color: var(--forest-600); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  font-size: .96rem;
}
.alert p:last-child { margin-bottom: 0; }
.alert--ok { background: #e9f6ee; border-color: var(--success); color: #14512f; }
.alert--err { background: #fdeceb; border-color: var(--danger); color: #7d2119; }
.alert--info { background: #eef4fb; border-color: #3d6ea8; color: #1f3d5e; }

/* ---------- 13. Doplňky ---------- */
.page-head {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background: var(--forest-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -6%; top: -40%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 59, .2), transparent 68%);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: .3em; position: relative; }
.page-head p { color: rgba(255, 255, 255, .78); max-width: 58ch; margin: 0; position: relative; }
.breadcrumb { font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: .9rem; position: relative; }
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime-400); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; }
.stat { text-align: center; padding: 1.4rem .8rem; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lime-400);
  letter-spacing: -.03em;
}
.stat__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .68); }

.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

.cta-band {
  background: linear-gradient(120deg, var(--forest-700), var(--forest-500));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 55ch; margin-inline: auto; }

.faq details {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  margin-bottom: .7rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--forest-500); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { margin-bottom: .7rem; }
.faq p:last-child { margin-bottom: 0; }

.map-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand-200);
  background: var(--sand-100);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.route-map {
  margin: 1.8rem 0 0;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.route-map img { width: 100%; max-height: 680px; object-fit: contain; }
.route-map figcaption { padding: .8rem 1rem; color: var(--ink-500); font-size: .88rem; }
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.route-grid figure { margin: 0; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); overflow: hidden; }
.route-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f7f7f7; }
.route-grid figcaption { padding: .65rem .8rem; font-weight: 700; color: var(--ink-700); }

.partners { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; align-items: center; justify-content: center; }
.partners img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .62; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }

.note {
  border-left: 3px solid var(--lime-400);
  padding: .3rem 0 .3rem 1.1rem;
  color: var(--ink-700);
  font-size: .95rem;
}

/* ---------- 14. Patička ---------- */
.site-footer {
  background: var(--forest-950);
  color: rgba(255, 255, 255, .72);
  padding: 3.5rem 0 1.6rem;
  font-size: .94rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--lime-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer__grid { display: grid; gap: 2.2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .48);
}
/* Podpis autora webu v patičce */
.credit { display: inline-flex; align-items: center; gap: .55rem; }
.credit__link {
  display: inline-flex;
  align-items: center;
  opacity: .68;
  transition: opacity .2s var(--ease);
}
.credit__link:hover { opacity: 1; }
.credit__link img { height: 22px; width: auto; display: block; }

.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  transition: background-color .2s, transform .2s;
}
.social a:hover { background: var(--lime-400); transform: translateY(-2px); }
.social a:hover svg { fill: var(--forest-950); }
.social svg { width: 19px; height: 19px; fill: rgba(255, 255, 255, .85); }

/* ---------- 15. Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- 16. Tisk ---------- */
@media print {
  .site-header, .site-footer, .hero__actions, .countdown, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page-head { background: none; color: #000; padding: 0 0 1rem; }
  .page-head p, .breadcrumb { color: #333; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
