:root {
  --background: #fbfaf7;
  --foreground: #232344;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; background: var(--background); color: var(--foreground); font: 16px/1.6 "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif; }
h1, h2, p { margin: 0; }
button, input, textarea { font: inherit; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #ffb900; outline-offset: 3px; }
.wrap { width: min(100% - 48px, 1260px); margin-inline: auto; }

.skip-link { position: absolute; z-index: 300; top: 8px; left: 8px; transform: translateY(-150%); background: #fff; color: #232344; padding: 12px 16px; border: 2px solid #454281; border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: white; border-bottom: 1px solid #e8e6ea; }
.header-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { display: block; width: clamp(225px, 30vw, 365px); height: auto; }
.site-header .desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font-size: 1.05rem; font-weight: 700; }
.site-header nav a:not(.nav-course):hover, .footer-inner a:hover, .text-link:hover { color: #e6437f; }
.nav-course { border: 1px solid #454281; padding: 12px 19px; border-radius: 100px; white-space: nowrap; }
.nav-course:hover { background: #454281; color: #fff; }
.menu-toggle, .mobile-menu { display: none; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; padding-block: 76px 92px; }
.hero-copy { padding-block: 24px; }
.eyebrow { font-size: 1rem; font-weight: 800; letter-spacing: .12em; line-height: 1.5; color: #b73669; margin-bottom: 28px; }
.hero h1, h2, .contact-page h1 { font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif; font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.hero h1 { font-size: clamp(3.1rem, 5.4vw, 5.6rem); margin-bottom: 28px; }
.hero h1 .highlight { color: #514c91; font-weight: 400; font-style: normal; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; max-width: 570px; color: #505067; margin-bottom: 32px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; border: 0; border-radius: 100px; padding: 16px 26px; background: #44417e; color: white; font-size: 1rem; font-weight: 700; cursor: pointer; min-height: 56px; transition: transform .2s, background .2s; }
.button:hover { background: #2c2a61; transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.hero .actions { gap: 16px; }
.hero .button { gap: 16px; border-radius: 16px; }
.hero .text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; }
.trust-line { margin-top: 24px; color: #4b4a62; font-size: .94rem; line-height: 1.6; }
.trust-line span { padding-inline: 4px; }
.hero-image { position: relative; min-height: 570px; overflow: hidden; border-radius: 220px 220px 18px 18px; background: #e8e3d9; }
.hero-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 57% center; }
.image-caption { position: absolute; bottom: 23px; left: 23px; background: #fff; color: #3d3a6d; padding: 8px 17px; border-radius: 100px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }

.intro { border-top: 1px solid #dedce2; display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-block: 88px 100px; }
.intro h2, .path h2 { font-size: clamp(2rem, 2.9vw, 3.15rem); max-width: 540px; }
.intro p:not(.eyebrow) { font-size: 1.18rem; line-height: 1.75; color: #4d4d62; max-width: 570px; margin-bottom: 20px; }
.path-section { background: #47447e; color: white; }
.path { padding-block: 67px; display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.path .eyebrow { color: #ffc9da; }
.path h2 { margin-bottom: 16px; }
.path p:not(.eyebrow) { font-size: 1.08rem; color: #e8e8f2; max-width: 530px; }
.button-light { background: #fff; color: #37346d; flex-shrink: 0; }
.button-light:hover { background: #fce2eb; color: #37346d; }
#about, #courses { scroll-margin-top: 88px; }

.site-footer { background: #25243f; color: #f0eff7; }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .89rem; }
.footer-links { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links nav { display: flex; align-items: center; gap: 24px; }
.footer-links nav[aria-label="Footer navigation"] { flex-wrap: wrap; }
.footer-links a:hover { color: #ffc9da; }
.footer-links .social-links-footer { display: flex; flex-wrap: nowrap; gap: 8px; }
.social-links-footer a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #797793; border-radius: 50%; color: #fff; }
.social-links-footer a:hover { background: #fff; color: #25243f; }

.contact-page { padding-block: 86px 110px; min-height: 70vh; display: grid; grid-template-columns: 1fr minmax(400px, 570px); gap: 10%; align-items: start; }
.contact-page h1 { font-size: clamp(3.1rem, 5vw, 5.2rem); margin-bottom: 25px; }
.contact-page .lead { margin: 0; }
.contact-card { background: #fff; border: 1px solid #e9e6ec; box-shadow: 0 22px 70px #25243f0b; border-radius: 20px; padding: clamp(24px, 4vw, 46px); }
.contact-card label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-row { margin-bottom: 23px; }
.contact-card input, .contact-card textarea { display: block; width: 100%; border: 1px solid #d4d3df; background: #fff; border-radius: 9px; padding: 14px 16px; color: #232344; font: inherit; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.contact-card input { height: 36px; }
.contact-card textarea { height: 170px; min-height: 170px; resize: vertical; }
.contact-card input:focus, .contact-card textarea:focus { border-color: #454281; }
.contact-card .button { line-height: 22.8571px; }
.form-message { margin-top: 16px; font-weight: 700; }
.form-message.error { color: #b02245; }
.form-message.success { color: #2d6851; }

@media (max-width: 1000px) {
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-block: 20px; }
  .brand img { width: min(100%, 340px); }
  .site-header .desktop-nav { width: 100%; justify-content: space-between; }
}
@media (max-width: 850px) {
  .hero { gap: 28px; }
  .hero-image { min-height: 480px; }
  .contact-page { grid-template-columns: 1fr; gap: 35px; }
  .contact-page .lead { max-width: 650px; }
}
@media (max-width: 767px) {
  .site-header { position: sticky; top: 0; z-index: 100; }
  .header-inner { height: 72px; min-height: 72px; padding-block: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { display: block; min-width: 0; max-width: calc(100% - 68px); }
  .brand img { width: auto; height: 44px; max-height: 44px; max-width: 100%; object-fit: contain; object-position: left center; }
  .site-header .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #d8d7e2; border-radius: 12px; background: #fff; color: #232344; cursor: pointer; }
  .hamburger { display: grid; gap: 5px; width: 21px; }
  .hamburger span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
  .mobile-menu:not([hidden]) { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; background: #fbfaf7; padding: 24px max(18px, calc((100vw - 1260px) / 2)); color: #232344; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
  .mobile-menu-title { font-weight: 800; font-size: 1.25rem; }
  .menu-close { width: 48px; height: 48px; border: 1px solid #d8d7e2; border-radius: 12px; background: #fff; color: #232344; font: normal 2rem/1 Arial, sans-serif; cursor: pointer; }
  .site-header .mobile-menu nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; font-size: clamp(1.35rem, 5vw, 1.75rem); }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid #dedce2; font-weight: 700; }
  .mobile-course-button { align-self: stretch; justify-content: space-between; border-radius: 16px; min-height: 56px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-block: 40px 64px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.65rem, 8.1vw, 4.1rem); line-height: 1.1; letter-spacing: -.045em; }
  .hero .lead { font-size: 1.08rem; line-height: 1.6; margin-bottom: 24px; }
  .hero .actions { align-items: flex-start; }
  .hero-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 4/3; border-radius: 16px; }
  .hero-image img { object-position: center; }
  .image-caption { left: 16px; bottom: 16px; }
  .contact-page h1 { font-size: clamp(2.45rem, 7vw, 3.5rem); margin-bottom: 24px; }
  .footer-inner { align-items: flex-start; gap: 16px; padding-block: 32px; }
  .footer-links { width: 100%; align-items: flex-start; }
  .footer-links nav[aria-label="Footer navigation"] { gap: 16px 24px; }
  .eyebrow { margin-bottom: 24px; }
  .hero h1 { margin-bottom: 24px; }
  .intro { gap: 24px; }
  .intro p:not(.eyebrow) { margin-bottom: 16px; }
  .path { padding-block: 56px; }
  .contact-page { padding-block: 56px 72px; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 36px, 1260px); }
  .intro { grid-template-columns: 1fr; padding-block: 64px; }
  .intro h2, .path h2 { font-size: clamp(1.95rem, 7vw, 2.5rem); }
  .intro p:not(.eyebrow) { font-size: 1.06rem; }
  .path { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-direction: column; justify-content: center; }
  .footer-links { justify-content: flex-start; flex-direction: column; gap: 30px; }
  .footer-links nav { flex-wrap: wrap; }
  .contact-card { padding: 24px; }
}
@media (max-width: 420px) {
  .hero .actions { flex-direction: column; gap: 8px; }
  .hero .button { width: 100%; justify-content: space-between; }
}
