/* =========================================
   Шапка – прозрачная, не прилипает
   ========================================= */
.header {
  position: relative;
  background: transparent;
  height: 124px;
  display: flex;
  align-items: center;
  z-index: 10;                /* поверх фона, но под меню */
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Логотип */
.logo { display: flex; align-items: center; }
.logo__img {
  width: 140px;
  height: 30px;
  display: block;
}

/* Десктопное меню */
.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav__link {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.2s;
}
.nav__link:hover { color: #FFCD02; }

/* Кнопки */
.header__actions { display: flex; gap: 12px; }
.btn {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none; 
}
.btn--outline {
  width: 193px; height: 40px;
  background: linear-gradient(180deg, #9142FF 0%, #3F0294 100%);
  color: #fff;
}
.btn--outline:hover { opacity: 0.9; }
.btn--primary {
  width: 165px; height: 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, #999999 100%);
  color: #1C1C1C;
}
.btn--primary:hover { opacity: 0.9; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.burger__line {
  width: 24px; height: 2px;
  background: #ffffff;
  transition: 0.3s;
}
.burger.active .burger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active .burger__line:nth-child(2) { opacity: 0; }
.burger.active .burger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   Мобильное меню (выезжает справа)
   ========================================= */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #1a0030;
  padding: 80px 30px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;              /* поверх всего */
  overflow-y: auto;
}
.mobile-nav--open { transform: translateX(0); }
.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav__link {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
}

/* Оверлей */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;               /* под меню */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .nav__link {
    font-size: 12px;          /* уменьшаем текст меню */
  }
  .nav__list {
    gap: 16px;                /* немного уменьшаем расстояние между пунктами */
  }
}

/* На десктопе скрываем мобильное меню и оверлей */
@media (min-width: 769px) {
  .mobile-nav { display: none; }
  .mobile-overlay { display: none; }
}

/* На мобильных скрываем десктопное меню и кнопки */
@media (max-width: 768px) {
  .nav { display: none; }
  .header__actions { display: none; }
  .burger { display: flex; }
}