/* Jan Hušbauer, kampaň Praha. Klidný editorial v barvách hnutí. Písmo Merriweather máme u sebe, nikam se nevolá. */

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/merriweather-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/merriweather-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Barvy podle webu hnutí: tmavá modrofialová, zelená a bílá. */
  --blue: #29235c;
  --blue-deep: #1c1840;
  --sky: #4a3f9e;
  --navy: #13102a;
  --canvas: #ffffff;
  --paper: #ffffff;
  --tint: #ebeaf6;
  --tint-green: #ebeaf6;
  --zelena: #3ba48c;
  --zelena-tmava: #2f8b76;
  --zelena-svetla: #e6f6f2;
  --ink: #13102a;
  --muted: #45415e;
  --hairline: #e4e2ee;
  --hairline-dark: rgba(255, 255, 255, 0.16);

  --wrap: 1160px;
  --r-s: 6px;
  --r-l: 22px;

  --f-display: "Merriweather", Georgia, "Times New Roman", serif;
  --f-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

.section-head { max-width: 640px; }
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 700;
  margin: 20px 0 0;
  text-wrap: balance;
}
.section-head p {
  color: var(--muted);
  max-width: 56ch;
  margin: 22px 0 0;
}

section { padding: 150px 0; }

/* ---------- navigace ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0;
}
.mark-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--r-s);
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a { transition: color 150ms ease; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: var(--r-s);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  transition: background 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease;
  white-space: nowrap;
}
.btn:hover { background: #3a3175; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 0 20px;
}
.btn-ghost:hover { background: #fff; border-color: #d3d8de; }
.btn-nav { height: 40px; padding: 0 18px; font-size: 14px; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-s);
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}
.nav-burger span { width: 16px; height: 1.5px; background: var(--ink); display: block; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 132px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: end;
  min-height: 620px;
}
.hero-copy { padding-bottom: 72px; }

.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(52px, 8.4vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
  margin: 18px 0 0;
}
.hero h1 span { display: block; }
.hero h1 .h1-second { color: var(--blue); }

.hero-claim {
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 30ch;
  margin: 28px 0 0;
  text-wrap: balance;
}
.hero-sub {
  color: var(--muted);
  max-width: 46ch;
  margin: 14px 0 0;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* postava */
.hero-figure {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}
.hero-shape {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 96%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 30%, #ffffff 0%, #f3f2fa 45%, #e7e5f3 100%);
  box-shadow:
    0 40px 90px -40px rgba(41, 35, 92, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.hero-shape::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(41, 35, 92, 0.14);
}
.hero-photo {
  position: relative;
  z-index: 2;
  height: clamp(400px, 52vw, 620px);
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 26px 44px rgba(7, 28, 44, 0.28));
}

.hero-strip {
  border-top: 0;
  margin-top: 8px;
}
.hero-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f7f6fc;
  border: 1px solid var(--hairline);
  border-radius: var(--r-l);
  padding: 8px;
}
.strip-item {
  padding: 30px 32px;
  border-right: 1px solid var(--hairline);
}
.strip-item:last-child { border-right: 0; }
.strip-item strong {
  display: block;
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.strip-item span { display: block; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 32ch; }

/* ---------- o mně ---------- */

/* Sekce O mně navazuje na úvod bez zlomu, drží stejnou bílou. */
.about { background: var(--canvas); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.about-portrait {
  border-radius: var(--r-l);
  overflow: hidden;
  background: #e9edf1;
  aspect-ratio: 4 / 5;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 700;
  margin: 14px 0 0;
  text-wrap: balance;
}
.about-text p { color: var(--muted); max-width: 60ch; }
.about-text p.lead { color: var(--ink); font-size: 19px; }
.about-sign {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.about-sign div strong { display: block; font-family: var(--f-display); font-size: 26px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.about-sign div span { color: var(--muted); font-size: 14px; }

/* ---------- program ---------- */

.program-list { margin-top: 56px; border-top: 1px solid var(--hairline); }
  
.program-item {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: baseline;
  padding: 34px 12px 34px 16px;
  border-bottom: 1px solid var(--hairline);
  transition: background 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.program-item:hover { background: #f7f6fb; }
.program-num {
  font-family: var(--f-display);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--sky);
  letter-spacing: 0.06em;
  font-weight: 700;
}
.program-item h3 {
  font-family: var(--f-display);
  font-size: 23px;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0;
  transition: color 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.program-item:hover h3 { color: var(--blue); transform: translateX(3px); }
.program-item p { margin: 0; color: var(--muted); }

/* ---------- citát ---------- */

.quote {
  background: var(--navy);
  color: #fff;
}
.quote .wrap { max-width: 900px; text-align: center; }
.quote blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.22;
  letter-spacing: 0;
  font-weight: 600;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

/* ---------- cesta ---------- */

.path-list { margin-top: 52px; }
.path-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}
.path-item:last-child { border-bottom: 1px solid var(--hairline); }
.path-year {
  font-family: var(--f-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--blue);
}
.path-item h3 { margin: 0 0 4px; font-family: var(--f-display); font-size: 19px; letter-spacing: -0.015em; }
.path-item p { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- aktuality ---------- */

.news { background: var(--paper); }
.news-list { margin-top: 48px; border-top: 1px solid var(--hairline); }
.news-item {
  display: grid;
  grid-template-columns: 132px 1fr 32px;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.news-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-item h3 { margin: 0; font-family: var(--f-display); font-size: 20px; letter-spacing: 0; font-weight: 600; transition: color 150ms ease; }
.news-item:hover h3 { color: var(--blue); }
.news-arrow { color: var(--muted); justify-self: end; transition: transform 150ms ease, color 150ms ease; }
.news-item:hover .news-arrow { transform: translateX(4px); color: var(--blue); }

/* ---------- kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}
.contact-grid h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 700;
  margin: 14px 0 0;
  text-wrap: balance;
}
.contact-grid > div > p { color: var(--muted); max-width: 50ch; }
.contact-rows { border-top: 1px solid var(--hairline); }
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.contact-row span { color: var(--muted); font-size: 14px; }
.contact-row a, .contact-row strong { font-weight: 600; }
.contact-row a:hover { color: var(--blue); }

/* ---------- patička ---------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 40px;
  font-size: 14px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer .mark { color: #fff; font-size: 17px; }

.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- nástup ---------- */

.reveal {
  /* Text je vidět sám o sobě. Když animace z jakéhokoli důvodu nenaskočí,
     nezůstane po ní prázdná stránka. */
  opacity: 1;
  animation: rise 480ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.reveal[data-d="1"] { animation-delay: 60ms; }
.reveal[data-d="2"] { animation-delay: 120ms; }
.reveal[data-d="3"] { animation-delay: 180ms; }
.reveal[data-d="4"] { animation-delay: 240ms; }
.reveal[data-d="5"] { animation-delay: 300ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- responzivita ---------- */

@media (max-width: 980px) {
  section { padding: 104px 0; }
  .hero { padding-top: 108px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero-copy { padding-bottom: 24px; }
  .hero-photo { height: clamp(320px, 62vw, 460px); }
  .hero-shape { width: min(420px, 88%); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 340px; }
  .program-item { grid-template-columns: 52px 1fr; }
  .program-item p { grid-column: 2; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 28px 16px;
  }
  .nav-links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .nav .btn-nav { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero-strip .wrap { grid-template-columns: 1fr; padding: 6px; }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 22px 20px; }
  .strip-item:last-child { border-bottom: 0; }
  .strip-item span { max-width: none; }
  .path-item { grid-template-columns: 1fr; gap: 6px; }
  .news-item { grid-template-columns: 1fr 24px; }
  .news-date { grid-column: 1 / -1; }
}

/* ---------- nástup při scrollu (zapíná JS, bez JS je vše vidět) ---------- */

.has-anim [data-anim] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms cubic-bezier(0.22, 0.8, 0.3, 1), transform 520ms cubic-bezier(0.22, 0.8, 0.3, 1);
}
.has-anim [data-anim].is-in {
  opacity: 1;
  transform: none;
}
.has-anim [data-anim].is-in:nth-child(2) { transition-delay: 60ms; }
.has-anim [data-anim].is-in:nth-child(3) { transition-delay: 120ms; }
.has-anim [data-anim].is-in:nth-child(4) { transition-delay: 180ms; }
.has-anim [data-anim].is-in:nth-child(5) { transition-delay: 240ms; }
.has-anim [data-anim].is-in:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .has-anim [data-anim] { opacity: 1; transform: none; transition: none; }
}

/* ---------- doladění hero ---------- */

.hero-shape {
  background:
    radial-gradient(circle at 42% 30%, #ffffff 0%, #f3f2fa 45%, #e7e5f3 100%);
  box-shadow:
    0 40px 90px -40px rgba(41, 35, 92, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- logo hnutí v patičce ---------- */

.footer-party {
  display: flex;
  align-items: center;
  gap: 14px;
}
.party-logo {
  width: 62px;
  height: 34px;
  border-radius: 4px;
  border: 1px dashed var(--hairline-dark);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
}
.footer-party span { font-size: 13px; color: rgba(255, 255, 255, 0.5); max-width: 24ch; line-height: 1.35; }
/* Jakmile je logo nahrané v administraci, nahradí rámeček s nápisem ANO. */
img.party-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 120px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}


/* ---------- čitelnost a ovládání klávesnicí ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Když se nepustí JavaScript, obsah je vidět tak jako tak. */
html:not(.has-anim) [data-anim] { opacity: 1; transform: none; }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { display: grid; gap: 12px; }
}


/* ---------- jemná hloubka na bílé ---------- */

.about-portrait {
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow:
    0 30px 60px -32px rgba(41, 35, 92, 0.34),
    0 2px 6px rgba(41, 35, 92, 0.06);
}
.btn {
  box-shadow: 0 10px 22px -12px rgba(41, 35, 92, 0.55);
}
.btn:active { transform: translateY(1px); }
.btn-ghost { box-shadow: none; }

.hero-strip .wrap {
  box-shadow: 0 22px 44px -38px rgba(41, 35, 92, 0.45);
}


/* ---------- zelený akcent ---------- */

.btn-zeleny { background: var(--zelena); box-shadow: 0 12px 26px -14px rgba(59, 164, 140, 0.75); }
.btn-zeleny:hover { background: var(--zelena-tmava); }

/* ---------- rozbalovací program ---------- */

.program-item details { grid-column: 1 / -1; margin-top: 4px; }
.program-item summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--zelena-tmava);
}
.program-item summary::-webkit-details-marker { display: none; }
.program-item summary::after { content: "▾"; font-size: 13px; }
.program-item details[open] summary::after { content: "▴"; }
.program-item details p { margin-top: 14px; max-width: 68ch; }

/* ---------- akce ---------- */

.akce-list { list-style: none; margin: 48px 0 0; padding: 0; }
.akce-list li {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid var(--hairline);
}
.akce-list .kdy { font-weight: 600; }
.akce-list .kdy small { display: block; font-weight: 400; color: var(--muted); font-size: 16px; }
.akce-list .co strong { display: block; font-size: 20px; font-family: var(--f-display); margin-bottom: 4px; }
.akce-list .co p { margin: 0; color: var(--muted); font-size: 17px; }

.stitek {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.stitek::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stitek-kampan { background: rgba(41, 35, 92, 0.09); color: var(--blue); }
.stitek-ostatni { background: var(--zelena-svetla); color: var(--zelena-tmava); }

/* ---------- posuvník referencí ---------- */

.reference-posuv {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(330px, 1fr);
  gap: 28px;
  margin-top: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
}
.ref-karta {
  margin: 0;
  padding: 34px 30px;
  background: #fafafc;
  border-radius: 4px;
  border-bottom: 3px solid var(--zelena);
  scroll-snap-align: start;
}
.ref-karta blockquote { margin: 0 0 22px; font-family: var(--f-display); font-size: 18px; line-height: 1.6; }
.ref-karta figcaption { font-weight: 600; }
.ref-karta figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 16px; }
.posuv-info { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* ---------- pruh pro novináře ---------- */

.media-pruh { background: var(--zelena-svetla); padding: 74px 0; }
.media-grid { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; }
.media-grid h2 { font-family: var(--f-display); font-size: 30px; margin: 0; }
.media-grid p { margin: 12px 0 0; color: var(--muted); max-width: 54ch; }

/* ---------- pohyb při scrollování ---------- */

.has-anim [data-anim="zleva"] { transform: translateX(-30px); }
.has-anim [data-anim="zprava"] { transform: translateX(30px); }
.has-anim [data-anim].is-in { transform: none; }
body { overflow-x: clip; }

@media (max-width: 860px) {
  .akce-list li { grid-template-columns: 1fr; gap: 10px; }
  .media-grid { grid-template-columns: 1fr; }
}

/* ---------- výzva pod sekcí ---------- */

.section-cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
.about-text .section-cta { margin-top: 32px; margin-bottom: 40px; }

/* ---------- program: rozjede se na najetí, klik ho nechá otevřený ---------- */

.program-item {
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}
.program-item h3::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-right: 2px solid var(--zelena);
  border-bottom: 2px solid var(--zelena);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.program-item.otevreno h3::after { transform: rotate(-135deg) translateY(-2px); }
.program-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 780ms cubic-bezier(0.22, 1, 0.28, 1);
}
.program-detail > div { overflow: hidden; }
.program-detail > div > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms ease 120ms, transform 620ms cubic-bezier(0.22, 1, 0.28, 1) 120ms;
}
.program-item:hover .program-detail > div > *,
.program-item:focus-visible .program-detail > div > *,
.program-item.otevreno .program-detail > div > * { opacity: 1; transform: none; }
.program-detail p,
.program-detail ul,
.program-detail ol,
.program-detail blockquote {
  margin: 16px 0 0;
  max-width: 68ch;
  color: var(--muted);
}

/* Formátování z editoru: nadpisy, seznamy, tučné písmo, odkazy. */
.program-detail h4,
.program-detail h5 {
  margin: 22px 0 0;
  max-width: 68ch;
  font-family: var(--f-display);
  color: var(--zelena-tmava);
  line-height: 1.25;
}
.program-detail h4 { font-size: 20px; }
.program-detail h5 { font-size: 17px; }
.program-detail ul,
.program-detail ol { padding-left: 20px; }
.program-detail li { margin-top: 6px; }
.program-detail li::marker { color: var(--zelena); }
.program-detail strong { color: var(--ink); font-weight: 700; }
.program-detail a { color: var(--zelena-tmava); text-decoration: underline; }
.program-detail blockquote {
  padding-left: 14px;
  border-left: 2px solid var(--zelena);
  font-style: italic;
}
.program-detail hr {
  margin: 20px 0 0;
  max-width: 68ch;
  border: 0;
  border-top: 1px solid var(--hairline);
}
.program-item:hover .program-detail,
.program-item:focus-visible .program-detail,
.program-item.otevreno .program-detail { grid-template-rows: 1fr; }
.program-item.otevreno {
  background: var(--zelena-svetla);
  border-left-color: var(--zelena);
}
.program-item.otevreno h3 { color: var(--zelena-tmava); }

/* ---------- mapa u akce ---------- */

.mapa-prepinac {
  margin-top: 10px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--zelena-tmava);
  cursor: pointer;
}
.mapa-prepinac:hover { text-decoration: underline; }
.mapa {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mapa > .mapa-vnitrek { overflow: hidden; }
.mapa.otevrena { grid-template-rows: 1fr; }
.mapa iframe {
  width: 100%;
  height: 300px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  margin-top: 16px;
}
.mapa a { display: inline-block; margin-top: 10px; font-size: 15px; color: var(--zelena-tmava); font-weight: 600; }

/* ---------- reference: podpis dole vlevo, karty stejně vysoké ---------- */

.ref-karta { display: flex; flex-direction: column; }
.ref-karta blockquote { flex: 1 1 auto; margin-bottom: 28px; }
.ref-karta figcaption { margin-top: auto; text-align: left; }

/* ---------- kratší mezery mezi sekcemi ---------- */

section { padding: 104px 0; }

/* ---------- pruh pod úvodem níž, ať se nepřekrývá s postavou ---------- */

.hero-strip { margin-top: 56px; }

/* ---------- kontakt: fotka vpravo, odkazy dole vlevo ---------- */

.contact-grid { align-items: center; }
.kontakt-odkazy {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.kontakt-odkazy a {
  font-weight: 600;
  color: var(--blue);
  box-shadow: inset 0 -1px 0 rgba(41, 35, 92, 0.3);
  padding-bottom: 2px;
}
.kontakt-odkazy a:hover { color: var(--zelena-tmava); box-shadow: inset 0 -1px 0 var(--zelena); }

.kontakt-foto {
  margin: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--tint-green);
  box-shadow: 0 30px 60px -32px rgba(41, 35, 92, 0.34);
}
.kontakt-foto img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .kontakt-foto { max-width: 340px; }
}

/* ---------- mezery mezi sekcemi ještě zkrátit ---------- */

section { padding: 82px 0; }
.hero { padding: 108px 0 0; }
.section-head h2 { margin-top: 14px; }
.path-list { margin-top: 36px; }
.section-cta { margin-top: 36px; justify-content: center; }
.about-text .section-cta { justify-content: flex-start; margin-bottom: 28px; }
.posuv-info { margin-top: 12px; text-align: center; }



/* ---------- akce v boxu ---------- */

.akce-box {
  margin-top: 34px;
  background: #fafafc;
  border: 1px solid var(--hairline);
  border-radius: var(--r-l);
  padding: 12px 32px;
  box-shadow: 0 30px 60px -44px rgba(41, 35, 92, 0.4);
}
.akce-list { margin: 0; }
.akce-list li { border-bottom: 1px solid var(--hairline); align-items: start; }
.akce-list li:last-child { border-bottom: 0; }

/* Mapa: náhled po najetí, celá po kliknutí. */
.mapa { grid-template-rows: 0fr; }
.akce-list li:hover .mapa { grid-template-rows: 1fr; }
.mapa iframe {
  height: 130px;
  margin-top: 14px;
  transition: height 420ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.85);
}
.mapa.otevrena { grid-template-rows: 1fr; }
.mapa.otevrena iframe { height: 360px; filter: none; }
.mapa a { opacity: 0; transition: opacity 240ms ease; }
.mapa.otevrena a { opacity: 1; }

@media (hover: none) {
  .akce-list li:hover .mapa { grid-template-rows: 0fr; }
}

/* ---------- ikonky u kontaktů ---------- */

.kontakt-odkazy { gap: 12px 24px; }
.kontakt-odkazy a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: none;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: border-color 240ms ease, color 240ms ease, background 240ms ease;
}
.kontakt-odkazy a:hover {
  color: var(--zelena-tmava);
  border-color: var(--zelena);
  background: var(--zelena-svetla);
  box-shadow: none;
}
.kontakt-odkazy svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

/* ---------- video medailonek ---------- */

.medailonek { margin: 40px 0 0; }
.medailonek-ramecek {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--hairline);
  border-radius: var(--r-l);
  background: #fafafc;
}
.medailonek-ramecek p { margin: 0; color: var(--muted); max-width: 40ch; }
.medailonek figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------- značka: Honza po pas, průhledné pozadí ---------- */

.mark-badge {
  width: auto;
  height: 46px;
  border-radius: 0;
  background: none;
  object-fit: contain;
}
.nav.is-stuck .mark-badge { height: 40px; }
.footer .mark-badge { height: 44px; background: none; }
.hero-figure picture { display: contents; }

/* ---------- Honza v úvodu: větší a hezky usazený v oválu ---------- */

.hero-grid { min-height: 0; }

.hero-shape {
  width: min(620px, 104%);
  bottom: -40px;
}

.hero-photo {
  height: clamp(480px, 62vw, 760px);
  /* Nohy se neuseknou natvrdo, spodek se plynule ztratí v oválu. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.55) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.55) 90%, transparent 100%);
  filter: drop-shadow(0 30px 50px rgba(19, 16, 42, 0.24));
}

@media (max-width: 900px) {
  .hero-grid { min-height: 0; }
  .hero-photo { height: clamp(360px, 78vw, 520px); }
  .hero-shape { width: min(460px, 96%); bottom: -20px; }
}

/* ---------- fotky v sekcích ---------- */

.about-portrait picture, .kontakt-foto picture { display: contents; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.potkejme-grid {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}
.potkejme-foto img { aspect-ratio: 21 / 9; }
.potkejme-grid .akce-box { margin-top: 0; }
.potkejme-foto {
  margin: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(41, 35, 92, 0.45);
}
.potkejme-foto picture { display: contents; }
.potkejme-foto img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .potkejme-foto img { aspect-ratio: 16 / 10; }
}

/* ---------- úvod: větší postava, kruh nezasahuje do pruhu ---------- */

.hero-figure {
  overflow: hidden;
}
.hero-shape {
  bottom: 30px;
  width: min(600px, 100%);
}
.hero-shape::after {
  inset: 18px;
  border-color: rgba(41, 35, 92, 0.12);
}
.hero-photo {
  height: clamp(500px, 64vw, 780px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, rgba(0, 0, 0, 0.45) 92%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, rgba(0, 0, 0, 0.45) 92%, transparent 99%);
}

/* ---------- dlouhý text se odhalí, když k němu člověk dojede ---------- */

.postupne { position: relative; }
.postupne::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(1.4px);
  -webkit-backdrop-filter: blur(1.4px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.postupne.odhaleno::after { opacity: 0; }
.about .postupne::after {
  background: linear-gradient(to bottom, rgba(250, 250, 252, 0) 0%, rgba(250, 250, 252, 0.55) 45%, rgba(250, 250, 252, 0.92) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .postupne::after { display: none; }
}

/* ---------- Potkejme se: hlavička na střed ---------- */

#potkejme .section-head {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
#potkejme .section-head h2 {
  white-space: nowrap;
  font-size: clamp(26px, 3.5vw, 42px);
}
@media (max-width: 860px) {
  #potkejme .section-head h2 { white-space: normal; }
}
#potkejme .section-head p { margin-left: auto; margin-right: auto; }

/* ---------- nadpisy na jeden řádek ---------- */

#program .section-head h2,
#pristup .section-head h2 {
  white-space: nowrap;
  font-size: clamp(26px, 3.5vw, 42px);
}
@media (max-width: 860px) {
  #program .section-head h2,
  #pristup .section-head h2 { white-space: normal; }
}

/* ---------- delší text o Honzovi ---------- */

.vice-textu {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.vice-textu > p { overflow: hidden; margin: 0; }
.vice-textu.otevreno { grid-template-rows: 1fr; }
.vice-textu.otevreno > p { margin-top: 20px; }

.vice-prepinac {
  margin-top: 18px;
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--zelena-tmava);
  cursor: pointer;
  transition: border-color 240ms ease, background 240ms ease;
}
.vice-prepinac:hover { border-color: var(--zelena); background: var(--zelena-svetla); }

/* Náhled prvního odstavce se dole jemně ztrácí, dokud se text nerozbalí. */
.about-text p.lead { position: relative; }
.about-text:not(.rozbaleno) p.lead::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(250, 250, 252, 0) 0%, rgba(250, 250, 252, 0.9) 100%);
  transition: opacity 520ms ease;
}
.about-text.rozbaleno p.lead::after { opacity: 0; }

/* ---------- medailonek na střed ---------- */

.medailonek {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
}
.medailonek figcaption { text-align: center; }

/* ---------- úvod: postava uvnitř kruhu, spodek oříznutý podle něj ---------- */

.hero-figure { overflow: visible; display: block; }

.hero-shape {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto;
}
.hero-shape picture { display: contents; }
.hero-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 106%;
  width: auto;
  max-width: none;
  align-self: end;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 24px 40px rgba(19, 16, 42, 0.18));
}

/* jméno v úvodu ať se řádky nedotýkají */
.hero h1 { line-height: 1.06; }
.hero h1 span { display: block; padding-bottom: 0.06em; }

/* ---------- text o Honzovi se dá rolovat ---------- */

.text-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
  overscroll-behavior: contain;
}
.text-scroll::-webkit-scrollbar { width: 6px; }
.text-scroll::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; }
.text-scroll p + p { margin-top: 18px; }
.about-text .text-scroll p.lead::after { display: none; }

/* ---------- úvod: velký Honza, hlava nad kruhem, nohy se ztrácí ---------- */

.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}
.hero-figure picture { display: contents; }

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 108%);
  max-width: none;
  aspect-ratio: 1 / 1;
  overflow: visible;
  margin: 0;
}

.hero-photo {
  position: relative;
  z-index: 2;
  height: clamp(520px, 62vw, 780px);
  width: auto;
  max-width: none;
  bottom: auto;
  left: auto;
  transform: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
  filter: drop-shadow(0 26px 44px rgba(19, 16, 42, 0.2));
}

@media (max-width: 900px) {
  .hero-photo { height: clamp(380px, 88vw, 560px); }
  .hero-shape { width: min(420px, 100%); }
}

/* ---------- fotka v sekci o mně o kus větší ---------- */
/* Jen na velkých obrazovkách, na mobilu jde fotka a text pod sebe. */

@media (min-width: 981px) {
  .about-grid { grid-template-columns: 1fr 1.08fr; }
}

/* ---------- úvod bez kruhu za postavou ---------- */

.hero-shape { display: none; }
.hero-photo {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.4) 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.4) 91%, transparent 100%);
  filter: drop-shadow(0 22px 40px rgba(19, 16, 42, 0.16));
}

/* ---------- mobil: nejdřív jméno, pod ním postava ---------- */

@media (max-width: 980px) {
  .hero { padding-top: 92px; }
  .hero-grid { gap: 26px; }
  .hero-copy { padding-bottom: 0; }
  .hero-figure { justify-content: center; }
  .hero-photo {
    height: clamp(420px, 108vw, 560px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.4) 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.4) 94%, transparent 100%);
  }
  .hero-strip { margin-top: 24px; }
}

/* ---------- Aktuálně: příspěvky z Facebooku ---------- */

.aktualne { background: var(--tint); }
.fb-feed {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.fb-karta {
  height: 470px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(41, 35, 92, 0.32), 0 2px 6px rgba(41, 35, 92, 0.05);
  scrollbar-width: thin;
  scrollbar-color: #c9c6de transparent;
}
.fb-karta::-webkit-scrollbar { width: 8px; }
.fb-karta::-webkit-scrollbar-thumb { background: #c9c6de; border-radius: 8px; }
.fb-karta::-webkit-scrollbar-track { background: transparent; }
.fb-karta iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
}
.aktualne .section-cta { justify-content: center; }

@media (max-width: 980px) {
  .fb-feed { grid-template-columns: 1fr 1fr; gap: 20px; }
  .fb-karta:last-child { display: none; }
}
@media (max-width: 640px) {
  .fb-feed { grid-template-columns: 1fr; }
  .fb-karta { height: 440px; }
  .fb-karta:last-child { display: block; }
}

/* ---------- vyskakovací formulář ---------- */

.dotaz {
  width: min(620px, calc(100vw - 32px));
  max-height: min(88vh, 780px);
  overflow-y: auto;
  padding: 40px 40px 36px;
  border: 0;
  border-radius: var(--r-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(19, 16, 42, 0.6);
}
.dotaz::backdrop { background: rgba(19, 16, 42, 0.55); backdrop-filter: blur(3px); }
.dotaz h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.18;
  margin: 16px 0 0;
}
.dotaz-uvod { color: var(--muted); margin: 14px 0 0; font-size: 17px; }
.dotaz-krizek {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.dotaz-krizek:hover { background: var(--tint); color: var(--ink); }

.dotaz-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-top: 28px;
}
.dotaz-form .siroke { grid-column: 1 / -1; }
.dotaz-form label {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.dotaz-form input[type="text"],
.dotaz-form input[type="email"],
.dotaz-form textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-s);
  padding: 13px 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.dotaz-form textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.dotaz-form input:focus-visible,
.dotaz-form textarea:focus-visible {
  outline: 0;
  border-color: var(--zelena);
  box-shadow: 0 0 0 3px var(--zelena-svetla);
}
.dotaz-souhlas {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
}
.dotaz-souhlas input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--zelena); }
.dotaz-past { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.dotaz-patka { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.dotaz-stav { margin: 0; font-size: 15px; color: var(--muted); }
.dotaz-stav.je-chyba { color: #b4283c; }
.dotaz-stav.je-hotovo { color: var(--zelena-tmava); font-weight: 600; }

@media (max-width: 620px) {
  .dotaz { padding: 34px 22px 28px; }
  .dotaz-form { grid-template-columns: 1fr; }
  .dotaz-form label { grid-column: 1 / -1; }
}

/* ---------- přehrávač videa ---------- */

.medailonek-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-l);
  background: var(--navy);
  box-shadow:
    0 34px 68px -34px rgba(41, 35, 92, 0.42),
    0 2px 6px rgba(41, 35, 92, 0.06);
}
.medailonek {
  max-width: 900px;
  position: relative;
  margin-top: 110px;
  padding-top: 74px;
}
/* Jemná linka, která se do stran rozplyne. Oddělí text o Honzovi od videa. */
.medailonek::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hairline) 22%, var(--hairline) 78%, transparent);
}

@media (max-width: 760px) {
  .medailonek { margin-top: 70px; padding-top: 48px; }
  .medailonek::before { left: 0; right: 0; }
}

/* ---------- mobil: nic nepřetéká do strany ---------- */

/* Prvky, které přijíždějí ze strany, na úzkém displeji chvíli koukají mimo
   obrazovku. Tohle zabrání tomu, aby se stránkou šlo posunout doprava. */
html, body { overflow-x: clip; }

@media (max-width: 860px) {
  /* Na úzkém displeji prvky nepřijíždějí ze strany, ale zdola.
     Nic tak nekouká mimo obrazovku a stránkou nejde hnout do boku. */
  .has-anim [data-anim="zleva"],
  .has-anim [data-anim="zprava"] { transform: translateY(22px); }
  .has-anim [data-anim].is-in { transform: none; }
}

@media (max-width: 720px) {
  .fb-karta { height: 420px; }
  .medailonek { margin-top: 64px; padding-top: 44px; }
}

/* ---------- program na mobilu: nadpis nad textem ---------- */
/* Starší rozvržení počítalo s číslem priority v úzkém sloupci. Číslo je
   pryč, nadpis se do 52 pixelů nevejde a lezl do popisku. */

@media (max-width: 980px) {
  .program-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 14px;
  }
  .program-item p { grid-column: 1; }
  .program-item h3 { font-size: 21px; }
}

/* ---------- focus na tmavém pozadí ---------- */
/* Modrý obrys je na tmavé patičce prakticky neviditelný. */

.footer a:focus-visible,
.split-blok a:focus-visible {
  outline-color: #ffffff;
}

/* ---------- stránka článku ---------- */

.clanek { padding: 150px 0 120px; }
.clanek-obal { max-width: 760px; }
.clanek h1 {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.14;
  font-weight: 700;
  margin: 20px 0 0;
  text-wrap: balance;
}
.clanek-datum { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.clanek-perex {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
  margin: 26px 0 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.clanek-text { margin-top: 32px; }
.clanek-text p { color: var(--muted); margin: 0 0 20px; }
.clanek-text h2 {
  font-family: var(--f-display);
  font-size: 27px;
  font-weight: 700;
  margin: 40px 0 14px;
}
.clanek-text h3 { font-family: var(--f-display); font-size: 21px; margin: 32px 0 12px; }
.clanek-text ul, .clanek-text ol { color: var(--muted); padding-left: 22px; margin: 0 0 20px; }
.clanek-text li { margin-bottom: 8px; }
.clanek-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.clanek-text blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--zelena);
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.5;
}
.clanek-zpet { margin-top: 40px; }

@media (max-width: 760px) {
  .clanek { padding: 110px 0 80px; }
  .clanek-perex { font-size: 19px; }
}
