/* ==========================================================================
   Jozef Kanuščák — kandidát na primátora mesta Lipany
   Farebnosť: dôveryhodná modrá (v duchu KDH), biela, jemné zlaté akcenty
   ========================================================================== */

:root {
  --navy-900: #071A3C;
  --navy-800: #0C2A5E;
  --navy-700: #103574;
  --navy-600: #14428F;
  --navy-500: #1B54B0;
  --blue-400: #2E6FD6;
  --blue-200: #A9C6F0;
  --blue-050: #EEF3FC;

  --gold-600: #A9822F;
  --gold-500: #C99A3B;
  --gold-100: #F6EDD9;

  --ink:        #12172B;
  --ink-soft:   #46506B;
  --ink-mute:   #6B7590;
  --line:       #DEE4F0;
  --line-soft:  #EDF1F8;
  --bg:         #FFFFFF;
  --bg-alt:     #F6F8FC;

  --ok-bg:   #E9F7EF;
  --ok-fg:   #1B6B43;
  --err-bg:  #FDECEC;
  --err-fg:  #A32020;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(7,26,60,.06), 0 2px 8px rgba(7,26,60,.05);
  --shadow-md: 0 4px 12px rgba(7,26,60,.08), 0 12px 32px rgba(7,26,60,.08);
  --shadow-lg: 0 10px 24px rgba(7,26,60,.10), 0 28px 64px rgba(7,26,60,.12);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--blue-400); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.18; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; color: var(--navy-900); }
.logo:hover { color: var(--navy-900); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.015em; color: var(--navy-900);
}
.logo-text small {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
  font-size: .72rem; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
}
/* Zlatá linka pred podtitulkom nahrádza pôvodnú značku */
.logo-text small::before {
  content: ""; width: 18px; height: 2px; flex: none;
  background: var(--gold-500); border-radius: 2px;
}
.logo:hover .logo-text strong { color: var(--navy-600); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: 9px 13px; border-radius: 8px;
  font-size: .935rem; font-weight: 500; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.main-nav ul a:hover { background: var(--blue-050); color: var(--navy-700); }
.main-nav ul a.is-active { color: var(--navy-700); font-weight: 600; background: var(--blue-050); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 10px;
  font-family: var(--font-sans); font-size: .97rem; font-weight: 600; line-height: 1;
  cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-600); color: #fff; box-shadow: 0 2px 10px rgba(20,66,143,.28); }
.btn-primary:hover { background: var(--navy-700); color: #fff; box-shadow: 0 6px 18px rgba(20,66,143,.32); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--blue-200); }
.btn-ghost:hover { background: var(--blue-050); color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--blue-050); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.03rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(46,111,214,.30), transparent 62%),
    linear-gradient(158deg, var(--navy-900) 0%, var(--navy-700) 52%, var(--navy-600) 100%);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center;
  /* Pozor: skratka `padding` by prebila padding-inline z .wrap — preto padding-block. */
  padding-block: clamp(60px, 8vw, 104px) clamp(64px, 8vw, 108px);
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--blue-200); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 11px; margin-bottom: 22px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  border-radius: 100px; font-size: .8rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: #fff;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); flex: none; }
.hero-lead { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 56ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-stats .stat strong { display: block; font-family: var(--font-serif); font-size: 2rem; line-height: 1.1; color: #fff; }
.hero-stats .stat span { font-size: .84rem; color: rgba(255,255,255,.66); }

.hero-figure { position: relative; }
.hero-portrait {
  position: relative; width: 100%;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
}
.hero-portrait picture, .hero-portrait img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4/5; object-fit: cover; object-position: center center;
}
.hero-badge {
  position: absolute; left: -22px; bottom: 34px;
  background: #fff; color: var(--navy-800);
  padding: 15px 20px; border-radius: 12px; box-shadow: var(--shadow-md);
  max-width: 250px;
}
.hero-badge strong { display: block; font-family: var(--font-serif); font-size: 1.55rem; color: var(--navy-700); line-height: 1.1; }
.hero-badge span { font-size: .82rem; color: var(--ink-mute); }

/* ---------- Sekcie ---------- */
.section { padding: clamp(58px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-800); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy-500);
}
.section-navy .eyebrow { color: var(--blue-200); }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 0; }
.section-navy .section-head p { color: rgba(255,255,255,.78); }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px;
  border-radius: 12px; background: var(--blue-050); color: var(--navy-600);
  font-size: 1.35rem;
}
.card-num {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700;
  color: var(--navy-500); background: var(--blue-050);
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 18px;
}

/* ---------- Program / vízia ---------- */
.program-list { display: grid; gap: 18px; }
.program-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.program-item[open] { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.program-item summary {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 28px; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: clamp(1.12rem, 1.7vw, 1.32rem); font-weight: 700; color: var(--navy-900);
}
.program-item summary::-webkit-details-marker { display: none; }
.program-item summary .p-num {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: var(--blue-050); color: var(--navy-600);
  font-family: var(--font-sans); font-size: .92rem; font-weight: 700;
}
.program-item summary .p-title { flex: 1; }
.program-item summary .p-claim {
  display: block; font-family: var(--font-sans); font-size: .88rem; font-weight: 500;
  color: var(--ink-mute); margin-top: 3px;
}
.program-item summary .p-chevron { flex: none; color: var(--navy-500); transition: transform .2s ease; }
.program-item[open] summary .p-chevron { transform: rotate(180deg); }
.program-body { padding: 0 28px 28px 86px; color: var(--ink-soft); }
.program-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.program-body ul li { position: relative; padding-left: 30px; }
.program-body ul li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500);
}

/* ---------- Časová os ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--blue-200), var(--line-soft));
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--navy-500);
}
.timeline-period {
  display: inline-block; margin-bottom: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-500);
}
.timeline-item h3 { font-size: 1.16rem; margin-bottom: .3em; }
.timeline-item p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }

/* ---------- Články ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/10; background: var(--blue-050); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-ph { display: grid; place-items: center; height: 100%; color: var(--blue-200); }
.post-thumb-ph svg { opacity: .85; }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .8rem; color: var(--ink-mute); }
.tag {
  display: inline-block; padding: 4px 11px; border-radius: 100px;
  background: var(--blue-050); color: var(--navy-600);
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.tag-gold { background: var(--gold-100); color: var(--gold-600); }
.post-card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.post-card h3 a { color: var(--navy-900); }
.post-card h3 a:hover { color: var(--navy-600); }
.post-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.post-more { font-weight: 600; font-size: .92rem; color: var(--navy-600); }

/* Detail článku */
.article-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 68px) 0 clamp(32px, 5vw, 52px); }
.article-hero .wrap { max-width: 820px; }
.article-hero h1 { margin-bottom: .35em; }
.article-lead { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 0; }
.article-figure { max-width: 980px; margin: -30px auto 0; padding-inline: 22px; }
.article-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.article-body { max-width: 720px; margin-inline: auto; padding: clamp(40px, 5vw, 60px) 22px; font-size: 1.08rem; }
.article-body h2 { margin-top: 1.8em; font-size: 1.62rem; }
.article-body h3 { margin-top: 1.5em; font-size: 1.3rem; }
.article-body ul li, .article-body ol li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-serif); font-size: 1.22rem; color: var(--navy-800);
}
.article-body img { border-radius: var(--radius-sm); margin: 1.6em 0; }
.article-nav { max-width: 720px; margin: 0 auto; padding: 0 22px clamp(50px, 6vw, 70px); }

/* ---------- Citát ---------- */
.quote-block { max-width: 860px; margin-inline: auto; text-align: center; }
.quote-block blockquote {
  margin: 0 0 22px; font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.42; color: #fff;
}
.quote-block .quote-mark { font-family: var(--font-serif); font-size: 3.4rem; line-height: 1; color: var(--gold-500); display: block; margin-bottom: 8px; }
.quote-author { font-size: .92rem; color: rgba(255,255,255,.7); }

/* ---------- CTA pás ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff; border-radius: 18px; padding: clamp(38px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 34px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 0; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- Formuláre ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .89rem; font-weight: 600; color: var(--navy-800); }
.field .req { color: #C0392B; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 12px 15px; font: inherit; font-size: .98rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(46,111,214,.15);
}
.field .hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--ink-mute); }
.checks { display: grid; gap: 11px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.check input { margin-top: 4px; flex: none; width: 17px; height: 17px; accent-color: var(--navy-600); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .96rem; }
.alert-ok  { background: var(--ok-bg);  color: var(--ok-fg);  border: 1px solid rgba(27,107,67,.22); }
.alert-err { background: var(--err-bg); color: var(--err-fg); border: 1px solid rgba(163,32,32,.2); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 46px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 15px; }
.contact-list .ci {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--navy-600); border-radius: 10px; font-size: 1.05rem;
}
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); font-weight: 700; }
.contact-list a { font-size: 1.04rem; font-weight: 500; }

/* ---------- Stránkovanie ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 46px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .94rem; font-weight: 600; color: var(--ink-soft); background: #fff;
}
.pagination a:hover { border-color: var(--blue-200); background: var(--blue-050); color: var(--navy-700); }
.pagination .is-current { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }

/* ---------- Odpočet ---------- */
.countdown { display: flex; flex-wrap: wrap; gap: 14px; }
.countdown .cd-box {
  min-width: 92px; padding: 16px 14px; text-align: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
}
.countdown .cd-box strong { display: block; font-family: var(--font-serif); font-size: 2.1rem; line-height: 1; color: #fff; }
.countdown .cd-box span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.66); }

/* ---------- Stránkový hero ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: clamp(52px, 7vw, 88px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 62ch; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.82); }
.breadcrumb a:hover { color: #fff; }

/* ---------- O mne ---------- */
.bio-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.bio-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--blue-050); }
.bio-photo picture, .bio-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4/5; object-fit: cover; object-position: center center;
}
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; font-size: .95rem; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.facts li:last-child { border-bottom: 0; }
.facts strong { flex: none; width: 130px; color: var(--ink-mute); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Galéria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--blue-050); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Päta ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: clamp(46px, 6vw, 70px) 0 30px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-name { font-family: var(--font-serif); font-size: 1.22rem; color: #fff; margin-bottom: .25em; font-weight: 700; }
.footer-claim { color: var(--blue-200); margin-bottom: .8em; font-size: .93rem; }
.footer-note { font-size: .88rem; color: rgba(255,255,255,.56); margin-bottom: 0; }
.site-footer h3 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255,255,255,.72); }
.footer-col a:hover { color: #fff; }
.footer-social { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--blue-200); }
.countdown-mini { margin-top: 10px; color: #fff; }
.countdown-mini strong { font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold-500); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }
.footer-legal a { color: rgba(255,255,255,.62); }

/* ---------- Otázky a video odpovede ---------- */
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--navy-900); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); margin: 26px 0 34px;
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-thumb { position: relative; display: block; }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; display: grid; place-items: center;
  background: rgba(7,26,60,.78); color: #fff; border-radius: 50%;
  font-size: 1.15rem; padding-left: 4px;
  transition: background .2s ease, transform .2s ease;
}
.post-card:hover .play-badge { background: var(--navy-600); transform: translate(-50%, -50%) scale(1.08); }

.q-original {
  margin: 0 0 8px; padding: 24px 28px;
  background: var(--blue-050); border-left: 4px solid var(--navy-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.q-original-label {
  display: block; margin-bottom: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy-500);
}
.q-original p { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.5; color: var(--navy-900); }
.q-original footer { margin-top: 12px; font-size: .88rem; color: var(--ink-mute); }

.q-list { display: grid; gap: 14px; }
.q-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; transition: border-color .2s ease, box-shadow .2s ease;
}
.q-item:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.q-vote-form { flex: none; margin: 0; }
.q-vote {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 58px; padding: 10px 8px; cursor: pointer;
  background: var(--blue-050); border: 1px solid transparent; border-radius: 10px;
  font: inherit; color: var(--navy-600);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.q-vote:hover { background: #fff; border-color: var(--blue-200); }
.q-vote.is-voted { background: var(--navy-600); color: #fff; cursor: default; }
.q-vote-arrow { font-size: .8rem; line-height: 1; }
.q-vote-count { font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.q-body { min-width: 0; }
.q-text { margin: 0 0 10px; font-size: 1.02rem; color: var(--ink); }
.q-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: .82rem; color: var(--ink-mute); }

/* ---------- Odpočet do volieb ---------- */
.election-strip {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff; padding: 18px 0;
}
.election-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  align-items: center; justify-content: center; text-align: center;
}
.election-strip strong { font-family: var(--font-serif); font-size: 1.35rem; color: var(--gold-500); }
.election-strip span { font-size: .95rem; color: rgba(255,255,255,.84); }
.election-strip a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pomocné ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 30px; } .mt-4 { margin-top: 44px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.narrow { max-width: 760px; margin-inline: auto; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-mute); }

/* ---------- Responzívne ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { max-width: 400px; }
  .hero-badge { left: auto; right: -12px; }
  .bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .bio-photo { max-width: 380px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 22px 26px; box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-cta { margin-top: 14px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .program-body { padding-left: 28px; }
  .program-item summary { padding: 20px; gap: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-badge { display: none; }
  .facts li { flex-direction: column; gap: 3px; }
  .facts strong { width: auto; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
}

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

/* ---------- Tlač ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
}

/* ---------- Otázky: mobil ---------- */
@media (max-width: 560px) {
  .q-item { gap: 14px; padding: 16px 18px; }
  .q-vote { min-width: 50px; padding: 8px 6px; }
  .q-original { padding: 18px 20px; }
  .q-original p { font-size: 1.06rem; }
  .election-strip .wrap { flex-direction: column; gap: 6px; }
}

/* ---------- Jednoduchá tabuľka v texte ---------- */
.tbl-simple { overflow-x: auto; margin: 22px 0 18px; }
.tbl-simple table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl-simple th {
  text-align: left; padding: 11px 14px; background: var(--blue-050);
  color: var(--navy-800); font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 700; white-space: nowrap;
}
.tbl-simple td { padding: 12px 14px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.tbl-simple tr:last-child td { font-weight: 600; color: var(--navy-800); }

/* Odkaz v karte na úvodnej stránke */
.card .post-more { display: inline-block; margin-top: 16px; }

/* ==========================================================================
   Doladenie pre telefóny
   ========================================================================== */

@media (max-width: 1024px) {
  /* Portrét na tablete vycentrovať, nech nevisí pri kraji */
  .hero-figure { margin-inline: auto; }
}

@media (max-width: 880px) {
  /* Číslo okruhu a šípka majú sedieť na prvom riadku názvu, nie v jeho strede */
  .program-item summary { align-items: flex-start; }
  .program-item summary .p-chevron { margin-top: 6px; }
  .program-item summary .p-num { margin-top: 2px; }
}

@media (max-width: 640px) {
  /* Fotka má biele pozadie. Cez celú šírku by na tmavomodrom hero pôsobila
     ako veľký biely blok, preto ju na telefóne zmenšíme a vycentrujeme. */
  .hero-figure { max-width: 280px; margin-inline: auto; }
  .hero-portrait { border-radius: 14px; }
  .bio-photo { max-width: 280px; margin-inline: auto; border-radius: 14px; }

  /* Čísla v hero zostanú v jednom rade */
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; align-items: end;
  }
  .hero-stats .stat strong { font-size: 1.6rem; }
  .hero-stats .stat span { font-size: .76rem; line-height: 1.35; display: block; }

  /* Pruh s odpočtom nech drží dva čitateľné riadky */
  .election-strip { padding: 14px 0; }
  .election-strip .wrap { gap: 4px; }
  .election-strip span { font-size: .88rem; line-height: 1.45; }
  .election-strip strong { font-size: 1.15rem; }

  /* Safari na iPhone približuje stránku, keď má pole menej ako 16 px */
  .field input[type=text], .field input[type=email], .field input[type=tel],
  .field select, .field textarea { font-size: 16px; }

  .article-body { font-size: 1.02rem; }
  .article-body h2 { font-size: 1.4rem; }
  .article-body h3 { font-size: 1.16rem; }
  .article-body blockquote { padding-left: 18px; font-size: 1.1rem; }

  .facts strong { font-size: .8rem; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 18px; }
  .hero-stats { gap: 12px; }
  .hero-stats .stat strong { font-size: 1.45rem; }
  .hero-stats .stat span { font-size: .72rem; }
  .program-item summary { padding: 18px 16px; gap: 12px; }
  .program-body { padding: 0 16px 22px 16px; }
  .card { padding: 24px 20px; }
  .form-card { padding: 22px 18px; }
}

/* Ovládacie prvky musia mať na dotyk aspoň 44 px */
@media (pointer: coarse) {
  .main-nav ul a { min-height: 44px; display: flex; align-items: center; }
  .q-vote { min-height: 52px; }
  .pagination a, .pagination span { min-width: 44px; height: 44px; }
}
