.top-link {
  line-height: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.top-link.button_primary {
  padding-right: 0;
  @media (min-width: 1900px) {
    padding-right: 20px;
  }
}

.navbar__item:nth-child(1) .top-link.button_primary {
  padding-right: 20px;
}
.top-link:hover {
  color: var(--color-accent);
}

.top-link.js-drop-menu::after {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 15.5L8 10.5H17L12.5 15.5Z' fill='white'/%3E%3C/svg%3E%0A");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.top-link.js-drop-menu:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 15.5L8 10.5H17L12.5 15.5Z' fill='%2331C4B4'/%3E%3C/svg%3E%0A");
}

.top-link.js-drop-menu.active::after {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 9L17 15L7 15L12 9Z' fill='%2331C4B4'/%3E%3C/svg%3E%0A");
}

.top-link.active {
  color: var(--color-accent);
}

.top-link_special {
  padding: 13px 12px 13px 20px;
  border-radius: var(--b-radius);
}

.top-link.top-link_special::after,
.top-link.top-link_special.active::after,
.top-link.top-link_special:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 15.5L8 10.5H17L12.5 15.5Z' fill='%230a0f16'/%3E%3C/svg%3E%0A");
}

.drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(37, 50, 71, 0.9);
  -webkit-backdrop-filter: blur(15.5px);
  backdrop-filter: blur(15.5px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-radius: var(--b-radius);
}

.drop-menu.active {
  z-index: 1000;
  pointer-events: auto;
}

.drop-menu__container {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  border-top: 1px solid rgba(176, 183, 201, 0.4);
  padding: 30px 20px 60px 20px;
  border-radius: var(--b-radius);
}

.drop-menu.active,
.drop-menu.active .drop-menu__container {
  opacity: 1;
  visibility: visible;
}

.drop-menu__title {
  position: absolute;
  left: 20px;
  top: 30px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28571;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 19px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.drop-menu.active .drop-menu__title {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1001;
}

.drop-menu__title::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.drop-menu__list-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px 30px;
}

.drop-menu__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.navbar__item:has(.drop-menu.active) .top-link.js-drop-menu::after {
  transform: rotate(180deg);
}

.drop-menu__list a {
  color: white;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: all 0.3s ease;
}

.drop-menu__list a:hover {
  color: var(--color-text-link);
  text-decoration-color: var(--color-text-link);
}

.drop-menu__item:has(.drop-menu__link_parent) {
  padding-bottom: 8px;
}

body:has(.theme-light) {
  .top-link {
    color: var(--color-primary);
  }
  .top-link::after {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 15.5L8 10.5H17L12.5 15.5Z' fill='%230a0f16'/%3E%3C/svg%3E%0A");
  }
  .top-link.js-drop-menu:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 15.5L8 10.5H17L12.5 15.5Z' fill='%2331C4B4'/%3E%3C/svg%3E%0A");
  }
  .top-link.top-link_special:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 15.5L8 10.5H17L12.5 15.5Z' fill='%230a0f16'/%3E%3C/svg%3E%0A");
  }
  .drop-menu {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(15.5px);
    backdrop-filter: blur(15.5px);
  }
  .drop-menu__list a {
    color: var(--color-primary);
  }
  .drop-menu__list a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
  }
  .drop-menu__title {
    color: var(--color-primary);
  }
}

.bx-touch .top-link.top-link_special::after,
.bx-touch .top-link.js-drop-menu::after {
  display: none;
}
