/* ==========================================================================
   KADORANA — Concept B "Discovery World"
   The weekly schedule IS the product. Playful-but-calm, product-forward.
   Shared stylesheet for all 5 pages of /b.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (exact) */
  --sage: #D9DED2;
  --green: #7D9688;
  --terracotta: #D97A5A;
  --mustard: #D8A84B;
  --lavender: #A99BC9;
  --ink: #2D3748;

  /* Surfaces */
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --sage-soft: #E6EADF;
  --sage-deep: #CDD4C4;

  /* Soft card tints (derived washes) */
  --tint-terracotta: #F4E2DB;
  --tint-globe: #E4ECE6;
  --tint-mustard: #F5E9CF;
  --tint-lavender: #ECE6F2;
  --tint-green: #E0E8E1;

  /* Ink scale */
  --ink-soft: #55606E;
  --ink-faint: #5F6A78; /* darkened: >=4.5:1 on white (was #7A8595, 3.74:1) */

  /* Accessible TEXT tokens for small labels/accents (AA >=4.5:1 on white + own tints).
     The raw brand colors above stay for borders/icons/decorative fills. */
  --green-text: #4F6358;       /* on white ~5.2:1, on sage-soft/tint-green ~4.5:1 */
  --terracotta-text: #A8431F;  /* on white ~5.0:1, on tint-terracotta ~4.6:1 */
  --mustard-text: #7A5C0E;     /* on white ~6.0:1, on tint-mustard ~5.5:1 */
  --lavender-text: #6E5E96;    /* on white ~5.0:1, on tint-lavender ~4.6:1 */
  --terracotta-deep: #B85636;  /* band bg: white text ~4.6:1 */

  /* Type */
  --font-head: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --content: 1100px;
  --radius-card: 24px;
  --radius-btn: 14px;
  --radius-chip: 999px;

  /* Spacing */
  --section: clamp(72px, 9vw, 120px);
  --inner: 40px;
  --gap-card: 24px;
  --gap-btn: 16px;

  /* Shadows (soft, calm) */
  --shadow-sm: 0 2px 8px rgba(45, 55, 72, 0.06);
  --shadow-md: 0 10px 28px rgba(45, 55, 72, 0.10);
  --shadow-lift: 0 16px 38px rgba(45, 55, 72, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sage);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section); }
.section--sage { background: var(--sage); }
.section--soft { background: var(--sage-soft); }
.section--white { background: var(--white); }

.section-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4.6vw, 42px); }
.section-head p { color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary {
  background: var(--terracotta-deep); /* AA: white text >=4.5:1 (was raw terracotta 3.05:1) */
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #a44a2d; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary {
  background: var(--white);
  color: var(--green-text);
  border-color: var(--green);
}
.btn--secondary:hover { background: var(--tint-green); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap-btn); }

/* ==========================================================================
   HEADER / NAV  (one pattern, reused verbatim on all 5 pages)
   .site-header > .container > .nav  (.nav-brand / .nav-links / .nav-cta / .nav-toggle)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(217, 222, 210, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sage-deep);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { height: 60px; width: auto; }
.nav-brand .nav-brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 10px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--sage-soft); }
.nav-links a[aria-current="page"] {
  color: var(--green);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav-cta { display: inline-flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--sage-deep);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO  — split: text + CTAs (left) / O-U graphic (right)
   ========================================================================== */
.hero { padding-block: clamp(48px, 7vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-logo { height: 64px; width: auto; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  margin-bottom: 18px;
}
.hero-subhead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--green-text);
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-chip);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero .btn-row { margin-top: 4px; }
.hero-trust {
  margin-top: 16px;
  margin-bottom: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
}

/* O/U graphic panel (right) */
.hero-ou {
  background: transparent;
  border-radius: 0;
  padding: clamp(4px, 2vw, 16px);
  box-shadow: none;
  text-align: center;
}
.hero-ou .ou-symbol { width: clamp(140px, 20vw, 200px); margin: 0 auto 22px; }
.ou-legend {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 16px;
}
.ou-legend div { font-size: 14px; color: var(--ink-soft); }
.ou-legend .ou-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  display: block;
}
.ou-legend .ou-mark--o { color: var(--green); }
.ou-legend .ou-mark--u { color: var(--terracotta); }
.ou-note { font-size: 15px; color: var(--ink-soft); margin: 0; }
.ou-note strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   BRAND STORY
   ========================================================================== */
.story { background: var(--white); }
.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.story-aside .ou-symbol { width: 130px; }
.story-aside .eyebrow { margin-bottom: 14px; }
.story-body h2 { font-size: clamp(26px, 4vw, 38px); }
.story-body p { color: var(--ink-soft); font-size: 18px; }

/* ==========================================================================
   CLUBS — 5 EQUAL rounded tinted cards in a row (the signature section)
   .clubs-row > .club-card (interactive: hover lift + expand)
   ========================================================================== */
.clubs-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-card);
}
.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card-tint, var(--tint-green));
  border: 1px solid rgba(45, 55, 72, 0.06);
  border-top: 4px solid var(--club-accent, var(--green));
  border-radius: var(--radius-card);
  padding: 24px 22px 22px;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
/* subtle accent wash that intensifies on interaction */
.club-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--club-accent, var(--green));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.club-card:hover,
.club-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.club-card:hover::after,
.club-card:focus-visible::after { opacity: 0.06; }
.club-card > * { position: relative; z-index: 1; }
.club-card .club-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.club-card .club-icon svg { width: 28px; height: 28px; transition: transform 0.3s var(--ease); }
/* icon nudge + wiggle on hover (intent only, never idle) */
.club-card:hover .club-icon,
.club-card:focus-visible .club-icon { transform: translateY(-3px) rotate(-4deg); }
.club-card:hover .club-icon svg,
.club-card:focus-visible .club-icon svg { transform: scale(1.08); }
.club-card .club-day {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* accessible per-accent text token on its own light tint (AA >=4.5:1) */
  color: var(--club-accent-text, var(--ink));
  margin-bottom: 6px;
}
.club-card .club-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.club-card .club-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
/* expandable detail */
.club-card .club-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 14px;
  color: var(--ink-soft);
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), margin-top 0.3s var(--ease);
}
.club-card[aria-expanded="true"] .club-detail {
  max-height: 240px;
  opacity: 1;
  margin-top: 12px;
}
/* punchy kid-line revealed first inside the peek */
.club-card .club-detail .club-peek {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--club-accent-text, var(--ink)); /* AA on its own tint */
}
.club-card .club-more {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--club-accent-text, var(--ink));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.club-card .club-more::after {
  content: "\2192"; /* arrow */
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.club-card:hover .club-more::after,
.club-card:focus-visible .club-more::after { transform: translateX(4px); }
.club-card[aria-expanded="true"] .club-more::after { transform: rotate(90deg); }

/* per-card tints + accents (border/icon use --club-accent; small TEXT uses --club-accent-text, AA on tint) */
.club-card--mon { --card-tint: var(--tint-terracotta); --club-accent: var(--terracotta); --club-accent-text: var(--terracotta-text); }
.club-card--tue { --card-tint: var(--tint-globe);      --club-accent: var(--green);      --club-accent-text: var(--green-text); }
.club-card--wed { --card-tint: var(--tint-mustard);    --club-accent: var(--mustard);    --club-accent-text: var(--mustard-text); }
.club-card--thu { --card-tint: var(--tint-lavender);   --club-accent: var(--lavender);   --club-accent-text: var(--lavender-text); }
.club-card--fri { --card-tint: var(--tint-green);      --club-accent: var(--green);      --club-accent-text: var(--green-text); }

.club-card .club-icon svg { stroke-width: 2; }

/* kid-delight: "today" cue on the current weekday card (JS-set) */
.club-card .club-today {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--club-accent-text, var(--ink)); /* darker token -> white text AA */
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  box-shadow: var(--shadow-sm);
}
.club-card.is-today { border-top-width: 6px; box-shadow: var(--shadow-md); }
html.js .club-card.is-today { animation: club-today-pulse 1.1s var(--ease) 1; }
@keyframes club-today-pulse {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* ==========================================================================
   TIMELINE — horizontal connected line + time chips + tiny icons
   .timeline > .timeline-track > .timeline-step
   ========================================================================== */
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(
    to right, var(--green) 0 10px, transparent 10px 18px);
  opacity: 0.5;
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-dot {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--sage-deep);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.timeline-step:hover .timeline-dot {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}
.timeline-dot svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}
.timeline-step:hover .timeline-dot svg { transform: rotate(-6deg) scale(1.05); }
.timeline-step:hover .timeline-time { background: var(--tint-green); }
.timeline-time {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: var(--sage-soft);
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  margin-bottom: 10px;
}
.timeline-label { font-size: 14px; color: var(--ink-soft); line-height: 1.4; max-width: 18ch; }

/* energy lift: each step's dot adopts its own brand accent border (decorative, >=3:1 not required) */
.timeline-track .timeline-step:nth-child(1) .timeline-dot { border-color: var(--green); }
.timeline-track .timeline-step:nth-child(2) .timeline-dot { border-color: var(--terracotta); }
.timeline-track .timeline-step:nth-child(3) .timeline-dot { border-color: var(--mustard); }
.timeline-track .timeline-step:nth-child(4) .timeline-dot { border-color: var(--lavender); }
.timeline-track .timeline-step:nth-child(5) .timeline-dot { border-color: var(--green); }

/* ==========================================================================
   WHY + SUMMER — two-card row
   ========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-card);
  align-items: stretch;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.feature-card--accent { background: var(--green); color: var(--white); }
.feature-card--accent h3,
.feature-card--accent p { color: var(--white); }
.feature-card h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.feature-card p { color: var(--ink-soft); }
.feature-card .pillars {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feature-card .pillars li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  background: var(--sage-soft);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius-chip);
}
.summer-facts { list-style: none; margin: 0 0 20px; padding: 0; }
.summer-facts li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.summer-facts li:last-child { border-bottom: 0; }
.summer-facts .fact-k {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  min-width: 7ch;
}

/* ==========================================================================
   ENROLLMENT CTA + FORM
   ========================================================================== */
.cta-band {
  background: var(--terracotta-deep); /* deeper terracotta: white body text reaches AA */
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(26px, 4vw, 40px); }
.cta-band p { color: var(--white); max-width: 540px; margin-inline: auto; }
.cta-band .btn--primary { background: var(--white); color: var(--terracotta-text); }
.cta-band .btn--primary:hover { background: var(--sage-soft); }
.cta-band .btn--secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.cta-band .btn--secondary:hover { background: rgba(255,255,255,0.12); }

.form-wrap {
  max-width: 680px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.kad-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--sage-soft);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--green);
}
.field textarea { resize: vertical; min-height: 96px; }
.kad-form .btn--primary { justify-self: start; }

/* contact info list (Контакти page reuse) */
.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-k {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-text);
  min-width: 9ch;
}

/* ==========================================================================
   FOOTER  (one pattern, reused verbatim)
   .site-footer > .container > .footer-grid + .footer-base
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #D7DCE2;
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { color: #9AA4B2; font-size: 15px; max-width: 34ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #B6BFCC; text-decoration: none; font-size: 15px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-base {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 14px;
  color: #98A2B0; /* AA on --ink (was #8C97A5, 4.04:1) */
}

/* ==========================================================================
   THANKS PAGE
   ========================================================================== */
.thanks-main {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}
.thanks-card {
  background: var(--white);
  border-radius: 32px;
  padding: clamp(36px, 6vw, 64px);
  box-shadow: var(--shadow-md);
  max-width: 540px;
}
.thanks-card .ou-symbol { width: 96px; margin: 0 auto 22px; }
.thanks-card h1 { font-size: clamp(32px, 5vw, 48px); }
.thanks-card p { color: var(--ink-soft); font-size: 19px; }
.thanks-card .thanks-next { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }

/* ==========================================================================
   KID-DELIGHT MICRO-INTERACTIONS  (premium + playful, motion-on-intent only)
   ========================================================================== */

/* energetic kid-facing micro-copy chip */
.kid-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--terracotta-text);
  background: var(--tint-terracotta);
  padding: 7px 16px;
  border-radius: var(--radius-chip);
  margin-bottom: 14px;
}
.kid-cue::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}
.kid-cue--mustard { color: var(--mustard-text); background: var(--tint-mustard); }
.kid-cue--mustard::before { background: var(--mustard); }
.kid-cue--green { color: var(--green-text); background: var(--tint-green); }
.kid-cue--green::before { background: var(--green); }
.kid-cue--cta { color: var(--white); background: rgba(255,255,255,0.18); }
.kid-cue--cta::before { background: var(--white); }

/* animated underline on text links (intent-only) */
.link-anim {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.link-anim::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.link-anim:hover::before,
.link-anim:focus-visible::before { transform: scaleX(1); }
.link-anim::after {
  content: "\2192";
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.link-anim:hover::after,
.link-anim:focus-visible::after { transform: translateX(4px); }

/* primary CTA gets a friendly arrow that nudges on hover */
.btn--primary::after {
  content: "\2192";
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn--primary:hover::after { transform: translateX(4px); }
/* keep nav + form-submit buttons clean (no arrow there) */
.nav-cta .btn--primary::after,
.kad-form .btn--primary::after { content: none; }

/* O/U squiggle draws itself in on load (inline SVG stroke animation).
   Targets ONLY inline .ou-anim copies (identical to the approved graphic);
   the <img> O/U everywhere else is untouched. */
html.js .ou-anim.ou-draw [stroke] {
  stroke-dasharray: var(--ou-len, 700);
  stroke-dashoffset: var(--ou-len, 700);
  animation: ou-draw 1.5s var(--ease) forwards;
}
html.js .ou-anim.ou-draw ellipse[stroke] { animation-delay: 0.1s; }
html.js .ou-anim.ou-draw path[stroke] { animation-delay: 0.5s; }
@keyframes ou-draw { to { stroke-dashoffset: 0; } }

/* "ден на откритието" rotator — quiet text swap, no clutter */
.day-rotator {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-text);
  transition: opacity 0.28s var(--ease);
}

/* subtle, classy celebratory cue on thanks page (NO confetti) */
.thanks-card .ou-symbol { transition: transform 0.6s var(--ease); }
html.js .thanks-card.celebrate .ou-symbol {
  animation: thanks-pop 0.9s var(--ease) both;
}
@keyframes thanks-pop {
  0%   { transform: scale(0.66) rotate(-10deg); opacity: 0; }
  55%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
  78%  { transform: scale(0.97) rotate(-1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
/* Gated on JS: without JS the content stays visible (fail-safe). */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ou { order: -1; max-width: 460px; margin-inline: auto; }
  .story-grid { grid-template-columns: 1fr; }
  .clubs-row { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* mobile nav */
  .nav-toggle { display: flex; }
  .nav-links,
  .nav-cta {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--sage);
    border-bottom: 1px solid var(--sage-deep);
    padding: 14px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav-cta { top: auto; box-shadow: none; border-bottom: 0; padding-top: 0; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta .btn { width: 100%; }
  .nav-links[hidden],
  .nav-cta[hidden] { display: none; }
  .site-header { position: relative; }

  /* clubs become horizontal scroll carousel */
  .clubs-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .club-card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }

  /* timeline becomes vertical */
  .timeline-track { grid-template-columns: 1fr; gap: 4px; }
  .timeline-track::before {
    top: 0; bottom: 0; left: 28px; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(to bottom, var(--green) 0 10px, transparent 10px 18px);
  }
  .timeline-step {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
  }
  .timeline-dot { margin-bottom: 0; flex-shrink: 0; }
  .timeline-time { margin-bottom: 0; }
  .timeline-label { max-width: none; }
  .timeline-meta { display: flex; flex-direction: column; gap: 4px; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .hero .btn-row { flex-direction: column; }
  .ou-legend { gap: 24px; }
}

/* ==========================================================================
   REDUCED MOTION GUARD
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
