:root {
  --navy: #0b1f3a;
  --navy-2: #07172c;
  --blue: #1e5aa8;
  --blue-2: #174884;
  --gold: #c9a227;
  --off-white: #f7f8fa;
  --text: #1f2933;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
  --success: #2f855a;
  --danger: #a83232;
  --shadow-sm: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 18px 44px rgba(11, 31, 58, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1180px;
  --font-heading: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: Inter, "Open Sans", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-2);
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.98);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: max-content;
}

.brand:hover {
  color: var(--white);
}

.logo-mark {
  width: 46px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 6px 6px 14px 14px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 18px;
  height: 14px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateX(-50%) rotate(-45deg);
  background: var(--navy);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 1vw + 0.95rem, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-tagline {
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px clamp(5px, 0.55vw, 10px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.72rem, 0.45vw + 0.42rem, 0.88rem);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.site-nav .login-link {
  border: 1px solid var(--gold);
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 23, 44, 1) 0%, rgba(7, 23, 44, 0.96) 38%, rgba(7, 23, 44, 0.66) 100%),
    url("../img/math-board.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 76px 0 62px;
}

.hero h1,
.page-hero h1,
.section-title,
.panel-title,
.dashboard-title {
  font-family: var(--font-heading);
  color: inherit;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(2.45rem, 5vw, 5.1rem);
  font-weight: 700;
}

.hero p {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem);
}

.hero-actions,
.section-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(30, 90, 168, 0.22);
}

.btn-primary:hover {
  background: var(--blue-2);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: rgba(30, 90, 168, 0.06);
  color: var(--blue-2);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #b89121;
  color: var(--navy);
}

.hero-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.board-frame {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.board-frame img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
  color: var(--navy);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon,
.feature-icon {
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.trust-item strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.35;
}

.section {
  padding: 84px 0;
}

.section-sm {
  padding: 54px 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-header.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.section-dark .section-title,
.section-dark .section-eyebrow,
.section-dark .section-lead {
  color: var(--white);
}

.section-title::after,
.panel-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--gold);
}

.section-header.align-left .section-title::after,
.panel-title::after {
  margin-left: 0;
}

.section-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-card,
.course-card,
.resource-card,
.policy-card {
  padding: 26px;
}

.feature-card {
  text-align: center;
  box-shadow: none;
}

.feature-card h3,
.course-card h3,
.resource-card h3,
.policy-card h3,
.step-card h3,
.benefit-row h3,
.dashboard-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-heading);
  line-height: 1.25;
  font-size: 1.22rem;
}

.feature-card p,
.course-card p,
.resource-card p,
.policy-card p,
.step-card p,
.benefit-row p,
.dashboard-card p {
  margin: 0;
  color: var(--muted);
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.course-thumb {
  height: 128px;
  margin: -16px -16px 18px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(rgba(11, 31, 58, 0.24), rgba(11, 31, 58, 0.24)),
    url("../img/math-board.png") center / cover no-repeat;
}

.course-code,
.meta-label {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.course-card h3 {
  font-size: 1.25rem;
}

.course-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
  color: var(--text);
  font-size: 0.92rem;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-meta b {
  color: var(--navy);
}

.course-card .btn {
  width: 100%;
  margin-top: auto;
}

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(30, 90, 168, 0.24);
  border-left: 4px solid var(--blue);
  background: #f2f7ff;
  border-radius: var(--radius);
  color: var(--navy);
}

.notice.gold {
  border-color: rgba(201, 162, 39, 0.32);
  border-left-color: var(--gold);
  background: #fffaf0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.media-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-panel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.media-panel-content {
  padding: 24px;
}

.media-panel-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
}

.media-panel-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 3px solid var(--gold);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}

.fields-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fields-list li,
.pill-list li,
.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 23, 44, 0.98) 0%, rgba(7, 23, 44, 0.92) 48%, rgba(7, 23, 44, 0.58) 100%),
    url("../img/math-board.png") center right / cover no-repeat;
}

.page-hero-inner {
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.92);
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.52);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 180px 180px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 30px;
}

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

.field label {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 90, 168, 0.12);
}

.category-block {
  margin-top: 34px;
}

.category-block:first-child {
  margin-top: 0;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 1.6vw, 2rem);
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.detail-main,
.detail-aside,
.login-panel,
.contact-panel {
  padding: 30px;
}

.detail-main .breadcrumbs {
  color: var(--muted);
  margin-bottom: 10px;
}

.detail-main .breadcrumbs a {
  color: var(--blue);
}

.detail-main .breadcrumbs span::before {
  color: var(--border);
}

.panel-title {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.35rem, 1.5vw, 1.85rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.detail-meta .access-badge {
  background: #f2f7ff;
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.module-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.module-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.module-list span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: #edf4ff;
  color: var(--blue);
  font-weight: 800;
}

.side-section + .side-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.side-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-heading);
}

.login-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.login-brand {
  color: var(--white);
  padding: 70px clamp(28px, 5vw, 70px);
  background:
    linear-gradient(rgba(7, 23, 44, 0.76), rgba(7, 23, 44, 0.92)),
    url("../img/math-board.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand .brand {
  margin-bottom: 42px;
}

.login-brand h1 {
  margin: 0;
  max-width: 430px;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  line-height: 1.15;
}

.login-brand p {
  margin: 18px 0 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
}

.login-content {
  display: grid;
  place-items: center;
  padding: 56px 20px;
}

.login-panel {
  width: min(100%, 520px);
}

.login-panel h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
}

.forgot-link {
  display: inline-block;
  margin: 4px 0 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.dashboard-sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 26px 18px;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.dashboard-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.dashboard-sidebar a.is-active,
.dashboard-sidebar a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-main {
  padding: 36px;
  background: var(--off-white);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.dashboard-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.dashboard-card {
  padding: 22px;
}

.metric {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.metric strong {
  display: block;
  color: var(--navy);
  font-size: 2.4rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-list {
  display: grid;
  gap: 16px;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(110px, 220px) 44px;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.resource-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.resource-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.resource-list a:hover {
  color: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.contact-method {
  padding: 24px;
}

.contact-method + .contact-method {
  margin-top: 18px;
}

.form-status {
  margin-top: 18px;
  color: var(--success);
  font-weight: 700;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 1.2rem;
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-content h2 {
  margin: 34px 0 12px;
  color: var(--navy);
  font-family: var(--font-heading);
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.8fr 0.95fr;
  gap: 34px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--font-heading);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.footer-links a,
.site-footer a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 72px;
  }

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

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .site-nav .login-link {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .trust-list,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar .btn {
    align-self: end;
  }

  .detail-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .header-inner {
    gap: 8px;
  }

  .logo-mark {
    width: 36px;
    height: 42px;
    font-size: 0.78rem;
  }

  .logo-mark::after {
    width: 14px;
    height: 11px;
    bottom: -6px;
  }

  .brand {
    gap: 9px;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .site-nav a {
    padding: 8px 4px;
    font-size: 0.66rem;
  }

  .site-nav .login-link {
    margin-left: 2px;
  }
}

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

  .brand-tagline {
    display: none;
  }

  .hero-grid {
    padding: 58px 0 50px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .hero-actions,
  .section-actions,
  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-list,
  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .toolbar,
  .login-wrap {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px 12px;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero-inner {
    padding: 52px 0;
  }

  .detail-main,
  .detail-aside,
  .login-panel,
  .contact-panel {
    padding: 22px;
  }

  .login-brand {
    min-height: 360px;
  }

  .dashboard-main {
    padding: 24px 16px;
  }

  .dashboard-sidebar nav {
    grid-template-columns: 1fr;
  }

  .dashboard-top {
    display: grid;
  }

  .progress-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
