:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f3;
  --text: #181817;
  --muted: #666760;
  --line: #ddddda;
  --dark: #181817;
  --dark-2: #242421;
  --orange: #ff7d2f;
  --orange-dark: #e86416;
  --white: #ffffff;
  --container: 1180px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(24, 24, 23, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,221,218,.85);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
}

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

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  color: #383835;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a:hover { color: var(--orange); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language {
  display: flex;
  gap: 6px;
  color: #999;
  font-size: 13px;
}
.language a { color: #888; }
.language a.active { color: var(--text); font-weight: 800; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  transition: .2s ease;
}
.button-small { min-height: 42px; padding-inline: 18px; font-size: 14px; }
.button-primary { background: var(--orange); color: var(--white); }
.button-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.button-dark { background: var(--dark); color: var(--white); }
.button-dark:hover { background: var(--orange); }
.button-light { background: #fff; color: var(--text); }
.button-light:hover { background: #f2f2ef; }
.button-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
.button-ghost-light:hover { border-color: #fff; }

/* Hero */
.hero {
  padding: 92px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: 88px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 12px;
  line-height: 1.3;
}

.hero h1,
.section h2,
.cta h2 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(52px, 6.2vw, 86px);
  font-weight: 850;
}

.hero-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #52534e;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.text-link { font-weight: 800; }
.text-link span {
  color: var(--orange);
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s ease;
}
.text-link:hover span { transform: translateX(4px); }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #60615c;
  font-size: 14px;
}

.hero-points li {
  position: relative;
  padding-left: 15px;
}
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  left: 0;
  top: .68em;
}

.panel-label {
  color: #8e8e89;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 12px;
}

.terminal-card {
  background: var(--dark);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal-top {
  height: 46px;
  background: var(--dark-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
}
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555650;
}
.terminal-top span:first-child { background: var(--orange); }

.terminal-body {
  min-height: 360px;
  padding: 34px;
  color: #d5d5d1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}
.terminal-body p { margin: 0 0 8px; }
.terminal-value {
  margin: 0 0 24px !important;
  color: #fff;
  font-size: 18px;
}
.prompt { color: var(--orange); margin-right: 8px; }
.terminal-value.accent { color: #ff9a50; }

.panel-note {
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--orange);
  color: var(--muted);
  font-size: 14px;
}

/* General */
.section { padding: 108px 0; }
.section-alt { background: var(--bg-soft); }

.section-heading {
  max-width: 780px;
  margin-bottom: 52px;
}
.section-heading.narrow { max-width: 760px; }

.section-heading h2,
.about-grid h2,
.faq-title h2 {
  font-size: clamp(38px, 4.5vw, 58px);
}

.section-heading > p:last-child,
.geography-lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr .7fr;
  align-items: end;
  gap: 70px;
}
.split-heading > p:last-child { margin: 0 0 4px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.feature-number {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.feature-card h3 {
  margin: 28px 0 12px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.feature-card p { margin: 0; color: var(--muted); }

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.course-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid #deded9;
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: #c6c6c0;
  box-shadow: 0 18px 40px rgba(30,30,27,.07);
}
.course-tag {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
}
.course-card h3 {
  margin: 34px 0 14px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.course-card p { margin: 0; color: var(--muted); }
.course-link {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 800;
  font-size: 14px;
}

/* Geography */
.geography-grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 90px;
}

.geography-grid h2 {
  font-size: clamp(38px, 4.5vw, 58px);
}

.geography-lead { margin-top: 0; }

.geo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.geo-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
}
.muted { color: var(--muted); }

/* Learning */
.section-dark {
  background: var(--dark);
  color: #fff;
}
.section-heading.light > p:last-child { color: #a6a7a2; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #383834;
  border: 1px solid #383834;
}
.step {
  min-height: 300px;
  padding: 30px 26px;
  background: var(--dark);
}
.step > span {
  display: inline-block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 80px;
}
.step h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}
.step p { margin: 0; color: #a7a8a2; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.about-grid h2,
.faq-title h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.about-copy { font-size: 18px; }
.about-copy p {
  color: var(--muted);
  margin: 0 0 18px;
}
.about-meta {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-meta span {
  padding: 8px 12px;
  border: 1px solid #d5d5d0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: .65fr 1fr;
  gap: 100px;
}
.faq-title p:last-child { color: var(--muted); }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  padding: 24px 44px 24px 0;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 20px;
  width: 30px;
  height: 30px;
  border: 1px solid #d0d0cb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin: -6px 0 24px;
  padding-right: 50px;
  color: var(--muted);
}

/* CTA */
.cta {
  padding: 82px 0;
  background: var(--orange);
  color: #fff;
}
.cta .eyebrow { color: #fff; opacity: .78; }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 70px;
}
.cta h2 {
  font-size: clamp(38px, 4.8vw, 60px);
  max-width: 760px;
}
.cta p:last-child {
  max-width: 720px;
  font-size: 18px;
  opacity: .9;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #11110f;
  color: #d8d8d3;
  padding: 72px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
}
.footer-logo {
  width: 82px;
  height: 82px;
}
.footer-brand p {
  max-width: 360px;
  color: #8f908a;
}
.footer-grid h3 {
  margin: 4px 0 18px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-grid a,
.footer-grid p {
  margin: 0 0 10px;
  color: #979891;
  font-size: 14px;
}
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid #2d2d29;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #676862;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-panel { max-width: 700px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .about-grid,
  .faq-grid,
  .geography-grid {
    gap: 55px;
  }

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

  .footer-grid > div:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  .site-header { position: relative; }
  .header-inner { min-height: 70px; }
  .brand-logo { width: 50px; height: 50px; }
  .header-actions .button { display: none; }

  .hero { padding: 64px 0 70px; }
  .hero h1 { font-size: clamp(44px, 13vw, 68px); }
  .hero-lead { font-size: 18px; }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .terminal-body {
    min-height: auto;
    padding: 28px 24px;
  }

  .section { padding: 78px 0; }

  .section-heading,
  .section-heading.light {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .about-grid h2,
  .faq-title h2 {
    font-size: 40px;
  }

  .split-heading,
  .feature-grid,
  .course-grid,
  .geography-grid,
  .about-grid,
  .faq-grid,
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-heading > p:last-child { margin: 0; }
  .feature-grid { gap: 34px; }

  .course-card { min-height: 260px; }

  .steps { grid-template-columns: 1fr; }
  .step { min-height: 240px; }
  .step > span { margin-bottom: 50px; }

  .about-grid,
  .faq-grid {
    gap: 46px;
  }

  .cta { padding: 68px 0; }
  .cta-actions { align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }

  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .language { font-size: 12px; }
  .hero h1 { font-size: 43px; }

  .hero-points { grid-template-columns: 1fr; }

  .section-heading h2,
  .about-grid h2,
  .faq-title h2,
  .cta h2 {
    font-size: 35px;
  }

  .course-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Contacts */
.contacts {
  border-top: 1px solid var(--line);
}

.contacts-grid {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 90px;
  align-items: start;
}

.contacts-title h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.contacts-title > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: .2s ease;
}

.contact-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.contact-card-wide {
  grid-column: 1 / -1;
  min-height: 150px;
}

.contact-label {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.contact-card strong {
  margin-top: auto;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.contact-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card-wide {
    grid-column: auto;
  }

  .contact-card {
    min-height: 155px;
  }
}


/* Top contact bar */
.top-contact-bar {
  background: #11110f;
  color: #d7d7d2;
  font-size: 12px;
}

.top-contact-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.top-contact-inner a {
  color: #d7d7d2;
  white-space: nowrap;
}

.top-contact-inner a:hover {
  color: #fff;
}

.top-contact-inner a span {
  color: #85867f;
  margin-right: 5px;
}

.top-contact-label {
  color: #6f706a;
  margin-right: -8px;
}

.footer-name {
  display: block;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.03em;
  margin: 2px 0 14px;
}

@media (max-width: 760px) {
  .top-contact-inner {
    min-height: 38px;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .top-contact-inner::-webkit-scrollbar {
    display: none;
  }

  .top-contact-label,
  .top-contact-inner a span {
    display: none;
  }
}

@media (max-width: 560px) {
  .top-contact-inner {
    justify-content: flex-start;
  }

  .top-contact-inner a {
    font-size: 11px;
  }
}


/* Course groups */
.course-groups {
  display: grid;
  gap: 54px;
}

.course-group {
  padding-top: 30px;
  border-top: 1px solid #d7d7d2;
}

.course-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.course-group-head {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 26px;
}

.course-group-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.course-group-head h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.course-group-head p {
  margin: 0 0 4px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .course-group-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-groups {
    gap: 42px;
  }
}


/* Production additions */
.top-contact-bar {
  background: #11110f;
  color: #d7d7d2;
  font-size: 12px;
}
.top-contact-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.top-contact-inner a { color: #d7d7d2; white-space: nowrap; }
.top-contact-inner a:hover { color: #fff; }
.top-contact-inner a span { color: #85867f; margin-right: 5px; }
.top-contact-label { color: #6f706a; margin-right: -8px; }

.footer-name {
  display: block;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.03em;
  margin: 2px 0 14px;
}

.contacts { border-top: 1px solid var(--line); }
.contacts-grid {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 90px;
  align-items: start;
}
.contacts-title h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.contacts-title > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: .2s ease;
}
.contact-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.contact-card-wide { grid-column: 1 / -1; min-height: 150px; }
.contact-label {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.contact-card strong {
  margin-top: auto;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.contact-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.course-meta {
  margin-top: 10px;
  color: #7a7b75;
  font-size: 12px;
  font-weight: 700;
}
.course-card .course-meta + h3 { margin-top: 22px; }

@media (max-width: 760px) {
  .top-contact-inner {
    min-height: 38px;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .top-contact-inner::-webkit-scrollbar { display: none; }
  .top-contact-label,
  .top-contact-inner a span { display: none; }

  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card-wide { grid-column: auto; }
  .contact-card { min-height: 155px; }
}
@media (max-width: 560px) {
  .top-contact-inner { justify-content: flex-start; }
  .top-contact-inner a { font-size: 11px; }
}


/* =========================================================
   Header anchor offset + mobile navigation
   ========================================================= */

/* Sticky header is ~110px high on desktop. Keep anchored sections
   comfortably below it instead of pinning their eyebrow to the header. */
#courses,
#learning,
#about,
#faq,
#contacts {
  scroll-margin-top: 150px;
}

/* Burger is mobile-only. */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: none;
}

@media (max-width: 1060px) {
  .desktop-course-button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 95;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(24,24,23,.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

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

  .mobile-menu-inner {
    padding-top: 14px;
    padding-bottom: 18px;
    display: grid;
  }

  .mobile-menu-inner > a:not(.button) {
    padding: 15px 2px;
    border-bottom: 1px solid #ecece8;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
  }

  .mobile-menu-inner > a:not(.button):hover {
    color: var(--orange);
  }

  .mobile-course-button {
    margin-top: 18px;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  /* Header is not sticky in the current mobile layout, so a smaller
     anchor cushion feels natural when navigating within the page. */
  #courses,
  #learning,
  #about,
  #faq,
  #contacts {
    scroll-margin-top: 28px;
  }

  .header-inner {
    gap: 18px;
  }

  .header-actions {
    gap: 12px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-menu {
    position: absolute;
  }

  .mobile-menu-inner {
    padding-top: 10px;
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .mobile-course-button {
    width: 100%;
  }
}


/* =========================================================
   Final navigation + anchor layout corrections
   ========================================================= */

.top-contact-bar {
  position: relative;
  z-index: 101;
}

/* Keep only the main navigation sticky. The contact strip scrolls away. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Avoid showing the previous section when navigating by anchors. */
#courses,
#learning,
#about,
#faq,
#contacts {
  scroll-margin-top: 0;
}

/* Courses heading: explanatory copy begins around the H2 level,
   so the left column is no longer pushed down by the taller right copy. */
.split-heading {
  align-items: start;
}

.split-heading > p:last-child {
  margin-top: 31px;
  margin-bottom: 0;
}

@media (max-width: 760px) {
  /* Override the old mobile rule that disabled sticky navigation. */
  .site-header {
    position: sticky;
    top: 0;
  }

  #courses,
  #learning,
  #about,
  #faq,
  #contacts {
    scroll-margin-top: 0;
  }

  .split-heading > p:last-child {
    margin-top: 0;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }
}


/* =========================================================
   Language switcher
   ========================================================= */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lang-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 5px 2px;
  color: #9a9a95;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lang-button:hover,
.lang-button.active {
  color: var(--text);
}

.lang-button.active {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}


/* =========================================================
   Cookie consent
   ========================================================= */
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 1180px;
  margin: 0 auto;
  background: #181817;
  color: #fff;
  border: 1px solid #343430;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 24px 26px;
}

.cookie-copy {
  max-width: 760px;
}

.cookie-title {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.25;
}

.cookie-copy p {
  margin: 0;
  color: #c5c5c0;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-copy small {
  display: block;
  margin-top: 8px;
  color: #85867f;
  font-size: 11px;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button-cookie-secondary {
  background: transparent;
  border-color: #555650;
  color: #fff;
}

.button-cookie-secondary:hover {
  border-color: #fff;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 16px;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

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


/* =========================================================
   Course badges
   ========================================================= */
.course-card {
  position: relative;
}

.course-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: calc(100% - 36px);
  padding: 6px 9px;
  border: 1px solid rgba(255,125,47,.28);
  border-radius: 999px;
  background: rgba(255,125,47,.09);
  color: var(--orange);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Leave room for the badge on marked cards. */
.course-card:has(.course-badge) .course-tag {
  max-width: calc(100% - 150px);
}

@media (max-width: 480px) {
  .course-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 14px;
  }

  .course-card:has(.course-badge) .course-tag {
    max-width: none;
  }
}


/* =========================================================
   Course detail page
   ========================================================= */
.course-hero { padding: 58px 0 76px; border-bottom: 1px solid var(--line); }
.course-back { display:inline-block; margin-bottom:46px; color:var(--muted); font-size:13px; font-weight:800; }
.course-back:hover { color:var(--orange); }
.course-hero-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(360px,.7fr); gap:80px; align-items:start; }
.course-hero h1 { max-width:760px; margin:14px 0 24px; font-size:clamp(48px,6vw,82px); line-height:.98; letter-spacing:-.055em; }
.course-hero-lead { max-width:720px; margin:0; color:var(--muted); font-size:20px; line-height:1.6; }
.course-facts { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.course-fact-main { padding:28px; background:var(--text); color:#fff; }
.course-fact-main strong { display:block; font-size:29px; letter-spacing:-.035em; }
.course-fact-main span { display:block; margin-top:10px; color:#b8b8b3; font-size:13px; line-height:1.5; }
.course-fact-grid { display:grid; grid-template-columns:1fr 1fr; }
.course-fact-grid span { min-height:72px; padding:18px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; align-items:center; font-size:13px; font-weight:800; }
.course-two-col { display:grid; grid-template-columns:.75fr 1.25fr; gap:90px; align-items:start; }
.course-two-col h2 { margin:12px 0 0; font-size:clamp(38px,4.5vw,58px); line-height:1.04; letter-spacing:-.045em; }
.course-prose { max-width:780px; }
.course-prose > p { margin:0 0 28px; color:var(--muted); font-size:18px; line-height:1.72; }
.course-prose h3 { margin:38px 0 10px; font-size:21px; }
.outcomes-list { list-style:none; padding:0; margin:44px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.outcomes-list li { position:relative; min-height:118px; padding:28px 28px 28px 58px; background:#fff; font-size:17px; line-height:1.55; }
.outcomes-list li:before { content:"✓"; position:absolute; left:27px; top:29px; color:var(--orange); font-weight:900; }
.program-list { margin-top:46px; border-top:1px solid var(--line); }
.program-module { border-bottom:1px solid var(--line); }
.program-module summary { list-style:none; cursor:pointer; display:grid; grid-template-columns:58px 1fr auto; gap:20px; align-items:center; padding:25px 0; }
.program-module summary::-webkit-details-marker { display:none; }
.module-no { color:var(--orange); font-size:12px; font-weight:900; }
.module-title { font-size:20px; font-weight:850; letter-spacing:-.02em; }
.module-hours { color:var(--muted); font-size:12px; font-weight:800; white-space:nowrap; }
.program-module ul { margin:0 0 30px 78px; padding-left:18px; color:var(--muted); line-height:1.75; }
.course-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:44px; background:#343430; border:1px solid #343430; }
.course-info-grid article { padding:30px; background:#20201f; }
.course-info-grid h3 { margin:0 0 14px; color:#fff; font-size:20px; }
.course-info-grid p { margin:0; color:#aaa9a4; line-height:1.65; }

@media (max-width: 900px) {
 .course-hero-grid,.course-two-col { grid-template-columns:1fr; gap:42px; }
 .course-info-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
 .course-hero { padding:36px 0 54px; }
 .course-back { margin-bottom:32px; }
 .course-hero h1 { font-size:46px; }
 .course-hero-lead { font-size:17px; }
 .course-fact-grid,.outcomes-list { grid-template-columns:1fr; }
 .program-module summary { grid-template-columns:42px 1fr; gap:12px; }
 .module-hours { grid-column:2; }
 .program-module ul { margin-left:54px; }
}

.lang-button:disabled {
  opacity: .45;
  cursor: wait;
}


/* =========================================================
   Course price + registration
   ========================================================= */
.course-price {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.course-price-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-price-value {
  display: block;
  margin-top: 7px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.045em;
}

.course-price p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.registration-section {
  background: var(--bg-soft);
}

.registration-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 80px;
  align-items: start;
}

.registration-copy {
  position: sticky;
  top: 110px;
}

.registration-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.registration-copy > p:last-of-type {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.registration-summary {
  margin-top: 34px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.registration-summary > div {
  padding: 19px 20px;
  background: #fff;
}

.registration-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.registration-summary strong {
  font-size: 18px;
}

.course-registration-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.form-consent {
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8d8d3;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field input {
  min-height: 48px;
  padding: 0 13px;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  padding: 12px 13px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,125,47,.10);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.form-consent input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-alt-contact {
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  min-height: 0;
  font-size: 14px;
  line-height: 1.5;
}

.form-status-success {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f7ef;
  color: #315c28;
}

.form-status-error {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff1ef;
  color: #8a352a;
}

.form-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .registration-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .registration-copy {
    position: static;
  }
}

@media (max-width: 600px) {
  .course-registration-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .form-field-wide {
    grid-column: auto;
  }

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