/* =====================================================================
   DIZAJN – farby a písmo sa menia LEN tu, v bloku :root.
   Žltá z billboardov, zelená len ako jemný doplnok. Žiadne čierne ani
   veľké zelené plochy.
   ===================================================================== */
:root {
  --yellow: #f8e005;       /* žltá z billboardov */
  --yellow-soft: #fff7c2;  /* jemná žltá plocha */
  --yellow-tint: #fffbe3;  /* veľmi jemná žltá pre sekciu Voľby */
  --green: #1f7a3d;        /* hlavná zelená – tlačidlá, kruh 1., odpočet */
  --green-dark: #155c2c;   /* tmavšia zelená – hover, nadpisy na žltej */
  --green-soft: #eaf4e2;   /* jemná zelená plocha */
  --ink: #2a3a30;          /* hlavný text – tmavá sivozelená, nie čierna */
  --muted: #56695c;        /* vedľajší text */
  --bg: #ffffff;           /* pozadie */
  --surface: #f8f7f1;      /* striedavé sekcie (teplá svetlá) */
  --line: #e7e5da;         /* čiary a okraje */

  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 74rem;
  --text: 42rem;
  --radius: 14px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(2.5rem, 5vw, 4rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lead { color: var(--muted); max-width: var(--text); font-size: 1.2rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--green); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--ink); cursor: pointer;
  font: 700 1rem/1 var(--font); text-decoration: none; transition: transform .15s, background .15s, color .15s;
}
.btn-dark { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-dark:hover { background: #ffe93d; border-color: #ffe93d; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--yellow); }

/* ---------- Čísla na lístku (ako na billboarde) ---------- */
.nums { display: inline-flex; align-items: center; }
.num {
  display: grid; place-items: center; border-radius: 50%; font-weight: 800;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; flex: none;
}
.num-city { background: #fff; color: var(--green); box-shadow: inset 0 0 0 3px var(--green); }
.num-region { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px var(--yellow); margin-left: -.35em; }
.pill { display: inline-block; padding: .05em .45em .1em; border-radius: .35em; font-weight: 700; }
.pill-city { background: #fff; color: var(--ink); }
.pill-region { background: #fff; color: var(--ink); }

/* ---------- Hlavička: plávajúca „pilulka“, po zoskrolovaní biela ---------- */
html { scroll-padding-top: 6.5rem; }
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: env(safe-area-inset-top, 0px) var(--gutter) 0; pointer-events: none; }
.topbar { pointer-events: auto; margin-inline: calc(var(--gutter) * -1); background: #fff; color: var(--ink); border-bottom: 1px solid rgba(0,0,0,.06); overflow: hidden; max-height: 3rem; transition: max-height .3s ease; }
.header.scrolled .topbar { max-height: 0; }
.topbar-inner { max-width: var(--wrap); margin-inline: auto; padding: .45rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem 1rem; font-size: .88rem; font-weight: 600; }
.topbar-label { color: var(--muted); }
.topbar .countdown-days { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink); font-weight: 700; }
.topbar .cd-label { color: var(--ink); }
.topbar .cd-units { display: inline-flex; gap: .3rem; }
.topbar .cd-unit { display: inline-flex; align-items: baseline; gap: .25rem; background: var(--yellow); color: var(--ink); border-radius: 6px; padding: .1rem .45rem; min-width: 0; }
.topbar .cd-unit b { font-size: .95rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.topbar .cd-unit span { font-size: .75rem; font-weight: 700; margin: 0; }
.header-inner { margin-top: .6rem; }
.header-inner {
  pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gutter) + 2rem); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; padding: .45rem .45rem .45rem .5rem; border-radius: 999px;
  background: rgba(255,255,255,.38); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.55); transition: background .25s, box-shadow .25s, border-color .25s;
}
.header.scrolled .header-inner { background: rgba(255,255,255,.9); border-color: var(--line); box-shadow: 0 8px 30px rgba(60,60,20,.10); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-badge { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: .95rem; letter-spacing: -0.03em; box-shadow: inset 0 0 0 2px #fff; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav a { display: block; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); transition: background .15s; }
.nav a:hover { background: rgba(255,255,255,.7); }
.nav a[aria-current="true"] { background: var(--yellow-soft); }
.header-cta { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .4rem .35rem 1rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.header.scrolled .header-cta { background: var(--yellow); }
.header-cta .num { width: 1.9rem; height: 1.9rem; font-size: .78rem; }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; place-items: center; margin-left: auto; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; background: var(--yellow);
    display: flex; align-items: center; padding: 6rem var(--gutter) 2rem;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: .2rem; width: 100%; }
  .nav a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -0.03em; padding: .3rem 0; border-radius: 0; }
  .nav a:hover, .nav a[aria-current="true"] { background: none; text-decoration: underline; text-decoration-color: #fff; text-decoration-thickness: 5px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Úvod podľa billboardu: meno | fotka | téma + podpis ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--yellow); padding-top: 8.25rem; }
.hero::before { content: ""; position: absolute; z-index: -1; width: min(70vw, 54rem); aspect-ratio: 1; left: 50%; bottom: -30%; transform: translateX(-50%); background: radial-gradient(circle, #fff7a8 0%, rgba(255,247,168,0) 65%); }
/* obrys Žiliny (katedrála, Burianova veža, Mariánske námestie) v pozadí */
.hero-skyline { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% - 6rem); color: #fff; opacity: .5; pointer-events: none; }
@media (max-width: 1060px) { .hero-skyline { top: auto; bottom: 0; height: 60%; } }
@media (max-width: 640px) { .hero-skyline { top: 15.5rem; bottom: auto; height: 20rem; opacity: .55; } }
/* výška: celá obrazovka mínus hlavička, bežiaci pás a kúsok ďalšej sekcie */
.hero-grid {
  --hero-h: clamp(28rem, calc(100svh - 8.25rem - 8.5rem), 44rem);
  max-width: 92rem; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(1rem, 2.2vw, 2.5rem);
  height: var(--hero-h); align-items: center;
}
.hero-name { display: grid; gap: .7rem; justify-items: start; position: relative; z-index: 2; }
.hero-title { font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.5rem); margin-bottom: -.8rem; }
.hero-name h1 { font-size: clamp(3.4rem, 7vw, 8rem); font-weight: 900; line-height: .86; letter-spacing: -0.055em; color: var(--ink); }
.hero-name h1 span { display: block; }
.cand-label { font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 700; margin-top: .3rem; }
.cand-tiles { display: grid; gap: .6rem; }
.cand-tile { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 999px; padding: .4rem 1.2rem .4rem .4rem; box-shadow: 0 10px 28px rgba(110,95,0,.14); }
.cand-tile .num-xl { width: clamp(3.2rem, 4.4vw, 4.2rem); height: clamp(3.2rem, 4.4vw, 4.2rem); font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 0; box-shadow: none; }
.tile-city .num { background: var(--green); color: var(--yellow); }
.tile-region .num { background: var(--yellow); color: var(--ink); }
.tile-text { display: grid; line-height: 1.15; }
.tile-text small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile-text b { font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 800; white-space: nowrap; }
.tile-obvod { font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: .2rem; max-width: 15rem; line-height: 1.3; }
.tile-obvod strong { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; border-radius: 4px; padding: 0 .3rem; margin-right: .2rem; }
.cand-tile { border-radius: 22px; padding-right: 1.1rem; }
.hero-cta { margin-top: .6rem; background: var(--ink); border-color: var(--ink); color: #fff; }
.share-wrap { position: relative; }
.share-menu { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 13rem; background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(42,58,48,.18); padding: .35rem; display: grid; }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: block; white-space: nowrap; text-align: left; padding: .6rem .8rem; border-radius: 9px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--yellow-soft); }
.hero-cta:hover { background: #3a4d40; border-color: #3a4d40; }

.hero-photo { align-self: end; height: 100%; position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; margin-inline: clamp(-3rem, -2.5vw, -1rem); }
.hero-photo img { height: var(--hero-h); width: auto; max-width: none; }
.photo-fallback { font-size: 10rem; font-weight: 900; color: #fff; }

.hero-topic { display: grid; gap: 1.1rem; position: relative; z-index: 2; min-width: 0; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; min-height: clamp(13rem, 24vw, 19rem); align-items: end; }
.topic { grid-area: 1 / 1; display: grid; gap: .5rem; align-content: end; opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.topic.active { opacity: 1; transform: none; pointer-events: auto; }
.topic.leaving { opacity: 0; transform: translateY(-22px); }
.topic-nad { font-size: clamp(1.05rem, 1.5vw, 1.4rem); font-weight: 700; }
.topic-text { font-size: clamp(2.4rem, 4.2vw, 4.6rem); font-weight: 900; line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.topic-pod { font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.topic-dots { display: flex; gap: .35rem; }
.tdot { width: .5rem; height: .5rem; border-radius: 999px; background: rgba(42,58,48,.25); transition: width .3s, background .3s; }
.tdot.active { width: 1.8rem; background: var(--ink); }
.signature { width: clamp(10rem, 15vw, 15rem); height: auto; }

/* tablet */
@media (max-width: 1060px) {
  .hero-grid { --hero-h: auto; height: auto; grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "topic photo"; row-gap: 1rem; align-items: end; }
  .hero-name { grid-area: name; }
  .hero-name h1 { font-size: clamp(3.4rem, 11vw, 7rem); }
  .hero-name h1 span { display: inline; }
  .hero-photo { grid-area: photo; height: auto; }
  .hero-photo img { height: auto; width: 100%; max-width: 26rem; }
  .hero-topic { grid-area: topic; padding-bottom: 2rem; }
  .topics { min-height: 11rem; }
  .topic-text { font-size: clamp(2rem, 5vw, 3rem); }
}
/* mobil: meno, fotka, téma pod sebou – kompaktne, aby bol vidieť aj bežiaci pás */
@media (max-width: 640px) {
  .topbar-label { display: none; }
  .hero { padding-top: 7.2rem; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "name" "photo" "topic"; row-gap: 0; }
  .hero-name { gap: .45rem; }
  .hero-title { font-size: 1rem; margin-bottom: -.5rem; }
  .hero-name h1 { font-size: 15.5vw; }
  .cand-label { font-size: .95rem; margin-top: .1rem; }
  .cand-tiles { grid-template-columns: 1.3fr 1fr; gap: .4rem; }
  .cand-tile { padding: .25rem .7rem .25rem .25rem; gap: .45rem; }
  .cand-tile .num-xl { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
  .tile-text small { font-size: .55rem; }
  .tile-text b { font-size: .88rem; }
  .tile-obvod { font-size: .62rem; }
  .cand-tile { border-radius: 18px; }
  .hero-cta { display: none; }
  .hero-photo { justify-content: center; margin-top: .6rem; }
  .hero-photo img { width: auto; height: 17.5rem; max-width: none; }
  .hero-photo { margin-inline: calc(var(--gutter) * -1); }
  .hero-topic { gap: .5rem; padding: .9rem var(--gutter) 1rem; margin-inline: calc(var(--gutter) * -1); background: rgba(255,255,255,.6); grid-template-columns: 1fr auto; align-items: end; }
  .topics { min-height: 4.6rem; grid-column: 1 / -1; }
  .topic { gap: .2rem; }
  .topic-nad { font-size: .8rem; }
  .topic-text { font-size: 1.55rem; }
  .topic-pod { font-size: .95rem; }
  .signature { width: 6.5rem; }
}

/* ---------- Bežiaci pás tém ---------- */
.marquee { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-item { display: inline-flex; align-items: center; font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; padding-right: 1.6rem; }
.marquee-item::after { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--yellow); margin-left: 1.6rem; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Úvodné posolstvo ---------- */
.statement { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3rem); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.statement-text { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.statement-side { display: grid; gap: 1.2rem; }
.statement-body { display: grid; gap: 1rem; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink); }
.statement-body p:first-child { color: var(--muted); }
.statement-body p:last-child { font-weight: 700; }
.statement-main { display: grid; gap: 1.5rem; justify-items: start; }
.statement-sign { width: clamp(9rem, 14vw, 13rem); height: auto; margin-left: 46%; margin-top: -.4rem; }
@media (max-width: 860px) { .statement-main { gap: .6rem; } .statement-sign { width: 7.5rem; } }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.statement-text mark { background: linear-gradient(transparent 60%, var(--yellow) 60%); color: inherit; padding: 0; }
/* Trust bar */
.statement-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 3rem); background: var(--yellow); border-radius: 20px; overflow: hidden; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: clamp(1.2rem, 2.5vw, 1.8rem) clamp(1.2rem, 2.5vw, 2rem); }
.stat + .stat { border-left: 2px solid rgba(255,255,255,.6); }
.stat b { font-size: clamp(3rem, 5.4vw, 4.6rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; flex: none; }
.stat span { font-size: clamp(1.15rem, 1.75vw, 1.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); max-width: 18rem; }
@media (max-width: 760px) {
  .statement-stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 2px solid rgba(255,255,255,.6); }
  .stat { flex-direction: row; align-items: center; gap: 1rem; }
  .stat b { min-width: 6.2rem; }
}

/* Objavovanie pri skrolovaní (pridáva ui.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .scroll-badge svg, .scroll-arrow, .hero-kicker .dot { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Sekcie ---------- */
.section { padding-block: var(--section); }
.section.alt { background: var(--surface); }
.section-head { display: grid; gap: .7rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.section-head h2::after { content: ""; display: block; width: 3.5rem; height: 6px; background: var(--yellow); border-radius: 3px; margin-top: .9rem; }

/* Projekty */
.projects { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.project { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.project:nth-child(even) .project-media { order: 2; }
.project-media { display: grid; grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); gap: .7rem; min-height: 24rem; min-width: 0; }
.project-media img { width: 100%; height: 0; min-height: 100%; object-fit: cover; border-radius: 14px; min-width: 0; }
@media (max-width: 820px) { .project-media img { height: 100%; } }
.project-body { display: grid; gap: 1rem; min-width: 0; align-content: center; }
.project-body h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
.status { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.status li { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem .3rem .6rem; font-size: .95rem; font-weight: 600; }
.status svg { width: 1.1rem; height: 1.1rem; color: var(--green); }
.call { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.1; }
.call span { background: linear-gradient(transparent 58%, var(--yellow) 58%); }
.project-body p { color: var(--muted); }
.project-body .team { color: var(--ink); font-weight: 600; font-size: 1rem; }
.credit { margin-top: 2rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .project-media { grid-template-columns: 3fr 2fr; grid-auto-rows: auto; min-height: 0; height: clamp(13rem, 50vw, 20rem); }
}

/* Program */
.program-groups { display: grid; gap: 2.5rem; }
.group-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; font-size: 1.35rem; font-weight: 800; }
.group-title .num { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
.program { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; align-items: start; }
.priority { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.priority-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-soft); color: var(--green); }
.priority-icon svg { width: 1.5rem; height: 1.5rem; }
.priority p { color: var(--muted); font-size: 1.02rem; }
.priority > p { min-height: 6.6em; }
@media (max-width: 640px) { .priority > p { min-height: 0; } }
.priority details { margin-top: auto; border-top: 1px solid var(--line); padding-top: .7rem; }
.priority summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .98rem; }
.priority summary::-webkit-details-marker { display: none; }
.priority summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.priority details[open] summary::after { transform: rotate(45deg); }
.priority details p { margin-top: .5rem; color: var(--ink); }
.ako-list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .65rem; }
.ako-list li { position: relative; padding-left: 1.1rem; font-size: .96rem; line-height: 1.5; color: var(--ink); }
.ako-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--green); }

/* Výsledky */
.eyebrow-label { font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.results-section .section-head h2::after { display: none; }
.res-period { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; padding: .4rem .9rem; border-radius: 999px; background: var(--yellow-soft); font-weight: 800; font-size: .95rem; }
.res-period::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); }
.res-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.res-num { display: grid; gap: .4rem; align-content: start; padding-top: 1rem; border-top: 6px solid var(--yellow); }
.res-num b { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.res-num span { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.25rem); font-weight: 600; line-height: 1.35; }
.per-capita:empty { display: none; }
.per-capita { margin-top: clamp(1.8rem, 4vw, 2.6rem); padding: clamp(1.2rem, 3vw, 1.8rem); border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; gap: 1rem; }
.pc-title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 800; }
.pc-list { display: grid; gap: .9rem; }
.pc-row { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.pc-label { display: grid; line-height: 1.2; }
.pc-label b { font-weight: 800; }
.pc-label small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.pc-track { height: 14px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.pc-bar { display: block; height: 100%; background: var(--yellow); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(150,130,0,.25); }
.pc-row:hover .pc-bar { background: #e9d200; }
.pc-val { font-weight: 900; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 6.5rem; text-align: right; }
.pc-note { color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) {
  .pc-row { grid-template-columns: 1fr auto; row-gap: .35rem; }
  .pc-track { grid-column: 1 / -1; grid-row: 2; }
}
.res-exp-small { max-width: 42rem; font-size: 1rem; line-height: 1.6; color: var(--muted); margin-top: -.3rem; }
.res-exp { margin-top: clamp(2rem, 4vw, 2.8rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1rem, 4vw, 3.5rem); align-items: start; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--yellow-tint); border-radius: 22px; }
.res-exp-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.res-exp-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; }
@media (max-width: 760px) { .res-exp { grid-template-columns: 1fr; } }
.res-areas { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: 1.6rem; font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.25rem); text-transform: uppercase; letter-spacing: .04em; }
.res-areas .dot-sep { color: var(--yellow); -webkit-text-stroke: 1px #d8c200; }

.res-tabs { display: inline-flex; gap: .3rem; margin-top: clamp(2.2rem, 5vw, 3.5rem); padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.res-tab { font: 800 1rem/1 var(--font); letter-spacing: .02em; padding: .85rem 1.5rem; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.res-tab[aria-selected="true"] { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 14px rgba(110,95,0,.15); }
.res-tab:hover { color: var(--ink); }
.res-panel { margin-top: 2rem; display: grid; gap: 2.4rem; }

.res-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding: 1.4rem 1.6rem; background: var(--yellow); border-radius: 18px; }
.res-total b { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.res-total span { font-weight: 700; font-size: 1.08rem; }

.res-group { display: grid; gap: 1rem; }
.res-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.res-group-head h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; }
.res-group-sum { font-weight: 900; font-size: clamp(1.1rem, 1.8vw, 1.4rem); background: var(--yellow); padding: .1rem .55rem; border-radius: 6px; }
.res-map { margin: 0; padding: .6rem; gap: .6rem; }
.res-map > a { display: block; flex: 1; min-height: 9rem; border-radius: 10px; overflow: hidden; }
.res-map img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 45%; display: block; transition: transform .3s; }
.res-map:hover img { transform: scale(1.04); }
.res-map figcaption { display: grid; gap: .1rem; padding: 0 .5rem .3rem; font-size: .95rem; }
.res-map figcaption a { font-weight: 700; font-size: .9rem; }
.res-grid.res-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .res-grid.res-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .res-map > a { height: 10rem; flex: none; } }
@media (max-width: 560px) { .res-grid.res-grid-4 { grid-template-columns: 1fr; } .res-map > a { height: 13rem; flex: none; } }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.res-card { display: flex; flex-direction: column; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.3rem 1.35rem; min-width: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.res-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(60,60,20,.08); }
.res-card-top { display: flex; flex-wrap: wrap; gap: .35rem; }
.res-role { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--green); background: var(--green-soft); padding: .25rem .55rem; border-radius: 999px; }
.res-kto-zsk { background: var(--yellow); color: var(--ink); }
.res-card h4 { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.res-sum { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.res-text { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.res-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin: -1.25rem -1.3rem .5rem; }
.res-photos img { border-radius: 0; }
.res-photos figure:first-child img { border-top-left-radius: 15px; }
.res-photos figure:last-child img { border-top-right-radius: 15px; }
.res-photo { margin: -1.25rem -1.3rem .5rem; }
.res-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 15px 15px 0 0; }
.res-photos figure { margin: 0; position: relative; }
.res-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.res-photos figcaption { position: absolute; left: .4rem; top: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; background: #fff; padding: .15rem .45rem; border-radius: 4px; }

.lehota { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.5rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--surface); border-radius: 22px; }
.lehota-head { display: grid; gap: .45rem; align-content: start; }
.lehota-sum { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.lehota-head span { color: var(--muted); font-weight: 600; }
.lehota-grid { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
@media (max-width: 900px) {
  .res-numbers { row-gap: 1.6rem; }
  .lehota { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .res-tabs { display: flex; width: 100%; }
  .res-tab { flex: 1; padding-inline: .6rem; }
  .res-numbers { grid-template-columns: 1fr; }
  .res-num b { font-size: 2.6rem; }
}

/* O mne */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-text p:nth-of-type(1) { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.35; }
.about-text p:last-child { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 800; }
.about-text { display: grid; gap: 1.1rem; max-width: var(--text); min-width: 0; }
.about-text h2::after { content: ""; display: block; width: 3.5rem; height: 6px; background: var(--yellow); border-radius: 3px; margin-top: .9rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg); padding: 1.3rem 1.1rem; display: grid; gap: .45rem; align-content: center; justify-items: center; text-align: center; }
.fact b { font-size: 2.1rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.fact span { color: var(--muted); font-size: 1rem; line-height: 1.35; }
@media (max-width: 780px) { .about { grid-template-columns: 1fr; } }

/* Stretnutia – kompaktné dlaždice vedľa seba */
#stretnutia { padding-block: var(--section); }
#stretnutia .section-head { margin-bottom: 1.6rem; }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem; }
.event { display: flex; flex-direction: column; gap: .7rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; background: #fff; }
.event:first-child { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.event-date { display: flex; align-items: baseline; gap: .45rem; color: var(--ink); line-height: 1; }
.event-date b { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; background: var(--yellow); border-radius: 8px; padding: .2rem .45rem; }
.event-date span { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.event-body { display: grid; gap: .3rem; min-width: 0; }
.event-body h3 { font-size: 1.05rem; line-height: 1.25; }
.event-meta { color: var(--muted); font-size: .92rem; font-weight: 600; }
.event-desc { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.empty { color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .events { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: .2rem var(--gutter) .6rem; }
  .event { flex: 0 0 72%; scroll-snap-align: start; }
}

/* Odporúčania */
.refs { background: var(--yellow-tint); }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; }
.quote:first-child { grid-column: 1 / -1; } .quote:first-child blockquote { font-size: clamp(1.2rem, 1.8vw, 1.45rem); max-width: 60rem; }
.quote { margin: 0; position: relative; display: flex; flex-direction: column; gap: 1.25rem; background: #fff; border-radius: var(--radius); padding: 3.2rem 1.6rem 1.5rem; min-width: 0; box-shadow: 0 1px 0 var(--line); }
.quote-mark { position: absolute; top: .5rem; left: 1.4rem; font-size: 4.5rem; height: 2.4rem; overflow: hidden; line-height: 1; font-weight: 900; color: var(--yellow); }
.quote blockquote { margin: 0; font-size: 1.15rem; line-height: 1.55; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote-avatar { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 800; }
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-who { display: grid; line-height: 1.3; min-width: 0; }
.quote-who b { font-size: 1.02rem; }
.quote-who span { font-size: .92rem; color: var(--muted); }

/* Voľby */
.vote-section { background: var(--yellow-tint); }
.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem 1.2rem 1.4rem; display: grid; gap: .6rem; align-content: start; position: relative; }
.sheet-no { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet h3 { font-size: 1.1rem; }
.sheet p { font-size: 1rem; color: var(--muted); }
.sheet.key { border: 2px solid var(--yellow); box-shadow: 0 6px 18px rgba(200,180,0,.15); }
.sheet.key p { color: var(--ink); }
.sheet-mark { display: flex; align-items: center; gap: .7rem; margin-top: .3rem; }
.sheet-mark .num { width: 3rem; height: 3rem; font-size: 1.3rem; position: relative; }
.sheet-mark .num::after { content: ""; position: absolute; inset: -6px; border: 2.5px solid var(--green); border-radius: 47% 53% 50% 46% / 52% 46% 54% 48%; transform: rotate(-10deg); }
.sheet-mark .num-region { margin-left: 0; }
.sheet-mark span { font-weight: 700; }
.vote-cta { margin-top: 2rem; }
.vc-box { background: var(--yellow); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1.5rem 2.5rem; align-items: center; }
.vc-text h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.vc-text p { margin-top: .7rem; font-size: 1.05rem; line-height: 1.5; }
.vc-actions { display: grid; gap: .9rem; }
.vc-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.vc-lbl { flex: 0 0 100%; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vc-row .btn { padding: .55rem 1.05rem; font-size: .95rem; background: #fff; border-color: #fff; color: var(--ink); text-decoration: none; }
.vc-row .btn:hover { border-color: var(--ink); }
.vc-row .btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.vc-row .btn-ink:hover { background: var(--green-dark); border-color: var(--green-dark); }
@media (max-width: 800px) { .vc-box { grid-template-columns: 1fr; } }
.topbar.vday { max-height: 6rem; background: var(--ink); color: #fff; }
.topbar.vday .topbar-label { display: none; }
.topbar.vday .cd-label, .topbar.vday .countdown-days { color: #fff; }
.topbar.vday .vd-detail { background: var(--yellow); color: var(--ink); border-radius: 6px; padding: .1rem .5rem; font-weight: 800; }
.header.scrolled .topbar.vday { max-height: 6rem; }
.faq { margin-top: 2.5rem; max-width: 50rem; display: grid; }
.faq details { border-top: 1px solid var(--line); padding-block: 1rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .6rem; color: var(--muted); max-width: var(--text); }
.vote-more { margin-top: 1.5rem; font-weight: 600; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.2rem; min-width: 0; }
.contact-info h2::after { content: ""; display: block; width: 3.5rem; height: 6px; background: var(--yellow); border-radius: 3px; margin-top: .9rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list span { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list a { font-size: 1.2rem; font-weight: 700; word-break: break-word; }
.socials { display: flex; gap: .7rem; }
.socials a { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.socials a:hover { background: var(--yellow); border-color: var(--yellow); }
.socials svg { width: 1.2rem; height: 1.2rem; }
.form { display: grid; gap: 1rem; background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: 1rem; }
.field input, .field textarea { font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem .9rem; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.field textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--green); flex: none; }
.form-note { font-weight: 700; }
.hp { display: none; }
@media (max-width: 780px) { .contact { grid-template-columns: 1fr; } }

/* Pätička */
.footer { background: var(--surface); color: var(--muted); padding-block: 2.5rem; font-size: .95rem; }
.footer a { color: var(--ink); }
.footer .wrap { display: grid; gap: 1.2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--ink); font-weight: 600; }
.footer { border-top: 6px solid var(--yellow); }
.footer-legal { display: grid; gap: .15rem; font-size: .82rem; }

/* Podstránka */
.page { padding-block: var(--section); }
.page .wrap { max-width: 48rem; display: grid; gap: 1.1rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page h2 { font-size: 1.4rem; margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.page ul { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.page h2 { margin-top: 1.4rem; }

/* Kroky projektu */
.steps-wrap { display: grid; gap: .5rem; }
.steps-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .45rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 1.7rem 1fr auto; align-items: baseline; gap: .6rem; font-size: .98rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--yellow); font-weight: 800; font-size: .85rem; align-self: center; }
.step-text { color: var(--ink); font-weight: 600; line-height: 1.35; }
.step-detail { color: var(--muted); font-size: .88rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .steps li { grid-template-columns: 1.7rem 1fr; } .step-detail { grid-column: 2; } }
.topbar.vday .countdown-days { flex-wrap: wrap; justify-content: center; text-align: center; }
body.vday-on .hero { padding-top: calc(8.25rem + 2.75rem); }

/* Rýchle tlačidlá v hlavičke (kalendár, zdieľanie) */
.header-quick { display: flex; gap: .4rem; margin-left: .2rem; }
.quick-btn { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; background: #fff; border: 0; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.quick-btn:hover, .quick-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.quick-btn svg { width: 1.15rem; height: 1.15rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.share-menu::before { content: attr(data-title); display: block; padding: .45rem .8rem .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 980px) { .header-quick { margin-left: auto; } .nav-toggle { margin-left: .4rem; } }

#projekty .section-head .lead { max-width: none; }
.about-side { display: grid; gap: 1rem; min-width: 0; }
.about-photo { margin: 0; position: relative; }
.about-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-photo figcaption { position: absolute; left: .8rem; bottom: .8rem; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; }
