:root {
  --header-bg: #071827;
  --header-height: 72px;
  --header-mobile-height: 64px;
  --header-max-width: 1440px;
  --header-padding: 32px;
  --header-nav-gap: 36px;
  --header-cyan: #20c4df;
}

html {
  scrollbar-gutter: stable;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--header-bg);
  color: #fff;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-header__inner {
  display: grid;
  width: 100%;
  max-width: var(--header-max-width);
  height: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 auto;
  padding: 0 var(--header-padding);
}

.site-header__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__mark {
  display: flex;
  width: 88px;
  height: 34px;
  flex: 0 0 88px;
  align-items: center;
}

.site-header__mark img {
  display: block;
  width: 88px;
  height: auto;
  object-fit: contain;
}

.site-header__brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.site-header__brand-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.site-header__brand-short {
  display: none;
}

.site-header__brand-copy small {
  color: #8ea2b5;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header__nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-self: center;
  gap: var(--header-nav-gap);
}

.site-header__nav-link {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: #d5dee7;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-header__nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--header-cyan);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.site-header__nav-link:hover {
  color: #fff;
}

.site-header__nav-link.is-active,
.site-header__nav-link[aria-current="page"] {
  color: #7fe3f6;
}

.site-header__nav-link.is-active::after,
.site-header__nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.site-header .language-switch {
  display: inline-flex;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.site-header .language-button {
  display: inline-flex;
  min-width: 44px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.site-header .language-button[aria-pressed="true"] {
  background: #18a0b8;
  color: #fff;
}

.site-header__menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.site-header__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  content: "";
}

.site-header__menu-icon {
  position: relative;
}

.site-header__menu-icon::before {
  position: absolute;
  top: -6px;
}

.site-header__menu-icon::after {
  position: absolute;
  top: 6px;
}

.site-header__mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--header-bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.site-header__mobile-menu.hidden {
  display: none;
}

.site-header__mobile-inner {
  display: grid;
  width: 100%;
  max-width: var(--header-max-width);
  gap: 4px;
  margin: 0 auto;
  padding: 12px 20px 18px;
}

.site-header__mobile-link {
  border-radius: 4px;
  padding: 10px 12px;
  color: #d5dee7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.site-header__mobile-link:hover,
.site-header__mobile-link.is-active,
.site-header__mobile-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #7fe3f6;
}

.site-header__mobile-language {
  margin-top: 8px;
  justify-self: start;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer-brand__mark {
  display: flex;
  width: 100px;
  height: 38px;
  flex: 0 0 100px;
  align-items: center;
}

.site-footer-brand__mark img {
  display: block;
  width: 100px;
  height: auto;
  object-fit: contain;
}

.site-footer-brand__name {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 1100px) and (max-width: 1279px) {
  .site-header__inner {
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-header__nav {
    gap: 24px;
  }

  .site-header__brand-copy small {
    display: none;
  }
}

@media (max-width: 1099px) {
  .site-header {
    height: var(--header-mobile-height);
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-header__nav,
  .site-header__actions > .language-switch {
    display: none;
  }

  .site-header__actions {
    grid-column: 2;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 639px) {
  .site-header__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header__brand-copy strong {
    font-size: 15px;
  }

  .site-header__brand-full {
    display: none;
  }

  .site-header__brand-short {
    display: inline;
  }

  .site-header__brand-copy small {
    display: none;
  }

  .site-header__mark {
    width: 78px;
    height: 30px;
    flex-basis: 78px;
  }

  .site-header__mark img {
    width: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__nav-link {
    transition: none;
  }
}
