/* ═══════════════════════════════════════════════════════════
   MechHub NG — redesign.css
   Shared design system for the redesigned pages.
   Do not load alongside base.css / nav.css / components.css.
   Light is the default theme; dark is [data-theme="dark"].
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --surface: #ffffff;
  --line: #e3e9f3;
  --line-strong: #cfd8e8;

  --ink: #0b1b3b;
  --ink-2: #46566f;
  --ink-3: #6b7a92;

  --brand: #1f3fc0;          /* buttons, filled surfaces */
  --brand-hover: #18329c;
  --brand-text: #1f3fc0;     /* links and text on bg */
  --brand-soft: #e8edff;

  --accent: #f5b52e;
  --accent-ink: #14203d;
  --accent-soft: #fff6df;

  --nav-bg: #0a1a3a;
  --footer-bg: #0a1a3a;

  /* tier / level badges */
  --beginner-bg: #e2f5ea;     --beginner-fg: #0b7440;
  --intermediate-bg: #fff0db; --intermediate-fg: #9a4d00;
  --advanced-bg: #e8edff;     --advanced-fg: #1f3fc0;
  --pro-bg: #f1e9ff;          --pro-fg: #6428b8;

  /* pillar colours */
  --mechanical-bg: #e8edff;   --mechanical-fg: #1f3fc0;
  --electronics-bg: #e2f5ea;  --electronics-fg: #0b7440;
  --programming-bg: #f1e9ff;  --programming-fg: #6428b8;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --wrap: 1180px;
}

[data-theme="dark"] {
  --bg: #0a1020;
  --bg-soft: #0e1730;
  --surface: #121c36;
  --line: #22304f;
  --line-strong: #31436b;

  --ink: #eef2fb;
  --ink-2: #aebad2;
  --ink-3: #7d8da9;

  --brand: #3b5bf0;
  --brand-hover: #5472ff;
  --brand-text: #93a9ff;
  --brand-soft: #1a2750;

  --accent-soft: #2a2412;

  --nav-bg: #070c19;
  --footer-bg: #070c19;

  --beginner-bg: rgba(40, 190, 120, .16);     --beginner-fg: #5be0a2;
  --intermediate-bg: rgba(255, 150, 40, .16); --intermediate-fg: #ffb561;
  --advanced-bg: rgba(90, 120, 255, .18);     --advanced-fg: #9db0ff;
  --pro-bg: rgba(160, 110, 255, .18);         --pro-fg: #c4a2ff;

  --mechanical-bg: rgba(90, 120, 255, .18);   --mechanical-fg: #9db0ff;
  --electronics-bg: rgba(40, 190, 120, .16);  --electronics-fg: #5be0a2;
  --programming-bg: rgba(160, 110, 255, .18); --programming-fg: #c4a2ff;
}

/* ─── RESET + BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { color: var(--ink-2); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--font);
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn .ico { font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { border-color: var(--brand-text); color: var(--brand-text); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffc54d; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ─── ANNOUNCEMENT ───────────────────────────────────────── */
.announce {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
}
.announce[hidden] { display: none; }

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  background: var(--nav-bg);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: #fff; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 30px; margin-inline: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: #d5deF3;
  padding: 22px 0; position: relative; transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  background: transparent; border: 0; color: #fff; cursor: pointer; border-radius: var(--r-sm);
  font-size: 20px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-menu-btn { display: none; }

.mobile-menu {
  display: none;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 24px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) { display: block; color: #d5def3; padding: 13px 0; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 18px 0 20px;
}
.hero h1 .hl { color: var(--brand-text); }
.hero-sub { font-size: 17px; max-width: 460px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* orbit illustration */
.orbit { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.orbit-ring {
  position: absolute; inset: 9%;
  border: 1.5px dashed var(--line-strong); border-radius: 50%;
}
.orbit-ring.inner { inset: 27%; border-style: solid; border-color: var(--brand-soft); }
.orbit-core {
  position: absolute; inset: 31%;
  background: var(--brand); border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  color: #fff; font-weight: 800; font-size: clamp(16px, 2.4vw, 24px); line-height: 1.1;
  box-shadow: 0 0 0 10px var(--brand-soft);
}
.orbit-core b { color: var(--accent); display: block; font-weight: 800; }
.orbit-node {
  --a: 0deg;
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brand-text); font-size: 24px;
  transform: rotate(var(--a)) translateY(-41cqw) rotate(calc(-1 * var(--a)));
}

/* stats */
.stats {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .ico { font-size: 34px; color: var(--brand-text); }
.stat-n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-text); line-height: 1.1; }
.stat-l { font-size: 14px; color: var(--ink-2); }

/* ─── MISSION ────────────────────────────────────────────── */
.mission {
  position: relative; overflow: hidden;
  margin-top: 36px;
  background: var(--nav-bg);
  border-radius: var(--r-lg);
  padding: 44px 48px;
  display: flex; gap: 22px; align-items: flex-start;
  color: #fff;
}
.mission::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
}
.mission-mark { position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; color: rgba(255,255,255,.06); }
.mission-q { position: relative; font-size: 72px; line-height: .8; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.mission p {
  position: relative; max-width: 640px;
  color: #fff; font-size: clamp(19px, 2.4vw, 26px); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 56px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: 24px; font-weight: 800; }
.sec-head p { font-size: 14px; margin-top: 4px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-text); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.link-more .ico { font-size: 15px; }

/* tags / badges */
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; text-transform: capitalize; line-height: 1.5;
}
.badge-beginner { background: var(--beginner-bg); color: var(--beginner-fg); }
.badge-intermediate { background: var(--intermediate-bg); color: var(--intermediate-fg); }
.badge-advanced { background: var(--advanced-bg); color: var(--advanced-fg); }
.badge-pro { background: var(--pro-bg); color: var(--pro-fg); }
.badge-mechanical { background: var(--mechanical-bg); color: var(--mechanical-fg); }
.badge-electronics { background: var(--electronics-bg); color: var(--electronics-fg); }
.badge-programming { background: var(--programming-bg); color: var(--programming-fg); }
.badge-soon { background: var(--accent-soft); color: var(--intermediate-fg); }
.badge-plain { background: var(--bg-soft); color: var(--ink-2); }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── COURSE CAROUSEL ────────────────────────────────────── */
.carousel { position: relative; }
.track {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 2px 2px 6px;
}
.track::-webkit-scrollbar { display: none; }
.car-btn {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 18px;
  box-shadow: 0 2px 8px rgba(10, 26, 58, .12); z-index: 2;
  transition: opacity .15s;
}
.car-btn[hidden] { display: none; }
.car-btn:hover { background: var(--bg-soft); }
.car-btn.prev { left: -18px; }
.car-btn.next { right: -18px; }

.course-card {
  flex: 0 0 248px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .15s;
}
.course-card:hover { border-color: var(--brand-text); }
.cc-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.cc-media img { width: 100%; height: 100%; object-fit: cover; }
.cc-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; }
.cc-ph.mechanical { background: var(--mechanical-bg); color: var(--mechanical-fg); }
.cc-ph.electronics { background: var(--electronics-bg); color: var(--electronics-fg); }
.cc-ph.programming { background: var(--programming-bg); color: var(--programming-fg); }
.cc-level { position: absolute; top: 10px; left: 10px; background: var(--surface); box-shadow: 0 1px 4px rgba(10,26,58,.15); }
.cc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cc-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.cc-desc {
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cc-dur { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }

/* ─── CAREERS ────────────────────────────────────────────── */
.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.career-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; transition: border-color .15s;
}
.career-card:hover { border-color: var(--brand-text); }
.cr-ico { font-size: 30px; color: var(--brand-text); background: var(--brand-soft); border-radius: 10px; padding: 9px; box-sizing: content-box; width: 1em; height: 1em; }
.cr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cr-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.cr-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cr-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cr-go { color: var(--brand-text); font-size: 18px; }

/* ─── FEATURED PAIR ──────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.feature {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px 24px;
}
.feature-label { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.feature-label::before { content: ''; width: 5px; height: 22px; background: var(--accent); border-radius: 3px; }
.feature-body { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; }
.feature-media { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 44px; color: var(--brand-text); background: var(--brand-soft); }
.feature-ph.initials { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature p { font-size: 14px; margin-bottom: 12px; }
.feature .badge-row { margin-bottom: 14px; }
.feature-by { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.feature-cost { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }

/* ─── GROWTH LOOP ────────────────────────────────────────── */
.loop { display: grid; grid-template-columns: repeat(7, 1fr); gap: 26px; }
.loop-step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 12px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.loop-n {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.loop-step > .ico { font-size: 30px; color: var(--brand-text); }
.loop-t { font-size: 14.5px; font-weight: 700; }
.loop-d { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.loop-next { position: absolute; right: -22px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink-3); }
.loop-step:last-child { border-color: var(--brand-text); background: var(--brand-soft); }
.loop-step:last-child .loop-next { display: none; }

/* ─── QUIZ CTA ───────────────────────────────────────────── */
.quiz {
  margin-top: 56px;
  background: var(--accent-soft);
  border: 1.5px dashed var(--accent);
  border-radius: var(--r-lg);
  padding: 26px 32px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.quiz-ico { font-size: 44px; color: var(--accent-ink); background: var(--accent); border-radius: 14px; padding: 12px; box-sizing: content-box; width: 1em; height: 1em; }
[data-theme="dark"] .quiz-ico { color: #14203d; }
.quiz-text { flex: 1; min-width: 240px; }
.quiz-text h3 { font-size: 22px; font-weight: 800; }
.quiz-text p { font-size: 15px; margin-top: 2px; }

/* ─── STATES ─────────────────────────────────────────────── */
.state { padding: 36px 20px; text-align: center; font-size: 14px; color: var(--ink-3); width: 100%; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.state a { color: var(--brand-text); font-weight: 600; text-decoration: underline; }
.skeleton { flex: 0 0 248px; height: 300px; border-radius: var(--r); background: linear-gradient(90deg, var(--bg-soft), var(--line), var(--bg-soft)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: #fff; margin-top: 64px; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 36px; }
.footer .brand { margin-bottom: 14px; }
.footer-tag { color: #b5c1dc; font-size: 14px; max-width: 260px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a { color: #b5c1dc; font-size: 14px; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 24px; text-align: center; font-size: 13px; color: #94a3c4; }

/* ═══════════════════════════════════════════════════════════
   INNER PAGES
   ═══════════════════════════════════════════════════════════ */

/* ─── PAGE HEADER + BREADCRUMBS ──────────────────────────── */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 30px 0 38px; }
.page-head.center { text-align: center; }
.page-head.center p { margin-inline: auto; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 10px; }
.page-head p { font-size: 16.5px; max-width: 680px; }
.page-head .badge-row { margin-bottom: 12px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.crumbs .sep { color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink-3); }
.head-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: center; }
.head-thumb { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.head-thumb img { width: 100%; height: 100%; object-fit: cover; }
.head-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.head-meta span { display: inline-flex; align-items: center; gap: 7px; }
.head-meta .ico { font-size: 16px; color: var(--brand-text); }
.head-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.main-pad { padding: 40px 0 0; }

/* ─── TABS ───────────────────────────────────────────────── */
.tab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; text-align: left; }
.tab-card {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; color: inherit; transition: border-color .15s, background .15s;
}
.tab-card:hover { border-color: var(--line-strong); }
.tab-card[aria-selected="true"] { border-color: var(--brand-text); background: var(--brand-soft); }
.tab-card .ico { font-size: 28px; color: var(--brand-text); flex-shrink: 0; margin-top: 2px; }
.tab-card b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.tab-card small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-btn {
  font: 600 14px/1 var(--font); padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink-2);
  text-transform: capitalize; transition: all .15s;
}
.seg-btn:hover { border-color: var(--brand-text); color: var(--brand-text); }
.seg-btn[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-intro { margin: 22px 0 24px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.tab-intro h2 { font-size: 22px; font-weight: 800; }
.tab-intro p { font-size: 14.5px; }
.tab-intro.warn { color: var(--intermediate-fg); }
.tab-panel[hidden] { display: none; }

/* ─── GENERIC CARD GRIDS ─────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid-cards .course-card { flex: none; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s, transform .15s;
}
.pcard:hover { border-color: var(--brand-text); transform: translateY(-2px); }
.pc-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; background: var(--brand-soft); color: var(--brand-text); }
.pc-media .badge { position: absolute; top: 10px; left: 10px; background: var(--surface); box-shadow: 0 1px 4px rgba(10,26,58,.15); }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-title { font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.pc-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.pc-cost { font-weight: 700; color: var(--ink); }
.pc-by { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.pc-by .avatar { width: 30px; height: 30px; font-size: 11px; }
.pc-by small { display: block; color: var(--ink-3); font-size: 12px; }

/* ─── TWO-COLUMN DETAIL LAYOUT ───────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.stack { display: grid; gap: 36px; min-width: 0; }
.side { position: sticky; top: 88px; display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.panel p { font-size: 14px; }
.panel .btn { width: 100%; margin-top: 4px; }
.block-h { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.block-h .ico { color: var(--brand-text); font-size: 22px; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv > div:first-child { padding-top: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink); font-weight: 600; text-align: right; }
.kv-total dd { color: var(--brand-text); font-size: 16px; }

/* lists */
.checks { list-style: none; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3fc0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a9ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.steps li::before {
  content: counter(s); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: -2px;
}
.row-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; transition: border-color .15s;
}
.row-link:hover { border-color: var(--brand-text); }
.row-link > div { min-width: 0; }
.row-link b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.row-link .go { color: var(--brand-text); font-size: 18px; }
.row-link.soon { opacity: .7; pointer-events: none; }
.row-list { display: grid; gap: 10px; }
.row-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-text); font-size: 24px; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-link .lead { display: flex; align-items: center; gap: 14px; min-width: 0; }

/* learning path */
.path { list-style: none; display: grid; gap: 0; position: relative; }
.path li { position: relative; padding-left: 52px; padding-bottom: 14px; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: -2px; width: 2px; background: var(--line-strong); }
.path li:last-child::before { display: none; }
.path-n { position: absolute; left: 0; top: 8px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }

/* cost / tags */
.cost-total { font-size: 28px; font-weight: 800; color: var(--brand-text); letter-spacing: -0.02em; }
.cost-note { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 22px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 360px; }
.tbl th { background: var(--bg-soft); text-align: left; font-weight: 700; color: var(--ink); padding: 11px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tfoot td { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.table-wrap.flush { margin: 0; }

/* video */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery .g-img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.gallery.one { grid-template-columns: 1fr; }
.gallery.one .g-img { aspect-ratio: 16 / 9; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 10, 24, .88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r); }

/* note cards (lessons learned / challenges) */
.note { border: 1px solid var(--line); border-left: 4px solid var(--brand-text); border-radius: var(--r); background: var(--surface); padding: 20px 22px; }
.note.warn { border-left-color: var(--accent); }
.note h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.note h3 .ico { color: var(--brand-text); }
.note.warn h3 .ico { color: var(--intermediate-fg); }
.note p { font-size: 15px; line-height: 1.7; }

/* CTA banner */
.cta-band {
  background: var(--nav-bg); color: #fff; border-radius: var(--r-lg); padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { color: #fff; font-size: 22px; font-weight: 800; }
.cta-band p { color: #b5c1dc; font-size: 15px; margin-top: 4px; max-width: 520px; }

/* ─── RICH TEXT (.prose) ─────────────────────────────────── */
.prose { font-size: 16px; color: var(--ink-2); line-height: 1.8; min-width: 0; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 1.6em; }
.prose h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 1.4em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .45em; }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--ink-2); }
.prose mark { background: rgba(245, 181, 46, .35); color: inherit; padding: 1px 4px; border-radius: 3px; }
.prose .inline-code, .inline-code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.pt-img img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.prose figure figcaption, .embed figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; font-style: italic; }
.pt-img figcaption { text-align: center; }
.embed-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.embed-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; }
.code { border-radius: var(--r); overflow: hidden; background: #0b1220; border: 1px solid #1d2a47; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: #101a30; border-bottom: 1px solid #1d2a47; }
.code-lang { font-size: 12.5px; font-weight: 600; color: #9db0ff; }
.code-lang i { color: #7d8da9; font-style: normal; font-weight: 500; }
.code-copy { background: transparent; border: 1px solid #31436b; color: #c6d2ee; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; cursor: pointer; }
.code-copy:hover { background: #1a2750; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code code { font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e6edf9; white-space: pre; display: block; }
.code figcaption { padding: 0 14px 12px; color: #9aa9c7; }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid; }
.callout-ico { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.callout strong { display: block; margin-bottom: 2px; }
.callout p { font-size: 15px; color: inherit; line-height: 1.65; }
.callout-info { background: var(--brand-soft); border-color: var(--brand-text); color: var(--ink); }
.callout-info .callout-ico { color: var(--brand-text); }
.callout-tip, .callout-success { background: var(--beginner-bg); border-color: var(--beginner-fg); color: var(--ink); }
.callout-tip .callout-ico, .callout-success .callout-ico { color: var(--beginner-fg); }
.callout-warning, .callout-important { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.callout-warning .callout-ico, .callout-important .callout-ico { color: var(--intermediate-fg); }

/* ─── FAQ ACCORDION ──────────────────────────────────────── */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-cats { margin-bottom: 26px; justify-content: center; }
.faq-cat { margin-bottom: 34px; }
.faq-cat h2 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 12px; }
.acc { display: grid; gap: 10px; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc-item[open] { border-color: var(--brand-text); }
.acc-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--ink);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .ico { color: var(--brand-text); font-size: 20px; transition: transform .2s; }
.acc-item[open] summary .ico { transform: rotate(180deg); }
.acc-body { padding: 0 22px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.acc-body > * + * { margin-top: .9em; }
.acc-body a { color: var(--brand-text); text-decoration: underline; }

/* ─── HOW-TO CARDS (community) ───────────────────────────── */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.how-step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.how-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.how-step p { font-size: 14.5px; }
.empty { text-align: center; max-width: 480px; margin: 0 auto; padding: 48px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.empty .ico { font-size: 40px; color: var(--brand-text); margin: 0 auto 14px; }
.empty h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.empty p { font-size: 15px; margin-bottom: 20px; }

/* author row */
.author { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.author .avatar { width: 48px; height: 48px; font-size: 16px; }
.author b { display: block; font-size: 16px; color: var(--ink); }
.author div span { font-size: 13.5px; color: var(--ink-2); }

/* ─── DOCUMENT (privacy) ─────────────────────────────────── */
.doc { max-width: 780px; margin-inline: auto; }
.doc-sec { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; }
.doc-sec:last-child { border-bottom: 0; }
.doc-n { font-size: 14px; font-weight: 800; color: var(--brand-text); background: var(--brand-soft); border-radius: 8px; height: 34px; display: grid; place-items: center; }
.doc-sec h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.doc-sec p, .doc-sec li { font-size: 15.5px; line-height: 1.75; }
.doc-sec ul { padding-left: 1.2em; display: grid; gap: .4em; margin-top: .6em; color: var(--ink-2); }
.doc-sec a { color: var(--brand-text); text-decoration: underline; }

/* ─── LESSON LAYOUT ──────────────────────────────────────── */
.lesson-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr) 250px; gap: 32px; align-items: start; padding: 32px 0 0; }
.outline { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.outline > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 1; }
.outline > summary::-webkit-details-marker { display: none; }
.outline > summary .ico { color: var(--brand-text); }
.outline-course { display: block; padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--brand-text); border-bottom: 1px solid var(--line); }
.outline-mod { padding: 10px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.outline-item { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.outline-item:hover { background: var(--bg-soft); }
.outline-item .n { font-size: 12px; font-weight: 700; color: var(--ink-3); min-width: 20px; }
.outline-item.current { background: var(--brand-soft); border-left-color: var(--brand-text); color: var(--ink); font-weight: 600; }
.outline-item.current .n { color: var(--brand-text); }
.outline-item .free { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--beginner-fg); background: var(--beginner-bg); padding: 2px 7px; border-radius: 999px; }
.lesson-main { min-width: 0; display: grid; gap: 32px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.quiz-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: var(--r-lg); padding: 22px 26px; }
.quiz-banner h3 { font-size: 18px; font-weight: 800; }
.quiz-banner p { font-size: 14px; }
.side-btns { display: grid; gap: 8px; }
.side-ad { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.side-ad img { width: 100%; }
.free-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--beginner-bg); color: var(--beginner-fg); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* ─── QUIZ UI (lesson quiz + career quiz) ────────────────── */
.qz-wrap { max-width: 760px; margin-inline: auto; padding: 40px 0 0; }
.qz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; }
.qz-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.qz-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; margin-bottom: 26px; }
.qz-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.qz-q { font-size: clamp(20px, 2.6vw, 25px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; line-height: 1.3; }
.qz-opts { display: grid; gap: 10px; }
.qz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  font: 500 15.5px/1.45 var(--font); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 14px 18px;
  transition: border-color .15s, background .15s;
}
.qz-opt:hover:not(:disabled) { border-color: var(--brand-text); background: var(--brand-soft); }
.qz-opt .k { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.qz-opt.picked { border-color: var(--brand-text); background: var(--brand-soft); }
.qz-opt.picked .k { background: var(--brand); border-color: var(--brand); color: #fff; }
.qz-opt.correct { border-color: var(--beginner-fg); background: var(--beginner-bg); }
.qz-opt.correct .k { background: var(--beginner-fg); border-color: var(--beginner-fg); color: #fff; }
.qz-opt.wrong { border-color: #d6342c; background: rgba(214, 52, 44, .1); }
.qz-opt.wrong .k { background: #d6342c; border-color: #d6342c; color: #fff; }
.qz-opt:disabled { cursor: default; }
.qz-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.qz-explain { margin-top: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.qz-score { text-align: center; padding: 10px 0; }
.qz-ring { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: conic-gradient(var(--ring, var(--brand)) calc(var(--pct) * 1%), var(--bg-soft) 0); }
.qz-ring span { width: 118px; height: 118px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.qz-score h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.qz-score p { max-width: 460px; margin: 0 auto 22px; }
.qz-score .btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.qz-review { margin-top: 28px; display: grid; gap: 10px; text-align: left; }
.qz-review-item { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14.5px; }
.qz-review-item .ico { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.qz-review-item.ok .ico { color: var(--beginner-fg); }
.qz-review-item.bad .ico { color: #d6342c; }
.qz-review-item b { display: block; color: var(--ink); margin-bottom: 2px; }
.qz-review-item span { color: var(--ink-2); }
.result-track { display: flex; gap: 18px; align-items: center; background: var(--brand-soft); border-radius: var(--r-lg); padding: 22px 24px; text-align: left; margin-bottom: 22px; }
.result-track .ico { font-size: 40px; color: var(--brand-text); }
.result-bars { display: grid; gap: 12px; margin: 22px 0; text-align: left; }
.result-bar { display: grid; grid-template-columns: 120px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; }
.result-bar .bar { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--line); }
.result-bar .bar i { display: block; height: 100%; background: var(--brand); }
.result-bar b { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .loop { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .loop-next { display: none; }
  .career-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-menu-btn { display: inline-grid; }
  .nav-inner { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .orbit { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .car-btn { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .mission { padding: 30px 24px; flex-direction: column; gap: 6px; }
  .mission-q { font-size: 56px; }
  .section { padding-top: 44px; }
  .career-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-body { grid-template-columns: 1fr; }
  .feature-media { aspect-ratio: 16 / 9; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop-step:last-child { grid-column: 1 / -1; }
  .quiz { padding: 22px 20px; }
  .quiz .btn { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}


@media (max-width: 1080px) {
  .lesson-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .lesson-layout > aside.lesson-right { grid-column: 1 / -1; }
  .lesson-layout .lesson-right .side { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .head-split { grid-template-columns: 1fr; }
  .head-thumb { max-width: 420px; }
  .tab-cards { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .lesson-layout { grid-template-columns: 1fr; }
  .outline { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .page-head { padding: 22px 0 28px; }
  .qz-card { padding: 22px 18px; }
  .cta-band { padding: 26px 22px; }
  .cta-band .btn { width: 100%; }
  .doc-sec { grid-template-columns: 1fr; }
  .doc-n { width: 44px; }
  .result-bar { grid-template-columns: 90px 1fr 36px; }
  .grid-cards { grid-template-columns: 1fr; }
  .acc-item summary { padding: 16px 18px; font-size: 15px; }
  .acc-body { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ─── WHY PAGE + TEAM ────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; aspect-ratio: 1 / 0.82; }
.why-card .ico { font-size: 30px; color: var(--brand-text); background: var(--brand-soft); border-radius: 12px; padding: 11px; box-sizing: content-box; width: 1em; height: 1em; }
.why-card h3 { font-size: 18px; font-weight: 800; }
.why-card p { font-size: 14.5px; line-height: 1.65; }
.team-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
.team-track::-webkit-scrollbar { display: none; }
.team-card { flex: 0 0 280px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.team-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-soft); }
.team-initials { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.team-card h3 { font-size: 18px; font-weight: 800; margin-top: 14px; }
.team-role { font-size: 13.5px; font-weight: 600; color: var(--brand-text); }
.team-school { font-size: 13px; color: var(--ink-3); }
.team-card p { font-size: 14px; line-height: 1.6; margin-top: 10px; }
.team-links { display: flex; gap: 14px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--brand-text); }
.team-links a:hover { text-decoration: underline; }
.team-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.team-nav .car-btn { position: static; transform: none; width: 36px; height: 36px; }

/* ─── RESOURCES ──────────────────────────────────────────── */
.res-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; transition: border-color .15s, transform .15s; }
.res-card:hover { border-color: var(--brand-text); transform: translateY(-2px); }
.res-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.res-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.res-ext { color: var(--brand-text); font-size: 18px; flex-shrink: 0; }
.res-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.badge-free { background: var(--beginner-bg); color: var(--beginner-fg); }
.badge-pick { background: var(--accent-soft); color: var(--intermediate-fg); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } .why-card { aspect-ratio: auto; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } .team-card { flex-basis: 85%; } }
