/* Header v2: calm surfaces, brand-drawn icons and stable interaction targets. */
.header-skip {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border: 2px solid #3b64a7;
  border-radius: 8px;
  background: white;
  color: #243b56;
  transform: translateY(-180%);
}
.header-skip:focus {
  transform: none;
}
#main [id] {
  scroll-margin-top: 112px;
}
.header-icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #d7e1eb;
  color: #243b56;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, calc(100% - 32px));
  min-height: 92px;
  margin-inline: auto;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 48px;
}
.site-header__brand img {
  display: block;
  width: 216px;
  height: auto;
}
.site-header svg,
.header-menu svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:is(.site-header, .header-menu) .header-icon-small {
  flex-basis: 14px;
  width: 14px;
  height: 14px;
}
.site-header a,
.header-menu a {
  text-decoration: none;
}
:is(.site-header, .header-menu) :is(a, button, summary, select) {
  touch-action: manipulation;
}
:is(.site-header, .header-menu) :is(a, button, summary, select):focus-visible {
  outline: 2px solid #3b64a7;
  outline-offset: 3px;
  border-radius: 8px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #56677d;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.site-header__nav a > svg {
  color: #7894ad;
}
.site-header__nav a:hover,
.site-header__nav a[aria-current] {
  background: #f2f6fa;
  color: #243b56;
}
.site-header__nav a[aria-current] > svg {
  color: #3b64a7;
}
.site-header__nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: #3b64a7;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-language {
  position: relative;
}
.header-language summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px;
  border-radius: 8px;
  color: #56677d;
  font-size: 12px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.header-language summary::-webkit-details-marker {
  display: none;
}
.header-language summary:hover,
.header-language[open] summary {
  background: #f2f6fa;
  color: #243b56;
}
.header-language ul {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 60;
  width: 240px;
  max-height: 360px;
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid #d7e1eb;
  border-radius: 14px;
  background: white;
  box-shadow: 0 16px 36px -16px #192d4344;
}
.header-language li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #243b56;
  font-size: 13px;
}
.header-language li a:hover,
.header-language li a[aria-current] {
  background: #edf3f8;
  color: #3b64a7;
}
.header-language small {
  color: #56677d;
  font-size: 10px;
}
.header-reviews {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #56677d;
  font-size: 11px;
}
.header-reviews:hover {
  color: #243b56;
}
.header-reviews:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid #d7e1eb;
}
.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.header-button--primary {
  background: #243b56;
  color: #fff;
}
.header-button--primary:hover {
  background: #3b64a7;
  color: #fff;
}
.header-button--quiet {
  background: transparent;
  color: #243b56;
}
.header-button--quiet:hover {
  background: #edf3f8;
  color: #243b56;
}
.header-button--secondary {
  background: white;
  border-color: #c4d3e2;
  color: #243b56;
}
.header-button--secondary:hover {
  background: #f2f6fa;
  border-color: #7894ad;
  color: #243b56;
}
.header-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  background: #fff;
  color: #243b56;
  font-size: 12px;
  font-weight: 650;
}
.header-menu-toggle:hover {
  border-color: #7894ad;
  background: #f2f6fa;
}
body.header-menu-open {
  overflow: hidden;
}
.header-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: 0 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-left: 1px solid #d7e1eb;
  background: #fff;
  color: #243b56;
}
.header-menu[open] {
  display: flex;
  flex-direction: column;
  animation: header-menu-enter 0.2s ease-out;
}
.header-menu::backdrop {
  background: #192d4380;
}
.header-menu__top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border-bottom: 1px solid #d7e1eb;
}
.header-menu__top > span {
  font-family: var(--font-display);
  font-size: 26px;
}
.header-menu__top button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  background: white;
  color: #243b56;
}
.header-menu__top button:hover {
  background: #edf3f8;
}
.header-menu__brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin: 26px 0;
}
.header-menu__brand img {
  width: 208px;
  max-width: 100%;
  height: auto;
}
.header-menu__nav {
  display: grid;
  gap: 8px;
}
.header-menu__nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #243b56;
  font-size: 15px;
  font-weight: 650;
}
.header-menu__nav a > svg:first-child {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  color: #3b64a7;
}
.header-menu__nav a > svg:last-child {
  margin-left: auto;
  color: #7894ad;
}
.header-menu__nav a > span {
  min-width: 0;
}
.header-menu__nav a:hover,
.header-menu__nav a[aria-current] {
  border-color: #d7e1eb;
  background: #f2f6fa;
}
.header-menu__nav small {
  display: block;
  margin-top: 5px;
  color: #56677d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.header-menu__language {
  margin: 26px 0;
  padding-top: 24px;
  border-top: 1px solid #d7e1eb;
}
.header-menu__language label {
  display: block;
  margin-bottom: 10px;
  color: #56677d;
  font-size: 12px;
  font-weight: 600;
}
.header-menu__language > div {
  position: relative;
}
.header-menu__language svg {
  position: absolute;
  left: 14px;
  top: 13px;
  pointer-events: none;
  color: #7894ad;
}
.header-menu__language select {
  width: 100%;
  min-height: 46px;
  padding: 10px 36px 10px 44px;
  border: 1px solid #c4d3e2;
  border-radius: 10px;
  background: #fff;
  color: #243b56;
  font-size: 13px;
}
.header-menu__bottom {
  margin-top: auto;
  padding-top: 16px;
}
.header-menu__username {
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #56677d;
  font-size: 13px;
  white-space: nowrap;
}
.header-menu__auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.header-menu__reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 16px;
  color: #56677d;
  font-size: 12px;
}
.header-menu__reviews:hover {
  color: #243b56;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@keyframes header-menu-enter {
  from {
    transform: translateX(20px);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 1200px) {
  .site-header__inner {
    gap: 16px;
  }
  .site-header__brand img {
    width: 196px;
  }
  .site-header__actions {
    gap: 10px;
  }
  .site-header__nav a {
    padding-inline: 10px;
  }
}
@media (max-width: 1100px) {
  #main [id] {
    scroll-margin-top: 100px;
  }
  .site-header__inner {
    min-height: 80px;
    justify-content: space-between;
  }
  .site-header__nav,
  .site-header__actions {
    display: none;
  }
  .header-menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 600px) {
  #main [id] {
    scroll-margin-top: 92px;
  }
  .site-header__inner {
    min-height: 72px;
  }
  .site-header__brand img {
    width: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-menu[open] {
    animation: none;
  }
  .header-button {
    transition: none;
  }
}
