/* Mega menu: Оборудование / Комплекты — full-width panel under .top-menu
   Keep li position:relative (site default) so the red underline ::before
   stays under the hovered item, not the whole header. */
.top-menu ul.navbar-nav > li.menu-item--mega > a {
  position: relative;
}

.top-menu .ct-mega {
  position: fixed;
  left: 0;
  right: 0;
  top: 56px;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #0c0c0c;
  transform: translateY(-0.4rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.top-menu ul.navbar-nav > li.menu-item--mega:hover > .ct-mega,
.top-menu ul.navbar-nav > li.menu-item--mega:focus-within > .ct-mega {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-menu .ct-mega__inner {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 42px 16px 43px;
  box-sizing: border-box;
}

.top-menu .ct-mega-card {
  position: relative;
  flex: 1 1 0;
  max-width: 606px;
  aspect-ratio: 606 / 303;
  border-radius: 24px;
  overflow: hidden;
  background: #282828;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}

.top-menu .ct-mega-card:hover,
.top-menu .ct-mega-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(248, 38, 21, 0.22);
}

.top-menu .ct-mega-card:focus-visible {
  outline: 2px solid #f82615;
  outline-offset: 3px;
}

.top-menu .ct-mega-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-menu .ct-mega-card:hover .ct-mega-card__img,
.top-menu .ct-mega-card:focus-visible .ct-mega-card__img {
  transform: scale(1.04);
}

@media (max-width: 1199px) {
  .top-menu .ct-mega {
    display: none;
  }
}

@media (max-width: 700px) {
  .top-menu .ct-mega__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .top-menu .ct-mega-card {
    max-width: none;
  }
}
