/* ===== Neon Header — NOVA style ===== */

.site-header {
  position: relative;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(5, 7, 20, 0.96),
    rgba(5, 7, 20, 0.9),
    rgba(5, 7, 20, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(40, 224, 255, 0.38);
  box-shadow:
    0 1px 0 rgba(3, 9, 32, 0.9),
    0 18px 40px rgba(0, 0, 0, 0.8);
    
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Лого (изображение или текст) */
.logo {
  font: 900 22px/1 "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: #eaf6ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  background: linear-gradient(100deg, #ffffff, #28e0ff 40%, #ff4fa3 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(40, 224, 255, 0.7));
}

.logo span {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
  text-shadow: none;
}

/* ===== Десктоп-навигация ===== */

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a,
.header__nav > ul a {
  position: relative;
  color: rgba(230, 236, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  padding: 6px 4px;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease,
    transform 0.18s ease;
}

/* неоновая дымка позади текста */
.nav a::before,
.header__nav > ul a::before {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 999px;
  background: radial-gradient(
    140% 220% at 50% 0,
    rgba(40, 224, 255, 0.32),
    transparent 65%
  );
  opacity: 0;
  transform: translateY(6px);
  filter: blur(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: -1;
}

.nav a:hover,
.header__nav > ul a:hover {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(40, 224, 255, 0.9);
  transform: translateY(-1px);
}

.nav a:hover::before,
.header__nav > ul a:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Бургер-кнопка (мобилка) ===== */

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(40, 224, 255, 0.55);
  background: rgba(5, 8, 24, 0.9);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow:
    0 0 18px rgba(40, 224, 255, 0.7),
    0 12px 24px rgba(0, 0, 0, 0.7);
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #28e0ff, #9aa7ff, #ff4fa3);
  box-shadow: 0 0 10px rgba(40, 224, 255, 0.9);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.burger::before {
  top: 16px;
}

.burger::after {
  bottom: 16px;
}

.burger .icon-left {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: linear-gradient(90deg, #28e0ff, #9aa7ff, #ff4fa3);
  box-shadow: 0 0 10px rgba(40, 224, 255, 0.9);
  transition: all 0.3s ease;
}

.burger .icon-right {
  display: none;
}

.burger:hover {
  border-color: rgba(40, 224, 255, 0.9);
  background: rgba(8, 12, 38, 0.98);
  box-shadow:
    0 0 26px rgba(40, 224, 255, 0.9),
    0 12px 28px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

/* состояние «открыто» — крестик */

.burger.open {
  border-color: rgba(255, 79, 163, 0.9);
  background: rgba(7, 8, 20, 0.98);
}

.burger.open::before {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.burger.open::after {
  top: 50%;
  bottom: auto;
  transform: translateX(-50%) rotate(-45deg);
}

.burger.open .icon-left {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.mobile__menu {
  display: none;
}

/* ===== Основной header-layout ===== */

header,
.fadeInDown {
  animation-delay: 0.5s !important;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

header > a {
  max-width: 186px;
  z-index: 80;
}

/* Десктоп-меню */

.header__nav > a {
  display: none !important;
}

.header__nav > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  margin-inline: auto;
}

/* ===== Мобилка: off-canvas меню ===== */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  header {
    padding: 14px 0;
  }

  header > a:last-child {
    display: none;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background:
      radial-gradient(800px 800px at 20% 10%, rgba(40, 224, 255, 0.26), transparent 60%),
      radial-gradient(900px 900px at 80% 90%, rgba(154, 167, 255, 0.24), transparent 60%),
      rgba(3, 5, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 50;
    transform: translateX(-120%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    display: flex;
    flex-direction: column;
  }

  .header__nav > ul {
    margin-top: 80px;
    margin-left: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header__nav > ul a {
    font-size: 18px;
    color: #ffffff;
  }

  .header__nav > a {
    display: inline-block !important;
    margin: auto 24px 40px;
    max-width: 90%;
    text-align: center;
    color: #02030a !important;
    background: linear-gradient(100deg, #28e0ff, #9aa7ff 45%, #ff4fa3 90%);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.6),
      0 0 50px rgba(40, 224, 255, 0.45);
  }

  /* открытое состояние */
  .navOpen {
    transform: translateX(0%);
  }
}

/* ===== Доступность / мелочи ===== */

.header__nav > ul a:focus-visible,
.burger:focus-visible {
  outline: 2px solid #28e0ff;
  outline-offset: 4px;
}

.mobile__menu {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .burger,
  .burger * {
    transition: none !important;
  }
  .header__nav {
    transition: none !important;
  }
}
