:root {
  --black: #000;
  --white: #fff;
  --yellow: #ffbe2e;
  --blue: #0a48b0;
  --cyan: #19bfd8;
  --red: #d9213f;
  --pink: #f9abcc;
  --display: "Roboto Flex", "Arial Black", sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --space: clamp(4.5rem, 9vw, 8rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--white); color: var(--black); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
svg { fill: currentColor; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--black); color: var(--white); padding: .75rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, 78rem); margin-inline: auto; }

h1, h2 { font-family: var(--display); font-weight: 900; font-stretch: 135%; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.75vw, 4.35rem); line-height: 1; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3.15rem); line-height: 1.06; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 34em; text-wrap: pretty; }
.big { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.4; max-width: 30em; text-wrap: pretty; }
.section { padding-block: var(--space); }

.c-blue { --c: var(--blue); --on: var(--white); }
.c-red { --c: var(--red); --on: var(--white); }
.c-cyan { --c: var(--cyan); --on: var(--black); }
.c-pink { --c: var(--pink); --on: var(--black); }
.c-yellow { --c: var(--yellow); --on: var(--black); }
.c-white { --c: var(--white); --on: var(--black); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: .75rem 1.75rem; border-radius: .75rem; background: var(--black); color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--blue); }
.btn-small { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--white); }
.link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; text-decoration-line: underline; }
.link:hover { text-decoration-thickness: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--yellow); box-shadow: 0 1px var(--yellow); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font: 900 1.35rem/1 var(--display); font-stretch: 140%; letter-spacing: -.04em; }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.nav { display: flex; gap: clamp(1rem, 2vw, 1.75rem); margin-left: auto; }
.nav a { padding-block: .6rem; font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.burger { display: none; }

/* Hero */
.hero { background: var(--yellow); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(1.5rem, 3vw, 3rem) clamp(3rem, 5vw, 5rem); }
.hero .lead { margin-block: 1.5rem 1.75rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 2.25rem; }
.facts dt { font-size: .9rem; }
.facts dd { font-weight: 700; line-height: 1.3; }

.star { display: block; width: 100%; max-width: 41rem; margin-inline: auto; overflow: visible; }
.petal { text-decoration: none; outline: none; cursor: pointer; }
.petal .move { transition: transform .2s ease-out; }
.petal:hover .move, .petal:focus-visible .move { transform: translate(var(--dx), var(--dy)); }
.petal .shape { fill: var(--c); }
.petal:focus-visible .shape { stroke: var(--black); stroke-width: 6; stroke-linejoin: round; }
.petal use, .petal text { color: var(--on); fill: var(--on); }
.petal text { font: 700 20px var(--body); text-anchor: middle; }
.petal .grow { animation: petal .55s cubic-bezier(.2, .9, .25, 1) backwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes petal { from { transform: rotate(-24deg) scale(.7); } }

/* Event */
.event { background: var(--red); color: var(--white); padding-block: 2rem; }
.event .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.event h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.event p { margin-top: .5rem; }

/* About */
.about-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gap); align-items: end; }
.about .big { margin-block: 1.75rem 1rem; }
.about p:last-child { max-width: 36em; }
.proof { display: grid; gap: 1.75rem; }
.proof strong { display: block; font: 900 clamp(1.5rem, 2.5vw, 2.2rem)/1.1 var(--display); font-stretch: 125%; letter-spacing: -.03em; margin-bottom: .3rem; }

/* Program */
.program { padding-top: 0; }
.program-in, .faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gap); align-items: start; }
.program-head { position: sticky; top: 7rem; }
.program-head p { margin-top: 1.25rem; max-width: 30em; }
summary { display: flex; align-items: center; gap: 1.1rem; min-height: 4.5rem; padding-block: .75rem; font-size: 1.2rem; font-weight: 700; line-height: 1.25; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 1rem; height: 1rem; margin: 0 .25rem 0 auto; background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat; transition: transform .2s; }
details[open] > summary::after { transform: rotate(45deg); }
details { border-bottom: 2px solid var(--black); }
details > p { padding-bottom: 1.5rem; max-width: 38em; }
.subjects details > p { padding-left: 4.1rem; }
.subjects summary b { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--c); color: var(--on); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.subjects summary svg { width: 1.2rem; height: 1.2rem; }

/* Monthly waves */
.wave-edge { display: block; width: 100%; height: clamp(1.75rem, 5vw, 4.5rem); margin-bottom: -1px; fill: var(--cyan); }
.wave-body { background: var(--cyan); padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 7vw, 6rem); }
.wave-body p { margin-top: 1rem; max-width: 36em; }
.wave-list { display: flex; flex-wrap: wrap; gap: .9rem .75rem; margin-top: 2.25rem; }
.wave-list li { padding: .6rem 1.2rem; border-radius: 2rem; background: var(--white); font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 700; }
.wave-list li:nth-child(even) { transform: translateY(.6rem); }

/* Groups */
.groups-head { max-width: 44rem; }
.groups-head p { margin-top: 1rem; }
.growth { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: clamp(.4rem, 1vw, 1rem); border-bottom: 4px solid var(--black); margin-top: 1rem; }
.growth button { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: .4rem; height: calc(var(--h) * clamp(.55rem, 1vw, .8rem)); padding: clamp(.7rem, 1.5vw, 1.4rem); border: 0; border-radius: .75rem .75rem 0 0; background: var(--c); color: var(--on); font: inherit; text-align: left; cursor: pointer; }
.growth button:nth-child(1) { --h: 14; } .growth button:nth-child(2) { --h: 18; } .growth button:nth-child(3) { --h: 22; } .growth button:nth-child(4) { --h: 26; } .growth button:nth-child(5) { --h: 30; }
.growth strong { font: 900 clamp(2rem, 5vw, 4.25rem)/.9 var(--display); font-stretch: 140%; }
.growth span { font-size: clamp(.8rem, 1.3vw, 1.1rem); font-weight: 700; line-height: 1.1; }
.growth svg { position: absolute; left: 50%; bottom: calc(100% + .5rem); width: clamp(2rem, 4vw, 3.25rem); height: clamp(2rem, 4vw, 3.25rem); color: var(--black); transform: translateX(-50%) rotate(-90deg) scale(0); transition: transform .3s cubic-bezier(.2, .9, .25, 1); }
.growth [aria-selected="true"] svg { transform: translateX(-50%); }
.growth button:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; z-index: 1; }
.teachers { padding-top: 2.25rem; }
.js .teachers { min-height: 15rem; }
.teachers article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem var(--gap); margin-bottom: 2rem; }
.teachers h3 { font: 900 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--display); font-stretch: 125%; letter-spacing: -.03em; }
.role { margin-top: .5rem; }
.teachers blockquote { margin-top: .9rem; font-size: 1.25rem; font-weight: 600; line-height: 1.4; max-width: 32em; }

/* Community */
.community { background: var(--pink); }
.community-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); align-items: center; }
.community .big { margin-block: 1.75rem 1.25rem; }
.chat ul { display: grid; gap: 1rem; margin-top: 1.5rem; justify-items: start; }
.chat li { position: relative; padding: .9rem 1.3rem; border-radius: 1.25rem; background: var(--c); color: var(--on); font-weight: 600; }
.chat li::after { content: ""; position: absolute; bottom: -.6rem; left: 1.4rem; border: solid transparent; border-width: 0 1rem .7rem 0; border-top: .7rem solid var(--c); border-bottom: 0; }
.chat li:nth-child(even) { justify-self: end; }
.chat li:nth-child(even)::after { left: auto; right: 1.4rem; border-width: .7rem 0 0 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin-top: 4rem; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .75rem; }

/* Price */
.price-in { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: var(--gap); margin-top: 3rem; }
.sum { margin-bottom: 1.75rem; font-size: 1.2rem; font-weight: 600; }
.sum strong { display: block; font: 900 clamp(3.25rem, 6vw, 5.25rem)/.95 var(--display); font-stretch: 130%; letter-spacing: -.05em; margin-bottom: .6rem; white-space: nowrap; }
.price-main p:last-child { margin-top: 1.5rem; font-size: 1rem; }
.ticks { display: grid; gap: .7rem; margin-top: 1.25rem; }
.ticks li { display: grid; grid-template-columns: 1rem 1fr; gap: .75rem; }
.ticks li::before { content: ""; width: 1rem; height: 1rem; margin-top: .3rem; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.note { margin-top: 1.25rem; font-weight: 600; }
table { width: 100%; margin-top: .75rem; border-collapse: collapse; }
th, td { padding-block: .7rem; border-bottom: 2px solid var(--black); text-align: left; font-weight: 400; }
td { text-align: right; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.funding { max-width: 46em; margin-top: 3.5rem; }

/* FAQ */
.faq { padding-top: 0; }
.questions summary { font-size: 1.1rem; }

/* Final */
.final { background: var(--blue); color: var(--white); padding-block: var(--space); }
.final-in { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); align-items: end; }
.final .lead { margin-block: 1.5rem 2rem; }
address { display: grid; justify-items: start; gap: .25rem; font-style: normal; font-size: 1.15rem; }
address strong { font-size: 1.5rem; }

/* Footer */
.footer { background: var(--black); color: var(--white); padding-block: 2.5rem; }
.footer-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem var(--gap); align-items: center; font-size: .95rem; }
.footer-in > p { max-width: 36em; }
.footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer nav a { padding-block: .6rem; font-weight: 600; }

@media (max-width: 64rem) {
  .burger { display: grid; place-content: center; gap: 7px; order: 3; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
  .burger i { display: block; width: 1.6rem; height: 3px; background: currentColor; transition: transform .2s; }
  .burger[aria-expanded="true"] i:first-child { transform: translateY(5px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-child { transform: translateY(-5px) rotate(-45deg); }
  .header-in { gap: .5rem; }
  .header .btn { margin-left: auto; }
  .nav { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.5rem; background: var(--yellow); }
  .nav.open { display: flex; }
  .nav a { padding-block: .7rem; font-size: 1.2rem; }
  .price-in { grid-template-columns: 1fr 1fr; }
  .price-main { grid-column: 1 / -1; }
  .price-main p:last-child { max-width: 38em; }
}
@media (max-width: 52rem) {
  .hero-in, .about-in, .program-in, .faq-in, .community-in, .final-in, .teachers article { grid-template-columns: minmax(0, 1fr); }
  .program-head { position: static; }
  .star { max-width: 30rem; }
  .footer-in { grid-template-columns: 1fr; }
  .js .teachers { min-height: 19rem; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .nav { padding-inline: 1rem; }
  .brand { font-size: 1.1rem; }
  .brand svg { width: 1.7rem; height: 1.7rem; }
  .header .btn { padding-inline: .8rem; font-size: .875rem; }
  .hero .lead { margin-block: 1rem 1.25rem; }
  .facts { margin-top: 1.25rem; gap: .75rem 1rem; }
  .facts dd { font-size: 1rem; }
  .petal text { display: none; }
  .petal .icon { transform: translateY(14px) scale(1.5); }
  .subjects details > p { padding-left: 0; }
  .price-in { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

#program, #faq { scroll-margin-top: 2.5rem; }
