/* =========================================================================
   ŽIVÁ OBEC — vizuální systém
   Sdružení nezávislých kandidátů · Komunální volby 2026
   -------------------------------------------------------------------------
   Barvy, písmo a komponenty webu. Hlavní barva je živá zelená (vitalita,
   "živá" obec) — záměrně jiná než tmavá modrá konkurence.
   ========================================================================= */

:root {
  /* --- Barvy ----------------------------------------------------------- */
  --bg:          #FAF8F2;   /* teplá téměř-bílá */
  --bg-soft:     #F1ECE0;   /* sekce s jemným podkladem */
  --bg-deep:     #14271C;   /* tmavá zelenočerná pro kontrastní sekce */
  --ink:         #1C231E;   /* základní text */
  --ink-soft:    #555E55;   /* tlumený text */
  --ink-faint:   #8A9189;   /* popisky, meta */

  --green:       #1E7A47;   /* primární zelená */
  --green-deep:  #135C36;   /* tmavší zelená (hover, nadpisy) */
  --green-bright:#27A35E;   /* svěží akcent */
  --green-tint:  #E5F0E6;   /* světlé pozadí, štítky */
  --green-line:  rgba(30,122,71,0.22);

  --amber:       #D8862A;   /* teplý akcent (energie) — používat střídmě */
  --amber-tint:  #F6E8D2;

  --line:        rgba(28,35,30,0.12);
  --line-strong: rgba(28,35,30,0.22);
  --card:        #FFFFFF;
  --shadow-sm:   0 1px 2px rgba(20,39,28,0.06), 0 2px 8px rgba(20,39,28,0.05);
  --shadow-md:   0 6px 24px rgba(20,39,28,0.10), 0 2px 6px rgba(20,39,28,0.06);
  --shadow-lg:   0 18px 50px rgba(20,39,28,0.16);

  /* --- Písmo ----------------------------------------------------------- */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  /* --- Rozměry --------------------------------------------------------- */
  --maxw: 1360px;
  --radius:   18px;
  --radius-sm:12px;
  --radius-lg:28px;
  --pad: clamp(18px, 3vw, 40px);
}

/* spacing & layout tokens */
:root { --green-deep: #135C36; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 98px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: var(--green); color: #fff; }

/* =========================================================================
   POMOCNÉ TŘÍDY
   ========================================================================= */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--green);
  display: inline-block;
}

.section { padding-block: clamp(42px, 6vw, 86px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 18px 0 0;
}
.section-head .lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Pills / tags ---------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--green-tint);
  color: var(--green-deep);
  border: 1px solid var(--green-line);
}

/* Image placeholder ----------------------------------------------------- */
.ph {
  position: relative;
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(30,122,71,0.07) 0 12px,
    rgba(30,122,71,0.02) 12px 24px
  );
  border: 1px dashed var(--green-line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--green-deep);
}
.ph span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(250,248,242,0.85);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--green-line);
  text-align: center;
}

/* =========================================================================
   HLAVIČKA / NAVIGACE
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,242,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(20,39,28,0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.brand-chip {
  width: 64px; height: 64px; border-radius: 18px;
  background: #fff;
  display: grid; place-items: center;
  flex: none;
  box-shadow: 0 2px 8px rgba(20,39,28,0.12);
  overflow: hidden;
}
.brand-chip img { width: 54px; height: 54px; object-fit: contain; }
.brand-word { font-size: clamp(1.55rem, 2vw, 1.9rem); letter-spacing: 0.04em; color: var(--green-deep); }
.brand-word b { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 15px;
  border-radius: 100px;
  position: relative;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--green-deep); background: var(--green-tint); }
.nav-links a.active { color: var(--green-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--green); border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* mini sociální ikony */
.socials-mini { display: flex; align-items: center; gap: 8px; }
.socials-mini a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green-deep); background: var(--green-tint);
  transition: .15s ease;
}
.socials-mini a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.socials-mini a svg { width: 18px; height: 18px; }
.socials-mini.in-menu { margin-top: 16px; }
.socials-mini.light a { background: rgba(255,255,255,0.12); color: #fff; }
.socials-mini.light a:hover { background: var(--green-bright); color: var(--bg-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { position: relative; width: 18px; height: 2px; background: var(--ink); transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: .2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: clamp(74px, 6vw, 88px) 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--pad) 28px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 8px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding-top: clamp(16px, 2vw, 28px); padding-bottom: clamp(24px, 3vw, 40px); }
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--green); }
.hero .lede {
  margin-top: 26px;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-villages { margin-top: clamp(16px, 2.4vw, 28px); display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.hero-villages .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
  white-space: nowrap;
}
.hero-villages .tags { flex-wrap: nowrap; }


.hero-media { position: relative; }
.hero-photo-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-media .ph { aspect-ratio: 4/3; border-radius: var(--radius-lg); }
.hero-badge {
  position: absolute;
  left: -22px; bottom: 28px;
  background: var(--bg-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 230px;
}
.hero-badge .big { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: #fff; }
.hero-badge .small { font-size: 0.86rem; color: rgba(255,255,255,0.78); margin-top: 6px; }
.hero-badge .big em { color: var(--green-bright); font-style: normal; }

/* marquee strip under hero */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  contain: paint;
}
.strip-track {
  display: flex;
  gap: 56px;
  padding-block: 16px;
  white-space: nowrap;
  width: max-content;
  transform: translate3d(0,0,0);
  will-change: transform;
  animation: marquee var(--strip-duration, 32s) linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.strip-track .run { display: inline-flex; align-items: center; gap: 30px; }
.strip-track .hs { display: inline-flex; align-items: center; }
.strip-track .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
@keyframes marquee { to { transform: translate3d(calc(-1 * var(--strip-shift, 50%)),0,0); } }


/* =========================================================================
   "V ČEM JSME JINÍ" — odlišení
   ========================================================================= */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.diff-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-line); }
.diff-card .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
}
.diff-card .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-tint);
  display: grid; place-items: center;
  margin: 16px 0 20px;
  color: var(--green-deep);
}
.diff-card .ic svg { width: 26px; height: 26px; }
.diff-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.diff-card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* =========================================================================
   MISE & VIZE — tmavá sekce
   ========================================================================= */
.vize { background: var(--bg-deep); color: #fff; position: relative; overflow: hidden; }
.vize::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% -10%, rgba(39,163,94,0.25), transparent 60%);
  pointer-events: none;
}
.vize h2, .vize h3 { color: #fff; }
.vize .eyebrow { color: var(--green-bright); }
.vize .eyebrow::before { background: var(--green-bright); }
.vize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); position: relative; }
.vize-statement {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.vize-statement em { color: var(--green-bright); font-style: normal; }
.vize-list { display: grid; gap: 4px; align-self: center; }
.vize-item { padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.vize-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.vize-item h4 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.vize-item h4 .b { width: 9px; height: 9px; border-radius: 50%; background: var(--green-bright); flex: none; }
.vize-item p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.98rem; padding-left: 21px; }

/* =========================================================================
   PROGRAM
   ========================================================================= */
.program { background: var(--bg-soft); }
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.prog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
}
.prog-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--green);
  opacity: 0;
  transition: opacity .2s ease;
}
.prog-card:hover::before { opacity: 1; }
.prog-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.prog-head .pn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}
.prog-head h3 { font-size: 1.55rem; }
.prog-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.prog-card li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 1rem; }
.prog-card li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--green);
}
.prog-card li::after {
  content: "";
  position: absolute; left: 5px; top: 14px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green);
}

/* =========================================================================
   KANDIDÁTI
   ========================================================================= */
.cand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: stretch;
}
.cand-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
}
.cand-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-line); }
.cand-card.lead { grid-column: span 2; grid-row: span 1; flex-direction: row; min-height: 360px; }
.cand-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  display: block;
  line-height: 0;
}
.cand-card.lead .cand-photo { aspect-ratio: 1 / 1; width: 100%; flex: none; }
.cand-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.cand-photo .initials {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--green-deep);
  background: rgba(250,248,242,0.7);
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--green-line);
}
.cand-num {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-deep);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.cand-card.lead .cand-num { background: var(--green); }
.lead-flag { display: none; }
.cand-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.cand-card.lead .cand-body { padding: 32px; justify-content: center; }
.cand-body .role {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  line-height: 1.32;
  margin-top: 8px;
  margin-bottom: 0;
}
.cand-body h3 { font-size: 1.2rem; margin-bottom: 0; }
.cand-card.lead .cand-body h3 { font-size: 2rem; }
.cand-body .quote {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  overflow: visible;
}
.cand-card.lead .cand-body .quote { font-size: 1.05rem; }
.cand-body .activity {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.cand-body .activity strong {
  color: var(--ink);
  font-weight: 750;
}
.cand-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-deep);
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  align-self: flex-start;
}
.cand-more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.cand-card.expanded .cand-body .quote { -webkit-line-clamp: unset; }
.cand-card.expanded .cand-more svg { transform: rotate(180deg); }

/* =========================================================================
   KONTAKT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.field .err { color: #B5462B; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #B5462B; }
.field.invalid .err { display: block; }
.form-note { font-size: 0.84rem; color: var(--ink-faint); margin-top: 6px; }
.form-ok {
  display: none;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  color: var(--green-deep);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 500;
  margin-top: 10px;
}
.form-ok.show { display: block; }

.contact-info { display: grid; gap: 14px; }
.contact-info h3 { font-size: 1.7rem; margin-bottom: 6px; }
.contact-info > p { color: var(--ink-soft); }
.info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.info-row:hover { border-color: var(--green-line); transform: translateX(3px); }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint); color: var(--green-deep); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-family: var(--font-mono); }
.info-row .v { font-weight: 600; font-size: 1.05rem; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: .18s ease;
}
.socials a:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-tint); }
.socials svg { width: 18px; height: 18px; }

/* =========================================================================
   PATIČKA
   ========================================================================= */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,0.8); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-chip { background: #fff; }
.footer-brand .socials-mini { margin-top: 18px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); margin: 0 0 16px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.75); margin-bottom: 10px; font-size: 0.96rem; }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.86rem; color: rgba(255,255,255,0.5); }
.footer-bottom .villages { color: var(--green-bright); }

/* =========================================================================
   SCROLL-REVEAL  (progresivní vylepšení)
   Obsah je viditelný i bez JS. Animace se aktivuje jen pod html.js.
   ========================================================================= */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }


/* =========================================================================
   RESPONZIVITA
   ========================================================================= */






.about-section {
  padding-bottom: clamp(30px, 4vw, 52px);
}
.about-logo-wrap {
  margin-top: clamp(20px, 3vw, 34px);
  margin-bottom: 0;
}
.about-logo-real {
  width: min(500px, 76vw);
}
.about-photo-grid {
  margin-top: clamp(34px, 4vw, 58px);
  gap: clamp(18px, 2.5vw, 30px);
}
.about-photo img {
  min-height: clamp(340px, 36vw, 540px);
  aspect-ratio: 16 / 9;
  object-position: center 38%;
  transform: scale(1.08);
  transform-origin: center 42%;
}
.site-footer.site-footer-centered {
  padding-block: clamp(34px, 4.6vw, 54px) 24px;
}

.cand-card {
  min-height: 0;
}
.cand-photo {
  aspect-ratio: 1 / 1;
}
.cand-photo img {
  object-position: center top;
}
.cand-card.lead {
  flex-direction: column;
  min-height: 0;
}
.cand-card.lead .cand-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
}
.cand-card.lead .cand-photo img {
  object-position: center top;
}
.cand-card.lead .cand-body {
  justify-content: flex-start;
  padding: clamp(22px, 2.4vw, 30px);
}
.cand-card.lead .cand-body h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}
.cand-body {
  padding: 18px;
}


/* =========================================================================
   POD-HLAVIČKA STRÁNKY (page hero)
   ========================================================================= */
.page-hero {
  position: relative;
  background: var(--bg-deep);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(40px, 5.6vw, 68px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 420px at 88% -20%, rgba(39,163,94,0.30), transparent 60%);
}
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { display: none; }
.page-hero .eyebrow::before { display: none; }
.page-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 8px;
}
.page-hero h1 { color: #fff; font-size: clamp(2.25rem, calc(1.38rem + 2.8vw), 3.55rem); margin-top: 0; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 60ch; margin-top: 14px; font-size: 1.1rem; }
.page-hero p strong { color: #fff; font-weight: 750; }
.page-hero .villages-line { margin-top: 24px; }

/* =========================================================================
   DESATERO
   ========================================================================= */
.desatero-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.des-program-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.des-program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-line); }
.des-program-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 28px);
  margin-bottom: 14px;
}
.des-program-head .cislo {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--green);
  flex: none;
  width: clamp(54px, 7vw, 86px);
}
.des-program-card h3 {
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  letter-spacing: -0.025em;
}
.des-program-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  max-width: 82ch;
  padding-left: clamp(72px, 9.4vw, 114px);
}
.des-closing {
  margin-top: 30px; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--green-deep);
  max-width: 820px; margin-inline: auto; text-wrap: balance;
}


/* =========================================================================
   PROGRAM
   ========================================================================= */
.prog-list { display: grid; gap: 14px; }
.prog-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prog-item.open { border-color: var(--green-line); box-shadow: var(--shadow-md); }
.prog-trigger {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 22px;
  padding: clamp(28px, 3vw, 40px) clamp(22px, 3.4vw, 42px);
  background: none; border: none; cursor: pointer;
  font-family: inherit;
}
.prog-trigger .cislo {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800;
  color: var(--green); flex: none; width: clamp(54px, 7vw, 86px); line-height: 0.95;
}
.prog-trigger .nazev { font-family: var(--font-display); font-size: clamp(1.65rem, 3.2vw, 2.45rem); font-weight: 750; flex: 1; letter-spacing: -0.025em; }
.prog-trigger .chev {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-deep);
  display: grid; place-items: center; flex: none;
  transition: transform .25s ease, background .2s ease;
}
.prog-trigger .chev svg { width: 20px; height: 20px; }
.prog-item.open .prog-trigger .chev { transform: rotate(180deg); background: var(--green); color: #fff; }
.prog-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.prog-item.open .prog-panel { grid-template-rows: 1fr; }
.prog-panel-inner { overflow: hidden; }
.prog-body { padding: 0 clamp(22px, 3.4vw, 42px) 34px; }
.prog-body .perex { color: var(--ink-soft); margin: 0 0 26px; padding-left: clamp(76px, 9.4vw, 128px); max-width: 82ch; font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
.prog-groups { display: grid; grid-template-columns: 1fr; gap: 28px; padding-left: clamp(76px, 9.4vw, 128px); max-width: 900px; }
.prog-group h4 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.01em;
  font-family: var(--font-display); color: var(--green-deep); margin-bottom: 14px;
}
.prog-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.prog-group li { position: relative; padding-left: 30px; color: var(--ink); font-size: clamp(1.02rem, 1.25vw, 1.13rem); }
.prog-group li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--green);
}


/* =========================================================================
   AKTUALITY
   ========================================================================= */
.space-wrap { max-width: 1120px; }
.akt-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.akt-card {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.akt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-line); }
.akt-thumb {
  aspect-ratio: 16/10;
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(-45deg, rgba(30,122,71,0.08) 0 12px, rgba(30,122,71,0.02) 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.akt-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.akt-thumb .akt-logo { width: 64px; height: 64px; opacity: .8; }
.akt-stitek {
  position: absolute; top: 14px; left: 14px;
  z-index: 1;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--green); color: #fff; padding: 5px 12px; border-radius: 100px;
}
.akt-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.akt-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.akt-body p { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 18px; }
.akt-body .btn { margin-top: auto; align-self: flex-start; }
.akt-body h3 a { color: inherit; }
.akt-empty {
  grid-column: 1/-1; text-align: center; padding: 60px 20px;
  border: 1px dashed var(--green-line); border-radius: var(--radius);
  color: var(--ink-soft); background: var(--card);
}
.space-pagination { margin-top: clamp(34px, 4vw, 52px); }
.space-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.space-pagination a,
.space-pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.space-pagination .current {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.space-article-wrap { max-width: 900px; }
.space-article-content {
  font-size: clamp(1rem, calc(0.92rem + 0.3vw), 1.14rem);
  line-height: 1.62;
}
.space-article-content > * + * { margin-top: 1.2em; }
.space-article-content .wp-block-image { margin-inline: 0; }
.space-article-content .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.space-article-content .wp-block-file__embed {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 210 / 297;
  height: auto;
  border: 0;
}
.space-article-back { margin-top: clamp(32px, 4vw, 48px); }

.hero-motto {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: var(--green-deep);
  max-width: 18ch;
}
.about-section { padding-top: clamp(48px, 6vw, 86px); }
.about-head { max-width: 900px; margin-inline: auto; text-align: center; }
.about-copy {
  display: grid;
  gap: 18px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.42;
  font-weight: 700;
  color: var(--ink);
  max-width: 940px;
  margin-inline: auto;
}
.about-copy p { margin: 0; }
.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: clamp(34px, 4vw, 54px);
}
.about-photo-placeholder {
  min-height: clamp(230px, 26vw, 390px);
  border-radius: var(--radius-lg);
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(-45deg, rgba(30,122,71,0.08) 0 12px, rgba(30,122,71,0.025) 12px 24px);
  border: 1px dashed var(--green-line);
  display: grid;
  place-items: center;
  color: var(--green-deep);
  overflow: hidden;
}
.about-photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(250,248,242,0.88);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--green-line);
}
.btn-xl { font-size: clamp(1.05rem, 1.5vw, 1.24rem); padding: 18px 34px; }

.prog-static-card { padding: clamp(26px, 3.2vw, 42px); box-shadow: var(--shadow-sm); }
.prog-static-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-line); }
.prog-static-head { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(18px, 2.4vw, 30px); }
.prog-static-head .cislo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--green);
  flex: none;
  width: clamp(54px, 7vw, 86px);
}
.prog-static-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); letter-spacing: -0.03em; }
.prog-static-head .perex {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.35vw, 1.2rem);
  max-width: 80ch;
}
.prog-groups-static { padding-left: clamp(76px, 9.4vw, 128px); max-width: 980px; }

.site-footer-centered { text-align: center; padding-block: clamp(48px, 6vw, 72px) 26px; }
.footer-center-wrap { display: grid; justify-items: center; gap: 18px; }
.footer-center-brand .brand { justify-content: center; margin-bottom: 10px; }
.footer-center-brand .brand-word { color: #fff; }
.footer-center-brand .brand-chip { background: #fff; }
.footer-center-brand p { margin: 0; color: rgba(255,255,255,0.76); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.footer-center-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; font-weight: 600; }
.footer-center-nav a { color: rgba(255,255,255,0.82); }
.footer-center-nav a:hover { color: var(--green-bright); }
.footer-sep { color: var(--green-bright); }
.footer-center-contact { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 1.05rem; }
.footer-center-contact a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.28); text-underline-offset: 4px; }
.footer-socials { margin-top: 4px; }
.footer-bottom-centered { width: 100%; justify-content: center; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 10px; padding-top: 20px; }





.hero { padding-bottom: clamp(10px, 1.8vw, 24px); }

.about-section {
  padding-top: clamp(20px, 2.8vw, 38px);
}

.about-head {
  max-width: 1040px;
  margin-inline: 0;
  text-align: left;
}

.about-copy {
  margin-inline: 0;
  max-width: 1060px;
}




.about-section {
  padding-top: clamp(10px, 1.8vw, 26px);
}

.about-head {
  max-width: var(--maxw);
  margin-inline: auto;
  text-align: left;
}

.about-copy {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin-inline: auto;
  text-align: left;
  font-size: clamp(1.14rem, 1.45vw, 1.36rem);
  line-height: 1.52;
  font-weight: 650;
}

.about-copy p {
  margin: 0;
}







.brand-horizontal {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.brand-logo {
  display: block;
  width: clamp(176px, 18vw, 265px);
  max-height: 62px;
  height: auto;
  object-fit: contain;
}
.nav {
  height: clamp(74px, 6vw, 88px);
}
.site-header .brand-word,
.site-header .brand-chip {
  display: none;
}
.footer-brand-logo {
  width: clamp(210px, 22vw, 330px);
  max-height: 86px;
}
.footer-center-brand .brand {
  margin-bottom: 12px;
}
.hero h1 {
  max-width: 11.5ch;
}
.hero h1 .accent {
  color: var(--green);
}
.hero-photo {
  aspect-ratio: 1800 / 1351;
  object-position: center center;
}
.about-section {
  padding-top: clamp(8px, 1.4vw, 22px);
}
.about-head {
  max-width: var(--maxw);
  margin-inline: auto;
}
.about-head .eyebrow {
  display: none;
}
.about-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.about-logo-real {
  display: block;
  width: min(520px, 78vw);
  height: auto;
  max-height: 150px;
  object-fit: contain;
}
.about-copy {
  font-weight: 500;
  max-width: 980px;
  margin-inline: auto;
  text-align: left;
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  line-height: 1.6;
}
.about-photo-grid {
  margin-top: clamp(30px, 4vw, 54px);
}
.about-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--card);
}
.about-photo img {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 30vw, 420px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
}
.prog-static-card strong {
  font-weight: 800;
  color: var(--ink);
}
.prog-static-head .perex strong {
  color: var(--ink-soft);
}




.cand-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cand-card.lead { grid-column: span 2; flex-direction: column; }
.cand-card.lead .cand-photo { width: 100%; aspect-ratio: 1 / 1; flex: none; }
.cand-card.lead .cand-body { justify-content: center; }

/* Finální korekce aktuální šablony. */
:root { color-scheme: light only; }
html, body { background: #fff; }

.nav-links a {
  text-transform: uppercase;
  background: transparent;
}
.nav-links a:hover {
  color: var(--green-deep);
  background: transparent;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.footer-center-nav,
.footer-center-nav a {
  text-transform: uppercase;
}

.brand-logo {
  width: clamp(176px, 18vw, 265px);
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

.btn,
.btn-primary,
.btn-ghost,
.btn-light {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.btn::after {
  content: "→";
  color: #fff;
  font-size: 1.1em;
  line-height: 1;
  transform: translateY(-1px);
}
.btn svg {
  display: none;
}
.btn:hover,
.btn-primary:hover,
.btn-ghost:hover,
.btn-light:hover {
  color: #fff;
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn::after { color: #fff; }

.hero {
  padding-top: clamp(18px, 2.4vw, 34px);
  padding-bottom: clamp(32px, 4vw, 58px);
}
.hero-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.48fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.hero-copy { max-width: 590px; }
.hero h1 {
  max-width: 15.5ch;
  font-size: clamp(2rem, calc(1.2rem + 2.35vw), 3.45rem);
  line-height: 1.04;
  text-wrap: balance;
}
.hero-title-line { display: block; }
.hero-motto {
  margin-top: clamp(22px, 3vw, 38px);
  margin-bottom: 0;
  max-width: 24ch;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(1.95rem, calc(1.16rem + 1.95vw), 2.9rem);
  font-weight: 760;
  line-height: 1.08;
}
.hero-motto span {
  display: inline;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  white-space: normal;
}
.hero-actions { margin-top: clamp(24px, 3vw, 38px); }
.hero-media { width: 100%; }
.hero-photo-frame {
  margin: 0;
  aspect-ratio: 1800 / 1351;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  line-height: 0;
  background: transparent;
}
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  transform: none;
  filter: none;
  opacity: 1;
}

.about-head {
  max-width: 1040px;
  margin-inline: auto;
}
.about-head .about-eyebrow,
.about-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 clamp(20px, 2.6vw, 34px);
}
.about-copy {
  max-width: 1040px;
  margin-inline: 0;
  font-size: clamp(1.22rem, calc(1rem + 0.9vw), 1.72rem);
  line-height: 1.46;
  color: var(--ink);
  text-wrap: pretty;
}
.about-copy p:first-child {
  font-size: clamp(1.42rem, calc(1.08rem + 1.05vw), 2rem);
  line-height: 1.38;
}
.about-copy p { margin-bottom: clamp(16px, 2vw, 24px); }
.about-copy strong {
  display: inline;
  color: var(--ink);
  font-weight: 800;
}
.about-logo-wrap {
  margin-top: clamp(34px, 4vw, 58px);
  margin-bottom: clamp(42px, 4.8vw, 70px);
}
.about-logo-real { width: min(480px, 76vw); }

.cand-photo,
.cand-card.lead .cand-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  display: block;
  background: var(--bg-soft);
  line-height: 0;
  font-size: 0;
}
.cand-photo img,
.cand-card.lead .cand-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
}
.cand-num { z-index: 1; }
.cand-card.lead { flex-direction: column; }
.cand-body .role,
.role {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  gap: 0;
  margin: 9px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--green);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: clamp(0.9rem, calc(0.86rem + 0.15vw), 0.95rem);
  line-height: 1.32;
  min-height: var(--cand-role-row-height, auto);
  letter-spacing: 0;
}
.cand-body .role span,
.role span {
  display: block;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 500;
}
.cand-body .activity strong,
.cand-body .activity span {
  display: block;
}
.cand-body .activity strong {
  margin-bottom: 4px;
}

.page-hero p,
.cand-body,
.des-program-card,
.prog-static-card,
.akt-body,
.footer-center-wrap { overflow-wrap: break-word; }
.page-claim,
.footer-center-nav a { text-wrap: balance; }
.page-claim {
  display: block;
  margin: clamp(12px, 1.8vw, 22px) 0 clamp(14px, 2vw, 24px);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, calc(1rem + 1.1vw), 2.35rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.page-claim + br { display: none; }
.cand-body h3,
.des-program-card h2,
.des-program-card h3,
.prog-static-head h2,
.akt-body h2 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.cand-body h3,
.cand-card.lead .cand-body h3 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

.prog-group li::before {
  top: 0.78em;
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: none;
}
.des-program-card p {
  font-size: clamp(1rem, calc(0.9rem + 0.38vw), 1.16rem);
  line-height: 1.56;
}
.prog-static-head .perex,
.prog-group li {
  font-size: clamp(1rem, calc(0.9rem + 0.35vw), 1.14rem);
  line-height: 1.56;
}

.site-footer.site-footer-centered {
  padding-top: clamp(40px, 4.8vw, 68px);
  padding-bottom: clamp(24px, 3.2vw, 36px);
}
.footer-center-wrap { gap: clamp(14px, 2vw, 24px); }
.footer-center-brand { gap: clamp(20px, 2.6vw, 34px); }
.footer-center-brand .brand,
.footer-logo-link { margin-bottom: 0; }
.footer-brand-logo {
  width: clamp(150px, 15vw, 220px);
  max-height: 64px;
}
.footer-center-brand p { margin-top: 0; }
.footer-bottom-centered {
  margin-top: clamp(16px, 2.6vw, 28px);
  padding-top: clamp(18px, 2.4vw, 26px);
}
.footer-bottom .villages { color: inherit; }

.section {
  padding-block: clamp(62px, 7.4vw, 112px);
}
.page-hero {
  padding-block: clamp(52px, 6.5vw, 86px);
}
.desatero-grid,
.prog-list,
.cand-grid,
.about-photo-grid,
.akt-grid {
  gap: clamp(20px, 2.4vw, 32px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 22px);
  justify-content: center;
  margin-top: clamp(34px, 4.2vw, 56px);
}
.program-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 4.2vw, 56px);
}
.cand-card {
  min-height: 0;
}
.cand-card.lead .cand-body {
  justify-content: flex-start;
}
.cand-body {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.cand-card.lead .cand-body {
  padding: 22px;
}
.cand-body h3,
.cand-card.lead .cand-body h3 {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.12rem, calc(1rem + 0.55vw), 1.35rem);
  line-height: 1.14;
  min-height: var(--cand-name-row-height, auto);
  letter-spacing: -0.015em;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}
.cand-body .quote {
  margin-top: 0;
  font-size: clamp(0.94rem, calc(0.9rem + 0.22vw), 1.02rem);
  line-height: 1.3;
}
.cand-body .quote strong { font-weight: 800; }
.cand-card.lead .cand-body .quote {
  font-size: clamp(0.94rem, calc(0.9rem + 0.22vw), 1.02rem);
}
.cand-body .activity {
  margin-top: 7px;
  font-size: clamp(0.94rem, calc(0.9rem + 0.22vw), 1.02rem);
  line-height: 1.3;
}

.qr-landing-page {
  background: var(--bg);
}
.qr-hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
}
.qr-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.qr-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1800 / 1199;
  object-fit: cover;
  object-position: center center;
}
.qr-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(176px, 28vw, 260px);
  height: auto;
  margin: clamp(-150px, -14vw, -108px) auto 0;
  filter: drop-shadow(0 18px 30px rgba(19, 52, 31, 0.22));
}
.qr-links-section {
  padding: clamp(24px, 4vw, 48px) 0 clamp(44px, 6vw, 78px);
}
.qr-links-wrap {
  max-width: 980px;
}
.qr-action-label {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  text-align: center;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, calc(1rem + 0.7vw), 1.55rem);
  font-weight: 780;
}
.qr-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.qr-link {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 26px);
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.qr-link::before {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 112px;
  height: 112px;
  opacity: 0.32;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.qr-link-primary::before {
  background-image: url("../qr/pict1_web-20260617.svg");
}
.qr-link-facebook::before {
  background-image: url("../qr/pict2_fb-20260617.svg");
}
.qr-link-instagram::before {
  background-image: url("../qr/pict3_ig-20260617.svg");
}
.qr-link span::after {
  content: "→";
  font-size: 1.15em;
}
.qr-link span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: 0.03em;
}
.qr-link strong {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.92;
}
.qr-link-primary { background: #18834d; }
.qr-link-facebook { background: #1877f2; }
.qr-link-instagram { background: linear-gradient(135deg, #f45b42, #c9289b); }

html.js .des-program-card.reveal,
html.js .prog-static-card.reveal {
  opacity: 1;
  transform: none;
}
.des-program-card,
.prog-static-card {
  overflow: hidden;
}
html.js .des-program-card p,
html.js .prog-static-card .perex,
html.js .prog-static-card .prog-groups {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-26px);
  transition:
    max-height 0.86s cubic-bezier(0.18, 0.82, 0.22, 1),
    opacity 0.52s ease,
    transform 0.74s cubic-bezier(0.18, 0.82, 0.22, 1);
}
html.js .des-program-card.in p,
html.js .prog-static-card.in .perex,
html.js .prog-static-card.in .prog-groups {
  transition-delay: 0.08s;
}
html.js .prog-static-card .perex {
  margin-bottom: 0;
}
html.js .des-program-card.in p {
  max-height: 420px;
  opacity: 1;
  transform: none;
}
html.js .prog-static-card.in .perex {
  max-height: 240px;
  margin-bottom: 26px;
  opacity: 1;
  transform: none;
}
html.js .prog-static-card.in .prog-groups {
  max-height: 1800px;
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
  .wrap { padding-inline: 18px; }
  .section {
    padding-block: 62px;
  }
  .page-hero {
    padding-block: 54px;
  }
  .page-claim {
    margin: 16px 0 18px;
    font-size: clamp(1.32rem, calc(1rem + 4.3vw), 1.82rem);
  }
  .brand-logo {
    width: clamp(150px, 54vw, 210px);
    max-height: 48px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 42px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-copy { order: 1; max-width: none; }
  .hero-media { order: 2; max-width: none; width: 100%; }
  .hero h1 {
    max-width: 15ch;
    font-size: clamp(1.82rem, calc(1.12rem + 5.2vw), 2.58rem);
    line-height: 1.04;
  }
  .hero-motto {
    max-width: 24ch;
    font-size: clamp(1.78rem, calc(1.1rem + 5vw), 2.42rem);
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-photo-frame {
    aspect-ratio: 1800 / 1351;
    min-height: 0;
    border-radius: 10px;
  }
  .hero-photo { min-height: 0; }

  .about-head .about-eyebrow,
  .about-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
  }
  .about-copy {
    font-size: clamp(1.18rem, calc(1rem + 1.9vw), 1.38rem);
    line-height: 1.42;
  }
  .about-copy p:first-child {
    font-size: clamp(1.34rem, calc(1rem + 3vw), 1.6rem);
  }
  .about-logo-real { max-width: min(78vw, 310px); }
  .about-photo-grid { grid-template-columns: 1fr; }
  .about-photo,
  .about-photo img {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .cand-grid { grid-template-columns: 1fr; }
  .akt-grid { grid-template-columns: minmax(0, 1fr); }
  .desatero-grid,
  .prog-list,
  .cand-grid,
  .about-photo-grid,
  .akt-grid {
    gap: 22px;
  }
  .cta-row,
  .program-cta {
    margin-top: 36px;
  }
  .cand-card.lead { grid-column: auto; }
  .cand-photo,
  .cand-card.lead .cand-photo { aspect-ratio: 1 / 1; }
  .cand-body {
    padding: 22px;
  }
  .cand-body h3,
  .cand-card.lead .cand-body h3 {
    font-size: clamp(1.08rem, calc(0.94rem + 1.9vw), 1.22rem);
  }
  .cand-body .role,
  .role {
    min-height: var(--cand-role-row-height, auto);
    margin-top: 10px;
    margin-bottom: 18px;
  }

  html.js .des-program-card p,
  html.js .prog-static-card .perex,
  html.js .prog-static-card .prog-groups {
    transform: translateY(-34px);
    transition-duration: 0.92s, 0.58s, 0.82s;
  }
  .prog-static-card {
    padding: 24px 20px;
  }
  .prog-static-head {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
  }
  .prog-static-head .cislo {
    width: auto;
  }
  .prog-static-head .perex,
  .prog-groups-static,
  .prog-body .perex,
  .prog-groups {
    padding-left: 0;
    max-width: none;
  }
  .prog-group li {
    padding-left: 20px;
  }
  .prog-group li::before {
    top: 0.72em;
  }

  .qr-hero {
    padding-inline: 0;
  }
  .qr-photo {
    border-radius: 0;
  }
  .qr-logo {
    width: clamp(164px, 48vw, 220px);
    margin-top: clamp(-124px, -27vw, -86px);
  }
  .qr-links-section {
    padding-top: 24px;
  }
  .qr-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .qr-link {
    min-height: 88px;
  }

  .site-footer.site-footer-centered {
    padding-top: 38px;
    padding-bottom: 28px;
  }
  .footer-brand-logo {
    width: 154px;
    max-height: 52px;
  }
  .footer-center-wrap { gap: 14px; }
  .footer-center-brand { gap: 22px; }
  .footer-bottom-centered {
    margin-top: 16px;
    padding-top: 18px;
  }
}
