:root {
  --site-header-h: 80px;
}

.header {
  height: var(--site-header-h);
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 0 40px;
  display: flex;
  align-items: center;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  background: transparent;
  border-bottom: 0 solid transparent;
  box-shadow: none;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.header.scrolled,
.header.menu-open {
  background: rgba(7, 9, 13, .96);
  border-bottom: 4px solid #0047ff;
  box-shadow: 0 5px 22px rgba(0, 71, 255, .25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  color: #fff;
  font: 28px/1 'Archivo Black', sans-serif;
  letter-spacing: -1.5px;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}

.brand span { color: #ffd600; }

.nav {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  transition: none;
}

.nav a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px #000;
  -webkit-text-stroke: 0;
  transition: color .2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: #ffd600;
}

.nav .nav-cta {
  padding: 11px 22px;
  color: #fff;
  background: #ff2d2d;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 #fff;
}

.nav .nav-cta:hover,
.nav .nav-cta:focus-visible,
.nav .nav-cta[aria-current="page"] {
  color: #fff;
}

.menu {
  display: none;
  position: relative;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  color: #fff;
  background: #07090d;
  border: 3px solid #fff;
  box-shadow: 3px 3px 0 #0047ff;
  cursor: pointer;
}

.menu i {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.header.menu-open .menu i:first-child { transform: translateY(7px) rotate(45deg); }
.header.menu-open .menu i:nth-child(2) { opacity: 0; }
.header.menu-open .menu i:last-child { transform: translateY(-7px) rotate(-45deg); }

.header :focus-visible {
  outline: 3px solid #ffd600;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .nav { gap: 18px; }
}

@media (max-width: 640px) {
  :root { --site-header-h: 72px; }

  body.site-menu-open { overflow: hidden; }

  .header { padding: 0 16px; }
  .brand { font-size: 24px; }
  .menu { display: block; }

  .nav {
    position: fixed;
    top: var(--site-header-h);
    left: 12px;
    right: 12px;
    height: auto;
    margin: 0;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #07090d;
    border: 4px solid #0047ff;
    box-shadow: 8px 8px 0 #ffd600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
    text-shadow: none;
  }

  .nav .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }
}
