:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e6e6e6;
  --black: #000000;
  --white: #ffffff;

  /* Motion */
  --easing: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: .18s;
  --dur-med: .5s;

  /* Layout */
  --container: 1100px;
  --radius: 10px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, .06);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* Links */
a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--easing)
}

a:hover {
  border-bottom-color: var(--text)
}

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

/* Top nav */
.top-nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  /* header nad obsahem, ale pod mobilním menu */
  backdrop-filter: saturate(180%) blur(4px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center
}

.menu a {
  padding: 6px 4px;
  border: none;
  position: relative
}

.menu a.active {
  border-bottom: 2px solid var(--black)
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--easing);
}

.menu a:hover::after {
  transform: scaleX(1)
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--muted);
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  font-weight: 700;
  transition: transform var(--dur-fast) var(--easing), box-shadow var(--dur-fast) var(--easing), background var(--dur-fast) var(--easing), color var(--dur-fast) var(--easing);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm)
}

.btn.ghost {
  background: transparent;
  color: var(--black)
}

.btn.ghost:hover {
  background: var(--muted);
  color: var(--white)
}

.btn.cta {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

/* CTA centering helper */
.cta-row {
  display: flex;
  justify-content: center;
  /* ⬅ centers horizontally */
  gap: 12px;
  margin-top: 16px;
  text-align: center;
}

.cta-row .btn.cta {
  margin-left: auto;
  margin-right: auto;
}

/* Page container + reveal animation */
.content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 16px 80px;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp var(--dur-med) var(--easing) both;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none
  }
}

/* Hero (site-wide) */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border)
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 8px;
  letter-spacing: -.01em
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 14px
}

.event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--muted)
}

.cta-row {
  display: flex;
  gap: 12px
}

.hero-media img {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-med) var(--easing)
}

/* Generic sections */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 40px 0 16px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.card-h {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: transform var(--dur-fast) var(--easing), box-shadow var(--dur-fast) var(--easing);
}

.card {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: transform var(--dur-fast) var(--easing), box-shadow var(--dur-fast) var(--easing);
}

.center {
  text-align: center;
  margin-top: 16px
}

.route-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

/* Sponsors grid */
.sponsors .logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
  justify-items: center
}

.sponsors .logos-grid img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  transition: filter var(--dur-fast) var(--easing), opacity var(--dur-fast) var(--easing)
}

/* Page head (per-page header) */
/* ==== Unified Page Head ==== */
.page-head {
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp var(--dur-med) var(--easing) both;
}

.page-head h1 {
  margin: 0;
  letter-spacing: -.01em
}

.page-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 6px
}

.page-head .sub {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 70ch
}

.page-actions {
  margin-left: auto;
  display: flex;
  gap: 10px
}

@media (max-width:700px) {
  .page-actions {
    margin-left: 0
  }
}

@media (max-width:700px) {
  .page-head {
    align-items: flex-start
  }

  .page-actions {
    margin-left: 0
  }
}

/* INFO — single-column accordion */
.info-intro {
  padding: 14px;
  border-radius: 10px;
  background: var(--white);
  margin-top: 8px;
}

.info-intro .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 0;
  color: var(--muted)
}

.badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border: 1px solid var(--black);
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em
}

.badge--warning {
  background: var(--black);
  color: var(--white)
}

/* Accordion */
.accordion {
  margin: 18px 0 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow var(--dur-fast) var(--easing);
}

.accordion-item[open] {
  box-shadow: var(--shadow-sm)
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -.01em;
}

.accordion-trigger:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  border-radius: 8px
}

.acc-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--black);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  transition: transform var(--dur-fast) var(--easing), background var(--dur-fast) var(--easing), color var(--dur-fast) var(--easing);
}

.accordion-item[open] .acc-icon {
  transform: rotate(45deg);
  background: var(--black);
  color: var(--white)
}

.acc-panel {
  padding: 0 16px 14px 54px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--easing), padding var(--dur-fast) var(--easing);
}

.accordion-item[open] .acc-panel {
  padding: 0 16px 16px 54px;
  max-height: 1200px
}

/* Panel content styles */
.acc-panel p {
  margin: 10px 0
}

.acc-panel ul {
  margin: 6px 0 0 0;
  padding-left: 16px
}

.acc-panel .list-check {
  list-style: none;
  padding-left: 0
}

.acc-panel .list-check li {
  position: relative;
  padding-left: 28px;
  margin: 6px 0
}

.acc-panel .list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: 800
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-plain li {
  margin: 4px 0;
}

.timeline li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: .45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black)
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 1.1em;
  bottom: -.8em;
  width: 2px;
  background: var(--border)
}

.timeline li:last-child::after {
  display: none
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--white)
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.footer-left {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.footer-right {
  display: flex;
  gap: 12px;
  align-items: center
}

.footer-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--easing), border-color var(--dur-fast) var(--easing);
}

.footer-right a:hover {
  transform: translateY(-1px);
  border-color: var(--black)
}

.footer-right img {
  width: 16px;
  height: 16px;
  display: block
}

/* Hamburger */
.hamburger {
  display: none;
  position: relative;
  width: 36px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  /* fix tap delay */
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--black);
  transition: transform .25s, opacity .25s, top .25s;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(1) {
  top: 6px;
  transform: none
}

.hamburger span:nth-child(2) {
  top: 50%
}

.hamburger span:nth-child(3) {
  top: 22px;
  transform: none
}

body.nav-open .hamburger span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg)
}

body.nav-open .hamburger span:nth-child(2) {
  opacity: 0
}

body.nav-open .hamburger span:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg)
}

.mobile-menu {
  display: none
}

/* Click-to-load third-party embeds */
.embed-ph {
  border: 1px solid var(--border, #e6e6e6);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.embed-ph__inner {
  text-align: center;
  padding: 18px
}

.embed-ph__inner p {
  margin: 0 0 10px
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  z-index: 9999;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.5
}

.cookie-banner .actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.cookie-banner .btn {
  padding: 10px 14px;
  border-radius: 8px
}

.cookie-banner .btn.secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black)
}

/* Utilities */
.muted {
  color: var(--muted)
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0
}

/* Mobile */
@media (max-width:900px) {
  .menu {
    display: none
  }

  .hamburger {
    display: inline-block
  }

  /* mobilní menu panel */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 56px 0 0 0;
    background: var(--white);
    transform: translateY(-110%);
    transition: transform .25s ease;
    z-index: 1000;
    /* nad headerem i obsahem */
    overflow: auto;
    will-change: transform;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* bez scrollu v pozadí */
  body.nav-open .mobile-menu {
    transform: translateY(0)
  }

  .mobile-menu a {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border)
  }

  .mobile-menu .btn {
    display: block;
    margin: 12px 16px;
    text-align: center
  }

  .hero {
    grid-template-columns: 1fr
  }

  .sponsors .logos-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .content,
  .btn,
  .card,
  .doc-card,
  .hero-media img,
  .menu a::after,
  .footer-right a {
    animation: none;
    transition: none
  }
}

/* === Home hero aligned with site style === */
.hero--alt {
  align-items: center;
  gap: 32px;
}

.hero--alt .eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero--alt h1 {
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.hero--alt .lead {
  margin: 0 0 12px;
  max-width: 70ch;
}

.meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}

.hero--alt .meta-inline {
  justify-content: center;
  margin-top: 2vh;
  margin-bottom: 4vh;
}

/* image treatment like elsewhere */
.hero--alt .hero-media img {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-med) var(--easing);
}

/* — No underline on brand/logo link — */
.top-nav .brand,
.top-nav .brand:hover,
.top-nav .brand:focus {
  border-bottom: 0 !important;
  /* kill the hover border */
  text-decoration: none !important;
  /* just in case */
}

/* keep keyboard accessibility */
.top-nav .brand:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
  border-bottom: 0 !important;
}

/* tiny nicety: remove any baseline gap under the image */
.top-nav .brand img {
  display: block;
}

@media (max-width: 900px) {
  .hero--alt {
    grid-template-columns: 1fr;
    position: relative;
    text-align: center;
    padding: 40px 16px;
    min-height: 50vh;
    /* ~half of screen */
    background: url("assets/hero.png") center/cover no-repeat;
    color: var(--white);
  }

  .hero--alt .hero-media {
    display: none;
  }

  .hero--alt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(34, 34, 34, 0.3);
    /* lighter overlay */
    backdrop-filter: blur(6px);
    /* blur background */
  }

  .hero--alt .hero-content {
    position: relative;
    z-index: 1;
  }

  .hero--alt h1,
  .hero--alt .lead,
  .hero--alt .pill,
  .hero--alt .eyebrow {
    color: #fff;
  }

  .pill {
    border-color: #fff;
    color: #fff;
  }

  /* Invert CTA button style on mobile */
  .hero--alt .btn.cta {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
  }

  .hero--alt .btn.cta:hover {
    background: var(--muted);
    color: var(--white);
    border-color: var(--muted);
  }
}

/* Stack the "Praktické informace" cards on mobile */
@media (max-width: 900px) {
  .grid-3.cards-stack-mobile {
    grid-template-columns: 1fr;
    /* one per row */
    gap: 14px;
    /* a touch more breathing room */
  }

  .grid-3.cards-stack-mobile .card-h {
    padding: 18px;
    /* slightly roomier cards on mobile */
  }
}

/* Override mobile white pill for just this one */
@media (max-width: 900px) {
  .pill--dark {
    border-color: var(--black);
    color: var(--text);
  }
}

.cta-row.wrap {
  flex-wrap: wrap;
}

.cta-row.wrap .btn {
  margin-bottom: 6px;
}

/* --- Mini mapa vpravo v page-head --- */
.page-head {
  overflow: visible;
}

/* jistota, že nic neusekne děti */
.map-actions {
  display: flex;
  flex-direction: column;
  /* tlačítko nahoře, mapa pod ním */
  align-items: flex-end;
  gap: 10px;
  position: relative;
  z-index: 2;
  /* nad dalším obsahem */
  padding-bottom: 6px;
  /* kousek místa pod náhledem */
}

.map-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.map-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-right: 30px;
}

/* Náhled mapy (s rámečkem) */
.map-thumb,
.map-thumb:hover {
  border-bottom: 0 !important;
}

/* je to button – bez podtržení */
.map-thumb {
  display: inline-block;
  padding: 0;
  border-radius: 10px;
  width: 220px;
  height: 200px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--easing), box-shadow .2s var(--easing);
  position: relative;
  /* rámeček zůstane nad spodní hranou sekce */
}

.map-thumb:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Lightbox / overlay --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;                /* místo gridu */
  align-items: center;
  justify-content: center;      /* centrum horizontálně i vertikálně */
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--easing);
  z-index: 2000;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__inner {
  cursor: zoom-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;                  /* ⬅ zajistí plné využití */
  height: 100%;
}

.lightbox__inner img {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

/* Mobil – menší okraj, ale pořád střed */
@media (max-width:700px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox__inner img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }
}

/* Mobil – centrovat náhled, menší vnitřní okraj v overlayi */
@media (max-width:700px) {
  .map-actions {
    align-items: center;
  }

  .map-box {
    align-items: center;
  }

  .map-thumb {
    width: 100%;
    height: auto;
  }

  .map-thumb img {
    height: auto;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__inner img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }
}

.map-thumb {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  /* volitelné */
}