/* ==========================================================================
   Žabka a žabka / Trepka a trepka – společné styly
   Soubor je na obou webech stejný, liší se jen barevné téma v bloku :root.
   Při úpravě stylů změňte oba soubory (stačí zkopírovat vše pod :root).
   ========================================================================== */

/* ---------- Písma (uložená lokálně, bez Google Fonts) ---------- */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/baloo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Barevné téma: Žabka ---------- */
:root {
  --bg: #fff8ec;            /* krémové pozadí */
  --paper: #fffdf8;         /* karty */
  --ink: #22332a;           /* text */
  --ink-soft: #4b5c51;      /* doprovodný text */
  --line: #eadfca;

  --primary: #3d8a34;       /* listová zelená */
  --primary-dark: #2a6626;
  --primary-tint: #e4f1da;
  --accent: #f4b63c;        /* slunečná žlutá */
  --accent-tint: #fff0c9;
  --water: #2f8db5;         /* voda */
  --water-tint: #e2f2f7;
  --warm: #e2724b;          /* teplý akcent */

  --accent-strong: #7a5300; /* text na žlutém podkladu */
  --accent-ink: #3a2a00;    /* text na žlutém tlačítku */
  --accent-hover: #ffc757;
  --accent-line: #f3d68c;
  --water-strong: #1d5f7c;
  --primary-tint-2: #edf6e6;

  --dark: #1e4527;          /* tmavé sekce a patička */
  --dark-ink: #f3f8ec;
  --dark-soft: #cfe0ca;
  --dark-muted: #a9c7a1;
  --on-primary-soft: #e6f3df;
  --video-a: #2f6a39;
  --video-b: #163521;

  --header-bg: rgba(255, 248, 236, 0.88);
  --lightbox-bg: rgba(16, 28, 18, 0.94);
  --shadow-rgb: 40, 62, 32;

  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 34px -18px rgba(var(--shadow-rgb), 0.45);
  --shadow-sm: 0 6px 16px -10px rgba(var(--shadow-rgb), 0.4);
  --container: 1160px;
  --header-h: 72px;
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem); font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--primary-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--primary); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tlačítka a štítky ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary-dark); border-color: currentColor; }
.btn--ghost:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--small { padding: 0.55em 1.05em; font-size: 1rem; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.35em 0.95em;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
}
.pill--accent { background: var(--accent-tint); color: var(--accent-strong); }
.pill--water { background: var(--water-tint); color: var(--water-strong); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, 0.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-tint); }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.brand:hover { color: var(--ink); }

.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--ink);
  transition: background-color 0.15s;
}
.nav a:hover, .nav a.is-active { background: var(--primary-tint); color: var(--primary-dark); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--primary-tint); color: var(--primary-dark); cursor: pointer;
}
.nav-toggle .i { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(0, 0, 0, 0.4);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 18px; }
  .nav a { padding: 12px 16px; font-size: 1.15rem; }
}

/* ---------- Sekce ---------- */
.section { padding-block: clamp(64px, 8vw, 110px); position: relative; }
.section--tint { background: var(--primary-tint); }
.section--water { background: var(--water-tint); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .pill { margin-bottom: 14px; }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); color: var(--ink-soft); }
.section--dark .lead { color: var(--dark-soft); }

/* vlnky mezi sekcemi */
.wave { display: block; width: 100%; height: clamp(28px, 4vw, 56px); color: var(--bg); }
.wave--tint { color: var(--primary-tint); }
.wave--water { color: var(--water-tint); }
.wave--dark { color: var(--dark); }
.wave--flip { transform: scaleY(-1); }
.wave-wrap { line-height: 0; }

/* ---------- Úvod (hero) ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(3.1rem, 2rem + 5.5vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 18px 0 20px;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.hero h1 .amp { color: var(--accent); font-size: 0.7em; }
.hero__lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 0.98rem; }
.hero__facts .i { color: var(--primary); }

.partners {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 28px; padding-top: 22px; border-top: 2px dashed var(--line);
  font-size: 0.95rem; font-weight: 700; color: var(--ink-soft);
}
.partners a { display: block; transition: transform 0.15s; }
.partners a:hover { transform: translateY(-2px); }
.partners__ae img { width: 56px; height: 56px; border-radius: 12px; }
.partners__kraj img { height: 31px; width: auto; }
.partners__kraj--square img { height: 52px; }

.hero__visual { position: relative; padding: 0 0 8% 12%; }
.hero__photo {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  object-position: 78% 35%;
  border-radius: 56% 44% 48% 52% / 46% 52% 48% 54%;
  box-shadow: var(--shadow);
  border: 8px solid var(--paper);
}
.hero__blob {
  position: absolute; z-index: -1;
  width: 70%; aspect-ratio: 1; right: -8%; top: -6%;
  background: var(--accent-tint);
  border-radius: 50%;
}

.mascot {
  position: absolute; left: -2%; bottom: -2%;
  width: 38%;
  border: 0; padding: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%;
}
.mascot img { width: 100%; filter: drop-shadow(0 10px 12px rgba(var(--shadow-rgb), 0.3)); }
.mascot .mascot__talk { position: absolute; inset: 0; opacity: 0; }
.mascot.is-talking .mascot__talk { opacity: 1; }
.mascot.is-talking .mascot__idle { opacity: 0; }
.mascot.is-hopping { animation: hop 0.6s ease; }

.bubble {
  position: absolute; left: 30%; bottom: 40%;
  max-width: 220px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.25;
  color: var(--ink);
  pointer-events: none;
}
.bubble::after {
  content: ""; position: absolute; left: 18px; bottom: -12px;
  border: 12px solid transparent; border-top-color: #fff; border-bottom: 0;
  transform: skewX(20deg);
}

@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(0) scale(1.06, 0.92); }
  55% { transform: translateY(-14%) scale(0.96, 1.05); }
  80% { transform: translateY(0) scale(1.04, 0.95); }
}

/* mikroskop s videem (Trepka) – varianta maskota */
.mascot--scope {
  width: 46%; left: -4%; bottom: -4%;
  border-radius: 50%;
  aspect-ratio: 1;
}
.mascot--scope video,
.mascot--scope img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  background: #000;
  border: 10px solid var(--paper);
  box-shadow: 0 0 0 5px var(--primary), var(--shadow);
  filter: none;
}
.mascot--scope.is-hopping { animation: wobble 0.6s ease; }
.scope__label {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 12px; border-radius: 999px;
  background: var(--primary-dark); color: #fff;
  font-size: 0.85rem; font-weight: 800;
}
.hero__visual--scope .bubble { left: 38%; bottom: 46%; }

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg) scale(1.03); }
  60% { transform: rotate(5deg); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .mascot--scope { left: 0; width: 42%; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ---------- O projektu ---------- */
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__text p { font-size: 1.15rem; }
.topic {
  background: var(--paper); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.topic__label { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--water); margin-bottom: 6px; }
.topic__title { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1.15; margin-bottom: 10px; }
.topic p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 56px); }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.card__icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary-dark);
  margin-bottom: 16px;
}
.card__icon .i { width: 28px; height: 28px; }
.card__icon--accent { background: var(--accent-tint); color: var(--accent-strong); }
.card__icon--water { background: var(--water-tint); color: var(--water-strong); }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.age {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius-sm);
  background: var(--paper); border: 2px dashed var(--line);
}
.age__badge {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: #fff; background: var(--primary);
}
.age:nth-child(2) .age__badge { background: var(--water); }
.age:nth-child(3) .age__badge { background: var(--warm); }
.age div strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.age div span { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; display: block; }

@media (max-width: 900px) {
  .about__grid, .cards, .ages { grid-template-columns: 1fr; }
}

/* ---------- Proč voda ---------- */
.water__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.measures { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.measures li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, 0.7); border-radius: var(--radius-sm); padding: 14px 18px; }
.measures .i { color: var(--water); width: 28px; height: 28px; margin-top: 2px; }
.measures strong { display: block; font-family: var(--font-head); font-size: 1.12rem; }
.measures span { color: var(--ink-soft); font-size: 1rem; }

.photo-card { position: relative; }
.photo-card img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption { margin-top: 12px; font-weight: 700; color: var(--ink-soft); font-size: 1rem; }
.specimen {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 25%, var(--primary-tint) 72%);
  box-shadow: var(--shadow);
}
.specimen img { width: 58%; animation: float 6s ease-in-out infinite; }
.specimen-card { margin: 0; }
.specimen-card figcaption { margin-top: 12px; font-weight: 700; color: var(--ink-soft); font-size: 1rem; }

.fact {
  margin-top: 22px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--accent-tint); border: 2px solid var(--accent-line);
}
.fact h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 8px; color: var(--accent-strong); }
.fact p { margin: 0; font-size: 1.02rem; }

@media (max-width: 900px) { .water__grid { grid-template-columns: 1fr; } }

/* ---------- Hádanka (otočné karty) ---------- */
.riddle { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: clamp(20px, 4vw, 48px); }
.flip { perspective: 1200px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.flip__inner {
  position: relative; display: grid;
  transition: transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1);
  transform-style: preserve-3d;
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  grid-area: 1 / 1;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 380px;
}
.flip__face--back { transform: rotateY(180deg); background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; align-items: flex-start; text-align: left; }
.flip__title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: #fff; margin-bottom: 10px; }
.flip__text { display: block; color: var(--on-primary-soft); }
.flip__face img { max-height: 210px; width: auto; object-fit: contain; margin: 10px auto 18px; }
.flip__num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.flip__hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--primary-dark); font-weight: 800; }
.flip:hover .flip__face--front { border-color: var(--accent); }
.riddle-answer.is-hint { color: var(--ink-soft); font-size: 1.15rem; }
.riddle-answer.is-solved { animation: pop 0.5s ease; }
@keyframes pop { 0% { transform: scale(0.9); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: none; opacity: 1; } }
.riddle-answer {
  max-width: 640px; margin: 36px auto 0; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--primary-dark);
}

@media (max-width: 760px) { .riddle { grid-template-columns: minmax(0, 420px); } }

/* ---------- Film ---------- */
.film { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--video-a), var(--video-b));
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  border: 6px solid rgba(255, 255, 255, 0.12);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; text-align: center; padding: 20px;
}
.video__placeholder img { width: min(60%, 340px); animation: float 4s ease-in-out infinite; }
.video__placeholder strong { font-family: var(--font-head); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }
.video__play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  background: transparent; display: grid; place-items: center;
}
.video__play span {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.video__play:hover span { transform: scale(1.08); }
.video__play .i { width: 36px; height: 36px; fill: currentColor; margin-left: 4px; }
.video__note { font-size: 0.9rem; color: var(--dark-muted); margin-top: 12px; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(14px, -10px) rotate(2deg); }
}

@media (max-width: 900px) { .film { grid-template-columns: 1fr; } }

/* ---------- Ke stažení ---------- */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.dl {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.dl__preview { display: block; aspect-ratio: 4 / 3; background: var(--primary-tint); overflow: hidden; }
.dl__preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.dl__preview:hover img { transform: scale(1.05); }
.dl__preview--doc { background: #fff; border-bottom: 1px solid var(--line); }
.dl__preview--doc img { object-position: top; }
.dl__preview--icon { display: grid; place-items: center; color: var(--primary); background: repeating-linear-gradient(-45deg, var(--primary-tint) 0 14px, var(--primary-tint-2) 14px 28px); }
.dl__preview--icon .i { width: 64px; height: 64px; stroke-width: 1.5; }
.dl__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dl__body h3 { font-size: 1.3rem; margin: 0; }
.dl__body p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.dl__meta { font-size: 0.9rem; color: var(--ink-soft); font-weight: 700; }
.dl__body .btn, .dl__body .pill { margin-top: auto; align-self: flex-start; }
.dl-note { margin-top: 28px; text-align: center; color: var(--ink-soft); }

/* ---------- Galerie ---------- */
.gallery-block + .gallery-block { margin-top: clamp(44px, 6vw, 70px); }
.gallery-block > p { color: var(--ink-soft); max-width: 680px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 42vw), 1fr)); gap: 18px; margin-top: 22px; }
.gallery--photos { grid-template-columns: repeat(auto-fill, minmax(min(240px, 42vw), 1fr)); }
.gallery a {
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--paper); padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery--drawings a:nth-child(3n + 1) { transform: rotate(-1.5deg); }
.gallery--drawings a:nth-child(3n + 2) { transform: rotate(1deg); }
.gallery--drawings a:nth-child(3n) { transform: rotate(-0.5deg); }
.gallery a:hover { transform: rotate(0) translateY(-4px) scale(1.03); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.gallery-soon {
  display: grid; place-items: center; text-align: center; padding: 18px;
  border-radius: var(--radius-sm); border: 3px dashed var(--line); color: var(--ink-soft);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; min-height: 180px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--lightbox-bg);
  color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade 0.2s ease; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 700; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.lightbox__img.is-loading { opacity: 0.3; }
.lightbox__caption { padding: 14px 16px 22px; text-align: center; font-family: var(--font-head); font-size: 1.2rem; min-height: 1.5em; }
.lightbox button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  transition: background-color 0.15s;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox button .i { width: 26px; height: 26px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

@media (max-width: 640px) {
  .lightbox__stage { padding: 0 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -62px; transform: none; }
  .lightbox__caption { padding-inline: 70px; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Pro školy (workshop) ---------- */
.workshop {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  background: var(--accent-tint);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(28px, 5vw, 60px);
  border: 3px solid var(--accent-line);
  position: relative;
}
.workshop h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.steps li::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-dark); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
}
.steps strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.steps span { color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 900px) { .workshop { grid-template-columns: 1fr; } }

/* ---------- Patička ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); padding-block: 56px 28px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer__title { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer p { color: var(--dark-soft); font-size: 1rem; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.footer__list a:hover { text-decoration: underline; }
.footer__logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.footer__logos a { display: grid; place-items: center; height: 88px; background: #fff; border-radius: 14px; padding: 0 20px; }
.footer__logos img { height: 38px; width: auto; }
.footer__logos a.logo-ae { padding: 0; overflow: hidden; width: 88px; }
.footer__logos a.logo-ae img { height: 88px; }
.footer__logos a.logo-square { padding: 0 12px; }
.footer__logos a.logo-square img { height: 64px; }
.footer__tags { margin-top: 16px; }
.footer__tags li { color: var(--dark-muted); }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.95rem; color: var(--dark-muted);
}

@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Postupné zobrazení při posunu ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
