/* ============================================================
   Mníšek – Město pro rodinu
   Barvy vycházejí z loga: modrá #5fbfed, zelená #adca24
   ============================================================ */

@font-face {
  font-family: 'Jakarta';
  src: url('/assets/fonts/jakarta-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  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: 'Jakarta';
  src: url('/assets/fonts/jakarta-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  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 {
  --blue-300: #b9e3f8;
  --blue-400: #8ad0f2;
  --blue-500: #5fbfed;   /* logo */
  --blue-600: #2f9fd6;
  --blue-700: #10658f;   /* text a tlačítka — kontrast 5.6:1 na bílé */
  --blue-900: #0a4a6b;
  --blue-950: #072a3d;

  --green-400: #c8de5c;
  --green-500: #adca24;  /* logo */
  --green-600: #8fab12;
  --green-700: #64790a;

  --ink: #14202b;
  --ink-soft: #4d5f6e;
  --ink-faint: #61727e;

  --paper: #ffffff;
  --paper-soft: #f4f9fc;
  --paper-tint: #eaf5fb;
  --line: #e3edf3;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 101, 143, .06), 0 4px 12px rgba(16, 101, 143, .05);
  --shadow-md: 0 4px 10px rgba(16, 101, 143, .07), 0 16px 36px rgba(16, 101, 143, .09);

  --header-h: 84px;
  --wrap: 1260px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }

h1, h2, h3 { line-height: 1.14; letter-spacing: -.022em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-700); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- typografické pomocníky ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-700); margin: 0 0 14px;
}
.eyebrow-light { color: var(--blue-300); }

.lead { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.65; }

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section-soft { background: var(--paper-soft); }
.section-accent { background: linear-gradient(160deg, var(--paper-tint), var(--paper-soft)); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-sub { font-size: 1.08rem; color: var(--ink-soft); margin: 18px 0 0; }

.todo-note {
  background: #fff8e1; border-left: 3px solid #f0b429; padding: 12px 16px;
  border-radius: 0 8px 8px 0; color: #7a5600; font-size: .95rem; margin: 0;
}

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .97rem; text-decoration: none;
  padding: 13px 26px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s ease, background-color .16s ease,
              border-color .16s ease, color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-900); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-300); }
.btn-ghost:hover { background: var(--paper-tint); border-color: var(--blue-500); }

.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { background: var(--blue-300); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 14px rgba(16,101,143,.06); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 54px; width: auto; }

.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 8px 11px; border-radius: 100px; white-space: nowrap;
  transition: background-color .16s, color .16s;
}
.site-nav a:hover { background: var(--paper-tint); color: var(--blue-700); }
.site-nav a.is-active { color: var(--blue-700); background: var(--paper-tint); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper-tint); color: var(--blue-700);
  transition: background-color .16s, color .16s, transform .16s;
}
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.icon-btn:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); }

.btn-vote {
  background: var(--green-500); color: var(--blue-950);
  padding: 10px 11px 10px 20px; gap: 11px; box-shadow: var(--shadow-sm);
}
.btn-vote:hover { background: var(--green-400); }
.btn-vote-label { font-size: 1rem; font-weight: 700; }
.btn-vote-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-950); color: #fff; font-weight: 800; font-size: 1.05rem;
}

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: var(--paper-tint);
  border-radius: 10px; cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 3px auto; transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(52px, 8vw, 104px) 0 clamp(58px, 8vw, 100px);
  background:
    radial-gradient(1100px 460px at 82% -8%, var(--paper-tint), transparent 62%),
    radial-gradient(700px 340px at 6% 108%, rgba(173,202,36,.13), transparent 60%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--blue-700); }
.hero .lead { max-width: 56ch; margin-bottom: 30px; font-size: 1.19rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-note {
  font-size: 1rem; color: var(--ink-soft); margin: 0;
  padding-left: 16px; border-left: 3px solid var(--green-500);
}
.hero-note strong { color: var(--ink); }

.hero-badge { display: grid; justify-items: center; gap: 14px; }
.hero-badge img {
  width: min(300px, 74%); height: auto;
  filter: drop-shadow(0 14px 30px rgba(16,101,143,.16));
  animation: badgeIn .7s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes badgeIn {
  from { opacity: 0; transform: scale(.9) rotate(-7deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
.hero-badge-cap {
  margin: 0; text-align: center; font-size: .93rem; font-weight: 700;
  letter-spacing: .04em; color: var(--blue-700); text-transform: uppercase;
}

/* ---------- karty s rozkliknutím ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.card[open] { border-color: var(--blue-400); box-shadow: var(--shadow-md); }

.card > summary {
  list-style: none; cursor: pointer; padding: 26px 26px 22px;
  display: grid; gap: 8px;
}
.card-story > summary { row-gap: 6px; }
.card > summary::-webkit-details-marker { display: none; }

.card-num {
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; color: var(--green-700);
}
.story-year {
  font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--green-700);
  text-transform: uppercase;
}
.card-title { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.card-teaser { color: var(--ink-soft); font-size: .99rem; line-height: 1.55; }

.card-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  font-size: .9rem; font-weight: 700; color: var(--blue-700);
}
.card-more::after {
  content: ""; width: 8px; height: 8px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.card[open] .card-more::after { transform: rotate(-135deg); margin-top: 2px; }

.card-body { padding: 0 26px 26px; }
.card-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card-list li {
  position: relative; padding-left: 22px;
  color: var(--ink-soft); font-size: .97rem; line-height: 1.55;
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-500);
}
.card-body p { margin: 0; color: var(--ink-soft); }
.card-body p + p { margin-top: .9em; }

.grid-program {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.timeline { display: grid; gap: 16px; max-width: 900px; }

/* karta etapy: fotka přes celou šířku karty, text pod ní —
   na skupinových snímcích jinak nejdou lidé rozeznat */
.card-story > summary {
  grid-template-columns: 1fr;
  padding: 0 0 22px;
}
.story-photo {
  width: 100%; height: auto; display: block;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  margin-bottom: 20px;
}
.card-story > summary > :not(.story-photo) { padding-left: 26px; padding-right: 26px; }
.card-story .card-body { padding-left: 26px; }

/* ---------- knihovna ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
.feature h2 { margin-bottom: 18px; }

.reveal { margin-top: 8px; }
.reveal > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .97rem; color: var(--blue-700);
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.reveal[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
.reveal-body { margin-top: 16px; color: var(--ink-soft); }
.reveal-body p { margin: 0; }
.reveal-body p + p { margin-top: .9em; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 13px;
  background: var(--paper); border-radius: var(--radius-sm); padding: 16px 20px;
  box-shadow: var(--shadow-sm); font-weight: 600; font-size: .99rem;
}
.feature-list li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23072a3d'%3E%3Cpath d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- krédo pod historií ---------- */
.creed {
  max-width: 860px; margin: clamp(30px, 4vw, 46px) 0 0;
  background: var(--paper-soft); border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(26px, 3.4vw, 38px) clamp(24px, 3.4vw, 40px);
}
.creed-title {
  font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 14px;
}
.creed p { color: var(--ink-soft); }
.creed p:last-child { margin-bottom: 0; }

/* ---------- lidé ---------- */
.grid-people {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.person { background: var(--paper); }
.person > summary { padding: 0; display: block; }
.person-head { display: grid; gap: 4px; padding: 0 22px 20px; }

.person-photo {
  position: relative; aspect-ratio: 4 / 5; width: 100%; overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: linear-gradient(155deg, var(--blue-400), var(--blue-600));
  display: grid; place-items: center; margin-bottom: 18px;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials { font-size: 2.6rem; font-weight: 800; color: rgba(255,255,255,.92); letter-spacing: -.02em; }
.person-rank {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 100px; background: var(--green-500); color: var(--blue-950);
  font-weight: 800; font-size: .88rem;
}
.person-name { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.person-role { font-size: .89rem; font-weight: 600; color: var(--green-700); }
.person-claim { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; margin-top: 4px; }
.person .card-more { padding: 0 22px 22px; margin-top: 0; }
.person .card-body { padding: 0 22px 24px; }

/* ---------- společné foto v sekci Naši lidé ---------- */
.team-photo {
  margin: 0 0 clamp(24px, 3.4vw, 40px); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--paper-tint);
}
.team-photo img { width: 100%; height: auto; display: block; }

/* ---------- společné foto přes celou šířku ---------- */
.team-strip {
  margin: 0; overflow: hidden; background: var(--paper-tint);
  line-height: 0;
}
.team-strip img {
  width: 100%; height: clamp(360px, 45vw, 680px);
  object-fit: cover; object-position: center 47%;
}
@media (max-width: 620px) {
  /* na mobilu bez ořezu — jinak by z patnácti lidí zbyly nečitelné siluety */
  .team-strip img { height: auto; aspect-ratio: 3 / 2; }
}

/* ---------- akce ---------- */
.events { display: grid; gap: 14px; max-width: 860px; }
.event {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; transition: border-color .18s, box-shadow .18s;
}
.event:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.event-date {
  display: grid; place-items: center; text-align: center; min-width: 68px;
  background: var(--paper-tint); border-radius: var(--radius-sm); padding: 10px 12px;
}
.event-day { font-size: 1.5rem; font-weight: 800; color: var(--blue-700); line-height: 1; }
.event-month { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.event-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 3px; }
.event-meta { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.events-empty {
  background: var(--paper-soft); border: 1px dashed var(--blue-300);
  border-radius: var(--radius); padding: 34px; text-align: center; color: var(--ink-soft);
}

/* ---------- kontakt ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.contact h2 { margin-bottom: 18px; }
.contact-sign { font-weight: 700; color: var(--ink); margin-bottom: 28px; }

.contact-links { display: grid; gap: 10px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .99rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 20px; transition: border-color .16s, transform .16s, box-shadow .16s;
  justify-self: start;
}
.contact-link svg { width: 19px; height: 19px; fill: var(--blue-700); flex: 0 0 auto; }
.contact-link:hover { border-color: var(--blue-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-soft); transition: border-color .16s, background-color .16s;
}
.field input:focus, .field textarea:focus { border-color: var(--blue-500); background: var(--paper); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin-bottom: 22px; }
.checkbox input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--blue-700); flex: 0 0 auto; }

.hp { position: absolute; left: -9999px; }

/* ---------- závěrečné CTA ---------- */
.closing {
  position: relative; isolation: isolate;
  background: var(--blue-950) center 60% / cover no-repeat
              image-set(url('/assets/img/mnisek-pozadi.webp') type('image/webp'));
  color: #fff; padding: clamp(64px, 9vw, 110px) 0; text-align: center;
}
/* překryv drží text čitelný nad fotkou */
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(10,74,107,.82), rgba(7,42,61,.88));
}
.closing-inner { max-width: 760px; }
.closing h2 { margin-bottom: 18px; }
.closing-lead { font-size: 1.13rem; color: rgba(255,255,255,.82); margin-bottom: 34px; }

.closing-vote {
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 34px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px; padding: 12px 16px 12px 28px;
}
.closing-vote-label { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.closing-vote-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-500); color: var(--blue-950); font-size: 1.9rem; font-weight: 800;
}
.closing-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-soft); border-top: 1px solid var(--line); padding: 52px 0 40px; }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px; align-items: start;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer-nav a { font-size: .94rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--blue-700); text-decoration: underline; }

.footer-meta { font-size: .89rem; color: var(--ink-faint); text-align: right; }
.footer-meta p { margin: 0 0 4px; }
.footer-credit a { color: var(--ink-soft); font-weight: 600; }

/* ---------- cookie lišta ---------- */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 28px rgba(16,101,143,.12);
  animation: cookieUp .28s ease;
}
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookiebar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding-top: 16px; padding-bottom: 16px;
}
.cookiebar p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.cookiebar-actions { display: flex; gap: 9px; flex: 0 0 auto; }

/* ---------- samostatné stránky (404, děkujeme) ---------- */
.standalone { display: grid; place-items: center; min-height: 62vh; padding: clamp(56px, 9vw, 110px) 0; }
.standalone-inner { max-width: 620px; text-align: center; }
.standalone-badge { width: 108px; height: auto; margin: 0 auto 26px; }
.standalone h1 { margin-bottom: 18px; }
.standalone .lead { margin-bottom: 30px; }

/* ---------- právní stránky ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.legal-inner { max-width: 760px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 {
  font-size: 1.42rem; margin: 46px 0 14px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal h3 { margin: 26px 0 10px; color: var(--blue-700); }
.legal p, .legal li { color: var(--ink-soft); }
.legal .lead { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal-updated { font-size: .93rem; color: var(--ink-faint); margin-bottom: 8px; }
.legal-back { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: .93rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th { font-weight: 700; color: var(--ink); background: var(--paper-soft); }
.legal-table td { color: var(--ink-soft); }
.legal-table code {
  font-size: .88em; background: var(--paper-tint); color: var(--blue-700);
  padding: 2px 6px; border-radius: 5px;
}
.legal .todo-note { margin: 0 0 1.1em; }
.legal-controller {
  background: var(--paper-soft); border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; line-height: 1.75;
}

/* ---------- responzivita ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding: 8px 10px; font-size: .9rem; }
  .btn-vote-label { display: none; }
  .btn-vote { padding: 9px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { justify-self: start; }

  .feature, .contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .wrap { padding: 0 18px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .brand img { height: 36px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .btn-vote { padding: 7px; }
  .btn-vote-num { width: 24px; height: 24px; font-size: .9rem; }
  .nav-toggle { display: grid; width: 38px; height: 38px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 12px; font-size: 1rem; border-radius: var(--radius-sm); }
  .brand img { height: 32px; }
}

@media (max-width: 430px) {
  .header-actions .icon-btn:nth-of-type(2) { display: none; }
  .brand img { height: 32px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* 15 kandidátů v jednom sloupci = přes 10 000 px scrollu */
  .grid-people { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .person-photo { margin-bottom: 14px; }
  .person-head { padding: 0 14px 14px; gap: 3px; }
  .person-name { font-size: .97rem; }
  .person-role { font-size: .8rem; }
  .person-claim { font-size: .87rem; line-height: 1.45; }
  .person .card-more { padding: 0 14px 16px; font-size: .84rem; }
  .person .card-body { padding: 0 14px 18px; font-size: .9rem; }
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
  .cookiebar-inner { flex-direction: column; align-items: stretch; }
  .cookiebar-actions { justify-content: stretch; }
  .cookiebar-actions .btn { flex: 1; }
  .event { grid-template-columns: 1fr; gap: 14px; }
  .event-date { justify-self: start; min-width: 0; padding: 8px 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; }
}

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