:root {
  --paper: #f7f1eb;
  --paper-deep: #e8d9ce;
  --ink: #0f344d;
  --ink-soft: #3f5f66;
  --muted: #7f866b;
  --line: #d8c7bb;
  --panel: #fffaf4;
  --sage: #7f8762;
  --sage-dark: #2f7a74;
  --rust: #bd704e;
  --rust-soft: #efd5c7;
  --navy: #0a334e;
  --teal: #2d7975;
  --mist: #cdded8;
  --sand: #ead8cb;
  --shadow: 0 24px 70px rgba(12, 52, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 16%, rgba(45, 121, 117, 0.2) 0 10px, transparent 11px),
    radial-gradient(circle at 81% 12%, rgba(189, 112, 78, 0.18) 0 16px, transparent 17px),
    radial-gradient(circle at 92% 38%, rgba(127, 135, 98, 0.2) 0 9px, transparent 10px),
    linear-gradient(120deg, rgba(10, 51, 78, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size:
    780px 620px,
    920px 660px,
    680px 560px,
    74px 74px,
    auto;
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
}

::selection {
  background: var(--rust-soft);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--rust-soft);
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 235, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 15px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 17vw, 215px);
  min-width: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}

.nav-links a:hover {
  border-color: var(--rust);
  color: var(--navy);
}

.nav-links [data-auth-nav] {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.nav-button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 6px 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nav-button:hover {
  border-color: var(--rust);
  color: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(10, 51, 78, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 51, 78, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 30px 30px;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(320px, 390px);
  align-items: center;
  gap: 82px;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  padding: 76px 0 64px;
}

.hero-content {
  max-width: 650px;
}

.eyebrow,
.section-label,
.course-kicker {
  margin-bottom: 14px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(2.7rem, 5.2vw, 5.15rem);
  line-height: 1.01;
}

h2 {
  color: var(--navy);
  margin-bottom: 0;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-text-secondary {
  margin: -18px 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--navy);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal);
}

.button.secondary {
  background: rgba(255, 250, 244, 0.74);
  color: var(--navy);
}

.button.secondary:hover {
  border-color: var(--rust);
  background: #ffffff;
  color: var(--rust);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-bottom: 0;
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 250, 244, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 4px solid var(--teal);
}

.hero-stats dt {
  color: var(--rust);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  margin: 0;
}

.hero-portrait::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  background: var(--mist);
  border-radius: 8px;
  content: "";
}

.hero-portrait img {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.hero-portrait img {
  height: 100%;
  box-shadow: var(--shadow);
  object-position: 50% 32%;
  border: 0;
}

.hero-portrait figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 14px 16px;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.hero-portrait figcaption span {
  display: block;
  margin-bottom: 3px;
  color: var(--rust);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section.band {
  width: 100%;
  max-width: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(45, 121, 117, 0.12) 0 44px, transparent 45px),
    linear-gradient(135deg, rgba(205, 222, 216, 0.64), rgba(234, 216, 203, 0.58));
}

.section.band > * {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.about-image {
  justify-self: end;
  width: min(100%, 320px);
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
  background: var(--mist);
}

.about-copy {
  max-width: 720px;
}

.about-copy p:not(.section-label) {
  color: var(--ink-soft);
  font-size: 1.07rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.about-highlights li {
  padding: 12px 14px;
  background: rgba(205, 222, 216, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 40px;
}

.section-heading p:not(.section-label) {
  max-width: 760px;
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.focus-section {
  padding-bottom: 38px;
}

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

.focus-grid a {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.focus-grid a:nth-child(2) {
  border-top-color: var(--rust);
}

.focus-grid a:nth-child(3) {
  border-top-color: var(--sage);
}

.focus-grid span {
  margin-bottom: 22px;
  color: var(--rust);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
}

.focus-grid strong {
  color: var(--navy);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.focus-grid p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.credibility-section {
  padding-top: 42px;
}

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

.credibility-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 26px;
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.credibility-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 94% 10%, rgba(189, 112, 78, 0.2) 0 42px, transparent 43px),
    linear-gradient(135deg, rgba(205, 222, 216, 0.48), rgba(255, 250, 244, 0.96));
}

.credibility-card img {
  display: block;
  width: 100%;
  height: 230px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  object-fit: cover;
  object-position: center;
}

.credibility-card.featured img {
  height: 360px;
  object-position: center 52%;
}

.credibility-date {
  display: block;
  margin-bottom: 18px;
  color: var(--rust);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.credibility-card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.credibility-card p {
  color: var(--ink-soft);
}

.credibility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 10px;
}

.credibility-tags span {
  padding: 7px 10px;
  background: rgba(205, 222, 216, 0.34);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.credibility-card a {
  width: fit-content;
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credibility-note {
  max-width: 870px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.course-section {
  padding-top: 72px;
  padding-bottom: 54px;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: 48px;
  align-items: start;
}

.course-intro p:last-child {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.course-panel,
.contact-panel,
.program-grid article,
.timeline-item {
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-panel {
  padding: 34px;
  border-top: 5px solid var(--rust);
}

.course-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.course-panel-header .course-kicker {
  margin-bottom: 0;
}

.course-panel-header strong {
  color: var(--rust);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.course-panel p,
.program-grid p,
.timeline-item p,
.contact-panel p,
.site-footer {
  color: var(--ink-soft);
}

.course-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.course-actions .button.secondary {
  margin-left: auto;
}

.course-details div {
  min-height: 104px;
  padding: 16px;
  background: rgba(205, 222, 216, 0.3);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-details span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-details p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

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

.program-grid article {
  padding: 24px;
  border-top: 4px solid var(--teal);
}

.program-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--rust);
  font-weight: 900;
}

.format-section {
  padding-top: 56px;
}

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

.timeline-item {
  min-height: 190px;
  padding: 24px;
  border-top: 5px solid var(--teal);
}

.timeline-item strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.05rem;
}

.faq-section {
  padding-top: 58px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-list details {
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 900;
  list-style-position: outside;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink-soft);
}

.contact-section {
  padding-top: 48px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 92% 18%, rgba(127, 135, 98, 0.16) 0 42px, transparent 43px),
    rgba(255, 250, 244, 0.95);
}

.contact-panel h2 {
  margin-bottom: 18px;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-actions .button {
  width: 100%;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 570px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 300px;
  color: var(--ink-soft);
  font-weight: 800;
}

.site-footer nav a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-footer {
  grid-template-columns: minmax(0, 1fr) auto;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 86px;
}

.legal-document {
  padding: 42px;
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin-bottom: 12px;
}

.legal-document h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

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

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-updated {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-chat {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.contact-chat[aria-hidden="false"] {
  display: block;
}

.chat-open {
  overflow: hidden;
}

.contact-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 51, 78, 0.42);
}

.contact-chat-panel {
  position: absolute;
  right: min(24px, 5vw);
  bottom: min(24px, 5vw);
  width: min(460px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(45, 121, 117, 0.16) 0 36px, transparent 37px),
    var(--panel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--rust);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(10, 51, 78, 0.25);
}

.contact-chat-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
}

.contact-chat-panel p:not(.section-label) {
  color: var(--ink-soft);
}

.contact-chat-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.contact-chat-close:hover {
  border-color: var(--rust);
  color: var(--rust);
}

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

.chat-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: 3px solid var(--rust-soft);
  border-color: var(--rust);
}

.chat-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden-frame {
  display: none;
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 13% 30%, rgba(10, 51, 78, 0.13) 0 50px, transparent 51px),
    radial-gradient(circle at 82% 18%, rgba(189, 112, 78, 0.16) 0 32px, transparent 33px),
    linear-gradient(135deg, rgba(205, 222, 216, 0.58), rgba(234, 216, 203, 0.46));
}

.catalog-hero::after {
  position: absolute;
  right: -11%;
  bottom: -86px;
  width: 46%;
  height: 190px;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.92) 0 22%, rgba(239, 213, 199, 0.92) 22% 56%, rgba(189, 112, 78, 0.86) 56% 100%);
  border-radius: 70% 30% 0 0 / 100% 100% 0 0;
  content: "";
  opacity: 0.9;
}

.catalog-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 70px;
}

.catalog-hero-inner h1 {
  max-width: 920px;
  margin-bottom: 22px;
}

.catalog-hero-inner p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
}

.catalog-section {
  padding-top: 72px;
}

.catalog-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-card-media {
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(10, 51, 78, 0.16) 0 44px, transparent 45px),
    var(--paper-deep);
}

.catalog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: 52% 35%;
}

.catalog-card-content {
  padding: 42px;
}

.catalog-card-content h2 {
  margin-bottom: 18px;
}

.catalog-card-content > p:not(.course-kicker) {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.catalog-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.catalog-features li {
  min-height: 72px;
  padding: 16px;
  background: rgba(205, 222, 216, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
}

.catalog-buy-box {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.catalog-card-footer strong,
.catalog-buy-box strong {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--sage-dark);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.55rem;
  line-height: 0.9;
}

.syllabus-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}

.syllabus-modal[aria-hidden="false"] {
  display: block;
}

.syllabus-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(205, 222, 216, 0.22), transparent 28%),
    rgba(10, 51, 78, 0.48);
}

.syllabus-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 241, 235, 0.98)),
    var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--rust);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(10, 51, 78, 0.28);
  transform: translate(-50%, -50%);
}

.syllabus-modal-panel h2 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.syllabus-modal-panel > p:not(.section-label) {
  max-width: 660px;
  color: var(--ink-soft);
}

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

.syllabus-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 250, 244, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.syllabus-block h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
  color: var(--rust);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
}

.syllabus-block h3 span {
  color: var(--muted);
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.syllabus-block ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: syllabus;
}

.syllabus-block li {
  position: relative;
  min-height: 44px;
  padding: 12px 14px 12px 48px;
  background: rgba(205, 222, 216, 0.26);
  border: 1px solid rgba(204, 179, 161, 0.72);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.28;
  counter-increment: syllabus;
}

.syllabus-block li::before {
  position: absolute;
  top: 11px;
  left: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: var(--navy);
  border-radius: 999px;
  color: #ffffff;
  content: counter(syllabus);
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-page,
.profile-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.auth-card,
.profile-card {
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  border-top: 5px solid var(--rust);
}

.auth-card h1,
.profile-header h1 {
  margin-bottom: 18px;
}

.auth-card > p:not(.section-label),
.auth-switch,
.empty-state {
  color: var(--ink-soft);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus {
  outline: 3px solid var(--rust-soft);
  border-color: var(--rust);
}

.auth-message {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.auth-message.error {
  color: var(--rust);
}

.auth-switch {
  margin: 22px 0 0;
}

.auth-switch a {
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration: underline;
}

.profile-header {
  margin-bottom: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.profile-card {
  padding: 30px;
  border-top: 5px solid var(--teal);
}

.profile-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.profile-course {
  padding: 18px;
  background: rgba(205, 222, 216, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-course + .profile-course {
  margin-top: 14px;
}

.profile-course h3 {
  margin-bottom: 10px;
}

.profile-course p:last-child {
  margin-bottom: 0;
}

.student-shell,
.lesson-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.student-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.student-heading h1,
.lesson-sidebar h1 {
  margin-bottom: 18px;
}

.student-heading p,
.lesson-sidebar > p:not(.section-label),
.lesson-copy p,
.student-card p {
  color: var(--ink-soft);
}

.student-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.student-card {
  padding: 30px;
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.student-card h2 {
  margin-bottom: 14px;
}

.student-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.student-card-meta span {
  padding: 7px 10px;
  background: rgba(205, 222, 216, 0.28);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.lesson-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.lesson-sidebar,
.lesson-player-panel {
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lesson-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 26px;
}

.lesson-sidebar h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

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

.lesson-block {
  display: grid;
  gap: 10px;
}

.lesson-block h2 {
  font-size: 1.2rem;
}

.lesson-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 241, 235, 0.86);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.lesson-button:hover,
.lesson-button.active {
  border-color: var(--teal);
  background: rgba(205, 222, 216, 0.34);
}

.lesson-button span {
  font-weight: 900;
  line-height: 1.2;
}

.lesson-button small {
  color: var(--muted);
  font-weight: 800;
}

.lesson-player-panel {
  overflow: hidden;
}

.video-frame {
  background: var(--navy);
}

.video-frame:fullscreen {
  display: grid;
  place-items: center;
  background: var(--navy);
}

.video-frame:fullscreen video {
  max-height: 100vh;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.lesson-copy {
  padding: 30px;
}

.lesson-copy h2 {
  margin-bottom: 14px;
}

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

  .nav-links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner,
  .about-section,
  .course-layout,
  .contact-panel,
  .catalog-card,
  .profile-grid,
  .lesson-shell,
  .student-courses {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    position: static;
    max-height: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 78px 0 62px;
  }

  .hero-portrait {
    max-width: 520px;
  }

  .section {
    padding: 70px 0;
  }

  .program-grid,
  .focus-grid,
  .credibility-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .credibility-card.featured {
    grid-column: auto;
  }

  .credibility-card.featured img {
    height: 260px;
  }

  .catalog-card-media img {
    max-height: 520px;
  }
}

@media (max-width: 640px) {
  body {
    background-size:
      520px 460px,
      560px 480px,
      460px 420px,
      96px 96px,
      auto;
  }

  .hero-inner {
    padding: 58px 0 48px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats,
  .program-grid,
  .focus-grid,
  .credibility-grid,
  .timeline,
  .course-details,
  .catalog-features {
    grid-template-columns: 1fr;
  }

  .hero-portrait::before {
    inset: 12px -10px -10px 12px;
  }

  .hero-portrait figcaption {
    position: static;
    max-width: none;
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .course-panel,
  .contact-panel,
  .catalog-card-content,
  .auth-card,
  .profile-card,
  .student-card,
  .lesson-sidebar,
  .lesson-copy {
    padding: 24px;
  }

  .course-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-actions .button.secondary {
    margin-left: 0;
  }

  .catalog-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-buy-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-left: 0;
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
    max-width: none;
  }

  .credibility-card,
  .credibility-card.featured {
    min-height: auto;
  }

  .credibility-card img,
  .credibility-card.featured img {
    height: 240px;
  }
}
