:root {
  color-scheme: light;
  --paper: #fffdf6;
  --paper-soft: #f4fbff;
  --sand: #fff1c9;
  --sky: #d8eefb;
  --ocean: #157a8c;
  --ocean-deep: #075266;
  --leaf: #11643f;
  --leaf-soft: #dff1dc;
  --sun: #f4b718;
  --sun-soft: #fff4bf;
  --coral: #e9714c;
  --ink: #17343b;
  --muted: #5f7376;
  --line: rgba(20, 92, 101, 0.18);
  --shadow: 0 24px 70px rgba(13, 82, 92, 0.16);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 183, 24, 0.18), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(21, 122, 140, 0.14), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--paper-soft) 34%, var(--paper) 100%);
  color: var(--ink);
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "Avenir Next",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(244, 183, 24, 0.28);
}

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

a {
  color: inherit;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 3px solid rgba(244, 183, 24, 0.82);
  outline-offset: 4px;
}

address {
  font-style: normal;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

section,
.site-header {
  scroll-margin-top: 92px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--ocean-deep);
  color: #ffffff;
  font-weight: 820;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  min-height: 100dvh;
  padding: 18px clamp(16px, 3vw, 34px) 0;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), 100%);
  min-height: 64px;
  margin: 0 auto 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 0 16px 45px rgba(7, 82, 102, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--leaf);
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), var(--ocean));
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  color: var(--ocean-deep);
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.nav-links a {
  padding: 9px 4px;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--coral);
}

.nav-links a:active,
.primary-link:active,
.secondary-link:active {
  transform: translateY(1px);
}

.hero {
  width: min(1420px, 100%);
  margin: 0 auto;
}

.hero-art {
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-art img {
  min-height: 320px;
  max-height: clamp(320px, 50dvh, 500px);
  object-fit: cover;
  object-position: center;
}

.hero-summary {
  display: grid;
  grid-template-areas:
    "title actions"
    "copy actions";
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px clamp(24px, 4vw, 54px);
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: clamp(16px, 2.6vw, 30px) auto 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 22px 60px rgba(7, 82, 102, 0.16);
  backdrop-filter: blur(20px);
}

.hero-summary > div:first-child {
  grid-area: title;
  min-width: 0;
}

.hero-summary > p {
  grid-area: copy;
  min-width: 0;
}

.small-label {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: break-word;
}

h1 {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--leaf);
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ocean-deep);
  font-size: clamp(30px, 4.3vw, 56px);
  line-height: 1.07;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--leaf);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
}

.hero-summary p {
  max-width: 520px;
  margin-bottom: 0;
}

.hero-actions {
  display: grid;
  grid-area: actions;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: #193c31;
  font-weight: 860;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.primary-link {
  background: var(--sun);
  box-shadow: 0 14px 32px rgba(244, 183, 24, 0.35);
}

.secondary-link {
  border: 1px solid rgba(21, 122, 140, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ocean-deep);
  box-shadow: 0 10px 26px rgba(7, 82, 102, 0.09);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: #ffd24a;
  box-shadow: 0 18px 38px rgba(244, 183, 24, 0.42);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(7, 82, 102, 0.14);
}

.primary-link.full {
  width: 100%;
}

.section {
  padding: clamp(64px, 9vw, 122px) clamp(16px, 3vw, 34px);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.mission-copy p:not(.small-label) {
  max-width: 720px;
  margin-bottom: 0;
}

.mission-card,
.age-card,
.team-card,
.price-card,
.space-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(7, 82, 102, 0.1);
}

.mission-card {
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(255, 244, 191, 0.92), rgba(223, 241, 220, 0.92)),
    #ffffff;
}

.mission-card ul,
.price-card ul,
.space-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.mission-card li,
.price-card li,
.space-card li {
  padding-left: 4px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading p,
.gallery-head p,
.price-copy p {
  max-width: 700px;
}

.age-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.age-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
}

.accent-card {
  background:
    linear-gradient(155deg, rgba(17, 100, 63, 0.94), rgba(7, 82, 102, 0.92)),
    var(--leaf);
}

.accent-card h3,
.accent-card p,
.accent-card .age-range {
  color: #ffffff;
}

.sand-card {
  background:
    linear-gradient(155deg, rgba(255, 244, 191, 0.94), rgba(255, 253, 246, 0.96) 48%, rgba(233, 113, 76, 0.14)),
    #ffffff;
}

.sand-card .age-range {
  background: rgba(17, 100, 63, 0.12);
  color: var(--leaf);
}

.age-card-top {
  display: grid;
  gap: 8px;
}

.age-range,
.price-status {
  width: fit-content;
  border-radius: 999px;
  background: rgba(244, 183, 24, 0.2);
  color: var(--ocean-deep);
  font-size: 13px;
  font-weight: 860;
  padding: 7px 12px;
}

.space-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(233, 113, 76, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 246, 0), rgba(255, 244, 191, 0.4));
}

.space-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.space-copy p:not(.small-label) {
  max-width: 680px;
  margin-bottom: 0;
}

.space-card {
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(223, 241, 220, 0.76)),
    #ffffff;
}

.space-card h3 {
  margin-bottom: 16px;
}

.address-box {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 82, 102, 0.08);
  color: var(--ocean-deep);
}

.address-box span {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address-box address {
  font-weight: 720;
}

.program-section {
  background: linear-gradient(180deg, rgba(255, 253, 246, 0), rgba(216, 238, 251, 0.44));
}

.program-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.program-image {
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.program-image img {
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
}

.program-list {
  display: grid;
  gap: 18px;
}

.program-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.program-list article:last-child {
  border-bottom: 0;
}

.program-list .finale-item {
  margin-top: 4px;
  padding: 22px;
  border: 1px solid rgba(244, 183, 24, 0.34);
  border-radius: 20px;
  background: rgba(255, 244, 191, 0.48);
}

.program-list p {
  margin-bottom: 0;
}

.rhythm-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rhythm-item {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--ocean-deep);
  color: #ffffff;
}

.rhythm-item:nth-child(2) {
  background: var(--leaf);
}

.rhythm-item:nth-child(3) {
  background: #df8b22;
}

.rhythm-item span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.rhythm-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.team-card {
  padding: 24px;
}

.team-initials {
  display: inline-grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(244, 183, 24, 0.92), rgba(233, 113, 76, 0.88)),
    var(--sun);
  color: #ffffff;
  font-weight: 900;
}

.team-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.gallery-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(244, 183, 24, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(216, 238, 251, 0.36), rgba(255, 253, 246, 0));
}

.gallery-head {
  max-width: 720px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 82, 102, 0.1);
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.vertical {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:nth-child(2) img {
  object-position: 50% 52%;
}

.gallery-item:nth-child(3) img {
  object-position: 50% 48%;
}

.gallery-item:nth-child(4) img {
  object-position: 50% 50%;
}

.gallery-item:nth-child(5) img {
  object-position: 50% 48%;
}

.gallery-item:nth-child(6) img {
  object-position: 50% 42%;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.9);
  color: var(--ocean-deep);
  font-size: 14px;
  font-weight: 820;
  backdrop-filter: blur(12px);
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
}

.price-copy h2 {
  color: var(--leaf);
}

.price-copy {
  align-self: center;
}

.price-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  background:
    linear-gradient(160deg, rgba(255, 244, 191, 0.84), rgba(255, 253, 246, 0.96)),
    #ffffff;
}

.price-card h3 {
  margin: 16px 0 10px;
  color: var(--leaf);
  font-size: clamp(30px, 3.4vw, 44px);
}

.price-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.price-status {
  display: inline-flex;
  background: rgba(233, 113, 76, 0.15);
  color: #a63e26;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-price {
  background:
    linear-gradient(155deg, rgba(17, 100, 63, 0.94), rgba(7, 82, 102, 0.92)),
    var(--leaf);
}

.featured-price h3,
.featured-price p,
.featured-price .price-status {
  color: #ffffff;
}

.featured-price .price-status {
  background: rgba(255, 255, 255, 0.18);
}

.footer {
  padding: 28px clamp(16px, 3vw, 34px) 36px;
  background: rgba(216, 238, 251, 0.58);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1040px) {
  .topbar {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-links {
    overflow-x: auto;
    max-width: 58vw;
    padding-bottom: 3px;
  }

  .hero-summary,
  .mission-grid,
  .space-grid,
  .program-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    grid-template-areas:
      "title"
      "copy"
      "actions";
    align-items: start;
  }

  .age-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    padding-inline: 12px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: auto;
    padding: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    white-space: normal;
    gap: 8px 14px;
  }

  .hero-art {
    border-radius: 24px;
  }

  .hero-art img {
    min-height: 280px;
    object-position: center;
  }

  .hero-summary {
    width: calc(100% - 12px);
    margin-top: 14px;
    padding: 20px;
  }

  .section {
    padding: 58px 16px;
  }

  .age-layout,
  .rhythm-grid,
  .team-grid,
  .gallery-grid,
  .price-options {
    grid-template-columns: 1fr;
  }

  .age-card {
    grid-row: auto;
    min-height: auto;
  }

  .program-image img {
    aspect-ratio: 1 / 1;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item.featured,
  .gallery-item.vertical,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }

  h2 {
    font-size: 31px;
  }

  p {
    font-size: 16px;
  }

  .hero-summary {
    gap: 16px;
    overflow: hidden;
    padding-inline: clamp(16px, 5vw, 20px);
  }

  .hero-summary h1 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .small-label {
    line-height: 1.35;
    letter-spacing: 0.1em;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
    padding-inline: 14px;
    line-height: 1.2;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 8px;
  }

  .hero-summary {
    width: calc(100% - 8px);
    padding: 18px 16px;
  }

  h1 {
    font-size: 27px;
  }

  .primary-link,
  .secondary-link {
    min-height: 46px;
    font-size: 15px;
  }
}
