:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #eef2f6;
  --paper-2: #dfe7ef;
  --surface: #ffffff;
  --navy: #132238;
  --navy-soft: #24364f;
  --champagne: #c9a96b;
  --champagne-dark: #9b7743;
  --blue: #2f6f9f;
  --teal: #1f7a76;
  --coral: #b65f55;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
}

body.dark-theme {
  --ink: #edf3f8;
  --muted: #b6c2d0;
  --paper: #101826;
  --paper-2: #172437;
  --surface: #182538;
  --navy: #e9f0f7;
  --navy-soft: #24364f;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 159, 0.16), transparent 34rem),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 48%, var(--paper) 100%);
  background-attachment: fixed;
  font-family: "Poppins", Arial, sans-serif;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
}

.logo {
  font-family: "Cinzel", Georgia, serif;
  line-height: 1;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-weight: 600;
  list-style: none;
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.theme-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--navy) 0 48%, var(--champagne) 48%);
  border-radius: 999px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  padding: 6px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 132px clamp(20px, 6vw, 84px) 86px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(11, 19, 32, 0.96), rgba(19, 34, 56, 0.72) 48%, rgba(19, 34, 56, 0.18)),
    url("assets/programs/w9.jfif") center / cover no-repeat;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--champagne);
}

.hero h1,
.about h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1::before,
.about h2::before,
.section-heading h2::before,
.contact h2::before,
.academy-toggle > span:nth-child(2)::before {
  display: block;
  width: 72px;
  height: 10px;
  margin: 0 0 18px;
  content: "";
  background: linear-gradient(90deg, var(--champagne) 0 46%, var(--blue) 46% 74%, var(--teal) 74%);
  border-radius: 999px;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
}

.hero h1::before,
.program-gallery .section-heading h2::before {
  background: linear-gradient(90deg, var(--champagne) 0 55%, #ffffff 55%);
}

.hero h1 span {
  display: block;
  color: #f2d494;
}

.hero-content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  color: #1d2028;
  font-weight: 700;
  background: var(--champagne);
  border: 1px solid var(--champagne);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: #d8bb80;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--ink);
  background: #ffffff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: -46px auto 0;
  position: relative;
}

.stat-card,
.why-card,
.course-card,
.contact-form,
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 138px;
  padding: 24px;
}

.stat-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
}

.stat-card h2::before {
  display: none;
}

.stat-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

main section {
  padding: 86px clamp(20px, 6vw, 84px);
}

.about {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.about h2,
.section-heading h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  color: var(--navy);
}

.about > p,
.contact p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.why {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.why-card {
  min-height: 220px;
  padding: 26px;
  box-shadow: none;
  border-top-width: 8px;
}

.why-card span,
.course-card p {
  display: inline-flex;
  margin: 0 0 32px;
  color: var(--champagne-dark);
  font-weight: 700;
}

.why-card h3,
.course-card h3,
.course-card h4 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.why-card h3::before,
.course-card h4::before,
.showcase-copy h3::before {
  display: block;
  width: 44px;
  height: 7px;
  margin: 0 0 12px;
  content: "";
  background: var(--champagne);
  border-radius: 999px;
}

.option-blue h3::before,
.course-tile:nth-child(3n + 1) h4::before {
  background: var(--blue);
}

.option-gold h3::before,
.course-tile:nth-child(3n + 2) h4::before {
  background: var(--champagne);
}

.option-teal h3::before,
.course-tile:nth-child(3n) h4::before {
  background: var(--teal);
}

.option-coral h3::before {
  background: var(--coral);
}

.why-card p,
.course-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.option-blue {
  border-top-color: var(--blue);
}

.option-gold {
  border-top-color: var(--champagne);
}

.option-teal {
  border-top-color: var(--teal);
}

.option-coral {
  border-top-color: var(--coral);
}

.option-blue span {
  color: var(--blue);
}

.option-gold span {
  color: var(--champagne-dark);
}

.option-teal span {
  color: var(--teal);
}

.option-coral span {
  color: var(--coral);
}

.courses {
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.7) 0%, rgba(223, 231, 239, 0.7) 100%);
}

body.dark-theme .courses {
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.78) 0%, rgba(23, 36, 55, 0.78) 100%);
}

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

.academy-block {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.academy-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  gap: 18px;
  width: 100%;
  align-items: center;
  padding: 22px;
  color: var(--navy);
  text-align: left;
  background: var(--surface);
  border: 0;
  cursor: pointer;
}

.academy-toggle > span:nth-child(2) {
  margin: 0;
  color: var(--navy);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.toggle-icon {
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toggle-icon::before,
.toggle-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  content: "";
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.academy-block.is-open .toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.academy-label {
  min-width: fit-content;
  margin: 0;
  padding: 9px 13px;
  color: #ffffff;
  font-weight: 700;
  border-radius: 8px;
}

.academy-label.hospitality {
  background: var(--blue);
}

.academy-label.beauty {
  background: var(--coral);
}

.academy-label.business {
  background: var(--teal);
}

.academy-panel {
  display: grid;
  gap: 22px;
  padding: 0 22px 24px;
}

.academy-panel[hidden] {
  display: none;
}

.academy-preview {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.academy-preview::before,
.academy-preview::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 70px;
  content: "";
  pointer-events: none;
}

.academy-preview::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}

.academy-preview::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}

.preview-track {
  display: flex;
  width: max-content;
  height: 100%;
  gap: 16px;
  padding: 16px;
  animation: academy-preview-scroll 18s linear infinite;
}

.academy-preview:hover .preview-track {
  animation-play-state: paused;
}

.preview-track figure {
  position: relative;
  flex: 0 0 clamp(250px, 34vw, 430px);
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-track figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 11px;
  color: #ffffff;
  font-weight: 700;
  background: rgba(19, 34, 56, 0.82);
  border-radius: 8px;
}

.preview-placeholder {
  display: grid;
  place-items: center;
  color: rgba(17, 24, 39, 0.48);
  font-weight: 700;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 169, 107, 0.36), transparent 35%),
    linear-gradient(135deg, rgba(47, 111, 159, 0.22), rgba(31, 122, 118, 0.22), rgba(182, 95, 85, 0.18)),
    repeating-linear-gradient(45deg, rgba(17, 24, 39, 0.05) 0 12px, rgba(17, 24, 39, 0.1) 12px 13px);
}

@keyframes academy-preview-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.catalogue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card {
  min-height: 250px;
  padding: 26px;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.course-card p {
  padding: 7px 11px;
  margin-bottom: 28px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.84rem;
}

.course-tile {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
}

.course-tile img,
.course-image {
  width: 100%;
  height: 190px;
}

.course-tile img {
  display: block;
  object-fit: cover;
}

.course-image.placeholder {
  display: grid;
  place-items: center;
  color: rgba(17, 24, 39, 0.44);
  font-weight: 700;
  background:
    radial-gradient(circle at 18% 22%, rgba(201, 169, 107, 0.36), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(47, 111, 159, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(47, 111, 159, 0.2), rgba(31, 122, 118, 0.16), rgba(182, 95, 85, 0.16)),
    repeating-linear-gradient(45deg, rgba(17, 24, 39, 0.05) 0 10px, rgba(17, 24, 39, 0.1) 10px 11px);
  border-bottom: 1px solid var(--line);
}

.course-tile p,
.course-tile h4,
.course-tile span {
  margin-right: 22px;
  margin-left: 22px;
}

.course-tile p {
  width: fit-content;
  margin-top: 22px;
  margin-bottom: 16px;
}

.course-tile h4 {
  font-size: 1.08rem;
}

.course-tile span {
  padding-bottom: 24px;
}

.read-more {
  align-self: end;
  width: fit-content;
  min-height: 40px;
  margin: 0 22px 22px;
  padding: 9px 14px;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  background: color-mix(in srgb, var(--champagne) 82%, white);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.read-more:hover,
.read-more:focus-visible {
  background: var(--champagne);
}

.program-gallery {
  background: linear-gradient(180deg, #101826 0%, #132238 100%);
  color: #ffffff;
}

.program-gallery .section-kicker {
  color: #c9a96b;
}

.program-gallery .section-heading h2 {
  color: #ffffff;
}

.program-gallery .section-heading h2::before {
  background: linear-gradient(90deg, var(--champagne) 0 55%, #ffffff 55%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  min-height: 268px;
  overflow: hidden;
  background: #182538;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.gallery-card img,
.gallery-placeholder {
  display: grid;
  width: 100%;
  height: 168px;
  place-items: center;
  object-fit: cover;
}

.gallery-placeholder {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(47, 111, 159, 0.72), rgba(19, 34, 56, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 12px, rgba(255, 255, 255, 0.12) 12px 13px);
}

.beauty-card .gallery-placeholder {
  background:
    linear-gradient(135deg, rgba(182, 95, 85, 0.74), rgba(19, 34, 56, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 12px, rgba(255, 255, 255, 0.12) 12px 13px);
}

.business-card .gallery-placeholder {
  background:
    linear-gradient(135deg, rgba(31, 122, 118, 0.74), rgba(19, 34, 56, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 12px, rgba(255, 255, 255, 0.12) 12px 13px);
}

.gallery-card p {
  width: fit-content;
  margin: 18px 18px 10px;
  padding: 6px 10px;
  color: #132238;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--champagne);
  border-radius: 999px;
}

.gallery-card h3 {
  margin: 0 18px 22px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
}

.showcase-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.showcase-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.showcase-tab {
  min-height: 54px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.showcase-tab:hover,
.showcase-tab:focus-visible,
.showcase-tab.is-active {
  color: var(--navy);
  background: var(--champagne);
  transform: translateX(4px);
}

.showcase-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #0d1626;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.showcase-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.showcase-copy {
  display: grid;
  align-content: end;
  padding: 32px;
  background: linear-gradient(180deg, var(--navy-soft), var(--navy));
}

.showcase-copy p {
  width: fit-content;
  margin: 0 0 24px;
  padding: 7px 12px;
  color: var(--navy);
  font-weight: 700;
  background: var(--champagne);
  border-radius: 999px;
}

.showcase-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-family: "Cinzel", Georgia, serif;
}

.showcase-copy span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.contact {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 0.9fr);
  gap: 44px;
  align-items: center;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

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

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.submit-btn:disabled {
  color: rgba(17, 24, 39, 0.48);
  background: #c7ced8;
  border-color: #c7ced8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.is-ready {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.16);
}

footer {
  display: grid;
  gap: 18px;
  padding: 34px 20px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  background: var(--navy);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--navy);
  background: var(--champagne);
}

footer p {
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

.application-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.68);
}

.application-modal[hidden] {
  display: none;
}

.application-modal__overlay {
  position: absolute;
  inset: 0;
}

.application-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.application-modal__dialog .section-kicker {
  margin-bottom: 8px;
}

.application-modal__dialog h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.application-modal__dialog p {
  margin-top: 10px;
}

.application-modal-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

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

.application-modal-form input,
.application-modal-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.application-modal-form input:focus,
.application-modal-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.16);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.modal-submit-btn {
  justify-self: start;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    display: grid;
    width: min(280px, calc(100vw - 40px));
    gap: 4px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links a {
    width: 100%;
    padding: 12px;
  }

  .navbar.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .stats,
  .why-grid,
  .course-grid,
  .catalogue-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about,
  .contact,
  .showcase-shell,
  .showcase-slide {
    grid-template-columns: 1fr;
  }

  .showcase-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .showcase-tab {
    text-align: center;
  }

  .showcase-tab:hover,
  .showcase-tab:focus-visible,
  .showcase-tab.is-active {
    transform: translateY(-2px);
  }

  .showcase-stage,
  .showcase-slide img {
    min-height: 620px;
  }

  .showcase-copy {
    min-height: 260px;
  }

  .academy-toggle {
    grid-template-columns: 1fr 44px;
  }

  .academy-toggle .academy-label {
    width: fit-content;
  }

  .academy-toggle > span:nth-child(2) {
    grid-column: 1;
  }

  .toggle-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }
}

@media (max-width: 620px) {
  .navbar {
    padding: 14px 18px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .hero {
    min-height: 88vh;
    padding: 116px 20px 64px;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 15vw, 3.6rem);
  }

  .stats,
  .why-grid,
  .course-grid,
  .catalogue-grid,
  .showcase-tabs,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: -30px;
  }

  main section {
    padding: 62px 20px;
  }

  .hero-buttons,
  .hero-buttons .btn,
  .contact-form .btn {
    width: 100%;
  }

  .showcase-stage {
    min-height: 560px;
  }

  .showcase-slide img {
    min-height: 320px;
  }

  .showcase-copy {
    padding: 24px;
  }

  .academy-toggle,
  .academy-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .academy-preview {
    height: 210px;
  }

  .preview-track figure {
    flex-basis: 260px;
  }
}
