.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(218, 226, 238, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(7, 23, 53, 0.06);
  backdrop-filter: blur(18px);
}

.global-scroll-progress {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: var(--page-progress, 0%);
  height: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(8, 22, 50, 0.14);
  pointer-events: none;
  transition: width 90ms linear;
}

.global-scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100vw;
  background: linear-gradient(90deg, #163f8f 0 33.333%, #ffffff 33.333% 66.666%, #e5343a 66.666% 100%);
}

.global-header,
.global-header * { box-sizing: border-box; }

.global-header a { text-decoration: none; }

.global-header-inner {
  width: min(100% - 40px, 1180px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.global-brand img {
  display: block;
  width: 164px;
  height: auto;
}

.global-links {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #26334d;
  font: 700 14px/1.2 Inter, Arial, sans-serif;
}

.global-link,
.global-course-link {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: #26334d;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.global-link::after,
.global-course-link::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 3px;
  border-radius: 3px;
  background: #22bce5;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.global-link:hover,
.global-link:focus-visible,
.global-course-link:hover,
.global-course-link:focus-visible,
.global-link[aria-current="page"],
.global-course-link[aria-current="page"] {
  border-color: #d9eaf6;
  background: #f1f9fd;
  color: #164fa3;
}

.global-link:hover::after,
.global-link:focus-visible::after,
.global-course-link:hover::after,
.global-course-link:focus-visible::after,
.global-link[aria-current="page"]::after,
.global-course-link[aria-current="page"]::after { transform: scaleX(1); }

.global-course-item {
  position: relative;
  display: flex;
  align-items: center;
}

.global-course-link { padding-right: 30px; }

.global-submenu-toggle {
  position: absolute;
  top: 50%;
  right: 1px;
  width: 28px;
  height: 34px;
  margin: 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #164fa3;
  cursor: pointer;
}

.global-submenu-toggle:focus-visible {
  outline: 2px solid #2ec4e6;
  outline-offset: 2px;
}

.global-caret {
  width: 8px;
  height: 8px;
  display: block;
  transform: translateY(-2px) rotate(45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform 200ms ease;
}

.global-course-item:hover .global-caret,
.global-course-item:focus-within .global-caret,
.global-course-item.is-open .global-caret {
  transform: translateY(2px) rotate(225deg);
}

.global-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(760px, calc(100vw - 40px));
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.global-submenu-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(218, 226, 238, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  padding: 16px;
  box-shadow: 0 24px 60px rgba(7, 23, 53, 0.2);
}

.global-course-item:hover .global-submenu,
.global-course-item:focus-within .global-submenu,
.global-course-item.is-open .global-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.global-submenu-link {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #fff;
  padding: 14px 15px 14px 36px;
  color: #0d2d6c;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.global-submenu-link::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ec4e6;
  box-shadow: 0 0 0 5px rgba(46, 196, 230, 0.13);
}

.global-submenu-link strong {
  overflow-wrap: anywhere;
  color: #0d2d6c;
  font-size: 14px;
  line-height: 1.25;
}

.global-submenu-link span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.global-submenu-link:hover,
.global-submenu-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(46, 196, 230, 0.48);
  background: #f2fbfe;
  box-shadow: 0 10px 24px rgba(13, 45, 108, 0.1);
  outline: none;
}

.global-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font: 800 14px/1 Inter, Arial, sans-serif;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.global-action:hover { transform: translateY(-2px); }

.global-action-phone {
  border-color: #d8e2ef;
  background: #fff;
  color: #0d2d6c;
}

.global-action-primary {
  background: linear-gradient(180deg, #1c62bd 0%, #0d3f94 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 63, 148, 0.22);
}

.global-menu-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: none;
  place-items: center;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  color: #0d2d6c;
  cursor: pointer;
}

.global-menu-icon,
.global-menu-icon::before,
.global-menu-icon::after {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.global-menu-icon { position: relative; }
.global-menu-icon::before,
.global-menu-icon::after { content: ""; position: absolute; left: 0; }
.global-menu-icon::before { top: -6px; }
.global-menu-icon::after { top: 6px; }

.global-header.is-menu-open .global-menu-icon { background: transparent; }
.global-header.is-menu-open .global-menu-icon::before { top: 0; transform: rotate(45deg); }
.global-header.is-menu-open .global-menu-icon::after { top: 0; transform: rotate(-45deg); }

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

@media (max-width: 1100px) {
  .global-header-inner { gap: 16px; }
  .global-links { gap: 2px; }
  .global-action-phone { display: none; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .global-header-inner {
    min-height: 68px;
    justify-content: center;
    padding: 10px 0;
  }

  .global-brand img { width: 146px; }
  .global-brand { margin: 0 auto; }
  .global-menu-toggle { display: none; }

  .global-links,
  .global-actions { display: none; }
}

.mobile-app-nav,
.mobile-course-backdrop,
.mobile-course-sheet { display: none; }

@media (max-width: 900px) {
  .mobile-app-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    display: block;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce5f0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -14px 36px rgba(8,22,50,.14);
    backdrop-filter: blur(18px);
  }

  .mobile-app-nav-inner {
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .mobile-nav-link,
  .mobile-nav-button {
    position: relative;
    min-width: 0;
    min-height: 52px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5f6b7d;
    font: 750 10px/1.15 Inter, Arial, sans-serif;
    cursor: pointer;
  }

  .mobile-nav-link svg,
  .mobile-nav-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-link[aria-current="page"],
  .mobile-nav-button[aria-expanded="true"] {
    background: #eef8fd;
    color: #124b9c;
  }

  .mobile-nav-link[aria-current="page"]::after,
  .mobile-nav-button[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    right: 24%;
    bottom: 3px;
    left: 24%;
    height: 3px;
    border-radius: 3px;
    background: #20bde5;
  }

  .mobile-course-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: block;
    background: rgba(5,17,41,.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .mobile-course-sheet {
    position: fixed;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1220;
    display: block;
    max-height: min(68vh, 590px);
    overflow: auto;
    border: 1px solid #dce5f0;
    border-radius: 16px 16px 10px 10px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -24px 70px rgba(5,17,41,.26);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .mobile-course-sheet.is-open,
  .mobile-course-sheet.is-open + .mobile-course-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-course-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
  }

  .mobile-course-sheet-head strong {
    color: #102e74;
    font: 800 18px/1.2 Montserrat, Arial, sans-serif;
  }

  .mobile-course-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #f7f9fc;
    color: #102e74;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-course-list { display: grid; gap: 8px; }

  .mobile-course-option {
    display: grid;
    gap: 3px;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    color: #102e74;
  }

  .mobile-course-option strong { font-size: 14px; line-height: 1.25; }
  .mobile-course-option span { color: #667085; font-size: 12px; font-weight: 650; }
}

@media (prefers-reduced-motion: reduce) {
  .global-header *,
  .global-header *::before,
  .global-header *::after { transition: none !important; }
  .global-scroll-progress,
  .mobile-course-backdrop,
  .mobile-course-sheet { transition: none !important; }
}

.course-estimator-trigger {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1170;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(245, 201, 79, .72);
  border-radius: 8px;
  background: #102e74;
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 24, 58, .28);
  font: 800 14px/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.course-estimator-trigger svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #f5c94f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-estimator-trigger:hover {
  background: #174fa9;
  box-shadow: 0 20px 48px rgba(8, 24, 58, .34);
  transform: translateY(-3px);
}

.course-estimator-backdrop {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 15, 38, .7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.course-estimator-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.has-estimator-open { overflow: hidden; }

.course-estimator {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(4, 15, 38, .34);
  transform: translateY(18px) scale(.98);
  transition: transform .22s ease;
}

.course-estimator *,
.course-estimator *::before,
.course-estimator *::after { box-sizing: border-box; }

.course-estimator-backdrop.is-open .course-estimator { transform: translateY(0) scale(1); }

.course-estimator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.course-estimator-kicker {
  color: #0882a9;
  font: 800 11px/1.2 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
}

.course-estimator h2 {
  margin: 7px 0 0;
  color: #102e74;
  font: 800 clamp(25px, 4vw, 36px)/1.08 Montserrat, Arial, sans-serif;
  letter-spacing: 0;
}

.course-estimator-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #f5f8fc;
  color: #102e74;
  font-size: 26px;
  cursor: pointer;
}

.course-estimator-intro {
  margin: 14px 0 20px;
  color: #5d6b82;
  line-height: 1.6;
}

.course-estimator-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 8px;
}

.course-estimator-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  color: #53627a;
  font-size: 12px;
  font-weight: 750;
}

.course-estimator-steps span + span { border-left: 1px solid #dce5f0; }
.course-estimator-steps b { color: #0aaed9; }

.course-estimator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.course-estimator-fields label { display: grid; min-width: 0; gap: 7px; }
.course-estimator-fields label > span { color: #102e74; font-size: 13px; font-weight: 800; }
.course-estimator-fields select {
  width: 100%;
  min-height: 50px;
  padding: 0 40px 0 13px;
  border: 1px solid #d5e0ef;
  border-radius: 8px;
  background: #fff;
  color: #17233b;
  font: 500 14px/1.2 Montserrat, Arial, sans-serif;
}

.course-estimator-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 18px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(23, 184, 230, .3);
  border-radius: 8px;
  background: #eefbff;
}

.course-estimator-result > span { color: #087da1; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.course-estimator-result strong { grid-row: span 2; color: #102e74; font: 800 clamp(24px, 4vw, 34px)/1 Montserrat, Arial, sans-serif; }
.course-estimator-result small { color: #52627a; font-size: 12px; }
.course-estimator-note { margin: 14px 0; color: #69768d; font-size: 12px; line-height: 1.5; }

.course-estimator-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  border-radius: 8px;
  background: #102e74;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(16, 46, 116, .2);
}

.course-estimator-cta:hover { background: #174fa9; color: #fff; }

@media (max-width: 760px) {
  .course-estimator-trigger {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    min-height: 42px;
    padding: 0 13px;
    font-size: 12px;
  }

  .course-estimator-backdrop { align-items: end; padding: 8px; }
  .course-estimator { width: 100%; min-width: 0; max-width: 100%; max-height: calc(100vh - 16px); padding: 22px 18px; border-radius: 8px 8px 0 0; }
  .course-estimator-fields { grid-template-columns: 1fr; }
  .course-estimator-steps span { justify-content: center; padding: 9px 5px; font-size: 10px; }
  .course-estimator-result { grid-template-columns: 1fr; }
  .course-estimator-result strong { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .course-estimator-trigger,
  .course-estimator-backdrop,
  .course-estimator { transition: none; }
}
