.viapol-header {
  position: absolute;
  top: 64px;
  z-index: 1000;
  width: 100%;
  background: transparent;
}

.viapol-header-mobile {
  position: absolute;
  top: 16px;
  z-index: 1000;
  width: 100%;
  background: transparent;
}

.viapol-header__nav {
  display: flex;
  justify-content: center;
}

.viapol-header__menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.viapol-header__menu_div {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  flex: 1;
}

.align-header-content-right {
  justify-content: flex-end;
}

.align-header-content-left {
  justify-content: flex-start;
}

.viapol-header__menu-item,
.viapol-header__brand-item {
  list-style: none;
  position: relative;
}

.viapol-header__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.viapol-header__logo {
  display: block;
  max-height: 80px;
  width: auto;
}

.viapol-header__menu-link {
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease;
  white-space: nowrap;
  font-family: "Sora", sans-serif;
  background-image: linear-gradient(#fff, #fff);
  background-size: 0% 0.1em;
  background-position-y: 100%;
  background-position-x: 50%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease-in-out;
}

.viapol-header__menu-link:hover {
  color: #f4f4f4;
  background-size: 100% 0.1em;
}

.viapol-header__menu-link:focus,
.viapol-header__menu-link:active {
  background-size: 100% 0.1em;
}

.viapol-header__menu-link.viapol-header__menu-button {
  background-color: var(--header-button-bg, transparent);
  padding: 8px 28px;
  color: var(--header-button-text, #fff);
  border: 1px solid var(--header-button-border, transparent);
  border-radius: 100px;
  margin: 0px 8px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.viapol-header__menu-button:focus,
.viapol-header__menu-button:active,
.viapol-header__menu-button:hover {
  background-size: 0% 0.1em;
  background-color: #003ea2;
  color: #fff;
}

.viapol-header__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.viapol-header__menu-item--has-dropdown:hover .viapol-header__caret {
  transform: rotate(180deg);
}

.viapol-header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.viapol-header__menu-item--has-dropdown:hover .viapol-header__dropdown,
.viapol-header__menu-item--has-dropdown:focus-within .viapol-header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.viapol-header__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(31, 40, 55, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.viapol-header__dropdown-item {
  margin: 0;
  padding: 0;
}

.viapol-header__dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 16px);
  margin: 0 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: #454b59;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 20px;
  background-color: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.viapol-header__dropdown-link svg,
.viapol-header__dropdown-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.viapol-header__dropdown-link svg * {
  stroke: #63c14d;
  fill: transparent;
}

.viapol-header__dropdown-link:hover,
.viapol-header__dropdown-link:focus {
  background-color: #1636b7;
  color: #63c14d;
  box-shadow: inset 0 0 0 2px rgba(99, 193, 77, 0.45);
}

.viapol-header__dropdown-link:hover svg *,
.viapol-header__dropdown-link:focus svg * {
  stroke: #63c14d;
}

@media (max-width: 991.98px) {
  .viapol-header {
    display: none;
  }
}
