/* ======================================================
   СТИЛИЗАЦИЯ МЕНЮ HELIX ULTIMATE В СТИЛЕ КАРТОЧКИ-КАПСУЛЫ
   ====================================================== */

/* 1. Делаем общую шапку чистой и белой */
#sp-header {
  background: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  padding: 12px 0 !important;
}

/* 2. Контейнер самого меню превращаем в белую "капсулу" */
.sp-megamenu-wrapper {
  background: #f8fafc !important;
  border-radius: 30px !important;
  padding: 4px 8px !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-block !important;
}

/* 3. Список пунктов */
.sp-megamenu-parent {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 4. Обычные пункты меню */
.sp-megamenu-parent > li > a, 
.sp-megamenu-parent > li > span {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

/* Эффект наведения */
.sp-megamenu-parent > li:hover > a {
  color: #00B2E3 !important;
  background-color: #ffffff !important;
}

/* 5. Активный пункт "Главная" */
.sp-megamenu-parent > li.active > a {
  background: #0066B3 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* 6. Золотая кнопка "Мастерам" */
.sp-megamenu-parent > li > a[href*="masteram"] {
  background: #E9C46A !important;
  color: #0066B3 !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  margin-left: 4px !important;
}

.sp-megamenu-parent > li > a[href*="masteram"]:hover {
  background: #d4a359 !important;
  color: #ffffff !important;
}


/* ============================================================
   СКРЫВАЕМ СИСТЕМНЫЙ ЛОГОТИП HELIX НА ДЕСКТОПЕ (ПК)
   ============================================================ */

@media screen and (min-width: 992px) {
  /* Скрываем только системную текстовую/картинную ссылку логотипа Helix */
  #sp-header .logo,
  #sp-header a.logo-text,
  #sp-header .sp-module,
  #sp-header-sticky-wrapper #sp-header {
    display: none !important;
  }
  
  /* Убираем ненужные верхние и нижние отступы у полосы, если она остаётся пустой */
  #sp-header, 
  #sp-header-sticky-wrapper {
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
  }
}

/* ============================================================
   НА МОБИЛЬНЫХ (до 991px)
   ============================================================ */
@media screen and (max-width: 991px) {
  /* Возвращаем высоту и делаем шапку белой под мобильный гамбургер */
  #sp-header, 
  #sp-header-sticky-wrapper {
    min-height: 50px !important;
    height: auto !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  
  /* Скрываем текстовый логотип и на мобилках, если там выведен наш кастомный */
  #sp-header a.logo-text {
    display: none !important;
  }
}