.language-switcher {
  align-items: center;
  border: 1px solid rgba(7, 51, 90, 0.2);
  border-radius: 999px;
  color: #173a5b;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.2rem;
  line-height: 1;
  padding: 0.18rem 0.28rem;
  white-space: nowrap;
}

.language-switcher__globe {
  align-items: center;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  margin: 0 0.12rem 0 0.08rem;
  width: 1rem;
}

.language-switcher__globe svg {
  display: block;
  height: 100%;
  width: 100%;
}

.language-switcher__link {
  align-items: center;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 0.16rem;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.42rem;
  text-decoration: none;
}

.language-switcher__link:hover,
.language-switcher__link:focus-visible {
  background: rgba(7, 51, 90, 0.08);
}

.language-switcher__link[aria-current="page"] {
  background: #07335a;
  color: #fff;
}

.language-switcher__check {
  font-size: 0.66rem;
  line-height: 1;
}

.header-quick-contacts > .language-switcher--desktop {
  left: 0;
  position: absolute;
  top: calc(50% + 23px);
}

.mobile-menu-layer .language-switcher {
  margin: 0.35rem 0 0.8rem;
}

.mobile-menu-layer .language-switcher--mobile {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: fit-content;
}

.mobile-menu-layer .language-switcher--mobile .language-switcher__link {
  border: 0;
  font-size: 0.7rem;
  min-height: 0;
  padding: 0.34rem 0.42rem;
}

.translation-legal-notice {
  background: #f4f7fa;
  border: 1px solid rgba(7, 51, 90, 0.16);
  border-left: 4px solid #0a5f94;
  color: #173a5b;
  margin: 1rem auto;
  max-width: min(1180px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
}

.translation-legal-notice p {
  margin: 0;
}

.translation-legal-notice a {
  font-weight: 700;
}

@media (min-width: 1181px) and (max-width: 1600px) {
  html[lang="en"] .reference-header-inner {
    gap: 16px;
    width: min(1280px, calc(100% - 32px));
  }

  html[lang="en"] .reference-header-brand {
    flex-basis: 270px;
  }

  html[lang="en"] .reference-site-header .site-nav {
    font-size: 12px;
    gap: 16px;
  }

  html[lang="en"] .mega-menu-label {
    gap: 0;
  }

  html[lang="en"] .mega-menu-trigger {
    width: 18px;
  }

  html[lang="en"] .desktop-contact-link {
    padding: 8px 11px;
  }

  html[lang="en"] .header-quick-contacts {
    flex-basis: 272px;
    gap: 5px;
    width: 272px;
  }
}

@media (max-width: 1180px) {
  .header-quick-contacts > .language-switcher--desktop {
    display: none;
  }
}

/* The base header switches to its mobile menu at 1180px, while its detailed
   menu styling starts below 1024px. Extend that existing treatment only for
   the English build across the otherwise unstyled tablet interval. */
@media (min-width: 1024px) and (max-width: 1180px) {
  html[lang="en"] .mobile-menu-close {
    background: #fff;
    border: 1px solid #d7e1e3;
    border-radius: 12px;
    color: #0b4f8a;
    cursor: pointer;
    display: grid;
    font-size: 28px;
    height: 44px;
    line-height: 1;
    place-items: center;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 44px;
  }

  html[lang="en"] .mobile-menu-layer > .reference-header-search {
    margin: 0 0 18px;
    transform: none;
    width: 100%;
  }

  html[lang="en"] .mobile-submenu {
    border-bottom: 1px solid #e2e9ec;
  }

  html[lang="en"] .mobile-submenu summary {
    align-items: center;
    color: #0b4f8a;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 800;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    min-height: 53px;
  }

  html[lang="en"] .mobile-submenu summary::-webkit-details-marker {
    display: none;
  }

  html[lang="en"] .mobile-submenu summary b {
    font-size: 20px;
    transition: transform 0.18s;
  }

  html[lang="en"] .mobile-submenu[open] summary b {
    transform: rotate(45deg);
  }

  html[lang="en"] .mobile-submenu > div {
    display: grid;
    padding: 0 0 15px 12px;
  }

  html[lang="en"] .mobile-submenu section {
    display: grid;
    margin-top: 14px;
  }

  html[lang="en"] .mobile-submenu section > strong {
    color: #657982;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 8px 4px;
    text-transform: uppercase;
  }

  html[lang="en"] .mobile-menu-layer .mobile-submenu a {
    font-size: 13px;
    padding: 11px 4px;
  }

  html[lang="en"] .mobile-menu-service {
    background: #eef7fb;
    border-radius: 14px;
    color: #0b4f8a;
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin-top: 24px;
    padding: 18px;
  }

  html[lang="en"] .mobile-menu-service small {
    color: #657982;
    font-size: 9px;
    line-height: 1.5;
  }
}
