/* ODS Vrchlabí. Barvy dle grafického manuálu ODS (ods.cz/o-nas/grafika):
   #034ea2 plná modrá, gradient #1e398d → #009edb. Mobile-first — base
   styly jsou pro mobil, media queries přidávají větší obrazovky. */

:root {
  --ods-blue: #034ea2;
  --ods-blue-dark: #1e398d;
  --ods-cyan: #009edb;
  --ods-gradient: linear-gradient(70deg, var(--ods-blue-dark) 0%, var(--ods-cyan) 100%);

  --ink: #10192b;
  --ink-soft: #4b5670;
  --ink-faint: #7c879c;

  --bg: #f4f7fc;
  --card-bg: #ffffff;
  --border: #dce4f2;

  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 10px rgba(3, 78, 162, 0.08);
  --shadow-md: 0 10px 26px rgba(3, 78, 162, 0.14);
  --shadow-lg: 0 18px 40px rgba(3, 78, 162, 0.22);

  --container: 1100px;
  --header-h: 64px;

  color-scheme: light;
}

/* ---------- Reset & základ ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ods-blue); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ods-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ods-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: #ffffff88;
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--ods-blue);
}
.btn-outline:hover { border-color: var(--ods-blue); box-shadow: var(--shadow-sm); }

.btn-event {
  background: #ffb703;
  color: #1f1400;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.btn-event:hover { background: #ffc933; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); transform: translateY(-1px); }

/* ---------- Header / navigace ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ods-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo .logo-img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand .logo .logo-img { height: 40px; }
.logo .logo-text strong { color: var(--ods-blue); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
}
.nav-toggle .mdi { pointer-events: none; }

.main-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 12px 20px 40px;
  z-index: 190;
}
.main-nav.is-open { transform: translateX(0); }
.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.main-nav a.is-active { color: var(--ods-blue); }
.main-nav a:hover { background: var(--bg); }
.nav-cta { margin-top: 18px; }
.nav-cta .btn { width: 100%; justify-content: center; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    padding: 0;
    background: transparent;
    overflow: visible;
  }
  .main-nav ul { flex-direction: row; gap: 4px; }
  .main-nav a { border-bottom: none; padding: 10px 14px; }
  .nav-cta { margin: 0 0 0 8px; }
  .main-nav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ods-gradient);
  color: #fff;
  padding: 52px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin-bottom: 14px;
}
.hero h1 .hero-subline {
  display: block;
  font-size: 0.6em;
  font-weight: 700;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
}
.hero p.lead {
  color: rgba(255,255,255,.92);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Volební nálepka "Volte číslo 1" ---------- */
.election-sticker {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  border: 3px dashed var(--ods-blue);
  box-shadow: 0 10px 24px rgba(3, 12, 30, 0.28), 0 0 0 5px rgba(255, 255, 255, 0.22);
  transform: rotate(-9deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  transition: transform .2s ease;
}
.election-sticker:hover { transform: rotate(-3deg) scale(1.04); }
.election-sticker .sticker-label {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.election-sticker .sticker-number {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--ods-blue);
}
.election-sticker .sticker-sub {
  font-weight: 700;
  font-size: 0.5rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ods-cyan);
}

@media (min-width: 640px) {
  .election-sticker {
    width: 116px;
    height: 116px;
    top: 24px;
    right: 28px;
  }
  .election-sticker .sticker-label { font-size: 0.7rem; }
  .election-sticker .sticker-number { font-size: 2.6rem; }
  .election-sticker .sticker-sub { font-size: 0.62rem; }
}

.page-hero {
  background: var(--ods-gradient);
  color: #fff;
  padding: 40px 0 46px;
}
.page-hero .kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 60ch; margin-bottom: 0; }

/* ---------- Rozcestník (hub karty na hlavní stránce) ---------- */
.hub {
  padding: 44px 0 20px;
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hub-card:hover, .hub-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ods-cyan);
}
.hub-card .hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ods-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.hub-card h3 { margin-bottom: 4px; font-size: 1.2rem; }
.hub-card p { color: var(--ink-soft); margin-bottom: 8px; font-size: 0.95rem; }
.hub-card .hub-link {
  font-weight: 700;
  color: var(--ods-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}
.hub-card .hub-link .mdi { transition: transform .18s ease; }
.hub-card:hover .hub-link .mdi { transform: translateX(4px); }

@media (min-width: 640px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Sekce obecně ---------- */
.section { padding: 40px 0; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head .eyebrow {
  color: var(--ods-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .05em;
  margin-bottom: 6px;
  display: block;
}
.section-head p { color: var(--ink-soft); }

.strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.strip-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.strip h2 { margin-bottom: 6px; }
.strip p { color: var(--ink-soft); margin-bottom: 0; max-width: 52ch; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.social-btn:hover { border-color: var(--ods-blue); color: var(--ods-blue); }

@media (min-width: 760px) {
  .strip-inner { flex-direction: row; align-items: center; }
}

/* ---------- Volební program: dlaždice ---------- */
.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}

.program-tile {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  isolation: isolate;
}
.program-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ods-gradient);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: -1;
}
.program-tile:hover, .program-tile:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.program-tile:hover::before, .program-tile:focus-visible::before { opacity: 1; }
.program-tile:hover .program-icon,
.program-tile:focus-visible .program-icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.program-tile:hover h3, .program-tile:focus-visible h3,
.program-tile:hover .program-sub, .program-tile:focus-visible .program-sub,
.program-tile:hover .program-cta, .program-tile:focus-visible .program-cta {
  color: #fff;
}
.program-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(3, 78, 162, 0.08);
  color: var(--ods-blue);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transition: background .18s ease, color .18s ease;
}
.program-tile h3 { font-size: 1.08rem; margin-bottom: 0; transition: color .18s ease; }
.program-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  transition: color .18s ease;
}
.program-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ods-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .18s ease;
}

/* ---------- Modal (detail bodu programu) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  padding: 0;
}
.modal-overlay.is-open { display: flex; }
.modal-panel {
  background: #fff;
  width: 100%;
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  padding: 26px 22px 34px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-up .22s ease;
}
@keyframes modal-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--ink-soft);
}
.modal-close:hover { color: var(--ink); border-color: var(--ods-blue); }
.modal-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--ods-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.modal-panel h2 { margin-bottom: 4px; font-size: 1.4rem; }
.modal-panel .modal-sub { color: var(--ods-blue); font-weight: 600; margin-bottom: 16px; }
.modal-photo {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  max-height: 260px;
  object-fit: cover;
}
.modal-text { color: var(--ink-soft); }

@media (min-width: 700px) {
  .modal-overlay { align-items: center; padding: 24px; }
  .modal-panel { max-width: 560px; border-radius: var(--radius-lg); max-height: 86vh; }
}

/* ---------- Kandidátka ---------- */
.leader-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}

@media (min-width: 640px) {
  .leader-card { margin-bottom: 72px; }
}
.leader-photo {
  width: 110px; height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--ods-cyan);
  flex-shrink: 0;
}
.leader-body { flex: 1; min-width: 0; }
.leader-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ods-blue);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 6px;
}
.leader-card h2 { margin-bottom: 4px; font-size: 1.4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.badge-ods { background: rgba(3,78,162,.1); color: var(--ods-blue); }
.badge-bezpp { background: rgba(75,86,112,.1); color: var(--ink-soft); }
.leader-card p.leader-desc { color: var(--ink-soft); margin-bottom: 0; }

@media (min-width: 620px) {
  .leader-card { flex-direction: row; align-items: flex-start; }
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) { .candidates-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .candidates-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) { .candidates-grid { grid-template-columns: repeat(5, 1fr); } }

.candidate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 10px 14px;
  text-align: center;
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.candidate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--ods-cyan);
}
.candidate-number {
  position: absolute;
  top: 8px; left: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ods-gradient);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.candidate-photo {
  width: 76px; height: 76px;
  border-radius: 8px;
  object-fit: cover;
  margin: 6px auto 10px;
  border: 2px solid var(--border);
}
.candidate-card h3 {
  font-size: .92rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.candidate-card .badge { margin-bottom: 0; font-size: .68rem; padding: 3px 9px; }

/* ---------- Kontakty ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(3,78,162,.08);
  color: var(--ods-blue);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: .95rem; }
.contact-card a:hover { color: var(--ods-blue); }
.todo-note {
  display: inline-block;
  margin-top: 6px;
  font-size: .78rem;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 9px;
  border-radius: 8px;
}

.social-links-large {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-links-large a {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.3rem;
}
.social-links-large a:hover { background: var(--ods-gradient); color: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd8ea;
  padding: 40px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-bottom: 26px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #9fabc7; font-size: .92rem; max-width: 34ch; margin-top: 10px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #cfd8ea; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: .82rem;
  color: #8794b3;
}

/* ---------- Utility ---------- */
.mdi { line-height: 1; }
