/* ===== Křižovatky mimo úroveň Prahy — global styles ===== */

:root {
  --primary: #1E3D7C;
  --primary-light: #2D5BA8;
  --primary-bg: #F4F7FB;
  --primary-tint: rgba(30, 61, 124, 0.08);

  --text: #1A1A1A;
  --text-muted: #5F6B7A;
  --text-faint: #94A0AE;

  --bg: #FFFFFF;
  --bg-alt: #FAFBFC;
  --border: rgba(30, 61, 124, 0.15);
  --border-strong: rgba(30, 61, 124, 0.30);

  --shadow-sm: 0 1px 2px rgba(30, 61, 124, 0.05);
  --shadow-md: 0 2px 8px rgba(30, 61, 124, 0.08);
  --shadow-lg: 0 4px 24px rgba(30, 61, 124, 0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1 { font-size: 32px; font-weight: 500; line-height: 1.2; }
h2 { font-size: 22px; font-weight: 500; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 500; }
p  { font-size: 15px; }

/* ===== Navigation ===== */

.nav {
  background: var(--primary);
  border-bottom: 1px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  color: white;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 500;
  font-size: 15px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; color: white; }
.nav-logo .logo-mark {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.15s;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  text-decoration: none;
}
.nav-links a.active {
  background: white;
  color: var(--primary);
}

@media (max-width: 800px) {
  .nav-inner { padding: 8px 16px; flex-wrap: wrap; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav-links a { padding: 5px 10px; font-size: 13px; }
}

/* ===== Layout ===== */

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}
main.no-pad { padding: 0; max-width: none; }

.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  color: var(--primary);
  margin-bottom: 8px;
}
.page-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 700px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-light);
  text-decoration: none;
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--primary-tint);
  text-decoration: none;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ===== Cards ===== */

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.15s;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card-img {
  aspect-ratio: 1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8%;
}
.card-img.cover img {
  object-fit: cover;
  padding: 0;
}
.card-body { padding: 12px 14px; }
.card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.card-meta {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* ===== Grid layouts ===== */

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 800px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Tags / pills ===== */

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-tint);
  color: var(--primary);
  white-space: nowrap;
}
.pill.muted {
  background: rgba(0,0,0,0.05);
  color: var(--text-muted);
}

/* ===== Footer ===== */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 24px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 13px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Utility ===== */

.center { text-align: center; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
.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;
}
