:root {
  --navy-950: #06111f;
  --navy-900: #071525;
  --navy-800: #0d2238;
  --navy-700: #12324f;
  --ink: #142131;
  --muted: #5b6878;
  --line: #dbe4ed;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --cyan: #20c7d7;
  --accent-dark: #0b6f78;
  --green: #3ed58a;
  --blue: #1f5ed8;
  --danger: #a9343f;
  --shadow: 0 18px 50px rgba(7, 21, 37, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 16px;
  background: rgba(6, 17, 31, 0.94);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo-plate {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #fff;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  padding: 4px 7px;
}

.nav {
  display: none;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
}

.section {
  padding: 64px 0;
}

.section-dark {
  background:
    radial-gradient(circle at 80% 10%, rgba(32, 199, 215, 0.16), transparent 32%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 45%, var(--navy-800));
  color: #fff;
}

.section-muted {
  background: var(--surface-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 68px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 34px;
}

.eyebrow,
.kicker {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--cyan);
}

.kicker {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 42px;
}

h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.section-lead {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-row.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button:focus-visible {
  outline: 3px solid rgba(32, 199, 215, 0.42);
  outline-offset: 3px;
}

.button-primary {
  background: var(--cyan);
  color: var(--navy-950);
}

.button-primary:hover {
  background: #66e6ef;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary.light {
  border-color: var(--line);
  color: var(--navy-900);
}

.button-secondary.light:hover {
  border-color: var(--navy-700);
  background: var(--surface-soft);
}

.route-visual {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.visual-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.visual-header strong {
  color: #fff;
  font-size: 20px;
}

.route-path {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
}

.node {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.node-source {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--navy-950);
}

.line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(32, 199, 215, 0.15), rgba(32, 199, 215, 0.95));
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.visual-grid span {
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-heading h2 {
  color: var(--navy-900);
}

.cards,
.profile-grid,
.split,
.qualify-grid {
  display: grid;
  gap: 16px;
}

.card,
.profile-panel,
.fit-block,
.question-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card {
  min-height: 190px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3,
.profile-panel h3,
.fit-block h2 {
  color: var(--navy-900);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-panel {
  padding: 22px;
}

.profile-panel h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.check-list,
.plain-list,
.question-block ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid rgba(219, 228, 237, 0.78);
  color: var(--ink);
}

.check-list li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.fit-block {
  padding: 24px;
}

.fit-block .kicker {
  color: var(--blue);
}

.no-fit {
  border-color: rgba(199, 55, 69, 0.28);
  background: #fff8f8;
}

.no-fit .kicker {
  color: var(--danger);
}

.warning-list li {
  font-weight: 800;
}

.warning-list li::before {
  background: var(--danger);
}

.qualification {
  padding: 58px 0;
}

.qualification h2 {
  max-width: 660px;
}

.question-block {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.question-block li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.question-block li:last-child {
  border-bottom: 0;
}

.question-block li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: 12px;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(32, 199, 215, 0.16);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.final-cta {
  text-align: center;
}

.final-wrap {
  max-width: 820px;
}

.final-wrap h2 {
  color: var(--navy-900);
}

.final-wrap p:not(.kicker) {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

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

.footer-grid {
  display: grid;
  gap: 16px;
  font-size: 14px;
}

.footer strong {
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  width: max-content;
}

.footer-logo {
  display: block;
  width: 154px;
  height: auto;
  padding: 6px 9px;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-copy a {
  width: max-content;
  color: #9eeaf0;
  font-weight: 800;
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: #fff;
}

@media (min-width: 560px) {
  .nav {
    display: flex;
  }

  .cta-row {
    flex-direction: row;
    align-items: center;
  }

  .button {
    width: auto;
  }

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

@media (min-width: 820px) {
  .topbar {
    padding-right: 32px;
    padding-left: 32px;
  }

  .hero {
    padding: 86px 0 96px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
    align-items: center;
  }

  .section {
    padding: 84px 0;
  }

  .cards.three,
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split,
  .qualify-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 1040px) {
  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 44px;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    min-height: 58px;
  }

  h1 {
    font-size: 38px;
  }

  .route-path {
    gap: 5px;
  }

  .node {
    width: 38px;
    height: 38px;
  }
}

@media print {
  .topbar {
    position: static;
    color: var(--navy-900);
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .hero {
    padding: 28px 0;
  }

  .section-dark {
    color: var(--ink);
    background: #fff;
  }

  .lead,
  .section-lead,
  .question-block li {
    color: var(--ink);
  }

  .button,
  .route-visual {
    box-shadow: none;
  }
}
