.vc-header {
  position: relative;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(16px);
  transition: background var(--transition), box-shadow var(--transition);
}
.vc-header.is-scrolled {
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
.vc-header__inner {
  position: relative;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.vc-header__brand { display: inline-flex; align-items: center; text-decoration: none; }
.vc-header__logo { height: 62px; width: auto; max-width: 175px; object-fit: contain; }
.vc-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.vc-nav__list,
.vc-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vc-nav__list { display: flex; align-items: center; gap: 4px; }
.vc-nav__item { position: relative; }
.vc-nav__item--dropdown { position: static; }
.vc-nav__row {
  display: flex;
  align-items: center;
  border-radius: 12px;
  transition: background var(--transition);
}
.vc-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 11px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.vc-nav__row > .vc-nav__link { padding-right: 5px; border-radius: 12px 4px 4px 12px; }
.vc-nav__link[aria-current="page"] { color: #fff; background: rgba(255, 36, 52, .13); }
.vc-nav__item > .vc-nav__link:hover,
.vc-nav__row:hover,
.vc-nav__item.is-open > .vc-nav__row {
  background: rgba(255, 255, 255, 0.06);
}
.vc-nav__item > .vc-nav__link:hover,
.vc-nav__row:hover > .vc-nav__link,
.vc-nav__item.is-open > .vc-nav__row > .vc-nav__link { color: #fff; }
.vc-nav__submenu-toggle,
.vc-submenu__toggle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.vc-nav__submenu-toggle:hover,
.vc-submenu__toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.vc-nav__chevron {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition), margin var(--transition);
}
[data-submenu-toggle][aria-expanded="true"] .vc-nav__chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}
.vc-submenu[hidden] { display: none !important; }
.vc-submenu--categories {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  width: min(390px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(9, 9, 9, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}
.vc-submenu--categories::-webkit-scrollbar { width: 8px; }
.vc-submenu--categories::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.vc-submenu__item + .vc-submenu__item { margin-top: 2px; }
.vc-submenu__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border-radius: 12px;
  transition: background var(--transition);
}
.vc-submenu__item:not(.vc-submenu__item--dropdown) .vc-submenu__row { grid-template-columns: 1fr; }
.vc-submenu__row:hover,
.vc-submenu__item.is-open > .vc-submenu__row { background: rgba(255, 255, 255, 0.06); }
.vc-submenu__link {
  min-width: 0;
  padding: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color var(--transition);
}
.vc-submenu__row:hover > .vc-submenu__link,
.vc-submenu__item.is-open > .vc-submenu__row > .vc-submenu__link { color: #fff; }
.vc-submenu__toggle { width: 42px; height: 42px; }
.vc-submenu--services { padding: 1px 8px 8px 15px; }
.vc-submenu--services li + li { margin-top: 1px; }
.vc-submenu--services a {
  display: block;
  padding: 9px 12px 9px 16px;
  border-left: 1px solid rgba(255, 36, 52, 0.38);
  border-radius: 0 10px 10px 0;
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.vc-submenu--services a:hover {
  border-left-color: var(--accent);
  background: rgba(255, 36, 52, 0.08);
  color: #fff;
}
.vc-submenu__empty { padding: 14px; color: var(--text-muted); font-size: 0.84rem; }
.vc-header__actions { display: flex; align-items: center; gap: 10px; }
.vc-btn--menu { display: none; }
.vc-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.vc-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--accent);
  transition: var(--transition);
}
.vc-menu-toggle span + span { margin-top: 5px; }
.vc-menu-backdrop { display: none; }

.vc-nav__mobile-head { display: none; }
.vc-nav__mobile-brand { display: inline-flex; align-items: center; text-decoration: none; }
.vc-nav__mobile-brand img { width: auto; height: 52px; max-width: 150px; object-fit: contain; }
.vc-nav__close {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
}
.vc-nav__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}
.vc-nav__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.vc-nav__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* =========================
   MEGA MENU - BOX CAR
========================= */
.vc-mega-menu[hidden] {
  display: none !important;
}

.vc-mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 60;
  width: min(1040px, calc(100vw - 32px));
  max-height: min(72vh, 620px);
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 8, 8, 0.98);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 36, 52, 0.035) inset;
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.vc-mega-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 36, 52, 0.72), transparent);
}

.vc-mega-menu::-webkit-scrollbar {
  width: 8px;
}

.vc-mega-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.vc-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vc-mega-menu__group {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.vc-mega-menu__group:hover {
  border-color: rgba(255, 36, 52, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.vc-mega-menu__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.vc-mega-menu__category-name {
  max-width: 16ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.vc-mega-menu__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 36, 52, 0.11);
  color: #ff7b85;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.vc-mega-menu__category:hover .vc-mega-menu__category-name {
  color: var(--accent);
}

.vc-mega-menu__services {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
}

.vc-mega-menu__services a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 24px 7px 10px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.67);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  transition:
    color var(--transition),
    background var(--transition),
    padding-left var(--transition);
}

.vc-mega-menu__services a::after {
  content: "›";
  position: absolute;
  right: 10px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 1rem;
  line-height: 1;
  transition:
    color var(--transition),
    transform var(--transition);
}

.vc-mega-menu__services a:hover,
.vc-mega-menu__services a:focus-visible {
  padding-left: 13px;
  background: rgba(255, 36, 52, 0.075);
  color: #fff;
}

.vc-mega-menu__services a:hover::after,
.vc-mega-menu__services a:focus-visible::after {
  color: var(--accent);
  transform: translateX(2px);
}

.vc-mega-menu__empty {
  margin: 0;
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 1100px) and (min-width: 992px) {
  .vc-mega-menu {
    width: min(900px, calc(100vw - 28px));
  }

  .vc-mega-menu__grid {
    gap: 10px;
  }

  .vc-mega-menu__group {
    padding: 13px;
  }

  .vc-mega-menu__category-name {
    font-size: 0.96rem;
  }

  .vc-mega-menu__services a {
    font-size: 0.74rem;
  }
}

@media (max-width: 991px) {
  .vc-nav__item--dropdown {
    position: relative;
  }

  .vc-mega-menu {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 6px;
    padding: 10px;
    overflow: visible;
    border-radius: 14px;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.035);
  }

  .vc-mega-menu::before {
    display: none;
  }

  .vc-mega-menu__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vc-mega-menu__group {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .vc-mega-menu__group:hover {
    transform: none;
  }

  .vc-mega-menu__category {
    min-height: 44px;
    margin-bottom: 8px;
    padding-bottom: 9px;
  }

  .vc-mega-menu__category-name {
    max-width: none;
    font-size: 0.96rem;
  }

  .vc-mega-menu__services {
    gap: 2px;
  }

  .vc-mega-menu__services a {
    min-height: 44px;
    padding: 8px 24px 8px 8px;
    font-size: 0.8rem;
  }
}
