:root {
  --shell-bg: #0b2532;
  --shell-bg-deep: #071b25;
  --shell-bg-soft: #113746;
  --shell-text: #eef7fa;
  --shell-muted: #a9bec8;
  --shell-line: rgba(255, 255, 255, 0.1);
  --shell-accent: #f2432e;
  --shell-max: 1440px;
}

body.global-shell-page {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

body.global-shell-page > .site {
  width: 100%;
  flex: 1;
}

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

.global-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  border-bottom: 1px solid var(--shell-line);
  background: rgba(11, 37, 50, 0.97);
  color: var(--shell-text);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px) saturate(130%);
}

.global-shell-container {
  width: min(calc(100% - 48px), var(--shell-max));
  margin: 0 auto;
}

.global-utility {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--shell-bg-deep);
}

.global-utility-row {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.global-tagline {
  color: var(--shell-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.global-utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.76rem;
  font-weight: 650;
}

.global-utility-links a {
  color: var(--shell-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.global-utility-links a:hover,
.global-utility-links a:focus-visible,
.global-utility-links a.is-current {
  color: #fff;
}

.global-language-switch {
  position: relative;
  z-index: 20;
}

.global-language-button {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--shell-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.global-language-button::after {
  width: 5px;
  height: 5px;
  margin: 0 2px 3px 1px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: "";
  opacity: 0.7;
  transform: rotate(45deg);
}

.global-language-button img,
.global-language-menu img {
  width: 20px;
  border-radius: 3px;
}

.global-language-menu {
  position: absolute;
  z-index: 21;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 7px;
  border: 1px solid var(--shell-line);
  border-radius: 11px;
  background: #0d2d3b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.global-language-switch.is-open .global-language-menu,
.global-language-switch:hover .global-language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.global-language-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: #dce9ee;
  white-space: nowrap;
}

.global-language-menu a:hover,
.global-language-menu a:focus-visible {
  background: var(--shell-accent);
  color: #fff;
}

.global-primary-row {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.global-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.global-brand-logo {
  display: block;
  width: auto;
  height: 64px;
}

.global-menu {
  display: flex;
  min-width: 0;
  align-items: center;
  margin-left: auto;
}

.global-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.7vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav-item {
  position: relative;
}

.global-nav-link,
.global-nav-trigger {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--shell-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease;
}

.global-nav-trigger::after {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  padding: 3px;
  content: "";
  opacity: 0.7;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.global-nav-link:hover,
.global-nav-trigger:hover,
.global-nav-link:focus-visible,
.global-nav-trigger:focus-visible,
.global-nav-item.is-current > .global-nav-link,
.global-nav-item.is-current > .global-nav-trigger {
  color: #fff;
}

.global-nav-item.is-current > .global-nav-link::before,
.global-nav-item.is-current > .global-nav-trigger::before {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--shell-accent);
  content: "";
}

.global-nav-item--desktop-enroll.is-current > .global-nav-link::before {
  display: none;
}

.global-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -18px;
  display: grid;
  min-width: 230px;
  gap: 3px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--shell-line);
  border-radius: 15px;
  background: #0d2d3b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.global-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #d9e7ec;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.global-dropdown a:hover,
.global-dropdown a:focus-visible {
  background: var(--shell-accent);
  color: #fff;
}

@media (min-width: 1101px) {
  .global-nav-item.has-dropdown:hover > .global-dropdown,
  .global-nav-item.has-dropdown.is-open > .global-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.global-enroll-link {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--shell-accent);
  border-radius: 999px;
  color: #fff;
  transition: background 0.18s ease, transform 0.18s ease;
}

.global-enroll-link:hover,
.global-enroll-link:focus-visible,
.global-nav-item.is-current .global-enroll-link {
  background: var(--shell-accent);
  color: #fff;
  transform: translateY(-1px);
}

.global-hamburger,
.global-mobile-enroll {
  display: none;
}

.global-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1180;
  background: rgba(2, 12, 17, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  backdrop-filter: blur(3px);
}

.global-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.global-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--shell-line);
  background: var(--shell-bg-deep);
  color: var(--shell-muted);
}

.global-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(170px, 0.7fr);
  align-items: center;
  gap: 42px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.global-footer-brand {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.global-footer-brand p {
  max-width: 36ch;
  margin: 0;
  color: var(--shell-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.global-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-footer-links a {
  color: #dce9ee;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.global-footer-links a:hover,
.global-footer-links a:focus-visible {
  color: var(--shell-accent);
}

.global-footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.global-social-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--shell-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.global-social-link svg {
  width: 21px;
  height: 21px;
}

.global-social-link:hover,
.global-social-link:focus-visible {
  border-color: rgba(242, 67, 46, 0.65);
  background: rgba(242, 67, 46, 0.16);
}

.global-footer-bottom {
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #7f9aa5;
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .global-primary-row {
    min-height: 78px;
    gap: 14px;
  }

  .global-brand-logo {
    height: 58px;
  }

  .global-mobile-enroll {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--shell-accent);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
  }

  .global-hamburger {
    position: relative;
    z-index: 1220;
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--shell-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  .global-hamburger span,
  .global-hamburger::before,
  .global-hamburger::after {
    position: absolute;
    right: 10px;
    left: 10px;
    height: 2px;
    border-radius: 3px;
    background: #fff;
    content: "";
    transition: opacity 0.2s ease, transform 0.22s ease;
  }

  .global-hamburger::before {
    top: 13px;
  }

  .global-hamburger span {
    top: 20px;
  }

  .global-hamburger::after {
    top: 27px;
  }

  .global-hamburger.is-open::before {
    transform: translateY(7px) rotate(45deg);
  }

  .global-hamburger.is-open span {
    opacity: 0;
  }

  .global-hamburger.is-open::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .global-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1210;
    display: block;
    width: min(420px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: 100px 22px 30px;
    background: #09232f;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.38);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.2s ease, transform 0.26s ease, visibility 0.26s ease;
  }

  .global-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .global-nav-list {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .global-nav-link,
  .global-nav-trigger {
    width: 100%;
    min-height: 51px;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .global-nav-item.is-current > .global-nav-link::before,
  .global-nav-item.is-current > .global-nav-trigger::before {
    right: auto;
    bottom: 8px;
    width: 34px;
  }

  .global-nav-item.is-open > .global-nav-trigger::after {
    transform: translateY(2px) rotate(225deg);
  }

  .global-dropdown {
    position: static;
    display: grid;
    max-height: 0;
    min-width: 0;
    gap: 2px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .global-nav-item.is-open > .global-dropdown {
    max-height: 650px;
    padding-top: 6px;
    padding-bottom: 8px;
    opacity: 1;
    visibility: visible;
  }

  .global-dropdown a {
    padding: 10px 12px;
    color: #bcd0d8;
    white-space: normal;
  }

  .global-nav-item--desktop-enroll {
    margin-top: 18px;
  }

  .global-nav-item--desktop-enroll .global-enroll-link {
    justify-content: center;
    border-bottom: 1px solid var(--shell-accent);
  }

  body.global-menu-open {
    overflow: hidden;
  }

  .global-footer-main {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
    text-align: center;
  }

  .global-footer-brand {
    justify-items: center;
  }

  .global-footer-social {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .global-shell-container {
    width: min(calc(100% - 28px), var(--shell-max));
  }

  .global-utility-row {
    justify-content: flex-end;
  }

  .global-tagline {
    display: none;
  }

  .global-utility-links {
    width: 100%;
    justify-content: flex-end;
    gap: 14px;
  }

  .global-primary-row {
    min-height: 70px;
  }

  .global-brand-logo {
    height: 50px;
  }

  .global-mobile-enroll {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.72rem;
  }

  .global-footer-main {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .global-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
  }
}

@media (max-width: 390px) {
  .global-mobile-enroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-header *,
  .global-nav-overlay,
  .global-footer * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
