
.l-header__nav-item.has-submenu {
  position: relative;
}

.l-header__nav-item.has-submenu .l-header__nav-link {
  cursor: pointer;
}

.l-header__nav-item.has-submenu:hover .l-header__nav-link::after {
  transform: scale(1, 1);
  transform-origin: left top;
}

.l-header__submenu {
  position: absolute;
  top: 45px;
  left: 0;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 0;
  list-style: none;
  padding: 15px 15px;
}

.l-header__submenu::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  height: 25px;
  background: transparent;
  cursor: pointer;
}

.l-header__nav-item.has-submenu:hover .l-header__submenu {
  opacity: 1;
  visibility: visible;
}

.l-header__submenu-item + .l-header__submenu-item {
  margin-top: 10px;
}

.l-header__submenu-item:last-child {
  border-bottom: none;
}

.l-header__submenu-link {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.l-header__submenu-link:hover {
 opacity: 0.7;
}

.l-header__profile-submenu {
display: flex;
width: 100%;
gap: 25px;
margin-top: 2.5rem;
}

.l-header__profile-submenu-title {
  color: #fff;
  height: auto;
  font-size: 1.2rem;
  font-weight: 700;
}

.l-header__profile-submenu-link {
  color: #fff;
  height: auto;
  font-size: 1.2rem;
  font-weight: 400;
}