:root {
  --bg: #f7f3ec;
  --paper: #fffdfa;
  --linen: #eee5d7;
  --soft: #f4efe7;
  --earth: #6c5744;
  --ink: #20231f;
  --forest: #526b55;
  --blue: #607d9d;
  --gold: #b99645;
  --text: #2d2b28;
  --muted: #665f57;
  --line: rgba(45, 43, 40, .16);
  --shadow: 0 18px 48px rgba(37, 31, 24, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

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

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(1180px, calc(100% - 42px));
  margin: auto;
}

.small {
  width: min(900px, calc(100% - 42px));
  margin: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 236, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 900;
}

.brand img {
  width: auto;
  height: 44px;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a,
.subnav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 12px;
}

.nav a:hover,
.nav a.active,
.subnav a:hover {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(45, 43, 40, .08);
}

.subnav {
  position: sticky;
  top: 69px;
  z-index: 20;
  background: rgba(255, 253, 250, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.subnav .wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #191713;
}

.hero {
  min-height: 86vh;
}

.page-hero {
  min-height: 54vh;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 16, 13, .80), rgba(18, 16, 13, .36) 55%, rgba(18, 16, 13, .10)),
    linear-gradient(0deg, rgba(18, 16, 13, .86), rgba(18, 16, 13, 0) 62%);
}

.hero > img,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content,
.page-hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-content {
  padding: 115px 0 84px;
}

.page-hero .wrap {
  padding: 115px 0 66px;
}

.hero-logo {
  width: min(500px, 82vw);
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: inherit;
}

.hero h1,
.page-hero h1 {
  max-width: 1050px;
  margin: 0 0 24px;
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: .94;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
}

h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.15;
}

.claim {
  max-width: 800px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(19px, 2.2vw, 29px);
  line-height: 1.35;
}

.lead {
  color: #46413a;
  font-size: 21px;
  line-height: 1.52;
}

.muted {
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.section.tight {
  padding: 58px 0;
}

.alt {
  background: var(--linen);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.grid3,
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.card,
.course,
.notice,
.form-demo {
  background: var(--paper);
  border: 1px solid rgba(45, 43, 40, .09);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(45, 43, 40, .08);
}

.card,
.course,
.notice {
  padding: 30px;
}

.card p:last-child,
.course p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.card.accent {
  border-top: 5px solid var(--forest);
}

.card.gold {
  border-top: 5px solid var(--gold);
}

.card.blue {
  border-top: 5px solid var(--blue);
}

.photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: var(--shadow);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo.tall {
  height: 610px;
}

.photo.medium {
  height: 430px;
}

.photo.short {
  height: 320px;
}

.statement {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(40px, 6.5vw, 90px);
  font-weight: 950;
  line-height: .98;
}

.statement span {
  color: var(--forest);
}

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
}

.btn.primary {
  background: var(--gold);
  color: #fff;
}

.btn.secondary {
  background: var(--forest);
  color: #fff;
}

.btn.signup {
  background: var(--blue);
  color: #fff;
}

.btn.light {
  background: #fff;
  color: var(--ink);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, .58);
  color: #fff;
}

.btn.disabled {
  cursor: default;
  background: #d8d1c6;
  color: #5c554d;
}

.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.teaser {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(45, 43, 40, .09);
  transition: transform .2s ease;
}

.teaser:hover {
  transform: translateY(-4px);
}

.teaser img {
  width: 100%;
  height: 205px;
  object-fit: cover;
}

.teaser .pad {
  padding: 22px;
}

.teaser p {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr 1fr;
  gap: 14px;
}

.gallery img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(45, 43, 40, .11);
}

.gallery img:nth-child(1) {
  height: 500px;
  grid-row: span 2;
}

.gallery img:nth-child(4) {
  grid-column: 2 / 4;
}

.gallery.trio {
  grid-template-columns: repeat(3, 1fr);
}

.gallery.trio img,
.gallery.trio img:nth-child(1),
.gallery.trio img:nth-child(4) {
  height: 340px;
  grid-column: auto;
  grid-row: auto;
}

.camp {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.camp img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.camp .pad {
  padding: 50px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.fact {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, .06);
}

.fact strong {
  display: block;
  color: var(--gold);
  font-size: 27px;
  line-height: 1;
}

.content h2 {
  margin-top: 42px;
  font-size: clamp(31px, 4vw, 46px);
}

.content h2:first-child {
  margin-top: 0;
}

.content p,
.content li {
  color: #48433d;
  font-size: 18px;
}

.content ul {
  padding-left: 1.2rem;
}

.quote,
.callout {
  margin: 36px 0;
  color: var(--ink);
  font-size: clamp(29px, 4vw, 55px);
  font-weight: 950;
  line-height: 1.09;
}

.quote {
  padding: 32px 34px;
  background: #fff;
  border-left: 7px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout {
  max-width: 970px;
}

.course {
  margin-top: 24px;
}

.course:first-of-type {
  margin-top: 0;
}

.course-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: -8px 0 24px;
}

.detail {
  border-top: 3px solid rgba(185, 150, 69, .74);
  background: rgba(255, 255, 255, .74);
  border-radius: var(--radius);
  padding: 14px 16px 15px;
}

.detail span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1;
  text-transform: uppercase;
}

.detail strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.course-visual {
  overflow: hidden;
  margin: 22px 0;
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(45, 43, 40, .10);
}

.course-visual img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.course-note {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-hero {
  background: #2b2f31;
  color: #fff;
  padding: 70px 0;
}

.legal-hero .wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  align-items: center;
}

.legal-hero img {
  width: 220px;
  max-height: 290px;
  object-fit: contain;
}

.legal-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .95;
}

.legal-hero p {
  color: rgba(255, 255, 255, .84);
}

.event-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.event {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(45, 43, 40, .09);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(45, 43, 40, .08);
}

.event h3 {
  margin-bottom: 8px;
}

.person {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
}

.person img {
  width: 190px;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(45, 43, 40, .12);
}

.teacher-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.teacher-grid .person {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
}

.teacher-grid .person img {
  width: 210px;
  height: 250px;
}

.topic-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.topic {
  padding: 30px;
  background: #fff;
  border-left: 6px solid var(--forest);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(45, 43, 40, .08);
}

.topic.gold {
  border-left-color: var(--gold);
}

.topic.blue {
  border-left-color: var(--blue);
}

.topic ol {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.topic-parts {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.topic-part {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.topic-part h3 {
  color: var(--ink);
  font-size: 23px;
}

.children-hero::before {
  background:
    linear-gradient(90deg, rgba(18, 16, 13, .72), rgba(18, 16, 13, .30) 56%, rgba(18, 16, 13, .08)),
    linear-gradient(0deg, rgba(18, 16, 13, .72), rgba(18, 16, 13, 0) 64%);
}

.album-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(45, 43, 40, .09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.album-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff7df;
}

.album-pad {
  padding: 28px;
}

.character-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.character-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--paper);
  border: 1px solid rgba(45, 43, 40, .09);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(45, 43, 40, .08);
  padding: 28px;
}

.character-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
}

.course .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.2;
  margin: 4px;
  padding: 9px 13px;
}

.price {
  margin: 0;
  color: var(--gold);
  font-size: 42px;
  font-weight: 950;
}

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stage {
  min-height: 190px;
  border-radius: var(--radius);
  padding: 25px 20px;
  box-shadow: 0 12px 32px rgba(45, 43, 40, .08);
}

.stage p {
  margin: 0;
}

.s1 {
  background: #fff8ea;
}

.s2 {
  background: var(--earth);
  color: #fff;
}

.s2 p,
.s3 p {
  color: rgba(255, 255, 255, .88);
}

.s3 {
  background: var(--gold);
  color: #fff;
}

.s4 {
  background: #d9e5ef;
}

.form-demo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 34px;
}

.registration-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.form-grid span {
  font-size: 14px;
}

.form-grid input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
}

.form-grid input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(96, 125, 157, .18);
}

.required-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin-bottom: 24px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(45, 43, 40, .09);
  box-shadow: 0 14px 40px rgba(45, 43, 40, .08);
}

.alert h2 {
  margin-top: 0;
  font-size: clamp(31px, 4vw, 46px);
}

.alert.success {
  border-top: 5px solid var(--forest);
}

.alert.error {
  border-top: 5px solid #b4564a;
}

.demo-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 0;
}

.demo-field {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  padding: 12px 14px;
}

.legal {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}

.footer {
  padding: 56px 0;
  background: #1f1b17;
  color: rgba(255, 255, 255, .82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
}

.footer img {
  width: 210px;
  margin-bottom: 18px;
}

.footer a,
.footer strong {
  color: #fff;
}

@media (max-width: 980px) {
  .topbar .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .subnav {
    top: 126px;
  }

  .grid2,
  .camp,
  .footer-grid,
  .form-demo,
  .event,
  .person,
  .teacher-grid .person,
  .legal-hero .wrap {
    grid-template-columns: 1fr;
  }

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

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

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery.trio {
    grid-template-columns: 1fr;
  }

  .gallery img,
  .gallery img:nth-child(1),
  .gallery img:nth-child(4),
  .gallery.trio img,
  .gallery.trio img:nth-child(1) {
    height: 300px;
    grid-column: auto;
    grid-row: auto;
  }

  .photo.tall {
    height: 430px;
  }

  .teacher-grid .person img {
    width: min(100%, 260px);
    height: auto;
    aspect-ratio: 4 / 5;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .wrap,
  .small {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 46px;
  }

  .section {
    padding: 62px 0;
  }

  .subnav {
    position: static;
  }

  .grid3,
  .cards2,
  .cards3,
  .facts,
  .stages,
  .demo-fields,
  .form-grid,
  .course-details {
    grid-template-columns: 1fr;
  }

  .camp .pad,
  .album-pad,
  .card,
  .character-card,
  .course,
  .notice,
  .form-demo {
    padding: 26px;
  }

  .character-card {
    grid-template-columns: 1fr;
  }

  .quote {
    padding: 24px;
    font-size: 31px;
  }
}
