
.site-header {
  position: relative;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at 0 0, rgba(71, 146, 255, 0.18), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(255, 124, 76, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(5, 7, 20, 0.96), rgba(3, 5, 16, 0.98));
  border-bottom: 1px solid rgba(132, 158, 255, 0.45);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(22, 30, 66, 0.9);
  display: flex;
  justify-content: center;
}

/* layout */

.site-header .container {
  max-width: 1180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  padding-inline: 1.5rem;
  gap: 18px;
}

/* ===========================
   LOGO (display + tag)
=========================== */

.logo {
  font-family: "Bebas Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-main-dg42, #f7f3ff);
  position: relative;
  z-index: 2000;
}

.logo span:first-child {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(
    120deg,
    var(--accent-alt-dg42, #4f9dff),
    var(--accent-main-dg42, #ff8755)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo span:last-child {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted-dg42, #9da7d3);
}

/* ===========================
   NAV DESKTOP
=========================== */

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header__nav > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* links */

.nav a,
.header__nav > ul a {
  position: relative;
  color: var(--text-muted-dg42, #9da7d3);
  text-decoration: none;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 6px 8px;
  text-transform: uppercase;
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

/* neon underline / soft pill */

.nav a::before,
.header__nav > ul a::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-alt-dg42, #4f9dff),
    var(--accent-main-dg42, #ff8755)
  );
  opacity: 0;
  transform-origin: center;
  transform: scaleX(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.header__nav > ul a:hover {
  color: var(--text-main-dg42, #f7f3ff);
  background: rgba(13, 22, 56, 0.9);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(79, 157, 255, 0.3);
  transform: translateY(-1px);
}

.nav a:hover::before,
.header__nav > ul a:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* ===========================
   BURGER BUTTON (mobile)
=========================== */

.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(79, 157, 255, 0.8);
  background: radial-gradient(circle at 0 0, rgba(79, 157, 255, 0.25), transparent 65%);
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

/* three lines */

.burger::before,
.burger::after,
.burger .icon-left {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-alt-dg42, #4f9dff);
  transition: all 0.22s ease;
}

.burger::before {
  top: 13px;
  transform: translateX(-50%);
}

.burger::after {
  bottom: 13px;
  transform: translateX(-50%);
}

.burger .icon-left {
  top: 50%;
  transform: translate(-50%, -50%);
}

/* hover */

.burger:hover {
  border-color: var(--accent-alt-dg42, #4f9dff);
  background: radial-gradient(
    circle at 30% 0,
    rgba(79, 157, 255, 0.4),
    transparent 70%
  );
  transform: translateY(-1px);
}

/* open -> cross in warm accent */

.burger.open {
  background: radial-gradient(
    circle at 30% 0,
    rgba(255, 135, 85, 0.5),
    transparent 70%
  );
  border-color: var(--accent-main-dg42, #ff8755);
}

.burger.open::before {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
  background: var(--accent-main-dg42, #ff8755);
}

.burger.open::after {
  top: 50%;
  bottom: auto;
  transform: translateX(-50%) rotate(-45deg);
  background: var(--accent-main-dg42, #ff8755);
}

.burger.open .icon-left {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

/* icon-right не используется */
.burger .icon-right {
  display: none;
}

/* ===========================
   MOBILE MENU
=========================== */

.mobile__menu {
  display: none;
}

/* off-canvas навигация */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .btn.btn--header {
    display: none;
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile__menu {
    display: block;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background:
      radial-gradient(
        circle at 0 0,
        rgba(79, 157, 255, 0.3),
        transparent 65%
      ),
      radial-gradient(
        circle at 100% 0,
        rgba(255, 135, 85, 0.32),
        transparent 65%
      ),
      linear-gradient(180deg, #050720 0%, #020312 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 50;
    transform: translateX(-120%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
  }

  .header__nav > ul {
    margin: 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    height: 100vh;
    list-style: none;
    padding: 96px 0 120px;
    overflow-y: auto;
    justify-content: center;
  }

  .header__nav > ul a {
    font-size: 16px;
    letter-spacing: 0.22em;
    padding-inline: 0;
    background: transparent;
  }

  .header__nav > ul a::before {
    left: 0;
    right: auto;
    width: 60px;
    bottom: -6px;
  }

  /* CTA in mobile menu */
  .header__nav > a {
    display: inline-block !important;
    margin: auto 24px 32px;
    max-width: 90%;
    text-align: center;
    color: #050814 !important;
    background: linear-gradient(
      120deg,
      var(--accent-alt-dg42, #4f9dff),
      var(--accent-main-dg42, #ff8755)
    );
    border-radius: 999px;
    padding: 12px 18px;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.95),
      0 0 26px rgba(255, 135, 85, 0.8);
  }

  .navOpen {
    transform: translateX(0%);
  }
}

/* ===========================
   ACCESSIBILITY & MOTION
=========================== */

.header__nav > ul a:focus-visible,
.burger:focus-visible {
  outline: 2px solid var(--accent-alt-dg42, #4f9dff);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .burger,
  .burger * {
    transition: none !important;
  }
  .header__nav {
    transition: none !important;
  }
}

/* ============================================
   HEADER CTA BUTTON — DoubleGGSubs
   Neon pill primary
============================================ */

.btn.btn--header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;

  background: linear-gradient(125deg, #ff8755, #ffb168);
  color: #14080b;

  border: 1px solid #ff9a63;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 28px rgba(255, 135, 85, 0.9);

  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease,
    background 0.14s ease;
}

/* hover */
.btn.btn--header:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 34px rgba(255, 155, 105, 1);
}

/* active */
.btn.btn--header:active {
  transform: translateY(0px);
  filter: brightness(0.96);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 20px rgba(255, 135, 85, 0.8);
}

/* focus */
.btn.btn--header:focus-visible {
  outline: 2px solid var(--accent-main-dg42, #ff8755);
  outline-offset: 3px;
}

/* safety duplicate for very small screens */
@media (max-width: 769px) {
  .nav {
    display: none;
  }
  .btn-primary-dg42 {
    display: none !important;
  }
}

