/* ==========================================================================
   DHZ Stupava – Prístupný statický štýl (WCAG 2.1/2.2 AA, EN 301 549)
   ========================================================================== */

:root {
  --bg-page: #f7f7f8;
  --bg-surface: #ffffff;
  --bg-muted: #eef0f3;
  --bg-header: #16191d;
  --bg-footer: #121518;

  --text-main: #1a1d21;
  --text-muted: #4b525c;
  --text-inverse: #ffffff;
  --text-inverse-muted: #d5dbe2;

  --brand-red: #b31b1b;
  --brand-red-dark: #8e1212;
  --brand-red-soft: #fdecec;
  --brand-gold: #c98a00;

  --border-color: #cbd2d9;
  --focus-color: #0047ab;
  --focus-ring: 3px solid var(--focus-color);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.65;
  --max-width: 1160px;
  --radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  line-height: var(--line-height-base);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--text-main);
  background-color: var(--bg-page);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  background-color: var(--brand-red-dark);
  color: var(--text-inverse);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
  outline: var(--focus-ring);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.site-header {
  background-color: var(--bg-header);
  color: var(--text-inverse);
  border-bottom: 4px solid var(--brand-red);
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text-inverse);
  text-decoration: none;
}

.brand-logo {
  width: 68px;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 3px;
}

.brand-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.brand-motto {
  display: block;
  font-size: 0.92rem;
  color: var(--text-inverse-muted);
  font-style: italic;
}

.primary-nav {
  background-color: #1f242b;
  border-top: 1px solid #2e3540;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-list a {
  display: inline-block;
  padding: 12px 14px;
  min-height: 44px;
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}

.nav-list a:hover {
  background-color: #2b323c;
  border-bottom-color: #f3b3b3;
}

.nav-list a[aria-current="page"] {
  background-color: var(--brand-red-dark);
  color: var(--text-inverse);
  border-bottom-color: #ffffff;
}

.site-main {
  padding: 36px 0 56px;
}

.page-hero {
  background: linear-gradient(135deg, #1b2026 0%, #2d1416 100%);
  color: var(--text-inverse);
  padding: 36px 28px;
  border-radius: var(--radius);
  border-left: 6px solid var(--brand-red);
  margin-bottom: 36px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

.hero-motto {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffd6d6;
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 70ch;
  color: var(--text-inverse-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--brand-red);
  color: var(--text-inverse);
  border-color: var(--brand-red);
}

.btn-primary:hover {
  background-color: var(--brand-red-dark);
  border-color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-inverse);
  border-color: var(--text-inverse);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.text-link {
  color: var(--brand-red-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--brand-red);
}

.section-block {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.section-header h1,
.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-main);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.card h3 {
  margin: 18px 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.notice-box {
  background-color: var(--brand-red-soft);
  border: 1px solid #e0a3a3;
  border-left: 5px solid var(--brand-red-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}

.notice-title {
  display: block;
  font-weight: 700;
  color: var(--brand-red-dark);
  margin-bottom: 6px;
}

.media-placeholder {
  background-color: var(--bg-muted);
  border: 2px dashed #6c7582;
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.media-placeholder strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 4px;
}

.clean-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.clean-list li {
  margin-bottom: 6px;
}

.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-inverse);
  padding: 36px 0 24px;
  border-top: 4px solid var(--brand-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  color: var(--text-inverse-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: #ffd6d6;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #2b313a;
  padding-top: 18px;
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 600px) {
  .brand-logo {
    width: 56px;
  }

  .page-hero {
    padding: 24px 18px;
  }

  .card {
    padding: 18px;
  }
}

.poster-figure {
  margin: 16px 0 0;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px;
}

.poster-figure img {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.poster-figure figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
}

.red-info-banner {
  display: block;
  width: 100%;
  background-color: var(--brand-red);
  color: var(--text-inverse);
  text-decoration: none;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 2px solid var(--brand-red-dark);
  transition: background-color 0.15s ease;
}

.red-info-banner:hover,
.red-info-banner:focus-visible {
  background-color: var(--brand-red-dark);
  color: var(--text-inverse);
}

.red-info-banner h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--text-inverse);
}

.red-info-banner p {
  margin: 0;
  color: var(--text-inverse);
}
