/* Do školy s jistotou - Předškola */

:root {
  --paper: #FFF8EE;
  --paper-2: #FFE8C2;
  --ink: #2A2418;
  --ink-soft: #5A4E3C;
  --white: #FFFFFF;

  --sun: #FFC93C;
  --sun-deep: #E8A200;
  --grass: #4CAF50;
  --grass-deep: #2E8B3A;
  --sky: #4BA3E3;
  --sky-deep: #2B7FC2;
  --berry: #EF5B6D;
  --berry-deep: #D63A4F;
  --lilac: #8E74D4;
  --peach: #FF9F6B;

  --nav-h: 4.5rem;
  --max: 68rem;
  --font: "Nunito", "Segoe UI", sans-serif;
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --ease: cubic-bezier(0.34, 1.2, 0.64, 1);
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255, 201, 60, 0.35) 2px, transparent 2.5px),
    radial-gradient(circle at 36px 36px, rgba(75, 163, 227, 0.22) 2px, transparent 2.5px),
    radial-gradient(circle at 60px 18px, rgba(239, 91, 109, 0.18) 1.5px, transparent 2px),
    radial-gradient(circle at 84px 48px, rgba(76, 175, 80, 0.2) 2px, transparent 2.5px),
    linear-gradient(180deg, #FFF8EE 0%, #FFF3E0 45%, #FFEFD6 100%);
  background-size: 96px 64px, 96px 64px, 96px 64px, 96px 64px, auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

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

a {
  color: var(--sky-deep);
}

a:hover {
  color: var(--berry-deep);
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

.container {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--sun);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

.logo {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.15;
}

.logo-title {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow: 1.5px 1.5px 0 #000;
}

.logo-title .c-sun { color: var(--sun); }
.logo-title .c-berry { color: var(--berry); }
.logo-title .c-sky { color: var(--sky); }
.logo-title .c-grass { color: var(--grass); }
.logo-title .c-lilac { color: var(--lilac); }
.logo-title .c-peach { color: var(--peach); }

.logo em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--sky-deep);
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--sun);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.nav-list a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-list a.is-active {
  background: var(--sky);
  color: var(--white);
}

.nav-list a.nav-cta {
  background: var(--berry);
  color: var(--white);
  margin-left: 0.2rem;
}

.nav-list a.nav-cta:hover,
.nav-list a.nav-cta.is-active {
  background: var(--berry-deep);
  color: var(--white);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  border: var(--line);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
  color: inherit;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-sun { background: var(--sun); color: var(--ink); }
.btn-grass { background: var(--grass); color: var(--white); }
.btn-sky { background: var(--sky); color: var(--white); }
.btn-berry { background: var(--berry); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* —— Page layout —— */
.page-hero {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 1.25rem;
}

.page-hero.home {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: left;
}

.kicker {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: var(--line);
  background: var(--sun);
  margin: 0 0 0.85rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.page-lead {
  max-width: 40rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.page-body {
  padding: 1rem 0 clamp(3rem, 7vw, 4.5rem);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.title-color {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #000;
}

.title-color span { display: inline-block; }
.title-color span:nth-child(1) { transform: translateY(0.560em) rotate(-16deg); }
.title-color span:nth-child(2) { transform: translateY(0.315em) rotate(-12deg); }
.title-color span:nth-child(3) { transform: translateY(0.140em) rotate(-8deg); }
.title-color span:nth-child(4) { transform: translateY(0.035em) rotate(-4deg); }
.title-color span:nth-child(5) { transform: translateY(0.000em) rotate(0deg); }
.title-color span:nth-child(6) { transform: translateY(0.035em) rotate(4deg); }
.title-color span:nth-child(7) { transform: translateY(0.140em) rotate(8deg); }
.title-color span:nth-child(8) { transform: translateY(0.315em) rotate(12deg); }
.title-color span:nth-child(9) { transform: translateY(0.560em) rotate(16deg); }
.title-color { padding-bottom: 0.55em; }
.hero-brand { display: inline-block; text-align: center; margin-bottom: 0.9rem; }
.hero-brand .hero-sub { margin-top: -0.2rem; }
.big-d { font-size: 1.45em; line-height: 0; }
.title-color .c-sun { color: var(--sun); }
.title-color .c-berry { color: var(--berry); }
.title-color .c-sky { color: var(--sky); }
.title-color .c-grass { color: var(--grass); }
.title-color .c-lilac { color: var(--lilac); }
.title-color .c-peach { color: var(--peach); }

.hero-sub {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sky-deep);
  margin: 0 0 0.85rem;
}

.motto {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  font-weight: 700;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.hero-photo {
  position: relative;
  margin: 0;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--sky);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.hero-photo:hover {
  transform: translateY(-4px);
  box-shadow: 9px 10px 0 var(--berry);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.hero-photo:hover img {
  transform: scale(1.03);
}

.photo-spark {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  z-index: 2;
  animation: sparkle 2.8s ease-in-out infinite;
}

.spark-1 { top: 0.85rem; right: 1rem; background: var(--sun); }
.spark-2 { bottom: 1.1rem; left: 1rem; background: var(--grass); animation-delay: 0.7s; width: 0.7rem; height: 0.7rem; }
.spark-3 { top: 42%; right: -0.3rem; background: var(--berry); animation-delay: 1.3s; width: 0.6rem; height: 0.6rem; }

@keyframes sparkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.75; }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

.wave {
  display: block;
  width: 100%;
  height: 42px;
}

.wave-animated path {
  animation: waveSoft 8s ease-in-out infinite alternate;
}

@keyframes waveSoft {
  from { transform: translateX(0); }
  to { transform: translateX(-14px); }
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* quiet caption under the hero photo – not a section of its own */
.principles {
  padding: 0 0.15rem;
}

.principles-rotator {
  position: relative;
}

.principle {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-soft);
}

.principle:not(.is-active) {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(0.25rem);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.principle.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.principles-dots {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.principles-dots button {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.principles-dots button:hover {
  transform: scale(1.15);
}

.principles-dots button.is-active {
  background: var(--sun);
}

/* panels & content */
.panel {
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 1.85rem);
}

.panel-sun { background: #FFF4C8; }
.panel-sky { background: #DDF0FB; }
.panel-grass { background: #E0F4E0; }
.panel-berry { background: #FDE4E8; }
.panel-lilac { background: #EEE6FF; }

.content-wide {
  max-width: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: stretch;
}

.split-reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.media-frame {
  margin: 0;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame.portrait img {
  aspect-ratio: 4 / 5;
}

.photo-box {
  width: 100%;
  min-height: 100%;
  margin: 0;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, #FFE4B8, #FFD6E0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1.25rem;
  color: var(--ink-soft);
  font-weight: 800;
}

.photo-box--img {
  padding: 0;
  overflow: hidden;
}

.photo-box--img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.photo-box svg {
  width: 3rem;
  opacity: 0.5;
}

.checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.blob {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 40% 60% 55% 45%;
  border: 2.5px solid var(--ink);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.blob.sun { background: var(--sun); }
.blob.sky { background: var(--sky); }
.blob.grass { background: var(--grass); }
.blob.berry { background: var(--berry); }

.checklist strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.experience-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.experience-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.experience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sky);
  border: 2px solid var(--ink);
}

.section-block {
  margin-top: 1.5rem;
}

.section-block h2 {
  margin-bottom: 0.65rem;
}

.stack {
  display: grid;
  gap: 1.35rem;
}

/* about page */
.about-page {
  display: grid;
  gap: 1.35rem;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.about-profile-text {
  display: grid;
  align-content: center;
  gap: 0.65rem;
}

.about-profile-text p {
  margin: 0;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.about-card {
  height: 100%;
}

/* program page */
.program-intro {
  align-items: stretch;
}

.program-timeline h2 {
  margin-bottom: 1rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.timeline-item {
  border: var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.9rem 1rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.timeline-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

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

.program-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

/* lesson page */
.lesson-top {
  align-items: stretch;
}

.lesson-highlights h2 {
  margin-bottom: 0.9rem;
}

.lesson-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-item {
  border: var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.95rem;
  text-align: center;
}

.metric-item h3 {
  margin: 0.45rem 0 0.3rem;
  font-size: 1.05rem;
}

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

.metric-circle {
  width: 2.9rem;
  height: 2.9rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--line);
  background: var(--berry);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.lesson-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.lesson-step {
  border: var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.95rem 1rem;
}

.lesson-step h3 {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.08rem;
}

.lesson-step p {
  margin: 0;
  font-size: 0.98rem;
}

.lesson-dot {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: var(--line);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.lesson-dot.berry { background: var(--berry); color: var(--white); }
.lesson-dot.grass { background: var(--grass); color: var(--white); }
.lesson-dot.sky { background: var(--sky); color: var(--white); }
.lesson-dot.sun { background: var(--sun); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.35rem, 4vw, 2.25rem);
  align-items: stretch;
}

.price-card {
  text-align: left;
}

.price-big {
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  margin: 0.5rem 0 0.75rem;
}

.price-big small {
  display: block;
  font-size: 0.32em;
  font-weight: 800;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.price-points {
  margin-top: 1rem;
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.pricing-tile {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 0.45rem;
}

.pricing-tile h2 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  min-height: 3.2rem;
}

.pricing-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.pricing-number {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
  min-height: 2.6rem;
}

.pricing-note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-height: 1.4rem;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-card {
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  transition: transform 0.2s var(--ease);
}

.contact-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.contact-card strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.contact-card span {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-intro {
  max-width: 40rem;
}

/* form */
.form-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: start;
}

.application-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 800;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  border: var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 6rem; line-height: 1.45; }
.field-optional { font-weight: 700; color: var(--ink-soft); font-size: 0.85rem; }
.form-note {
  margin: 0 0 0.4rem;
  padding: 0.75rem 0.95rem;
  background: #FFF4C8;
  border: 2px dashed var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(75, 163, 227, 0.3);
}

.checkbox-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.checkbox-field input {
  margin-top: 0.25rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--grass);
  flex-shrink: 0;
}

.form-success {
  display: none;
  padding: 1rem 1.1rem;
  background: #DDF3DD;
  border: 3px solid var(--grass-deep);
  border-radius: var(--radius-sm);
  font-weight: 800;
  color: var(--ink);
}

.form-success.is-visible {
  display: block;
  animation: pop 0.4s var(--ease);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* footer */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #F7E8C8;
  padding: 1.6rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: inherit;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--sun);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .brand {
  font-weight: 800;
  color: var(--white);
}

/* home teasers */
.home-more {
  margin-top: 0.5rem;
}

.home-more > h2 {
  margin-bottom: 0.35rem;
}

.home-more > .lead {
  margin-bottom: 1.35rem;
  max-width: 40rem;
  font-weight: 700;
}

.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.teaser {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

.teaser:hover {
  transform: translateY(-4px);
  color: inherit;
}

.teaser-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  border-bottom: var(--line);
}

.teaser-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.teaser h3 {
  margin-bottom: 0.35rem;
}

.teaser p {
  font-size: 0.98rem;
  margin: 0;
}

/* responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    inset: calc(var(--nav-h) + 4px) 0.75rem auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.85rem;
    background: var(--white);
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }

  .nav-list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list a {
    padding: 0.7rem 0.85rem;
  }

  .nav-list a.nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .split,
  .split-reverse,
  .form-grid,
  .teasers,
  .hero-home,
  .price-layout,
  .pricing-row,
  .contact-grid,
  .about-columns,
  .about-profile-grid,
  .timeline-grid,
  .program-columns,
  .lesson-metrics,
  .lesson-flow,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    max-width: 26rem;
    margin-inline: auto;
  }

  .photo-box {
    min-height: 16rem;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .contact-grid .btn {
    width: auto;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* certificates */
.about-certs p { margin: 0 0 1.1rem; }
.cert-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 44rem;
}
.cert-card {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  background: var(--white); border: var(--line); border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--ink); padding: 0.6rem; color: var(--ink);
  text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.cert-card:hover, .cert-card:focus-visible { transform: translateY(-3px); box-shadow: 6px 7px 0 var(--berry); }
.cert-card img {
  width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top;
  border-radius: 0.5rem; border: 1px solid #e5dccb; display: block;
}
.cert-title { font-weight: 800; font-size: 0.95rem; line-height: 1.3; }
.cert-meta { font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }
.cert-note { font-size: 0.78rem; color: var(--ink-soft); font-style: italic; }
.cert-dialog {
  border: var(--line); border-radius: var(--radius); padding: 0.8rem;
  max-width: min(46rem, 94vw); max-height: 94vh; background: var(--white); box-shadow: var(--shadow);
}
.cert-dialog::backdrop { background: rgba(42, 36, 24, 0.7); }
.cert-dialog img { display: block; max-width: 100%; max-height: calc(94vh - 5.5rem); margin: 0 auto; }
.cert-dialog-title { margin: 0.6rem 2.5rem 0 0.2rem; font-weight: 800; }
.cert-close {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 2.4rem; height: 2.4rem;
  border: var(--line); border-radius: 50%; background: var(--sun); font-size: 1.5rem;
  font-weight: 800; line-height: 1; cursor: pointer; color: var(--ink);
}

@media (max-width: 640px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* smaller portrait on the about page */
.about-profile-grid:has(.photo-box--img) {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1.58fr);
  align-items: center;
}
.photo-box--img { min-height: 0; }
@media (max-width: 960px) {
  .about-profile-grid:has(.photo-box--img) { grid-template-columns: 1fr; }
  .photo-box--img { width: 50%; justify-self: center; min-height: 0; }
}

/* handwritten motto on the home page */
.motto-script {
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 2.55rem);
  line-height: 1.08;
  color: var(--grass-deep);
  max-width: none;
  margin: 0.4rem 0 1.2rem;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.motto-script .ms-line { display: block; }
.motto-script .ms-2 { padding-left: 1.4em; }
.motto-script .ms-3 { padding-left: 0.5em; }
.motto-script .ms-hl {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.motto-script .ms-berry { color: var(--berry-deep); }
.motto-script .ms-sky { color: var(--sky-deep); }
.motto-script .ms-hl::after {
  content: "";
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: -0.02em;
  height: 0.28em;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 4, 80 18, 120 9 S 180 6, 197 11' fill='none' stroke='%23FFC93C' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
  z-index: -1;
}
@media (max-width: 560px) {
  .motto-script { font-size: 1.85rem; }
  .motto-script .ms-2 { padding-left: 0.8em; }
  .motto-script .ms-3 { padding-left: 0.2em; }
}

.hero-note {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 0 1.75rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--sun);
}
.hero-note strong { color: var(--ink); }

/* handwritten note under the hero photo */
.note-script {
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  line-height: 1.1;
  text-align: center;
  color: var(--sky-deep);
  margin: 1.4rem 0 0;
  transform: rotate(1.5deg);
}
.note-script .ns-line { display: block; }
.note-script .ns-2 { color: var(--grass-deep); margin-top: 0.25rem; }
.note-script .ns-3 { color: var(--grass-deep); }
.note-script em { font-style: normal; }
.note-script .ns-berry { color: var(--berry-deep); }
.note-script .ns-hl {
  color: var(--lilac);
  position: relative;
  display: inline-block;
}
.note-script .ns-hl::after {
  content: "";
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: -0.04em;
  height: 0.3em;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 45 5, 85 17, 125 9 S 182 7, 197 12' fill='none' stroke='%23FFC93C' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
  z-index: -1;
}

.note-script--page {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.6rem auto 0.4rem;
  max-width: 62rem;
  transform: rotate(-1.5deg);
}

/* brand word "Předškola" coloured wherever it appears in text */
.pk-word {
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-text-stroke: 0.9px #000;
  paint-order: stroke fill;
}
.pk-word .c-sun { color: var(--sun, #FFC93C); }
.pk-word .c-berry { color: var(--berry, #EF5B6D); }
.pk-word .c-sky { color: var(--sky, #4BA3E3); }
.pk-word .c-grass { color: var(--grass, #4CAF50); }
.pk-word .c-lilac { color: var(--lilac, #8E74D4); }
.pk-word .c-peach { color: var(--peach, #FF9F6B); }
h1 .pk-word, h2 .pk-word { -webkit-text-stroke: 1.6px #000; text-shadow: 2px 2px 0 #000; }

/* "do školy s jistotou" – lowercase, dark green everywhere */
.dsj { color: var(--grass-deep, #2E8B3A); }
.site-footer .dsj { color: var(--grass, #4CAF50); }
.metric-circle { width: fit-content; min-width: 2.9rem; padding: 0 0.55rem; border-radius: 999px; white-space: nowrap; }
.metric-group { gap: 0.15rem; display: flex; align-items: center; justify-content: center; }
.metric-group svg { width: 1.05rem; height: 1.05rem; }
.note-script--slogan { font-size: clamp(2.2rem, 5.5vw, 3.4rem); color: var(--grass-deep); transform: rotate(1.5deg); margin: 1rem auto; }
.note-script .ns-sky { color: var(--sky-deep); }
/* photo frames next to long panels: keep the frame the size of the photo */
.split > .media-frame { align-self: center; }

.lesson-flow--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .lesson-flow--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lesson-flow--6 { grid-template-columns: 1fr; } }
.lesson-dot.lilac { background: var(--lilac); color: var(--white); }
.lesson-dot.peach { background: var(--peach); }
.lesson-promise {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink-soft);
}
.lesson-promise strong { color: var(--ink); }
.lesson-flow--6 .lesson-step:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 960px) { .lesson-flow--6 .lesson-step:last-child:nth-child(3n+1) { grid-column: auto; } .lesson-flow--6 .lesson-step:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* 8 steps: two balanced columns */
.lesson-flow--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lesson-flow--6 .lesson-step:last-child:nth-child(3n+1),
.lesson-flow--6 .lesson-step:last-child:nth-child(odd) { grid-column: auto; }
@media (max-width: 560px) { .lesson-flow--6 { grid-template-columns: 1fr; } }

/* centred page hero with a big yellow pill title */
.page-hero--center { text-align: center; }
.page-hero--center .page-lead { margin-inline: auto; }
.kicker.kicker-big {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.1;
  padding: 0.45rem 1.6rem 0.55rem;
  box-shadow: 5px 5px 0 var(--ink);
  margin: 0 auto 1rem;
  color: var(--ink);
}
.kicker.kicker-big { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
.pricing-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; }
@media (max-width: 640px) { .pricing-row { grid-template-columns: 1fr; } }

/* online application form */
.form-section { border: 0; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.85rem; min-width: 0; }
.form-section legend {
  font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--grass-deep); padding: 0 0 0.5rem; margin-bottom: 0.2rem;
  border-bottom: 3px solid var(--sun); width: 100%;
}
.form-hint { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.5rem; }
.check-chip {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--white);
  font-weight: 700; font-size: 0.93rem; cursor: pointer;
}
.check-chip input[type="checkbox"] { width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--grass-deep); }
.check-chip:has(input[type="checkbox"]:checked) { background: #E3F4E4; }
.check-chip--other { grid-column: 1 / -1; flex-wrap: wrap; }
.check-chip--other input[type="text"] {
  flex: 1 1 12rem; font: inherit; padding: 0.35rem 0.6rem; border: 2px solid var(--ink);
  border-radius: 0.6rem; background: var(--white);
}
.form-info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: start; }
.form-price {
  display: grid; gap: 0.2rem; padding: 0.9rem 1rem; background: #FFF4C8;
  border: var(--line); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; color: var(--ink-soft);
}
.form-price strong { color: var(--ink); }
.form-price-num { font-size: 1.7rem; font-weight: 800; color: var(--berry-deep); line-height: 1.1; }
.form-terms {
  max-height: 14rem; overflow: auto; padding: 0.8rem 1rem; background: var(--white);
  border: 2px solid var(--ink); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--ink-soft); font-weight: 600;
}
.form-terms p { margin: 0 0 0.6rem; }
.form-terms p:last-child { margin: 0; }
.form-error { margin: 0; color: var(--berry-deep); font-weight: 800; font-size: 0.92rem; }
.form-error--send { margin-top: 0.8rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { .form-info-grid { grid-template-columns: 1fr; } }
.form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field input, .field textarea { width: 100%; min-width: 0; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-sms {
  padding: 0.85rem 1.05rem; background: #FFF4C8; border: 2px dashed var(--ink);
  border-radius: var(--radius-sm); font-weight: 700;
}
/* rotating principles under the hero photo – bigger and coloured */
.principles { margin-top: 0.9rem; }
.principle {
  font-size: clamp(1.08rem, 1.9vw, 1.25rem);
  font-weight: 800;
  line-height: 1.38;
}
.principle:nth-child(5n+1) { color: var(--berry-deep); }
.principle:nth-child(5n+2) { color: var(--sky-deep); }
.principle:nth-child(5n+3) { color: var(--grass-deep); }
.principle:nth-child(5n+4) { color: var(--lilac); }
.principle:nth-child(5n+5) { color: #D9741F; }
.principles-dots { margin-top: 0.6rem; gap: 0.45rem; }
.principles-dots button { width: 0.65rem; height: 0.65rem; }
.principles-dots button.is-active { background: var(--berry); transform: scale(1.2); }
.home-more > .container > h2 { text-align: center; margin-bottom: 1.2rem; }

/* "do školy s jistotou" in a gentle smile-shaped arc under the rainbow title */
.hero-sub-arc {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-top: 0.1rem !important;
  padding-top: 0.5em;
  white-space: nowrap;
}
.hero-sub-arc .arc-letters span { display: inline-block; transform-origin: 50% 100%; }
.hero-brand .hero-sub.hero-sub-arc { font-size: clamp(1.6rem, 3.4vw, 2.1rem); padding-top: 0.9em; margin-bottom: 0.4rem; }
/* summary boxes (Program v kostce / Klíčové informace): coloured and easier to read */
.lesson-metrics .metric-item { border-top-width: 8px; padding-top: 1.1rem; }
.lesson-metrics .metric-item:nth-child(3n+1) { border-top-color: var(--berry); background: #FFF0F2; }
.lesson-metrics .metric-item:nth-child(3n+2) { border-top-color: var(--sky); background: #EAF5FD; }
.lesson-metrics .metric-item:nth-child(3n+3) { border-top-color: var(--grass); background: #EAF7EA; }
.lesson-metrics .metric-item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.lesson-metrics .metric-item:nth-child(3n+1) h3 { color: var(--berry-deep); }
.lesson-metrics .metric-item:nth-child(3n+2) h3 { color: var(--sky-deep); }
.lesson-metrics .metric-item:nth-child(3n+3) h3 { color: var(--grass-deep); }
.lesson-metrics .metric-item p { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.h-center { text-align: center; }

/* home motto: centred, a bit lower, colours that don't blend with the green subtitle */
.motto-script {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--sky-deep);
  transform: rotate(-1.5deg);
  transform-origin: center;
}
.motto-script .ms-2, .motto-script .ms-3 { padding-left: 0; }
.motto-script .ms-sky { color: var(--lilac); }
.hero-copy .btn-row { justify-content: center; }
.page-lead--wide { max-width: none; }
/* logo: subtitle centred under the coloured word */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }

/* centred content in boxes – headings, short texts and numbers; long bullet lists stay left-aligned for readability */
.panel > h2 { text-align: center; }
.teaser-body { text-align: center; }
.lesson-step { text-align: center; }
.lesson-step .lesson-dot { margin-inline: auto; }
.pricing-tile > h2, .pricing-tile .pricing-number, .pricing-tile .pricing-note { text-align: center; }
.contact-card { text-align: center; align-items: center; }

/* crayon divider between the title and the handwritten motto */
.hero-divider { display: flex; justify-content: center; margin: 0.9rem 0 0.2rem; }
.hero-divider svg { width: min(16rem, 70%); height: auto; }
.hero-divider + .motto-script { margin-top: 0.6rem; }
.hero-divider svg { width: min(20rem, 80%); }

/* hero: centred title block, crayons and buttons */
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-brand { display: block; margin-inline: auto; }
.hero-divider { margin: 1.1rem 0 1.4rem; width: 100%; }
/* motto moved above "Co vás na webu zajímá" */
.motto-banner {
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin: 0.5rem auto 2.2rem;
  max-width: 50rem;
}
.motto-banner .ms-line { display: inline; }
.motto-banner .ms-1::after, .motto-banner .ms-2::after { content: " "; }
.motto-banner { margin-top: 2.6rem; transform: rotate(-1deg); }
/* hero layout: bigger title higher up, smaller photo set lower */
@media (min-width: 961px) {
  .hero-home { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); align-items: start; }
  .hero-copy { padding-top: 0.5rem; }
  .hero-side { margin-top: 6.5rem; }
}
.hero-brand .title-color { font-size: clamp(2.9rem, 9vw, 5.8rem); }
.hero-brand .hero-sub.hero-sub-arc { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
.hero-side .note-script { font-size: clamp(1.4rem, 2.3vw, 1.8rem); }
@media (min-width: 961px) {
  .hero-copy { padding-top: 2.6rem; }
  .hero-brand { transform: translateX(-1.5rem); }
}

/* gallery of teaching aids on Lekce v MŠ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0.6rem; }
.gallery-item {
  margin: 0; background: var(--white); border: var(--line); border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--ink); overflow: hidden; transition: transform 0.25s var(--ease);
}
.gallery-item:nth-child(odd) { transform: rotate(-1deg); }
.gallery-item:nth-child(even) { transform: rotate(1deg); }
.gallery-item:hover { transform: rotate(0) translateY(-3px); }
.gallery-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-item figcaption { padding: 0.65rem 0.8rem 0.8rem; text-align: center; display: grid; gap: 0.15rem; font-size: 0.92rem; }
.gallery-item figcaption span { color: var(--ink-soft); font-weight: 700; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery-item--big { grid-column: span 2; grid-row: span 2; transform: rotate(-0.6deg) !important; }
.gallery-item--big img { aspect-ratio: auto; height: calc(100% - 4.2rem); min-height: 18rem; }
.gallery-item--big figcaption { font-size: 1.05rem; }
@media (max-width: 760px) { .gallery-item--big { grid-column: 1 / -1; grid-row: auto; } .gallery-item--big img { height: auto; aspect-ratio: 1 / 1; } }
.gallery-item--big { display: flex; flex-direction: column; } .gallery-item--big img { flex: 1 1 auto; height: auto; min-height: 0; } .gallery-item--big figcaption { flex: none; }

/* home hero: original warm yellow background kept; just contain the sticks */
.page-hero.home { isolation: isolate; overflow: hidden; }

/* wriggly sensory sticks peeking in from the left edge of the home hero */
.hero-sticks {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: clamp(5rem, 11vw, 10rem);
  z-index: 0; pointer-events: none;
  animation: sticks-peek 6s ease-in-out infinite alternate;
}
.hero-sticks svg { width: 100%; height: 100%; display: block; }
.page-hero.home .container { position: relative; z-index: 1; }
@keyframes sticks-peek { from { transform: translateX(-12%); } to { transform: translateX(4%); } }
@media (max-width: 960px) { .hero-sticks { width: 3.2rem; opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .hero-sticks { animation: none; } }
.hero-sticks { width: clamp(8rem, 15vw, 13.5rem); }
.hero-sticks svg { overflow: visible; }
@media (min-width: 961px) { .hero-brand { transform: none; } .hero-copy { padding-left: clamp(3rem, 7vw, 6rem); } }
@media (max-width: 960px) { .hero-sticks { width: 3.6rem; opacity: 0.9; } .page-hero.home .container { padding-left: 3.2rem; } }
.title-color { white-space: nowrap; }
@media (min-width: 961px) { .hero-copy { padding-left: clamp(2rem, 5vw, 4.5rem); } .hero-brand .title-color { font-size: clamp(2.9rem, 6.6vw, 5.6rem); } }

/* animated hourglass under the hero buttons */
.hourglass { width: clamp(5.5rem, 9vw, 7.5rem); margin: 2rem auto 0; filter: drop-shadow(4px 5px 0 rgba(42,36,24,.18)); }
.hourglass svg { display: block; width: 100%; height: auto; overflow: visible; }
.hg-flip { transform-box: view-box; transform-origin: 60px 100px; animation: hg-flip 8s ease-in-out infinite; }
.hg-sand-top { transform-box: fill-box; transform-origin: 50% 100%; animation: hg-top 8s linear infinite; }
.hg-sand-bot { transform-box: fill-box; transform-origin: 50% 100%; animation: hg-bot 8s linear infinite; }
.hg-stream { animation: hg-stream 8s linear infinite, hg-fall .5s linear infinite; }
@keyframes hg-top { 0% { transform: scaleY(.85); } 82%, 100% { transform: scaleY(0); } }
@keyframes hg-bot { 0% { transform: scaleY(0); } 82%, 100% { transform: scaleY(.85); } }
@keyframes hg-stream { 0%, 80% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes hg-fall { to { stroke-dashoffset: -9; } }
@keyframes hg-flip { 0%, 86% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .hg-flip, .hg-sand-top, .hg-sand-bot, .hg-stream { animation: none; } }
@media (min-width: 961px) {
  .hero-side { align-items: center; margin-top: 2.5rem; }
  .hero-side .hero-photo { width: 74%; margin-left: auto; margin-right: auto; }
  .hero-side .note-script { margin: 0 0 1.4rem; }
}

/* principles under the photo: smaller, one dark-blue colour */
.principle, .principle:nth-child(n) { color: #1F4E8C; font-size: clamp(0.95rem, 1.5vw, 1.05rem); font-weight: 700; }
.principles-dots button.is-active { background: #1F4E8C; }
/* sticks lie still */
.hero-sticks { animation: none; transform: none; }
/* small photo of compensation aids tucked into the right edge */
.hero-aid {
  position: absolute; right: -2.2rem; bottom: 3rem; z-index: 0; pointer-events: none;
  width: clamp(7rem, 11vw, 9.5rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 rgba(42,36,24,.25);
  transform: rotate(-8deg); opacity: .92;
}
.hero-aid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) { .hero-aid { display: none; } }
/* align the green crayon under the letter Š */
.hero-divider svg { transform: translateX(-1.6rem); }
@media (max-width: 960px) { .hero-divider svg { transform: translateX(-1.25rem); } }

/* small polaroids of teaching aids on the home page */
.polaroid-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(0.6rem, 2vw, 1.4rem); margin: 0 auto 2.6rem; max-width: 60rem; }
.polaroid {
  margin: 0; width: clamp(7.5rem, 15vw, 10.5rem); background: #fff; padding: 0.45rem 0.45rem 0.3rem;
  border: 2px solid var(--ink); border-radius: 0.4rem; box-shadow: 4px 4px 0 rgba(42,36,24,.22);
  transition: transform .25s var(--ease);
}
.polaroid:nth-child(1) { transform: rotate(-5deg) translateY(4px); }
.polaroid:nth-child(2) { transform: rotate(3deg) translateY(-6px); }
.polaroid:nth-child(3) { transform: rotate(-2deg) translateY(8px); }
.polaroid:nth-child(4) { transform: rotate(4deg) translateY(-3px); }
.polaroid:nth-child(5) { transform: rotate(-4deg) translateY(5px); }
.polaroid:hover { transform: rotate(0) scale(1.06); z-index: 2; }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.2rem; }
.polaroid figcaption { font-family: "Caveat", cursive; font-weight: 700; font-size: 1.2rem; text-align: center; line-height: 1.3; color: var(--ink); }
@media (max-width: 560px) { .polaroid:nth-child(5) { display: none; } }
.metric-icon { width: 2.9rem; padding: 0; display: grid; place-items: center; }
.metric-icon svg { width: 1.45rem; height: 1.45rem; }
.lesson-metrics .metric-item:nth-child(3n+2) .metric-icon { background: var(--sky); }
.lesson-metrics .metric-item:nth-child(3n+3) .metric-icon { background: var(--grass); }

/* trust badges under the hero buttons */
.hero-badges { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem;
  background: rgba(255,255,255,.75); border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 0.95rem; box-shadow: 3px 3px 0 rgba(42,36,24,.18);
}
.hb-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.hb-berry { background: var(--berry); } .hb-sky { background: var(--sky); } .hb-grass { background: var(--grass); }

/* formal quote above the hero photo */
.hero-quote {
  margin: 0 0 1.4rem; max-width: 26rem; text-align: center;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem); font-weight: 800; line-height: 1.45;
  color: #1F4E8C; font-style: italic;
}
.hero-aid--left { right: auto; left: -2.6rem; top: 3rem; bottom: auto; width: clamp(8rem, 12vw, 10.5rem); transform: rotate(7deg); }
.hero-aid--left2 { right: auto; left: -1.8rem; top: auto; bottom: 4rem; width: clamp(6rem, 9vw, 8rem); transform: rotate(-6deg); }

/* flyer block */
.flyer-section { padding-top: 0; }
.flyer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 4vw, 2.6rem); align-items: center; max-width: 58rem; margin-inline: auto; }
.flyer-img { display: block; transform: rotate(-3deg); transition: transform .3s var(--ease); justify-self: center; max-width: 18rem; }
.flyer-img:hover { transform: rotate(0) scale(1.03); }
.flyer-img img { display: block; width: 100%; border: var(--line); border-radius: var(--radius-sm); box-shadow: 6px 6px 0 var(--ink); }
.flyer-text h2 { text-align: left; }
.flyer-text p { margin: 0 0 1.2rem; }
@media (max-width: 760px) { .flyer { grid-template-columns: 1fr; text-align: center; } .flyer-text h2 { text-align: center; } .flyer-text .btn-row { justify-content: center; } }
/* aid circles fully visible inside the page */
.hero-aid { right: 1rem; bottom: 1.6rem; width: clamp(6.5rem, 9vw, 8.5rem); }
.hero-aid--left { left: 1rem; right: auto; top: 2rem; bottom: auto; width: clamp(6.5rem, 9.5vw, 9rem); }
.hero-aid--left2 { left: 1.4rem; right: auto; top: auto; bottom: 2rem; width: clamp(5.5rem, 7.5vw, 7rem); }
@media (max-width: 1180px) { .hero-aid { display: none; } }

/* QR codes on Kontakt */
.qr-section { padding-top: 0; padding-bottom: 1.2rem; }
.qr-panel { max-width: 58rem; margin-inline: auto; text-align: center; }
.qr-panel > p { margin: 0 0 1.2rem; }
.qr-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2.5rem); }
.qr-item { margin: 0; display: grid; gap: 0.8rem; justify-items: center; }
.qr-item img { display: block; width: clamp(9rem, 20vw, 13rem); height: auto; border: var(--line); border-radius: var(--radius-sm); box-shadow: 4px 4px 0 var(--ink); background: #fff; }

/* yellow pill heading sized like a button (Kontakt page) */
.kicker.kicker-btn { font-size: 1.05rem; padding: 0.85rem 1.45rem; box-shadow: var(--shadow); line-height: 1.2; margin-bottom: 1rem; }
