:root {
  --apolo-header-blue: #0047bb;
  --apolo-header-navy: #071a3d;
  --apolo-header-line: #dfe6ef;
  --apolo-header-focus: #2db84c;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  border-bottom: 1px solid var(--apolo-header-line);
  background: #fff;
  color: var(--apolo-header-navy);
}

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

.global-header__inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  align-items: center;
  gap: 24px;
}

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

.global-header__brand img {
  display: block;
  width: 142px;
  height: 50px;
  object-fit: contain;
}

.global-header__nav {
  display: flex;
  min-width: 0;
  margin-left: auto;
  align-items: center;
  gap: 22px;
}

.global-header__nav a,
.global-header__actions a,
.global-header__mobile a {
  color: var(--apolo-header-navy);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.global-header__nav a {
  position: relative;
  padding: 27px 0 25px;
}

.global-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--apolo-header-blue);
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
}

.global-header__nav a:hover,
.global-header__nav a[aria-current="page"] {
  color: var(--apolo-header-blue);
}

.global-header__nav a:hover::after,
.global-header__nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.global-header__language,
.global-header__phone {
  color: var(--apolo-header-blue) !important;
  font-weight: 750 !important;
}

.global-header__cta {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--apolo-header-blue);
  color: #fff !important;
  font-weight: 750 !important;
}

.global-header__cta:hover {
  background: #003c9f;
}

.global-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--apolo-header-line);
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--apolo-header-navy);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
}

.global-header__mobile {
  display: none;
}

.global-header__mobile[hidden] {
  display: none !important;
}

.global-header a:focus-visible,
.global-header button:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--apolo-header-focus);
  outline-offset: 3px;
}

.global-header__sr-only {
  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: 1180px) {
  .global-header__inner {
    gap: 18px;
  }

  .global-header__nav {
    gap: 16px;
  }

  .global-header__actions {
    gap: 12px;
  }

  .global-header__nav a,
  .global-header__actions a {
    font-size: 14px;
  }

  .global-header__cta {
    padding-inline: 16px;
  }
}

@media (max-width: 1060px) {
  .global-header__inner {
    min-height: 68px;
  }

  .global-header__nav,
  .global-header__actions {
    display: none;
  }

  .global-header__toggle {
    display: inline-flex;
  }

  .global-header__mobile:not([hidden]) {
    display: flex;
    width: 100%;
    padding: 10px 16px 18px;
    border-top: 1px solid var(--apolo-header-line);
    flex-direction: column;
    gap: 2px;
    background: #fff;
  }

  .global-header__mobile a {
    display: flex;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 8px;
    align-items: center;
  }

  .global-header__mobile a:hover,
  .global-header__mobile a[aria-current="page"] {
    background: #f3f7ff;
    color: var(--apolo-header-blue);
  }

  .global-header__mobile .global-header__cta {
    margin-top: 8px;
    justify-content: center;
    background: var(--apolo-header-blue);
    color: #fff;
  }
}

@media (max-width: 420px) {
  .global-header__inner {
    width: min(100% - 24px, 1180px);
  }

  .global-header__brand img {
    width: 126px;
    height: auto;
  }
}
