.seo-header > .seo-language-source[hidden],
.seo-header > .seo-primary-source[hidden] {
  display: none !important;
}

.seo-header.seo-header-enhanced {
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr) auto;
  gap: clamp(16px, 2.2vw, 40px);
  min-height: 76px;
  padding-inline: max(
    clamp(20px, 4vw, 72px),
    calc((100vw - 1440px) / 2 + clamp(20px, 4vw, 72px))
  );
  border-bottom-color: rgba(254, 248, 240, .14);
  background: rgba(13, 37, 61, .98);
  box-shadow: 0 10px 32px rgba(4, 22, 38, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.seo-header-enhanced .seo-brand {
  display: block;
  width: clamp(176px, 15vw, 216px);
  min-width: 0;
}

.seo-header-enhanced .seo-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.seo-header .seo-primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  overflow: visible;
}

.seo-header .seo-primary-nav a {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 0;
  border: 0;
  color: #fef8f0;
  font-size: clamp(12px, .85vw, 13.44px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.seo-header .seo-primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  content: '';
  background: #f76920;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.seo-header .seo-primary-nav a:hover::after,
.seo-header .seo-primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.seo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-header-enhanced .header-cta {
  display: inline-flex;
  min-width: 138px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid #f76920;
  background: #f76920;
  color: #061d31;
  font-size: 12.8px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}

.seo-header-enhanced .header-cta::after {
  content: '\2197';
  font-size: 17px;
  line-height: 1;
}

.seo-header-enhanced .header-cta:hover,
.seo-header-enhanced .header-cta:focus-visible {
  border-color: #fef8f0;
  background: #fef8f0;
  transform: translateY(-2px);
}

.seo-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(254, 248, 240, .35);
  background: rgba(255, 255, 255, .035);
  color: #fef8f0;
  cursor: pointer;
}

.seo-menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.seo-menu-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.seo-menu-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.seo-mobile-menu[hidden] {
  display: none !important;
}

.seo-mobile-menu {
  position: fixed;
  z-index: 210;
  top: 72px;
  right: 0;
  left: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  width: 100%;
  height: calc(100dvh - 72px);
  max-height: calc(100dvh - 72px);
  padding: 18px clamp(20px, 4vw, 72px) 32px;
  overflow-x: clip;
  overflow-y: auto;
  border-top: 1px solid rgba(254, 248, 240, .14);
  background: #06243f;
  box-shadow: 0 24px 64px rgba(0, 14, 26, .42);
}

.seo-header .seo-mobile-primary-nav {
  display: grid !important;
  order: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  align-content: start;
  align-items: stretch;
  justify-content: stretch;
  justify-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.seo-header .seo-mobile-primary-nav a {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(254, 248, 240, .16);
  color: #fef8f0;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 650;
  letter-spacing: -.025em;
  white-space: normal;
}

.seo-header .seo-mobile-primary-nav a::after {
  content: '\2197';
  color: #f76920;
  font-size: 18px;
}

.seo-mobile-menu .seo-mobile-cta {
  display: flex !important;
  order: 1;
  width: 100%;
  min-height: 52px;
  height: 52px;
  margin-top: 20px;
}

.seo-language-control {
  position: relative;
  z-index: 220;
  color: #fef8f0;
}

.seo-language-control > summary {
  display: flex;
  min-width: 72px;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(254, 248, 240, .24);
  border-radius: 2px;
  background: transparent;
  list-style: none;
  color: rgba(254, 248, 240, .92);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .08em;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.seo-language-control > summary::-webkit-details-marker {
  display: none;
}

.seo-language-control > summary:hover,
.seo-language-control[open] > summary {
  border-color: rgba(254, 248, 240, .55);
  background: rgba(255, 255, 255, .045);
  color: #fff;
}

.seo-language-control > summary:focus-visible {
  border-color: rgba(254, 248, 240, .55);
  box-shadow: 0 0 0 2px rgba(254, 248, 240, .12);
}

.seo-language-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.seo-language-control[open] .seo-language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.seo-language-popover {
  position: absolute;
  z-index: 220;
  top: calc(100% + 12px);
  right: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  width: min(248px, calc(100vw - 32px));
  min-width: 220px;
  gap: 0 !important;
  padding: 8px;
  border: 1px solid #c9d1d5;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 22, 38, .22);
  justify-content: stretch;
  justify-items: stretch;
}

.seo-language-popover::before {
  position: absolute;
  top: -6px;
  right: 25px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #c9d1d5;
  border-left: 1px solid #c9d1d5;
  background: #fff;
  content: '';
  transform: rotate(45deg);
}

.seo-language-control:not([open]) > .seo-language-popover {
  display: none !important;
}

.seo-header .seo-language-popover a {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #e2e7e9;
  color: #0a2f52;
  font-size: 13.44px;
  font-weight: 650;
  white-space: nowrap;
}

.seo-header .seo-language-popover a:last-child {
  border-bottom: 0;
}

.seo-header .seo-language-popover a::after {
  content: attr(data-language);
  color: #d94d0b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.seo-header .seo-language-popover a:hover,
.seo-header .seo-language-popover a:focus-visible,
.seo-header .seo-language-popover a[aria-current='page'] {
  background: #eef2f2;
  color: #0a2f52;
}

@media (max-width: 1180px) {
  .seo-header.seo-header-enhanced {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 72px;
    padding-inline: clamp(20px, 4vw, 72px);
  }

  .seo-header .seo-primary-nav {
    display: none !important;
  }

  .seo-header-actions {
    grid-column: 2;
    gap: 8px;
  }

  .seo-menu-toggle {
    display: block;
  }

  .seo-header-enhanced .seo-header-actions > .header-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  .seo-header.seo-header-enhanced {
    gap: 8px;
    min-height: 68px;
    padding-inline: 16px;
  }

  .seo-header-enhanced .seo-brand {
    width: clamp(145px, 44vw, 172px);
  }

  .seo-language-control > summary {
    min-width: 58px;
    min-height: 44px;
    padding-inline: 10px;
  }

  .seo-menu-toggle {
    width: 44px;
    height: 44px;
    padding-inline: 11px;
  }

  .seo-header .seo-language-popover {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    width: auto !important;
    min-width: 0;
  }

  .seo-mobile-menu {
    top: 68px;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    padding-inline: 20px;
  }
}

@media (max-width: 370px) {
  .seo-header-enhanced .seo-brand {
    width: 136px;
  }

  .seo-language-control > summary {
    min-width: 52px;
  }

  .seo-header-actions {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-header .seo-primary-nav a::after,
  .seo-header-enhanced .header-cta,
  .seo-language-chevron,
  .seo-menu-toggle span {
    transition: none;
  }
}
