/* ===================================================================
   Časovka na Lucký vrch — hlavní styl
   Paleta: lesní zelená + lomená bílá + oranžovožlutý akcent
   Mobile-first, bez frameworku.
   =================================================================== */

:root {
  --primary: #0b72ad;
  --primary-deep: #084f79;
  --primary-soft: #35a8e0;
  --paper: #f6fafd;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4f4b;
  --accent: #f2a900;
  --accent-dark: #cf9100;
  --line: #d9e6ef;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(8, 79, 121, .08), 0 8px 30px rgba(8, 79, 121, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-soft); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--ink); padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand-logo { width: 52px; height: 52px; }
.brand-name {
  font-weight: 800; font-size: .95rem; line-height: 1.15;
  letter-spacing: .02em; text-transform: uppercase;
}
.site-nav { display: none; }
.site-nav a {
  display: block;
  padding: .85rem 1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}
.site-nav a:hover { background: var(--paper); color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 12px; cursor: pointer;
}
.nav-toggle-bar {
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobilní menu */
.site-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .5rem 1rem 1rem;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex; position: static; gap: 2px;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 169, 0, .12), transparent 60%),
    linear-gradient(rgba(11, 114, 173, .90), rgba(8, 79, 121, .93)),
    url("../img/hero.jpg") center 62% / cover no-repeat,
    var(--primary);
  color: var(--paper);
  overflow: hidden;
}
.hero-inner {
  display: grid; gap: 24px;
  padding-top: 44px; padding-bottom: 44px;
  text-align: center;
  justify-items: center;
}
.hero-kicker {
  margin: 0;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(246, 250, 253, .75);
}
.hero-title {
  margin: .3rem 0 0;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero-no { color: var(--accent); font-size: 1.15em; }
.hero-date {
  margin: .8rem 0 0;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 600;
}
.hero-cta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--ink); }
.btn-ghost {
  color: var(--paper); border-color: rgba(246, 250, 253, .5);
}
.btn-ghost:hover { border-color: var(--paper); color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline {
  color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--paper); }
.btn-big { padding: .95rem 2.2rem; font-size: 1.08rem; }

/* registrační banner */
.reg-banner {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(242, 169, 0, .15), transparent 60%),
    var(--primary);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 2rem;
  margin: 1rem 0 2rem;
}
.reg-banner h2 { margin: 0 0 .4rem; font-size: 1.4rem; }
.reg-banner p { margin: 0 0 1.1rem; color: rgba(246, 250, 253, .85); max-width: 46rem; }
.reg-banner-qr {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .82rem; color: rgba(246, 250, 253, .8);
}
.reg-banner-qr img { background: #fff; border-radius: 10px; padding: 8px; }

/* odpočet */
.countdown {
  margin-top: 1.6rem;
  display: flex; gap: 10px; justify-content: center;
}
.cd-cell {
  min-width: 72px;
  padding: .6rem .4rem .5rem;
  background: rgba(8, 79, 121, .55);
  border: 1px solid rgba(246, 250, 253, .18);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center;
}
.cd-cell span {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.1;
}
.cd-cell small {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(246, 250, 253, .7);
}

/* emblém + jubileum */
.hero-badge { position: relative; width: min(62vw, 300px); }
.hero-badge img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.jubilee {
  position: absolute; right: -8px; top: -8px;
  width: 92px; height: 92px;
  background: var(--accent); color: var(--primary-deep);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 600; line-height: 1.15;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.jubilee strong { font-size: 1.15rem; font-weight: 800; }

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    text-align: left;
    justify-items: start;
    padding-top: 64px; padding-bottom: 64px;
  }
  .hero-cta, .countdown { justify-content: flex-start; }
  .hero-badge { justify-self: end; }
}

/* ---------- Informační karty ---------- */
.info-cards {
  display: grid; gap: 18px;
  margin-top: -26px; margin-bottom: 20px;
  position: relative; z-index: 2;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
  border-top: 4px solid var(--accent);
}
.card p { margin: .35rem 0; }
.card-h {
  margin: 0 0 .5rem;
  font-size: .85rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
}
.cats { margin: 0; padding-left: 1.2rem; }
.cats li { margin: .15rem 0; }

.card-note { color: var(--ink-soft); font-size: .88rem; }
.card-qr {
  display: block;
  width: 110px; height: 110px;
  margin-top: .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--white);
}

@media (min-width: 720px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); margin-top: -34px; }
}
@media (min-width: 1000px) {
  .info-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Partneři ---------- */
.partners {
  margin-top: 2.5rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 0;
}
.partners-h {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: .85rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.partners-strip {
  display: flex; flex-wrap: wrap;
  gap: 26px 40px;
  align-items: center; justify-content: center;
}
.partner { display: inline-flex; align-items: center; }
.partner img {
  max-height: 52px; max-width: 150px;
  width: auto; height: auto;
  filter: grayscale(35%);
  opacity: .9;
  transition: filter .2s, opacity .2s;
}
.partner:hover img { filter: none; opacity: 1; }

/* ---------- Obsahové sekce ---------- */
.prose-section { padding: 1.6rem 20px 2.2rem; }
.wrap.prose-section, .wrap .prose-section { padding-left: 0; padding-right: 0; }
.section-h {
  font-size: 1.5rem; font-weight: 800;
  margin: 1.2rem 0 .8rem;
  padding-left: .75rem;
  border-left: 5px solid var(--accent);
  color: var(--primary);
}
.prose { max-width: none; }
.prose h2 {
  font-size: 1.3rem; font-weight: 800;
  margin: 1.6rem 0 .6rem;
  padding-left: .75rem;
  border-left: 5px solid var(--accent);
  color: var(--primary);
}
.map-frame {
  width: 100%; height: 460px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin: .6rem 0 1rem;
}
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: .4rem .6rem; }

/* ---------- Hlavička podstránky ---------- */
.page-head {
  background: var(--primary);
  color: var(--paper);
  padding: 2.2rem 0 1.8rem;
}
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; }
.page-lead { margin: .5rem 0 0; color: rgba(246, 250, 253, .8); }
.breadcrumb { margin: 0 0 .4rem; font-size: .85rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* ---------- Archiv ---------- */
.archive-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  padding: 1.8rem 0 2.4rem;
}
.year-card {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  border-top: 4px solid var(--primary);
  transition: transform .15s, border-color .15s;
}
.year-card:hover { transform: translateY(-3px); border-top-color: var(--accent); }
.year-card-year { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.year-card-no { font-weight: 600; color: var(--ink-soft); }
.year-card-date { font-size: .88rem; color: var(--ink-soft); }
.year-card-winner { margin-top: .5rem; font-size: .88rem; }

/* ---------- Výsledky / soubory ---------- */
.file-list { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: 8px; max-width: 46rem; }
.file-list a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: .6rem .9rem;
  text-decoration: none;
  font-weight: 600;
}
.file-list a:hover { border-left-color: var(--accent); background: #f3fafe; }
.winners { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: .6rem; }
.winner { margin: 0; }
.winner-label {
  font-size: .75rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark);
  margin-right: .3rem;
}
.winner-time { color: var(--ink-soft); margin-left: .3rem; font-variant-numeric: tabular-nums; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.gallery-item {
  display: block; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--line);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s;
}
.gallery-item:hover img { transform: scale(1.05); }

.videos { display: grid; gap: 16px; margin-top: 1rem; }
.video-box { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-box iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 720px) { .videos { grid-template-columns: 1fr 1fr; } }

/* lightbox */
.lb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 22, 33, .94);
  display: flex; align-items: center; justify-content: center;
}
.lb-overlay img {
  max-width: min(94vw, 1600px); max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .6);
}
.lb-caption {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; color: rgba(246, 250, 253, .85); font-size: .9rem;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .08); color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-close { top: 20px; right: 14px; transform: none; }

/* ---------- Síň slávy ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hof-table {
  border-collapse: collapse; width: 100%; min-width: 560px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hof-table th {
  background: var(--primary); color: var(--paper);
  text-align: left; padding: .65rem .9rem;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
}
.hof-table td { padding: .55rem .9rem; border-top: 1px solid var(--line); }
.hof-table tr:nth-child(even) td { background: #ecf5fb; }
.hof-table td.record { font-weight: 800; color: var(--accent-dark); white-space: nowrap; }
.note { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Patička ---------- */
.site-footer {
  margin-top: 3rem;
  background: var(--primary-deep);
  color: rgba(246, 250, 253, .85);
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid; gap: 24px;
  padding-top: 2.4rem; padding-bottom: 1.2rem;
}
.footer-logo { width: 90px; opacity: .95; }
.footer-h {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.site-footer p { margin: .25rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(246, 250, 253, .15);
  padding-top: 1rem; padding-bottom: 1.4rem;
  font-size: .85rem; color: rgba(246, 250, 253, .55);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: auto 1fr 1fr 1fr; gap: 40px; }
}

/* ---------- Drobnosti ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
