/* ==========================================================================
   Branislav Koričanský — kampaňový web, Sereď 2026
   Design system: Minimalism & Swiss Style (civic / public service)
   Typography: Lexend (headings) + Source Sans 3 (body) — "Corporate Trust"
   Všetky farby spĺňajú kontrast WCAG AA (4.5:1) pre text.
/* ==========================================================================
   Lokálne hostované fonty (100% GDPR compliant, bez spojenia s Google)
   ========================================================================== */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/lexend-latin-ext.woff2') format('woff2');
  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: 'Lexend';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/lexend-latin.woff2') format('woff2');
  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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
  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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin.woff2') format('woff2');
  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;
}

:root {
  /* Farby — vysoký kontrast, navy + zelený akcent */
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --accent: #15803D;          /* zelená pre text na svetlom (5.0:1 ✓) */
  --accent-hover: #116330;
  --accent-bright: #4ADE80;   /* zelená na tmavom pozadí */
  --bg: #F8FAFC;
  --bg-alt: #EEF2F7;
  --surface: #FFFFFF;
  --fg: #0F172A;
  --fg-muted: #475569;        /* 7.5:1 na --bg ✓ */
  --border: #E2E8F0;
  --ring: #0369A1;

  /* Typografia */
  --font-heading: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rozostupy — spacious (marketing page) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;
  --space-2xl: 96px;

  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --header-h: 72px;

  /* Emil Kowalski custom curves: silný ease-out pre okamžitú odozvu */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition: 200ms var(--ease-out);
  --transition-fast: 140ms var(--ease-out);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* WCAG 2.2 — fokus nesmie zakryť sticky hlavička */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* --- Fokus: viditeľný na každom ovládacom prvku --- */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
footer.site :focus-visible { outline-color: var(--accent-bright); }

/* --- Preskočiť na obsah (klávesnica / čítačky) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--fg);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); }

/* Ikony */
.icon-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Hlavička
   ========================================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand .num-badge {
  background: var(--accent-bright);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 360px) {
  .brand { font-size: 0.92rem; gap: 8px; }
  .brand-sub { display: none; }
}

nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 12px 16px;
  min-height: 44px;              /* dotykový cieľ 44px */
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition), transform var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  nav.main a:hover { background: rgba(255,255,255,0.1); color: #fff; }
}
nav.main a:active { transform: scale(0.97); }

/* Aktívny stav položky v menu */
nav.main a.is-active {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  nav.main a.is-active:hover {
    background: var(--accent-hover);
    color: #fff !important;
  }
}

.nav-cta {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
  font-weight: 600;
  margin-left: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
  }
}
.nav-cta:active { transform: scale(0.96); }

.nav-cta.is-active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta.is-active:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-toggle:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 860px) {
  nav.main {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  nav.main[hidden] { display: none; }
  nav.main a { width: 100%; }
  .nav-cta { margin-left: 0; margin-top: 8px; justify-content: center; }
  .mobile-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--navy);
  color: #fff;
  padding: var(--space-xl) 0 var(--space-2xl);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  .portrait-card {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
  .hero { padding: var(--space-lg) 0 var(--space-xl); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.14);
  color: var(--accent-bright);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}
.hero h1 span { color: var(--accent-bright); }

.hero .slogan {
  font: 700 1.05rem/1.3 var(--font-heading);
  color: var(--accent-bright);
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-sm);
}

.hero .lead {
  font-size: 1.14rem;
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
  margin: 0 0 var(--space-md);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition-fast), box-shadow var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px -4px rgba(21, 128, 61, 0.45); }
  .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }

.proof {
  margin: var(--space-md) 0 0;
  padding: 16px 20px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-left: 4px solid var(--accent-bright);
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 1.02rem;
  max-width: 56ch;
}
.proof strong { color: var(--accent-bright); font-family: var(--font-heading); }
.proof a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .proof a:hover { color: #fff; }
}

.portrait-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .portrait-card:hover {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
  }
}
.portrait-card img {
  width: 190px;
  height: 190px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 4px solid rgba(255,255,255,0.2);
}
.portrait-card .name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}
.portrait-card .role { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin-top: 6px; line-height: 1.5; }
.portrait-card .role-strong { color: var(--accent-bright); font-weight: 600; display: inline-block; margin-top: 6px; }
.portrait-card .ballot {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.portrait-card .ballot strong {
  background: var(--accent-bright);
  color: var(--navy);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.portrait-card .ballot-banner,
.ballot-banner {
  background: var(--accent-bright);
  color: var(--navy);
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  display: block;
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.35);
  margin: 4px 0;
}

/* --- Trigger pre zoznam ulíc --- */
.ballot-streets-trigger {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-bright);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
  .ballot-streets-trigger:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: var(--accent-bright);
    color: #fff;
  }
}
.ballot-streets-trigger:active {
  transform: scale(0.98);
}

/* --- Modálne okno so zoznamom ulíc --- */
.streets-modal[hidden] {
  display: none !important;
}
.streets-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.streets-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}
.streets-modal-content {
  position: relative;
  background: #ffffff;
  color: var(--fg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.streets-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.streets-modal-close {
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
  .streets-modal-close:hover {
    background: #e2e8f0;
    color: var(--navy);
  }
}
.streets-modal-sub {
  margin: 12px 0 16px;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.streets-search-box {
  margin-bottom: 18px;
}
.streets-search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.streets-search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
  background: #fff;
}
.streets-search-result {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.streets-search-result.is-found {
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.3);
  color: #166534;
  font-weight: 500;
}
.streets-search-result.is-other {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}
.streets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .streets-grid {
    grid-template-columns: 1fr;
  }
  .streets-modal-content {
    padding: 20px 16px;
  }
}
.okrsok-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}
.okrsok-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(21, 128, 61, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.okrsok-place {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.okrsok-streets {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--fg-muted);
}

/* --- Veľké číslo 11 pri portréte --- */
.portrait-wrap { position: relative; display: inline-block; }
.big-number {
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-bright);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  display: grid;
  place-items: center;
  border: 4px solid var(--navy);
  box-shadow: 0 8px 24px -4px rgba(74, 222, 128, 0.4), 0 4px 10px rgba(0,0,0,0.25);
  transition: transform var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .portrait-card:hover .big-number {
    transform: scale(1.05);
  }
}

/* ==========================================================================
   Sekcie
   ========================================================================== */
section { padding: var(--space-xl) 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin: 0 0 var(--space-lg); }
.kicker {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  margin: 0 0 12px;
  color: var(--navy);
  font-weight: 600;
}
.section-head p { color: var(--fg-muted); margin: 0; font-size: 1.05rem; }

/* --- Callout (Ďakujem / Nezávislosť) --- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.callout .icon-svg { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.callout h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--navy); }
.callout p { margin: 0; color: var(--fg-muted); }
.callout + .callout { margin-top: var(--space-sm); }

/* --- Prečo kandidujem --- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .reason:hover {
    border-color: rgba(21, 128, 61, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.07);
  }
}
.reason .icon-svg { width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.reason h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.reason p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }

/* --- O mne --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-md); } }
.about-grid p { margin: 0 0 var(--space-sm); color: var(--fg-muted); }

.stat-list { display: grid; gap: var(--space-sm); align-content: start; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .stat:hover {
    border-color: rgba(21, 128, 61, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.07);
  }
}
.stat .num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 76px;
  line-height: 1.3;
}
.stat .num .icon-svg { width: 30px; height: 30px; }
.stat .label { font-weight: 600; color: var(--navy); }
.stat .desc { color: var(--fg-muted); font-size: 0.95rem; margin-top: 4px; }

/* --- Program karty --- */
.program-head h2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.big-inline {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 12px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: program;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.card-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #64748B;              /* 4.76:1 na bielej ✓ */
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.card:hover .card-num { color: var(--accent); }
@media (max-width: 980px) { .program-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .program-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(21, 128, 61, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
  }
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--navy); font-weight: 600; }
.card p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }
.card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .card a:hover { color: var(--navy); }
}

/* --- Časová os --- */
.timeline { border-left: 2px solid var(--border); padding-left: var(--space-md); display: grid; gap: var(--space-md); }
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-md) - 7px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-item .when {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tl-item h3 { margin: 6px 0 6px; color: var(--navy); font-size: 1.08rem; font-weight: 600; }
.tl-item p { margin: 0; color: var(--fg-muted); }

/* --- Tmavý blok (vízia / kontrast) --- */
.dark-block {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.dark-block .kicker { color: var(--accent-bright); }
.dark-block h3 { margin: 0 0 12px; font-size: 1.35rem; font-weight: 600; }
.dark-block p { color: rgba(255,255,255,0.85); margin: 0; font-size: 1.05rem; }
@media (max-width: 640px) { .dark-block { padding: var(--space-md); } }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: var(--space-md); } }
.two-col ul { margin: 0; padding-left: 22px; color: rgba(255,255,255,0.85); }
.two-col li { margin-bottom: 10px; }
.two-col .col.now h3 { color: #FCA5A5; }
.two-col .col.future h3 { color: var(--accent-bright); }

/* --- Kontakt --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-md); } }

.contact-info { display: grid; gap: var(--space-sm); align-content: start; }
.contact-info .row { display: flex; gap: 14px; align-items: center; }
.contact-info .ic {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-info a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.contact-info a:hover { color: var(--accent); }

form.contact-form { display: grid; gap: var(--space-sm); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  min-height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--fg);
  transition: border-color var(--transition);
}
.field input:hover, .field textarea:hover { border-color: #CBD5E1; }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
form.contact-form button { justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--fg-muted); }

/* --- Pätička --- */
footer.site {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-lg) 0;
  font-size: 0.92rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site a { color: #fff; text-underline-offset: 3px; }

/* ==========================================================================
   Animácie pri scrollovaní (jemné) — vypnuté pri prefers-reduced-motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Kaskádový stagger delay pre prirodzený nástup prvkov v mriežkach */
.program-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.program-grid .reveal:nth-child(2) { transition-delay: 40ms; }
.program-grid .reveal:nth-child(3) { transition-delay: 80ms; }
.program-grid .reveal:nth-child(4) { transition-delay: 120ms; }
.program-grid .reveal:nth-child(5) { transition-delay: 160ms; }
.program-grid .reveal:nth-child(6) { transition-delay: 200ms; }

.reasons .reveal:nth-child(1) { transition-delay: 0ms; }
.reasons .reveal:nth-child(2) { transition-delay: 60ms; }
.reasons .reveal:nth-child(3) { transition-delay: 120ms; }

.stat-list .reveal:nth-child(1) { transition-delay: 0ms; }
.stat-list .reveal:nth-child(2) { transition-delay: 50ms; }
.stat-list .reveal:nth-child(3) { transition-delay: 100ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .stat:hover, .reason:hover { transform: none !important; }
}

/* --- Kontaktný formulár: pasca na roboty a hláška o odoslaní --- */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-stav {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  border-left: 4px solid;
}
.form-stav.is-ok  { background: rgba(21,128,61,0.1);  color: var(--accent);  border-color: var(--accent); }
.form-stav.is-err { background: rgba(185,28,28,0.08); color: #B91C1C; border-color: #B91C1C; }

/* Cookie consent banner */
.cookie-consent[hidden] {
  display: none !important;
}
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 16px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-consent-box {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-consent-box p { margin: 0; font-size: 0.9rem; flex: 1 1 320px; }
.cookie-consent-box a { color: var(--accent-bright); }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  min-height: 40px;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .cookie-btn-ghost:hover { border-color: #fff; }
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn-primary { background: var(--accent-bright); color: var(--navy); }
.cookie-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }

/* --- Modálne okno pre nastavenia cookies --- */
.cookie-modal[hidden] {
  display: none !important;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}
.cookie-modal-content {
  position: relative;
  background: #ffffff;
  color: var(--fg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.cookie-status-badge {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 18px;
}
.cookie-status-badge.is-granted {
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.3);
  color: #166534;
}
.cookie-status-badge.is-denied {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}
.cookie-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.cookie-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.cookie-item-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.cookie-item-badge.badge-required {
  background: #e2e8f0;
  color: #334155;
}
.cookie-item-badge.badge-optional {
  background: rgba(21, 128, 61, 0.12);
  color: var(--accent);
}
.cookie-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    border-color: rgba(21, 128, 61, 0.35);
  }
}
.faq-item summary {
  padding: 18px 28px 18px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item p { margin: 0 0 18px; color: var(--fg-muted); line-height: 1.6; }
