/* =====================================================================
   Isha Pre School — site styles
   Palette is taken from the school logo. Each class has its own colour:
   Play Group pink, Nursery gold, LKG green, UKG blue, Daycare red.
   ===================================================================== */

:root {
  --paper: #F8F2F2;        /* the logo's own background */
  --surface: #FFFFFF;
  --ink: #1B2B4B;
  --ink-soft: #4B5874;
  --line: #E8DCDC;

  --red: #E4513B;   --red-shade: #B23A26;   --red-tint: #FBE3DE;
  --gold: #F4B32A;  --gold-shade: #C98A0E;  --gold-tint: #FDF0CF;
  --pink: #EE8FA4;  --pink-shade: #C9637A;  --pink-tint: #FCE4EA;
  --blue: #2459A8;  --blue-shade: #173E7A;  --blue-tint: #DFE8F6;
  --green: #3A9358; --green-shade: #26693D; --green-tint: #DDEFE3;
  --sky: #7FA6DA;   --sky-shade: #4E78B1;

  --btn: #CF4430;  --btn-edge: #9E2F1E;

  --font: "Baloo Tamma 2", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Segoe Print", cursive;

  --wrap: 1160px;
  --gutter: 20px;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-shade); }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.2rem); margin-bottom: .25em; }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.nowrap { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
.hand { font-family: var(--hand); font-weight: 400; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ------------------------------------------------------------- buttons
   Pill buttons with a round icon "chip" and a soft glow in their own colour. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 46px; padding: 5px 22px 3px;
  border: 0; border-radius: 999px;
  font-family: var(--font); font-size: 1.0625rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease, background-color .2s ease;
}
.btn--icon { padding-left: 6px; padding-right: 22px; }
.btn__chip {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-top: -2px; border-radius: 50%;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.btn__chip .ico { width: 18px; height: 18px; }
.btn:hover .btn__chip { transform: rotate(-12deg) scale(1.08); }
.btn:active { transform: scale(.96); }

.btn--primary {
  background: var(--btn); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(207, 68, 48, .9), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.btn--primary:hover { color: #fff; background: #C23A27; box-shadow: 0 14px 26px -12px rgba(207, 68, 48, 1), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn--primary .btn__chip { background: #fff; color: var(--btn); }

.btn--ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line), 0 12px 24px -18px rgba(27, 43, 75, .6);
}
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px #D9CACA, 0 16px 28px -18px rgba(27, 43, 75, .7); }
.btn__chip--green { background: var(--green); color: #fff; }
.btn__chip--blue { background: var(--blue); color: #fff; }
.btn__chip--pink { background: var(--pink); color: #fff; }
.btn__chip--gold { background: var(--gold); color: var(--ink); }

.btn--sm { min-height: 40px; font-size: .97rem; padding-top: 4px; padding-bottom: 2px; }
.btn--sm.btn--icon { padding-left: 5px; padding-right: 17px; }
.btn--sm .btn__chip { width: 30px; height: 30px; }
.btn--sm .btn__chip .ico { width: 16px; height: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* -------------------------------------------------------------- topbar */
.topbar { background: var(--ink); color: #fff; font-size: .95rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding-block: 6px; }
.topbar p { margin: 0; }
.topbar a { color: #FFD772; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar strong { font-weight: 700; }
.topbar__links { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.topbar .topbar__admin { color: #C9D3E6; font-weight: 500; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.topbar .topbar__admin:hover { color: #fff; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 242, 242, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 68px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.nav-list {
  display: flex; gap: 2px; padding: 5px;
  background: var(--surface); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px -18px rgba(27, 43, 75, .45);
}
.nav-list li:nth-child(1) { --tint: var(--pink-tint);  --tc: var(--pink-shade); }
.nav-list li:nth-child(2) { --tint: var(--gold-tint);  --tc: var(--gold-shade); }
.nav-list li:nth-child(3) { --tint: var(--green-tint); --tc: var(--green-shade); }
.nav-list li:nth-child(4) { --tint: var(--blue-tint);  --tc: var(--blue); }
.nav-list li:nth-child(5) { --tint: var(--red-tint);   --tc: var(--red-shade); }
.nav-list li:nth-child(6) { --tint: #E4EDFA;           --tc: var(--sky-shade); }
.nav-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px 6px; border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nav-list a:hover, .nav-list a.is-active { background: var(--tint); color: var(--tc); }
.nav-ico { display: none; }
.menu-btn { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1240px) and (min-width: 921px) {
  .nav-wa.btn--icon { padding: 5px; }
  .nav-wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(14px, 2.4vh, 30px) 0 clamp(26px, 4vh, 44px); }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; column-gap: clamp(32px, 5vw, 72px);
  grid-template-areas: "text photos"; align-items: center;
}
.hero__text { grid-area: text; }
.hero__photos { grid-area: photos; }
.hero__name { display: flex; flex-direction: column; gap: 0; margin: 0 0 .2em; line-height: 1.15; }
.hero__name-kn { font-size: 1.6rem; font-weight: 700; color: var(--green-shade); }
.hero__name-en { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.hero__place { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.hero__title { position: relative; margin: 0 0 .32em; font-size: clamp(2.9rem, min(1.4rem + 6vw, 9.4vh), 6.2rem); line-height: .8; padding-top: .3em; }
.hero__lede { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); max-width: 32em; color: var(--ink-soft); margin-bottom: .7em; }

.crown {
  position: absolute; left: -.04em; top: 0;
  width: .62em; height: auto;
  transform: rotate(-14deg); transform-origin: 50% 100%;
  animation: crown-in .7s cubic-bezier(.34, 1.56, .64, 1) 1.45s both;
}

.facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0; }
.facts div { padding: 2px 22px 2px 0; margin-right: 22px; border-right: 2px dashed var(--line); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.15rem; }

.hero__photos { position: relative; padding-bottom: 34px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--main { width: min(84%, calc((100vh - 230px) * .93)); min-width: 260px; margin-left: auto; aspect-ratio: 759 / 820; border-radius: 40px 40px 40px 140px; overflow: hidden; }
.photo--small {
  position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4;
  border: 8px solid var(--surface); border-radius: 26px; overflow: hidden;
  transform: rotate(-5deg); box-shadow: 0 18px 40px -18px rgba(27, 43, 75, .45);
}
.hero__note { position: absolute; right: 2%; bottom: -6px; margin: 0; font-size: 1.25rem; color: var(--ink-soft); transform: rotate(-3deg); }

.doodle { position: absolute; pointer-events: none; }
.doodle--cloud { width: 150px; left: 47%; top: 22px; color: var(--sky); opacity: .9; }

/* ------------------------------------------- magnet letters (signature) */
.magnets { display: block; }
.magnets .word { display: block; white-space: nowrap; }
.magnets .m {
  --r: 0deg; --y: 0em; --n: 0; --w: 0ms;
  display: inline-block;
  margin-right: .015em;
  color: var(--c);
  text-shadow: 0 .045em 0 var(--cs), 0 .1em .12em rgba(27, 43, 75, .16);
  transform: translateY(var(--y)) rotate(var(--r));
  animation: magnet-drop .6s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--w) + var(--n) * 55ms);
}
.m.c0 { --c: var(--red);   --cs: var(--red-shade); }
.m.c1 { --c: var(--gold);  --cs: var(--gold-shade); }
.m.c2 { --c: var(--pink);  --cs: var(--pink-shade); }
.m.c3 { --c: var(--blue);  --cs: var(--blue-shade); }
.m.c4 { --c: var(--green); --cs: var(--green-shade); }
.m.c5 { --c: var(--sky);   --cs: var(--sky-shade); }
.magnets .m:nth-child(4n+1) { --r: -5deg; }
.magnets .m:nth-child(4n+2) { --r: 3deg; --y: -.03em; }
.magnets .m:nth-child(4n+3) { --r: -2deg; --y: .02em; }
.magnets .m:nth-child(4n)   { --r: 5deg; --y: -.02em; }
.magnets .m:nth-child(1) { --n: 1; } .magnets .m:nth-child(2) { --n: 2; } .magnets .m:nth-child(3) { --n: 3; }
.magnets .m:nth-child(4) { --n: 4; } .magnets .m:nth-child(5) { --n: 5; } .magnets .m:nth-child(6) { --n: 6; }
.magnets .m:nth-child(7) { --n: 7; } .magnets .m:nth-child(8) { --n: 8; } .magnets .m:nth-child(9) { --n: 9; }
.magnets .word:nth-child(2) .m { --w: 420ms; }
.magnets .word:nth-child(3) .m { --w: 760ms; }
.magnets--hero .m:nth-child(1) { margin-left: 0; }

@keyframes magnet-drop {
  from { opacity: 0; transform: translateY(-.55em) rotate(calc(var(--r) - 28deg)); }
  to   { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
}
@keyframes crown-in {
  from { opacity: 0; transform: translateY(-.4em) rotate(-40deg); }
  to   { opacity: 1; transform: rotate(-14deg); }
}
@keyframes wiggle {
  0%, 100% { transform: translateY(var(--y)) rotate(var(--r)); }
  30% { transform: translateY(calc(var(--y) - .06em)) rotate(calc(var(--r) - 9deg)); }
  65% { transform: translateY(var(--y)) rotate(calc(var(--r) + 7deg)); }
}
@media (hover: hover) and (pointer: fine) {
  .magnets--hero .m:hover { animation: wiggle .45s ease-in-out; }
}

/* ------------------------------------------------------------- sections */
.section { padding-block: clamp(30px, 3.6vw, 50px); }
.section-head { max-width: 780px; margin-bottom: clamp(14px, 1.8vw, 22px); }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* --------------------------------------------------------------- about */
.about { background: var(--surface); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.about__photo img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.about__photo figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 1.15rem; }
.about__text { max-width: 34em; }
.about__text > p { font-size: 1.06rem; }
.signatures { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; margin: .2em 0 1.4em; }
.person { display: flex; align-items: center; gap: 14px; }
.person__photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold, #F4B32A), 0 6px 16px rgba(30, 42, 74, .15); flex: none; }
.about__text .signature { font-size: 2rem; line-height: 1.1; margin: 0; color: var(--ink); }
.about__text .signature span { display: block; font-family: var(--font); font-size: 1rem; color: var(--ink-soft); margin-top: .35em; }
.about__subhead { font-size: 1.2rem; margin-bottom: .6em; }
.seen li { position: relative; padding-left: 1.6em; margin-bottom: .35em; }
.seen li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: .7em; height: .7em; border-radius: 50%;
  background: var(--dot, var(--ink));
}
.dot-red { --dot: var(--red); } .dot-gold { --dot: var(--gold); } .dot-green { --dot: var(--green); }
.dot-blue { --dot: var(--blue); } .dot-pink { --dot: var(--pink); }

/* ------------------------------------------------------------- classes */
.tint-pink  { --tile: var(--pink);  --tile-shade: var(--pink-shade);  --tile-tint: var(--pink-tint); }
.tint-gold  { --tile: var(--gold);  --tile-shade: var(--gold-shade);  --tile-tint: var(--gold-tint); }
.tint-green { --tile: var(--green); --tile-shade: var(--green-shade); --tile-tint: var(--green-tint); }
.tint-blue  { --tile: var(--blue);  --tile-shade: var(--blue-shade);  --tile-tint: var(--blue-tint); }
.tint-red   { --tile: var(--red);   --tile-shade: var(--red-shade);   --tile-tint: var(--red-tint); }

.class-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.class-tile { display: flex; flex-direction: column; background: var(--tile-tint); border-radius: var(--radius-lg); padding: 18px 18px 20px; }
.class-tile__head { min-height: 64px; display: flex; align-items: flex-end; margin-bottom: 12px; }
.class-tile .class-tile__age { display: flex; align-items: flex-end; gap: .4em; margin: 0; }
.magnets--age { display: inline-block; font-size: 3.5rem; font-weight: 800; line-height: .9; }
.magnets--age .word { display: inline; }
.magnets--age .m { --c: var(--tile); --cs: var(--tile-shade); animation: none; }
.class-tile__years { font-weight: 700; color: var(--tile-shade); padding-bottom: .3em; line-height: 1.15; }
.class-tile__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; transform: rotate(-6deg);
  background: var(--tile); color: #fff; box-shadow: 0 5px 0 var(--tile-shade);
}
.class-tile__icon .ico { width: 30px; height: 30px; }
.class-tile h3 { font-size: 1.55rem; margin: 0; }
.class-tile p { margin: 0; color: var(--ink); }
.class-tile .class-tile__sub { font-size: .92rem; font-weight: 700; color: var(--tile-shade); margin-top: 2px; }
.class-tile .class-tile__blurb { margin: 8px 0 14px; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.class-tile__points { display: grid; gap: 7px; padding-top: 14px; border-top: 2px dashed rgba(27, 43, 75, .12); }
.class-tile__points li { display: flex; gap: 9px; align-items: flex-start; font-size: .97rem; line-height: 1.35; }
.class-tile__points .ico {
  flex: none; width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%;
  background: var(--tile); color: #fff; stroke-width: 3;
}
.tint-gold .class-tile__points .ico, .tint-pink .class-tile__points .ico { color: var(--ink); }

.tuition {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 18px; padding: 20px 24px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--blue-tint);
}
.tuition__icon {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; transform: rotate(-6deg);
  background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-shade);
}
.tuition__icon .ico { width: 28px; height: 28px; }
.tuition__text { flex: 1 1 320px; }
.tuition h3 { font-size: 1.35rem; margin-bottom: 2px; }
.tuition__for { display: inline-block; margin-left: 8px; padding: 2px 10px 0; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: .85rem; font-weight: 700; vertical-align: middle; }
.tuition p { margin: 0; color: var(--ink-soft); }
.tuition p strong { color: var(--ink); }

/* ------------------------------------------------------------ features */
.features { background: var(--surface); }
.tint-sky { --tile: var(--sky); --tile-shade: var(--sky-shade); --tile-tint: #E4EDFA; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon {
  display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 20px;
  background: var(--tile-tint); color: var(--tile-shade); transform: rotate(-5deg);
  box-shadow: inset 0 0 0 2px var(--tile);
}
.feature:nth-child(even) .feature__icon { transform: rotate(5deg); }
.feature__icon .ico { width: 30px; height: 30px; }
.feature h3 { font-size: 1.25rem; margin: 4px 0 4px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }

/* ---------------------------------------------------------------- join */
.join { padding: clamp(20px, 3vw, 36px) 0 0; }
.join__panel {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px 48px; align-items: center;
  padding: clamp(22px, 3.2vw, 40px); border-radius: 32px; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 179, 42, .28) 0 120px, transparent 121px),
    radial-gradient(circle at 0% 100%, rgba(238, 143, 164, .25) 0 140px, transparent 141px),
    var(--ink);
}
.join__crown { position: absolute; width: 64px; top: 22px; right: 26px; transform: rotate(14deg); }
.join h2 { color: #fff; margin-bottom: .3em; }
.join__intro > p { color: #C9D3E6; font-size: 1.15rem; max-width: 28em; }
.join__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.join__actions .btn--ghost { box-shadow: none; }
.join__list { display: grid; gap: 12px; }
.join__list li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 600; }
.join__tick {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
}
.join__tick .ico { width: 17px; height: 17px; stroke-width: 3; }

.gallery { background: var(--surface); }
.day.section { padding-block: clamp(32px, 4vw, 52px); }
.day .section-head { margin-bottom: 4px; }
.day h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); margin-bottom: .15em; }
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 18px 0 0; }
.timeline li::before {
  content: ""; display: block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 5px solid var(--gold); margin: 34px 0 18px; position: relative; z-index: 1;
}
.timeline li::after {
  content: ""; position: absolute; left: 11px; right: 0; top: 44px; border-top: 3px dashed var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li:nth-child(6)::after { border-top-style: dotted; border-top-color: var(--red); }
.timeline li:nth-child(1)::before, .timeline li:nth-child(6)::before { border-color: var(--blue); }
.timeline__daycare::before { border-color: var(--red) !important; }
.timeline--icons li::before { display: none; }
.timeline--icons li::after { top: 60px; left: 30px; }
.timeline__ico {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 30px 0 14px; border-radius: 20px;
  position: relative; z-index: 1; background: var(--tile-tint); color: var(--tile-shade);
  box-shadow: inset 0 0 0 2.5px var(--tile); transform: rotate(-5deg);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.timeline--icons li:nth-child(even) .timeline__ico { transform: rotate(5deg); }
.timeline--icons li:hover .timeline__ico { transform: rotate(0) scale(1.08); }
.timeline__ico .ico { width: 30px; height: 30px; }
.timeline__time { position: absolute; top: 0; left: 0; font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.timeline__daycare .timeline__time { color: var(--red); }
.timeline h3 { font-size: 1.2rem; margin-bottom: .3em; }
.timeline p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------- gallery */
.albums { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 14px 10px; }
@media (max-width: 1180px) { .albums { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 920px) { .albums { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.album {
  display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.album__img {
  position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--line);
  box-shadow: 5px -5px 0 -1px var(--surface), 5px -5px 0 0 var(--line), 0 8px 18px -12px rgba(27, 43, 75, .6);
  margin: 5px 5px 0 0;
}
.album__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.album__count {
  position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px 1px 5px; border-radius: 999px; background: rgba(27, 43, 75, .78); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1.3;
}
.album__count .ico { width: 11px; height: 11px; }
.album:hover .album__img img { transform: scale(1.06); }
.album:focus-visible .album__img { outline: 3px solid var(--blue); outline-offset: 2px; }
.album__title { margin-top: 6px; font-weight: 700; font-size: .84rem; line-height: 1.18; }
.album__meta { font-size: .72rem; color: var(--ink-soft); line-height: 1.3; }
.gallery-more, .menu-contact { display: none; }
.gallery-more[hidden] { display: none !important; }
.empty { padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius); }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; color: #fff; background: rgba(16, 24, 44, .97);
}
.lightbox, .albums { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lightbox img, .album img { -webkit-user-drag: none; }
.lightbox::backdrop { background: rgba(16, 24, 44, .94); }
.lightbox[open] { display: flex; flex-direction: column; animation: pop .2s ease-out; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; }
.lightbox__title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.lightbox__title span { color: #C9D3E6; font-size: .92rem; margin-left: 8px; white-space: nowrap; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 76px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; }
.lightbox__btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__strip {
  display: flex; gap: 8px; overflow-x: auto; justify-content: safe center;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); scrollbar-width: thin;
}
.lightbox__thumb {
  flex: none; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: #2A3554; opacity: .5; cursor: pointer; transition: opacity .15s ease;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb.is-on { opacity: 1; outline: 3px solid var(--gold); outline-offset: 2px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__strip { display: none; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------- admissions */
.admissions__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.admissions__info > p { font-size: 1.08rem; color: var(--ink-soft); }
.steps { counter-reset: step; margin: 20px 0 22px; }
.steps li { position: relative; counter-increment: step; padding: 0 0 16px 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--blue);
  box-shadow: 0 3px 0 var(--blue-shade); padding-top: 3px;
}
.steps li:nth-child(2)::before { background: var(--green); box-shadow: 0 3px 0 var(--green-shade); }
.steps li:nth-child(3)::before { background: var(--gold); box-shadow: 0 3px 0 var(--gold-shade); color: var(--ink); }
.steps li:nth-child(4)::before { background: var(--red); box-shadow: 0 3px 0 var(--red-shade); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; border-left: 3px dashed var(--line); }
.steps h3 { font-size: 1.15rem; margin-bottom: .1em; }
.steps p { margin: 0; color: var(--ink-soft); }

.admissions__facts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: stretch; }
.ages { width: 100%; border-collapse: collapse; margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.ages caption { text-align: left; font-weight: 700; font-size: 1rem; padding-bottom: 6px; }
.ages th, .ages td { text-align: left; padding: 8px 12px 6px 14px; border-bottom: 2px solid var(--paper); font-size: .98rem; white-space: nowrap; }
.ages tr:last-child th, .ages tr:last-child td { border-bottom: 0; }
.ages th { font-weight: 700; }
.ages td { color: var(--ink-soft); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .6em; vertical-align: .05em; }
.dot-pink.dot { background: var(--pink); } .dot-gold.dot { background: var(--gold); }
.dot-green.dot { background: var(--green); } .dot-blue.dot { background: var(--blue); }

.fees { align-self: end; padding: 16px 18px; border-radius: var(--radius); border: 2px dashed var(--gold); background: var(--gold-tint); }
.fees h3 { font-size: 1.1rem; margin-bottom: .2em; }
.fees p { margin: 0; font-size: .97rem; line-height: 1.45; }
.fees__links { margin-top: .6em !important; display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; }

.form-card {
  position: relative; background: var(--surface); border-radius: 30px; overflow: hidden;
  box-shadow: 0 30px 60px -32px rgba(27, 43, 75, .45), 0 0 0 1px var(--line);
}
.form-card__head {
  position: relative; padding: 26px 120px 26px 30px; color: #fff;
  background:
    radial-gradient(circle at 92% 120%, rgba(244, 179, 42, .35) 0 60px, transparent 61px),
    radial-gradient(circle at 70% -40%, rgba(127, 166, 218, .35) 0 70px, transparent 71px),
    var(--ink);
}
.form-card__head::after {
  /* the logo's colours as a little ribbon under the header */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--gold) 20% 40%, var(--pink) 40% 60%, var(--green) 60% 80%, var(--sky) 80%);
}
.form-card__crown { width: 34px; height: auto; display: block; margin-bottom: 6px; transform: rotate(-10deg); }
.form-card__head h3 { font-size: 1.7rem; font-weight: 800; line-height: 1.1; margin-bottom: 4px; color: #fff; }
.form-card__head p { margin: 0; color: #C9D3E6; font-size: 1rem; }
.form-card__sticker {
  position: absolute; right: 20px; top: 50%; width: 92px; height: 92px; margin-top: -46px;
  display: grid; place-content: center; text-align: center; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.05;
  transform: rotate(10deg); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
  outline: 2px dashed rgba(27, 43, 75, .35); outline-offset: -7px;
}
.form-card__sticker b { font-size: .95rem; font-weight: 800; }
.form-card__body { padding: 22px 30px 26px; }
.form-card__done h3 { font-size: 1.5rem; margin-bottom: .4em; color: var(--green-shade); }
.form-card__done:focus { outline: none; }

.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; padding: 0; color: var(--ink); }
.opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #F6F0F0; border: 1.5px solid transparent; border-radius: 14px;
  padding: 10px 14px 7px; min-height: 46px;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #A99C9C; }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 89, 168, .12); }
.input-ico { position: relative; }
.input-ico .ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #8C8098; pointer-events: none; }
.input-ico input { padding-left: 42px; }
.input-ico:focus-within .ico { color: var(--blue); }
.field__error { color: var(--red-shade); font-weight: 600; font-size: .9rem; margin: 4px 0 0; }
.field__error:empty { display: none; }
.has-error input { border-color: var(--red); background: #FFF6F4; }
.age-hint { margin: -4px 0 14px; padding: 8px 12px; border-radius: 12px; background: var(--green-tint); color: var(--green-shade); font-weight: 600; font-size: .95rem; }
.age-hint:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 14px 3px 11px; border-radius: 999px;
  background: #F6F0F0; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.chip span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--chip, var(--ink-soft)); flex: none; margin-top: -2px; }
.chip:hover span { border-color: var(--line); }
.chip input:checked + span { background: var(--chip, var(--ink)); color: var(--chip-ink, #fff); transform: scale(1.03); }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip--playgroup { --chip: var(--pink); --chip-ink: var(--ink); }
.chip--nursery { --chip: var(--gold); --chip-ink: var(--ink); }
.chip--lkg { --chip: var(--green); }
.chip--ukg { --chip: var(--blue); }
.chip--daycare { --chip: var(--red); }
.chip--not-sure { --chip: #9AA3B5; }

.check { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 14px 8px; border-radius: 14px; background: #F6F0F0; cursor: pointer; transition: background-color .15s ease; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check__box {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px;
  background: #fff; box-shadow: inset 0 0 0 2px #CFC2C2; color: transparent; transition: background-color .15s ease, color .15s ease;
}
.check__box .ico { width: 16px; height: 16px; stroke-width: 3; }
.check__text { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.check__text .ico { width: 20px; height: 20px; color: var(--gold-shade); }
.check input:checked ~ .check__box { background: var(--gold); box-shadow: none; color: var(--ink); }
.check:has(input:checked) { background: var(--gold-tint); }
.check input:focus-visible ~ .check__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip--tuition { --chip: var(--sky); --chip-ink: var(--ink); }
.more-fields { margin: 0 0 16px; border-radius: 14px; background: #FBF8F8; box-shadow: inset 0 0 0 1.5px var(--line); }
.more-fields summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px 9px; font-weight: 700; font-size: .95rem; color: var(--blue);
}
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary::before {
  content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue); font-size: 1.1rem; line-height: 1; padding-top: 2px; flex: none;
}
.more-fields[open] summary::before { content: "–"; }
.more-fields > .field { padding: 0 14px; }
.more-fields > .field:last-child { padding-bottom: 14px; margin-bottom: 0; }

.form-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.form-or::before, .form-or::after { content: ""; flex: 1; border-top: 1.5px solid var(--line); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-shade); font-weight: 600; margin: 0 0 12px; }
.form-error:empty { display: none; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ----------------------------------------------------------------- faq */
.faq { background: var(--surface); }
.faq h2 { margin-bottom: .5em; }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-items: start; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 11px 0 9px; font-weight: 700; font-size: 1.04rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-shade); font-size: 1.2rem; line-height: 1; padding-top: 3px;
}
.faq details[open] summary::after { content: "–"; background: var(--gold); color: var(--ink); }
.faq details p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 12px; max-width: 42em; }

/* ------------------------------------------------------------- contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.contact__left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.map { height: 240px; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -22px rgba(27, 43, 75, .5); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact__info { flex: 1; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.contact address { font-size: 1rem; line-height: 1.45; margin: 0 0 10px; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; padding: 10px 0 12px; border-block: 1.5px dashed var(--line); }
.contact-list li { display: flex; flex-direction: column; min-width: 0; font-size: .95rem; line-height: 1.3; }
.contact-list li span { color: var(--ink-soft); font-weight: 600; font-size: .8rem; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact__actions { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px; margin-top: 12px; }
.contact__actions .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .contact__actions { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .contact__actions .btn { justify-content: flex-start; }
}
.front-photo { display: flex; flex-direction: column; min-height: 0; }
.front-photo img { flex: 1 1 auto; width: 100%; height: 0; min-height: 300px; border-radius: var(--radius-lg); object-fit: cover; object-position: 50% 30%; }
.contact__right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.front-photo { flex: 1 1 auto; margin: 0; }
.qr-card { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.qr-card img { width: 124px; height: 124px; flex: none; padding: 6px; background: #fff; border-radius: 10px; }
.qr-card span { color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.qr-card strong { display: block; color: var(--ink); font-size: 1.1rem; }
@media (max-width: 760px) { .qr-card { display: none; } }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #E8ECF5; padding: 22px 0 14px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FFD772; }
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.3; }
.site-footer__brand img { width: 64px; background: var(--paper); border-radius: 14px; padding: 5px 6px; }
.site-footer__brand span { color: #C9D3E6; font-size: .9rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer nav a { text-decoration: none; font-weight: 600; }
.site-footer__contact { margin: 0; line-height: 1.5; text-align: right; }
.site-footer__base { margin-top: 12px; font-size: .82rem; color: #9FAAC2; }
.site-footer__base p { margin: 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ------------------------------------------------- mobile action bar */
.action-bar { display: none; }

/* ========================================================== responsive */
@media (max-width: 1100px) {
  .nav-list a { padding-inline: 11px; font-size: .95rem; }
}
@media (max-width: 1060px) {
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
  .timeline li:nth-child(4)::after { display: none; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .join__panel { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .menu-btn {
    display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
    background: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 22px -12px rgba(27, 43, 75, .8);
    transition: transform .2s ease, background-color .2s ease;
  }
  .menu-btn:active { transform: scale(.92); }
  .menu-btn__icon { position: relative; width: 22px; height: 16px; }
  .menu-btn__icon i {
    position: absolute; left: 0; height: 3px; border-radius: 3px;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease, width .25s ease, top .25s ease, background-color .2s ease;
  }
  .menu-btn__icon i:nth-child(1) { top: 0; width: 22px; background: var(--gold); }
  .menu-btn__icon i:nth-child(2) { top: 6.5px; width: 15px; background: var(--pink); }
  .menu-btn__icon i:nth-child(3) { top: 13px; width: 19px; background: var(--sky); }
  .menu-btn[aria-expanded="true"] { background: var(--btn); }
  .menu-btn[aria-expanded="true"] .menu-btn__icon i { background: #fff; width: 22px; top: 6.5px; }
  .menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(1) { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(3) { transform: rotate(-45deg); }

  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, 72px); bottom: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper);
    padding: 14px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 0; margin-bottom: 16px; background: none; box-shadow: none; border-radius: 0;
  }
  .nav-list a {
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px;
    min-height: 108px; padding: 14px 16px 12px; border-radius: 24px;
    background: var(--tint); color: var(--ink); font-size: 1.2rem; white-space: normal; line-height: 1.15;
  }
  .nav-list a:hover, .nav-list a.is-active { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 2px var(--tc); }
  .nav-ico {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface); color: var(--tc); box-shadow: 0 6px 14px -8px rgba(27, 43, 75, .5);
  }
  .nav-ico .ico { width: 22px; height: 22px; }
  .site-nav.is-open .nav-list li { animation: tile-in .42s cubic-bezier(.34, 1.56, .64, 1) both; }
  .site-nav.is-open .nav-list li:nth-child(2) { animation-delay: 40ms; }
  .site-nav.is-open .nav-list li:nth-child(3) { animation-delay: 80ms; }
  .site-nav.is-open .nav-list li:nth-child(4) { animation-delay: 120ms; }
  .site-nav.is-open .nav-list li:nth-child(5) { animation-delay: 160ms; }
  .site-nav.is-open .nav-list li:nth-child(6) { animation-delay: 200ms; }
  .site-nav.is-open .nav-actions, .site-nav.is-open .menu-contact { animation: tile-in .42s cubic-bezier(.34, 1.56, .64, 1) 240ms both; }
  @keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
  .nav-actions { display: block; }
  .nav-wa { display: none; }
  .nav-book.btn--sm { width: 100%; min-height: 50px; font-size: 1.1rem; padding-left: 7px; }
  .nav-book.btn--sm .btn__chip { width: 36px; height: 36px; }
  .menu-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .menu-contact .btn { padding-right: 16px; }
  html.menu-open { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "text" "photos"; row-gap: 28px; }
  .about__grid, .admissions__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__photos { max-width: 560px; }
  .doodle--cloud { left: auto; right: 6%; top: 10px; width: 110px; }
  .doodle--squiggle { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .front-photo img { height: auto; min-height: 0; aspect-ratio: 16 / 11; flex: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; padding-bottom: 84px; }
  .topbar { font-size: .875rem; }
  .topbar__in { justify-content: center; text-align: center; }
  .topbar__phone { display: none; }
  .topbar .topbar__admin { border-left: 0; padding-left: 0; font-size: .85rem; }
  .topbar__in { gap: 0 10px; flex-wrap: wrap; padding-block: 4px; }
  .site-header__in { min-height: 72px; }
  .brand img { height: 56px; }
  .hero { padding-top: 22px; }
  .hero__name-kn { font-size: 1.6rem; }
  .hero__name-en { font-size: 1.2rem; }
  .hero__place { font-size: 1rem; }
  .hero__title { font-size: clamp(3.1rem, 18vw, 4.9rem); }
  .hero__lede { font-size: 1.1rem; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: var(--radius); padding: 12px 4px 10px; }
  .facts div { margin: 0; padding: 0 10px; border-right: 2px dashed var(--line); }
  .facts dt { font-size: .82rem; }
  .facts dd { font-size: .98rem; line-height: 1.25; }
  .hero__photos { padding-bottom: 34px; }
  .hero__note { font-size: 1.1rem; }

  .class-grid { grid-template-columns: 1fr; gap: 14px; }
  .class-tile { padding: 20px 18px 20px; }
  .class-tile__head { min-height: 0; margin-bottom: 10px; }
  .magnets--age { font-size: 3rem; }
  .class-tile__icon { width: 50px; height: 50px; border-radius: 16px; }
  .class-tile h3 { font-size: 1.4rem; }
  .class-tile__points { gap: 6px; padding-top: 12px; }
  .tuition { padding: 18px; gap: 14px; }
  .tuition .btn { width: 100%; }
  .tuition__for { display: table; margin: 4px 0 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature { gap: 14px; }
  .feature__icon { width: 52px; height: 52px; border-radius: 17px; }
  .feature__icon .ico { width: 26px; height: 26px; }
  .join__panel { border-radius: 28px; padding: 26px 20px 24px; }
  .join__crown { width: 48px; top: 16px; right: 18px; }
  .join h2 { padding-right: 52px; }
  .join__actions .btn { flex: 1 1 100%; }
  .join__list li { font-size: 1.02rem; }

  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline li { padding: 0 0 22px 46px; }
  .timeline li::before { position: absolute; left: 0; top: 2px; margin: 0; }
  .timeline li::after { left: 9.5px; right: auto; top: 26px; bottom: 0; border-top: 0; border-left: 3px dashed var(--line); display: block !important; }
  .timeline li:nth-child(6)::after { border-left: 3px dotted var(--red); border-top: 0; }
  .timeline li:last-child::after { display: none !important; }
  .timeline__time { position: static; display: block; font-size: 1rem; }
  .timeline__time:empty { display: none; }
  .timeline--icons li { padding-left: 68px; min-height: 64px; }
  .timeline--icons .timeline__ico { position: absolute; left: 0; top: 0; width: 50px; height: 50px; margin: 0; border-radius: 16px; }
  .timeline--icons .timeline__ico .ico { width: 25px; height: 25px; }
  .timeline--icons li::after { left: 24px; top: 56px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row--pair { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .form-card { border-radius: 26px; }
  .form-card__head { padding: 20px 104px 22px 20px; }
  .form-card__head h3 { font-size: 1.45rem; }
  .form-card__head p { font-size: .95rem; }
  .form-card__sticker { width: 78px; height: 78px; margin-top: -39px; right: 14px; font-size: .7rem; }
  .form-card__sticker b { font-size: .82rem; }
  .form-card__body { padding: 18px 18px 22px; }
  .doodle--cloud { display: none; }
  .contact-list { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .map { height: 210px; }
  .contact__info { padding: 16px; }
  .admissions__facts { grid-template-columns: 1fr; }
  .faq__list { grid-template-columns: 1fr; }
  .albums { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 6px; }
  .album__img { border-radius: 12px; box-shadow: 3px -3px 0 -1px var(--surface), 3px -3px 0 0 var(--line), 0 6px 12px -10px rgba(27, 43, 75, .6); margin: 3px 3px 0 0; }
  .album__title { font-size: .68rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .album__meta { font-size: .6rem; }
  .album__count { font-size: .58rem; padding: 1px 5px 0 4px; right: 3px; bottom: 3px; }
  .album__count .ico { display: none; }
  .gallery .section-head--split { gap: 10px; }
  .gallery .section-head--split .btn { min-height: 36px; font-size: .88rem; }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; background: rgba(255, 255, 255, .85); }
  .lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }
  .lightbox__thumb { width: 52px; height: 52px; }
  .site-footer { padding-top: 18px; }
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer nav ul { gap: 4px 14px; }
  .site-footer__contact { text-align: left; }

  .action-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
    display: flex; align-items: center; gap: 7px; padding: 5px;
    background: var(--ink); border-radius: 999px;
    box-shadow: 0 18px 36px -14px rgba(27, 43, 75, .75), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    transition: transform .35s cubic-bezier(.34, 1.3, .64, 1), opacity .25s ease;
  }
  .action-bar.is-hidden { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
  .dock-btn {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
    color: #fff; -webkit-tap-highlight-color: transparent; transition: transform .18s ease;
  }
  .dock-btn .ico { width: 21px; height: 21px; }
  .dock-btn--call { background: var(--blue); }
  .dock-btn--wa { background: var(--green); }
  .dock-btn:active { transform: scale(.9); }
  .dock-cta {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 16px 0 5px; border-radius: 999px;
    background: var(--btn); color: #fff; font-weight: 800; font-size: 1.02rem; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: transform .18s ease;
  }
  .dock-cta .btn__chip { width: 34px; height: 34px; background: #fff; color: var(--btn); margin-top: 0; }
  .dock-cta:active { transform: scale(.96); }
  .dock-cta:hover { color: #fff; }
}

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

/* ------------------------------------------------------------------ 404 */
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; }
.notfound img { width: 200px; margin-bottom: 12px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { color: var(--ink-soft); max-width: 30em; }
@media (max-width: 760px) {
  .signatures { flex-direction: column; align-items: flex-start; gap: 10px; }
  .person--plain { padding-left: 90px; }
}
