/* ==========================================================
   Dětská skupina Mrňata – styly
   ========================================================== */

:root {
  /* firemní barvy z malovaného loga */
  --brand-yellow: #FCCA0B;
  --brand-red: #F01609;
  --brand-blue: #096FD7;
  --brand-green: #5DCE0A;
  --brand-orange: #FB6309;
  --brand-magenta: #DC0C43;

  /* povrchy + text */
  --color-bg: #fffdf8;
  --color-bg-alt: #fdf4e8;
  --color-cream: #fdf6ec;
  --color-text: #3a3a46;
  --color-muted: #6e6e7a;

  /* jemné tóny pro kolečka ikon */
  --tint-pink: #fbe1e7;
  --tint-blue: #dcebfa;
  --tint-green: #e6f5d8;
  --tint-orange: #fce6d5;
  --tint-yellow: #fdf1cc;

  /* role (napojené na značku) */
  --color-primary: #096FD7;
  --color-primary-dark: #0759a8;
  --color-accent: #FB6309;
  --color-accent-dark: #e24e00;
  --color-yellow: #FCCA0B;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 10px 30px rgba(58, 58, 58, 0.08);

  --font-hand: "Caveat", cursive;
  --font-heading: "Baloo 2", cursive;
  --font-body: "Nunito", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* odsazení pod sticky hlavičku (112 px) při skoku na kotvu – platí pro všechny #kotvy */
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.5em;
}

.center {
  text-align: center;
  display: block;
}

h2.center {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* malované dekorace */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: url(#crayon);
}

.paint,
.hero-deco-sun,
.hero-deco-cloud,
.hero-deco-rainbow {
  filter: url(#crayon);
}

.alt-bg {
  background: var(--color-bg-alt);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-yellow);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: #f0bd00;
}

.btn-outline {
  border-color: var(--brand-yellow);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
  background: var(--brand-yellow);
  color: var(--color-text);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fffdf7;
}

.header-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 12px;
  line-height: 0;
  pointer-events: none;
  opacity: 0.8;
}

.header-wave svg {
  display: block;
  width: 100%;
  height: 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 84px;
  width: auto;
  max-width: 58vw;
  display: block;
}

.nav-heart a {
  display: flex;
  align-items: center;
  padding: 4px;
}
.nav-heart svg {
  width: 26px;
  height: 24px;
  transition: transform 0.15s ease;
}
.nav-heart a:hover svg,
.nav-heart a:focus-visible svg {
  transform: scale(1.15);
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.dropdown {
  display: flex;
  flex-direction: column;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.88rem;
}

.site-nav a:hover {
  color: var(--color-accent-dark);
}

/* aktuální stránka / sekce v navigaci – podtržítko na hover i active */
.site-nav > ul > li:not(.nav-heart) > a {
  position: relative;
}
.site-nav > ul > li:not(.nav-heart) > a::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -7px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.site-nav > ul > li:not(.nav-heart) > a:hover::before,
.site-nav > ul > li:not(.nav-heart) > a:focus-visible::before,
.site-nav > ul > li:not(.nav-heart) > a.is-current::before {
  transform: scaleX(1);
}
.site-nav > ul > li > a.is-current {
  color: var(--color-accent-dark);
}
.dropdown a.is-current {
  color: var(--color-accent-dark);
  background: var(--tint-yellow);
  font-weight: 700;
}

/* rozbalovací podmenu */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  padding: 12px 0 0;
  margin: 0;
  list-style: none;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  background: #fffdf7;
}

.dropdown li:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 -1px 0 rgba(58, 58, 58, 0.05);
}

.dropdown li:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.dropdown {
  box-shadow: 0 16px 34px rgba(58, 58, 58, 0.16);
  border-radius: var(--radius-sm);
  background: #fffdf7;
}

.dropdown a,
.dropdown .nav-soon {
  display: block;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--tint-yellow);
  color: var(--color-text);
}

.nav-soon {
  color: var(--color-muted);
  cursor: default;
}

.nav-soon em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-left: 8px;
  vertical-align: 1px;
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-text);
  border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-cream);
  padding: 60px 0 68px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  position: relative;
}

.hero-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.02;
  color: var(--color-text);
  margin: 0 0 0.3em;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--color-muted);
  max-width: 430px;
  margin-bottom: 1.7em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero .btn-primary,
.hero .btn-outline {
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

/* dočasné malované prvky */
.hero-deco {
  position: absolute;
  pointer-events: none;
}

.hero-deco-cloud { top: -34px; right: 8%; width: 76px; }
.hero-deco-sun { top: -30px; left: -20px; width: 64px; }
.hero-deco-rainbow { bottom: -92px; left: 22%; width: 92px; opacity: 0.9; }

.hero-media {
  position: relative;
}

.hero-deco-bunting {
  position: absolute;
  top: -22px;
  left: 4%;
  right: 4%;
  width: 92%;
  z-index: 2;
}

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

.hero-photo {
  position: relative;
  aspect-ratio: 900 / 520;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.hero-blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-photo span {
  position: relative;
  z-index: 1;
  color: #b39a6b;
  font-size: 0.95rem;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 76%;
  object-fit: cover;
  border-radius: 40% 46% 44% 42% / 48% 42% 48% 42%;
}

/* ---------- Pruh hodnot ---------- */
.values {
  background: #fff;
  padding: 44px 0;
  border-bottom: 1px solid #f2eadd;
}

.values-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.dotace-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
}

.container-narrow {
  max-width: 760px;
}

.faq-list {
  margin-top: 40px;
}

.faq-list details {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--color-muted);
}

.faq-list details p a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value-icon {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
}

.value-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.value-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ---------- Two-column sections ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 54px;
  align-items: center;
}

.placeholder-photo {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-lg);
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-muted);
}

.placeholder-photo span {
  font-size: 3rem;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.7em;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.check-list-center {
  display: inline-block;
  text-align: left;
  margin: 26px auto 0;
}

.o-nas-intro {
  text-align: center;
}

.director-card-top {
  margin-top: 0;
}

.director-card-top + .o-nas-intro {
  margin-top: 46px;
}

/* ---------- Timeline (program) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.timeline-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-accent);
}

.timeline-item .time {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Cards (aktivity) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
}

/* foto se odhalí při najetí myší */
.card-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 22, 10, 0.6), rgba(30, 22, 10, 0) 55%);
}

.card-photo-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

@media (hover: hover) {
  .card.has-photo:hover .card-photo {
    opacity: 1;
  }
}

/* na dotykových zařízeních (bez hoveru) je foto vidět rovnou */
@media (hover: none) {
  .card.has-photo .card-photo {
    position: static;
    opacity: 1;
    margin: -32px -26px 18px;
    width: auto;
  }
  .card.has-photo .card-photo img {
    aspect-ratio: 3 / 2;
  }
  /* překryvný titulek a přechod patří jen k hover fotce na desktopu —
     tady by se dublovaly přes text karty */
  .card.has-photo .card-photo::after,
  .card.has-photo .card-photo-title {
    display: none;
  }
}

.card-icon {
  width: 68px;
  height: 68px;
  display: block;
  margin: 0 auto 14px;
}

.contact-ico {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.gallery-doodle {
  width: 58px;
  height: 58px;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Pricing ---------- */
.section-lead {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--color-muted);
}

/* ---------- Page hero (podstránky) ---------- */
.page-hero {
  background: var(--color-cream);
  text-align: center;
  padding: 60px 0 46px;
  border-bottom: 1px solid #f2eadd;
}

.page-hero h1 {
  font-family: var(--font-hand);
  font-size: 3.2rem;
  line-height: 1.05;
  margin: 0;
  color: var(--color-text);
}

.page-hero p {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--color-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-bg-alt);
  text-align: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

.section-lead.center {
  text-align: left;
}

.pricing-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.price-table {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 26px 20px;
  box-shadow: var(--shadow-soft);
}

.price-table h3 {
  font-size: 1.12rem;
  margin: 0 0 4px;
}

.price-table h3 span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 3px;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.price-table thead th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  font-weight: 700;
  text-align: right;
  padding: 0 0 8px;
}

.price-table thead th:first-child {
  text-align: left;
}

.price-table tbody th {
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.price-table tbody td {
  text-align: right;
  padding: 9px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-weight: 700;
  color: var(--color-accent-dark);
  font-variant-numeric: tabular-nums;
}

.price-table tbody td:nth-child(3) {
  color: var(--color-text);
  font-weight: 600;
}

.price-unit {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.price-strava {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: 26px auto 0;
  background: var(--tint-yellow);
  border-radius: var(--radius-md);
  padding: 18px 24px;
}

.price-strava-ico {
  width: 40px;
  height: 38px;
  flex: 0 0 auto;
}

.price-strava strong {
  display: block;
  margin-bottom: 2px;
}

.price-strava p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.pricing-note {
  text-align: center;
  color: var(--color-muted);
  margin-top: 36px;
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.o-nas-img {
  width: 100%;
  height: auto;
  display: block;
}

.director-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
  max-width: 820px;
  margin: 60px auto 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.director-photo {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: 60% center;
  display: block;
}

.director-text {
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.director-text .eyebrow {
  margin-bottom: 6px;
}

.director-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.1;
}

.director-text > span {
  display: block;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 2px 0 12px;
}

.director-text p:last-child {
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Carousel (galerie + reference) ---------- */
.carousel {
  position: relative;
  max-width: 880px;
  margin: 46px auto 0;
}

.carousel-viewport {
  position: relative;
}

.photo-carousel .carousel-viewport {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-alt);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.photo-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
}

.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }
.carousel-btn:hover { background: #fff; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(58, 58, 70, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.carousel-dots button.is-active {
  background: var(--color-accent);
}

/* ---------- Reference (stránka se všemi) ---------- */
.reviews-grid {
  columns: 3 280px;
  column-gap: 24px;
  margin-top: 36px;
}

.review-card {
  break-inside: avoid;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  margin: 0 0 24px;
}

.review-card .review-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--color-text);
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card.is-expanded .review-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
}

.review-foot cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.86rem;
}

.review-toggle {
  background: none;
  border: none;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.review-toggle[hidden] {
  display: none;
}

.review-extra {
  display: none;
}

.reviews-grid.show-all .review-extra {
  display: inline-block;
  width: 100%;
}

.reviews-more {
  text-align: center;
  margin-top: 24px;
}

.review-carousel {
  max-width: 720px;
}

.review-carousel .carousel-viewport {
  min-height: 210px;
}

.carousel-slide.review {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 44px;
}

.review blockquote {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 16px;
}

.review figcaption {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.review figcaption span {
  color: var(--color-muted);
  font-weight: 600;
  margin-left: 8px;
}

/* ---------- Steps (přihlášení) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.step {
  text-align: center;
  padding: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.step p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.docs-box {
  margin-top: 60px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.docs-box h3 {
  text-align: center;
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 20px auto 0;
}

.doc-list a {
  display: block;
  background: var(--color-bg-alt);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.doc-list a:hover {
  background: var(--color-yellow);
}

.doc-list .doc-soon {
  display: block;
  background: var(--color-bg-alt);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.doc-list .doc-soon em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-left: 6px;
}

/* ---------- Contact ---------- */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.contact-list li small {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.map-embed {
  margin-top: 24px;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 14px;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  border: 2px solid var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form button {
  margin-top: 22px;
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #33403f;
  color: #f1efe9;
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 38px;
  width: auto;
  background: #fff;
  padding: 7px 12px;
  border-radius: 12px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-legal {
  font-style: normal;
  color: #d9d6cf;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: right;
}

.footer-nav a {
  color: #f1efe9;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-yellow);
}

.footer-social a {
  font-size: 1.3rem;
  margin-left: 12px;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 18px 0 0;
}

/* ---------- Malá kartička v hero ---------- */
.hero-note {
  position: absolute;
  left: -12px;
  bottom: 4px;
  z-index: 3;
  max-width: 216px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fffdf6;
  border: 1px solid #f0e7d2;
  border-radius: 13px;
  padding: 12px 16px;
  box-shadow: 0 10px 26px rgba(58, 58, 58, 0.13);
  transform: rotate(-4deg);
}

.hero-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #173b78;
}

.hero-note-heart {
  width: 24px;
  height: 22px;
  flex: 0 0 auto;
}

.note-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 74px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(212, 192, 150, 0.5);
  border-radius: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .director-card {
    grid-template-columns: 1fr;
  }

  .director-photo {
    width: 100%;
    height: 280px;
    min-height: 0;
    object-position: 55% 18%;
  }

  .director-text {
    text-align: center;
    padding: 26px 28px 30px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-media {
    max-width: 460px;
  }

  .values-inner,
  .timeline,
  .cards-grid,
  .pricing-tables,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fffdf7;
    box-shadow: 0 18px 40px rgba(58, 58, 58, 0.18);
    border-bottom: 1px solid rgba(58, 58, 58, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open {
    max-height: 90vh;
    overflow-y: auto;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 14px;
  }

  /* v mobilním panelu jsou podmenu rozbalená napevno a odsazená */
  .has-dropdown > a::after {
    display: none;
  }

  /* v mobilním menu bez podtržítka – aktuální položku značí barva */
  .site-nav > ul > li:not(.nav-heart) > a::before {
    display: none;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: 0;
    padding: 6px 0 0;
    margin: 6px 0 0 4px;
    border-left: 2px solid var(--tint-yellow);
  }

  .dropdown li,
  .dropdown li:first-child,
  .dropdown li:last-child {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .dropdown a,
  .dropdown .nav-soon {
    padding: 6px 14px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .values-inner,
  .cards-grid,
  .pricing-tables,
  .steps-grid,
  .doc-list {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-deco-sun,
  .hero-deco-cloud,
  .hero-deco-rainbow,
  .deco {
    display: none;
  }

  .hero-note {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 56px 0;
  }
}

/* ============ DENÍČEK ============ */
.denicek-teaser .teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.teaser-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}
.teaser-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.teaser-card:hover img { transform: scale(1.06); }
.teaser-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-dark);
}
.teaser-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

.denicek-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px 0 34px;
}
.chip {
  border: 2px solid #efe1c7;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--color-accent); }
.chip.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.denicek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
}
.dcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.dcard.is-hidden { display: none; }
.dcard-media { display: flex; gap: 4px; background: #f3ead9; }
.dcard-media > img,
.dcard-media > a {
  flex: 1;
  width: 0;
  min-width: 0;
}
.dcard-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.dcard-media.mesicnik img { object-position: top; height: 230px; }
.dcard-body { padding: 20px 22px 24px; }
.dcard-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--tint-blue);
  color: var(--color-primary-dark);
}
.dcard-tag.t-skolka { background: var(--tint-green); color: #2f8a3f; }
.dcard-tag.t-vylety { background: var(--tint-blue); color: var(--color-primary-dark); }
.dcard-tag.t-besidky { background: var(--tint-pink); color: var(--brand-magenta); }
.dcard-tag.t-mesicnik { background: var(--tint-orange); color: var(--color-accent-dark); }
.dcard-tag.t-plan,
.dcard-tag.t-info { background: var(--tint-yellow); color: #a9781a; }
.dcard h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 12px 0 8px;
  color: var(--color-text);
}
.dcard p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.62;
  font-size: 0.96rem;
}
.dcard-schedule { list-style: none; padding: 0; margin: 14px 0 0; }
.dcard-schedule li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #eee2cc;
  font-size: 0.96rem;
  color: var(--color-text);
}
.dcard-schedule li:last-child { border-bottom: none; }
.dcard-schedule li span {
  font-weight: 700;
  color: var(--color-accent-dark);
  min-width: 54px;
}
.dcard-note {
  margin-top: 14px !important;
  font-style: italic;
  font-size: 0.9rem !important;
}

@media (max-width: 760px) {
  .denicek-teaser .teaser-grid { grid-template-columns: 1fr; }
  .denicek-grid { grid-template-columns: 1fr; }
}

.teaser-tag.t-skolka { color: #2f8a3f; }
.teaser-tag.t-vylety { color: var(--color-primary-dark); }
.teaser-tag.t-besidky { color: var(--brand-magenta); }
.teaser-tag.t-mesicnik { color: var(--color-accent-dark); }
.teaser-tag.t-plan,
.teaser-tag.t-info { color: #a9781a; }

.dcard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.dcard-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  white-space: nowrap;
}
.dcard-meta + h3 { margin-top: 8px; }

.chip[hidden] { display: none; }

/* ---------- Aktuálně (homepage) ---------- */
.aktualne .container {
  display: grid;
  gap: 22px;
}
.aktualne-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--tint-yellow);
  border: 2px dashed #f0d98a;
  border-radius: var(--radius-md);
  padding: 18px 24px;
}
.aktualne-ico {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.aktualne-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  color: var(--color-accent-dark);
  margin-bottom: 2px;
}
.aktualne-note p {
  margin: 0;
  color: var(--color-text);
  font-size: 1.02rem;
}
.aktualne-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.aktualne-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.aktualne-doc:hover {
  transform: translateY(-3px);
}
.aktualne-doc > img {
  width: 84px;
  height: 108px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  flex-shrink: 0;
}
.aktualne-doc-icon {
  width: 84px;
  height: 108px;
  display: grid;
  place-items: center;
  background: var(--tint-pink);
  border-radius: 10px;
  flex-shrink: 0;
}
.aktualne-doc-icon svg {
  width: 62px;
  height: 62px;
}
.aktualne-doc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aktualne-doc-tag {
  align-self: start;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tint-orange);
  color: var(--color-accent-dark);
}
.aktualne-doc-tag.t-plan {
  background: var(--tint-yellow);
  color: #a9781a;
}
.aktualne-doc-body strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
}
.aktualne-doc-more {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .aktualne-docs { grid-template-columns: 1fr; }
  .aktualne-note { flex-direction: column; text-align: center; }
}

/* ---------- Dokumenty ke stažení ---------- */
.docs-grid {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 34px auto 0;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.doc-card:hover {
  transform: translateY(-3px);
}
.doc-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--color-accent-dark);
}
.doc-icon svg {
  width: 40px;
  height: 40px;
}
.doc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.doc-body strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
}
.doc-desc {
  color: var(--color-muted);
  font-size: 0.94rem;
}
.doc-meta {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.doc-download {
  flex-shrink: 0;
  color: var(--color-primary-dark);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .doc-card { flex-wrap: wrap; }
  .doc-download { width: 100%; }
}

/* ---------- Patička: varianty subjektu (z.s. / s.r.o. / obojí) ---------- */
.footer-legal-wrap { display: grid; gap: 14px; }
.footer-legal--ds,
.footer-legal--rc { display: none; }
.site-footer.subject-ds .footer-legal--ds,
.site-footer.subject-rc .footer-legal--rc,
.site-footer.subject-brand .footer-legal--ds,
.site-footer.subject-brand .footer-legal--rc { display: block; }
.footer-legal strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

/* ---------- Hero eyebrow ---------- */
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 10px;
}
/* ---------- Hlavička Rodinného centra ---------- */
.logo--rc img { height: 90px; }
.logo-sub {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.3rem;
  color: #8a7358;
  letter-spacing: 0.02em;
}
/* ---------- Náš tým ---------- */
.team-member { margin-top: 28px; }
.team-member .director-photo { height: 340px; }
.team-member .director-text strong { font-size: 1.4rem; }
/* jemné grafické sjednocení fotek tet */
.team-photo {
  object-position: center 28%;
  filter: saturate(0.92) sepia(0.06) contrast(1.03) brightness(1.02);
}


/* ---------- Medailonek ředitelky (O nás) ---------- */
.director-card-top { align-items: stretch; }
.director-card-top .director-photo { object-position: 42% center; }
.director-card-top .director-text { justify-content: flex-start; }
.director-card-top .director-text p { color: var(--color-text); margin-bottom: 0.85em; }
.director-card-top .director-text p:last-child { margin-bottom: 0; }
.story-title-hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1.1;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 14px;
}



/* ==========================================================
   Rodinné centrum — magenta skin + komponenty
   ========================================================== */

/* RC větev — vede magenta, akcent zůstává teplý (oranžová/žlutá) */
.theme-rc {
  --color-primary: #DC0C43;
  --color-primary-dark: #a8073a;
}

/* magenta CTA (na DS zůstává žlutá) */
.theme-rc .btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.theme-rc .btn-primary:hover {
  background: var(--color-primary-dark);
}
.theme-rc .btn-outline {
  border-color: var(--color-primary);
}
.theme-rc .btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.theme-rc .site-nav a:hover,
.theme-rc .site-nav > ul > li > a.is-current {
  color: var(--color-primary-dark);
}
.theme-rc .site-nav > ul > li:not(.nav-heart) > a::before {
  background: var(--color-primary);
}

/* ---------- Dvojpřepínač značky DS | RC ---------- */
.site-nav > ul > li.brand-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-bg-alt);
  border: 1.5px solid #ecdfc8;
  border-radius: 999px;
}
.site-nav > ul > li.brand-switch > a {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
}
.site-nav > ul > li.brand-switch > a::before { display: none; }
.site-nav > ul > li.brand-switch > a.is-active {
  background: var(--color-primary);
  color: #fff;
}
.site-nav > ul > li.brand-switch > a:hover {
  color: var(--color-text);
}
.site-nav > ul > li.brand-switch > a.is-active:hover {
  color: #fff;
}

/* pill v menu (Pro lektory) – bez podtržítka */
.site-nav > ul > li > a.nav-cta::before { display: none; }

/* ---------- Nabídka RC — flexibilní karty lekcí ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 40px;
}
.offer-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.offer-type {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
  background: var(--tint-pink);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.offer-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
  margin: 0 0 12px;
}
.offer-desc {
  margin-bottom: 0;
}
.offer-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 12px 0 16px;
}
.offer-card .btn {
  margin-top: auto;
  padding: 10px 24px;
}

/* náborová dlaždice — vždy poslední v mřížce */
.offer-card--join {
  background: var(--tint-pink);
  border: 2px dashed var(--color-primary);
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.offer-card--join .offer-join-ico {
  width: 46px;
  margin-bottom: 10px;
}
.offer-card--join .btn {
  margin-top: 14px;
}

/* fakta o lekci (detail) */
.offer-facts {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.offer-facts li strong {
  color: var(--color-primary-dark);
  margin-right: 6px;
}

/* drobný odkaz pod hero tlačítkem (RC úvod) */
.hero-minor {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* letáček na detailu lekce */
.two-col.two-col--top {
  align-items: start;
}
.lekce-letacek {
  margin: 0;
  max-width: 420px;
}
.lekce-letacek img {
  width: 100%;
  height: auto; /* jinak drží pevnou výšku z HTML atributu a deformuje se */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.lekce-letacek figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ---------- Redesign-pass: sjednocení detailů ---------- */

/* kroky na RC vedou magentou (accent zůstává DS/teplým prvkům) */
.theme-rc .step-number {
  background: var(--color-primary);
}

/* mřížka hodnot se 3 položkami — centrovaná, bez prázdného sloupce */
.values-inner--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 960px) {
  .values-inner--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .values-inner--3 { grid-template-columns: 1fr; }
}

/* hero eyebrow na mobilu — ať se nezalamuje ošklivě */
@media (max-width: 560px) {
  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}


/* ---------- RC hero: nástěnka nabídky ---------- */
.hero-board {
  background: var(--color-bg-alt);
  border: 2px dashed #e8d5b5;
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  max-width: 560px;
  margin-left: auto;
}
.board-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--color-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.board-card strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.2;
}
.board-card .offer-type {
  align-self: flex-start;
  margin-bottom: 2px;
}
.board-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  line-height: 1.5;
}
.board-cta {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
}
.board-pin {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 30px;
  height: 28px;
  transform: translateX(-50%);
}
.board-card--joga { grid-row: span 2; transform: rotate(-2.5deg); }
.board-card--oslavy { transform: rotate(2deg); }
.board-card--lektor { transform: rotate(-1.5deg); background: var(--tint-pink); }
.board-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 14px 34px rgba(58, 58, 58, 0.14);
}
@media (max-width: 960px) {
  .hero-board { margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero-board {
    grid-template-columns: 1fr;
    padding: 30px 18px 22px;
    gap: 26px;
  }
  .board-card--joga { grid-row: auto; }
}

.board-illu {
  width: 96px;
  margin: 8px auto 2px;
}

/* ---------- Kontakt RC: dlaždice témat ---------- */
.contact-topics {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px 16px;
  color: var(--color-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(58, 58, 58, 0.12);
}
.topic-card strong {
  font-family: var(--font-heading);
  font-size: 1.08rem;
}
.topic-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}
.topic-card .board-cta {
  margin-top: 8px;
  padding-top: 0;
}
.contact-ds-note {
  margin-top: 28px;
  color: var(--color-muted);
}

/* „Komu prostor sedí" — štítky účelů */
.fit-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  max-width: 720px;
  margin: 32px auto 0;
}
.fit-list li {
  background: var(--tint-pink);
  color: #a8073a;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 999px;
}

/* ---------- Proklik na RC přímo v DS hero ---------- */
/* Tip na rodinné centrum pod tlačítky — jen jemná řádka, žádná barevná bublina */
.hero-rc-tip {
  margin: 22px 0 0;
  max-width: min(42ch, 100%);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
}
.hero-rc-tip svg {
  width: 19px;
  height: 18px;
  display: inline;
  vertical-align: -3px;
  margin-right: 7px;
}
/* odkaz do RC nese magentu značky, jinak se chová jako ostatní textové odkazy */
.link-rc {
  color: var(--brand-magenta);
}

/* mobil: dvojpřepínač značky jako první položka menu, ať je RC hned vidět */
@media (max-width: 960px) {
  .site-nav > ul > li.brand-switch {
    order: -1;
    align-self: stretch;
    justify-content: center;
    margin-bottom: 6px;
  }
}

/* ---------- Fotka měkce zasazená do malované kompozice ---------- */
.photo-soft {
  position: relative;
  max-width: 760px;
  margin: 22px auto 48px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.photo-soft img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  /* jemné sladění s krémovou paletou webu */
  filter: saturate(0.94) sepia(0.05) contrast(1.02);
}
.photo-soft-deco {
  position: absolute;
  top: -62px;
  left: 4%;
  width: 92%;
  height: auto;
  z-index: 2; /* girlanda visí přes horní okraj fotky */
  pointer-events: none;
}
@media (max-width: 560px) {
  .photo-soft { padding: 10px; }
  .photo-soft-deco { top: -28px; }
}

/* křídové čmáranice přes úvodní fotku (dřív byly zapečené v obrázku) */
/* ---------- Fotopás na úvodu — jede sám zprava doleva, nedá se na něj kliknout.
     Celá galerie žije na fotogalerie.html. ---------- */
.section-marquee {
  padding: 46px 0;
}
.section-marquee .photo-marquee {
  margin-top: 0;
}
.photo-marquee {
  overflow: hidden;
  margin-top: 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.photo-marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: photo-marquee 70s linear infinite;
}
.photo-marquee img {
  height: 150px;
  width: auto;
  flex: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
@keyframes photo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-marquee-track { animation: none; }
}
@media (max-width: 560px) {
  .photo-marquee img { height: 110px; }
}

/* delší reference v karuselu na úvodu — stejný ořez jako karty na O nás */
.review-carousel blockquote {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.55;
  text-align: left;
}
.review-carousel figcaption {
  text-align: left;
}

/* ==========================================================
   Fotogalerie (fotogalerie.html) + lightbox
   ========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}
.gallery-item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.gallery-note {
  margin-top: 32px;
  text-align: center;
  color: var(--color-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(30, 28, 34, 0.92);
}
.lightbox[hidden] {
  display: none;
}
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 88vw);
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
}
.lightbox-cap {
  margin-top: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
}
.lightbox-nav {
  flex: none;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  padding-bottom: 5px;
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.8rem; }
}

/* ==========================================================
   Kontakt — dva sloupce: údaje vlevo, mapa vpravo (bez formuláře)
   ========================================================== */
.contact-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
  margin-top: 38px;
}
.contact-rows li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-rows li:last-child {
  margin-bottom: 0;
}
.contact-bubble {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-bubble svg {
  width: 23px;
  height: 23px;
}
.contact-rows strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: 2px;
}
.contact-rows p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-muted);
}
.contact-rows a {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.contact-rows small {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.contact-map .map-embed {
  margin-top: 0;
  height: 420px;
}
@media (max-width: 860px) {
  .contact-cols {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contact-map .map-embed { height: 280px; }
}

/* Kontakt: oba sloupce blíž k sobě a jako celek na střed */
.contact-cols {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 0.85fr 1fr;
  gap: 40px;
}

/* Hlavička a patička jdou naopak do šířky — obsah zůstává úzký a na střed */
.site-header .container,
.site-footer .container,
.site-footer .footer-copy {
  max-width: 1600px;
  padding-left: 40px;
  padding-right: 40px;
}
@media (max-width: 900px) {
  .site-header .container,
  .site-footer .container,
  .site-footer .footer-copy {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==========================================================
   Odstavce jako blok na střed — text zarovnaný vlevo, ne na střed.
   Užší míra řádku, aby se věty nelámaly na kusy.
   ========================================================== */
.section-lead {
  max-width: min(58ch, 100%);
  text-align: left;
}
.pricing-note {
  max-width: min(62ch, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
/* tlačítka a drobné popisky pod blokem zůstávají na střed */
p.center,
.cta-actions,
h2.center,
h3.center {
  text-align: center;
}

/* Jemný textový odkaz — bez vzhledu tlačítka, podtržení až na najetí */
.link-soft {
  color: var(--color-primary-dark);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.link-soft:hover,
.link-soft:focus-visible {
  border-bottom-color: currentColor;
}

/* ==========================================================
   Aktuálně — úzký pruh (dřív dominantní blok s náhledy)
   ========================================================== */
.aktualne-strip {
  padding: 0;
  background: var(--color-bg-alt);
  border-top: 1px solid #f2e6d2;
  border-bottom: 1px solid #f2e6d2;
}
.aktualne-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 14px 0;
  font-size: 0.94rem;
}
.aktualne-bar .aktualne-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  flex: none;
}
.aktualne-bar p {
  margin: 0;
  color: var(--color-muted);
  flex: 1 1 320px;
}
.aktualne-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  flex: none;
}
.aktualne-links a {
  font-weight: 600;
  color: var(--color-primary-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.aktualne-links a:hover,
.aktualne-links a:focus-visible {
  border-bottom-color: currentColor;
}
/* fotopás jde rovnou pod hero — nahoře bez odsazení */
.hero + .section-marquee {
  padding-top: 0;
}

/* ==========================================================
   Hero bez fotky — jeden sloupec na střed, obrázky přebírá fotopás pod ním
   ========================================================== */
.hero-centered {
  padding: 74px 0 66px;
  text-align: center;
}
.hero-centered .hero-inner {
  display: block;
}
.hero-centered .hero-text {
  max-width: 680px;
  margin: 0 auto;
}
.hero-centered .hero-title {
  font-size: 4.4rem;
  margin-bottom: 0.24em;
}
.hero-centered .hero-lead {
  max-width: min(50ch, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.9em;
  text-wrap: balance;
}
.hero-centered .hero-actions {
  justify-content: center;
}
/* poznámka o rodinném centru drží na střed jako jeden řádek textu */
.hero-centered .hero-rc-tip {
  max-width: none;
  margin-top: 26px;
  text-wrap: balance;
}
@media (max-width: 720px) {
  .hero-centered { padding: 52px 0 48px; }
  .hero-centered .hero-title { font-size: 3rem; }
}

/* ==========================================================
   Náš tým — ředitelka sama v řádku, tety menší vedle sebe
   ========================================================== */
.director-card-top {
  max-width: 940px;
  grid-template-columns: 340px 1fr;
}
.team-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 940px;
  margin: 30px auto 0;
}
.team-pair .director-card {
  display: block;
  max-width: none;
  margin: 0;
}
.team-pair .director-photo {
  width: 100%;
  height: 300px;
  min-height: 0;
  object-position: 50% 22%;
}
.team-pair .director-text {
  padding: 18px 26px 24px;
  text-align: center;
}
.team-pair .director-text strong {
  font-size: 1.25rem;
}
@media (max-width: 640px) {
  .team-pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .team-pair .director-photo { height: 260px; }
}

/* --- Tým na šířku: Hanka přes celou míru, tety pod ní vedle sebe s textem --- */
.director-card-top {
  max-width: 1040px;
  grid-template-columns: 420px 1fr;
}
.director-card-top .director-text {
  padding: 34px 44px;
}
.team-pair {
  max-width: 1040px;
  gap: 28px;
}
.team-pair .director-card {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: stretch;
}
.team-pair .director-photo {
  height: 100%;
  min-height: 230px;
  object-position: 50% 20%;
}
.team-pair .director-text {
  padding: 24px 26px;
  text-align: left;
  justify-content: center;
}
.team-pair .director-text strong {
  font-size: 1.3rem;
}
@media (max-width: 900px) {
  .team-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team-pair .director-card { grid-template-columns: 1fr; }
  .team-pair .director-photo { height: 240px; min-height: 0; }
  .team-pair .director-text { text-align: center; }
}

/* ==========================================================
   Fakta v heru — věk, provoz, kapacita, cena (vzor: Šídlo)
   ========================================================== */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 30px;
}
.hero-facts li {
  flex: none;
}
.hero-facts li > *,
.hero-facts li {
  display: block;
}
.hero-facts li > a,
.hero-facts li:not(:has(a)) {
  display: block;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #f0e4d0;
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hero-facts li > a:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.hero-facts span {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 3px;
}
.hero-facts strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.hero-centered .hero-text {
  max-width: 780px;
}
@media (max-width: 560px) {
  .hero-facts { gap: 8px; }
  .hero-facts li > a,
  .hero-facts li:not(:has(a)) { padding: 10px 14px; }
  .hero-facts strong { font-size: 0.94rem; }
}

/* --- Hero se stáhne, ať je fotopás vidět hned bez scrollování --- */
.hero-centered {
  padding: 44px 0 40px;
}
.hero-centered .hero-title {
  font-size: 3.7rem;
  margin-bottom: 0.2em;
}
.hero-centered .hero-lead {
  margin-bottom: 1.4em;
}
.hero-facts {
  margin-bottom: 24px;
}
.hero-centered .hero-rc-tip {
  margin-top: 20px;
}
/* pás fotek je hlavní obrázek úvodu — proto vyšší */
.section-marquee .photo-marquee img {
  height: 200px;
}
@media (max-width: 560px) {
  .section-marquee .photo-marquee img { height: 130px; }
}

/* ==========================================================
   Fotopás uvnitř hera — je to hlavní obrázek úvodní strany
   ========================================================== */
.hero-marquee {
  margin: 30px 0 34px;
}
.hero-marquee img {
  height: 280px;
  border-radius: var(--radius-md);
}
.hero-centered {
  padding: 44px 0 46px;
}
.hero-centered .hero-lead {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .hero-marquee img { height: 200px; }
}
@media (max-width: 560px) {
  .hero-marquee { margin: 22px 0 26px; }
  .hero-marquee img { height: 150px; }
}

/* Úvodní věta v heru na širší míru — ať nezabírá čtyři řádky */
.hero-centered .hero-lead {
  max-width: min(72ch, 100%);
  font-size: 1.14rem;
}
.hero-centered .hero-text {
  max-width: 880px;
}
