:root {
  /* Base */
  --white: #FFFFFF;
  --cream: #FFF8EF;        /* warm page background */
  --cream-2: #FCEFDF;
  --sky: #EAF3FF;
  --navy: #0B2A63;
  --navy-deep: #081F4A;
  --blue: #0159D3;
  --blue-dark: #0147AB;
  --ink: #1B2638;
  --ink-soft: #536177;
  --line: #E7DFD3;
  --line-cool: #DCE6F2;
  --error: #B3261E;

  /* Warm accents */
  --orange: #F07B3F;
  --orange-ink: #C4521C;
  --yellow: #FFC94A;
  --rose: #E7305C;         /* logo raspberry */
  --mint: #248091;         /* logo teal (kept the old name so existing rules pick it up) */

  --tint-blue: #DDEBFF;
  --tint-yellow: #FFF0C7;
  --tint-orange: #FFE6D6;
  --tint-rose: #FDE2E9;
  --tint-mint: #DDEFF2;

  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Print", cursive;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 18px 40px -18px rgba(11, 42, 99, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; color: var(--navy); }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.script { font-family: var(--script); font-weight: 700; letter-spacing: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .8125rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow-light { color: var(--yellow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px;
  background: var(--blue); color: var(--white);
  font: 700 1rem/1 var(--body); text-decoration: none;
  border: 2px solid transparent; border-radius: 100px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .9375rem; white-space: nowrap; }
.btn-sun { background: var(--yellow); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(255, 178, 30, .7); }
.btn-sun:hover { background: #FFD46E; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 1rem/1.4 var(--body); color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: var(--yellow);
}
.link:hover { text-decoration-color: var(--blue); }

/* Top bar */
.topbar { background: var(--navy); color: #C9D8EF; font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; gap: 14px; min-height: 38px; }
.topbar b { color: var(--white); font-weight: 700; }
.topbar-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); }
.topbar-phone { margin-left: auto; color: var(--white); text-decoration: none; font-weight: 700; }
.topbar-phone:hover { color: var(--yellow); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(11, 42, 99, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.25rem/1 var(--display); letter-spacing: -0.02em; color: var(--navy); text-decoration: none;
  white-space: nowrap;
}
.logo-mark { height: 50px; width: auto; }
.logo-word { height: 24px; width: auto; }
.logo-footer { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 16px; background: var(--white); }
.logo-footer .logo-mark { height: 40px; }
.logo-footer .logo-word { height: 18px; margin-left: 8px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap;
  padding: 8px 11px; border-radius: 100px; transition: background-color .15s ease;
}
.main-nav a:hover { background: var(--cream-2); }
.main-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 100px; padding: 3px; background: var(--white); }
.lang button {
  border: 0; background: none; cursor: pointer;
  font: 700 .8125rem/1 var(--body); color: var(--ink-soft);
  padding: 8px 10px; border-radius: 100px;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* Hero: a rounded blue panel with an arch-shaped photo and speech bubbles in four languages */
.hero { padding: 12px 0 0; }
.hero-panel {
  --hero-photo: url("images/hero.webp");
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px) clamp(88px, 9vw, 120px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .16), transparent 40%),
    radial-gradient(circle at 0% 100%, #1F74EA 0, transparent 45%),
    var(--blue);
  color: var(--white);
}
.hero-doodle {
  position: absolute; left: 34%; top: 18px; width: 380px; pointer-events: none;
  fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round;
}
.hero-text { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.375rem); line-height: 1.08; margin-bottom: 22px; }
.hero h1 .script {
  display: inline-block; color: var(--yellow);
  font-size: 1.32em; line-height: .82; transform: rotate(-2deg); margin-top: .08em;
}
.lead { color: #DCE8FF; max-width: 46ch; font-size: 1.125rem; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; isolation: isolate; width: 100%; max-width: 440px; justify-self: center; padding: 30px 30px 0; }
.arch {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 36px 36px;
  border: 8px solid rgba(255, 255, 255, .95);
  background:
    var(--hero-photo) center / cover no-repeat,
    linear-gradient(170deg, #FFE7B8 0%, #FFC94A 48%, var(--orange) 100%);
  display: grid; place-items: end center; padding: 0 16% 18%;
  color: rgba(11, 42, 99, .7); font-weight: 600; font-size: .9375rem; text-align: center;
  box-shadow: 0 30px 60px -24px rgba(5, 25, 70, .55);
}
.arch::after { /* small crescent echoing the old round frame */
  content: ""; position: absolute; z-index: -1; inset: 18px -22px -18px 22px;
  border-radius: inherit; background: var(--navy); opacity: .35;
}
.hero-sun { position: absolute; width: 132px; height: 132px; top: -6px; right: -18px; z-index: 2; }

.bubble {
  position: absolute; z-index: 3;
  padding: 10px 16px; border-radius: 18px;
  font: 800 1rem/1 var(--body); white-space: nowrap;
  box-shadow: 0 12px 24px -10px rgba(5, 25, 70, .45);
  animation: bob 6s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; width: 14px; height: 14px; background: inherit;
  bottom: -5px; left: 18px; transform: rotate(45deg); border-radius: 2px;
}
.b-az { left: -8%; top: 30%; background: var(--white); color: var(--blue); }
.b-ru { right: -10%; top: 46%; background: var(--rose); color: var(--white); animation-delay: -1.5s; }
.b-ru::after { left: auto; right: 18px; }
.b-fr { left: -2%; bottom: 14%; background: var(--navy); color: var(--white); animation-delay: -3s; }
.b-en { right: 2%; bottom: -2%; background: var(--mint); color: var(--white); animation-delay: -4.5s; }
.b-en::after { left: auto; right: 18px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Facts: white cards that overlap the panel */
.facts {
  list-style: none; margin: -56px clamp(12px, 3vw, 40px) 0; padding: 0;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.facts li { padding: 24px 26px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 600 1.625rem/1.1 var(--display); color: var(--navy); margin-bottom: 6px; letter-spacing: -0.02em; }
.facts li:nth-child(1) b { color: var(--orange-ink); }
.facts li:nth-child(2) b { color: var(--blue); }
.facts li:nth-child(3) b { color: var(--rose); }
.facts li:nth-child(4) b { color: #17866F; }
.facts span { color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; display: block; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-lead { color: var(--ink-soft); max-width: 58ch; margin-top: 16px; font-size: 1.125rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Programs: bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); background: var(--white); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); }
.card-tag { font: 700 .8125rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.card-ecole { grid-column: span 4; background: var(--navy); color: var(--white); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-ecole h3 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.card-ecole p { color: #C9D8EF; max-width: 46ch; font-size: 1.0625rem; }
.card-ecole .card-tag { color: var(--yellow); }
.card-script {
  position: absolute; right: -10px; top: -18px;
  font: 700 clamp(5rem, 11vw, 9rem)/1 var(--script); color: rgba(255, 255, 255, .08);
  transform: rotate(-6deg); pointer-events: none;
}
.card-ib { grid-column: span 2; background: var(--tint-yellow); display: flex; flex-direction: column; justify-content: flex-end; }
.card-ib .card-tag { color: #8A5A00; }
.card-ib h3 { font-size: 1.625rem; }
.card-ib p { color: #4A3A1A; }
.card-sector { grid-column: span 2; border: 1px solid var(--line); }
.card-sector h3::before {
  content: attr(data-code); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 18px;
  background: var(--c); color: var(--white); font: 600 .9375rem/1 var(--display); letter-spacing: 0;
}
.card-sector p { font-size: .9375rem; margin-bottom: 12px; }
.s-ru { --c: var(--rose); }
.s-az { --c: var(--mint); }
.s-en { --c: var(--blue); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 100px; background: var(--cream); border: 1px solid var(--line); font-weight: 700; font-size: .875rem; color: var(--navy); }

/* Day timeline */
.day { background: var(--white); }
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 10px; counter-reset: step;
}
.timeline li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 100px;
  background: var(--tint); color: var(--navy); font-weight: 700;
  position: relative;
}
.timeline li:not(:last-child)::after {
  content: ""; width: 10px; height: 2px; background: var(--line); position: absolute; right: -10px; top: 50%;
}
.timeline i {
  width: 38px; height: 38px; border-radius: 50%; background: var(--c) var(--icon) center / 22px no-repeat;
  flex: none;
}
.t-meal  { --tint: var(--tint-orange); --c: var(--orange); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 12h18a9 9 0 0 1-18 0zM8 8c0-2 2-2 2-4M13 8c0-2 2-2 2-4'/%3E%3C/svg%3E"); }
.t-class { --tint: var(--tint-blue); --c: var(--blue); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 6c-2-1.5-5-2-8-1.5V19c3-.5 6 0 8 1.5 2-1.5 5-2 8-1.5V4.5C17 4 14 4.5 12 6zM12 6v14.5'/%3E%3C/svg%3E"); }
.t-walk  { --tint: var(--tint-mint); --c: var(--mint); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-6M12 3 6 13h12z'/%3E%3C/svg%3E"); }
.t-sleep { --tint: #E4E8F7; --c: var(--navy); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.day-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.day-notes p { padding: 20px 24px; border-radius: var(--radius); background: var(--cream); color: var(--ink-soft); }
.day-notes b { color: var(--navy); }

/* Clubs and care */
.clubs-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.clubs h2 { margin-bottom: 32px; }
.club-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.club-list li {
  padding: 14px 22px; border-radius: 100px; background: var(--white);
  border: 2px solid var(--c); font-weight: 700; color: var(--navy); font-size: 1.0625rem;
  transition: background-color .2s ease, transform .2s ease;
}
.club-list li:hover { background: var(--tint); transform: translateY(-2px) rotate(-1deg); }
.club-list small { font-weight: 600; color: var(--ink-soft); font-size: .8125rem; }
.c1 { --c: var(--orange); --tint: var(--tint-orange); }
.c2 { --c: var(--blue); --tint: var(--tint-blue); }
.c3 { --c: var(--mint); --tint: var(--tint-mint); }
.c4 { --c: var(--rose); --tint: var(--tint-rose); }
.c5 { --c: var(--yellow); --tint: var(--tint-yellow); }
.care { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 36px); }
.care h3 { color: var(--white); margin-bottom: 20px; font-size: 1.375rem; }
.care ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.care li { padding: 14px 0 14px 34px; border-top: 1px solid rgba(255, 255, 255, .14); position: relative; }
.care li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A63' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.care b { display: block; font-weight: 700; }
.care span { color: #B8CAE6; font-size: .9375rem; }

/* Groups: a staircase */
.groups { background: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.step {
  background: var(--tint); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column; justify-content: flex-end;
}
.step .age { display: block; font: 600 2.25rem/1 var(--display); letter-spacing: -0.03em; color: var(--c-ink); margin-bottom: 14px; }
.step .age small { font: 700 1rem/1 var(--body); color: var(--ink-soft); letter-spacing: 0; }
.step p { color: #3B4759; font-size: 1rem; }
.s1 { --tint: var(--tint-yellow); --c-ink: #9A6500; min-height: 200px; }
.s2 { --tint: var(--tint-orange); --c-ink: var(--orange-ink); min-height: 240px; }
.s3 { --tint: var(--tint-rose); --c-ink: #A63A52; min-height: 280px; }
.s4 { --tint: var(--tint-blue); --c-ink: var(--blue); min-height: 320px; }

/* Branches */
.branch-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.branch {
  position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.branch:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.branch .lottie { width: 60px; height: 70px; margin: -6px 0 2px -10px; }
.branch h3 { font-size: 1.125rem; }
.branch-addr { color: var(--ink); font-weight: 600; }
.branch-note { color: var(--ink-soft); font-size: .875rem; }
.branch-phone { color: var(--navy); font-weight: 700; text-decoration: none; }
.branch-phone:hover { color: var(--blue); }
.branch-actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.branch-map { font-weight: 600; font-size: .9375rem; color: var(--ink-soft); }
.branch-soon { background: transparent; border: 2px dashed #E3B54A; }
.branch-soon:hover { transform: none; box-shadow: none; }
.soon-badge {
  align-self: flex-start; padding: 6px 12px; border-radius: 100px; background: var(--yellow); color: var(--navy);
  font: 800 .75rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px;
}

/* Visit form */
.visit { padding: 0 0 clamp(72px, 9vw, 120px); }
.visit-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 72px);
  max-width: calc(var(--wrap) - 2 * var(--gutter));
}
.visit-inner::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  left: -160px; bottom: -220px; background: var(--blue); opacity: .6;
}
.visit-inner > * { position: relative; z-index: 1; }
.visit-plane { width: 280px; height: 140px; margin: -24px 0 4px -16px; }
.visit h2 { color: var(--white); margin-bottom: 16px; }
.visit-text p { color: #C9D9F2; font-size: 1.125rem; max-width: 42ch; }
.visit-form, .card-form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 36px);
  display: grid; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.visit-form label, .card-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9375rem; }
.visit-form input, .visit-form select,
.card-form input, .card-form select, .card-form textarea {
  font: 500 1rem/1.4 var(--body); color: var(--ink);
  min-height: 52px; padding: 0 14px;
  border: 1.5px solid #D8D0C4; border-radius: 14px; background: var(--cream);
  width: 100%;
}
.visit-form input:focus, .visit-form select:focus,
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px var(--tint-blue); outline: none; }
.visit-form input[aria-invalid="true"], .card-form [aria-invalid="true"] { border-color: var(--error); }
.form-error { color: var(--error); font-weight: 600; font-size: .9375rem; }
.visit-form .btn, .card-form .btn { width: 100%; margin-top: 4px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #A9BBD2; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; }
.site-footer .logo { color: var(--white); margin-bottom: 12px; }
.footer-about { max-width: 30ch; font-size: .9375rem; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: .9375rem; }
.footer-col h4 { margin: 0 0 4px; color: var(--white); font: 700 .8125rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #E3ECF7; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-col span { color: #8DA2BF; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }

/* Lottie containers keep their size while loading */
.lottie svg { width: 100% !important; height: 100% !important; }

/* Mobile navigation */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  content: ""; transition: transform .2s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: block; }
  .lang { margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    box-shadow: 0 12px 24px rgba(11, 42, 99, .08);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 0; font-size: 1.125rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover { background: none; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a[aria-current="page"] { background: none; color: var(--blue); }
}

/* Inner pages */
.page-head { padding: 12px 0 0; margin-bottom: 40px; }
.page-head .wrap > div {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl); background: var(--blue); color: var(--white);
}
.page-head .wrap > div::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: 6%; top: -90px; background: var(--yellow);
}
.page-head .wrap > div::after {
  content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%;
  right: 24%; bottom: -20px; background: var(--orange);
}
.page-head .wrap > div > * { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page-head .section-lead { color: #DCE8FF; margin-bottom: 20px; }
.page-body { padding: 0 0 clamp(72px, 9vw, 120px); }
.notice {
  display: inline-block; padding: 12px 16px; border-radius: 14px; max-width: 70ch;
  background: rgba(255, 255, 255, .14); color: var(--white); font-weight: 600; font-size: .9375rem;
}
.notice[hidden] { display: none; }
.empty {
  list-style: none; padding: 40px 24px; border: 2px dashed #D8CDBE; border-radius: var(--radius);
  color: var(--ink-soft); text-align: center; grid-column: 1 / -1; background: var(--white);
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill {
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
  font: 700 .9375rem/1 var(--body); padding: 12px 18px; border-radius: 100px; cursor: pointer;
}
.pill:hover { border-color: var(--blue); }
.pill[aria-selected="true"], .pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* Home: photo strip */
.life-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.life-photos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px;
}
.life-photos li { border-radius: var(--radius); overflow: hidden; background: var(--sky); }
.life-photos li:first-child { grid-row: span 2; }
.life-photos li:nth-child(n+6) { display: none; }
.life-photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 720px) {
  .life-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; }
  .life-photos li:first-child { grid-row: auto; grid-column: 1 / -1; }
}

/* Gallery */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px;
}
.tile { border-radius: var(--radius); overflow: hidden; }
.tile-tall { grid-row: span 2; }
.tile-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--sky); }
.tile-btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .4s ease; }
.tile-btn:hover img { transform: scale(1.04); }
.tile-ph {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 18px; background: var(--tbg); color: var(--tfg);
}
.tile-ph span { font: 600 1.125rem/1.2 var(--display); }
.tile-ph small { font-size: .875rem; opacity: .85; }
.tile-ph-classes { --tbg: var(--tint-blue); --tfg: #123E7A; }
.tile-ph-holidays { --tbg: var(--tint-orange); --tfg: #8A3510; }
.tile-ph-outdoor { --tbg: var(--tint-mint); --tfg: #135C66; }
.tile-ph-graduation { --tbg: var(--tint-yellow); --tfg: #6B4E12; }

.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.viewer::backdrop { background: rgba(10, 31, 56, .9); }
.viewer figure { margin: 0; }
.viewer-media img, .viewer-media video { display: block; max-height: 78vh; max-width: min(92vw, 1100px); width: auto; margin: 0 auto; border-radius: 12px; background: #000; }
.viewer figcaption { color: var(--white); text-align: center; padding-top: 12px; font-weight: 600; }
.viewer-count { color: rgba(255, 255, 255, .7); text-align: center; font-size: .875rem; margin-top: 4px; min-height: 1.2em; }
.viewer-close {
  display: block; margin: 0 0 12px auto; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--white); color: var(--navy); font: 700 .9375rem/1 var(--body); padding: 12px 18px;
}
.viewer-nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--navy); font: 700 2rem/1 var(--body); cursor: pointer;
  display: grid; place-items: center; padding-bottom: 4px; box-shadow: var(--shadow);
}
.viewer-nav:hover { background: var(--yellow); }
.viewer-nav[hidden] { display: none; }
.viewer-prev { left: max(12px, calc(50vw - 600px)); }
.viewer-next { right: max(12px, calc(50vw - 600px)); }
@media (max-width: 720px) {
  .viewer-nav { top: auto; bottom: 16px; transform: none; width: 48px; height: 48px; }
  .viewer-prev { left: calc(50% - 60px); }
  .viewer-next { right: calc(50% - 60px); }
  .viewer-media img, .viewer-media video { max-height: 70vh; }
}

/* Events */
.events { display: grid; gap: 20px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.event-grid .event-card { grid-template-columns: 1fr; }
.event-cover {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; background: var(--sky);
  aspect-ratio: 4 / 3; overflow: hidden; width: 100%;
}
a.event-cover { cursor: pointer; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.event-cover:hover img { transform: scale(1.04); }
.event-count {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 100px;
  background: rgba(11, 42, 99, .82); color: var(--white); font-weight: 700; font-size: .8125rem;
}
.event-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.event-date { font-weight: 800; color: var(--orange-ink); font-size: .9375rem; }
.event-branch { padding: 5px 11px; border-radius: 100px; background: var(--tint-mint); color: #135C66; font-weight: 700; font-size: .8125rem; }
.event-card h3 { font: 600 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--display); color: var(--navy); }
.event-text { color: var(--ink-soft); }
.event-thumbs { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.event-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; cursor: zoom-in; background: var(--sky);
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-more, .event-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11, 42, 99, .55); color: var(--white); font: 700 1.125rem/1 var(--body);
}
.event-play { background: rgba(0, 0, 0, .35); }
@media (max-width: 900px) {
  .event-card { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .event-grid { grid-template-columns: 1fr; }
}

/* Reviews */
.reviews-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.review { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); }
.review-stars { color: #F2A900; font-size: 1.125rem; letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 14px; font-size: 1.125rem; color: var(--ink); }
.review-name { font-weight: 700; }
.review-name span { font-weight: 500; color: var(--ink-soft); margin-left: 8px; }
.review-form { position: sticky; top: 100px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.review-form h2 { font-size: 1.5rem; }
.card-form textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.form-note { color: var(--ink-soft); font-size: .875rem; }
.rating { border: 0; margin: 0; padding: 0; }
.rating legend { font-weight: 700; font-size: .9375rem; padding: 0; margin-bottom: 4px; }
.stars { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: #DDD5C9; cursor: pointer; padding: 2px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #F2A900; }
.stars input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 8px 20px rgba(10, 31, 56, .28);
  transition: transform .2s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 50%; }

/* Tablet */
@media (max-width: 980px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; }
  .hero-doodle { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-ecole { grid-column: 1 / -1; }
  .card-ib { grid-column: span 1; }
  .card-sector { grid-column: span 1; }
  .clubs-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { min-height: 0 !important; }
  .branch-list { grid-template-columns: 1fr 1fr; }
  .visit-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 680px) {
  .topbar-inner > span:not(:first-child), .topbar-sep { display: none; }
  .header-cta { display: none; }
  .hero { padding-top: 6px; }
  .hero-panel { border-radius: 28px; padding-bottom: 96px; }
  .hero-visual { max-width: 260px; padding: 20px 24px 0; }
  .hero-sun { width: 96px; height: 96px; right: -14px; }
  .bubble { font-size: .875rem; padding: 8px 12px; }
  .b-az { left: -14%; } .b-ru { right: -16%; } .b-fr { left: -12%; }
  .facts { margin-left: 8px; margin-right: 8px; }
  .facts li { padding: 18px; }
  .facts b { font-size: 1.25rem; }
  .facts span { font-size: .8125rem; }
  .bento, .steps, .branch-list, .reviews-layout, .day-notes, .form-row { grid-template-columns: 1fr; }
  .card-ib, .card-sector { grid-column: 1 / -1; }
  .timeline li:not(:last-child)::after { display: none; }
  .visit .wrap { padding: 0 8px; }
  .visit-inner { border-radius: 28px; padding: 28px 20px; }
  .visit-plane { width: 220px; height: 110px; }
  .review-form { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-float, .tile-btn img, .branch, .club-list li { transition: none; }
}

@media (max-width: 420px) {
  .logo-mark { height: 40px; }
  .logo-word { height: 18px; }
}
