/* ==========================================================================
   Před deštěm — styly webu
   Barvy a písma se mění na jednom místě: v :root níže.
   ========================================================================== */

:root {
  /* Barvy */
  --paper: #f7f2e8;        /* teplý papírový podklad */
  --paper-2: #efe6d3;
  --white: #fffdf8;
  --ink: #17261d;          /* text */
  --ink-soft: #4b5a50;
  --line: #ddd3bf;

  --forest: #1f4d36;       /* hlavní zelená */
  --forest-2: #2e6a4a;
  --leaf: #c3dd72;         /* svěží akcent */
  --leaf-soft: #e6efc4;
  --clay: #8b4a2b;     /* hliněná – pilíř Společnost & politika */
  --clay-soft: #f1dfcf;
  --sun: #f2c14e;

  /* Písma */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rozměry */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(23, 38, 29, .06), 0 12px 32px -12px rgba(23, 38, 29, .22);
  --header-h: 76px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }
em, .accent { font-style: italic; color: var(--forest-2); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--forest); color: var(--paper); }
.section--dark em { color: var(--leaf); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

/* Nadpisy sekcí */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest-2);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--leaf); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section--dark .section-head p { color: rgba(247, 242, 232, .78); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

/* Ručně kreslené podtržení */
.scribble { position: relative; isolation: isolate; white-space: nowrap; font-style: italic; color: var(--forest-2); }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 4, 90 4, 120 9 S 180 15, 197 6' fill='none' stroke='%23c3dd72' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--forest); color: var(--paper); box-shadow: 0 10px 24px -10px rgba(31, 77, 54, .7); }
.btn--primary:hover { background: var(--forest-2); }
.btn--leaf { background: var(--leaf); color: var(--ink); }
.btn--leaf:hover { background: #d0e88a; }
.btn--ghost { border-color: currentColor; background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--dark .btn--ghost { color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; text-decoration: none; color: var(--forest);
  border-bottom: 2px solid var(--leaf); padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--forest); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 242, 232, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(247, 242, 232, .94); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo span { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background-color .2s ease;
}
.nav a:not(.btn):hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--leaf-soft); color: var(--forest); }
.nav .btn { margin-left: 10px; min-height: 46px; padding: 0 20px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 4px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: 2rem; font-weight: 600; padding: 8px 24px; }
  .nav .btn { margin: 20px 0 0; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter by jinak uzavřel menu do výšky hlavičky */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .site-header .logo { position: relative; z-index: 2; }
}

/* ---------- Hero (úvod) ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; margin-bottom: 1.4rem;
}
.chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; font-style: normal; font-size: .75rem; }

.hero-collage { position: relative; aspect-ratio: 1 / 1.02; }
.hero-collage figure { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .c1 { inset: 0 18% 30% 0; }
.hero-collage .c2 { width: 52%; aspect-ratio: 4 / 3; right: 0; top: 38%; transform: rotate(2.5deg); border: 6px solid var(--white); }
.hero-collage .c3 { width: 40%; aspect-ratio: 1; left: 8%; bottom: 0; transform: rotate(-3deg); border: 6px solid var(--white); }
.sticker {
  position: absolute; right: 4%; top: 4%; z-index: 2;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--leaf); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font: 700 .82rem/1.15 var(--font-body);
  transform: rotate(10deg);
  box-shadow: var(--shadow);
}
.sticker strong { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.float-card {
  position: absolute; left: 50%; bottom: 6%; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .88rem; line-height: 1.3;
}
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #3fae5a; box-shadow: 0 0 0 5px rgba(63, 174, 90, .18); flex: none; }
.float-card b { display: block; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-collage { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .sticker { width: 92px; height: 92px; font-size: .7rem; }
  .sticker strong { font-size: 1.3rem; }
  .float-card { left: auto; right: 0; }
}

/* ---------- Čísla ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 26px 24px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--forest); margin-bottom: 6px; }
.stat span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Běžící pás témat ---------- */
.marquee-clip { overflow: hidden; padding-block: 12px; }
.marquee { background: var(--forest); color: var(--paper); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin-inline: -20px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-style: italic; padding-inline: 18px; white-space: nowrap; }
.marquee__track span::after { content: "✦"; font-style: normal; color: var(--leaf); margin-left: 36px; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pilíře ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__img { aspect-ratio: 16 / 9; overflow: hidden; }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pillar:hover .pillar__img img { transform: scale(1.04); }
.pillar__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pillar__body p { color: var(--ink-soft); }
.pillar__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.pillar--env .pillar__label { color: var(--forest-2); }
.pillar--civ .pillar__label { color: var(--clay); }
.pillar--civ h3 em { color: var(--clay); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; list-style: none; padding-left: 0; }
.tags li { font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.pillar--env .tags li, .tag--env { background: var(--leaf-soft); color: var(--forest); }
.pillar--civ .tags li, .tag--civ { background: var(--clay-soft); color: var(--clay); }
.pillars-note { margin-top: 24px; text-align: center; color: var(--ink-soft); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Kroky ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(247, 242, 232, .14); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--leaf); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; }
.step p { color: rgba(247, 242, 232, .75); margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Fotogalerie ---------- */
.bento { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 14px; }
.bento a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.bento a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento a:nth-child(4) { grid-row: span 2; }
.bento a:nth-child(5) { grid-column: span 2; }
.bento img, .masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bento a:hover img, .masonry a:hover img { transform: scale(1.05); }
.photo-cap {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.photo-cap span { background: var(--white); color: var(--ink); padding: 6px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; line-height: 1.3; }
.bento a:hover .photo-cap, .bento a:focus-visible .photo-cap,
.masonry a:hover .photo-cap, .masonry a:focus-visible .photo-cap { opacity: 1; transform: none; }
@media (hover: none) { .photo-cap { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .bento a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento a:nth-child(4) { grid-row: span 1; }
  .bento a:nth-child(5) { grid-column: span 2; }
  .bento a:nth-child(7) { display: none; }
}

.masonry { columns: 3 300px; column-gap: 14px; }
.masonry a { position: relative; display: block; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; }
.masonry a:nth-child(3n+1) img { aspect-ratio: 4 / 5; }
.masonry a:nth-child(3n+2) img { aspect-ratio: 3 / 2; }
.masonry a:nth-child(3n) img { aspect-ratio: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 22, 17, .92);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1100px, 100vw - 160px); }
@media (max-width: 600px) { .lightbox figure { max-width: 100%; } }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 12px; }
.lightbox figcaption { color: var(--paper); text-align: center; margin-top: 14px; font-size: .95rem; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(247, 242, 232, .14); color: var(--paper); font-size: 1.6rem; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(247, 242, 232, .28); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 18px; translate: none; } }

/* ---------- Citace ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.quote__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.quote__img img { width: 100%; height: 100%; object-fit: cover; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; letter-spacing: -.01em; }
.quote blockquote p::before { content: "„"; color: var(--leaf); }
.quote blockquote p::after { content: "“"; color: var(--leaf); }
.quote cite { font-style: normal; color: var(--ink-soft); }
.quote cite b { color: var(--ink); display: block; }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; } .quote__img { aspect-ratio: 16 / 10; } }

/* ---------- Akce ---------- */
.events { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center;
  padding: 18px 24px 18px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.event:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event__date { aspect-ratio: 1; border-radius: 16px; background: var(--leaf-soft); color: var(--forest); display: grid; place-content: center; text-align: center; line-height: 1; }
.event__date b { font-family: var(--font-display); font-size: 2.2rem; }
.event__date span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.event--civ .event__date { background: var(--clay-soft); color: var(--clay); }
.event h3 { margin: 4px 0 4px; font-size: 1.3rem; }
.event p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.event__type { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest-2); }
.event--civ .event__type { color: var(--clay); }
.event__go { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.event:hover .event__go { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.event__go svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .event { grid-template-columns: 72px 1fr; gap: 16px; padding: 14px; }
  .event__date b { font-size: 1.7rem; }
  .event__go { display: none; }
}

/* ---------- Výzvy (CTA) ---------- */
.cta-duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.cta-card { position: relative; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 340px; }
.cta-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-card p { max-width: 42ch; }
.cta-card .btn { margin-top: auto; }
.cta-card--school { background: var(--forest); color: var(--paper); }
.cta-card--school em, .cta-card--school .eyebrow { color: var(--leaf); }
.cta-card--school p { color: rgba(247, 242, 232, .8); }
.cta-card--school::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  background: url("../img/logo.svg") no-repeat center / contain; opacity: .12; transform: rotate(-18deg);
}
.cta-card--join { background: var(--leaf); color: var(--ink); }
.cta-card--join em { color: var(--forest); }
@media (max-width: 820px) { .cta-duo { grid-template-columns: 1fr; } .cta-card { min-height: 0; } .cta-card .btn { margin-top: 12px; } }

/* ---------- Záhlaví podstránek ---------- */
.page-hero { padding-block: clamp(36px, 6vw, 72px) 0; }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin-bottom: .3em; }
.page-hero .wrap + .wrap { display: block; }
.page-hero__img { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .lead { margin: 0; }
@media (max-width: 820px) { .page-hero .wrap { grid-template-columns: 1fr; align-items: start; } .page-hero__img { aspect-ratio: 16 / 9; } }

/* ---------- O nás ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.story__imgs img { border-radius: var(--radius-sm); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.story__imgs img:last-child { margin-top: 40px; }
.story p { color: var(--ink-soft); font-size: 1.08rem; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--forest); margin-bottom: 18px; }
.value:nth-child(even) .value__icon { background: var(--clay-soft); color: var(--clay); }
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.25rem; }
.value p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.member__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 600;
  background: var(--leaf-soft); color: var(--forest);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member:nth-child(3n+2) .member__photo { background: var(--clay-soft); color: var(--clay); }
.member:nth-child(3n) .member__photo { background: #f6e3b4; color: #7a5a12; }
.member h3 { font-size: 1.3rem; margin-bottom: 2px; }
.member__role { font-weight: 700; color: var(--forest-2); font-size: .92rem; margin-bottom: 6px; }
.member p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.partners div {
  height: 88px; border-radius: var(--radius-sm); border: 2px dashed var(--line);
  display: grid; place-items: center; color: var(--ink-soft); font-size: .88rem; font-weight: 600;
}

/* ---------- Programy ---------- */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.format { padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.format h3 { font-size: 1.3rem; }
.format p { color: var(--ink-soft); font-size: .98rem; }
.format dl { margin: auto 0 0; display: grid; gap: 4px; font-size: .9rem; padding-top: 14px; border-top: 1px solid var(--line); }
.format dl div { display: flex; justify-content: space-between; gap: 12px; }
.format dt { color: var(--ink-soft); }
.format dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 1000px) { .formats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--line);
  background: transparent; font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.program { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.program[hidden] { display: none; }
.program__img { aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.program__img img { width: 100%; height: 100%; object-fit: cover; }
.program__img .tag { position: absolute; left: 12px; top: 12px; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.program__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.program h3 { font-size: 1.3rem; }
.program p { color: var(--ink-soft); font-size: .96rem; }
.program__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); padding-top: 12px; border-top: 1px solid var(--line); }
.program__meta span { display: inline-flex; align-items: center; gap: 6px; }
.program__meta svg { width: 16px; height: 16px; color: var(--forest-2); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 36px; height: 36px; border-radius: 50%; background: var(--leaf-soft); color: var(--forest);
  display: grid; place-items: center; font-family: var(--font-body); font-size: 1.4rem; transition: rotate .25s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ink-soft); padding-right: 48px; }

/* ---------- Proběhlé akce ---------- */
.past { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.past-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.past-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.past-card__img img { width: 100%; height: 100%; object-fit: cover; }
.past-card__body { padding: 20px 22px 24px; }
.past-card time { font-size: .85rem; font-weight: 700; color: var(--forest-2); }
.past-card h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.past-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Kontakt a formulář ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--paper);
  font: 400 1rem var(--font-body); color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-2); background: var(--white); }
.field { min-width: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { margin: 0; position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: .95rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.segmented input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.segmented input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.form-note { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.form-success { display: none; text-align: center; padding: 32px 8px; }
.form-success .big { font-size: 3rem; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

.contact-side { display: grid; gap: 18px; }
.info-card { border-radius: var(--radius); padding: 28px; background: var(--paper-2); }
.info-card h3 { font-size: 1.3rem; }
.info-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-card li { display: flex; gap: 12px; align-items: flex-start; }
.info-card li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--forest-2); }
.info-card a { font-weight: 600; }
.info-card--dark { background: var(--forest); color: var(--paper); }
.info-card--dark p { color: rgba(247, 242, 232, .8); }
.info-card dl { margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.info-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.info-card dt { color: var(--ink-soft); }
.info-card dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Sociální sítě ---------- */
.socials { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(247, 242, 232, .1); color: var(--paper); transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--leaf); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }
.socials--light a { background: var(--white); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Patička ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 88px) 28px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(247, 242, 232, .14); }
.footer-top h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); margin-bottom: 16px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-top a { text-decoration: none; color: rgba(247, 242, 232, .82); }
.footer-top a:hover { color: var(--paper); text-decoration: underline; }
.footer-brand .logo span { white-space: nowrap; color: var(--paper); }
.footer-brand p { color: rgba(247, 242, 232, .7); margin: 16px 0 20px; max-width: 34ch; }
.footer-top .socials { display: flex; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .88rem; color: rgba(247, 242, 232, .55); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Animace při scrollu ---------- */
/* třída .js se přidává v <head>, takže bez JavaScriptu zůstane obsah normálně vidět */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
