/* ================================================
   MALÍ ANDÍLCI – Enchanted Storybook Aesthetic
   A fairy-tale meadow world for little angels
   ================================================ */

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

:root {
  --green: #4A9E6E;
  --green-dark: #3A7E56;
  --green-light: #E8F5EE;
  --green-pale: #F0F8F3;
  --peach: #E8A87C;
  --peach-light: #FFF0E6;
  --peach-dark: #D4895A;
  --gold: #E9C44A;
  --gold-light: #FFF8E1;
  --cream: #FDFAF5;
  --cream-dark: #F2EADB;
  --text: #2C3E2D;
  --text-medium: #4A5E4B;
  --text-light: #7A8E7B;
  --white: #ffffff;
  --shadow-soft: 0 4px 24px rgba(74,158,110,0.08);
  --shadow-medium: 0 8px 36px rgba(74,158,110,0.12);
  --shadow-lift: 0 14px 44px rgba(74,158,110,0.16);
  --radius: 18px;
  --radius-lg: 28px;
  --transition: 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  --font-heading: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
::selection { background: var(--green-light); color: var(--green-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }


/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px 0; transition: all 0.4s ease;
}
.nav--scrolled {
  background: rgba(253,250,245,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 8px 0;
}
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.nav__logo:hover { color: var(--green); }
.nav__logo-img { width: 44px; height: 44px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  padding: 8px 14px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-medium); border-radius: 12px; transition: all var(--transition);
}
.nav__links a:hover { color: var(--green); background: var(--green-light); }
.nav__cta { background: var(--green) !important; color: var(--white) !important; border-radius: 50px !important; padding: 8px 20px !important; }
.nav__cta:hover { background: var(--green-dark) !important; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__toggle--active span:nth-child(2) { opacity: 0; }
.nav__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 0; right: 0; width: min(340px, 88vw); height: 100vh;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 110px 24px 40px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--green-pale) 100%);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    overflow-y: auto;
  }
  .nav__links--open { transform: translateX(0); }

  .nav__links li {
    border-bottom: 1px solid rgba(74,158,110,0.08);
  }
  .nav__links li:last-child {
    border-bottom: none;
    margin-top: 16px;
  }

  .nav__links a {
    display: flex; align-items: center;
    font-size: 1.15rem; font-weight: 600;
    padding: 18px 16px; border-radius: 12px;
    color: var(--text);
  }
  .nav__links a:hover {
    color: var(--green); background: var(--green-light);
    transform: translateX(4px);
  }
  .nav__cta {
    justify-content: center;
    padding: 16px 20px !important;
    font-size: 1rem !important;
  }

  /* Backdrop overlay */
  .nav__links--open::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(44,62,45,0.4);
    z-index: -1;
  }
}


/* ================================================
   HERO — ENCHANTED MEADOW
   ================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 140px;
  background: linear-gradient(178deg,
    #d4edfa 0%,
    #e3f1f8 8%,
    #EDF7F1 22%,
    #F4FAF6 40%,
    #FFF8E8 60%,
    #FFF3E0 78%,
    #FDFAF5 95%
  );
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Sun */
.hero__sun {
  position: absolute; top: 5%; right: 8%;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, #FFE082 30%, #FFCC02 60%, transparent 72%);
  box-shadow: 0 0 60px 20px rgba(255,204,2,0.15), 0 0 120px 60px rgba(255,204,2,0.06);
  animation: sunPulse 6s ease-in-out infinite;
}

/* Clouds */
.hero__cloud {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  filter: blur(1px);
}
.hero__cloud::before, .hero__cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.hero__cloud--1 { width: 140px; height: 45px; top: 10%; left: 6%; animation: driftCloud 35s ease-in-out infinite; }
.hero__cloud--1::before { width: 55px; height: 55px; top: -24px; left: 22px; }
.hero__cloud--1::after { width: 65px; height: 50px; top: -20px; left: 55px; }
.hero__cloud--2 { width: 110px; height: 38px; top: 16%; right: 22%; animation: driftCloud 28s ease-in-out infinite 8s; opacity: 0.6; }
.hero__cloud--2::before { width: 45px; height: 42px; top: -18px; left: 18px; }
.hero__cloud--2::after { width: 55px; height: 40px; top: -16px; left: 42px; }
.hero__cloud--3 { width: 90px; height: 30px; top: 22%; left: 42%; animation: driftCloud 22s ease-in-out infinite 14s; opacity: 0.4; }
.hero__cloud--3::before { width: 38px; height: 35px; top: -15px; left: 14px; }
.hero__cloud--3::after { width: 42px; height: 32px; top: -13px; left: 36px; }

/* Birds — proper SVG silhouettes */
.hero__bird {
  position: absolute;
}
.hero__bird--1 { top: 14%; left: 28%; animation: birdDrift 20s ease-in-out infinite; }
.hero__bird--2 { top: 10%; left: 52%; animation: birdDrift 25s ease-in-out infinite 6s; }

/* Butterflies — CSS wings */
.hero__butterfly {
  position: absolute;
  width: 14px; height: 14px;
}
.hero__butterfly::before, .hero__butterfly::after {
  content: ''; position: absolute; top: 0;
  width: 10px; height: 14px;
  border-radius: 50% 50% 50% 0;
}
/* Butterflies near the meadow */
.hero__butterfly--1 { bottom: 18%; left: 15%; }
.hero__butterfly--1::before { left: 0; background: rgba(232,168,124,0.5); animation: wingFlap 0.6s ease-in-out infinite alternate; transform-origin: right bottom; }
.hero__butterfly--1::after { left: 8px; background: rgba(232,168,124,0.32); border-radius: 50% 50% 0 50%; animation: wingFlap 0.6s ease-in-out infinite alternate-reverse; transform-origin: left bottom; }
.hero__butterfly--1 { animation: butterflyFloat 10s ease-in-out infinite; }

.hero__butterfly--2 { bottom: 22%; right: 18%; }
.hero__butterfly--2::before { left: 0; background: rgba(233,196,74,0.45); animation: wingFlap 0.5s ease-in-out infinite alternate; transform-origin: right bottom; }
.hero__butterfly--2::after { left: 8px; background: rgba(233,196,74,0.3); border-radius: 50% 50% 0 50%; animation: wingFlap 0.5s ease-in-out infinite alternate-reverse; transform-origin: left bottom; }
.hero__butterfly--2 { animation: butterflyFloat 12s ease-in-out infinite 4s; }

.hero__butterfly--3 { bottom: 28%; left: 38%; }
.hero__butterfly--3::before { left: 0; background: rgba(74,158,110,0.4); animation: wingFlap 0.55s ease-in-out infinite alternate; transform-origin: right bottom; }
.hero__butterfly--3::after { left: 8px; background: rgba(74,158,110,0.28); border-radius: 50% 50% 0 50%; animation: wingFlap 0.55s ease-in-out infinite alternate-reverse; transform-origin: left bottom; }
.hero__butterfly--3 { animation: butterflyFloat 9s ease-in-out infinite 2s; }

.hero__butterfly--4 { bottom: 14%; right: 32%; }
.hero__butterfly--4::before { left: 0; background: rgba(211,145,131,0.45); animation: wingFlap 0.65s ease-in-out infinite alternate; transform-origin: right bottom; }
.hero__butterfly--4::after { left: 8px; background: rgba(211,145,131,0.3); border-radius: 50% 50% 0 50%; animation: wingFlap 0.65s ease-in-out infinite alternate-reverse; transform-origin: left bottom; }
.hero__butterfly--4 { animation: butterflyFloat 13s ease-in-out infinite 6s; }

.hero__butterfly--5 { bottom: 32%; right: 8%; }
.hero__butterfly--5::before { left: 0; background: rgba(232,168,124,0.4); animation: wingFlap 0.7s ease-in-out infinite alternate; transform-origin: right bottom; }
.hero__butterfly--5::after { left: 8px; background: rgba(232,168,124,0.25); border-radius: 50% 50% 0 50%; animation: wingFlap 0.7s ease-in-out infinite alternate-reverse; transform-origin: left bottom; }
.hero__butterfly--5 { animation: butterflyFloat 11s ease-in-out infinite 8s; }

.hero__butterfly--6 { bottom: 11%; left: 45%; z-index: 4; }
.hero__butterfly--6::before { left: 0; background: rgba(233,196,74,0.5); animation: wingFlap 0.55s ease-in-out infinite alternate; transform-origin: right bottom; }
.hero__butterfly--6::after { left: 8px; background: rgba(233,196,74,0.32); border-radius: 50% 50% 0 50%; animation: wingFlap 0.55s ease-in-out infinite alternate-reverse; transform-origin: left bottom; }
.hero__butterfly--6 { animation: butterflyFloat 14s ease-in-out infinite 3s; }

/* Sparkles */
.hero__sparkle {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.hero__sparkle--1 { top: 25%; left: 18%; animation: twinkle 3s ease-in-out infinite; }
.hero__sparkle--2 { top: 40%; right: 10%; animation: twinkle 4s ease-in-out infinite 1s; width: 5px; height: 5px; }
.hero__sparkle--3 { bottom: 35%; left: 8%; animation: twinkle 3.5s ease-in-out infinite 2s; background: var(--peach); }
.hero__sparkle--4 { top: 15%; left: 65%; animation: twinkle 5s ease-in-out infinite 3s; width: 4px; height: 4px; }
.hero__sparkle--5 { bottom: 40%; right: 20%; animation: twinkle 3.8s ease-in-out infinite 1.5s; width: 5px; height: 5px; background: var(--peach); }

/* Trees */
.hero__tree {
  position: absolute; bottom: 0; height: 55%; width: auto; z-index: 1; pointer-events: none;
}
.hero__tree--left { left: -2%; }
.hero__tree--right { right: -2%; }

/* Hero content */
.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__logo {
  width: 180px; height: 180px; object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 24px rgba(74,158,110,0.12));
}
.hero__title {
  font-family: var(--font-heading); font-size: clamp(2.4rem,6vw,3.6rem);
  font-weight: 700; color: var(--text); line-height: 1.15; margin-bottom: 6px;
}
.hero__subtitle {
  font-family: var(--font-heading); font-size: clamp(1rem,2.5vw,1.3rem);
  font-weight: 400; font-style: italic; color: var(--green); margin-bottom: 20px;
}
.hero__desc {
  font-size: clamp(0.95rem,1.8vw,1.1rem); color: var(--text-medium);
  line-height: 1.8; margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.hero__meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-light); font-weight: 600;
  padding: 6px 14px; background: rgba(255,255,255,0.5);
  border-radius: 20px; border: 1.5px solid rgba(74,158,110,0.1);
}
.hero__meta-item svg { color: var(--green); flex-shrink: 0; }

/* Meadow at bottom */
.hero__meadow {
  position: absolute; bottom: -2px; left: 0; width: 100%; height: 140px; z-index: 3;
}

@media (max-width: 640px) {
  .hero { padding: 110px 20px 120px; }
  .hero__sun { width: 60px; height: 60px; top: 8%; right: 5%; }
  .hero__tree { height: 35%; opacity: 0.6; }
  .hero__tree--left { left: -8%; }
  .hero__tree--right { right: -8%; }
  .hero__butterfly--3, .hero__butterfly--4, .hero__butterfly--5 { display: none; }
  .hero__bird { transform: scale(0.7); }
  .hero__logo { width: 150px; height: 150px; }
  .hero__meadow { height: 100px; }
}


/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 700; border-radius: 50px; border: 2.5px solid transparent;
  cursor: pointer; transition: all var(--transition); text-decoration: none; letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--green); color: var(--white); border-color: var(--green);
  box-shadow: 0 4px 16px rgba(74,158,110,0.3);
}
.btn--primary:hover {
  background: var(--green-dark); border-color: var(--green-dark); color: var(--white);
  box-shadow: 0 8px 28px rgba(74,158,110,0.4); transform: translateY(-3px);
}
.btn--outline { background: rgba(255,255,255,0.7); color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); transform: translateY(-3px); box-shadow: 0 4px 16px rgba(74,158,110,0.3); }


/* ================================================
   SECTION SHARED
   ================================================ */
.section { padding: 80px 0; position: relative; overflow: hidden; }
.section__header { text-align: center; max-width: 560px; margin: 0 auto 50px; position: relative; z-index: 2; }

.section__eyebrow {
  display: block !important;
  width: 100%;
  font-family: var(--font-accent); font-size: 1.2rem; font-weight: 600;
  color: var(--peach); margin-bottom: 6px;
}

.section__title {
  font-family: var(--font-heading); font-size: clamp(1.8rem,4vw,2.5rem);
  font-weight: 700; color: var(--text); margin-bottom: 14px; display: block !important;
}
.section__title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 4px; margin: 12px auto 0;
}
.section__subtitle { font-size: clamp(0.93rem,1.6vw,1.05rem); color: var(--text-light); line-height: 1.7; }

/* SVG Scene decorations */
.scene {
  position: absolute; pointer-events: none; z-index: 0;
  bottom: 0; height: 50%; width: auto; max-width: 18%;
}
.scene--tridy-left, .scene--nabizime-left, .scene--tym-left, .scene--galerie-left { left: 0; }
.scene--tridy-right, .scene--nabizime-right, .scene--tym-right, .scene--cenik-right { right: 0; }

@media (max-width: 768px) {
  .scene { max-width: 12%; opacity: 0.7; }
}
@media (max-width: 480px) {
  .scene { display: none; }
}


/* ================================================
   DIVIDERS — Organic transitions
   ================================================ */
.divider { position: relative; margin-top: -1px; line-height: 0; }
.divider svg { display: block; width: 100%; }
.divider--hills { background: var(--cream); }
.divider--hills svg { height: 70px; }
.divider--clouds { background: var(--green-pale); }
.divider--clouds svg { height: 60px; }
.divider--meadow { background: var(--cream); }
.divider--meadow svg { height: 80px; }
.divider--hills2 { background: var(--cream); }
.divider--hills2 svg { height: 60px; }
.divider--clouds2 { background: var(--green-pale); }
.divider--clouds2 svg { height: 50px; }

@media (max-width: 640px) {
  .divider svg { height: 40px !important; }
}


/* ================================================
   NAŠE TŘÍDY — Storybook cards
   ================================================ */
.tridy { background: var(--cream); }
.classes { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 860px; margin: 0 auto; }
@media (min-width: 640px) { .classes { grid-template-columns: 1fr 1fr; } }

.class-card {
  background: var(--white); padding: 36px 28px 30px;
  border: 2px solid transparent; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
  border-radius: 32px 32px 24px 8px;
}
.class-card:nth-child(2) { border-radius: 32px 32px 8px 24px; }
.class-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  transition: height 0.4s ease;
}
.class-card--andilci::before { background: linear-gradient(90deg, var(--green), var(--green-light)); }
.class-card--wings::before { background: linear-gradient(90deg, var(--peach), var(--gold)); }
.class-card::after {
  content: ''; position: absolute; bottom: -20px; right: -20px; width: 80px; height: 80px;
  border-radius: 50%; opacity: 0.06; transition: transform 0.5s ease;
}
.class-card--andilci::after { background: var(--green); }
.class-card--wings::after { background: var(--peach); }

.class-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--shadow-lift); border-color: var(--green-light); }
.class-card:hover::before { height: 7px; }
.class-card:hover::after { transform: scale(2); }

.class-card__badge {
  display: inline-block; padding: 5px 16px; border-radius: 20px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.class-card--andilci .class-card__badge { background: var(--green-light); color: var(--green-dark); }
.class-card--wings .class-card__badge { background: var(--peach-light); color: var(--peach-dark); }
.class-card__icon { margin-bottom: 12px; line-height: 1; }
.class-card__title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.class-card__desc { font-size: 0.92rem; color: var(--text-medium); line-height: 1.75; margin-bottom: 18px; }
.class-card__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.class-card__list li {
  font-size: 0.8rem; font-weight: 600; padding: 5px 14px;
  border-radius: 20px; background: var(--cream); color: var(--text-medium);
  transition: all var(--transition);
}
.class-card:hover .class-card__list li { background: var(--green-light); color: var(--green-dark); }


/* ================================================
   CO NABÍZÍME — Playful feature cards
   ================================================ */
.nabizime { background: var(--green-pale); padding: 90px 0; }
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }

.feature {
  flex: 0 1 calc(33.333% - 15px); max-width: 340px; min-width: 260px;
  background: var(--white); padding: 34px 24px 28px; text-align: center;
  transition: all 0.45s cubic-bezier(0.34,1.56,0.64,1); border: 2px solid transparent;
  position: relative; overflow: hidden;
  border-radius: 24px 24px 28px 12px;
}
/* Vary card shapes */
.feature:nth-child(2) { border-radius: 28px 12px 24px 24px; }
.feature:nth-child(3) { border-radius: 12px 28px 24px 24px; }
.feature:nth-child(4) { border-radius: 24px 24px 12px 28px; }
.feature:nth-child(5) { border-radius: 28px 24px 12px 24px; }
.feature:nth-child(6) { border-radius: 24px 12px 28px 24px; }

/* Slight rotations */
.feature:nth-child(1) { transform: rotate(-0.6deg); }
.feature:nth-child(2) { transform: rotate(0.8deg); }
.feature:nth-child(3) { transform: rotate(-0.4deg); }
.feature:nth-child(4) { transform: rotate(0.5deg); }
.feature:nth-child(5) { transform: rotate(-0.7deg); }
.feature:nth-child(6) { transform: rotate(0.3deg); }

/* Decorative corner elements */
.feature::after {
  content: ''; position: absolute; width: 40px; height: 40px; opacity: 0.07;
  border-radius: 50%; transition: transform 0.5s ease, opacity 0.5s ease;
}
.feature:nth-child(odd)::after { top: -10px; right: -10px; background: var(--green); }
.feature:nth-child(even)::after { bottom: -10px; left: -10px; background: var(--peach); }

.feature:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: var(--shadow-lift); border-color: var(--green-light);
}
.feature:hover::after { transform: scale(2.5); opacity: 0.1; }

.feature__icon {
  width: 72px; height: 72px; border-radius: 50% 50% 50% 20%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.feature:nth-child(even) .feature__icon { border-radius: 50% 50% 20% 50%; }
.feature:hover .feature__icon { transform: scale(1.12) rotate(-5deg); }
.feature__icon--green { background: var(--green-light); color: var(--green); }
.feature__icon--peach { background: var(--peach-light); color: var(--peach-dark); }
.feature__icon--gold { background: var(--gold-light); color: #B8960A; }
.feature__title { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; }
.feature__text { font-size: 0.88rem; color: var(--text-light); line-height: 1.75; }


/* ================================================
   NÁŠ TÝM — Organic blob photos
   ================================================ */
.tym { background: var(--cream); }
.team { display: flex; flex-direction: column; gap: 36px; max-width: 820px; margin: 0 auto; }

.team-card {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-soft);
  transition: all 0.45s cubic-bezier(0.34,1.56,0.64,1); border: 2px solid transparent;
  position: relative; overflow: hidden;
}
/* Alternating shapes */
.team-card:nth-child(1) { border-radius: 32px 32px 28px 8px; }
.team-card:nth-child(2) { border-radius: 32px 32px 8px 28px; }
.team-card:nth-child(3) { border-radius: 28px 32px 32px 8px; }

@media (min-width: 640px) {
  .team-card { grid-template-columns: 210px 1fr; padding: 32px; }
  .team-card:nth-child(even) { grid-template-columns: 1fr 210px; }
  .team-card:nth-child(even) .team-card__photo { order: 2; }
  .team-card:nth-child(even) .team-card__info { order: 1; }
}
.team-card:hover { transform: translateY(-5px) rotate(-0.3deg); box-shadow: var(--shadow-lift); border-color: var(--green-light); }

/* Decorative accent */
.team-card::after {
  content: ''; position: absolute; width: 100px; height: 100px;
  border-radius: 50%; opacity: 0.04;
}
.team-card:nth-child(1)::after { background: var(--green); top: -30px; right: -30px; }
.team-card:nth-child(2)::after { background: var(--peach); bottom: -30px; left: -30px; }
.team-card:nth-child(3)::after { background: var(--gold); top: -30px; left: -30px; }

.team-card__photo { position: relative; }
.team-card__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border-radius: 20px;
}

/* Flower decoration near photo */
.team-card__photo::after {
  content: ''; position: absolute; width: 28px; height: 28px; opacity: 0.15;
  border-radius: 50%; z-index: 2;
}
.team-card:nth-child(1) .team-card__photo::after { bottom: -8px; right: 10px; background: var(--peach); }
.team-card:nth-child(2) .team-card__photo::after { top: -8px; left: 10px; background: var(--gold); }
.team-card:nth-child(3) .team-card__photo::after { bottom: -8px; left: 10px; background: var(--green); }

.team-card__name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.team-card__role {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  color: var(--green); background: var(--green-light);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 14px;
}
.team-card__info p { font-size: 0.92rem; color: var(--text-medium); line-height: 1.8; }


/* ================================================
   GALERIE
   ================================================ */
.galerie { background: var(--green-pale); padding: 90px 0 70px; }
.gallery { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 4px 0; user-select: none; }
.gallery__track { display: flex; cursor: grab; will-change: transform; }
.gallery__track:active { cursor: grabbing; }
.gallery__slide { flex-shrink: 0; padding: 4px; }
.gallery__slide img {
  width: 100%; height: 300px; object-fit: cover; border-radius: 20px;
  cursor: pointer; transition: all 0.4s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.gallery__slide img:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.gallery__slide--video { position: relative; }
.gallery__slide--video video {
  width: 100%; height: 300px; object-fit: cover; border-radius: 20px;
  cursor: pointer; background: #111;
}
.gallery__play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; padding-left: 4px; cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15); transition: all var(--transition);
}
.gallery__play-btn:hover { background: var(--green); color: var(--white); transform: translate(-50%,-50%) scale(1.1); }

.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(calc(-50% - 16px));
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--white); color: var(--text); cursor: pointer;
  box-shadow: 0 3px 16px rgba(0,0,0,0.1); display: flex; align-items: center;
  justify-content: center; transition: all var(--transition); z-index: 5;
}
.gallery__arrow:hover:not(:disabled) { background: var(--green); color: var(--white); box-shadow: 0 6px 20px rgba(74,158,110,0.3); }
.gallery__arrow:disabled { opacity: 0.25; cursor: default; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; padding: 22px 0 8px; }
.gallery__dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--cream-dark); cursor: pointer; transition: all var(--transition); padding: 0; }
.gallery__dot--active { background: var(--green); width: 30px; border-radius: 5px; }
.gallery__dot:hover:not(.gallery__dot--active) { background: var(--text-light); }

@media (max-width: 639px) {
  .gallery__arrow { width: 38px; height: 38px; }
  .gallery__arrow--prev { left: 6px; }
  .gallery__arrow--next { right: 6px; }
  .gallery__slide img, .gallery__slide--video video { height: 260px; }
  .gallery__play-btn { width: 52px; height: 52px; font-size: 1.3rem; }
}


/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); display: flex; align-items: center;
  justify-content: center; opacity: 0; visibility: hidden;
  transition: all 0.35s ease; padding: 20px;
}
.lightbox--open { opacity: 1; visibility: visible; }
.lightbox__close {
  position: absolute; top: 16px; right: 20px; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.1);
  color: white; font-size: 1.3rem; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }
.lightbox__content { max-width: 90vw; max-height: 85vh; }
.lightbox__content img { max-width: 90vw; max-height: 85vh; border-radius: 16px; object-fit: contain; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.1);
  color: white; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__arrow:hover { background: rgba(255,255,255,0.25); }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }


/* ================================================
   ZÁPIS BANNER
   ================================================ */
/* ================================================
   ZÁPIS — form + flyer layout
   ================================================ */
.zapis { background: var(--cream); padding: 60px 0 40px; }

.zapis__layout {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  max-width: 960px; margin: 0 auto;
}
@media (min-width: 768px) {
  .zapis__layout { grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
}

/* Form side */
.zapis__form-side {
  background: linear-gradient(145deg, var(--white) 0%, var(--green-light) 100%);
  border-radius: 28px 28px 24px 8px; padding: 36px 32px;
  box-shadow: var(--shadow-medium); border: 2px solid rgba(74,158,110,0.08);
}
@media (max-width: 767px) { .zapis__form-side { padding: 28px 22px; } }

.zapis__phone-fallback {
  text-align: center; margin-top: 16px;
  font-size: 0.88rem; color: var(--text-light);
}
.zapis__phone-fallback a {
  font-weight: 700; color: var(--green);
}

/* Flyer side */
.zapis__flyer-side { text-align: center; }

.zapis__flyer-wrap {
  position: relative; display: inline-block; cursor: pointer;
  border-radius: 22px; padding: 4px;
  animation: flyerGlow 2.5s ease-in-out infinite;
}

.zapis__flyer-img {
  width: 280px; border-radius: 18px;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s ease;
}
.zapis__flyer-wrap:hover .zapis__flyer-img {
  transform: scale(1.06) rotate(-1.5deg);
  box-shadow: 0 16px 48px rgba(74,158,110,0.25);
}
.zapis__flyer-wrap:hover .zapis__tap-hint { opacity: 0; }

.zapis__tap-hint {
  position: absolute; bottom: 18px; right: 18px;
  animation: tapTap 2s ease-in-out infinite;
  pointer-events: none; opacity: 0.9;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
  transition: opacity 0.3s ease;
}

@keyframes flyerGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,158,110,0), 0 0 0 0 rgba(233,196,74,0); }
  50% { box-shadow: 0 0 20px 4px rgba(74,158,110,0.15), 0 0 40px 8px rgba(233,196,74,0.08); }
}
@keyframes tapTap {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(-4px, -4px) scale(0.88); }
  30% { transform: translate(0, 0) scale(1); }
  45% { transform: translate(-4px, -4px) scale(0.88); }
  60% { transform: translate(0, 0) scale(1); }
}

.zapis__features {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 20px;
}
.zapis__features li {
  font-size: 0.82rem; font-weight: 600; color: var(--green-dark);
  padding: 5px 14px; background: var(--green-light);
  border-radius: 20px;
}
.zapis__features li::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 7px; vertical-align: middle;
}

@media (max-width: 767px) {
  .zapis__flyer-img { width: 220px; }
  .zapis__flyer-side { order: -1; }
}


/* ================================================
   CENÍK
   ================================================ */
.cenik { background: var(--green-pale); padding: 90px 0 80px; }
.pricing { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 780px; margin: 0 auto 48px; }
@media (min-width: 640px) { .pricing { grid-template-columns: 1fr 1fr; } }

.pricing__card {
  background: var(--white); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  border: 2px solid transparent;
  border-radius: 28px 28px 24px 8px;
}
.pricing__card:nth-child(2) { border-radius: 28px 28px 8px 24px; }
.pricing__card:hover { transform: translateY(-5px) rotate(-0.3deg); box-shadow: var(--shadow-lift); }
.pricing__card--featured { border-color: var(--green); }
.pricing__card--featured .pricing__header { background: var(--green); }
.pricing__header {
  padding: 22px 26px; background: var(--text); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pricing__name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; }
.pricing__badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,0.15);
}
.pricing__body { padding: 8px 0; }
.pricing__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 26px; font-size: 0.93rem; border-bottom: 1px solid var(--cream-dark);
}
.pricing__row:last-child { border-bottom: none; }
.pricing__row span { color: var(--text-medium); }
.pricing__row strong { color: var(--text); font-weight: 700; white-space: nowrap; }
.pricing__row--highlight { background: var(--green-light); }
.pricing__row--highlight strong { color: var(--green-dark); font-size: 1.05rem; }
.pricing__row--note { background: var(--cream); }
.pricing__row--note span { font-size: 0.85rem; color: var(--text-light); }

.info-boxes { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 780px; margin: 0 auto; }
@media (min-width: 640px) { .info-boxes { grid-template-columns: 1fr 1fr; } }
.info-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(135deg, var(--white) 0%, var(--green-light) 100%);
  border-radius: 24px 24px 20px 8px; padding: 28px 26px;
  box-shadow: var(--shadow-soft); transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  border: 2px solid rgba(74,158,110,0.1); position: relative; overflow: hidden;
}
.info-box:nth-child(2) {
  border-radius: 24px 24px 8px 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--peach-light) 100%);
  border-color: rgba(232,168,124,0.1);
}
.info-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.info-box__icon {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.info-box:nth-child(1) .info-box__icon { background: var(--green-light); }
.info-box:nth-child(2) .info-box__icon { background: var(--peach-light); }
.info-box__content { flex: 1; }
.info-box__title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.info-box p { font-size: 0.92rem; color: var(--text-medium); margin-bottom: 4px; line-height: 1.65; }
.info-box p:last-child { margin-bottom: 0; }


/* ================================================
   KONTAKT
   ================================================ */
.kontakt { background: var(--cream); padding-bottom: 40px; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 800px; margin: 0 auto 40px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(3,1fr); } }

.contact-card {
  background: var(--white); padding: 34px 22px;
  text-align: center; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  border: 2px solid transparent; text-decoration: none; color: var(--text); display: block;
  border-radius: 28px 28px 24px 12px;
}
.contact-card:nth-child(2) { border-radius: 28px 28px 12px 24px; }
.contact-card:nth-child(3) { border-radius: 24px 28px 28px 12px; }
.contact-card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: var(--shadow-lift); border-color: var(--green-light); color: var(--text); }
.contact-card__icon {
  width: 64px; height: 64px; border-radius: 50% 50% 50% 20%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.contact-card:hover .contact-card__icon { background: var(--green); color: var(--white); transform: scale(1.1) rotate(-5deg); border-radius: 50%; }
.contact-card h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.contact-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* Contact form */
.contact-form-wrap {
  max-width: 680px; margin: 0 auto 40px;
  background: linear-gradient(145deg, var(--white) 0%, var(--green-light) 100%);
  border-radius: 32px 32px 24px 8px; padding: 40px 36px;
  box-shadow: var(--shadow-medium); position: relative; overflow: hidden;
  border: 2px solid rgba(74,158,110,0.08);
}
.contact-form-wrap::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--green); opacity: 0.04;
}
.contact-form__header { margin-bottom: 28px; text-align: center; }
.contact-form__title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.contact-form__subtitle { font-size: 0.92rem; color: var(--text-light); }

.contact-form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 500px) { .contact-form__row { grid-template-columns: 1fr; } }

.contact-form__field { margin-bottom: 18px; }
.contact-form__field label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--text-medium); margin-bottom: 6px;
}
.contact-form__optional { font-weight: 400; color: var(--text-light); font-size: 0.78rem; }

.contact-form__field input,
.contact-form__field textarea {
  width: 100%; padding: 14px 18px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: rgba(255,255,255,0.8);
  border: 2px solid rgba(74,158,110,0.12);
  border-radius: 14px; outline: none;
  transition: all var(--transition);
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74,158,110,0.08);
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--text-light); opacity: 0.6;
}
.contact-form__field textarea { resize: vertical; min-height: 120px; }

.contact-form__submit {
  width: 100%; margin-top: 8px; padding: 16px;
  font-size: 1rem;
}

.contact-form__success {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center; padding: 30px 0;
}
.contact-form__success h4 {
  font-family: var(--font-heading); font-size: 1.3rem; color: var(--green-dark);
}
.contact-form__success p { font-size: 0.95rem; color: var(--text-medium); }

@media (max-width: 640px) {
  .contact-form-wrap { padding: 28px 22px; border-radius: 24px 24px 20px 8px; }
}

.kontakt__cta { text-align: center; margin: 0 auto 40px; }

.contact-map { max-width: 800px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.contact-map iframe { display: block; }


/* ================================================
   FOOTER
   ================================================ */
.footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 32px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
@media (min-width: 640px) { .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer__logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.footer__logo-img { width: 38px; height: 38px; object-fit: contain; opacity: 0.85; }
.footer__links { display: flex; gap: 14px; }
.footer__links a { color: rgba(255,255,255,0.45); transition: all 0.2s; }
.footer__links a:hover { color: rgba(255,255,255,0.9); transform: scale(1.1); }
.footer__copy { font-size: 0.8rem; }


/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 60px 20px rgba(255,204,2,0.15), 0 0 120px 60px rgba(255,204,2,0.06); }
  50% { box-shadow: 0 0 80px 30px rgba(255,204,2,0.2), 0 0 150px 80px rgba(255,204,2,0.08); }
}
@keyframes driftCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(40px); }
}
@keyframes birdDrift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(40px, -10px); }
  50% { transform: translate(90px, -4px); }
  75% { transform: translate(120px, -14px); }
  100% { transform: translate(0, 0); }
}
@keyframes wingFlap {
  0% { transform: rotateY(0deg) rotateX(10deg); }
  100% { transform: rotateY(50deg) rotateX(-5deg); }
}
@keyframes butterflyFloat {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(20px, -15px); }
  40% { transform: translate(-10px, -30px); }
  60% { transform: translate(30px, -20px); }
  80% { transform: translate(-15px, -10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatLeaf {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -12px) rotate(5deg); }
  50% { transform: translate(-5px, -20px) rotate(-3deg); }
  75% { transform: translate(10px, -8px) rotate(4deg); }
}

/* Scroll-triggered */
.animate-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }
.animate-in.visible { opacity: 1; transform: translateY(0); }

.feature.animate-in:nth-child(1) { transition-delay: 0s; }
.feature.animate-in:nth-child(2) { transition-delay: 0.08s; }
.feature.animate-in:nth-child(3) { transition-delay: 0.16s; }
.feature.animate-in:nth-child(4) { transition-delay: 0.24s; }
.feature.animate-in:nth-child(5) { transition-delay: 0.32s; }
.feature.animate-in:nth-child(6) { transition-delay: 0.4s; }
.contact-card.animate-in:nth-child(1) { transition-delay: 0s; }
.contact-card.animate-in:nth-child(2) { transition-delay: 0.12s; }
.contact-card.animate-in:nth-child(3) { transition-delay: 0.24s; }
.team-card.animate-in:nth-child(1) { transition-delay: 0s; }
.team-card.animate-in:nth-child(2) { transition-delay: 0.15s; }
.team-card.animate-in:nth-child(3) { transition-delay: 0.3s; }

/* Visible state needs to override card rotations */
.feature.animate-in.visible:nth-child(1) { transform: translateY(0) rotate(-0.6deg); }
.feature.animate-in.visible:nth-child(2) { transform: translateY(0) rotate(0.8deg); }
.feature.animate-in.visible:nth-child(3) { transform: translateY(0) rotate(-0.4deg); }
.feature.animate-in.visible:nth-child(4) { transform: translateY(0) rotate(0.5deg); }
.feature.animate-in.visible:nth-child(5) { transform: translateY(0) rotate(-0.7deg); }
.feature.animate-in.visible:nth-child(6) { transform: translateY(0) rotate(0.3deg); }


/* ================================================
   ACCESSIBILITY & REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate-in { opacity: 1; transform: none; }
  .hero__butterfly, .hero__bird { display: none; }
}

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

@media print {
  .nav, .hero__bg, .hero__meadow, .divider, .gallery__arrow, .gallery__dots, .lightbox, .contact-map,
  .section__decor, .hero__butterfly, .hero__bird, .hero__sun { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .section { padding: 20px 0; page-break-inside: avoid; overflow: visible; }
}
