@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   FLOATING ISLAND HEADER (SOLID WHITE & SOLID BLACK - NO TRANSPARENCY)
   - Светлая тема (Monrich, Каталог, Корзина и др.): СПЛОШНОЙ БЕЛЫЙ остров (#ffffff)
   - Киберленд (index.html, item_cyber.html): СПЛОШНОЙ ЧЕРНЫЙ остров (#000000)
   - Полное отсутствие полупрозрачности (никакого просвечивания фона)
   - Высота фиксированная (64px), при скролле сужается только ширина
   - Без анимации увеличения корзины (движется только стрелка)
   ============================================================ */

/* Внешний фиксированный контейнер */
nav.harvey-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: auto !important;
  z-index: 10000 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 16px 12px 0 12px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── САМА ОСТРОВНАЯ КАПСУЛА: ПО УМОЛЧАНИЮ СПЛОШНОЙ БЕЛЫЙ (БЕЗ ПОЛУПРОЗРАЧНОСТИ) ── */
.harvey-header-inner {
  pointer-events: auto !important;
  position: relative !important;
  width: 100% !important;
  max-width: 1440px !important;
  height: 64px !important;        /* Фиксированная высота */
  border-radius: 14px !important; /* Мягкие скругленные углы */
  padding-left: 20px !important;
  padding-right: 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important; /* ЧИСТО БЕЛЫЙ СПЛОШНОЙ ФОН */
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1) !important;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease !important;
}

/* При пролистывании: сужается ТОЛЬКО ширина (высота строго 64px) */
nav.harvey-header.scrolled .harvey-header-inner {
  max-width: 1260px !important;
  height: 64px !important;
  box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.14) !important;
}

/* ── 1. ЛОГОТИП СЛЕВА ── */
.harvey-logo-wrap {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.harvey-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.harvey-logo:hover {
  opacity: 0.7 !important;
}

.logo_header {
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
}

nav.harvey-header .logo_header,
nav.harvey-header img.logo_header,
nav.harvey-header.transparent .logo_header,
nav.harvey-header.transparent img {
  filter: none !important;
  opacity: 1 !important;
}

.logo_header.logo-monrich {
  height: 24px !important;
  width: auto !important;
  max-width: 160px !important;
}

.logo_header.logo-cyber {
  height: 32px !important;
  width: auto !important;
  max-width: 140px !important;
  filter: none !important;
}

/* ── 2. НАВИГАЦИЯ СТРОГО ПО ЦЕНТРУ ── */
.harvey-nav-center {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
}

.harvey-nav-list {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.harvey-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  position: relative !important;
  cursor: pointer !important;
}

nav.harvey-header li::after,
nav.harvey-header li:hover::after,
nav.harvey-header a::after,
nav.harvey-header a:hover::after,
.harvey-nav-link::after,
.harvey-nav-link:hover::after,
.harvey-nav-link.active::after {
  display: none !important;
  content: none !important;
}

.harvey-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  padding: 0 16px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  color: #262626 !important;
  transition: color 0.18s ease !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.harvey-nav-link span {
  display: inline-block;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.harvey-nav-link:hover span {
  transform: translateY(-0.5px);
}

.harvey-nav-link:hover,
.harvey-nav-link.active {
  color: #000000 !important;
}

.harvey-nav-link.active {
  font-weight: 600 !important;
}

/* Скользящая линия-индикатор для светлой темы */
.nav-indicator-line {
  position: absolute;
  bottom: 0px;
  height: 2px;
  background-color: #000000 !important;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  width: auto;
  will-change: left, right, opacity;
  z-index: 10;
}

/* ── 3. ПРАВАЯ ГРУППА: 'КОНТАКТЫ' + 'КОРЗИНА' ── */
.harvey-actions-right {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 12px !important;
  margin: 0 !important;
}

.harvey-actions-desktop {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
}

nav.harvey-header a.cart,
nav.harvey-header .cart,
nav.harvey-header .harvey-btn-solid {
  margin: 0 !important;
  margin-right: 0 !important;
}

/* 'Контакты': чистая текстовая ссылка */
.harvey-btn-ghost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  border: none !important;
  background-color: transparent !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  color: #262626 !important;
  transition: color 0.15s ease !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.harvey-btn-ghost:hover {
  color: #000000 !important;
  background-color: transparent !important;
}

/* 'Корзина': сплошная кнопка (без масштабирования!) */
.harvey-btn-solid {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 6px !important;
  border: none !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  position: relative !important;
  cursor: pointer !important;
  transform: none !important;
}

.harvey-btn-solid:hover {
  background-color: #222222 !important;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.5) !important;
  transform: none !important;
}

nav.harvey-header a.cart:hover,
nav.harvey-header .cart:hover,
nav.harvey-header .harvey-btn-solid:hover {
  transform: none !important;
}

.harvey-btn-solid:hover .cart-badge {
  transform: none !important;
}

.harvey-btn-solid svg.btn-arrow {
  width: 15px;
  height: 15px;
  stroke: #ffffff !important;
  stroke-width: 2.2;
  transition: transform 0.22s ease-out !important;
}

/* При ховере движется ТОЛЬКО стрелочка */
.harvey-btn-solid:hover svg.btn-arrow {
  transform: translateX(4px) !important;
}

/* ── 4. МОБИЛЬНЫЙ БУРГЕР ── */
.harvey-burger-wrap {
  display: none;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.harvey-burger-btn,
.menu_burger {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  cursor: pointer;
  display: inline-flex !important;
  width: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  color: #000000 !important;
  transition: opacity 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

.burger-menu {
  display: none !important;
  position: fixed !important;
  top: 76px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 1440px !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18) !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.burger-menu.show {
  display: block !important;
}

.burger-menu ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
}

.burger-menu li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  list-style: none !important;
  list-style-type: none !important;
  text-align: left !important;
}

.burger-menu li:first-child,
.burger-menu li:last-child {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.burger-menu a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  color: #09090b !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.burger-menu li:last-child a {
  border-bottom: none !important;
}

.burger-menu a:hover,
.burger-menu a:active {
  color: #000000 !important;
  padding-left: 8px !important;
}

/* ============================================================
   КИБЕРЛЕНД: ЧЕРНЫЙ СПЛОШНОЙ ХЕДЕР (БЕЗ ПОЛУПРОЗРАЧНОСТИ)
   Страницы: index.html, item_cyber.html (.nav-dark)
   ============================================================ */
nav.harvey-header.nav-dark .harvey-header-inner {
  background-color: #000000 !important; /* СПЛОШНОЙ ЧЕРНЫЙ ФОН */
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.8) !important;
}

nav.harvey-header.nav-dark.scrolled .harvey-header-inner {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.95) !important;
}

nav.harvey-header.nav-dark .logo_header.logo-cyber {
  filter: none !important; /* оригинальный серебристый/белый логотип Киберленда */
}

nav.harvey-header.nav-dark .harvey-nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
}

nav.harvey-header.nav-dark .harvey-nav-link:hover,
nav.harvey-header.nav-dark .harvey-nav-link.active {
  color: #ffffff !important;
  font-weight: 600 !important;
}

nav.harvey-header.nav-dark .nav-indicator-line {
  background-color: #ffffff !important; /* чисто белая линия-индикатор */
}

nav.harvey-header.nav-dark .harvey-btn-ghost {
  color: rgba(255, 255, 255, 0.75) !important;
}

nav.harvey-header.nav-dark .harvey-btn-ghost:hover {
  color: #ffffff !important;
  background-color: transparent !important;
}

/* Белая кнопка 'Корзина' на черном хедере Киберленда */
nav.harvey-header.nav-dark .harvey-btn-solid {
  background-color: #ffffff !important;
  color: #000000 !important;
}

nav.harvey-header.nav-dark .harvey-btn-solid:hover {
  background-color: #f0f0f0 !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25) !important;
}

nav.harvey-header.nav-dark .harvey-btn-solid svg.btn-arrow {
  stroke: #000000 !important; /* черная стрелочка */
}

nav.harvey-header.nav-dark .harvey-burger-btn {
  color: #ffffff !important;
}

nav.harvey-header.nav-dark .burger-menu {
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

nav.harvey-header.nav-dark .burger-menu a {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ── АДАПТИВНОСТЬ ── */
@media (max-width: 960px) {
  nav.harvey-header {
    padding: 12px 8px 0 8px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .harvey-header-inner {
    height: 56px !important;
    padding-left: 14px !important;
    padding-right: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .harvey-nav-center {
    display: none !important;
  }
  .harvey-btn-ghost {
    display: none !important;
  }
  .harvey-burger-wrap {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .burger-menu {
    top: 76px !important;
  }
}
