:root {
  --site-header-bg: #071735;
  --site-header-height: 70px;
  --site-header-mobile-height: 124px;
}

.site-header {
  align-items: center;
  background: var(--site-header-bg);
  border-bottom: 1px solid rgba(116, 222, 255, 0.18);
  box-sizing: border-box;
  display: flex;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  gap: 24px;
  height: calc(var(--site-header-height) + env(safe-area-inset-top, 0px));
  justify-content: space-between;
  left: 0;
  line-height: 1.2;
  padding: env(safe-area-inset-top, 0px) clamp(22px, 5vw, 64px) 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 20;
}

.site-header .brand {
  align-items: center;
  color: #f4fbff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.site-header .brand:hover,
.site-header .brand:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.site-header .brand img {
  border: 1px solid rgba(116, 222, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(103, 230, 255, 0.18);
  display: block;
  flex: 0 0 auto;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.site-header .brand span {
  white-space: nowrap;
}

.site-header .nav-links {
  align-items: center;
  color: rgba(244, 251, 255, 0.74);
  display: flex;
  flex: 0 1 auto;
  font-size: 0.94rem;
  font-weight: 800;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
}

.site-header .nav-links a {
  color: inherit;
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav-links a:hover,
.site-header .nav-links a:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.novabeyond-ru-only {
  display: none;
}

body.sub_page {
  padding-top: calc(var(--site-header-height) + env(safe-area-inset-top, 0px));
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    height: calc(var(--site-header-mobile-height) + env(safe-area-inset-top, 0px));
    justify-content: center;
    padding: env(safe-area-inset-top, 0px) clamp(16px, 4vw, 28px) 0;
  }

  .site-header .nav-links {
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  body.sub_page {
    padding-top: calc(var(--site-header-mobile-height) + env(safe-area-inset-top, 0px));
  }
}
