/* Qufl Tech — white / light-grey institutional theme */

:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #e9edf2;
  --line: #e9edf2;
  --ink: #0e1b2a;
  --ink-muted: #5a6b7c;
  --brand: #373435;
  --accent: #0b7a5b;
  --accent-ink: #0a6b50;
  --accent-soft: #eef6f3;
  --link: #1b4dff;
  --amber: #8a5200;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 42, .05);
  --shadow-md: 0 6px 24px -12px rgba(14, 27, 42, .18);

  --wrap: 1140px;
  --pad: 24px;

  --step--1: clamp(.8125rem, .79rem + .12vw, .875rem);
  --step-0: clamp(.9375rem, .91rem + .14vw, 1rem);
  --step-1: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-4: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
  --step-5: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; color: var(--ink-muted); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }

img { max-width: 100%; height: auto; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(2.75rem, 1.8rem + 3.2vw, 4.5rem); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(2rem, 1.6rem + 1.6vw, 3rem); }

.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--step-1); }

.eyebrow {
  display: block;
  margin: 0 0 .75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.lead { font-size: var(--step-1); color: var(--ink-muted); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--brand); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-size: 1.125rem; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a:not(.btn) {
  display: block;
  padding: .5rem .7rem;
  border-radius: 7px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav__list a:not(.btn):hover { color: var(--ink); background: var(--surface); }
.nav__list a:not(.btn)[aria-current="page"] { color: var(--ink); background: var(--surface); font-weight: 600; }

/* the CTA lives in the collapsible nav, so it is mobile-only —
   the header shows its own CTA at wider widths */
.nav__cta { display: none; }

.header-cta { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  padding: .5rem .75rem;
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--surface); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }

.btn--ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--surface-2);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: #d7dee7; }

.btn--quiet { background: transparent; color: var(--accent-ink); padding-inline: .25rem; }
.btn--quiet:hover { color: var(--accent-ink); text-decoration: underline; }

.btn--sm { padding: .5rem .85rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.8rem + 3vw, 4rem);
  background:
    radial-gradient(120% 90% at 85% 0%, #ffffff 0%, rgba(245, 247, 250, .9) 55%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1rem; max-width: 18ch; }
.hero .lead { max-width: 48ch; margin-bottom: 1.75rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.hero__points li { display: flex; align-items: center; gap: .4rem; }
.hero__points li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* hero panel */
.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.panel__head img { width: 26px; height: 26px; object-fit: contain; }
.panel__head strong { font-size: .9375rem; color: var(--ink); }
.panel__head span { margin-left: auto; font-size: .75rem; color: var(--ink-muted); }

.panel__row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: .75rem;
  align-items: start;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--line);
}
.panel__row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel__row p { margin: 0; font-size: .875rem; color: var(--ink-muted); }
.panel__row strong { display: block; font-size: .9375rem; color: var(--ink); font-weight: 600; }

.dot {
  width: 9px; height: 9px;
  margin-top: .5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.dot--amber { background: var(--amber); box-shadow: 0 0 0 4px #fdf4e7; }

.tag {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .2rem .55rem;
  white-space: nowrap;
}
.tag--amber { color: var(--amber); background: #fdf4e7; }

/* ---------- trust bar ---------- */

.trust {
  padding-block: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}
.trust__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust__list li {
  font-size: .8125rem;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .7rem;
}

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card--hover:hover {
  border-color: #d7dee7;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { font-size: .9375rem; }
.card__link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-ink);
}
.card__link:hover { text-decoration: underline; }

.card__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid #d9ebe4;
  color: var(--accent-ink);
}
.card__icon svg { width: 20px; height: 20px; }

.feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9375rem;
  color: var(--ink-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-50%);
}

/* ---------- course cards ---------- */

.course {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.course:hover { border-color: #d7dee7; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.course__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}
.course__level {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .55rem;
}
.course__price {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.course__price small {
  display: block;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
}

.course h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.course p { font-size: .9375rem; margin-bottom: 1rem; }

.course__meta {
  display: grid;
  gap: .35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: .9rem;
}
.course__meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  color: var(--ink-muted);
}
.course__meta li span:last-child { color: var(--ink); font-weight: 500; text-align: right; }

.course .btn { margin-top: auto; }

/* ---------- filter pills ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.filter {
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--surface-2);
  background: var(--bg);
  color: var(--ink-muted);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { background: var(--surface); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-count { color: inherit; opacity: .7; }

/* ---------- badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.badges li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1 1 180px;
  padding: .9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.badges strong { font-size: .9375rem; color: var(--ink); }
.badges span { font-size: .8125rem; color: var(--ink-muted); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding-top: 1.1rem;
  border-top: 2px solid var(--surface-2);
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  transform: translateY(-100%);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-ink);
  background: var(--bg);
  padding-right: .5rem;
}
.section--surface .steps li::before { background: var(--surface); }
.steps h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.steps p { font-size: .9375rem; }

/* ---------- cta band ---------- */

.cta-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: var(--step-3); margin-bottom: .35rem; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 620px;
}
thead th {
  text-align: left;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody td strong { color: var(--ink); font-weight: 600; }

.enrol-steps {
  display: grid;
  gap: .55rem;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-muted);
  font-size: .9375rem;
}
.enrol-steps li::marker { color: var(--accent-ink); font-weight: 600; }

/* ---------- callouts ---------- */

.note {
  display: flex;
  gap: .9rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
}
.note p { margin: 0; }
.note strong { color: var(--ink); }

/* ---------- forms ---------- */

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow-md);
}

.intent {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.intent legend {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .5rem;
  padding: 0;
}
.intent label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .5rem .9rem;
  border: 1px solid var(--surface-2);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.intent label:hover { background: var(--surface); }
.intent input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.intent input:checked + span { color: #fff; }
.intent label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.intent input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 999px; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .35rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: .8125rem;
  margin-top: .1rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #d7dee7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 91, .14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field [aria-invalid="true"] { border-color: #b42318; }
.error {
  display: none;
  margin-top: .3rem;
  font-size: .8125rem;
  font-weight: 500;
  color: #b42318;
}
.error.is-visible { display: block; }

.checkbox {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .875rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.checkbox input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 8px;
  font-size: .9375rem;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--accent-soft); border: 1px solid #cfe7de; color: #0a5b45; }
.form-status--err { background: #fdf2f1; border: 1px solid #f3d2ce; color: #8f2a1e; }

/* ---------- contact aside ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
}

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.info-list li { display: grid; gap: .2rem; }
.info-list dt, .info-list .label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.info-list .value { font-size: .9375rem; color: var(--ink); }
.info-list a { text-decoration: none; color: var(--ink); }
.info-list a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- page header ---------- */

.page-head {
  padding-block: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem) clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: var(--step-4); max-width: 24ch; margin-bottom: .75rem; }
.page-head .lead { max-width: 60ch; margin: 0; }

.breadcrumb {
  display: flex;
  gap: .4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .8125rem;
  color: var(--ink-muted);
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* ---------- prose ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.25rem; font-size: var(--step-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { color: var(--ink-muted); padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 1.5rem;
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: .9rem; }
.footer-brand p { max-width: 34ch; font-size: .9375rem; }
.footer-col h2 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: .8125rem;
  color: var(--ink-muted);
}
.footer-bottom p { margin: 0; font-size: inherit; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 22ch; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: .75rem var(--pad) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__list a:not(.btn) { padding: .7rem .75rem; font-size: 1rem; }
  .nav__cta { display: block; margin-top: .6rem; }
  .nav__cta .btn { width: 100%; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .badges li { flex-basis: 100%; }
  .panel { padding: 1rem; }
  .panel__row { grid-template-columns: 20px 1fr; }
  .panel__row .tag { grid-column: 2; justify-self: start; }
}

@media (max-width: 400px) {
  .brand span { font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
  .course__top { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .cta-band, .filters { display: none; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
