/* ═══════════════════════════════════════════════════════════════
   HEADER V2 — DARK PREMIUM
   ═══════════════════════════════════════════════════════════════ */
:root {
  --hv2-bg:      #1a1e25;
  --hv2-bg-2:    #12151b;
  --hv2-accent:  #f4ce47;
  --hv2-border:  rgba(255,255,255,0.08);
  --hv2-text:    rgba(255,255,255,0.60);
  --hv2-hover:   #fff;
}

/* ── Utility top bar ───────────────────────────────────── */
.hv2-top,
.hv2-top.desktop-only {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e5e7eb;
  /* локальные токены: тёмный хедер ниже по-прежнему из :root */
  --hv2-text: #5f6674;
  --hv2-hover: #111827;
  --hv2-border: #e5e7eb;
  position: relative;
  z-index: 7100;
}
.hv2-top__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; gap: 24px;
  background: #ffffff;
}
.hv2-top__left  { display: flex; align-items: center; gap: 20px; }
.hv2-top__right { display: flex; align-items: center; gap: 16px; }
.hv2-top__item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--hv2-text); white-space: nowrap;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; transition: color .15s;
}
.hv2-top__item i { font-size: 11px; color: var(--hv2-accent); }
.hv2-top__item a, .hv2-top__item:hover { color: var(--hv2-hover); }
.hv2-top__item a { text-decoration: none; transition: color .15s; }
.hv2-top__item a:hover { color: var(--hv2-hover); }
.hv2-top__item .fa-chevron-down { font-size: 9px; color: var(--hv2-text); }
.hv2-top__sep { width: 1px; height: 16px; background: var(--hv2-border); }

/* Top nav links */
.hv2-top__nav { display: flex; align-items: center; gap: 0; }
.hv2-top__nav-link {
  font-size: 12px; font-weight: 500;
  color: var(--hv2-text); text-decoration: none;
  padding: 0 12px; height: 34px; display: inline-flex; align-items: center; gap: 4px;
  border-right: 1px solid var(--hv2-border);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.hv2-top__nav-link:first-child { border-left: 1px solid var(--hv2-border); }
.hv2-top__nav-link:hover { color: var(--hv2-hover); background: #f0f2f5; }
.hv2-top__nav-drop { position: relative; }
.hv2-top__nav-drop > .hv2-top__nav-link { border-right: 1px solid var(--hv2-border); }
.hv2-top__nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 2px solid var(--hv2-accent);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17,24,39,0.16);
  z-index: 7300; padding: 6px 0;
}
.hv2-top__nav-drop:hover .hv2-top__nav-dropdown { display: block; }
.hv2-top__nav-dropdown a {
  display: block; padding: 8px 16px;
  font-size: 13px; color: #4b5563;
  text-decoration: none; transition: color .12s, background .12s;
}
.hv2-top__nav-dropdown a:hover { color: #111827; background: #fffbeb; }

.hv2-top__msg {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--hv2-text); text-decoration: none; transition: color .15s;
}
.hv2-top__msg:hover { color: var(--hv2-hover); }
.hv2-top__msg--wa i { color: #25d366; }
.hv2-top__msg--tg i { color: #0088cc; }
.hv2-top__msg--max img {
  width: 13px;
  height: 13px;
  display: block;
}

/* ── Main header ──────────────────────────────────────── */
.hv2-main {
  background: var(--hv2-bg);
  box-shadow: none;
  position: sticky; top: 0; z-index: 7000;
  font-family: Inter, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}
.hv2-main__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center;
  height: 60px; gap: 24px;
  width: 100%;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
}

/* Logo */
.hv2-main__logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.hv2-main__logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }

/* Catalog btn */
.hv2-main__catalog-wrap { position: relative; flex-shrink: 0; }
.hv2-main__catalog-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; height: 40px;
  background: var(--hv2-accent); color: #1a1e25;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background .2s;
  border-radius: 8px !important;
}
.hv2-main__catalog-btn:hover { background: #ffe066; }
.hv2-main__catalog-btn i { font-size: 14px; }

/* Search */
.hv2-main__search { flex: 1; position: relative; }
.hv2-main__search-inner { display: flex; align-items: center; }
.hv2-main__search-input {
  width: 100%;
  padding: 10px 48px 10px 16px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s, background .2s;
  outline: none;
}
.hv2-main__search-input::placeholder { color: rgba(255,255,255,0.35); }
.hv2-main__search-input:focus { border-color: var(--hv2-accent); background: rgba(255,255,255,0.10); }
.hv2-main__search-btn {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 46px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 15px; cursor: pointer; transition: color .15s;
}
.hv2-main__search-btn:hover { color: var(--hv2-accent); }
.hv2-main__search .search-autocomplete {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
}

/* Phone block */
.hv2-main__phone-block { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.hv2-main__phone {
  font-size: 17px; font-weight: 800; color: #fff;
  text-decoration: none; white-space: nowrap; line-height: 1;
  transition: color .15s;
}
.hv2-main__phone:hover { color: var(--hv2-accent); }
.hv2-main__phone-sub { font-size: 11px; color: rgba(255,255,255,0.38); }

/* Callback btn */
.hv2-main__callback {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 16px; height: 40px; flex-shrink: 0;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s;
  font-family: inherit;
}
.hv2-main__callback:hover { border-color: var(--hv2-accent); color: var(--hv2-accent); }
.hv2-main__callback i { font-size: 13px; }

/* Cart */
.hv2-main__cart {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; width: 40px; height: 40px; flex-shrink: 0;
  color: rgba(255,255,255,0.55); text-decoration: none;
  border: none;
  font-size: 17px; transition: color .15s, border-color .15s;
}
.hv2-main__cart:hover { color: var(--hv2-accent); }
.hv2-main__cart,
.hv2-main__cart:hover,
.hv2-main__cart:focus,
.hv2-main__cart:focus-visible,
.hv2-main__cart:active {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}
.hv2-main__cart .cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--hv2-accent); color: #1a1e25;
  font-size: 10px; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ── Category nav ─────────────────────────────────────── */
.hv2-catnav {
  background: #ffffff;
  border-top: none;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
  height: 35px;
  overflow: visible;
}
.hv2-catnav__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 0;
  overflow: visible;
  height: 100%;
}
.hv2-catnav__item-wrap { position: relative; }
.hv2-catnav__link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: #4b5563;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #e5e7eb;
  transition: color .15s, background .15s;
}
.hv2-catnav__item-wrap:first-child .hv2-catnav__link { border-left: 1px solid #e5e7eb; }
.hv2-catnav__link:hover { color: #111827; background: #f3f4f6; }
.hv2-catnav__item-wrap:hover .hv2-catnav__link { color: #111827; background: #f3f4f6; }

/* Dropdown */
.hv2-catnav__dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 220px; background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17,24,39,0.16);
  z-index: 7200; padding: 6px 0;
}
.hv2-catnav__item-wrap:hover .hv2-catnav__dropdown { display: block; }
.hv2-catnav__dropdown-item {
  display: block; padding: 8px 18px;
  font-size: 13px; color: #4b5563;
  text-decoration: none; transition: color .12s, background .12s;
}
.hv2-catnav__dropdown-item:hover { color: #111827; background: #fffbeb; }
.hv2-catnav__dropdown-more {
  display: block; padding: 8px 18px;
  font-size: 12px; font-weight: 700; color: var(--hv2-accent);
  text-decoration: none; border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}

.hv2-catnav__biz {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280; text-decoration: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  transition: color .15s, background .15s;
}
.hv2-catnav__biz:hover { color: #111827; background: #f3f4f6; }

/* ── Override megamenu styles when inside dark header ── */
.hv2-main__catalog-wrap .catalog-mega-menu {
  top: 100%; left: 0;
  background: #1e2330;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--hv2-accent);
  box-shadow: 0 12px 36px rgba(0,0,0,.6);
}

/* ── MOBILE header ─────────────────────────────────────── */
.hv2-mobile-bar {
  display: none;
  background: var(--hv2-bg);
  border-bottom: 1px solid var(--hv2-border);
  font-family: Inter, sans-serif;
}
.hv2-mobile-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 10px;
}
.hv2-mobile-bar__logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.hv2-mobile-bar__right { display: flex; align-items: center; gap: 6px; }
.hv2-mobile-bar__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: none; color: rgba(255,255,255,0.7);
  font-size: 16px; text-decoration: none; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.hv2-mobile-bar__btn:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.hv2-mobile-bar__callback {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; box-sizing: border-box;
  background: var(--hv2-accent); color: #1a1e25;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  border: none; cursor: pointer; font-family: inherit;
}

@media (max-width: 1100px) {
  .hv2-main__phone-sub { display: none; }
}
@media (max-width: 991px) {
  .hv2-top { display: none; }
  .hv2-main { display: none; }
  .hv2-catnav { display: none; }
  .hv2-mobile-bar { display: block; }
}

/* Mobile menu — в тон hv2-mobile-bar */
.mobile-menu__header {
  background: var(--hv2-bg);
  border-bottom: 1px solid var(--hv2-border);
  padding: 10px 16px;
}
.mobile-menu__close {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.mobile-menu__close:hover {
  background: rgba(255,255,255,0.15);
}
.mobile-menu__social-link--max img {
  display: block;
  width: 22px;
  height: 22px;
}
