:root {
  /* Cores */
  --sd-blue: #0048ff;
  --sd-blue-dark: #132951;
  --sd-blue-deep: #102655;
  --sd-red: #c70100;
  --sd-red-alt: #e31316;
  --sd-white: #ffffff;
  --sd-text: #212d51;

  /* Layout Figma — X_rel = X_figma - 396; container 396→1524 (1128px) */
  --container: 1128px;
  --figma-gutter: 24px;
  --figma-gutter-sm: 12px;

  /* Header */
  --header-height-mobile: 104px;
  --header-height-desktop: 156px;
  --header-logo-size: 112px;
  --header-nav-width: 1055px;
  --header-logo-x: 17px;
  --header-logo-y: 10px;
  --header-nav-x: 73px;
  --header-nav-y: 36px;

  /* Hero — Figma Home / 1:2 */
  --hero-h: 1075px;
  --hero-stats-h: 226px;
  --hero-logo-w: 315px;
  --hero-logo-h: 235px;
  --hero-text-x: 96px;
  --hero-text-w: 456px;
  --hero-cta-h: 96px;
  --hero-cta-w: 384px;
  --hero-cta-radius: 27px;
  --hero-img-w: 519px;
  --hero-img-h: 509px;
  --hero-shape-w: 447px;
  --hero-shape-h: 382px;
  --hero-logo-to-headline: 16px;
  --hero-headline-to-sub: 9px;
  --hero-sub-to-body: 27px;
  --hero-body-to-cta: 28px;
  --hero-col-gap: 48px;
  --hero-shape-x-offset: 82px;
  --hero-shape-y-offset: 127px;
  --hero-media-y-offset: -40px;
  --hero-text-col: calc(var(--hero-text-x) + var(--hero-text-w));

  /* Pilares */
  --pillar-w: 264px;
  --pillar-h: 447px;
  --pillar-gap: 24px;
  --pillar-border: 4px;
  --pillar-subtitle-w: 911px;
  --pillar-title-w: 870px;
  --pillars-cards-mt: 127px;
  --stats-text-1-w: 255px;
  --stats-text-2-w: 287px;
  --stats-text-3-w: 247px;

  /* Cursos */
  --course-intro-img-w: 333px;
  --course-intro-img-h: 302px;
  --course-intro-title-w: 438px;
  --course-intro-content-y: 19px;
  --course-intro-heading-to-sub: 52px;
  --course-text-w: 371px;
  --courses-pt: 30px;
  --course-nav-mt: 48px;
  --course-categories-mt: 32px;
  --course-grid-mt: 14px;
  --course-card-w: 552px;
  --course-card-h: 241px;
  --course-thumb-w: 119px;
  --course-thumb-h: 177px;
  --course-thumb-x: 23px;
  --course-thumb-y: 31px;
  --radius-course: 32px;
  --radius-thumb: 16px;
  --radius-intro-img: 45px;
  --course-category-gap-y: 56px;

  /* Quem somos */
  --about-logo-w: 218px;
  --about-logo-h: 163px;
  --about-img-w: 480px;
  --about-img-h: 417px;
  --about-text-x: 86px;
  --about-logo-offset: 70px;
  --about-title-w: 421px;
  --about-lead-w: 456px;
  --about-text-wide: 960px;
  --radius-about-img: 37px;
  --about-media-mt: 55px;
  --about-glow-size: 470px;
  --about-glow-x: 41px;
  --about-glow-y: -41px;

  /* Pré-matrícula */
  --pre-card-w: 1124px;
  --pre-card-h: 652px;
  --pre-card-x: 18px;
  --pre-title-w: 530px;
  --pre-input-h: 60px;
  --pre-btn-w: 498px;
  --pre-btn-h: 80px;

  /* Contato */
  --contact-info-w: 371px;
  --contact-map-w: 544px;
  --contact-map-h: 402px;
  --contact-gap: 68px;
  --contact-map-padding: 31px;
  --footer-pill-w: 255px;
  --footer-pill-h: 58px;
  --footer-avatar: 44px;

  /* Ritmo vertical (Y Figma) */
  --pillars-pt: 42px;
  --stats-icon-pt: 43px;
  --stats-icon-text-gap: 101px;
  --stats-col-1-x: 30.46875%;
  --stats-col-2-x: 47.96875%;
  --stats-col-3-x: 65.625%;
  --pre-card-px: 49px;
  --pre-card-pt: 40px;
  --pre-field-gap: 45px;
  --pre-title-field-gap: 106px;
  --pre-field-gap-y: 105px;
  --pre-btn-y-offset: 77px;
  --pre-btn-mt: 17px;
  --footer-pill-x: 869px;

  /* Radius / shadow */
  --radius-pill: 999px;
  --radius-lg: 32px;
  --radius-xxl: 42px;
  --shadow-nav: 0 4px 12px -1px #132951;
  --shadow-soft: 0 12px 30px rgb(19 41 81 / 14%);
  --shadow-cta: 0 6px 0 #8a0100;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--sd-text);
  background-color: var(--sd-white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sd-blue);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height-mobile);
}

.header-topbar {
  position: absolute;
  inset: 0 0 auto;
  height: var(--header-height-mobile);
  background: var(--sd-blue);
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: min(100% - 2rem, var(--container));
  max-width: var(--container);
  margin-inline: auto;
  min-height: var(--header-height-mobile);
  padding: 0.65rem 0 0.85rem;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 2;
}

.brand--pill {
  display: none;
}

.brand-circle {
  position: absolute;
  inset: -6px;
  background: url("/images/logos/logo-bg-circle.png") center / contain no-repeat;
  pointer-events: none;
}

.brand img {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.menu-toggle {
  margin-left: auto;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--sd-blue-dark);
  font-family: "Amaranth", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.58rem 1rem;
  box-shadow: var(--shadow-nav);
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(19 41 81 / 14%);
  box-shadow: var(--shadow-nav);
  padding: 0.65rem;
  gap: 0.35rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav-links a {
  color: var(--sd-blue-dark);
  font-family: "Amaranth", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  text-transform: uppercase;
  text-align: center;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  background: rgb(19 41 81 / 10%);
}

/* Hero + stats overlap */
.hero {
  position: relative;
  min-height: auto;
  padding: 1rem 0 var(--hero-stats-h);
  overflow: hidden;
  background-color: var(--sd-white);
  background-image:
    radial-gradient(circle at 24px 24px, rgb(0 72 255 / 5%) 1.5px, transparent 2px),
    radial-gradient(ellipse 38% 42% at 6% 18%, rgb(0 72 255 / 6%), transparent 70%),
    radial-gradient(ellipse 28% 36% at 94% 28%, rgb(0 72 255 / 3%), transparent 68%),
    linear-gradient(rgb(0 72 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 72 255 / 3%) 1px, transparent 1px);
  background-size: 48px 48px, auto, auto, 48px 48px, 48px 48px;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-top {
  display: flex;
  justify-content: center;
  margin-bottom: var(--hero-logo-to-headline);
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--hero-text-w);
}

.hero-logo {
  width: min(var(--hero-logo-w), 78vw);
  height: auto;
  max-height: var(--hero-logo-h);
  object-fit: contain;
}

.hero h1 {
  margin: 0;
  line-height: 0.905;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.85rem, 5.2vw, 2.5rem);
  color: var(--sd-blue);
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--sd-blue);
  margin-top: 0.35rem;
}

.hero-subtitle {
  margin: var(--hero-headline-to-sub) 0 0;
  font-family: "Amaranth", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  color: var(--sd-blue);
}

.hero-description {
  margin: var(--hero-sub-to-body) 0 0;
  max-width: var(--hero-text-w);
  line-height: 1.333;
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  letter-spacing: 0.03125em;
}

.hero-description--second {
  margin-top: 0.75rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--hero-cta-w);
  margin-top: var(--hero-body-to-cta);
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  background: var(--sd-red);
  color: var(--sd-white);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  line-height: 1.2;
  text-align: center;
  border-radius: var(--hero-cta-radius);
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 0 #8a0100;
}

.hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, var(--hero-img-w));
  min-height: 260px;
}

.hero-shape {
  position: absolute;
  left: var(--hero-shape-x-offset);
  top: var(--hero-shape-y-offset);
  width: min(88%, var(--hero-shape-w));
  height: min(72%, var(--hero-shape-h));
  background: var(--sd-red-alt);
  border-radius: 56px 48px 52px 44px;
  z-index: 0;
  pointer-events: none;
}

.hero-glow-media {
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 88%;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.hero-vector {
  position: absolute;
  inset: 4% auto auto 0;
  width: 72%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--hero-img-w);
  margin-inline: auto;
  filter: drop-shadow(0 16px 24px rgb(19 41 81 / 14%));
}

.hero-decoration {
  display: none;
}

.stats-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-stats-h);
  background: var(--sd-blue);
  display: flex;
  align-items: center;
  z-index: 3;
}

.stats-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--stats-icon-text-gap);
}

.stats-item img {
  width: 56px;
  height: 56px;
}

.stats-item p {
  margin: 0;
  max-width: 16rem;
  color: var(--sd-white);
  font-family: "Amaranth", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Pilares */
.pillars {
  padding: var(--pillars-pt) 0 2.75rem;
  background: var(--sd-white);
}

.pillars-header {
  text-align: center;
}

.pillars-header h2 {
  margin: 0 auto;
  max-width: var(--pillar-title-w);
  font-family: "Anton", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 0.96;
  color: var(--sd-red);
  text-transform: uppercase;
}

.pillars-header p {
  margin: 1rem auto 0;
  max-width: var(--pillar-subtitle-w);
  font-family: "Amaranth", sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  color: var(--sd-blue);
}

.pillars-grid {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--figma-gutter);
}

.pillar-card {
  background: var(--sd-white);
  border: var(--pillar-border) solid var(--sd-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 18px rgb(19 41 81 / 8%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 320px;
}

.pillar-card img {
  width: 64px;
  height: 64px;
}

.pillar-card h3 {
  margin: 1rem 0 0;
  color: var(--sd-red);
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.pillar-card p {
  margin: 0.85rem 0 0;
  color: var(--sd-blue-dark);
  font-size: 1rem;
  line-height: 1.55;
}

/* Cursos */
.courses {
  padding: 3rem 0;
  background: var(--sd-white);
}

.courses-hero-intro {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

.courses-intro-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: var(--course-intro-img-w);
}

.courses-intro-media::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
  background: center / contain no-repeat;
}

.courses-intro-media--left::before {
  background-image: url("/images/decorativos/cursos-blur-left.png");
}

.courses-intro-media--right::before {
  background-image: url("/images/decorativos/cursos-blur-right.png");
}

.courses-intro-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: var(--course-intro-img-w);
  height: auto;
  aspect-ratio: 333 / 302;
  object-fit: cover;
  border-radius: var(--radius-intro-img);
}

.courses-intro-content {
  width: 100%;
  max-width: var(--course-intro-title-w);
  margin-inline: auto;
  text-align: center;
}

.courses-intro-content h2 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 0.96;
  color: var(--sd-red);
  text-transform: uppercase;
}

.courses-intro-content p {
  margin: 1rem 0 0;
  font-family: "Amaranth", sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  color: var(--sd-blue);
}

.courses-categories-nav {
  margin-top: 1.5rem;
}

.courses-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--figma-gutter-sm) var(--figma-gutter);
}

.courses-category-list a {
  font-family: "Amaranth", sans-serif;
  font-weight: 700;
  color: var(--sd-blue-dark);
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
}

.courses-category-list a:hover,
.courses-category-list a:focus-visible {
  border-bottom-color: var(--sd-blue);
}

.courses-categories {
  margin-top: 2rem;
  display: grid;
  gap: var(--course-category-gap-y);
}

.course-category h3 {
  margin: 0;
  font-family: "Amaranth", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--sd-blue-dark);
}

.course-grid {
  margin: var(--course-grid-mt) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--figma-gutter);
}

.course-card {
  display: grid;
  grid-template-columns: var(--course-thumb-w) 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgb(19 41 81 / 20%);
  border-radius: var(--radius-course);
  padding: var(--course-thumb-y) var(--course-thumb-x);
  background: var(--sd-white);
  min-height: var(--course-card-h);
}

.course-card img {
  width: var(--course-thumb-w);
  height: var(--course-thumb-h);
  object-fit: cover;
  border-radius: var(--radius-thumb);
}

.course-card h4 {
  margin: 0;
  color: var(--sd-red);
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.course-grid .course-card:nth-child(odd) {
  border-color: rgb(199 1 0 / 55%);
}

.course-grid .course-card:nth-child(even) {
  border-color: rgb(0 72 255 / 45%);
}

.course-duration {
  margin: 0.5rem 0 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--sd-blue-dark);
}

.course-card p {
  margin: 0.5rem 0 0;
  color: var(--sd-blue-dark);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Quem somos */
.about {
  position: relative;
  padding: 3.5rem 0;
  overflow: hidden;
}

.about-decor {
  display: none;
}

.about-inner {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.about-content h2 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  color: var(--sd-red);
  text-transform: uppercase;
}

.about-logo {
  width: min(var(--about-logo-w), 54vw);
  margin-bottom: 1rem;
}

.about-lead {
  margin: 1rem 0 0;
  font-family: "Amaranth", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.35;
  color: var(--sd-blue);
}

.about-content > p:not(.about-lead) {
  margin: 1rem 0 0;
  color: var(--sd-blue-dark);
  font-size: 1rem;
  line-height: 1.65;
}

.about-wide {
  margin-top: 1.5rem;
}

.about-wide p {
  margin: 0;
  color: var(--sd-blue-dark);
  font-size: 1rem;
  line-height: 1.65;
}

.about-media {
  margin: 0;
  position: relative;
}

.about-glow {
  position: absolute;
  left: var(--about-glow-x);
  top: var(--about-glow-y);
  width: var(--about-glow-size);
  height: var(--about-glow-size);
  border-radius: 50%;
  background: url("/images/decorativos/quem-somos-blur.png") center / cover no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.about-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-about-img);
  border: 1px solid rgb(19 41 81 / 18%);
}

/* Pré-matrícula */
.pre-registration {
  padding: 3rem 0;
}

.pre-card {
  background: linear-gradient(180deg, var(--sd-red-alt), var(--sd-red));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  max-width: var(--pre-card-w);
  margin-inline: auto;
}

.pre-card h2 {
  margin: 0;
  color: var(--sd-white);
  font-family: "Anton", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.pre-form {
  margin-top: 1rem;
  display: grid;
  gap: 0;
}

.pre-field {
  display: grid;
  gap: 0.35rem;
}

.pre-field + .pre-field {
  margin-top: 0.75rem;
}

.pre-form label {
  color: var(--sd-white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.pre-form input,
.pre-form select {
  width: 100%;
  height: var(--pre-input-h);
  border: 0;
  border-radius: 0.8rem;
  padding: 0 1rem;
  color: var(--sd-blue-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.pre-form button {
  margin-top: 0.5rem;
  border: 3px solid var(--sd-white);
  background: var(--sd-blue-deep);
  color: var(--sd-white);
  border-radius: var(--radius-pill);
  min-height: 64px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Contato + footer integrado */
.contact {
  position: relative;
  padding: 3rem 0 5rem;
}

.contact h2 {
  margin: 0;
  text-align: center;
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sd-blue-dark);
  text-transform: uppercase;
}

.contact-inner {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.contact-info {
  max-width: var(--contact-info-w);
}

.contact-info p {
  margin: 0.85rem 0 0;
  color: var(--sd-blue-dark);
  line-height: 1.5;
}

.contact-info a {
  color: var(--sd-blue);
  font-weight: 600;
}

.contact-info a:hover,
.contact-info a:focus-visible {
  text-decoration: underline;
}

.contact-map-card {
  background: var(--sd-blue-deep);
  border-radius: var(--radius-lg);
  padding: var(--contact-map-padding);
  color: var(--sd-white);
  max-width: var(--contact-map-w);
}

.contact-map-card h3 {
  margin: 0;
  font-family: "Amaranth", sans-serif;
  font-size: 1.4rem;
}

.contact-map-card img {
  margin-top: 0.7rem;
  border-radius: 0.95rem;
  max-height: 184px;
  width: 100%;
  object-fit: cover;
}

.contact-map-card p {
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

.site-footer {
  position: absolute;
  left: max(1rem, calc((100% - var(--container)) / 2 + var(--footer-pill-x)));
  bottom: 1.5rem;
  padding: 0;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--sd-white);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  min-height: var(--footer-pill-h);
  min-width: var(--footer-pill-w);
  box-shadow: 0 6px 16px rgb(19 41 81 / 15%);
}

.footer-cta img {
  width: var(--footer-avatar);
  height: var(--footer-avatar);
}

.footer-cta span {
  color: var(--sd-blue-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* Tablet 768px */
@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card {
    min-height: var(--pillar-h);
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-hero-intro {
    grid-template-columns:
      minmax(0, var(--course-intro-img-w))
      minmax(0, var(--course-intro-title-w))
      minmax(0, var(--course-intro-img-w));
    gap: var(--figma-gutter-sm);
  }

  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--contact-gap);
  }

  .about-media {
    margin-top: var(--about-media-mt);
  }
}

/* Desktop 900px */
@media (min-width: 900px) {
  .site-header {
    height: var(--header-height-desktop);
    min-height: var(--header-height-desktop);
  }

  .header-topbar {
    height: var(--header-height-desktop);
  }

  .header-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: var(--header-height-desktop);
    padding: var(--header-nav-y) 1rem 0;
  }

  .brand--mobile {
    display: none;
  }

  .brand--pill {
    display: inline-flex;
    flex: 0 0 var(--header-logo-size);
    width: var(--header-logo-size);
    height: var(--header-logo-size);
    margin: -4px 0.65rem 0 -6px;
    z-index: 2;
  }

  .brand--pill img {
    width: var(--header-logo-size);
    height: var(--header-logo-size);
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: min(var(--header-nav-width), calc(100% - 2rem));
    height: 60px;
    padding: 0 1.25rem 0 0.25rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(19 41 81 / 15%);
    box-shadow: var(--shadow-nav);
    gap: 0;
  }

  .site-nav-links {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    min-width: 0;
  }

  .site-nav-links a {
    padding: 0.45rem 0.65rem;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .hero {
    min-height: var(--hero-h);
    padding-top: 21px;
    padding-bottom: var(--hero-stats-h);
  }

  .hero-top {
    margin-bottom: var(--hero-logo-to-headline);
  }

  .hero-logo {
    width: var(--hero-logo-w);
    max-height: var(--hero-logo-h);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) var(--hero-img-w);
    gap: var(--hero-col-gap);
    align-items: start;
    min-height: calc(var(--hero-h) - var(--hero-stats-h) - var(--hero-logo-h) - var(--hero-logo-to-headline) - 42px);
  }

  .hero-content {
    max-width: var(--hero-text-w);
    margin-left: var(--hero-text-x);
    padding-top: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    max-width: var(--hero-text-w);
  }

  .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.208;
    max-width: 480px;
  }

  .hero-description {
    font-size: 1.125rem;
    line-height: 1.333;
  }

  .hero-description--second {
    margin-top: 0.85rem;
  }

  .hero-cta {
    min-height: var(--hero-cta-h);
    width: var(--hero-cta-w);
    max-width: 100%;
    font-size: 2rem;
    margin-top: var(--hero-body-to-cta);
    padding-inline: 1.25rem;
  }

  .hero-media {
    width: var(--hero-img-w);
    min-height: var(--hero-img-h);
    justify-self: end;
    margin-top: var(--hero-media-y-offset);
  }

  .hero-shape {
    left: var(--hero-shape-x-offset);
    top: var(--hero-shape-y-offset);
    width: var(--hero-shape-w);
    height: var(--hero-shape-h);
    border-radius: 56px 48px 52px 44px;
  }

  .hero-glow-media {
    left: 2%;
    bottom: -2%;
    width: 96%;
    opacity: 0.42;
  }

  .hero-image {
    max-height: var(--hero-img-h);
    object-fit: contain;
    object-position: center bottom;
  }

  .hero-decoration {
    display: block;
    position: absolute;
    top: 4%;
    width: min(11vw, 190px);
    opacity: 0.32;
    pointer-events: none;
    z-index: 1;
  }

  .hero-decoration--left {
    left: 0;
    max-height: 55%;
    object-fit: contain;
    object-position: left top;
  }

  .hero-decoration--right {
    right: 0;
    opacity: 0.28;
    top: 8%;
  }

  .stats-strip .container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 100%;
  }

  .stats-list {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
  }

  .stats-item {
    position: absolute;
    top: var(--stats-icon-pt);
    transform: translateX(-50%);
    width: max-content;
    max-width: 18rem;
  }

  .stats-item:nth-child(1) {
    left: var(--stats-col-1-x);
  }

  .stats-item:nth-child(2) {
    left: var(--stats-col-2-x);
  }

  .stats-item:nth-child(3) {
    left: var(--stats-col-3-x);
  }

  .stats-item img {
    width: 79px;
    height: 79px;
  }

  .stats-item:nth-child(2) img {
    width: 75px;
    height: 75px;
  }

  .stats-item:nth-child(3) img {
    width: 80px;
    height: 80px;
  }

  .stats-item p {
    font-size: 1.125rem;
    line-height: 1.35;
  }

  .stats-item:nth-child(1) p {
    max-width: var(--stats-text-1-w);
  }

  .stats-item:nth-child(2) p {
    max-width: var(--stats-text-2-w);
  }

  .stats-item:nth-child(3) p {
    max-width: var(--stats-text-3-w);
  }

  .pillars-grid {
    grid-template-columns: repeat(4, var(--pillar-w));
    justify-content: center;
    gap: var(--pillar-gap);
    margin-top: var(--pillars-cards-mt);
  }

  .pillar-card {
    width: var(--pillar-w);
    min-height: var(--pillar-h);
    padding: 1.75rem 1.25rem;
  }

  .pillar-card img {
    width: 72px;
    height: 72px;
  }

  .course-grid {
    grid-template-columns: repeat(2, var(--course-card-w));
    justify-content: center;
  }

  .course-card {
    width: 100%;
    max-width: var(--course-card-w);
  }

  .courses {
    padding: var(--courses-pt) 0 3rem;
  }

  .courses-intro-content {
    padding-top: var(--course-intro-content-y);
  }

  .courses-intro-content h2 {
    font-size: 2.5rem;
    max-width: var(--course-intro-title-w);
    margin-inline: auto;
  }

  .courses-intro-content p {
    font-size: 1.5rem;
    line-height: 1.208;
    max-width: var(--course-intro-title-w);
    margin-top: var(--course-intro-heading-to-sub);
    margin-inline: auto;
  }

  .courses-categories-nav {
    margin-top: var(--course-nav-mt);
  }

  .courses-category-list a {
    font-size: 1.125rem;
  }

  .courses-categories {
    margin-top: var(--course-categories-mt);
  }

  .course-category h3 {
    font-size: 1.6rem;
  }

  .course-card > div {
    max-width: var(--course-text-w);
  }

  .about-decor {
    display: block;
    position: absolute;
    top: 10%;
    width: 120px;
    opacity: 0.6;
    pointer-events: none;
  }

  .about-decor--left {
    left: 0;
  }

  .about-decor--right {
    right: 0;
  }

  .about-inner {
    grid-template-columns: minmax(0, 1fr) var(--about-img-w);
    gap: var(--figma-gutter);
    align-items: start;
  }

  .about-content {
    padding-left: var(--about-text-x);
  }

  .about-logo {
    width: var(--about-logo-w);
    height: auto;
    margin-left: var(--about-logo-offset);
    margin-bottom: 1.125rem;
  }

  .about-content h2 {
    max-width: var(--about-title-w);
    font-size: 3rem;
  }

  .about-lead,
  .about-content > p:not(.about-lead) {
    max-width: var(--about-lead-w);
  }

  .about-media {
    max-width: var(--about-img-w);
    margin-top: var(--about-media-mt);
    justify-self: end;
  }

  .about-media img {
    max-height: var(--about-img-h);
    object-fit: cover;
  }

  .about-wide {
    margin-top: 1.125rem;
    padding-left: var(--about-text-x);
  }

  .about-wide p {
    max-width: var(--about-text-wide);
    margin: 0;
  }

  .pre-card {
    min-height: var(--pre-card-h);
    padding: var(--pre-card-pt) var(--pre-card-px) 2rem;
    margin-inline: 0;
    margin-left: var(--pre-card-x);
    width: 100%;
    max-width: var(--pre-card-w);
  }

  .pre-card h2 {
    font-size: 2.75rem;
    line-height: 1;
    max-width: var(--pre-title-w);
  }

  .pre-form {
    margin-top: var(--pre-title-field-gap);
  }

  .pre-field + .pre-field {
    margin-top: var(--pre-field-gap-y);
  }

  .pre-field {
    gap: var(--pre-field-gap);
  }

  .pre-form button {
    justify-self: end;
    width: var(--pre-btn-w);
    min-height: var(--pre-btn-h);
    margin-top: var(--pre-btn-mt);
    font-size: 1.1rem;
  }

  .contact-inner {
    grid-template-columns: var(--contact-info-w) var(--contact-map-w);
    gap: var(--contact-gap);
    align-items: start;
    justify-content: center;
  }

  .contact-map-card {
    min-height: var(--contact-map-h);
  }
}

@media (max-width: 899px) {
  .stats-strip {
    position: relative;
    height: auto;
    min-height: var(--hero-stats-h);
    margin-top: 2rem;
    padding: 2rem 0;
    align-items: center;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero-content {
    margin-left: 0;
    max-width: none;
  }

  .hero-top {
    margin-bottom: 1rem;
  }

  .hero-cta {
    max-width: 100%;
  }

  .site-footer {
    position: static;
    transform: none;
    width: auto;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }

  .pre-card {
    padding: 1.5rem 1rem;
    margin-inline: auto;
    margin-left: auto;
    width: auto;
  }

  .pre-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    max-width: none;
  }

  .pre-form {
    margin-top: 1rem;
  }

  .pre-field + .pre-field {
    margin-top: 0.75rem;
  }

  .pre-field {
    gap: 0.35rem;
  }

  .pre-form button {
    width: 100%;
    justify-self: stretch;
    min-height: 64px;
    margin-top: 0.5rem;
    font-size: 1rem;
  }

  .about-content {
    padding-left: 0;
  }

  .about-logo {
    margin-left: 0;
  }

  .about-wide {
    padding-left: 0;
  }

  .about-glow {
    width: min(320px, 95%);
    height: min(320px, 95%);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    gap: 1.5rem;
  }

  .hero-content {
    margin-left: clamp(1rem, 5vw, var(--hero-text-x));
  }

  .hero-media {
    width: 100%;
    min-height: 360px;
    margin-top: 0;
  }

  .hero-image {
    max-height: 380px;
  }

  .hero-shape {
    width: 88%;
    height: 72%;
    top: 22%;
    left: 8%;
  }

  .hero-cta {
    font-size: 1.25rem;
    min-height: 72px;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.15rem);
  }
}

@media (min-width: 1200px) {
  .courses-hero-intro {
    grid-template-columns:
      var(--course-intro-img-w)
      var(--course-intro-title-w)
      var(--course-intro-img-w);
  }

  .courses-intro-media {
    width: var(--course-intro-img-w);
    max-width: var(--course-intro-img-w);
  }

  .courses-intro-media img {
    width: var(--course-intro-img-w);
    height: var(--course-intro-img-h);
    max-width: none;
    aspect-ratio: auto;
  }

  .courses-category-list {
    gap: var(--figma-gutter);
  }

  .hero-grid {
    column-gap: 64px;
  }
}

@media (min-width: 1366px) {
  .hero-media {
    margin-top: -48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) var(--hero-img-w);
  }
}

@media (min-width: 1440px) {
  .hero-grid {
    column-gap: 72px;
  }
}

@media (min-width: 1920px) {
  .hero-decoration--left {
    width: 230px;
  }

  .hero-decoration--right {
    width: 230px;
  }
}

/* Blog (Ghost CMS) */
.blog-page,
.blog-post {
  padding: 4rem 0 5rem;
}

.blog-page__title,
.blog-post__header h1 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--sd-blue-dark);
  text-transform: uppercase;
}

.blog-notice {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgb(0 72 255 / 8%);
  color: var(--sd-blue-dark);
  line-height: 1.5;
}

.blog-notice code {
  font-size: 0.9em;
}

.blog-empty {
  margin: 1.5rem 0 0;
  color: var(--sd-text);
}

.blog-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.blog-list__item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(19 41 81 / 12%);
}

.blog-list__title {
  margin: 0;
  font-family: "Amaranth", sans-serif;
  font-size: 1.5rem;
}

.blog-list__title a {
  color: var(--sd-blue);
}

.blog-list__title a:hover,
.blog-list__title a:focus-visible {
  text-decoration: underline;
}

.blog-list__date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgb(19 41 81 / 65%);
}

.blog-list__excerpt {
  margin: 0.65rem 0 0;
  line-height: 1.55;
}

.blog-list__link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--sd-red);
  font-weight: 700;
}

.blog-post__back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--sd-blue);
  font-weight: 600;
}

.blog-post__header time {
  display: block;
  margin-top: 0.5rem;
  color: rgb(19 41 81 / 65%);
}

.blog-post__cover {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
}

.blog-post__content {
  margin-top: 1.5rem;
  max-width: 720px;
  line-height: 1.65;
  color: var(--sd-text);
}

.blog-post__content p {
  margin: 0 0 1rem;
}

.blog-post__content a {
  color: var(--sd-blue);
  text-decoration: underline;
}
