/* =========================================================
   TJ Klatovy – styly
   Barvy a písma podle návrhu (Montserrat + Roboto, lokálně)
   ========================================================= */

/* ---------- Písma (self-hosted, bez Google) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/roboto-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Proměnné ---------- */
:root {
  --primary: #0B4EA2;       /* hlavní barva */
  --primary-dark: #083a7a;
  --secondary: #1E88E5;     /* akcenty, tlačítka */
  --accent: #E63946;        /* zvýraznění */
  --light: #F4F6F8;         /* pozadí sekcí */
  --text: #1F2937;
  --muted: #5b6573;
  --white: #ffffff;
  --border: #e3e8ee;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;

  --radius: 8px;
  --shadow: 0 6px 20px rgba(11, 78, 162, 0.10);
  --container: 1140px;
  --header-h: 76px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

/* patička vždy dole i na krátkých stránkách */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; display: flex; flex-direction: column; }
body > main > section:last-child { flex: 1; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0;
}

a { color: inherit; }

img, svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 70px 0; }
.section--light { background: var(--light); }

/* malý štítek nad nadpisem: ▬ O NÁS */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--secondary);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  text-decoration: none;
}
.link-arrow:hover { color: var(--primary); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.arrow { transition: transform 0.2s; }

/* ---------- Tlačítka ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(11, 78, 162, 0.35); }

.btn--secondary { background: var(--secondary); color: var(--white); }
.btn--secondary:hover { background: #1670c0; box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4); }

.btn--pill { border-radius: 999px; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}
.brand-logo { width: 48px; height: 56px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-head);
  line-height: 1.05;
}
.brand-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-text strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* odkaz na webmail v hlavičce */
.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.mail-btn:hover { background: var(--light); border-color: var(--secondary); }
.mail-btn svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
}
.nav-toggle svg { margin: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  /* fotka Klatov s modrým přechodem – vlevo pod textem sytý, vpravo průhledný */
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 20px, transparent 20px 40px),
    linear-gradient(90deg, rgba(7, 47, 99, 0.96) 0%, rgba(11, 78, 162, 0.88) 38%, rgba(11, 78, 162, 0.5) 70%, rgba(11, 78, 162, 0.25) 100%),
    url("img/klatovy-hero.jpg") center 30% / cover no-repeat,
    linear-gradient(120deg, #072f63 0%, var(--primary) 55%, #1565c0 100%);
}
.hero-credit {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 0.6rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-credit:hover { color: var(--white); text-decoration: underline; }
.hero-inner {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero h1 span { display: block; font-size: 1.2em; }
.hero p {
  margin: 18px 0 26px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  opacity: 0.95;
}
.hero .btn { align-self: flex-start; }

/* ---------- O nás ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about p {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Zástupné „obrázky“ ---------- */
.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, #9fb8d8, #6f93c2);
  overflow: hidden;
}
.placeholder svg { width: 48px; height: 48px; }
.placeholder--about { aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.placeholder--about svg { width: 72px; height: 72px; }

/* ---------- Sportovní oddíly ---------- */
.sports {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sport-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  padding: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* fotka oddílu (barevný gradient pod ní slouží jako záloha) */
.sport-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.sport-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1) 65%);
  transition: opacity 0.4s ease;
}
.sport-card .label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.sport-card .label svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}
.label-text { position: relative; }
.label-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: width 0.35s ease;
}
/* kolečko se šipkou v rohu – objeví se při najetí */
.sport-card-go {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  opacity: 0;
  transform: scale(0.6) translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sport-card-go svg { width: 18px; height: 18px; }

/* hover / focus – dlaždice na úvodu */
a.sport-card:hover,
a.sport-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(11, 78, 162, 0.28);
}
a.sport-card:hover .sport-img,
a.sport-card:focus-visible .sport-img { transform: scale(1.1); filter: saturate(1.15) brightness(1.08); }
a.sport-card:hover::after { opacity: 0.75; }
a.sport-card:hover .label svg,
a.sport-card:focus-visible .label svg { transform: scale(1.2) rotate(-8deg); }
a.sport-card:hover .label-text::after,
a.sport-card:focus-visible .label-text::after { width: 100%; }
a.sport-card:hover .sport-card-go,
a.sport-card:focus-visible .sport-card-go { opacity: 1; transform: none; }
a.sport-card:active { transform: translateY(-3px); }

.sport--atletika   { background: linear-gradient(135deg, #c0392b, #7a1f16); }
.sport--fotbal     { background: linear-gradient(135deg, #3c9a3c, #1d5e22); }
.sport--volejbal   { background: linear-gradient(135deg, #d9822b, #8a4a12); }
.sport--tenis      { background: linear-gradient(135deg, #1e88e5, #0b4ea2); }
.sport--gymnastika { background: linear-gradient(135deg, #8d6e63, #4e342e); }

/* ---------- Aktuality ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.news-card:hover { transform: translateY(-4px); }
.news-card .placeholder { aspect-ratio: 16 / 6; border-radius: 0; }
.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.news-date { font-size: 0.8rem; color: var(--muted); }
.news-card h3 {
  margin: 4px 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
}
.news-card p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Galerie ---------- */
.gallery {
  position: relative;
  color: var(--white);
  /* atletický stadion v Klatovech s modrým přechodem – vlevo pod textem sytý */
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 20px, transparent 20px 40px),
    linear-gradient(90deg, rgba(7, 47, 99, 0.94) 0%, rgba(11, 78, 162, 0.72) 35%, rgba(11, 78, 162, 0.4) 100%),
    url("img/klatovy-hriste.jpg") center 72% / cover no-repeat,
    linear-gradient(120deg, #072f63, var(--primary));
}
.gallery-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.gallery h2 { font-size: 1.7rem; font-weight: 800; }
.gallery p { margin: 8px 0 20px; opacity: 0.9; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-thumbs .placeholder {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- Patička ---------- */
.site-footer {
  background: #072f63;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.site-footer .brand { color: var(--white); }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-item div { line-height: 1.6; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.socials {
  display: flex;
  gap: 16px;
}
.socials a {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.socials a:hover { background: rgba(255, 255, 255, 0.12); }
.socials svg { width: 22px; height: 22px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
  }
  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a.active { border-bottom-color: var(--border); }

  .sports { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .about { grid-template-columns: 1fr; gap: 30px; }
  .news { grid-template-columns: 1fr 1fr; }
  .gallery-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .section { padding: 50px 0; }
  .brand-logo { width: 40px; height: 47px; }
  .brand-text small { font-size: 0.62rem; }
  .brand-text strong { font-size: 1.2rem; }
  .header-actions .btn { display: none; }   /* CTA je i v menu */
  .mail-btn { width: 44px; padding: 0; justify-content: center; }
  .mail-btn span { display: none; }
  .hero-inner { min-height: 320px; }
  .hero {
    background:
      linear-gradient(180deg, rgba(7, 47, 99, 0.9) 0%, rgba(11, 78, 162, 0.75) 60%, rgba(11, 78, 162, 0.55) 100%),
      url("img/klatovy-hero.jpg") 55% 30% / cover no-repeat,
      var(--primary);
  }
  .sports { grid-template-columns: 1fr 1fr; }
  .sport-card:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 8 / 3; }
  .news { grid-template-columns: 1fr; }
  .gallery-thumbs { gap: 8px; }
  .gallery {
    background:
      linear-gradient(180deg, rgba(7, 47, 99, 0.9) 0%, rgba(11, 78, 162, 0.6) 100%),
      url("img/klatovy-hriste.jpg") center 70% / cover no-repeat,
      var(--primary);
  }
}

@media (min-width: 601px) {
  .nav-cta { display: none; }               /* CTA v menu jen na mobilu */
}

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

/* =========================================================
   Podstránky
   ========================================================= */

/* pruh s nadpisem stránky */
.page-hero {
  color: var(--white);
  padding: 56px 0 50px;
  background:
    radial-gradient(circle at 85% 20%, rgba(30, 136, 229, 0.4), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 20px, transparent 20px 40px),
    linear-gradient(120deg, #072f63 0%, var(--primary) 60%, #1565c0 100%);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.9); }
.eyebrow--light::before { background: var(--white); }

.lead { font-size: 1.15rem; color: var(--text) !important; }

/* textové stránky (cookies apod.) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose .btn { margin-top: 32px; }

/* informační rámeček „připravujeme“ */
.notice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed #c5d0de;
  border-radius: var(--radius);
  color: var(--muted);
}
.notice-card p { margin: 0; }

/* Sporty – seznam oddílů (celý řádek je odkaz) */
.sport-list { display: grid; gap: 24px; }
.sport-row {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 16px 28px 16px 16px;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sport-row .sport-card { aspect-ratio: 16 / 10; box-shadow: none; }

.sport-row h2 {
  position: relative;
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
/* linka pod názvem, která se při najetí vysune */
.sport-row h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--secondary);
  transition: width 0.35s ease;
}
.sport-row p { margin: 0; color: var(--muted); }

/* kulaté tlačítko se šipkou */
.sport-row-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--primary);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.sport-row-go svg { width: 22px; height: 22px; transition: transform 0.3s ease; }

/* hover / focus */
.sport-row:hover,
.sport-row:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(11, 78, 162, 0.2);
}
.sport-row:hover .sport-img,
.sport-row:focus-visible .sport-img { transform: scale(1.1); filter: saturate(1.15) brightness(1.08); }
.sport-row:hover .sport-card::after { opacity: 0.75; }
.sport-row:hover .sport-card .label svg { transform: scale(1.2) rotate(-8deg); }
.sport-row:hover h2,
.sport-row:focus-visible h2 { color: var(--primary); }
.sport-row:hover h2::after,
.sport-row:focus-visible h2::after { width: 100%; }
.sport-row:hover .sport-row-go,
.sport-row:focus-visible .sport-row-go {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}
.sport-row:hover .sport-row-go svg { transform: translateX(3px); }
.sport-row:active { transform: translateY(-2px); }

/* zvýraznění oddílu / novinky, na kterou vede odkaz */
.sport-row:target,
.news-card:target { outline: 3px solid var(--secondary); outline-offset: 4px; }

/* Galerie – mřížka */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.gallery-grid .placeholder { aspect-ratio: 4 / 3; }

@media (max-width: 920px) {
  .sport-row { grid-template-columns: 200px 1fr auto; gap: 20px; }
}

@media (max-width: 600px) {
  .page-hero { padding: 40px 0 36px; }
  .sport-row { grid-template-columns: 1fr; gap: 14px; padding: 14px 14px 20px; }
  .sport-row-text { padding-right: 60px; }
  .sport-row-go { position: absolute; right: 16px; bottom: 18px; width: 44px; height: 44px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Stránky oddílů – hlavička v barvě oddílu */
.page-hero--sport h1 { display: flex; align-items: center; gap: 16px; }
.page-hero-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }
/* fotka sportu s přechodem v barvě oddílu */
.page-hero--sport.sport--atletika {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 20px, transparent 20px 40px),
    linear-gradient(90deg, rgba(122, 31, 22, 0.94) 0%, rgba(192, 57, 43, 0.72) 45%, rgba(192, 57, 43, 0.42) 100%),
    url("img/galerie-1.jpg") center 55% / cover no-repeat,
    linear-gradient(120deg, rgba(122, 31, 22, 1), rgba(192, 57, 43, 1));
}
.page-hero--sport.sport--fotbal {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 20px, transparent 20px 40px),
    linear-gradient(90deg, rgba(29, 94, 34, 0.94) 0%, rgba(60, 154, 60, 0.72) 45%, rgba(60, 154, 60, 0.42) 100%),
    url("img/galerie-5.jpg") center 40% / cover no-repeat,
    linear-gradient(120deg, rgba(29, 94, 34, 1), rgba(60, 154, 60, 1));
}
.page-hero--sport.sport--volejbal {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 20px, transparent 20px 40px),
    linear-gradient(90deg, rgba(138, 74, 18, 0.94) 0%, rgba(217, 130, 43, 0.72) 45%, rgba(217, 130, 43, 0.42) 100%),
    url("img/novinka-volejbal.jpg") center 45% / cover no-repeat,
    linear-gradient(120deg, rgba(138, 74, 18, 1), rgba(217, 130, 43, 1));
}
.page-hero--sport.sport--tenis {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 20px, transparent 20px 40px),
    linear-gradient(90deg, rgba(11, 78, 162, 0.94) 0%, rgba(30, 136, 229, 0.72) 45%, rgba(30, 136, 229, 0.42) 100%),
    url("img/galerie-3.jpg") center 35% / cover no-repeat,
    linear-gradient(120deg, rgba(11, 78, 162, 1), rgba(30, 136, 229, 1));
}
.page-hero--sport.sport--gymnastika {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 20px, transparent 20px 40px),
    linear-gradient(90deg, rgba(78, 52, 46, 0.92) 0%, rgba(141, 110, 99, 0.55) 45%, rgba(141, 110, 99, 0.2) 100%),
    url("img/sport-gymnastika.jpg") center 78% / cover no-repeat,
    linear-gradient(120deg, rgba(78, 52, 46, 1), rgba(141, 110, 99, 1));
}
@media (max-width: 600px) {
  .page-hero--sport.sport--atletika {
    background:
      linear-gradient(180deg, rgba(122, 31, 22, 0.9) 0%, rgba(192, 57, 43, 0.62) 100%),
      url("img/galerie-1.jpg") center 55% / cover no-repeat,
      rgba(122, 31, 22, 1);
  }
  .page-hero--sport.sport--fotbal {
    background:
      linear-gradient(180deg, rgba(29, 94, 34, 0.9) 0%, rgba(60, 154, 60, 0.62) 100%),
      url("img/galerie-5.jpg") center 40% / cover no-repeat,
      rgba(29, 94, 34, 1);
  }
  .page-hero--sport.sport--volejbal {
    background:
      linear-gradient(180deg, rgba(138, 74, 18, 0.9) 0%, rgba(217, 130, 43, 0.62) 100%),
      url("img/novinka-volejbal.jpg") center 45% / cover no-repeat,
      rgba(138, 74, 18, 1);
  }
  .page-hero--sport.sport--tenis {
    background:
      linear-gradient(180deg, rgba(11, 78, 162, 0.9) 0%, rgba(30, 136, 229, 0.62) 100%),
      url("img/galerie-3.jpg") center 35% / cover no-repeat,
      rgba(11, 78, 162, 1);
  }
  .page-hero--sport.sport--gymnastika {
    background:
      linear-gradient(180deg, rgba(78, 52, 46, 0.9) 0%, rgba(141, 110, 99, 0.62) 100%),
      url("img/sport-gymnastika.jpg") center 78% / cover no-repeat,
      rgba(78, 52, 46, 1);
  }
}

/* Upozornění – web ve vývoji */
.dev-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 18px;
  background: #fff4e5;
  border: 1px solid #f5b25b;
  border-left: 5px solid #f39c12;
  border-radius: var(--radius);
  color: #7a4a00;
}
.dev-notice p { margin: 0; }
.dev-notice-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; color: #f39c12; }

/* Novinky – fotka s jemným zoomem při najetí */
.news-media { aspect-ratio: 16 / 7; overflow: hidden; background: #c9d6e6; }
.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.news-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-card:hover { box-shadow: 0 14px 30px rgba(11, 78, 162, 0.18); }
.news-card:hover .news-media img { transform: scale(1.07); filter: saturate(1.1) brightness(1.05); }

/* Galerie – fotky */
.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #c9d6e6;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1.05); }
.gallery-thumbs .gallery-item {
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   Stránky plněné ze správy webu
   ========================================================= */

/* Aktuality – plné články */
.news-list { display: grid; gap: 24px; }
.news-article {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  padding: 20px;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.news-article:not(:has(.news-article-media)) { grid-template-columns: 1fr; }
.news-article-media { display: block; overflow: hidden; border-radius: var(--radius); align-self: start; }
.news-article-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.news-article-media:hover img { transform: scale(1.05); }
.news-article h2 { font-size: 1.4rem; font-weight: 700; margin: 4px 0 10px; }
.news-text p { margin: 0 0 12px; color: var(--muted); }
.news-text a { color: var(--secondary); }
.news-article:target { outline: 3px solid var(--secondary); outline-offset: 4px; }

/* Galerie – odkaz místo divu + zvětšení */
a.gallery-item { display: block; }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(5, 15, 30, 0.92);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 15, 30, 0.6); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.lb-btn {
  position: fixed; display: grid; place-items: center;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lb-close { top: 16px; right: 16px; font-size: 1.3rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Kontakty */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.contact-card { padding: 24px; background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-card li { display: flex; align-items: center; gap: 10px; }
.contact-card li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); }
.contact-card a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact-card a:hover { color: var(--primary); text-decoration: underline; }
.contact-note { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 760px) {
  .news-article { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
}

/* =========================================================
   Chybové stránky (403, 404)
   ========================================================= */
.error-page { padding: 80px 0; background: var(--light); }
.error-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
}
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 4px 0 12px; }
.error-lead { font-size: 1.2rem; margin: 0 0 10px; }
.error-page p { color: var(--muted); }
.error-page .error-lead { color: var(--text); }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }

/* 403 – červená karta */
.error-page--403 .eyebrow { color: var(--accent); }
.error-page--403 .eyebrow::before { background: var(--accent); }
.red-card {
  justify-self: center;
  width: 150px;
  height: 210px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4d5a, #c81d2b);
  box-shadow: 0 18px 40px rgba(200, 29, 43, 0.35), inset 0 0 0 4px rgba(255, 255, 255, 0.15);
  transform: rotate(-12deg);
  animation: red-card-show 0.7s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes red-card-show {
  from { transform: translateY(60px) rotate(25deg) scale(0.6); opacity: 0; }
  to   { transform: rotate(-12deg); opacity: 1; }
}

/* 404 – číslo s míčem */
.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}
.error-ball {
  width: 0.85em;
  height: 0.85em;
  margin: 0 4px;
  color: var(--primary);
  animation: ball-spin 6s linear infinite;
}
@keyframes ball-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .error-page { padding: 50px 0; }
  .error-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .error-page .eyebrow { justify-content: center; }
  .error-actions { justify-content: center; }
  .red-card { width: 110px; height: 154px; }
  .error-code { font-size: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .red-card, .error-ball { animation: none; }
}
