@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./vendor/fonts/SpaceMono/SpaceMono-Regular.woff2") format("woff2");
}

:root {
  --ink: #081016;
  --ink-soft: #101c24;
  --ink-raised: #17252e;
  --paper: #f2f6f5;
  --white: #ffffff;
  --text: #101a20;
  --muted: #64757f;
  --line: #d8e0e1;
  --line-dark: #263741;
  --cyan: #47d9ec;
  --cyan-deep: #12bad9;
  --green: #20dfa6;
  --blue: #5ba9ff;
  --violet: #9a85ff;
  --amber: #ffb44e;
  --danger: #d75f61;
  --success: #0f9873;
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  --header-height: 88px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.fatal-error,
.not-found,
.certificate-missing {
  max-width: 760px;
  min-height: 65vh;
  margin: 0 auto;
  padding: 120px 28px;
  text-align: center;
}

.fatal-error h1,
.not-found h1,
.certificate-missing h1 {
  margin: 12px 0 28px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(133, 168, 185, 0.2);
  background: rgba(7, 13, 18, 0.96);
  color: #f7fbfd;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(29, 190, 243, 0.24));
}

.brand-words {
  display: grid;
  line-height: 1.05;
}

.brand-words strong {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-words small {
  margin-top: 5px;
  color: #8c9aa7;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.brand-rule {
  width: 1px;
  height: 40px;
  margin-left: 14px;
  background: #31414b;
}

.learning-word {
  color: #b7c7d0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
}

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

.back-link,
.text-button {
  border: 0;
  background: transparent;
  color: #a9bbc5;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.back-link:hover,
.text-button:hover {
  color: var(--white);
}

.session-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid #30434e;
  border-radius: 999px;
  background: #111b22;
  color: #eef9fc;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.session-button:hover {
  border-color: var(--cyan);
}

.session-button.checking {
  color: #90a3ae;
  cursor: progress;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(32, 223, 166, 0.7);
}

.checking .status-dot {
  background: var(--amber);
  box-shadow: none;
  animation: pulse 1.1s infinite alternate;
}

@keyframes pulse {
  to {
    opacity: 0.35;
  }
}

.account-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(71, 217, 236, 0.45);
  border-radius: 10px;
  background: #122931;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
}

.account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.account-copy strong {
  max-width: 160px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  margin-top: 4px;
  color: #80919b;
  font-size: 10px;
}

.learning-auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  overflow: hidden;
  background: #091117;
}

.learning-auth-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 4vw, 64px);
  border-right: 1px solid rgba(113, 161, 181, 0.18);
  background:
    radial-gradient(circle at 70% 18%, rgba(45, 154, 201, 0.2), transparent 31%),
    radial-gradient(circle at 18% 82%, rgba(32, 223, 166, 0.1), transparent 28%),
    #081016;
  color: var(--white);
}

.learning-auth-brand::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(118, 155, 174, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 155, 174, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  opacity: 0.38;
  pointer-events: none;
}

.learning-auth-brand::after {
  position: absolute;
  right: -210px;
  bottom: -320px;
  width: 670px;
  height: 670px;
  border: 1px solid rgba(71, 217, 236, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.learning-auth-brand-top,
.learning-auth-story,
.learning-auth-brand-foot {
  position: relative;
  z-index: 1;
}

.learning-auth-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.auth-brand-lockup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(29, 190, 243, 0.28));
}

.auth-brand-lockup > span {
  display: grid;
  line-height: 1.02;
}

.auth-brand-lockup strong {
  font-size: 19px;
  letter-spacing: -0.025em;
}

.auth-brand-lockup small {
  margin-top: 6px;
  color: #8c9aa7;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.auth-brand-lockup > i {
  width: 1px;
  height: 42px;
  margin-left: 10px;
  background: #30414b;
}

.auth-brand-lockup > b {
  color: #b4c4cc;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
}

.auth-service-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(99, 139, 156, 0.24);
  border-radius: 999px;
  color: #91a5af;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-service-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(32, 223, 166, 0.7);
}

.learning-auth-story {
  width: min(780px, 100%);
  margin: clamp(70px, 11vh, 135px) 0;
}

.learning-auth-story h1 {
  margin: 0;
  font-size: clamp(3.5rem, 6.2vw, 7.7rem);
  font-weight: 680;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.learning-auth-story h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--green), #45c8f5 52%, #9285ff);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.learning-auth-story > p:not(.eyebrow) {
  max-width: 690px;
  margin: 32px 0 0;
  color: #a1b1ba;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.7;
}

.learning-auth-features {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.learning-auth-features article {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(105, 148, 167, 0.2);
  background: rgba(16, 29, 38, 0.72);
}

.learning-auth-features article > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
}

.learning-auth-features article > div {
  display: grid;
  gap: 5px;
}

.learning-auth-features strong {
  color: #eaf2f5;
  font-size: 12px;
}

.learning-auth-features small {
  color: #768b96;
  font-size: 10px;
  line-height: 1.45;
}

.learning-auth-brand-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667b86;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-auth-brand-foot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3d5662;
}

.learning-auth-form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 5vw, 76px);
  background:
    radial-gradient(circle at 50% 35%, rgba(36, 120, 156, 0.09), transparent 40%),
    #0b141a;
}

.learning-auth-card {
  width: min(500px, 100%);
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(112, 153, 170, 0.24);
  background: linear-gradient(145deg, rgba(20, 34, 43, 0.98), rgba(10, 19, 25, 0.98));
  color: #eef5f7;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.3);
}

.auth-card-mark {
  display: none;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
}

.auth-card-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.learning-auth-card .eyebrow {
  margin-bottom: 17px;
  color: var(--cyan);
}

.learning-auth-card h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.learning-auth-copy {
  margin: 20px 0 30px;
  color: #8fa2ac;
  font-size: 13px;
  line-height: 1.65;
}

.learning-auth-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 95, 97, 0.4);
  background: rgba(215, 95, 97, 0.09);
  color: #ffb2b3;
  font-size: 12px;
  line-height: 1.5;
}

.learning-auth-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.learning-auth-field > span {
  color: #a9bac2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.learning-auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #2b3d47;
  border-radius: 3px;
  outline: none;
  background: #0b151b;
  color: #f2f7f8;
  font-size: 14px;
}

.learning-auth-field input::placeholder {
  color: #536771;
}

.learning-auth-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(71, 217, 236, 0.09);
}

.learning-login-button {
  width: 100%;
  margin-top: 24px;
}

.learning-login-button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.learning-login-button > i {
  width: 18px;
  height: 18px;
  font-style: normal;
}

.learning-login-button > i::before {
  content: "→";
}

.learning-login-button > i.is-spinning {
  border: 2px solid rgba(5, 23, 27, 0.25);
  border-top-color: #05171b;
  border-radius: 50%;
  animation: auth-spin 0.75s linear infinite;
}

.learning-login-button > i.is-spinning::before {
  content: "";
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.learning-auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 22px;
}

.learning-auth-links a,
.learning-auth-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #92a6b0;
  font-size: 11px;
  cursor: pointer;
}

.learning-auth-links a:hover,
.learning-auth-links button:hover {
  color: var(--cyan);
}

.learning-auth-links > span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #48606b;
}

.learning-auth-security {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid #263741;
  color: #617680;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.hero {
  position: relative;
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  overflow: hidden;
  padding: clamp(78px, 9vw, 130px) clamp(28px, 6vw, 108px);
  background:
    radial-gradient(circle at 78% 18%, rgba(45, 134, 184, 0.22), transparent 27%),
    radial-gradient(circle at 19% 72%, rgba(31, 209, 165, 0.08), transparent 25%),
    var(--ink);
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -330px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(71, 217, 236, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-grid,
.certificate-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(118, 155, 174, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 155, 174, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.eyebrow.dark {
  color: #008da7;
}

.hero h1 {
  max-width: 970px;
  margin: 0;
  font-size: clamp(3.6rem, 7.5vw, 8.6rem);
  font-weight: 680;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--green), #45c8f5 52%, #9285ff);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.hero-copy {
  max-width: 780px;
  margin: 36px 0 0;
  color: #9cabb5;
  font-size: clamp(1.05rem, 1.55vw, 1.42rem);
  line-height: 1.65;
}

.hero-actions,
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: #041116;
  box-shadow: 0 12px 30px rgba(25, 219, 178, 0.14);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  border-color: #354852;
  background: transparent;
  color: #dce8ed;
}

.secondary-button:hover {
  border-color: #6c8693;
}

.secondary-button.light {
  border-color: #bac7ca;
  color: #25343c;
}

.secondary-button.light:hover {
  border-color: #536c78;
}

.wide {
  width: 100%;
}

.hero-panel {
  padding: 32px;
  border: 1px solid rgba(106, 146, 163, 0.31);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(21, 36, 46, 0.92), rgba(7, 14, 19, 0.88));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.panel-label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.hero-stat {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(127, 157, 171, 0.18);
}

.hero-stat strong {
  color: var(--white);
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 400;
}

.hero-stat span {
  color: #9db0bb;
  font-size: 14px;
}

.panel-note {
  margin: 12px 0 0;
  padding: 18px;
  border-left: 2px solid var(--green);
  background: rgba(20, 223, 164, 0.06);
  color: #b2c4cd;
  font-size: 13px;
}

.catalog-section {
  max-width: 1640px;
  margin: 0 auto;
  padding: 100px clamp(24px, 5vw, 80px) 120px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 70px;
  align-items: end;
}

.section-heading h2,
.trust-strip h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 5.2rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 62px 0 72px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.search-field {
  display: flex;
  min-width: min(360px, 100%);
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: #71818a;
}

.search-field input {
  width: 100%;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #63747d;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: #bfcdd0;
  background: var(--white);
  color: var(--ink);
}

.course-group + .course-group {
  margin-top: 96px;
}

.group-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid #c9d4d6;
}

.group-heading > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.group-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #b7c8cc;
  border-radius: 50%;
  color: #178ea5;
  font-family: var(--mono);
  font-size: 10px;
}

.group-heading p {
  max-width: 470px;
  margin: 0;
  color: #697b85;
  font-size: 13px;
}

.group-heading > div p {
  margin: 0 0 2px;
  color: #1aa2b9;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.group-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

.course-card {
  position: relative;
  display: flex;
  min-height: 495px;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #cbd7d9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 34px rgba(13, 32, 42, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--card-color, var(--cyan));
  content: "";
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: #9db5bb;
  box-shadow: 0 20px 42px rgba(13, 32, 42, 0.08);
}

.color-cyan {
  --card-color: var(--cyan-deep);
}

.color-violet {
  --card-color: var(--violet);
}

.color-blue {
  --card-color: var(--blue);
}

.color-green {
  --card-color: var(--green);
}

.color-amber {
  --card-color: var(--amber);
}

.course-card.is-locked {
  background:
    linear-gradient(rgba(247, 249, 249, 0.94), rgba(247, 249, 249, 0.94)),
    repeating-linear-gradient(45deg, #edf2f3 0, #edf2f3 10px, #f7f9f9 10px, #f7f9f9 20px);
}

.course-card-top {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-code {
  color: #2e4c59;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.access-badge.public {
  background: #dff9f1;
  color: #087a5d;
}

.access-badge.protected {
  background: #e9eef0;
  color: #586b74;
}

.course-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 35px 0 22px;
  border: 1px solid color-mix(in srgb, var(--card-color) 46%, #c9d7da);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 9%, white);
  color: color-mix(in srgb, var(--card-color) 74%, #17303d);
  font-family: var(--mono);
  font-size: 12px;
}

.course-category {
  margin: 0 0 7px;
  color: #778991;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-card h3 {
  margin: 0;
  font-size: 27px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.course-description {
  margin: 18px 0 22px;
  color: #657780;
  font-size: 14px;
  line-height: 1.65;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  color: #6c7c84;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.course-meta span + span::before {
  margin-right: 16px;
  color: #b5c1c5;
  content: "·";
}

.card-progress {
  margin-top: 18px;
}

.card-progress > span,
.sidebar-progress > span,
.large-progress > span {
  display: block;
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: #dde5e7;
}

.card-progress i,
.sidebar-progress i,
.large-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--card-color, var(--cyan));
}

.card-progress small {
  display: block;
  margin-top: 7px;
  color: #72838c;
  font-size: 10px;
}

.course-card-footer {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.course-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 1px solid #b7c7ca;
  border-radius: 4px;
  background: transparent;
  color: #192930;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.course-action:hover {
  border-color: var(--card-color);
  background: color-mix(in srgb, var(--card-color) 6%, white);
}

.certificate-link {
  color: #148da4;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.empty-state {
  padding: 80px 24px;
  border: 1px dashed #b8c7ca;
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: 80px;
  padding: 100px clamp(28px, 6vw, 108px);
  background: var(--ink-soft);
  color: var(--white);
}

.trust-points {
  display: grid;
  gap: 0;
}

.trust-points p {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid #2a3942;
}

.trust-points strong {
  color: var(--cyan);
}

.trust-points span {
  color: #9dafb8;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 34px clamp(24px, 5vw, 80px);
  border-top: 1px solid #22323c;
  background: var(--ink);
  color: #71838d;
  font-size: 11px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-brand span {
  display: grid;
}

.footer-brand strong {
  color: #f4f8fa;
  font-size: 13px;
}

.footer-brand small {
  color: #70818b;
  font-size: 9px;
}

.lesson-shell {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: 360px minmax(0, 1fr);
}

.course-sidebar {
  position: sticky;
  top: var(--header-height);
  display: flex;
  height: calc(100vh - var(--header-height));
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #243641;
  background: #0b171e;
  color: #d8e4e9;
}

.sidebar-course {
  padding: 44px 28px 30px;
  border-bottom: 1px solid #21323b;
}

.sidebar-course > p,
.lesson-list-heading,
.lesson-topline,
.lesson-facts,
.practice-copy > p,
.content-heading p,
.exam-label {
  color: #70a8b9;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.sidebar-course h2 {
  margin: 10px 0 22px;
  color: #f2f7f8;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.sidebar-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.sidebar-progress > span {
  background: #1e3039;
}

.sidebar-progress i {
  background: var(--cyan);
}

.sidebar-progress strong {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
}

.lesson-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 14px;
}

.lesson-list-heading small {
  color: #617681;
  font-size: 8px;
}

.lesson-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-color: #38505c transparent;
  scrollbar-width: thin;
}

.lesson-list a {
  display: grid;
  min-height: 78px;
  grid-template-columns: 38px minmax(0, 1fr) 12px;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-left: 3px solid transparent;
  border-top: 1px solid #172832;
  color: #90a3ad;
}

.lesson-list a:hover {
  background: #10212a;
  color: #dce7eb;
}

.lesson-list a.active {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(255, 180, 78, 0.12), transparent);
  color: #f2f6f8;
}

.lesson-list a.complete .lesson-number {
  border-color: rgba(32, 223, 166, 0.6);
  background: rgba(32, 223, 166, 0.1);
  color: var(--green);
}

.lesson-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #2a414d;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8px;
}

.lesson-list a > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.lesson-list strong {
  font-size: 12px;
  font-weight: 650;
}

.lesson-list small {
  color: #657b87;
  font-family: var(--mono);
  font-size: 8px;
}

.lesson-list b {
  color: #55707d;
  font-weight: 400;
}

.exam-tile {
  display: grid;
  gap: 5px;
  margin: 16px;
  padding: 18px;
  border: 1px solid #2d414c;
  background: #10212a;
}

.exam-tile span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.exam-tile strong {
  color: #79909b;
  font-size: 11px;
}

.exam-tile.ready {
  border-color: rgba(32, 223, 166, 0.42);
}

.exam-tile.ready span,
.exam-tile.ready strong {
  color: var(--green);
}

.lesson-main {
  min-width: 0;
  background: var(--paper);
}

.lesson-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px clamp(28px, 6vw, 100px);
  border-bottom: 1px solid var(--line);
}

.lesson-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(28px, 6vw, 88px) 72px;
}

.lesson-header h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 7.2rem);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.lesson-header > p:not(.eyebrow) {
  max-width: 880px;
  margin: 32px 0 0;
  color: #60737d;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.7;
}

.lesson-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.lesson-facts span + span::before {
  margin-right: 24px;
  color: #abb9bd;
  content: "·";
}

.lesson-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(28px, 6vw, 88px) 100px;
}

.content-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.content-heading > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #b5c7cb;
  border-radius: 50%;
  color: #078da6;
  font-family: var(--mono);
  font-size: 9px;
}

.content-heading p {
  margin: 0;
  color: #078da6;
}

.content-heading h2 {
  margin: 3px 0 0;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.learning-points {
  display: grid;
  gap: 0;
  margin: 34px 0 64px;
  padding: 0;
  border-top: 1px solid #cad6d8;
  list-style: none;
}

.learning-points li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 27px 0;
  border-bottom: 1px solid #cad6d8;
}

.learning-points li > span {
  padding-top: 4px;
  color: #0793ad;
  font-family: var(--mono);
  font-size: 9px;
}

.learning-points p {
  max-width: 940px;
  margin: 0;
  color: #31444e;
  font-size: 17px;
  line-height: 1.65;
}

.practice-panel {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 26px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border-left: 4px solid var(--amber);
  background: var(--ink-soft);
  color: var(--white);
}

.practice-panel::after {
  position: absolute;
  top: -115px;
  right: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(102, 146, 166, 0.18);
  border-radius: 50%;
  content: "";
}

.practice-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  font-size: 24px;
}

.practice-copy {
  position: relative;
  z-index: 1;
}

.practice-copy > p:first-child {
  margin: 3px 0 6px;
  color: var(--amber);
}

.practice-copy h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.practice-copy > p:not(:first-child) {
  max-width: 980px;
  margin: 24px 0;
  color: #aebec7;
  font-size: 17px;
  line-height: 1.7;
}

.completion-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: #dce7eb;
  cursor: pointer;
}

.completion-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.completion-check > span {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #536a75;
  background: #14232b;
}

.completion-check input:focus-visible + span {
  outline: 3px solid rgba(71, 217, 236, 0.35);
  outline-offset: 2px;
}

.completion-check input:checked + span {
  border-color: var(--green);
  background: var(--green);
}

.completion-check input:checked + span::after {
  color: #051611;
  content: "✓";
  font-weight: 900;
}

.completion-check strong {
  font-size: 13px;
}

.lesson-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}

.nav-card {
  display: flex;
  min-height: 122px;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid #c5d1d3;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-card:hover {
  border-color: #8199a2;
}

.nav-card > span {
  color: #168ea5;
  font-size: 25px;
}

.nav-card > div {
  display: grid;
  gap: 8px;
}

.nav-card small {
  color: #2397ab;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.nav-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.nav-card.next {
  justify-content: space-between;
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: var(--white);
}

.nav-card.next > div {
  text-align: right;
}

.nav-card.next > span {
  color: var(--cyan);
}

.gate-page {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(60px, 8vw, 120px) clamp(24px, 6vw, 100px);
  background:
    linear-gradient(rgba(242, 246, 245, 0.92), rgba(242, 246, 245, 0.97)),
    repeating-linear-gradient(90deg, #b9c9cd 0, #b9c9cd 1px, transparent 1px, transparent 56px);
}

.gate-card {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 78px);
  border: 1px solid #c4d1d3;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 25px 70px rgba(8, 26, 36, 0.08);
  text-align: center;
}

.gate-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 18px;
  background: #122a34;
  color: var(--cyan);
  font-size: 22px;
}

.gate-card .eyebrow,
.login-modal .eyebrow {
  justify-content: center;
}

.gate-card h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.gate-card > p:not(.eyebrow, .gate-privacy) {
  max-width: 680px;
  margin: 28px auto 0;
  color: #62747d;
  font-size: 18px;
}

.gate-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px 0 0;
  border: solid #d5dfe1;
  border-width: 1px 0;
}

.gate-summary span {
  display: grid;
  gap: 2px;
  padding: 22px 10px;
  color: #6d7c84;
  font-size: 11px;
}

.gate-summary span + span {
  border-left: 1px solid #d5dfe1;
}

.gate-summary strong {
  color: #0c93aa;
  font-family: var(--mono);
  font-size: 14px;
}

.gate-card .gate-actions {
  justify-content: center;
}

.gate-privacy {
  margin: 24px 0 0;
  color: #849399;
  font-size: 11px;
}

.gate-alternatives {
  max-width: 840px;
  margin: 46px auto 0;
}

.gate-alternatives > p {
  margin: 0 0 12px;
  color: #4d6874;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.gate-alternatives > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.gate-alternatives button {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #c4d1d3;
  background: rgba(255, 255, 255, 0.82);
  color: #253640;
  text-align: left;
  cursor: pointer;
}

.gate-alternatives button span {
  color: #0f95ab;
  font-family: var(--mono);
  font-size: 8px;
}

.gate-alternatives button b {
  color: #0f95ab;
}

.exam-page {
  max-width: 1180px;
  min-height: 80vh;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 68px) 120px;
}

.exam-intro {
  padding-bottom: 54px;
  border-bottom: 1px solid #c8d4d6;
}

.exam-intro h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.exam-intro > p:not(.eyebrow) {
  max-width: 790px;
  margin: 28px 0 0;
  color: #60727b;
  font-size: 18px;
}

.exam-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.exam-rules span {
  display: inline-flex;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid #c6d2d4;
  background: var(--white);
  color: #64757d;
  font-family: var(--mono);
  font-size: 9px;
}

.exam-rules strong {
  color: #0e8ca3;
}

.locked-exam {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.locked-exam .exam-label {
  margin-bottom: 30px;
}

.locked-exam .large-progress {
  margin: 38px auto 28px;
}

.large-progress {
  display: grid;
  max-width: 520px;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.large-progress > span {
  height: 7px;
}

.large-progress i {
  background: var(--cyan-deep);
}

.large-progress strong {
  color: #0f8da4;
  font-family: var(--mono);
  font-size: 12px;
}

.exam-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 42px 0 0;
  padding: 26px;
  border: 1px solid;
}

.exam-result > div:first-child {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.exam-result.passed {
  border-color: #79c8b2;
  background: #e8f8f2;
}

.exam-result.passed > div:first-child {
  background: #1ac28e;
  color: #061811;
}

.exam-result.failed {
  border-color: #e0bd86;
  background: #fff7e9;
}

.exam-result.failed > div:first-child {
  background: var(--amber);
  color: #221404;
}

.exam-result p {
  margin: 4px 0;
  color: #5e7179;
  font-size: 13px;
}

.exam-result > div:nth-child(2) > p:first-child {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.exam-result h2 {
  margin: 0;
  font-size: 24px;
}

.existing-certificate {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  padding: 16px 20px;
  border: 1px solid #8fd0bd;
  background: #e9f9f4;
}

.existing-certificate span,
.existing-certificate a {
  color: #087d61;
  font-weight: 800;
}

.existing-certificate p {
  margin: 0;
}

.existing-certificate a {
  margin-left: auto;
}

.exam-form {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.question-card {
  min-width: 0;
  margin: 0;
  padding: 28px;
  border: 1px solid #c5d1d3;
  background: rgba(255, 255, 255, 0.88);
}

.question-card.correct {
  border-color: #76c6ae;
}

.question-card.incorrect {
  border-color: #dda96a;
}

.question-card legend {
  display: grid;
  width: 100%;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
  padding: 0;
  color: #17262e;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.4;
}

.question-card legend span {
  color: #0f91a8;
  font-family: var(--mono);
  font-size: 10px;
}

.answer-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.answer-list label {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d3dcde;
  color: #51646e;
  cursor: pointer;
}

.answer-list label:hover {
  border-color: #91a8af;
}

.answer-list input {
  position: absolute;
  opacity: 0;
}

.answer-list label > span {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #a6b7bc;
  border-radius: 50%;
}

.answer-list input:checked + span {
  border: 6px solid var(--cyan-deep);
}

.answer-list input:focus-visible + span {
  outline: 3px solid rgba(71, 217, 236, 0.32);
  outline-offset: 2px;
}

.answer-list strong {
  font-size: 14px;
  font-weight: 560;
  line-height: 1.5;
}

.answer-list label.correct-choice {
  border-color: #7fcab4;
  background: #edf9f5;
}

.answer-explanation {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #1699af;
  background: #eef5f6;
  color: #52656f;
  font-size: 13px;
}

.exam-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 28px;
  background: var(--ink-soft);
  color: var(--white);
}

.exam-submit p {
  margin: 0;
  color: #9fb0b9;
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 9, 13, 0.76);
  backdrop-filter: blur(7px);
}

.login-modal {
  position: relative;
  width: min(560px, 100%);
  padding: 46px;
  border: 1px solid #c3d0d2;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d2dcde;
  background: transparent;
  color: #667981;
  font-size: 22px;
  cursor: pointer;
}

.login-modal h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.login-modal > p:not(.eyebrow) {
  margin: 22px 0;
  color: #657780;
}

.modal-course {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0;
  padding: 14px;
  border: 1px solid #d4dfe1;
  background: #f5f8f8;
  color: #687981;
  font-size: 11px;
}

.modal-course span {
  color: #0e91a8;
  font-family: var(--mono);
}

.login-modal .secondary-button {
  margin-top: 9px;
}

.login-modal > small {
  display: block;
  margin-top: 20px;
  color: #8a999f;
}

.toast {
  position: fixed;
  z-index: 180;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 15px 18px;
  border: 1px solid #39515d;
  border-radius: 4px;
  background: #10212a;
  color: #e6f0f3;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.25);
  font-size: 13px;
}

.certificate-page {
  min-height: 80vh;
  padding: 54px clamp(20px, 4vw, 60px) 90px;
  background: #e7eded;
}

.certificate-toolbar {
  display: flex;
  max-width: 1180px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 20px;
  color: #566a73;
  font-size: 13px;
}

.certificate {
  position: relative;
  max-width: 1180px;
  min-height: 760px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(48px, 7vw, 94px);
  border: 1px solid #28404c;
  background:
    radial-gradient(circle at 90% 10%, rgba(74, 176, 231, 0.16), transparent 24%),
    var(--ink);
  color: var(--white);
  box-shadow: 0 24px 80px rgba(15, 36, 46, 0.16);
}

.certificate::after {
  position: absolute;
  right: -160px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(71, 217, 236, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(71, 217, 236, 0.035), 0 0 0 120px rgba(71, 217, 236, 0.025);
  content: "";
}

.certificate-brand,
.certificate > *:not(.certificate-grid) {
  position: relative;
  z-index: 1;
}

.certificate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.certificate-brand img {
  width: 46px;
  height: 46px;
}

.certificate-brand > div {
  display: grid;
}

.certificate-brand strong {
  font-size: 17px;
}

.certificate-brand small {
  color: #7e929e;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.certificate-brand > span {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #354750;
  color: #9aabb4;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.certificate-kicker {
  margin: 70px 0 15px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.19em;
}

.certificate h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 8rem);
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.certificate h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.certificate .presented {
  margin: 54px 0 8px;
  color: #80939e;
  font-size: 13px;
}

.certificate h2 {
  display: inline-block;
  min-width: min(620px, 100%);
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid #3b515d;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.045em;
}

.certificate-copy {
  margin: 23px 0 5px;
  color: #8fa1ab;
}

.certificate h3 {
  margin: 0;
  color: #f4f8f9;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.certificate-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}

.certificate-details span {
  display: grid;
  gap: 5px;
}

.certificate-details small {
  color: #6d8290;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.certificate-details strong {
  color: #cfdae0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
}

.certificate-disclaimer {
  max-width: 720px;
  margin: 52px 0 0;
  color: #667984;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  }

  .lesson-shell {
    grid-template-columns: 310px minmax(0, 1fr);
  }

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

  .site-footer > p:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .brand-lockup img {
    width: 40px;
    height: 40px;
  }

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

  .hero-panel {
    max-width: 680px;
  }

  .section-heading,
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-row {
    justify-content: flex-start;
  }

  .lesson-shell {
    display: block;
  }

  .course-sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: 520px;
  }

  .lesson-list {
    max-height: 300px;
  }

  .exam-result {
    grid-template-columns: 58px 1fr;
  }

  .exam-result > .primary-button,
  .exam-result > .secondary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .brand-rule,
  .learning-word,
  .account-copy,
  .back-link {
    display: none;
  }

  .brand-words strong {
    font-size: 15px;
  }

  .brand-words small {
    font-size: 6px;
  }

  .site-header {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .account-group .text-button {
    font-size: 11px;
  }

  .session-button {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .hero {
    padding: 70px 22px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.5rem);
  }

  .hero-actions,
  .gate-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions > *,
  .gate-actions > * {
    width: 100%;
  }

  .hero-panel {
    padding: 24px;
  }

  .catalog-section {
    padding-block: 72px 90px;
  }

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

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

  .group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-strip {
    padding: 70px 22px;
  }

  .trust-points p {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .site-footer > p:last-child {
    grid-column: auto;
  }

  .lesson-topline {
    gap: 10px;
    padding-inline: 18px;
  }

  .lesson-header,
  .lesson-content {
    padding-inline: 22px;
  }

  .lesson-header h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .learning-points li {
    grid-template-columns: 38px 1fr;
  }

  .practice-panel {
    grid-template-columns: 1fr;
  }

  .lesson-navigation {
    grid-template-columns: 1fr;
  }

  .nav-card {
    min-height: 108px;
  }

  .gate-summary {
    grid-template-columns: 1fr;
  }

  .gate-summary span + span {
    border-top: 1px solid #d5dfe1;
    border-left: 0;
  }

  .gate-alternatives > div {
    grid-template-columns: 1fr;
  }

  .login-modal {
    padding: 42px 24px 28px;
  }

  .login-modal h2 {
    font-size: 31px;
  }

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

  .question-card {
    padding: 22px 16px;
  }

  .question-card legend {
    grid-template-columns: 32px 1fr;
    font-size: 16px;
  }

  .exam-submit,
  .certificate-toolbar,
  .existing-certificate {
    align-items: stretch;
    flex-direction: column;
  }

  .certificate {
    min-height: 720px;
    padding: 40px 26px;
  }

  .certificate-brand > span {
    display: none;
  }

  .certificate h1 {
    font-size: clamp(3.2rem, 18vw, 6rem);
  }

  .certificate-details {
    gap: 22px;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .learning-auth-shell {
    grid-template-columns: 1fr;
  }

  .learning-auth-brand {
    display: none;
  }

  .learning-auth-form-panel {
    padding: 22px;
  }

  .auth-card-mark {
    display: block;
  }
}

@media (max-width: 520px) {
  .learning-auth-form-panel {
    align-items: start;
    padding: 0;
    background: #0b141a;
  }

  .learning-auth-card {
    min-height: 100vh;
    padding: 38px 22px;
    border: 0;
    box-shadow: none;
  }

  .learning-auth-links {
    align-items: stretch;
    flex-direction: column;
  }

  .learning-auth-links > span {
    display: none;
  }
}

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

@media print {
  body {
    background: var(--white);
  }

  .site-header,
  .site-footer,
  .certificate-toolbar {
    display: none !important;
  }

  .certificate-page {
    padding: 0;
    background: var(--white);
  }

  .certificate {
    width: 100%;
    min-height: 720px;
    border: 0;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
