:root {
  --ink: #0f172a;
  --soft-ink: #344054;
  --muted: #667085;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --primary: #2563eb;
  --primary-dark: #0f172a;
  --accent: #7c3aed;
  --aqua: #0891b2;
  --ok: #067647;
  --bad: #b42318;
  --shadow: 0 20px 70px rgba(15, 23, 42, .12);
  --glow: 0 0 46px rgba(37, 99, 235, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, .08), transparent 32rem),
    radial-gradient(circle at 84% 16%, rgba(124, 58, 237, .08), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.08; letter-spacing: 0; color: var(--ink); font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif; }
h1 { font-size: clamp(2.35rem, 5.5vw, 5.8rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 3rem); }
h3 { font-size: clamp(1.05rem, 1.45vw, 1.35rem); }
p { margin: 0 0 16px; color: var(--muted); }
ul { color: var(--soft-ink); padding-left: 20px; }

.agency-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px clamp(14px, 4vw, 56px);
  transition: padding .2s ease, background .2s ease, box-shadow .2s ease;
}
.agency-header.is-scrolled {
  background: rgba(248, 250, 252, .72);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 50px rgba(15, 23, 42, .08);
}
.header-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 24px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 14px 44px rgba(15, 23, 42, .08);
  backdrop-filter: blur(20px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: 999px;
  background: rgba(248, 250, 252, .78);
}
.desktop-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  color: #475569;
  font-weight: 800;
  font-size: .94rem;
}
.desktop-nav a:hover {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.desktop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu-trigger {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 9px 13px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}
.mobile-menu-trigger i,
.mobile-menu-trigger i::before,
.mobile-menu-trigger i::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-menu-trigger i { position: relative; }
.mobile-menu-trigger i::before,
.mobile-menu-trigger i::after { content: ""; position: absolute; left: 0; }
.mobile-menu-trigger i::before { top: -6px; }
.mobile-menu-trigger i::after { top: 6px; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 23, .54);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.mobile-drawer {
  position: fixed;
  inset: 12px 12px 12px auto;
  z-index: 100;
  width: min(430px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .98)),
    radial-gradient(circle at top right, rgba(124, 58, 237, .28), transparent 20rem);
  color: #fff;
  box-shadow: 0 28px 90px rgba(2, 6, 23, .45);
  transform: translateX(110%) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .mobile-drawer { transform: translateX(0) scale(1); opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-drawer .brand { color: #fff; }
.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.drawer-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.drawer-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .18);
  color: #bfdbfe;
  font-size: .74rem;
  font-weight: 900;
}
.drawer-card strong { color: #fff; font-size: 1.08rem; }
.drawer-card small { color: #cbd5e1; font-weight: 600; line-height: 1.35; }
.drawer-card:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(147, 197, 253, .34);
  transform: translateY(-2px);
}
.drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(29, 78, 216, .22);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.secondary { background: #fff; color: var(--primary-dark); border: 1px solid #c7d7fe; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--primary-dark); border: 1px solid var(--line); box-shadow: none; }
.btn.small { min-height: 36px; padding: 8px 12px; font-size: .92rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }

.alert { margin: 18px clamp(18px, 5vw, 72px); padding: 14px 16px; border-radius: 8px; font-weight: 700; }
.alert.success { background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }
.alert.error { background: #fef3f2; color: var(--bad); border: 1px solid #fecdca; }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 15, 34, .94) 0%, rgba(8, 15, 34, .84) 42%, rgba(8, 15, 34, .2) 100%),
    url("/public/assets/images/academy-hero.png") center right / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; color: #fff; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p { max-width: 680px; color: #d7def0; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero .btn.secondary { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .32); }
.eyebrow, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(29, 78, 216, .18);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--primary-dark);
  background: #fff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero .eyebrow { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.22); margin-bottom: 18px; }
.hero-proof { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 32px; color: #d7def0; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof strong { color: #fff; font-size: 1.15rem; }
.hero-float-board {
  position: relative;
  z-index: 1;
  min-height: 420px;
}
.float-card {
  position: absolute;
  min-width: 150px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, .22);
  animation: slide-up .65s ease both;
}
.float-card strong { display: block; font-size: 1.55rem; line-height: 1; }
.float-card span { color: #dbeafe; font-weight: 800; }
.float-card.card-a { top: 18%; left: 0; }
.float-card.card-b { top: 5%; right: 8%; animation-delay: .08s; }
.float-card.card-c { bottom: 22%; left: 14%; animation-delay: .16s; }
.float-card.card-d { bottom: 8%; right: 4%; animation-delay: .24s; }

.section { padding: clamp(52px, 7vw, 96px) clamp(18px, 5vw, 72px); }
.section.narrow { max-width: 920px; margin: auto; }
.section-head, .section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}
.section-head p { max-width: 680px; }
.kicker { color: var(--primary); font-weight: 900; margin-bottom: 8px; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 44px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% 35%;
  height: 140px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .10);
  filter: blur(18px);
}
.feature-card span {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--glow);
}
.process-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.process-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 24px;
  background: #020617;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 60px rgba(2, 6, 23, .2);
}
.process-card strong { color: #93c5fd; font-size: 2rem; }
.process-card h3 { color: #fff; margin-top: 22px; }
.process-card p { color: #cbd5e1; }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}
.faq-item summary { cursor: pointer; font-weight: 900; color: var(--ink); }
.faq-item p { margin-top: 12px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: .2s ease; }
.course-card { display: flex; flex-direction: column; min-height: 100%; gap: 14px; }
.course-card h3 { min-height: 48px; }
.course-card p { min-height: 52px; }
.cover {
  position: relative;
  min-height: 165px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 58, 140, .9), rgba(109, 40, 217, .72)),
    url("/public/assets/images/academy-hero.png") center / cover;
  color: #fff;
  font-weight: 900;
}
.cover span { position: relative; z-index: 1; }
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .3));
}
.meta, .price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
}
.price { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.price strong { color: var(--ink); font-size: 1.08rem; }

.band { background: #fff; border-block: 1px solid var(--line); }
.services { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.service {
  position: relative;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  overflow: hidden;
}
.service::before { content: ""; width: 42px; height: 4px; background: var(--primary); border-radius: 999px; }
.service span { font-weight: 500; color: var(--muted); margin-top: 12px; }
.service:hover { border-color: #b8c9ff; box-shadow: var(--shadow); transform: translateY(-2px); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 72px);
}
.stats div { background: #fff; padding: 26px; }
.stats strong { display: block; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; color: var(--primary-dark); }
.stats span { color: var(--muted); font-weight: 700; }

.cta {
  margin: clamp(48px, 7vw, 90px) clamp(18px, 5vw, 72px);
  padding: clamp(34px, 6vw, 70px);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, .96), rgba(29, 78, 216, .88)),
    url("/public/assets/images/academy-hero.png") center / cover;
  color: #fff;
}
.cta h2 { color: #fff; max-width: 760px; }
.cta p { color: #e4eaf6; max-width: 640px; }

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, .6fr));
  gap: 28px;
  padding: 46px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.footer h3, .footer h4 { color: var(--ink); margin: 0 0 12px; }
.footer a { display: block; color: var(--muted); margin: 8px 0; font-weight: 600; }
.footer a:hover { color: var(--primary); }

.form { display: grid; gap: 14px; }
.form input, .form textarea, .notes {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  outline: none;
}
.form input:focus, .form textarea:focus, .notes:focus { border-color: #93b4ff; box-shadow: 0 0 0 4px rgba(29, 78, 216, .09); }
.form textarea, .notes { min-height: 140px; resize: vertical; }
.form-card, .auth-card { max-width: 560px; margin: 0 auto; }
.split-page {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.info-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.info-list { display: grid; gap: 14px; margin-top: 18px; }
.info-list div { padding: 14px; border-radius: 8px; background: var(--panel-soft); border: 1px solid var(--line); }

.page-hero {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(32px, 5vw, 64px);
  background: linear-gradient(180deg, #fff, #f5f7fb);
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 760px; font-size: 1.08rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 800;
}
.breadcrumb strong { color: #fff; }

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(2,6,23,.96), rgba(15,23,42,.88) 48%, rgba(37,99,235,.46)),
    url("/public/assets/images/academy-hero.png") right center / cover;
  border-bottom: 1px solid var(--line);
}
.course-hero h1 { color: #fff; }
.course-hero p { color: #dbeafe; }
.course-hero p { max-width: 720px; font-size: 1.08rem; }
.price-box {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.price-box strong { font-size: 2rem; color: var(--primary-dark); }
.mini-progress, .lesson-progress {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.mini-progress i, .lesson-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: progress .8s ease both;
}
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 28px; align-items: start; }
.lesson-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--soft-ink); font-weight: 700; }
.lesson-row:hover { color: var(--primary); }
.gain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.gain-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft); font-weight: 800; color: var(--soft-ink); }
.accordion-list { display: grid; gap: 10px; }
.accordion-item { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 14px; }
.accordion-item summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 900; }
.accordion-item summary em { font-style: normal; color: var(--primary); font-size: .85rem; }

.lesson-topbar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: center; padding: 16px clamp(18px, 5vw, 72px); background: #020617; color: #fff; }
.lesson-topbar div:first-child { display: grid; gap: 2px; }
.lesson-topbar span { color: #cbd5e1; }
.lesson-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: calc(100vh - 76px); background: #fff; }
.lesson-list { background: #0f172a; border-right: 1px solid rgba(255,255,255,.08); padding: 24px; color: #fff; }
.lesson-list h2 { color: #fff; }
.lesson-list a { display: block; padding: 12px; border-radius: 8px; color: var(--muted); font-weight: 700; }
.lesson-list a.active { background: rgba(37,99,235,.18); color: #fff; }
.lesson-main { padding: clamp(22px, 4vw, 44px); }
.video-js { width: 100%; max-width: 100%; aspect-ratio: 16/9; height: auto; margin-bottom: 22px; border-radius: 8px; overflow: hidden; }
.content { color: var(--soft-ink); margin: 22px 0; }
.lesson-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.resource-panel { position: sticky; top: 112px; display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }

.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 140px; }

.dashboard-theme { background: #f8fafc; }
.panel-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(15,23,42,.98), rgba(2,6,23,1)),
    radial-gradient(circle at top right, rgba(124,58,237,.22), transparent 18rem);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar .brand { color: #fff; margin-bottom: 18px; }
.sidebar a { padding: 12px 13px; border-radius: 14px; color: #cbd5e1; font-weight: 800; }
.sidebar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.panel-content { padding: 26px; overflow: auto; }
.panel-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -26px -26px 28px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(248,250,252,.86);
  backdrop-filter: blur(16px);
}
.panel-topbar div { display: grid; gap: 2px; }
.panel-topbar span { color: var(--muted); font-weight: 700; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.dash-stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(15,23,42,.06);
}
.dash-stats strong { display: block; font-size: 2.1rem; line-height: 1; color: var(--primary); }
.dash-stats span { color: var(--muted); font-weight: 800; }

@media (max-width: 920px) {
  .agency-header { padding: 10px 12px; }
  .header-shell { min-height: 62px; border-radius: 20px; }
  .desktop-nav, .desktop-actions { display: none; }
  .mobile-menu-trigger { display: inline-flex; margin-left: auto; }
  .hero { min-height: auto; background-position: center; grid-template-columns: 1fr; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(7, 14, 31, .4); }
  .hero-float-board { min-height: 280px; }
  .section-head, .section-title { align-items: start; flex-direction: column; }
  .split-page, .course-hero, .two-col, .lesson-layout, .lesson-topbar, .lesson-split, .panel-shell, .footer { grid-template-columns: 1fr; }
  .lesson-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .price-box, .resource-panel { position: static; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.35rem; }
  .brand span:last-child { max-width: 190px; white-space: normal; line-height: 1.1; }
  .mobile-menu-trigger span { display: none; }
  .mobile-drawer { inset: 8px; width: auto; border-radius: 24px; }
  .drawer-grid, .drawer-cta { grid-template-columns: 1fr; }
  .drawer-card { min-height: 104px; }
  .btn { width: 100%; }
  .actions .btn { width: auto; flex: 1 1 180px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* RH rebuilt header */
.rh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 18px;
  background: transparent;
  transition: background .2s ease, box-shadow .2s ease, padding .2s ease;
}
.rh-header--scrolled {
  background: rgba(248, 250, 252, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(15, 23, 42, .08);
}
.rh-header__inner {
  width: min(1240px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .09);
}
.rh-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #0f172a;
}
.rh-logo__mark {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .32);
}
.rh-logo__text {
  display: grid;
  gap: 0;
  line-height: 1.05;
}
.rh-logo__text strong {
  font-size: 1rem;
  font-weight: 950;
  white-space: nowrap;
}
.rh-logo__text small {
  color: #64748b;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .7rem;
}
.rh-logo--light { color: #fff; }
.rh-logo--light .rh-logo__text small { color: #cbd5e1; }
.rh-desktop-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
}
.rh-desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 850;
  font-size: .94rem;
  white-space: nowrap;
}
.rh-desktop-nav a:hover {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}
.rh-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rh-primary-button,
.rh-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.rh-primary-button {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
}
.rh-link-button {
  color: #0f172a;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.rh-link-button--dark {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}
.rh-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.rh-menu-button i,
.rh-menu-button i::before,
.rh-menu-button i::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.rh-menu-button i {
  position: relative;
}
.rh-menu-button i::before,
.rh-menu-button i::after {
  content: "";
  position: absolute;
  left: 0;
}
.rh-menu-button i::before { top: -6px; }
.rh-menu-button i::after { top: 6px; }
.rh-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.rh-mobile-menu {
  position: fixed;
  z-index: 1200;
  inset: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 58, 237, .32), transparent 24rem),
    radial-gradient(circle at 0% 20%, rgba(37, 99, 235, .26), transparent 22rem),
    #020617;
  color: #fff;
  box-shadow: 0 30px 100px rgba(2, 6, 23, .55);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
  overflow: auto;
}
body.rh-menu-is-open {
  overflow: hidden;
}
body.rh-menu-is-open .rh-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.rh-menu-is-open .rh-mobile-menu {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.rh-mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rh-menu-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.rh-mobile-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rh-mobile-menu__grid a {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.rh-mobile-menu__grid a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .13);
  border-color: rgba(147, 197, 253, .38);
}
.rh-mobile-menu__grid em {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .22);
  color: #bfdbfe;
  font-style: normal;
  font-size: .76rem;
  font-weight: 950;
}
.rh-mobile-menu__grid strong {
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.1;
}
.rh-mobile-menu__grid span {
  color: #cbd5e1;
  font-weight: 650;
  line-height: 1.35;
}
.rh-mobile-menu__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

@media (max-width: 1080px) {
  .rh-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .rh-desktop-nav,
  .rh-header__actions {
    display: none;
  }
  .rh-menu-button {
    display: inline-flex;
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .rh-header {
    padding: 10px;
  }
  .rh-header__inner {
    min-height: 64px;
    border-radius: 20px;
    gap: 10px;
  }
  .rh-logo__mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .rh-logo__text strong {
    font-size: .92rem;
  }
  .rh-menu-button {
    width: 44px;
    padding: 0;
  }
  .rh-menu-button span {
    display: none;
  }
  .rh-mobile-menu {
    inset: 8px;
    padding: 14px;
    border-radius: 24px;
  }
  .rh-mobile-menu__grid,
  .rh-mobile-menu__actions {
    grid-template-columns: 1fr;
  }
  .rh-mobile-menu__grid a {
    min-height: 112px;
  }
}
