@font-face {
  font-family: "Futura bold";
  src: url("assets/futura-bold.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
  font-style: normal;
}

:root {
  --green: #327841;
  --green-deep: #245c32;
  --green-soft: #4a8c57;
  --pink: #e795e4;
  --yellow: #fff27c;
  --mist: #eaf1ef;
  --paper: #fffefc;
  --ink: #06482c;
  --white: #ffffff;
  --display: "Futura bold", "Open Sans", Arial, sans-serif;
  --body: "Open Sans", Arial, sans-serif;
  --max-width: 1160px;
  --panel-height: max(75svh, 620px);
  --seam: clamp(52px, 6vw, 86px);
  --shadow: 0 24px 50px rgb(0 65 37 / 12%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
}

p {
  line-height: 1.68;
}

section,
footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 70px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 86px;
  background: rgb(255 255 255 / 97%);
  transition: box-shadow 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  height: 86px;
  box-shadow: 0 8px 26px rgb(0 66 35 / 8%);
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 79px;
  height: 78px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--green);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.green-panel {
  color: var(--white);
  background: var(--green);
}

.hero {
  min-height: var(--panel-height);
  padding: clamp(92px, 12vh, 136px) 32px clamp(118px, 15vh, 170px);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}

.hero-inner {
  max-width: 1130px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(465px, 1fr) 470px;
  align-items: center;
  gap: 72px;
}

.hero h1 {
  color: var(--pink);
  font-size: clamp(52px, 5.6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0.015em;
  margin-bottom: 32px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero h2 {
  color: var(--yellow);
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.08;
  margin-bottom: 26px;
}

.hero-tagline {
  max-width: 495px;
  margin-bottom: 23px;
  color: var(--yellow);
  font-size: 17px;
  font-weight: 800;
}

.hero-description {
  max-width: 450px;
  color: rgb(255 255 255 / 90%);
  font-size: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 27px;
  margin-top: 26px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  border-radius: 0;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgb(0 55 29 / 17%);
}

.button-yellow {
  color: var(--ink);
  background: var(--yellow);
}

.hero-visual {
  height: 410px;
  position: relative;
}

.hero-art {
  position: absolute;
  top: 0;
  right: -15px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, var(--parallax, 0px), 0);
  opacity: calc(var(--shape-opacity, 0.84) * var(--shape-base-opacity, 1));
  transition: opacity 150ms linear;
  contain: layout style paint;
}

.shape.is-near-view {
  will-change: transform, opacity;
}

.shape.pink {
  --shape-color: var(--pink);
}

.shape.yellow {
  --shape-color: var(--yellow);
}

.shape.green {
  --shape-color: var(--green);
}

.arc {
  width: 230px;
  height: 230px;
  border: 54px solid var(--shape-color);
  border-radius: 50%;
  clip-path: polygon(0 0, 52% 0, 52% 52%, 100% 52%, 100% 100%, 0 100%);
}

.petal {
  width: 98px;
  height: 72px;
  background: var(--shape-color);
  border-radius: 100% 0;
}

.wave {
  width: 320px;
  height: 92px;
  background: var(--shape-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 245 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 19C51 54 81 55 121 34c40-21 71-36 124-34v43c-50-2-82 13-123 24C71 81 33 72 0 60V19Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 245 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 19C51 54 81 55 121 34c40-21 71-36 124-34v43c-50-2-82 13-123 24C71 81 33 72 0 60V19Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.hero-wave {
  top: 92px;
  left: -92px;
  width: 362px;
  height: 123px;
}

.hero-petal {
  top: 246px;
  left: calc(50% - 454px);
  transform: rotate(-27deg) translate3d(0, var(--parallax, 0px), 0);
}

.about {
  min-height: var(--panel-height);
  padding: clamp(62px, 9vh, 98px) 28px clamp(76px, 11vh, 118px);
  background: var(--paper);
  display: flex;
  align-items: center;
}

.about-intro {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  gap: 52px;
  align-items: center;
}

.portrait {
  width: 172px;
  height: 172px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.about-intro h2 {
  margin: 0 0 28px;
  color: var(--pink);
  font-size: clamp(30px, 3.2vw, 35px);
  line-height: 1.12;
}

.about-intro p {
  max-width: 460px;
  font-size: 16px;
  color: #406757;
}

.about-intro p + p {
  margin-top: 19px;
}

.about-arc-left {
  top: 202px;
  left: -105px;
  width: 320px;
  height: 320px;
  border-width: 68px;
  transform: rotate(-130deg) translate3d(0, var(--parallax, 0px), 0);
}

.about-arc-right {
  right: -118px;
  bottom: 61px;
  width: 330px;
  height: 330px;
  border-width: 74px;
  transform: rotate(43deg) translate3d(0, var(--parallax, 0px), 0);
}

.about-petal {
  right: 127px;
  top: 315px;
  transform: rotate(15deg) translate3d(0, var(--parallax, 0px), 0);
}

.about-wave {
  width: 340px;
  height: 97px;
  right: -86px;
  top: 16px;
}

.courses {
  padding: clamp(104px, 13vh, 142px) 32px clamp(150px, 17vh, 186px);
  min-height: max(75svh, 880px);
}

.section-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 790px;
  margin: 0 auto 66px;
}

.section-heading h2 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 21px;
}

.section-heading p {
  color: rgb(255 255 255 / 86%);
  font-size: 16px;
}

.course-grid {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.course-card {
  min-height: 300px;
  padding: 27px 24px 30px;
  text-align: left;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0;
  background: rgb(255 255 255 / 6%);
  transition: background 220ms ease, border-color 220ms ease;
}

.course-card:nth-child(even) {
  margin-top: 0;
  margin-bottom: 0;
}

.course-card:hover {
  border-color: rgb(255 242 124 / 30%);
  background: rgb(255 255 255 / 10%);
}

.course-card h3 {
  color: white;
  font-size: 20px;
  line-height: 1.2;
  margin: 19px 0 14px;
}

.course-card p {
  font-size: 15px;
  line-height: 1.72;
  color: rgb(255 255 255 / 86%);
}

.material-icons-round {
  font-family: "Material Icons Round";
  font-weight: normal;
  font-style: normal;
  font-size: 1.4em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

.line-icon {
  width: 70px;
  height: 70px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--pink);
  font-size: 62px;
}

.courses-wave {
  left: -102px;
  top: 205px;
  width: 410px;
  height: 111px;
}

.courses-arc {
  right: -118px;
  top: 227px;
  width: 365px;
  height: 365px;
  border-width: 78px;
  transform: rotate(34deg) translate3d(0, var(--parallax, 0px), 0);
}

.courses-petal {
  right: 96px;
  top: 94px;
  transform: rotate(-84deg) translate3d(0, var(--parallax, 0px), 0);
}

.schedule {
  min-height: max(75svh, 680px);
  margin-top: calc(-1 * var(--seam));
  padding: clamp(124px, 15vh, 150px) 28px clamp(96px, 12vh, 128px);
  background: var(--yellow);
  clip-path: polygon(0 var(--seam), 100% 0, 100% 100%, 0 100%);
}

.schedule-inner {
  max-width: 900px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.schedule h2 {
  text-align: center;
  color: var(--green);
  font-size: clamp(34px, 4.2vw, 46px);
  margin-bottom: 54px;
}

.season {
  display: none;
  margin-bottom: 62px;
  color: var(--green);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 30px 80px;
}

.lesson-card {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  color: var(--green);
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lesson-card:nth-child(4n + 2),
.lesson-card:nth-child(4n + 4) {
  margin-top: 0;
  margin-bottom: 0;
}

.lesson-card .material-icons-round {
  display: block;
  margin-top: -5px;
  margin-bottom: 0;
  color: var(--pink);
  font-size: 46px;
  opacity: 0.52;
}

.lesson-card h3 {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 21px;
  line-height: 1.05;
}

.lesson-card p {
  color: var(--green);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.lesson-card strong {
  font-weight: 900;
}

.schedule-arc {
  right: -95px;
  top: 57px;
  width: 340px;
  height: 340px;
  border-width: 74px;
  transform: rotate(-44deg) translate3d(0, var(--parallax, 0px), 0);
}

.schedule-petal {
  left: 58px;
  bottom: 73px;
  transform: rotate(80deg) translate3d(0, var(--parallax, 0px), 0);
}

.enroll {
  min-height: var(--panel-height);
  margin-top: calc(-1 * var(--seam));
  padding: clamp(135px, 18vh, 176px) 28px clamp(104px, 15vh, 150px);
  background: var(--pink);
  clip-path: polygon(0 var(--seam), 100% 0, 100% 100%, 0 100%);
}

.enroll-inner {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 72px;
}

.small-photo {
  width: clamp(430px, 42vw, 520px);
  height: clamp(300px, 29vw, 362px);
  flex-shrink: 0;
  position: relative;
  clip-path: ellipse(49% 48% at 54% 51%);
  object-fit: contain;
}

.enroll h2 {
  color: var(--yellow);
  font-size: 35px;
  line-height: 1.14;
}

.enroll-copy .button {
  margin-top: 34px;
}

.enroll-copy p {
  margin-top: 22px;
  color: rgb(255 255 255 / 92%);
  font-size: 16px;
}

.button .material-icons-round {
  margin-right: 9px;
  color: var(--pink);
  font-size: 21px;
}

.enroll-arc {
  left: 8px;
  bottom: 49px;
  width: 310px;
  height: 310px;
  border-width: 70px;
  transform: rotate(-24deg) translate3d(0, var(--parallax, 0px), 0);
}

.enroll-wave {
  right: -48px;
  top: 59px;
  width: 360px;
  height: 103px;
}

.enroll-petal {
  right: 180px;
  bottom: 48px;
  transform: rotate(-21deg) translate3d(0, var(--parallax, 0px), 0);
}

.gallery {
  min-height: var(--panel-height);
  padding: clamp(102px, 13vh, 140px) 28px clamp(138px, 16vh, 180px);
  background: var(--paper);
}

.gallery h2 {
  position: relative;
  z-index: 2;
  color: var(--green);
  text-align: center;
  font-size: 36px;
  margin-bottom: 57px;
}

.gallery-grid {
  position: relative;
  z-index: 2;
  max-width: 556px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 31px;
}

.gallery-grid img {
  width: 164px;
  height: 164px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 250ms ease;
}

.gallery-grid img:hover {
  transform: translateY(-4px) scale(1.04);
}

.gallery-grid img:last-child {
  grid-column: 2;
}

.gallery-wave {
  top: 125px;
  left: -98px;
  width: 360px;
  height: 103px;
}

.gallery-petal {
  top: 171px;
  right: 70px;
  transform: rotate(-47deg) translate3d(0, var(--parallax, 0px), 0);
}

.gallery-arc {
  right: -128px;
  bottom: 22px;
  width: 340px;
  height: 340px;
  border-width: 74px;
  transform: rotate(44deg) translate3d(0, var(--parallax, 0px), 0);
}

.footer {
  min-height: max(75svh, 850px);
  margin-top: calc(-1 * var(--seam));
  padding: clamp(136px, 17vh, 178px) 28px 50px;
  clip-path: polygon(0 var(--seam), 100% 0, 100% 100%, 0 100%);
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1010px;
  margin: 0 auto;
}

.footer h2 {
  color: var(--yellow);
  text-align: center;
  font-size: 35px;
  margin-bottom: 64px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: 76px;
}

.contact-profile {
  text-align: center;
}

.contact-profile img {
  width: 168px;
  height: 168px;
  margin: 0 auto 27px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-profile h3 {
  margin-bottom: 29px;
  color: var(--yellow);
  font-size: 26px;
}

.contact-profile > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--yellow);
  font-size: 17px;
  transition: transform 170ms ease;
}

.contact-profile > a:hover,
.social-links a:hover {
  transform: translateY(-3px);
}

.contact-icon {
  color: var(--yellow);
  font-size: 27px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 34px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border: 1px solid rgb(255 242 124 / 45%);
  border-radius: 40px;
  color: var(--yellow);
  font-size: 14px;
  transition: transform 170ms ease, border-color 170ms ease;
}

.social-links .material-icons-round {
  font-size: 19px;
}

.contact-form {
  padding: 38px 42px 42px;
  border-radius: 28px;
  background: rgb(255 255 255 / 10%);
}

.contact-form h3 {
  margin-bottom: 13px;
  color: var(--yellow);
  font-size: 28px;
}

.contact-form p {
  margin-bottom: 25px;
  color: rgb(255 255 255 / 88%);
  font-size: 15px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.contact-form label span {
  display: block;
  margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgb(255 255 255 / 96%);
  font: inherit;
  font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgb(231 149 228 / 20%);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  border: 0;
  cursor: pointer;
  margin-top: 9px;
}

.copyright {
  margin-top: 76px;
  text-align: center;
  color: var(--yellow);
  font-size: 14px;
}

.footer-arc {
  left: -28px;
  bottom: 23px;
  width: 330px;
  height: 330px;
  border-width: 74px;
  transform: rotate(-28deg) translate3d(0, var(--parallax, 0px), 0);
}

.footer-petal {
  bottom: 42px;
  right: 72px;
  transform: rotate(-80deg) translate3d(0, var(--parallax, 0px), 0);
}

.reveal {
  opacity: 0;
  transform: translateY(23px);
  transition:
    opacity 620ms ease var(--delay, 0ms),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1024px) {
  .header-inner {
    padding: 0 28px;
  }

  .site-nav {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    padding: 90px 36px 132px;
  }

  .hero-inner {
    grid-template-columns: minmax(360px, 1fr) 300px;
    gap: 32px;
  }

  .about-intro {
    max-width: 700px;
  }

  .course-grid {
    max-width: 690px;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 64px;
  }

  .courses {
    min-height: max(75svh, 1160px);
  }

  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 30px 48px;
  }

  .schedule {
    min-height: max(75svh, 720px);
  }

  .gallery-grid img {
    width: 150px;
    height: 150px;
  }

  .courses-wave,
  .courses-arc,
  .about-arc-right {
    --shape-base-opacity: 0.55;
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-header.is-scrolled {
    height: 79px;
  }

  .menu-toggle {
    width: 43px;
    height: 43px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border: 0;
    padding: 9px;
    background: transparent;
    color: var(--green);
  }

  .menu-toggle span:not(.sr-only) {
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% - 4px);
    padding: 18px 24px;
    display: grid;
    gap: 5px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-9px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    font-size: 15px;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a::after {
    width: 65px;
  }

  .hero {
    min-height: max(75svh, 760px);
    padding: 62px 30px 128px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

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

  .hero h1 {
    font-size: clamp(46px, 11vw, 59px);
  }

  .hero-visual {
    width: min(100%, 430px);
    height: 298px;
    margin: 30px auto 0;
    align-self: center;
  }

  .hero-wave,
  .hero-petal {
    --shape-base-opacity: 0.35;
  }

  .about {
    padding: 64px 30px 82px;
  }

  .about-intro {
    flex-direction: column;
    gap: 34px;
    text-align: center;
  }

  .about-intro h2 {
    font-size: clamp(29px, 6.4vw, 34px);
  }

  .course-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .courses {
    min-height: var(--panel-height);
    padding: 96px 34px 124px;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .schedule {
    --seam: 38px;
    margin-top: calc(-1 * var(--seam));
    min-height: var(--panel-height);
    padding: 108px 34px 96px;
    clip-path: polygon(0 var(--seam), 100% 0, 100% 100%, 0 100%);
  }

  .schedule-grid {
    gap: 28px 32px;
  }

  .lesson-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .lesson-card .material-icons-round {
    font-size: 42px;
  }

  .lesson-card h3 {
    font-size: 19px;
  }

  .lesson-card p {
    font-size: 14px;
  }

  .enroll {
    --seam: 38px;
    margin-top: calc(-1 * var(--seam));
    padding: 108px 28px 108px;
    min-height: var(--panel-height);
    clip-path: polygon(0 var(--seam), 100% 0, 100% 100%, 0 100%);
  }

  .enroll-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .small-photo {
    width: min(100%, 500px);
    height: auto;
    aspect-ratio: 768 / 531;
  }

  .enroll-wave,
  .enroll-arc {
    --shape-base-opacity: 0.4;
  }

  .gallery {
    padding: 90px 24px 140px;
  }

  .gallery-grid {
    width: min(100%, 390px);
    gap: 18px;
  }

  .gallery-grid img {
    width: 112px;
    height: 112px;
  }

  .footer {
    --seam: 42px;
    margin-top: calc(-1 * var(--seam));
    padding: 124px 30px 56px;
    min-height: var(--panel-height);
    clip-path: polygon(0 var(--seam), 100% 0, 100% 100%, 0 100%);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .contact-form {
    padding: 34px 27px 38px;
  }

  .footer-arc,
  .footer-petal {
    --shape-base-opacity: 0.34;
  }

  .copyright {
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px;
  }
}

@media (max-width: 600px) {
  .course-grid {
    max-width: 340px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .course-card:nth-child(even),
  .lesson-card:nth-child(4n + 2),
  .lesson-card:nth-child(4n + 4) {
    margin-top: 0;
    margin-bottom: 0;
  }

  .schedule-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .lesson-card {
    max-width: 390px;
    margin-inline: auto;
  }

  .small-photo {
    width: min(112vw, 430px);
    max-width: none;
  }
}

@media (max-width: 480px) {
  :root {
    --panel-height: max(75svh, 570px);
  }

  .header-inner {
    padding: 0 19px;
  }

  .hero {
    padding: 52px 22px 112px;
  }

  .hero h1 {
    font-size: clamp(40px, 12.8vw, 50px);
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero-description,
  .hero-tagline,
  .about-intro p,
  .section-heading p {
    font-size: 15px;
  }

  .hero-visual {
    transform: scale(0.92);
    transform-origin: center top;
  }

  .courses {
    padding-inline: 20px;
  }

  .course-card {
    padding: 25px 22px 28px;
  }

  .course-card h3 {
    font-size: 19px;
  }

  .course-card p {
    font-size: 15px;
  }

  .gallery-grid {
    width: 288px;
    gap: 14px;
  }

  .gallery-grid img {
    width: 86px;
    height: 86px;
  }

  .contact-profile > a {
    font-size: 16px;
  }
}

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

  .shape {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}
