/* ==========================================================================
   Společně pro Čerčany 2026 — společný styl webu
   Barvy vychází z loga a letáku: námořnická modř + přechod zelená/modrá/fialová
   ========================================================================== */

:root {
  --navy: #001c58;
  --navy-700: #0b2a6f;
  --navy-500: #1e3f8f;
  --blue: #1f5fbf;
  --green: #4d9a2e;
  --green-dark: #2f7a1f;
  --purple: #7b2a8e;
  --sky: #eaf2fb;
  --sky-2: #f5f9fe;
  --white: #ffffff;
  --ink: #1a2236;
  --muted: #5b6784;
  --line: #d9e3f2;
  --grad: linear-gradient(90deg, var(--green) 0%, var(--blue) 50%, var(--purple) 100%);
  --grad-soft: linear-gradient(135deg, rgba(77, 154, 46, .14), rgba(31, 95, 191, .14) 50%, rgba(123, 42, 142, .14));
  --shadow: 0 10px 30px rgba(0, 28, 88, .10);
  --shadow-sm: 0 3px 12px rgba(0, 28, 88, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sky-2);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--navy-700); font-weight: 500; }
.muted { color: var(--muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
section[id] { scroll-margin-top: 80px; } /* kotvy končí pod přilepenou hlavičkou */
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--white); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-bar { height: 5px; background: var(--grad); border-radius: 3px; width: 90px; margin: 14px 0 26px; }
.grad-bar.center { margin-inline: auto; }
/* texty jen pro myš / jen pro dotyk */
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .only-mouse { display: none; } .only-touch { display: inline; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none !important; font-family: inherit;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ==========================================================================
   Hlavička
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; display: block; height: 3px; background: var(--grad); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; flex: none; align-items: center; gap: 12px; color: var(--navy); font-weight: 800; text-decoration: none !important; }
.brand img { width: 56px; height: 56px; }
.brand-text { line-height: 1.1; font-size: 1rem; white-space: nowrap; }
.brand-text small { display: block; font-weight: 600; color: var(--blue); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--navy); font-weight: 600; padding: .55rem .9rem; border-radius: 999px; font-size: .95rem; text-decoration: none !important;
  white-space: nowrap; transition: background .15s;
}
.nav a:hover { background: var(--sky); }
.nav a.active { background: var(--navy); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center; font-family: inherit;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; content: ""; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 1260px) {
  .nav a { font-size: .88rem; padding: .5rem .65rem; }
  .brand-text { font-size: .92rem; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff;
    padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; white-space: normal; }
  .brand-text { font-size: .9rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #001c58 0%, #0d3a8a 60%, #1f5fbf 100%);
}
.hero-photo {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .32;
  filter: saturate(.8);
}
@media (max-width: 700px) { .hero-photo[style*="spolecne-foto.jpg"] { background-image: url("../img/spolecne-foto-1000.jpg") !important; } }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 20%, rgba(123, 42, 142, .45), transparent 60%),
              radial-gradient(50% 70% at 10% 90%, rgba(77, 154, 46, .40), transparent 60%);
}
.hero-inner { position: relative; padding-block: clamp(56px, 9vw, 120px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero .lead { color: rgba(255, 255, 255, .9); font-weight: 500; font-size: 1.2rem; max-width: 620px; }
.hero-date {
  display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; margin-bottom: 1.2rem; backdrop-filter: blur(4px);
}
.hero-date b { background: #fff; color: var(--navy); border-radius: 999px; padding: .1rem .6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(200px, 50vw); }
}

/* Podstránkový hero (kratší) */
.page-hero { padding-block: clamp(44px, 7vw, 80px); }
.page-hero .hero-inner { grid-template-columns: 1fr; padding-block: 0; text-align: left; }
.page-hero .lead { max-width: 760px; }

/* ==========================================================================
   Karty, mřížky
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { font-size: 1.9rem; margin-bottom: .6rem; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  background: #fff; border-radius: var(--radius); padding: 22px 20px; border-top: 5px solid; box-shadow: var(--shadow-sm);
}
.value:nth-child(1) { border-color: var(--green); }
.value:nth-child(2) { border-color: var(--blue); }
.value:nth-child(3) { border-color: var(--purple); }
.value:nth-child(4) { border-color: var(--navy); }
.value strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: .3rem; }
.value span { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Textový blok s citátem */
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.intro-text p { font-size: 1.05rem; }
.intro-text p:first-of-type::first-letter { font-size: 3.9em; font-weight: 800; color: var(--blue); float: left; line-height: .8; padding-right: 10px; padding-top: 7px; text-transform: uppercase; }
.quote-card {
  position: relative; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px 30px 28px; box-shadow: var(--shadow);
  overflow: hidden;
}
.quote-card::before { content: "“"; position: absolute; right: 18px; top: -30px; font-size: 9rem; font-weight: 800; opacity: .15; }
.quote-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.quote-card p { font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.quote-card small { display: block; color: rgba(255, 255, 255, .8); font-weight: 600; }
.quote-card ul { margin: 0; padding-left: 0; list-style: none; }
.quote-card li { padding: .45rem 0 .45rem 1.8rem; position: relative; font-weight: 600; border-top: 1px solid rgba(255, 255, 255, .12); }
.quote-card li:first-child { border-top: 0; }
.quote-card li::before { content: "✔"; position: absolute; left: 0; color: #8be36b; font-weight: 800; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================================
   Interaktivní společná fotografie
   ========================================================================== */
.team-photo-scroll { border-radius: var(--radius); }
.team-photo-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #cfe1f6; }
@media (max-width: 700px) {
  /* na úzkých displejích je fotka širší než obrazovka a posouvá se prstem, aby šlo na osoby klepnout */
  .team-photo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 6px; }
  .team-photo-wrap { min-width: 820px; }
}
.team-photo-wrap img { width: 100%; height: auto; display: block; }
.hotspot {
  position: absolute; display: block; border-radius: 10px; text-decoration: none !important; outline: none;
  transition: background .2s, box-shadow .2s;
}
.hotspot-label { border-radius: 8px; }
.hotspot:hover, .hotspot.hover, .hotspot:focus-visible { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--blue), 0 8px 24px rgba(0, 28, 88, .35); z-index: 3; }
.hotspot .tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(6px);
  background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; white-space: nowrap; padding: .45rem .8rem; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); z-index: 4;
}
.hotspot .tip small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; }
.hotspot:hover .tip, .hotspot:focus-visible .tip, .hotspot.hover:not(.hotspot-label) .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.team-photo-hint { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 14px; }
.team-photo-hint b { color: var(--navy); }

/* Seznam jmen pod fotkou pro mobil / dotyk */
.team-names { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.team-names a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; font-weight: 600; color: var(--navy);
  text-decoration: none !important; transition: all .15s;
}
.team-names a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.team-names a b { color: var(--blue); margin-right: .3rem; }
.team-names a:hover b { color: #8be36b; }

/* ==========================================================================
   Kandidáti
   ========================================================================== */
.cands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1100px) { .cands { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .cands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cands { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.cand { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; position: relative; scroll-margin-top: 110px; }
.cand:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cand.is-open { grid-column: 1 / -1; display: grid; grid-template-columns: 300px 1fr; align-items: start; transform: none; }
/* fotografie se zobrazuje vždy celá, bez oříznutí (poměr stran originálu 660 × 794) */
.cand-photo { position: relative; aspect-ratio: 660 / 794; overflow: hidden; background: #f3f6fb; }
.cand-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cand.is-open .cand-side { padding: 22px 0 22px 22px; }
.cand.is-open .cand-photo { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.cand-num {
  position: absolute; left: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); font-size: 1.05rem; border: 2px solid var(--navy);
}
.cand-head {
  width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; cursor: pointer; font-family: inherit; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cand-head:hover .cand-name { color: var(--blue); }
.cand-name { font-weight: 800; font-size: 1rem; line-height: 1.25; display: block; }
.cand-title { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; margin-top: 2px; }
.cand-age { color: var(--blue); }
.cand-chevron { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; transition: transform .25s, background .2s; }
.cand-chevron::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg) translate(-1px, -1px); }
.cand.is-open .cand-chevron { transform: rotate(180deg); background: var(--navy); }
.cand.is-open .cand-chevron::before { border-color: #fff; }
.cand-body { display: none; padding: 0 22px 24px; }
.cand.is-open .cand-body { display: block; }
.cand.is-open .cand-side { display: flex; flex-direction: column; }
.cand.is-open .cand-head { padding: 22px 22px 8px; }
.cand.is-open .cand-name { font-size: 1.45rem; }
.cand.is-open .cand-title { font-size: .95rem; }
.cand-body p { margin-bottom: .8em; color: var(--ink); }
.cand-body p:last-child { margin-bottom: 0; }
.cand-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cand-actions .btn { padding: .6rem 1.15rem; font-size: .9rem; }
.cand-back { display: none; }
body.from-photo .cand-back { display: inline-flex; }

/* Plovoucí tlačítko „Zpět na společnou fotografii“ (jen při příchodu z úvodní strany) */
.back-photo {
  position: fixed; left: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: .6rem;
  background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.15; padding: .7rem 1.15rem .7rem .9rem; border-radius: 999px;
  box-shadow: var(--shadow); text-decoration: none !important; border: 2px solid #fff; transition: transform .15s, background .15s;
  animation: back-photo-in .45s .3s both;
}
.back-photo b { display: block; font-weight: 800; }
.back-photo .arr { font-size: 1.25rem; line-height: 1; }
.back-photo:hover { background: var(--navy-700); transform: translateY(-2px); }
@keyframes back-photo-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .back-photo { left: 12px; bottom: 12px; padding: .6rem 1rem .6rem .8rem; font-size: .82rem; max-width: calc(100vw - 90px); } }

/* Zvýraznění osoby na fotce po návratu z medailonku */
.hotspot.flash { animation: hotspot-flash 1.3s ease-in-out 2; }
@keyframes hotspot-flash { 0%, 100% { background: rgba(255, 255, 255, .16); } 50% { background: rgba(255, 255, 255, .42); } }
@media (max-width: 700px) {
  .cand.is-open { grid-template-columns: 1fr; }
  .cand.is-open .cand-side { padding: 18px 18px 0; }
  .cand.is-open .cand-photo { max-width: 260px; margin: 0 auto; }
  .cand.is-open .cand-name { font-size: 1.2rem; }
}
.cand-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.cand-tools .btn { padding: .55rem 1.1rem; font-size: .9rem; }

/* ==========================================================================
   Program
   ========================================================================== */
.plan-list { counter-reset: plan; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .plan-list { grid-template-columns: 1fr; } }
.plan-item {
  position: relative; background: #fff; border-radius: var(--radius-sm); padding: 18px 18px 18px 72px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; color: var(--navy); cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 78px; display: flex; flex-direction: column; justify-content: center;
}
.plan-item:hover, .plan-item.hl { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue); }
.plan-item .n {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.plan-item .tag { display: inline-block; margin-top: 6px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.plan-item .tag b { color: var(--blue); font-weight: 700; }

.pillars-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.pillar-tab {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .6rem 1rem; font-family: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; transition: all .15s;
}
.pillar-tab:hover { border-color: var(--blue); transform: translateY(-1px); }
.pillar-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pillar-panel { display: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; animation: fadeUp .3s ease; }
.pillar-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pillar-head { padding: 28px 30px; color: #fff; display: flex; align-items: center; gap: 20px; }
.pillar-head .emoji { font-size: 2.8rem; line-height: 1; }
.pillar-head h3 { color: #fff; font-size: 1.6rem; margin: 0 0 .2rem; }
.pillar-head p { margin: 0; opacity: .92; font-weight: 500; font-size: 1.05rem; }
.pillar-body { padding: 26px 30px 30px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; }
@media (max-width: 860px) { .pillar-body { grid-template-columns: 1fr; } .pillar-head { padding: 22px; } }
.themes { display: grid; gap: 10px; }
.theme { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.theme-btn {
  width: 100%; text-align: left; background: var(--sky-2); border: 0; padding: 14px 16px; cursor: pointer; font-family: inherit; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 1rem;
}
.theme-btn:hover { background: var(--sky); }
.theme-btn .plus { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; transition: transform .2s; flex: none; }
.theme.open .theme-btn .plus { transform: rotate(45deg); background: var(--navy); color: #fff; }
.theme-body { display: none; padding: 6px 16px 16px; background: #fff; }
.theme.open .theme-body { display: block; animation: fadeUp .25s ease; }
.theme-body ul { margin: 0; padding-left: 0; list-style: none; }
.theme-body li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.theme-body li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.goals { background: var(--sky); border-radius: var(--radius-sm); padding: 20px; align-self: start; }
.goals h4 { margin: 0 0 .6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.goals ul { margin: 0; padding-left: 0; list-style: none; }
.goals li { padding: .35rem 0 .35rem 1.7rem; position: relative; font-weight: 600; color: var(--navy); }
.goals li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pillar-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Pilíře jako přehledová mřížka */
.pillar-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .pillar-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillar-cards { grid-template-columns: 1fr; } }
.pillar-card {
  background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; font-family: inherit;
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.pillar-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c, var(--blue)); }
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar-card .emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.pillar-card strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.pillar-card span { color: var(--muted); font-size: .92rem; }

/* Mind mapa */
.mindmap-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; position: relative; }
.mindmap-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sky-2); }
.mindmap-toolbar .hint { color: var(--muted); font-size: .88rem; font-weight: 500; }
.mindmap-toolbar .tools { display: flex; gap: 6px; }
.mindmap-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-weight: 800; color: var(--navy); font-family: inherit; font-size: 1rem; }
.mindmap-toolbar button:hover { background: var(--sky); }
.mindmap-toolbar button.wide { width: auto; padding-inline: 12px; font-size: .85rem; }
#mindmap { width: 100%; height: clamp(420px, 70vh, 760px); display: block; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: radial-gradient(circle at 50% 50%, #f8fbff, #eef4fb); }
#mindmap:active { cursor: grabbing; }
#mindmap .link { fill: none; stroke-width: 2.2; opacity: .75; }
#mindmap .node { cursor: pointer; }
#mindmap .node rect, #mindmap .node circle { transition: filter .15s; }
#mindmap .node:hover rect, #mindmap .node:hover circle { filter: brightness(1.06) drop-shadow(0 6px 12px rgba(0, 28, 88, .25)); }
#mindmap text { font-family: var(--font); pointer-events: none; }
#mindmap .root text { fill: #fff; font-weight: 800; }
#mindmap .pillar text { fill: #fff; font-weight: 700; }
#mindmap .theme-node text { fill: var(--navy); font-weight: 700; }
#mindmap .proj text { fill: var(--ink); font-weight: 500; }
#mindmap .badge { font-size: 11px; font-weight: 800; }
.mindmap-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--sky-2); }
.mindmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mindmap-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ==========================================================================
   Co se nám povedlo
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .highlights { grid-template-columns: 1fr; } }
.highlight { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.highlight img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.highlight .hl-body { padding: 18px 20px 22px; }
.highlight .hl-body .icon { font-size: 1.6rem; }
.highlight h3 { font-size: 1.1rem; margin: .3rem 0 .4rem; }
.highlight p { margin: 0; color: var(--muted); font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.filter-btn {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-family: inherit; font-weight: 700; color: var(--navy); cursor: pointer; font-size: .88rem;
  display: inline-flex; align-items: center; gap: .4rem; transition: all .15s;
}
.filter-btn:hover { border-color: var(--blue); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-btn .cnt { background: var(--sky); color: var(--navy); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; }
.filter-btn.active .cnt { background: rgba(255, 255, 255, .2); color: #fff; }
.view-toggle { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; }
.view-toggle button { border: 1px solid var(--line); background: #fff; padding: .45rem .9rem; font-family: inherit; font-weight: 600; color: var(--navy); cursor: pointer; font-size: .85rem; }
.view-toggle button:first-child { border-radius: 999px 0 0 999px; }
.view-toggle button:last-child { border-radius: 0 999px 999px 0; }
.view-toggle button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .ach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ach-grid { grid-template-columns: 1fr; } }
.ach { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; animation: fadeUp .3s ease; }
.ach:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ach.hidden { display: none; }
.ach-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); cursor: zoom-in; }
.ach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ach:hover .ach-img img { transform: scale(1.04); }
.ach-img .more { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 28, 88, .85); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.ach-noimg { aspect-ratio: 16 / 6; display: grid; place-items: center; font-size: 2.4rem; background: var(--grad-soft); }
.ach-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ach-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; }
.ach-cat { color: var(--c, var(--blue)); text-transform: uppercase; letter-spacing: .06em; }
.ach-date { color: var(--muted); background: var(--sky); border-radius: 999px; padding: .1rem .55rem; white-space: nowrap; }
.ach h3 { font-size: 1.05rem; margin: 0; }
.ach p { margin: 0; color: var(--muted); font-size: .93rem; }
.ach .ach-more { display: none; }
.ach.expanded .ach-more { display: inline; }
.ach.expanded .ach-short-ellipsis { display: none; }
.ach-read { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 0; cursor: pointer; font-family: inherit; font-size: .88rem; align-self: flex-start; margin-top: auto; }
.ach-read:hover { text-decoration: underline; }
.ach-empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; display: none; }
.timeline.active { display: block; }
.ach-grid.inactive { display: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 4px; background: var(--grad); border-radius: 2px; }
.tl-year { position: relative; margin: 0 0 14px; }
.tl-year h3 { display: inline-block; background: var(--navy); color: #fff; padding: .3rem .9rem; border-radius: 999px; font-size: 1rem; margin: 0 0 12px -28px; position: relative; left: 0; }
.tl-item { position: relative; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item .tl-when { font-size: .8rem; font-weight: 700; color: var(--blue); padding-top: 3px; }
.tl-item strong { color: var(--navy); display: block; }
.tl-item span { color: var(--muted); font-size: .9rem; }
.tl-item.hidden { display: none; }
@media (max-width: 560px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

/* Plány dál */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.plan-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.plan-card .icon { font-size: 1.8rem; }
.plan-card h3 { font-size: 1.05rem; margin: .4rem 0 .3rem; }
.plan-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.callout::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 100% 0%, rgba(123, 42, 142, .5), transparent 60%), radial-gradient(50% 90% at 0% 100%, rgba(77, 154, 46, .45), transparent 60%); }
.callout > * { position: relative; }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: rgba(255, 255, 255, .9); font-size: 1.05rem; }
.callout p:last-child { margin: 0; }

/* ==========================================================================
   Setkání s voliči
   ========================================================================== */
.meetings { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .meetings { grid-template-columns: 1fr; } }
.meeting { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.meeting a { display: block; overflow: hidden; cursor: zoom-in; }
.meeting img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .4s; }
.meeting a:hover img { transform: scale(1.04); }
.meeting-body { padding: 20px 22px 24px; }
.meeting-when { display: inline-flex; align-items: center; gap: .4rem; background: var(--navy); color: #fff; border-radius: 999px; padding: .25rem .8rem; font-weight: 700; font-size: .85rem; margin-bottom: .7rem; }
.meeting h3 { margin: .2rem 0 .4rem; font-size: 1.3rem; }
.meeting p { margin: 0; color: var(--muted); font-size: .96rem; }

.poster-row { margin-top: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 18px; display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 24px; align-items: center; }
@media (max-width: 760px) { .poster-row { grid-template-columns: 1fr; } }
.poster-row a:first-child { display: block; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); }
.poster-row h3 { margin-bottom: .3rem; }
.poster-row p { font-size: .95rem; }
.poster-row .btn { padding: .6rem 1.15rem; font-size: .9rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: zoom-in; background: #fff; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery.portrait img { aspect-ratio: 4 / 5; }
@media (max-width: 480px) { .gallery.portrait { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .topics { grid-template-columns: 1fr; } }
.topic { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 24px 22px 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.topic .icon { font-size: 2rem; line-height: 1; }
.topic-tag { align-self: flex-start; background: var(--sky); color: var(--navy); border-radius: 999px; padding: .15rem .7rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.topic h3 { font-size: 1.12rem; margin: 0; }
.topic p { margin: 0; color: var(--muted); font-size: .95rem; }
.topic p strong { color: var(--navy); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0, 14, 44, .92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #fff; font-weight: 600; padding-inline: 70px; font-size: .9rem; }
@media (max-width: 600px) { .lightbox { padding: 12px; } .lightbox figcaption { padding-inline: 16px; bottom: 12px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 48px; transform: none; width: 42px; height: 42px; } }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; font-family: inherit; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; color: var(--navy); font-size: .9rem; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; padding: .8rem .95rem; border: 2px solid var(--line); border-radius: 12px; background: var(--sky-2); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 191, .15); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); }
.captcha-box { margin-bottom: 16px; min-height: 70px; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 14px; }
.form-status.ok { display: block; background: #e8f7e2; color: var(--green-dark); border: 1px solid #b9e3a8; }
.form-status.err { display: block; background: #fdeaea; color: #a52626; border: 1px solid #f3bcbc; }
.form-status.info { display: block; background: var(--sky); color: var(--navy-700); border: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-cards { display: grid; gap: 14px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: center; text-decoration: none !important; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card .ci { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.contact-card .ci svg { width: 26px; height: 26px; fill: currentColor; }
.contact-card strong { display: block; color: var(--navy); }
.contact-card span { color: var(--muted); font-size: .92rem; word-break: break-all; }
.ci-mail { background: var(--navy); }
.ci-web { background: var(--green); }
.ci-fb { background: #1877f2; }
.ci-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }

/* ==========================================================================
   Patička
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); margin-top: 40px; position: relative; }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--grad); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-block: 44px 30px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; color: #fff; font-weight: 800; }
.footer-brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; }
.footer-brand small { display: block; font-weight: 500; color: rgba(255, 255, 255, .7); font-size: .85rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; transition: background .15s; }
.socials a:hover { background: rgba(255, 255, 255, .25); }
.socials svg { width: 22px; height: 22px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 16px; font-size: .82rem; color: rgba(255, 255, 255, .65); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Cookie-free / animace při scrollu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo img { animation: none; }
  html { scroll-behavior: auto; }
}

/* Pomocné */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow); display: none; place-items: center; z-index: 40; font-size: 1.1rem; font-family: inherit; }
.to-top.show { display: grid; }
.pill { display: inline-block; background: var(--sky); color: var(--navy); border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700; }
