:root {
  --magenta: #b80d5c;
  --magenta-deep: #a30f59;
  --yellow: #ffed00;
  --cream: #fcf7e0;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #464f56;
  --line: #e5e7e7;
  --footer-bg: #323132;
  --shadow: 0 18px 40px rgba(184, 13, 92, 0.14);
  --sans: Inter, Arial, Helvetica, sans-serif;
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.section-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  color: var(--magenta);
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.08;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: var(--magenta);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.brand-mark {
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-place {
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--cream);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--yellow);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Rozbalovací nabídka "Ke stažení" */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 140ms ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--yellow);
}

.nav-dropdown-caret {
  transition: transform 160ms ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  display: none;
  flex-direction: column;
  padding: 8px;
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  z-index: 20;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--magenta);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  line-height: 1.3;
}

.nav-dropdown-menu a::after {
  content: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--magenta);
  background: rgba(0, 0, 0, 0.06);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--yellow);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border: 2px solid transparent;
  border-radius: 30px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--yellow);
  color: var(--magenta);
  border-color: var(--yellow);
}

.button-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.button-secondary {
  background: transparent;
  color: var(--magenta);
  border-color: var(--magenta);
}

.button-secondary:hover {
  background: var(--magenta);
  color: var(--yellow);
}

/* ---------- Hero (full-bleed magenta) ---------- */
.hero {
  background: var(--magenta);
  padding: clamp(60px, 10vw, 128px) 0;
}

.hero-copy {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 24px;
  padding: 7px 20px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--magenta);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--yellow);
  font-size: clamp(3.2rem, 8.5vw, 7rem);
  line-height: 0.98;
}

.hero-lead {
  width: min(800px, 100%);
  margin: 0 auto;
  color: var(--cream);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
}

.hero-lead strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.hero-lead .hero-slogan {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-lead .hero-slogan {
    font-size: clamp(0.7rem, 3vw, 1.5rem);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero .button-secondary {
  color: var(--cream);
  border-color: var(--cream);
}

.hero .button-secondary:hover {
  background: var(--cream);
  color: var(--magenta);
}

/* ---------- Team banner ---------- */
.team-banner {
  width: 100%;
  margin: 0;
  border-bottom: 6px solid var(--yellow);
}

.team-banner img {
  width: 100%;
  height: auto;
}

/* ---------- Intro statement band ---------- */
.band-magenta {
  background: var(--magenta);
  color: var(--cream);
}

.intro {
  padding: clamp(56px, 8vw, 100px) 0;
}

h4 {
  width: min(1000px, calc(100vw - 40px));
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
}

/* ---------- Content sections ---------- */
.content-section {
  padding: clamp(60px, 8vw, 104px) 0;
}

.section-heading {
  margin-bottom: clamp(26px, 4vw, 46px);
  text-align: center;
}

/* ---------- Program accordion ---------- */
.program-intro {
  max-width: 100%;
  margin-bottom: clamp(22px, 3vw, 36px);
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  white-space: normal;
}

@media (max-width: 680px) {
  .program-intro {
    font-size: 1rem;
  }
}

.program-accordion {
  display: grid;
  gap: 12px;
}

.program-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: program-priority;
}

.program-overview li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--magenta);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 8px 24px rgba(62, 23, 72, 0.06);
  counter-increment: program-priority;
}

.program-overview li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--magenta);
  font-size: 1.2rem;
  content: counter(program-priority);
}

.program-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.program-item[open] {
  border-color: var(--magenta);
  box-shadow: var(--shadow);
}

.program-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  color: var(--magenta);
  font-family: var(--display);
  font-weight: 700;
}

.program-item summary::-webkit-details-marker {
  display: none;
}

.program-item summary::after {
  margin-left: auto;
  font-size: 2rem;
  line-height: 1;
  content: "+";
  color: var(--magenta);
}

.program-item[open] summary::after {
  content: "\2013";
}

.program-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--magenta);
  font-size: 1.3rem;
}

.program-title {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.05;
}

.program-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--magenta);
  opacity: 0.75;
}

.program-body {
  padding: 0 28px 24px 86px;
}

.program-body ul {
  margin: 0;
  padding-left: 20px;
}

.program-body li {
  margin-bottom: 8px;
}

.program-body li::marker {
  color: var(--magenta);
}

.program-subhead {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--magenta);
}

/* ---------- Candidate ---------- */
.candidate-section {
  padding-top: clamp(44px, 6vw, 76px);
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.candidate-card {
  display: flex;
  flex-direction: column;
}

.candidate-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
}

.candidate-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.candidate-card:nth-child(4n+1) .candidate-photo { background: #94d090; }
.candidate-card:nth-child(4n+2) .candidate-photo { background: var(--yellow); }
.candidate-card:nth-child(4n+3) .candidate-photo { background: #f795c1; }
.candidate-card:nth-child(4n+4) .candidate-photo { background: #cfaeff; }

.candidate-num {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--magenta);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}

.candidate-card h3 {
  margin-bottom: 2px;
}

.candidate-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Priority / values (cream band) ---------- */
.band-cream {
  background: var(--cream);
}

.statement-list {
  display: grid;
  gap: 2px;
}

.statement-list article {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 2px solid rgba(184, 13, 92, 0.22);
}

.statement-list article:last-child {
  border-bottom: 2px solid rgba(184, 13, 92, 0.22);
}

.statement-list h3 {
  margin-bottom: 0;
}

.statement-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: clamp(60px, 8vw, 104px) 0;
}

.contact-panel {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 54px);
  border-radius: 16px;
  background: var(--magenta);
  color: var(--cream);
}

.contact-panel .pill {
  background: var(--yellow);
  color: var(--magenta);
}

.contact-panel h2 {
  margin-bottom: 10px;
  color: var(--yellow);
}

.contact-panel p {
  max-width: 620px;
  color: var(--cream);
}

.contact-email {
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--magenta);
}

.social-links svg {
  flex: 0 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  text-align: center;
  padding: 30px clamp(20px, 4vw, 48px);
  background: var(--footer-bg);
  color: var(--cream);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  color: rgba(252, 247, 224, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: var(--magenta);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a,
  .nav-dropdown-toggle {
    min-height: 44px;
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .candidate-layout,
  .statement-list article {
    grid-template-columns: 1fr;
  }

  .statement-list article {
    gap: 6px;
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-lead .hero-slogan {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
    white-space: normal;
  }

  .section-shell {
    width: min(100% - 28px, 1200px);
  }

  .hero-lead,
  h4 {
    width: min(100vw - 28px, 1200px);
  }

  .site-header {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 2.7rem);
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 14vw, 3.7rem);
  }

  .hero-actions {
    width: 100%;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .brand-place {
    display: none;
  }

  .program-item summary {
    gap: 12px;
    padding: 16px;
  }

  .program-body {
    padding: 0 16px 20px 16px;
  }

  .program-num {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .program-title {
    font-size: 1.25rem;
  }

  .content-section,
  .contact-section {
    padding-block: 50px;
  }

  .contact-panel {
    padding: 26px 20px;
  }

  .social-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .social-links a {
    width: 100%;
  }

  .contact-panel .button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .program-overview {
    grid-template-columns: 1fr;
  }

  .program-overview li {
    min-height: 70px;
    padding: 13px 16px;
  }

  .program-overview li::before {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .candidate-card {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .candidate-card h3 {
    font-size: 1.75rem;
  }

  .candidate-role {
    font-size: 1rem;
  }

  .candidate-topics {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* ---------- Polish ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

section[id],
main[id] {
  scroll-margin-top: 96px;
}

.program-item summary:hover {
  color: var(--magenta-deep);
}
.charakteristika {
  font-size: 0.60rem;
  color: var(--magenta-deep);
  line-height: 1.5;
  margin-top: 1rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.candidate-topics {
  padding-left: 1.25rem;
  text-align: left;
  text-justify: auto;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  font-size: 0.85rem;
}

.charakteristika a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.charakteristika a:hover,
.charakteristika a:focus-visible {
  color: var(--footer-bg);
}
.kandidat {
  display: flow-root;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 1rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  width: min(900px, calc(100% - 6rem));
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2rem;
}
.kandidat-portrait {
  float: left;
  width: clamp(170px, 22vw, 240px);
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 2rem 1.25rem 0;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
}
.kandidat h1 {
  text-align: left;
  text-justify: auto;
}
.kandidat p {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}
.kandidat .charakteristika {
  text-align: justify;
  text-justify: inter-word;
}
.kandidat .charakteristika:has(> strong) {
  text-align: left;
  text-justify: auto;
}
.image-frames {
  margin-left: 3rem;
  margin-right: 3rem;
  height: auto;
}
.kandidat-image {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

/* Fotogalerie */
.gallery {
  width: calc(100% - 6rem);
  max-width: 850px;
  margin: 2rem auto;
}
.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  aspect-ratio: 16 / 9;
}
.gallery-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  opacity: 0.72;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}
.gallery-item:hover,
.gallery-item.is-active {
  opacity: 1;
}
.gallery-item.is-active {
  box-shadow: inset 0 0 0 3px var(--accent, #0a7);
}
.gallery-item:focus-visible {
  outline: 3px solid var(--accent, #0a7);
  outline-offset: 2px;
}

.gallery-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}
.gallery-prev {
  left: 1.25rem;
}
.gallery-next {
  right: 1.25rem;
}
.gallery-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  font: 600 0.9rem/1.2 Inter, sans-serif;
}
@media (max-width: 600px) {
  .gallery {
    width: calc(100% - 2rem);
    margin: 1.5rem 1rem;
  }
  .gallery-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }
  .gallery-prev {
    left: 0.5rem;
  }
  .gallery-next {
    right: 0.5rem;
  }
}
.personal-contact {
  margin-top: 3rem;
  margin-left: 3rem;
  margin-right: 3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--magenta);
}
.personal-contact h3 {
  font-size: 1.5rem;
  color: var(--footer-bg);
  margin-bottom: 2rem;
}
.personal-contact-info {
  font-size: 1rem;
  color: var(--line);
  line-height: 1.5;
  margin-top: -0.7rem;
}

@media (max-width: 700px) {
  .candidate-topics {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .kandidat {
    width: calc(100% - 2rem);
    margin-top: 2rem;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
  }

  .kandidat p {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .kandidat-portrait {
    float: none;
    width: min(72vw, 240px);
    margin: 0 auto 1.5rem;
  }

  .image-frames,
  .personal-contact {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .kandidat-image {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Jak to všechno začalo ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.story-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 9vw, 112px);
  background: var(--magenta);
}

.story-hero-inner {
  position: relative;
  z-index: 1;
}

.story-hero .pill {
  color: var(--yellow);
}

.story-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--cream);
}

.story-lead {
  max-width: none;
  margin-bottom: 0;
  color: var(--cream);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.story-content {
  max-width: 900px;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.story-content p {
  margin-bottom: 1.4em;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.8;
  text-align: justify;
}

.story-content p:first-of-type::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--magenta);
  font-family: var(--display);
  font-size: 4.2em;
  font-weight: 700;
  line-height: 0.78;
}

.story-content p:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

.story-gallery-section {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
  background: var(--cream);
}

.story-gallery-heading {
  max-width: 850px;
  margin: 0 auto 30px;
}

.story-gallery-heading .pill {
  color: var(--magenta);
}

.story-gallery-section .gallery {
  max-width: 1000px;
  margin-top: 0;
}

.story-gallery-section .gallery-stage {
  box-shadow: var(--shadow);
}

.story-gallery-section .gallery-item.is-active {
  box-shadow: inset 0 0 0 3px var(--magenta);
}

.story-gallery-section .gallery-item:focus-visible {
  outline-color: var(--magenta);
}

/* ---------- Fotogalerie kandidátů ---------- */
.candidate-gallery-section {
  clear: both;
  padding: clamp(48px, 7vw, 84px) 0 clamp(72px, 9vw, 108px);
  background: var(--cream);
}

.candidate-gallery-section .gallery {
  max-width: 1000px;
  margin-top: 0;
  margin-bottom: 0;
}

.candidate-gallery-section .gallery-stage {
  box-shadow: var(--shadow);
}

.candidate-gallery-section .gallery-item.is-active {
  box-shadow: inset 0 0 0 3px var(--magenta);
}

.candidate-gallery-section .gallery-item:focus-visible {
  outline-color: var(--magenta);
}

@media (max-width: 700px) {
  .story-lead {
    white-space: normal;
  }

  .story-content p {
    line-height: 1.7;
  }
}


/* =========================================================
   Volební program 2026–2030 — hierarchický strom
   Doplněno 30. 9. 2026
   ========================================================= */
.program-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
}

.program-control,
.program-pdf-link {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  font: 700 0.82rem/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.program-control {
  border: 2px solid var(--magenta);
  background: var(--magenta);
  color: #fff;
}

.program-control-secondary {
  background: transparent;
  color: var(--magenta);
}

.program-pdf-link {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--yellow);
  background: var(--yellow);
  color: var(--magenta);
}

.program-control:hover,
.program-pdf-link:hover {
  transform: translateY(-1px);
}

.program-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.program-index-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(62, 23, 72, 0.06);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.program-index-card:hover,
.program-index-card:focus-visible {
  border-color: var(--magenta);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.program-index-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--magenta);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
}

.program-index-title {
  color: var(--magenta);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.program-index-arrow {
  color: var(--magenta);
  font-size: 1.35rem;
  font-weight: 800;
}

.program-tree {
  gap: 14px;
}

.program-level1 {
  scroll-margin-top: 106px;
  overflow: hidden;
}

.program-level1 > summary {
  min-height: 76px;
}

.program-level1 > .program-body {
  padding: 4px 22px 24px 84px;
}

.program-main-intro {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  background: var(--cream);
  color: var(--muted);
}

.program-level2-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.program-level2 {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 106px;
}

.program-level2[open] {
  border-color: rgba(184, 13, 92, 0.45);
  background: #fffdfd;
}

.program-level2 > summary,
.program-level3 > summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.program-level2 > summary {
  padding: 13px 14px;
  color: var(--magenta);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
}

.program-level2 > summary::-webkit-details-marker,
.program-level3 > summary::-webkit-details-marker {
  display: none;
}

.program-level2 > summary::after,
.program-level3 > summary::after {
  margin-left: auto;
  flex: 0 0 auto;
  content: "+";
  color: var(--magenta);
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.program-level2[open] > summary::after,
.program-level3[open] > summary::after {
  content: "−";
}

.program-subnum {
  flex: 0 0 auto;
  min-width: 50px;
  color: var(--magenta);
  font-weight: 800;
}

.program-subtitle {
  font-size: 1.08rem;
}

.program-level2-body {
  padding: 0 16px 14px 76px;
}

.program-copy {
  margin: 7px 0;
  color: var(--muted);
}

.program-copy-emphasis {
  font-weight: 700;
  color: var(--ink);
}

.program-points {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.program-points li {
  margin: 7px 0;
}

.program-points li::marker {
  color: var(--magenta);
}

.program-point-nested {
  margin-left: 20px !important;
  list-style-type: circle;
  color: var(--muted);
}

.program-points-nested {
  margin-top: 6px;
  color: var(--muted);
}

.program-level3-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.program-level3 {
  border-top: 1px dashed rgba(184, 13, 92, 0.25);
}

.program-level3:first-child {
  border-top: 0;
}

.program-level3 > summary {
  padding: 10px 0;
  color: var(--magenta);
  font-weight: 700;
}

.program-level3-body {
  padding: 0 0 8px 62px;
}

.program-item[open] > summary {
  border-bottom: 1px solid rgba(184, 13, 92, 0.12);
}

.program-item[open] > summary::after {
  content: "−";
}

@media (max-width: 760px) {
  .program-index-grid {
    grid-template-columns: 1fr;
  }

  .program-toolbar {
    align-items: stretch;
  }

  .program-control,
  .program-pdf-link {
    justify-content: center;
    text-align: center;
  }

  .program-level1 > .program-body {
    padding: 4px 12px 18px;
  }

  .program-level2-body {
    padding: 0 12px 12px;
  }

  .program-level3-body {
    padding-left: 12px;
  }

  .program-subnum {
    min-width: 46px;
  }
}

@media (max-width: 480px) {
  .program-index-card {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    min-height: 64px;
    padding: 10px 12px;
  }

  .program-index-num {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .program-level1 > summary {
    align-items: flex-start;
    padding: 14px 12px;
  }

  .program-level2 > summary {
    padding: 12px 10px;
  }

  .program-subtitle {
    font-size: 1rem;
  }
}

/* =========================================================
   Volební program — profesionální vizuál V3
   Pouze prezentační úpravy, obsah programu beze změny.
   ========================================================= */
#program {
  --program-surface: #ffffff;
  --program-soft: #fbf9f5;
  --program-soft-magenta: rgba(184, 13, 92, 0.055);
  --program-border: rgba(28, 31, 35, 0.11);
  --program-shadow: 0 12px 34px rgba(35, 25, 31, 0.075);
  --program-shadow-open: 0 18px 46px rgba(184, 13, 92, 0.13);
  width: min(1080px, calc(100% - 40px));
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(76px, 9vw, 116px);
}

#program .section-heading {
  position: relative;
  margin: 0 auto 16px;
  text-align: center;
}

#program .section-heading::after {
  display: block;
  width: 64px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 99px;
  background: var(--yellow);
  content: "";
}

#program .program-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 12px;
  padding: 6px 13px;
  border: 1px solid rgba(184, 13, 92, 0.16);
  border-radius: 999px;
  background: var(--program-soft-magenta);
  color: var(--magenta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

#program .section-heading h2 {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(2.55rem, 5.2vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
}

#program .program-intro {
  max-width: none;
  margin: 0 auto clamp(26px, 4vw, 38px);
  color: #5f6267;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  white-space: nowrap;
}

@media (max-width: 920px) {
  #program .program-intro {
    white-space: normal;
  }
}

#program .program-toolbar {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(34px, 5vw, 50px);
  padding: 7px;
  gap: 7px;
  border: 1px solid var(--program-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.06);
}

#program .program-control,
#program .program-pdf-link {
  min-height: 42px;
  padding: 10px 16px;
  border-width: 1px;
  border-radius: 10px;
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.018em;
  line-height: 1.15;
  box-shadow: none;
}

#program .program-control {
  border-color: var(--magenta);
  background: var(--magenta);
}

#program .program-control-secondary {
  border-color: transparent;
  background: #f4f2ef;
  color: #34373b;
}

#program .program-pdf-link {
  gap: 7px;
  border-color: rgba(184, 13, 92, 0.14);
  background: var(--yellow);
  color: var(--magenta);
}

#program .program-pdf-link::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 21px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(184, 13, 92, 0.1);
  content: "PDF";
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

#program .program-control:hover,
#program .program-pdf-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(26, 23, 24, 0.09);
}

#program .program-control:focus-visible,
#program .program-pdf-link:focus-visible,
#program summary:focus-visible {
  outline: 3px solid rgba(184, 13, 92, 0.22);
  outline-offset: 3px;
}

#program .program-tree {
  gap: 15px;
}

#program .program-level1 {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--program-border);
  border-radius: 18px;
  background: var(--program-surface);
  box-shadow: var(--program-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#program .program-level1:hover {
  border-color: rgba(184, 13, 92, 0.25);
}

#program .program-level1[open] {
  border-color: rgba(184, 13, 92, 0.42);
  box-shadow: var(--program-shadow-open);
}

#program .program-level1 > summary {
  position: relative;
  min-height: 84px;
  padding: 16px 20px 16px 18px;
  gap: 18px;
  background: #fff;
  transition: background 180ms ease;
}

#program .program-level1 > summary::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  content: "";
  transition: background 180ms ease;
}

#program .program-level1[open] > summary {
  border-bottom: 1px solid rgba(184, 13, 92, 0.1);
  background: linear-gradient(90deg, rgba(184, 13, 92, 0.048), #fff 42%);
}

#program .program-level1[open] > summary::before {
  background: var(--magenta);
}

#program .program-num {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(184, 13, 92, 0.08);
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38);
  font-size: 1.24rem;
  line-height: 1;
}

#program .program-title {
  padding-right: 8px;
  color: #2b2529;
  font-size: clamp(1.3rem, 2vw, 1.66rem);
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1.08;
}

/* Elegantní šipka místo velkého + / − */
#program .program-level1 > summary::after {
  width: 11px;
  height: 11px;
  margin: 0 7px 0 auto;
  border: 0;
  border-right: 2px solid var(--magenta);
  border-bottom: 2px solid var(--magenta);
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transform-origin: center;
  transition: transform 180ms ease;
}

#program .program-level1[open] > summary::after {
  content: "";
  transform: rotate(-135deg) translate(-2px, -1px);
}

#program .program-level1 > .program-body {
  padding: 22px 24px 26px 86px;
  background: #fff;
  animation: programReveal 180ms ease both;
}

#program .program-main-intro {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid var(--magenta);
  border-radius: 8px;
  background: #f8f5f6;
  color: #555b60;
  font-size: 0.96rem;
  line-height: 1.6;
}

#program .program-level2-list {
  gap: 10px;
  margin-top: 0;
}

#program .program-level2 {
  border: 1px solid rgba(26, 28, 31, 0.095);
  border-radius: 12px;
  background: #faf9f7;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#program .program-level2:hover {
  border-color: rgba(184, 13, 92, 0.22);
}

#program .program-level2[open] {
  border-color: rgba(184, 13, 92, 0.3);
  background: #fff;
  box-shadow: 0 7px 20px rgba(32, 27, 29, 0.05);
}

#program .program-level2 > summary {
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  gap: 14px;
  color: #282b2f;
  font-family: var(--sans);
  line-height: 1.28;
}

#program .program-subnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  min-width: 50px;
  height: 30px;
  border-radius: 7px;
  background: rgba(184, 13, 92, 0.08);
  color: var(--magenta);
  font-size: 0.81rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

#program .program-subtitle {
  color: #25282c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

#program .program-level2 > summary::after,
#program .program-level3 > summary::after {
  width: 8px;
  height: 8px;
  margin: 0 4px 0 auto;
  border-right: 1.8px solid var(--magenta);
  border-bottom: 1.8px solid var(--magenta);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

#program .program-level2[open] > summary::after,
#program .program-level3[open] > summary::after {
  content: "";
  transform: rotate(-135deg) translate(-1px, -1px);
}

#program .program-level2-body {
  padding: 4px 18px 18px 78px;
  animation: programReveal 170ms ease both;
}

#program .program-copy {
  margin: 8px 0;
  color: #555b60;
  line-height: 1.65;
}

#program .program-points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: #383c40;
  font-size: 0.96rem;
  line-height: 1.58;
}

#program .program-points > li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid rgba(20, 22, 24, 0.055);
}

#program .program-points > li:last-child {
  border-bottom: 0;
}

#program .program-points > li::before {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  content: "";
}

#program .program-points-nested {
  margin: 6px 0 0 8px;
  padding-left: 0;
  color: #555b60;
}

#program .program-points-nested > li {
  padding-left: 18px;
}

#program .program-points-nested > li::before {
  width: 5px;
  height: 5px;
  background: #8b8e92;
}

#program .program-level3-list {
  margin-top: 12px;
  padding: 0 0 0 12px;
  border-left: 2px solid rgba(184, 13, 92, 0.12);
}

#program .program-level3 {
  border-top: 1px solid rgba(184, 13, 92, 0.1);
}

#program .program-level3 > summary {
  align-items: center;
  min-height: 48px;
  padding: 10px 2px;
  color: #3a3438;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

#program .program-level3-body {
  padding: 0 4px 13px 62px;
  animation: programReveal 170ms ease both;
}

@keyframes programReveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  #program {
    width: min(100% - 24px, 1080px);
    padding-top: 48px;
    padding-bottom: 72px;
  }

  #program .program-toolbar {
    width: 100%;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #program .program-pdf-link {
    grid-column: 1 / -1;
  }

  #program .program-level1 > summary {
    min-height: 72px;
    padding: 13px 14px 13px 12px;
    gap: 12px;
  }

  #program .program-num {
    width: 44px;
    height: 44px;
    font-size: 1.08rem;
  }

  #program .program-title {
    font-size: clamp(1.13rem, 5vw, 1.38rem);
  }

  #program .program-level1 > .program-body {
    padding: 14px 12px 18px;
  }

  #program .program-level2 > summary {
    padding: 11px 10px;
    gap: 10px;
  }

  #program .program-subnum {
    flex-basis: 45px;
    min-width: 45px;
    height: 28px;
  }

  #program .program-subtitle {
    font-size: 0.96rem;
  }

  #program .program-level2-body {
    padding: 2px 12px 14px;
  }

  #program .program-points {
    font-size: 0.94rem;
  }

  #program .program-level3-list {
    margin-left: 2px;
    padding-left: 10px;
  }

  #program .program-level3-body {
    padding-left: 8px;
  }
}

@media (max-width: 430px) {
  #program .program-toolbar {
    grid-template-columns: 1fr;
  }

  #program .program-pdf-link {
    grid-column: auto;
  }

  #program .program-level1 > summary::after {
    margin-right: 3px;
  }
}

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

/* V6 — návrat názvů programu do STAN magenty */
#program .program-level1 > summary .program-title,
#program .program-level1[open] > summary .program-title,
#program .program-level2 > summary .program-subtitle,
#program .program-level2[open] > summary .program-subtitle,
#program .program-level3 > summary > span:not(.program-subnum),
#program .program-level3[open] > summary > span:not(.program-subnum) {
  color: var(--magenta);
}
