/* SK Kometa Polička — editoriální design.
 *
 * Typografie: Barlow Condensed na displej (velké kondenzované verzálky),
 * Barlow na text. Červená je akcent, ne plocha. Tmavé pásy nesou zápasy,
 * bílá plocha nese články.
 */

:root {
  /* plochy */
  --bg: #FFFFFF;
  --surface: #F5F8FA;
  --surface-2: #FCFDFE;
  --border: #E8EAEE;
  --border-soft: #F1F3F6;

  /* text */
  --fg: #1D2330;
  --fg-muted: #67707E;
  --fg-faint: #9AA3B0;

  /* klubové barvy */
  --red: #E42525;
  --red-dark: #BF1818;
  --navy: #1D2330;
  --navy-deep: #10141E;

  /* text na tmavém */
  --on-dark: #FFFFFF;
  --on-dark-muted: #A9B3C1;
  --on-dark-faint: #6C7789;

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

  --gutter: 1rem;
  --shadow-card: 0 1px 3px rgba(29, 35, 48, 0.06), 0 1px 2px rgba(29, 35, 48, 0.04);
  --shadow-lift: 0 18px 40px -22px rgba(29, 35, 48, 0.28);
  --shadow-hero: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) { :root { --gutter: 2rem; } }
@media (min-width: 1200px) { :root { --gutter: 4rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }

/* Řádkování pod 1.05 tady nechceme: české verzálky nesou háčky a délky
 * (Č, Ř, Í, Á) nad výškou verzálek, a při těsném řádkování se srazí
 * s řádkem nad sebou — POLIČCE se pak čte jako POLICCE. Anglické
 * verzálky ten problém nemají, proto se na to snadno zapomene. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Hlavička ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.9rem; }

.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
}
.brand-sub {
  font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 600;
}

.nav { display: none; align-items: center; gap: 1.85rem; }
@media (min-width: 940px) { .nav { display: flex; } }
.nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 0.94rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-muted);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--red); }
.nav .nav-lock { display: grid; place-items: center; color: var(--fg-faint); padding-bottom: 0; }
.nav .nav-lock:hover { color: var(--red); }

/* Mobilní menu bez JavaScriptu. */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button {
  width: 48px; height: 48px; margin-right: -0.5rem; display: grid; place-items: center;
  cursor: pointer; color: var(--fg); border: 1px solid var(--border);
}
@media (min-width: 940px) { .menu-button { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); }
.menu-toggle:checked ~ .mobile-nav { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding-block: 0.85rem; border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-deep); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%;
  background: var(--red); z-index: 1;
}
.hero::after {
  content: ""; position: absolute; top: -140px; right: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(228,37,37,0.30), rgba(228,37,37,0) 68%);
}
.hero-grid {
  position: relative; z-index: 1; display: grid; gap: 2rem;
  padding-block: 2.5rem 0; align-items: end;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; padding-top: 3.5rem; }
}
.hero-grid > * { min-width: 0; }

.hero-copy { display: flex; flex-direction: column; gap: 1.2rem; padding-bottom: 2.5rem; }
.eyebrow { display: flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); flex-shrink: 0; }
.eyebrow span {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: #8C97A8; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.75rem);
  /* Viz poznámka u h1 výše — 0.88 spolklo háček nad Č v „Poličce“. */
  line-height: 1.02;
  letter-spacing: -0.015em; color: var(--on-dark); text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: 1.05rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 26rem; }

/* Karta nejbližšího zápasu — sedí na spodní hraně hera. */
.next-match { background: var(--bg); box-shadow: var(--shadow-hero); overflow: hidden; margin-bottom: -1px; }
.next-match-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: var(--red); padding: 0.7rem 1.35rem;
}
.next-match-head .label {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark);
}
.next-match-head .round { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.next-match-body { padding: 1.6rem 1.4rem 1.35rem; }
.next-match-teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; align-items: center; }
.next-match-teams > * { min-width: 0; }
.side { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.side img, .side .crest {
  width: 62px; height: 62px; object-fit: contain; flex-shrink: 0;
}
.side .crest {
  border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--fg-muted);
}
.side .name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; text-align: center; line-height: 1.12;
}
.side.own .name { color: var(--red); }
.kickoff { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.kickoff .time { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.kickoff .date { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.kickoff .venue {
  margin-top: 0.35rem; padding: 0.22rem 0.7rem; background: var(--surface);
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600;
}
.next-match-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--border); padding: 0.85rem 1.35rem; background: var(--surface-2);
  font-size: 0.82rem; color: var(--fg-muted);
}
.next-match-empty { padding: 2.5rem 1.4rem; text-align: center; color: var(--fg-muted); font-size: 0.9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
}
.link-arrow:hover { color: var(--red-dark); }
.link-arrow svg { flex-shrink: 0; }

/* ---------- Pás výsledků ---------- */
.results-band { background: var(--navy); }
.results-band .container { padding-inline: var(--gutter); }
.results-layout { display: grid; gap: 0; }
@media (min-width: 1000px) { .results-layout { grid-template-columns: 200px minmax(0, 1fr); } }
.results-label {
  display: flex; align-items: center; padding-block: 1.35rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: #8C97A8;
}
/* Flex, ne grid: zápasů může být jeden nebo pět a prázdná buňka gridu
   by v pásu nechala díru. */
.results-list { display: flex; flex-wrap: wrap; gap: 1px; background: rgba(255,255,255,0.08); }
.results-list > * { min-width: 0; flex: 1 1 260px; }
.results-list > .results-more { flex: 0 1 auto; }
.result {
  background: var(--navy); padding: 1.2rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.result:hover { background: #232A39; }
.result-when { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-faint); font-weight: 600; }
.result-main { display: flex; align-items: baseline; gap: 0.75rem; min-width: 0; }
.result-score { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--on-dark); flex-shrink: 0; }
.result-score small { font-size: 0.75rem; font-weight: 500; color: var(--on-dark-faint); margin-left: 0.2rem; }
.result-teams { font-size: 0.88rem; color: var(--on-dark-muted); line-height: 1.3; min-width: 0; }
.result-teams .own { color: var(--red); font-weight: 600; }
.results-more { background: var(--navy); padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: flex-end; margin-left: auto; }
.results-more .link-arrow { color: var(--on-dark); }
.results-more .link-arrow:hover { color: var(--red); }
.results-empty { background: var(--navy); padding: 1.35rem 1.5rem; color: var(--on-dark-faint); font-size: 0.88rem; }

/* ---------- Sekce ---------- */
.section { padding-block: 3.5rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem;
  border-bottom: 2px solid var(--navy); padding-bottom: 0.7rem; margin-bottom: 2.25rem;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.section-head .more { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }

.layout-main { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1050px) { .layout-main { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; } }
.layout-main > * { min-width: 0; }

/* ---------- Články ---------- */
.lead-post { display: grid; gap: 1.6rem; align-items: center; margin-bottom: 2.25rem; }
@media (min-width: 760px) { .lead-post { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.lead-post > * { min-width: 0; }
.lead-post .thumb { aspect-ratio: 4 / 3; }
.lead-post h3 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.08; text-wrap: balance; }
.lead-post .excerpt { font-size: 1rem; line-height: 1.6; color: #4B5563; }
.lead-body { display: flex; flex-direction: column; gap: 0.85rem; }

.post-grid { display: grid; gap: 1.75rem; border-top: 1px solid var(--border); padding-top: 2.25rem; }
@media (min-width: 620px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-grid.no-lead { border-top: none; padding-top: 0; }
.post-grid > * { min-width: 0; }

.post-card { display: flex; flex-direction: column; gap: 0.75rem; }
.post-card .thumb { aspect-ratio: 3 / 2; }
.post-card h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.14; }
.post-card h3 a:hover { color: var(--red); }
.post-card .excerpt { font-size: 0.9rem; line-height: 1.55; color: var(--fg-muted); }

.thumb {
  position: relative; display: block; overflow: hidden; background: var(--surface);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.thumb:hover img { transform: scale(1.03); }
.thumb .chip-cat {
  position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--on-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 0.32rem 0.7rem;
}
.thumb.is-lead .chip-cat { background: var(--red); font-size: 0.72rem; padding: 0.42rem 1rem; }

/* Náhrada za chybějící obrázek.
 *
 * Klubový znak je ikona s BÍLÝM pozadím, takže na tmavém podkladu
 * vypadal jako bílý čtverec. Podklad je proto světlý a znak se do něj
 * mísí přes multiply — bílá tím zmizí a zůstane jen kresba. Červený
 * pruh dole drží klubovou barvu ve hře.
 */
.badge-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--surface) 55%, #E7EDF2 100%);
}
.badge-fallback::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red);
}
.badge-fallback img {
  width: 46%; height: auto; max-height: 76%; object-fit: contain;
  mix-blend-mode: multiply;
}
.thumb.is-plain .badge-fallback { background: var(--surface); }
.thumb.is-plain .badge-fallback::after { height: 3px; background: #D8DEE6; }
.thumb.is-plain .badge-fallback img { width: 38%; opacity: 0.55; }

.post-meta {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 600;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #C4CBD6; }
.post-meta a:hover { color: var(--red); }

/* ---------- Postranní panel ---------- */
.sidebar { display: flex; flex-direction: column; gap: 2.25rem; }
.side-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  border-bottom: 2px solid var(--navy); padding-bottom: 0.7rem;
}
.side-head h3 { font-size: 1.35rem; }
.side-head .more { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }

.mini-table { display: flex; flex-direction: column; }
.mini-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 30px 34px; gap: 0.5rem;
  padding-block: 0.65rem; border-bottom: 1px solid var(--border-soft); align-items: center;
}
.mini-row.head {
  padding: 0.6rem 0 0.5rem; border-bottom: 1px solid var(--border);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700;
}
.mini-row:last-child { border-bottom: none; }
.mini-row .pos { font-size: 0.82rem; font-weight: 700; color: var(--fg-muted); }
.mini-row .team { display: flex; align-items: center; gap: 0.45rem; min-width: 0; font-size: 0.88rem; font-weight: 500; }
.mini-row .team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .team img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.mini-row .played { font-size: 0.82rem; text-align: center; color: var(--fg-muted); }
.mini-row .pts { font-size: 0.88rem; text-align: right; font-weight: 700; }
/* Vlastní tým: celý řádek červený, ne jen text. */
.mini-row.own {
  background: var(--red); border-bottom: none;
  padding: 0.8rem 0.6rem; margin-inline: -0.6rem;
}
.mini-row.own .pos { color: rgba(255,255,255,0.9); font-weight: 800; }
.mini-row.own .team { color: var(--on-dark); font-weight: 700; }
.mini-row.own .played { color: rgba(255,255,255,0.85); }
.mini-row.own .pts { color: var(--on-dark); font-weight: 800; }

.side-links { display: flex; flex-direction: column; }
.side-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding-block: 0.7rem; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem;
}
.side-links a:last-child { border-bottom: none; }
.side-links a:hover { color: var(--red); }
.side-links svg { flex-shrink: 0; opacity: 0.4; }
.side-links a:hover svg { opacity: 1; }

.partner-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.partner-strip .slot {
  height: 54px; background: var(--surface); display: grid; place-items: center;
  font-size: 0.7rem; color: var(--fg-faint); font-weight: 600; padding: 0.4rem;
}
.partner-strip .slot img { max-height: 42px; max-width: 100%; object-fit: contain; }

/* ---------- Tabulka soutěže ---------- */
.table-card { border: 1px solid var(--border); background: var(--bg); }
.table-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--border);
}
.table-head h2 { font-size: 1.4rem; }
.table-head .source { font-size: 0.72rem; color: var(--fg-muted); margin-top: 2px; }
.table-wrap { overflow-x: auto; }
table.league { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.league th, table.league td { padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--border-soft); }
table.league th {
  text-align: center; font-family: var(--font-sans); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700;
  border-bottom: 1px solid var(--border);
}
table.league th:nth-child(2), table.league td:nth-child(2) { text-align: left; }
table.league td { text-align: center; font-variant-numeric: tabular-nums; }
table.league td:first-child { font-weight: 700; color: var(--fg-muted); }
table.league .team-cell { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
table.league .team-cell img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
table.league .team-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.league td.pts { font-weight: 800; }
table.league tr.own { background: var(--red); }
table.league tr.own td { color: var(--on-dark); border-bottom-color: var(--red); }
table.league tr.own td:first-child { color: rgba(255,255,255,0.9); font-weight: 800; }
table.league tr.own td.pts { color: var(--on-dark); }
@media (max-width: 640px) { .hide-sm { display: none; } }
@media (max-width: 860px) { .hide-md { display: none; } }

/* ---------- Článek ---------- */
.article { max-width: 46rem; margin-inline: auto; padding-block: 2.5rem 3.5rem; }
.article h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.06; margin-block: 0.6rem 1.4rem; text-wrap: balance; }
.article .cover { aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; margin-bottom: 2rem; position: relative; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article .lead { font-size: 1.15rem; line-height: 1.6; color: #4B5563; margin-bottom: 1.75rem; padding-left: 1rem; border-left: 3px solid var(--red); }
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted);
}
.back-link:hover { color: var(--red); }

.prose { font-size: 1.05rem; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-block: 1.15rem; }
.prose h2 { font-size: 1.75rem; margin-block: 2.25rem 0.8rem; }
.prose h3 { font-size: 1.35rem; margin-block: 1.75rem 0.6rem; }
.prose img { margin-block: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-block: 0.4rem; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 1.75rem 0; padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--red); font-size: 1.15rem; color: #4B5563;
}
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.75rem; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.6rem; }

/* ---------- Partneři ---------- */
.partner-grid { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2rem 1.5rem; border: 1px solid var(--border); background: var(--bg);
}
.partner:hover { border-color: var(--red); box-shadow: var(--shadow-lift); }
.partner img { max-height: 8rem; object-fit: contain; }
.partner .placeholder {
  width: 6rem; height: 6rem; display: grid; place-items: center; background: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--fg-faint);
}
.partner .name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-align: center;
}
.partner:hover .name { color: var(--red); }

/* ---------- Kontakty ---------- */
.contact-grid { display: grid; gap: 1.5rem; max-width: 56rem; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { padding: 1.75rem; border: 1px solid var(--border); }
.contact-card h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.contact-card p { color: var(--fg-muted); font-size: 0.95rem; margin: 0; line-height: 1.7; }
.contact-card ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-card ul a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.contact-card ul a:hover { color: var(--red); }

/* ---------- Stránkování ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 3rem; }
.pagination .page-info { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }

/* ---------- Tlačítka a formuláře ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.6rem 1.35rem; border: 2px solid var(--red);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  background: var(--red); color: var(--on-dark); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--on-dark); }
.btn.outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn.outline:hover { background: var(--surface); border-color: var(--navy); color: var(--fg); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.btn.dark:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.danger { background: transparent; border-color: #E6B4B4; color: var(--red-dark); }
.btn.danger:hover { background: #FDF2F2; border-color: var(--red); }
.btn.small { min-height: 36px; padding: 0.35rem 0.85rem; font-size: 0.72rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.field { margin-bottom: 1.35rem; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.field .hint { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.3rem; }
input[type="text"], input[type="email"], input[type="password"],
input[type="datetime-local"], input[type="url"], select, textarea {
  width: 100%; min-height: 44px; padding: 0.55rem 0.8rem; font: inherit; font-size: 0.98rem;
  color: var(--fg); background: var(--bg); border: 1px solid var(--border);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
textarea { resize: vertical; min-height: 9rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; line-height: 1.6; }
.checkbox { display: flex; align-items: center; gap: 0.6rem; }
.checkbox input { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--red); }
.checkbox label { margin: 0; cursor: pointer; }

.flash { padding: 0.85rem 1.1rem; margin-bottom: 1.5rem; font-size: 0.92rem; border-left: 3px solid; }
.flash.error { background: #FDF2F2; color: #9B1C1C; border-color: var(--red); }
.flash.ok { background: #F0FAF4; color: #1B6B3E; border-color: #2FA664; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--fg-muted); font-size: 0.95rem; }

/* ---------- Patička ---------- */
.site-footer { margin-top: 5rem; background: var(--navy-deep); color: var(--on-dark-muted); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
@media (min-width: 620px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-grid > * { min-width: 0; }
.site-footer .brand-name { color: var(--on-dark); }
.footer-about { font-size: 0.9rem; line-height: 1.6; color: #7D8798; max-width: 20rem; }
.site-footer h4 {
  font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #5A6478; font-weight: 700; margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer ul a { font-size: 0.9rem; color: var(--on-dark-muted); }
.site-footer ul a:hover { color: var(--red); }
.social { display: flex; gap: 0.6rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,0.07); color: var(--on-dark); }
.social a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.2rem; font-size: 0.78rem; color: #5A6478;
}

/* ---------- Administrace ---------- */
.admin-body { background: var(--surface); }
.admin-header { background: var(--navy-deep); color: var(--on-dark); }
.admin-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.admin-header a { color: var(--on-dark); }
.admin-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; text-transform: uppercase; }
.admin-brand span { color: var(--red); }
.admin-header nav { display: flex; gap: 1.5rem; }
.admin-header nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted);
}
.admin-header nav a:hover { color: var(--on-dark); }
.admin-user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: #7D8798; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }

.tiles { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { padding: 1.4rem 1.5rem; background: var(--bg); border: 1px solid var(--border); }
.tile:hover { border-color: var(--red); }
.tile .num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.tile .label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; margin-top: 0.35rem; }

table.admin { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--bg); }
table.admin th, table.admin td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-soft); text-align: left; }
table.admin th {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700; border-bottom: 1px solid var(--border);
}
table.admin td.actions { text-align: right; white-space: nowrap; }
table.admin td.actions form { display: inline; }
.state {
  display: inline-block; padding: 0.2rem 0.6rem; font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.state.published { background: #E7F6EE; color: #1B6B3E; }
.state.draft { background: var(--surface); color: var(--fg-muted); }

.login-screen { flex: 1; display: grid; place-items: center; padding: 1.5rem; background: var(--navy-deep); }
.login-box { width: 100%; max-width: 25rem; background: var(--bg); padding: 2.25rem; box-shadow: var(--shadow-hero); }
.login-box h1 { font-size: 1.6rem; margin-block: 1.5rem 1.5rem; }
.login-box .brand-name { font-size: 1.4rem; }

.form-grid { display: grid; gap: 2rem; }
@media (min-width: 1050px) { .form-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.form-grid > * { min-width: 0; }
.form-panel { background: var(--bg); border: 1px solid var(--border); padding: 1.6rem; }
.preview-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface); margin-bottom: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
