:root {
  --brand: #19c8a1;
  --brand-dark: #0f9f84;
  --navy: #0b1835;
  --navy-soft: #17284d;
  --ink: #16213b;
  --muted: #667085;
  --surface: #ffffff;
  --wash: #f4fbf9;
  --line: #dce9e6;
  --warning: #ffb547;
  --shadow: 0 20px 50px rgba(11, 24, 53, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,233,230,.9);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: -.04em;
  color: var(--navy);
  font-size: 1.25rem;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(25,200,161,.28);
  font-weight: 900;
}
.brand small {
  display: block;
  color: var(--brand-dark);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a {
  color: #3e4a63;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--brand-dark);
  background: var(--wash);
}
.nav-cta {
  color: #fff !important;
  background: var(--navy) !important;
  padding-inline: 18px !important;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  background: var(--wash);
  font-size: 1.35rem;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(25,200,161,.24), transparent 24%),
    radial-gradient(circle at 14% 85%, rgba(255,181,71,.13), transparent 22%),
    linear-gradient(135deg, #07142f 0%, #10234a 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, transparent, #000 45%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  min-height: 600px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 64px;
  padding: 90px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8df0da;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.hero h1 {
  max-width: 720px;
  margin: 18px 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.hero h1 span { color: var(--brand); }
.hero-copy {
  max-width: 630px;
  margin: 0 0 30px;
  color: #c5cee0;
  font-size: 1.05rem;
  line-height: 1.8;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--navy);
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(25,200,161,.24);
}
.button-secondary { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.quiz-preview {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}
.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.preview-label { color: #b9c4d9; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.preview-score { color: var(--warning); font-weight: 850; }
.progress { height: 7px; margin: 12px 0 28px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--brand); }
.quiz-preview h3 { color: #fff; font-size: 1.35rem; line-height: 1.45; margin: 0 0 18px; }
.mock-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  color: #d9e0ed;
  background: rgba(255,255,255,.05);
}
.mock-option.correct { border-color: var(--brand); background: rgba(25,200,161,.12); color: #fff; }
.option-letter { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: rgba(255,255,255,.1); font-weight: 800; }

.page-hero {
  padding: 88px 0 78px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin: 14px auto 10px; color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.page-hero p { max-width: 660px; margin: 0 auto; color: #c5cee0; line-height: 1.75; }
.breadcrumb { margin-bottom: 18px; color: #9debd9; font-size: .88rem; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

.section { padding: 90px 0; }
.section-soft { background: var(--wash); }
.container { width: min(1180px, calc(100% - 36px)); margin: auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.045em; color: var(--navy); }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(11,24,53,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.course-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: rgba(25,200,161,.09);
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(25,200,161,.6);
  box-shadow: var(--shadow);
}
.course-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  color: var(--brand-dark);
  background: var(--wash);
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 900;
}
.course-card h3 { margin: 0 0 9px; color: var(--navy); font-size: 1.28rem; line-height: 1.35; }
.course-card p { margin: 0 0 24px; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.card-link { margin-top: auto; color: var(--brand-dark); font-weight: 850; }
.card-link span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.course-card:hover .card-link span { transform: translateX(5px); }
.course-card.disabled { opacity: .67; }
.course-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: #8a5b00;
  background: #fff3d6;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
  padding: 18px 20px;
  color: #42506a;
  border: 1px solid #cdebe4;
  border-radius: 16px;
  background: #effbf8;
  line-height: 1.65;
}
.notice strong { color: var(--navy); }
.notice a { color: var(--brand-dark); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.stat strong { display: block; color: var(--navy); font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .88rem; }

.cta {
  margin: 0 auto 90px;
  width: min(1180px, calc(100% - 36px));
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  border-radius: 26px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  box-shadow: 0 20px 50px rgba(15,159,132,.2);
}
.cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.cta p { margin: 0; color: #e3fff8; }
.cta .button { flex: 0 0 auto; color: var(--navy); background: #fff; }

.site-footer { padding: 34px 0; color: #aeb8cc; background: #07142f; }
.footer-inner { width: min(1180px, calc(100% - 36px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer strong { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 980px) {
  .menu-button { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 50px; padding: 80px 0; }
  .hero h1 { max-width: 780px; }
  .quiz-preview { max-width: 620px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .nav-wrap { width: min(100% - 24px, 1180px); min-height: 68px; }
  .nav-links { top: 68px; left: 12px; right: 12px; }
  .brand { font-size: 1.06rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-inner { width: min(100% - 28px, 1180px); padding: 65px 0; }
  .hero h1 { font-size: clamp(3.1rem, 18vw, 4.5rem); }
  .hero-copy { font-size: .98rem; }
  .button-row .button { width: 100%; }
  .quiz-preview { padding: 18px; border-radius: 20px; }
  .page-hero { padding: 66px 0 58px; }
  .section { padding: 66px 0; }
  .container { width: min(100% - 28px, 1180px); }
  .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .course-card { min-height: 225px; }
  .course-icon { margin-bottom: 28px; }
  .stats { grid-template-columns: 1fr; }
  .cta { width: min(100% - 28px, 1180px); margin-bottom: 66px; padding: 30px 24px; flex-direction: column; align-items: flex-start; }
  .cta .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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