@import url("https://fonts.googleapis.com/css2?family=Birthstone+Bounce:wght@400;500&display=swap");

:root {
  --blue: #f23b12;
  --blue-strong: #b71908;
  --blue-deep: #5f0b05;
  --sky: #ff8a00;
  --silver: #ffe1cf;
  --silver-strong: #ffb08a;
  --cyan-soft: #fff0e8;
  --paper: #fff8f3;
  --text: #21110d;
  --muted: #6f5e57;
  --line: #ffd1bb;
  --white: #ffffff;
  --shadow: 0 20px 58px rgba(183, 25, 8, .24), 0 0 0 1px rgba(255, 255, 255, .78) inset;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(242, 59, 18, .22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255, 138, 0, .18), transparent 30%),
    linear-gradient(135deg, #fffaf7 0%, #ffe1cf 36%, #fff0e8 72%, #ffffff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 54px);
  background: linear-gradient(90deg, rgba(255, 255, 255, .97), rgba(255, 225, 207, .97), rgba(255, 244, 238, .97));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(183, 25, 8, .10);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(183, 25, 8, .16), 0 0 0 1px rgba(255, 176, 138, .55) inset;
}

.brand img {
  display: block;
  width: clamp(142px, 18vw, 205px);
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--blue-strong);
  font-weight: 700;
}

.site-nav a:hover {
  background: #ffe1cf;
  color: #8f1507;
}

.cart-button,
.button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.cart-button,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 58%, var(--sky));
  box-shadow: 0 14px 30px rgba(183, 25, 8, .36), 0 0 0 1px rgba(255, 225, 207, .75) inset;
}

.cart-button {
  padding: 11px 14px;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 5px;
  color: var(--blue-strong);
  background: var(--white);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
}

.button.secondary {
  color: var(--blue-strong);
  background: var(--white);
  border: 1px solid var(--line);
}

.header-action {
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  padding: clamp(36px, 7vw, 80px) clamp(18px, 4vw, 54px);
  min-height: calc(100vh - 76px);
}

.reference-hero {
  display: block;
  min-height: auto;
  padding: 0;
  background: #ffffff;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 8px 0 16px;
  font-family: "Birthstone Bounce", "Palatino Linotype", Georgia, cursive;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: .9;
  color: var(--blue);
  text-shadow: 0 4px 0 #fff, 0 9px 0 rgba(255, 176, 138, .72), 0 28px 42px rgba(183, 25, 8, .34);
}

.hero p,
.section > p,
.access-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero img {
  width: 100%;
  height: clamp(330px, 48vw, 620px);
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero.reference-hero img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.hero-image-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--blue-strong);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
}

.section {
  padding: 56px clamp(18px, 4vw, 54px);
}

.section h2,
.access-section h2 {
  margin: 8px 0 24px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.story-section {
  display: grid;
  gap: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(232, 243, 255, .82));
}

.history-image-section {
  padding: 0;
  background: #ffffff;
}

.history-image-section img {
  display: block;
  width: 100%;
  height: auto;
}

.method-image-section {
  padding: 0;
  background: #ffffff;
}

.method-image-section img,
.reeducation-image-section img {
  display: block;
  width: 100%;
  height: auto;
}

.reeducation-image-section {
  padding: 0;
  background: #ffffff;
}

.benefits-image-section {
  padding: 0;
  background: #ffffff;
}

.benefits-image-section img {
  display: block;
  width: 100%;
  height: auto;
}

/* Red-orange palette overrides replacing older blue-specific shadows. */
.hero h1,
.courses-page-hero h1,
.page-hero h1,
.student-login-hero h1 {
  text-shadow: 0 4px 0 #fff, 0 8px 0 rgba(255, 176, 138, .68), 0 26px 42px rgba(183, 25, 8, .34);
}

.feature-columns article,
.course-card,
.payment-grid article,
.student-panel,
.schedule-info article {
  box-shadow: 0 16px 34px rgba(183, 25, 8, .14), 0 0 0 1px rgba(255, 255, 255, .75) inset;
}

.feature-columns span,
.impact-grid span,
.schedule-info span {
  background: linear-gradient(135deg, var(--blue), var(--sky));
}

.cart-panel {
  box-shadow: -18px 0 45px rgba(95, 11, 5, .20);
}

.story-intro {
  max-width: 980px;
}

.story-intro h2 {
  margin: 8px 0 18px;
  max-width: 780px;
  color: var(--blue-deep);
  font-family: "Birthstone Bounce", "Palatino Linotype", Georgia, cursive;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: .98;
}

.story-intro p:not(.eyebrow) {
  max-width: 920px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.impact-grid article {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 12px 30px rgba(183, 25, 8, .10);
}

.impact-grid img {
  display: block;
  width: calc(100% + 48px);
  height: 230px;
  margin: -24px -24px 18px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.impact-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  font-weight: 900;
}

.impact-grid h3 {
  margin: 0 0 10px;
  color: var(--blue-strong);
  font-size: 1.35rem;
}

.impact-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.courses-page-hero,
.page-hero {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 54px) 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 109, 255, .18), transparent 26%),
    linear-gradient(135deg, #f7fbff 0%, #e8f3ff 100%);
}

.courses-page-hero h1,
.page-hero h1 {
  margin: 8px 0 16px;
  max-width: 850px;
  font-family: "Birthstone Bounce", "Palatino Linotype", Georgia, cursive;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .9;
  color: var(--blue);
  text-shadow: 0 4px 0 #fff, 0 8px 0 rgba(255, 176, 138, .72), 0 26px 42px rgba(183, 25, 8, .34);
}

.courses-page-hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.courses-static-hero {
  padding: clamp(34px, 6vw, 70px) clamp(18px, 4vw, 54px) 24px;
  background: #ffffff;
}

.courses-static-hero h1 {
  margin: 8px 0 14px;
  color: var(--blue);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
}

.courses-static-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.courses-image-showcase {
  display: grid;
  gap: 0;
  background: #ffffff;
}

.courses-image-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.course-info-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff0e8 100%);
}

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

.course-info-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(183, 25, 8, .12);
}

.course-info-grid h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 1.18rem;
}

.course-info-grid p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.6;
}

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

.feature-columns article,
.course-card,
.payment-grid article,
.student-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #eef4fb 100%);
  box-shadow: 0 16px 34px rgba(183, 25, 8, .14), 0 0 0 1px rgba(255, 255, 255, .75) inset;
}

.feature-columns span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 8px;
  font-weight: 900;
}

.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-media {
  position: relative;
  width: calc(100% + 44px);
  height: 225px;
  margin: -22px -22px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--silver);
}

.course-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-price-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(95, 11, 5, .28);
  font-size: 1rem;
  font-weight: 900;
}

.course-card.featured {
  border-color: rgba(0, 92, 255, .62);
  background: linear-gradient(180deg, #fff 0%, #e8f3ff 55%, #d9e2ef 100%);
}

.course-info-image {
  display: block;
  width: 100%;
  max-width: 370px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price,
.course-topline strong,
.locked-message {
  color: var(--blue-strong);
  background: var(--cyan-soft);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 900;
}

.course-card p,
.payment-grid p,
.feature-columns p {
  color: var(--muted);
  line-height: 1.55;
}

.course-card ul {
  margin: 0 0 8px 18px;
  padding: 0;
  color: var(--text);
  line-height: 1.7;
}

.course-card .course-value {
  margin: 0;
  padding: 11px 12px;
  color: var(--blue-strong);
  background: var(--cyan-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.course-value strong {
  color: var(--blue-deep);
}

.course-sale-row {
  display: grid;
  margin-top: auto;
  padding-top: 10px;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  padding: 58px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep) 0%, #083b83 54%, var(--blue) 100%);
}

.access-section p,
.access-section .eyebrow {
  color: #ccecff;
}

.student-panel {
  color: var(--text);
  background: rgba(255, 255, 255, .94);
}

.student-data {
  padding: 14px;
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--blue-strong);
  line-height: 1.8;
}

.meet-access-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--silver-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #d9e2ef);
  box-shadow: 0 12px 26px rgba(183, 25, 8, .14);
}

.meet-access-box strong {
  color: var(--blue-deep);
}

.meet-access-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.classroom-online-panel {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.classroom-online-panel h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.classroom-online-panel > p:not(.locked-message) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  width: min(430px, 100vw);
  transform: translateX(105%);
  transition: transform .25s ease;
  padding: 18px;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -18px 0 45px rgba(7, 26, 61, .22);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.cart-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-strong);
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-strong);
  background: #fff;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f3ff, var(--silver));
}

.checkout-form {
  display: grid;
  gap: 10px;
}

.checkout-form label {
  display: grid;
  gap: 5px;
  font-size: .86rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}

.guardian-fields {
  display: grid;
  gap: 9px;
  margin: 4px 0;
  padding: 12px;
  border: 1px solid var(--silver-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef4fb);
  box-shadow: 0 10px 24px rgba(183, 25, 8, .12);
}

.guardian-fields[hidden] {
  display: none;
}

.guardian-title {
  margin: 0;
  color: var(--blue-strong);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.35;
}

.guardian-authorization {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  color: var(--blue-deep);
  font-size: .82rem !important;
  line-height: 1.35;
}

.guardian-authorization input {
  min-height: auto;
  margin-top: 3px;
}

fieldset {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  color: var(--blue-strong);
  font-weight: 900;
  font-size: .86rem;
}

.payment-choice {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 8px !important;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: .84rem !important;
}

.payment-choice:has(input:checked) {
  border-color: var(--blue);
  background: #e8f3ff;
  color: var(--blue-strong);
}

.boleto-note {
  margin: 0;
  padding: 10px;
  color: var(--blue-strong);
  background: #e8f3ff;
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.35;
}

.full {
  width: 100%;
}

.cart-status {
  min-height: 24px;
  color: var(--blue-strong);
  font-weight: 800;
}

.email-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(183, 25, 8, .10);
}

.whatsapp-button {
  width: fit-content;
  margin-top: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #075e54, #128c7e 54%, #25d366);
  box-shadow: 0 14px 28px rgba(18, 140, 126, .28), 0 0 0 1px rgba(217, 226, 239, .75) inset;
}

.construction-page {
  min-height: 100vh;
}

.construction-main {
  display: grid;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px);
  place-items: center;
}

.construction-card {
  display: grid;
  justify-items: center;
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.construction-logo {
  display: block;
  width: min(220px, 68vw);
  height: auto;
  margin-bottom: 22px;
}

.construction-card h1 {
  margin: 8px 0 16px;
  color: var(--blue);
  font-family: "Birthstone Bounce", "Palatino Linotype", Georgia, cursive;
  font-size: clamp(2.3rem, 8vw, 4.4rem);
  line-height: 1;
  text-shadow: 0 4px 0 #fff, 0 8px 0 rgba(255, 176, 138, .68), 0 26px 42px rgba(183, 25, 8, .28);
}

.construction-card p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.construction-card .whatsapp-button {
  margin-top: 20px;
}

.contact-info-image {
  display: block;
  width: min(980px, 100%);
  height: auto;
  margin: 24px 0 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.schedule-info article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #eef4fb 100%);
  box-shadow: 0 16px 34px rgba(183, 25, 8, .14), 0 0 0 1px rgba(255, 255, 255, .75) inset;
}

.schedule-info span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 8px;
  font-weight: 900;
}

.schedule-info h3 {
  color: var(--blue-strong);
}

.schedule-info p {
  color: var(--muted);
  line-height: 1.6;
}

.email-preview strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-strong);
}

.email-preview p {
  margin: 6px 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.student-page {
  min-height: calc(100vh - 76px);
}

.student-login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(38px, 7vw, 86px) clamp(18px, 4vw, 54px);
}

.student-login-hero h1 {
  margin: 8px 0 16px;
  max-width: 720px;
  font-family: "Birthstone Bounce", "Palatino Linotype", Georgia, cursive;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: .9;
  color: var(--blue);
  text-shadow: 0 4px 0 #fff, 0 22px 38px rgba(0, 109, 255, .26);
}

.student-login-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.auth-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #eef6ff 100%);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 6px;
  color: var(--blue-strong);
}

.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 800;
}

.auth-card input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.auth-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-strong);
  font-weight: 800;
  line-height: 1.45;
}

.change-password-section {
  padding-top: 0;
}

.classroom-section {
  margin-top: 0;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(7, 26, 61, .35);
}

.backdrop.open {
  display: block;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .access-section {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .feature-columns,
  .course-grid,
  .payment-grid,
  .course-info-grid,
  .impact-grid,
  .schedule-info,
  .student-login-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero img {
    min-height: 300px;
  }

  .hero.reference-hero img {
    min-height: 0;
  }

  .course-sale-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .feature-columns,
  .course-grid,
  .payment-grid,
  .course-info-grid,
  .impact-grid,
  .schedule-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    justify-content: center;
    width: 100%;
    padding: 8px;
  }

  .brand img {
    width: min(176px, 70vw);
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.2;
  }

  .cart-button,
  .button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .section,
  .courses-static-hero,
  .courses-page-hero,
  .page-hero,
  .student-login-hero,
  .access-section {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .courses-static-hero,
  .courses-page-hero,
  .page-hero,
  .student-login-hero {
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .courses-static-hero h1,
  .courses-page-hero h1,
  .page-hero h1,
  .student-login-hero h1,
  .section h2,
  .access-section h2,
  .classroom-online-panel h2 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .courses-static-hero p:not(.eyebrow),
  .courses-page-hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow),
  .student-login-hero p,
  .section > p,
  .access-section p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .course-card,
  .feature-columns article,
  .payment-grid article,
  .student-panel,
  .schedule-info article,
  .course-info-grid article,
  .impact-grid article,
  .auth-card {
    padding: 18px;
  }

  .course-media {
    width: calc(100% + 36px);
    height: 190px;
    margin: -18px -18px 8px;
  }

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

  .course-info-image {
    max-width: 100%;
  }

  .cart-panel {
    width: 100vw;
    padding: 16px;
  }

  .cart-head h2 {
    margin: 0;
    font-size: 1.35rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .payment-choice,
  .guardian-authorization {
    align-items: flex-start;
  }

  .contact-info-image {
    margin-top: 18px;
  }

  .construction-main {
    padding: 18px;
  }

  .construction-card {
    padding: 26px 18px;
  }

  .construction-logo {
    width: min(180px, 58vw);
    margin-bottom: 18px;
  }

  .construction-card h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 460px) {
  .site-nav {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: min(150px, 64vw);
  }

  .courses-static-hero h1,
  .courses-page-hero h1,
  .page-hero h1,
  .student-login-hero h1,
  .section h2,
  .access-section h2,
  .classroom-online-panel h2 {
    font-size: 1.9rem;
  }

  .course-media {
    height: 170px;
  }

  .course-price-badge {
    right: 10px;
    bottom: 10px;
    font-size: .92rem;
  }

  .checkout-form input,
  .checkout-form select,
  .auth-card input {
    min-width: 0;
    width: 100%;
  }

  .construction-logo {
    width: min(150px, 54vw);
  }

  .construction-card h1 {
    font-size: 2rem;
  }
}
