/* Pavel Fara – Tmavé studio */

:root {
  --bg: #0b0f1a;
  --bg-2: #10162a;
  --tile: #141b2e;
  --tile-2: #19223a;
  --line: rgba(173, 190, 230, 0.14);
  --line-strong: rgba(173, 190, 230, 0.28);
  --text: #eef1f7;
  --text-soft: #c3cad8;
  --muted: #97a2b8;
  --accent: #f6c445;          /* jantar – hlavní CTA */
  --accent-ink: #1a1405;
  --accent-soft: rgba(246, 196, 69, 0.14);
  --violet: #7c6cff;
  --cyan: #38c6d9;
  --warm: #ff9f7a;
  --warm-tile: #1d1a24;
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(56, 198, 217, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 68px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: 44px;
}
.wordmark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(246, 196, 69, 0.7);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* Na mobilu se menu schová pod hamburger. Bez JavaScriptu zůstane rozbalené pod jménem. */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 60px; }
  .site-nav { flex-basis: 100%; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { width: 100%; min-height: 52px; padding: 0 0.5rem; border-radius: 10px; font-size: 1.1rem; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.4rem clamp(1rem, 4vw, 2rem) 0.9rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
  }
  .js .site-nav.is-open { display: block; }
}

/* ---------- Obecné ---------- */

.section { padding-top: clamp(2.5rem, 6vw, 5rem); }
.section:last-of-type { padding-bottom: clamp(3rem, 7vw, 6rem); }

.section-head { margin-bottom: 1.5rem; }

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-warm { color: var(--warm); }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tile-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.tile-title-xl { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.bento {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
}

.tile {
  position: relative;
  background: linear-gradient(180deg, var(--tile-2), var(--tile));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2.25rem);
  color: var(--text-soft);
  min-width: 0;
}
.tile p { max-width: 68ch; }

/* ---------- Tlačítka ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.actions-stack { flex-direction: column; align-items: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 28px rgba(246, 196, 69, 0.28);
}
.btn-primary:hover { background: #ffd566; box-shadow: 0 8px 34px rgba(246, 196, 69, 0.4); }

.btn-lg { min-height: 56px; padding: 0.85rem 1.7rem; font-size: 1.1rem; }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--text-soft); background: rgba(255, 255, 255, 0.07); }

.btn-outline {
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--text); }

.btn-warm {
  color: #24130b;
  background: var(--warm);
  margin-top: 1.25rem;
}
.btn-warm:hover { background: #ffb496; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.link-arrow:hover { text-decoration-color: var(--accent); }
.link-warm:hover { text-decoration-color: var(--warm); }

/* ---------- Úvod ---------- */

.bento-hero { grid-template-columns: 1fr; }

@media (min-width: 860px) {
  .bento-hero { grid-template-columns: 1.55fr 1fr; }
}

.tile-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text);
}
.hero-title span { display: block; }
.accent-text { color: var(--accent); }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 34em;
}

.tile-portrait {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 35%, rgba(124, 108, 255, 0.35), transparent 70%),
    radial-gradient(60% 45% at 50% 100%, rgba(56, 198, 217, 0.18), transparent 70%),
    linear-gradient(180deg, #1a2240, #121831);
  min-height: 420px;
}
.portrait {
  width: auto;
  max-height: 560px;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}
.portrait-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.78);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 859px) {
  .tile-portrait { min-height: 0; }
  .portrait { max-height: 440px; }
}

/* ---------- Takto pracuji ---------- */

/* Kurzy pro radost jsou vlevo a větší, AI Mind klub vpravo a menší. Vedle sebe až od 1180 px. */
.bento-work { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 1180px) {
  .bento-work { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: stretch; }
}

/* AI Mind klub */
.tile-aimind {
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(124, 108, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(25, 30, 60, 0.96), rgba(16, 20, 40, 0.98));
  box-shadow:
    0 0 0 1px rgba(124, 108, 255, 0.12),
    0 30px 80px -30px rgba(124, 108, 255, 0.45);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.aimind-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 70% 30%, rgba(124, 108, 255, 0.45), transparent 70%),
    radial-gradient(40% 50% at 25% 20%, rgba(56, 198, 217, 0.25), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(246, 196, 69, 0.4);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tile-aimind .tile-title { color: #fff; margin-bottom: 0.4rem; }
.aimind-lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
}

.aimind-faces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.face { margin: 0; }
.face img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 18px;
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(124, 108, 255, 0.55), transparent 75%),
    linear-gradient(180deg, #2a2f5a, #161a33);
  border: 1px solid rgba(124, 108, 255, 0.35);
}
.face figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.aimind-body { color: var(--text-soft); }

.five {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.five-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.16);
  border: 1px solid rgba(124, 108, 255, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.facts li {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(11, 15, 26, 0.45);
  font-size: 0.95rem;
  line-height: 1.4;
}
.facts strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }

.fineprint {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.fineprint a { color: var(--text-soft); text-underline-offset: 3px; }
.fineprint a:hover { color: var(--text); }

@media (min-width: 720px) {
  .tile-aimind {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head faces"
      "body body";
    column-gap: 2rem;
  }
  .aimind-head { grid-area: head; align-self: center; }
  .aimind-faces { grid-area: faces; }
  .aimind-body { grid-area: body; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.aimind-actions .actions { margin-top: 1.5rem; }

/* Úzký sloupec vedle Kurzů pro radost: všechno pod sebou. */
@media (min-width: 1180px) {
  .tile-aimind {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "faces" "head" "body";
    row-gap: 1.25rem;
    box-shadow: 0 0 0 1px rgba(124, 108, 255, 0.1), 0 24px 60px -34px rgba(124, 108, 255, 0.35);
  }
  .tile-aimind .tile-title-xl { font-size: clamp(2rem, 2.9vw, 2.5rem); }
  .aimind-head { align-self: start; }
  .aimind-body { display: flex; flex-direction: column; }
  .aimind-body > p { font-size: 1rem; line-height: 1.65; }
  .aimind-actions { margin-top: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* V úzkém sloupci jsou portréty malé a kulaté, tlačítka úspornější. */
  .aimind-faces { display: flex; gap: 1.1rem; }
  .aimind-faces .face { width: 96px; text-align: center; }
  .aimind-faces .face img { border-radius: 50%; }
  .aimind-faces .face figcaption { margin-top: 0.4rem; font-size: 0.88rem; line-height: 1.2; }
  .five { margin: 1.1rem 0; padding: 0.9rem 1rem; }
  .tile-aimind .actions { gap: 0.6rem; }
  .tile-aimind .actions .btn { flex: 1 1 auto; }
  .tile-aimind .actions .btn-primary { flex-basis: 100%; }
  .tile-aimind .actions .btn-ghost { min-height: 44px; padding: 0.45rem 0.7rem; font-size: 0.88rem; gap: 0.3rem; }
}

/* Kurzy pro radost: barevné K z loga a tři lektoři */
.tile-kpr {
  display: flex;
  flex-direction: column;
  border-color: var(--line-strong);
  background:
    radial-gradient(60% 34% at 0% 0%, rgba(166, 36, 161, 0.2), transparent 72%),
    linear-gradient(180deg, var(--tile-2), var(--tile));
}
.tile-kpr .tile-title-xl { color: #fff; margin-bottom: 0.9rem; }
.kpr-lead {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.kpr-k { display: block; height: auto; }
.kpr-brand { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); margin-bottom: 1.25rem; }
.kpr-brand .kpr-k { flex: none; width: clamp(84px, 15vw, 136px); }
.kpr-brand .tile-title-xl { margin-bottom: 0; }

/* Když je sousední dlaždice klubu vyšší, karty lektorů se roztáhnou. */
.lectors {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
}
.lectors li { display: flex; min-width: 0; }
.lector {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(11, 15, 26, 0.5);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.lector:hover { border-color: var(--accent); transform: translateY(-2px); }
.lector-photo { position: relative; flex: 1 0 auto; aspect-ratio: 1 / 1; }
.lector-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.lector-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}
.lector:hover .lector-link { color: var(--accent); }
.lector-k {
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: radial-gradient(70% 70% at 50% 45%, rgba(255, 255, 255, 0.08), transparent 75%), rgba(11, 15, 26, 0.5);
}
.lector-k .kpr-k { width: min(58%, 180px); }
.lectors-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lectors-pyramid li:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.55rem); }
@media (max-width: 620px) {
  .lectors-3 { grid-template-columns: minmax(0, 1fr); }
  .lector-link { min-height: 48px; padding: 0.55rem 0.65rem; font-size: 0.86rem; }
}

/* ---------- Osobní část ---------- */

.bento-personal { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .bento-personal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile-books { grid-column: 1 / -1; }
}


.tile-warm {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 159, 122, 0.12), transparent 70%),
    linear-gradient(180deg, #221d29, var(--warm-tile));
  border-color: rgba(255, 159, 122, 0.2);
}

.tile-books {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 720px) {
  .tile-books { grid-template-columns: 1fr 1.1fr; }
}
.books-media img {
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.trait-icon {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 159, 122, 0.14);
  color: var(--warm);
  font-size: 1.05rem;
}
.tile-plans {
  background:
    linear-gradient(180deg, rgba(246, 196, 69, 0.08), transparent 60%),
    linear-gradient(180deg, var(--tile-2), var(--tile));
  border-style: dashed;
  border-color: rgba(246, 196, 69, 0.35);
}

/* ---------- Kontakt: úsporný pruh ---------- */

.tile-contact { display: grid; gap: 1rem 2.5rem; align-items: start; }
.tile-contact .tile-title { margin: 0; }
.contact-list { margin: 0; display: grid; gap: 0.6rem 2.25rem; }
.contact-list div { min-width: 0; }
.contact-list dt { margin: 0; color: var(--muted); font-size: 0.92rem; }
.contact-list dd { margin: 0; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.socials a, .socials .is-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials .is-pending { color: var(--muted); border-style: dashed; }
@media (min-width: 760px) {
  .contact-list { grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (min-width: 1000px) {
  .tile-contact { grid-template-columns: auto minmax(0, 1fr); }
  .tile-contact .tile-title { padding-top: 0.2rem; }
  .tile-contact .socials { grid-column: 2; }
}

/* ---------- Patička ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #080b14;
  padding: 1.75rem 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}



/* ================= Rozšíření pro celý web (f2-web) ================= */

.nav-list a { white-space: nowrap; }

/* ---------- Pohádkové výlety ---------- */

.bento-books { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .bento-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-story { grid-column: 1 / -1; }
}
/* Tři stejně široké sloupce, aby se odkaz v levé dlaždici vešel na jeden řádek. */
@media (min-width: 1120px) {
  .bento-books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-story { grid-column: auto; }
}

.tile-story { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.story-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
}
.illustrator { display: flex; align-items: center; gap: 0.75rem; color: var(--text); font-weight: 600; margin-top: 0.5rem; }

.tile-book {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 159, 122, 0.22);
}
.book-cover {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem) 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.tile-book-1 .book-cover { background: radial-gradient(75% 75% at 50% 40%, rgba(56, 198, 217, 0.28), transparent 72%), #131a30; }
.tile-book-2 .book-cover { background: radial-gradient(75% 75% at 50% 40%, rgba(255, 159, 122, 0.3), transparent 72%), #1e1722; }
.book-cover img {
  width: auto;
  height: clamp(250px, 30vw, 340px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s;
}
.book-cover:hover img { transform: translateY(-4px) rotate(-1.5deg); }
.book-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(1.25rem, 3vw, 1.75rem); }
.book-copy .tile-title { font-size: clamp(1.35rem, 2.2vw, 1.6rem); overflow-wrap: anywhere; }
.book-copy .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Jediná věta o audioknihách pod knížkami */
.tile-audio-line {
  grid-column: 1 / -1;
  margin: 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 1.2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
/* Odkaz je dole ve stejné výšce jako odkazy pod knížkami. */
.tile-story { justify-content: flex-start; padding-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.tile-story .link-arrow { margin-top: auto; padding-top: 0.5rem; }
/* Název Čapkovy knížky žlutou z loga Kurzů pro radost. */
.story-lead cite { font-style: italic; color: #ffbd10; }
.tile-story > p + p { margin-top: 0.15rem; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Osobní část a kontakt ---------- */

/* O mně a Cestování: text nahoře, pod ním video nebo fotka. Co chystám je úzký pruh pod nimi. */
.tile-media { display: flex; flex-direction: column; }
.tile-media > p { max-width: 60ch; }
.media-frame {
  margin: auto 0 0;
  padding-top: 1.25rem;
}
.media-frame img, .media-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #05070d;
}
.media-frame figcaption { margin-top: 0.55rem; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.bento-personal .tile-plans { grid-column: 1 / -1; display: grid; gap: 0.4rem 2.5rem; align-items: start; }
.tile-plans .tile-title { margin: 0; }
.tile-plans p { max-width: 68ch; }
.tile-plans .link-arrow { margin-top: 0.3rem; }
@media (min-width: 760px) {
  .bento-personal .tile-plans { grid-template-columns: auto minmax(0, 1fr); }
}


@media (max-width: 520px) {
  .actions .btn { width: 100%; }
  .book-cover img { height: 260px; }
}
