:root {
  --ink: #2b2a29;
  --muted: #625f5c;
  --paper: #fffefb;
  --soft: #eef9f8;
  --line: #cde7e5;
  --yellow: #e2b828;
  --green: #3bc4bd;
  --blue: #208c8e;
  --coral: #c94634;
  --shadow: 0 18px 55px rgba(32, 140, 142, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(255, 254, 251, .95);
  border-bottom: 1px solid rgba(59, 196, 189, .22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo { width: 158px; height: auto; }
.site-header > .button:last-child { justify-self: end; }

.nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
}
.nav a, .footer a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover { color: var(--blue); }
.footer a:hover { color: var(--yellow); }

.header-actions, .hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.button:hover, button.button:hover { background: var(--coral); }
.button-secondary { background: var(--yellow); color: var(--ink); }
.button-secondary:hover { background: var(--green); }
.button-ghost { background: rgba(255, 255, 255, .85); color: var(--ink); border: 1px solid var(--line); }
.icon-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(228, 64, 95, .14);
}
.icon-link img {
  width: 20px;
  height: 20px;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-image, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image { object-fit: cover; }
.hero-overlay {
  background: linear-gradient(90deg, rgba(255, 254, 251, .97), rgba(238, 249, 248, .82) 48%, rgba(59, 196, 189, .12));
}
.hero-content {
  position: relative;
  max-width: 780px;
  padding: 70px clamp(18px, 6vw, 78px) 84px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(38px, 7vw, 76px); max-width: 760px; }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: 20px; }
.hero p:not(.eyebrow), .section-copy p, .section-heading p + h2 + p {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.section {
  padding: 86px clamp(18px, 5vw, 72px);
}
.band { background: var(--soft); }
.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}
.info-grid, .parents-layout, .contact-layout {
  display: grid;
  gap: 16px;
}
.info-grid article, .card, .activity-card, .person, .review, .doc, .contact-panel, .form, .memo, .faq {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.info-grid article {
  padding: 20px;
}
.info-grid strong, .info-grid span { display: block; }
.info-grid span, .card p, .activity-card p, .person p, .review p, .doc p, .memo p, .faq p { color: var(--muted); }

.card-grid, .activity-grid, .team-grid, .gallery-grid, .review-grid, .doc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card, .activity-card, .person, .review, .doc, .memo, .faq {
  padding: 22px;
}
.activity-card { padding: 0; overflow: hidden; }
.activity-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 28%;
}
.activity-card:nth-child(2) .activity-photo { object-position: center 30%; }
.activity-card:nth-child(3) .activity-photo { object-position: center 24%; }
.activity-card:nth-child(4) .activity-photo { object-position: center 38%; }
.activity-card:nth-child(5) .activity-photo { object-position: center 32%; }
.activity-card-body { padding: 22px; }
.activity-card-body p { min-height: 78px; }
.activity-card-body a { color: var(--blue); font-weight: 800; }
.card-icon, .activity-icon, .avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(59, 196, 189, .18);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 14px;
}
.card:nth-child(3n+1) .card-icon, .activity-card:nth-child(3n+1) .activity-icon { background: rgba(226, 184, 40, .22); color: #745d0b; }
.card:nth-child(3n+2) .card-icon, .activity-card:nth-child(3n+2) .activity-icon { background: rgba(201, 70, 52, .14); color: var(--coral); }
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 196, 189, .25), rgba(226, 184, 40, .28));
  color: var(--ink);
  font-size: 24px;
}

.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.gallery-tools button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 14px;
  cursor: pointer;
}
.gallery-tools button.active { background: var(--blue); color: white; }
.gallery-item {
  position: relative;
  min-height: 340px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: white;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  background: var(--blue);
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 3px;
  padding: 42px 20px 18px;
  background: linear-gradient(transparent, rgba(43, 42, 41, .86));
}
.gallery-caption strong { font-size: 20px; }
.gallery-caption small { color: rgba(255,255,255,.86); font-size: 14px; }

.parents-layout, .contact-layout {
  grid-template-columns: 1fr 1fr;
}
.schedule-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: start;
}
.schedule-panel {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.schedule-panel > p { color: var(--muted); }
.timeline, .lesson-list { display: grid; margin-top: 18px; }
.timeline-row, .lesson-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.timeline-row time, .lesson-row strong { color: var(--blue); font-weight: 800; }
.lesson-row { grid-template-columns: minmax(150px, .8fr) 1.2fr; }
.schedule-note { padding: 14px; border-radius: 8px; background: var(--soft); font-size: 14px; }
.memo-list, .faq-list { display: grid; gap: 14px; }
.faq summary {
  font-weight: 800;
  cursor: pointer;
}
.doc-list { grid-template-columns: minmax(0, 760px); }
.doc {
  min-height: 250px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-top: 6px solid var(--green);
}
.doc h3 { font-size: clamp(26px, 3vw, 38px); }
.doc p { font-size: 17px; }
.doc a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  text-decoration: none;
}
.doc a:hover { background: var(--coral); }

.form {
  display: grid;
  gap: 14px;
  padding: 22px;
}
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fffefb;
}
.check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-weight: 400 !important;
  color: var(--muted);
}
.check input { width: 18px; margin-top: 4px; }
.form-status { margin: 0; color: var(--blue); font-weight: 800; }

.contact-panel { padding: 26px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 28, 34, .68);
}
.lightbox[hidden] { display: none; }
.lightbox button {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}
.lightbox-card {
  width: min(860px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  overflow: auto;
  background: white;
  box-shadow: var(--shadow);
}
.lightbox-card img { width: 100%; max-height: 68vh; object-fit: contain; background: var(--ink); }
.lightbox-card div { padding: 22px 26px; }
.lightbox-card p { margin-bottom: 0; color: var(--muted); }

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: white;
}
.footer p, .footer a, .footer small { color: rgba(255,255,255,.72); }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  transition: background .18s ease, color .18s ease;
}
.footer nav a:hover,
.footer nav a:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  outline: none;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; }
  .menu-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-size: 22px;
  }
  .nav, .header-actions {
    display: none;
    grid-column: 1 / -1;
  }
  .site-header.open .nav, .site-header.open .header-actions {
    display: flex;
    justify-content: flex-start;
  }
  .nav { flex-direction: column; gap: 8px; }
  .intro, .parents-layout, .contact-layout, .schedule-layout { grid-template-columns: 1fr; }
  .card-grid, .activity-grid, .team-grid, .gallery-grid, .review-grid, .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-list { grid-template-columns: minmax(0, 760px); }
}

@media (max-width: 620px) {
  .hero { min-height: 780px; }
  .hero-overlay { background: rgba(255, 254, 251, .9); }
  .brand-logo { width: 142px; }
  .hero-content { padding: 48px 18px 54px; }
  .hero-actions, .contact-actions { align-items: stretch; }
  .button { width: 100%; }
  .section { padding: 62px 18px; }
  .card-grid, .activity-grid, .team-grid, .gallery-grid, .review-grid, .doc-list { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .timeline-row, .lesson-row { grid-template-columns: 1fr; gap: 2px; }
}
