.header {
  position: relative;
  z-index: 10;
  font-size: 16px;
}

.header__container {
  margin: 0 auto;
  padding: 15px 20px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  max-width: 1240px;
  position: relative;
}

.header__logo {
  max-width: 187px;
}

.header__logo img {
  min-width: 140px;
  width: 100%;
  max-width: 100%;
}

.header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-family: "Poppins SemiBold";
  font-weight: 600;
  color: #172a9a;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav-item:last-child {
  letter-spacing: 0.08em;
}

.header__nav-item svg {
 min-width: 22px; 
}

.header__nav-dropdown {
  position: relative;
  padding-right: 15px;
}

.header__dropdown-wrapper {
  padding-top: 15px;
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  z-index: 111;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.header__dropdown-list {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 10px;
  min-width: 300px;
}

.header__dropdown-item {
  font-family: "Poppins Regular";
  font-weight: 400;
  font-size: 16px;
  color: #172a9a;
  transition: background-color 0.2s ease;
  border-radius: 8px;
}

.header__dropdown-item a {
  padding: 8px 12px;
}

.header__nav-dropdown:hover .header__dropdown-wrapper {
  opacity: 1;
  visibility: visible;
}

.header__nav-dropdown::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  transition: opacity 0.3s ease;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNNC42NjY5OSA2LjY2NjY3TDguMDAwMzMgMTBMMTEuMzMzNyA2LjY2NjY3SDQuNjY2OTlaIiBmaWxsPSIjMTcyQTlBIiAvPgo8L3N2Zz4=");
}

.header__nav-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-wrap: nowrap;
}

.header__nav-item a:hover {
  color: #569745;
}

.header__nav-item a svg path,
.header__nav-item a svg circle {
  transition: all 0.3s ease;
}


.header__nav-item a:hover svg path {
 fill: #569745; 
}

.header__nav-item a:hover svg circle {
  stroke: #569745;
}

.header__dropdown-item:hover {
  background-color: rgba(23, 42, 154, 0.08);
}

.header__burger {
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: transparent;
}

.header__burger-line {
  position: absolute;
  width: 28px;
  height: 3px;
  background-color: #172a9a;
  border-radius: 999px;
  transition:
    transform 250ms ease,
    opacity 200ms ease,
    top 250ms ease;
}

.header__burger-line:nth-child(1) {
  top: 12px;
}
.header__burger-line:nth-child(2) {
  top: 21px;
}
.header__burger-line:nth-child(3) {
  top: 30px;
}

.header.is-menu-open .header__burger-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.header.is-menu-open .header__burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}
.header.is-menu-open .header__burger-line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

body.is-locked {
  overflow: hidden;
}

.header__cta {
  letter-spacing: 0.08em;
    text-wrap: nowrap;
}

@media (max-width: 1250px) {
 .header__logo {
  max-width: 165px;
}
  
  .header__nav {
    gap: 16px;
}
  .header__logo img {
  min-width: auto;
}


@media (max-width: 1199px) {
  .header__burger {
    display: flex;
  }

  .header__right {
    position: absolute;
    background-color: #fff;
    top: calc(100% - 1px);
    width: 100%;
    left: 0;
    flex-direction: column;
    border-radius: 0px 0px 20px 20px;
    gap: 12px;
    padding: 12px 20px 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px);
    transition:
      opacity 240ms ease,
      transform 240ms ease,
      visibility 0s linear 240ms;

    max-height: calc(100vh - 80px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 20px rgba(51, 51, 51, 0.1);
  }

  .header.is-menu-open .header__right {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
    transition:
      opacity 240ms ease,
      transform 240ms ease,
      visibility 0s;
  }

  .header__nav {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: flex-start;
  }

  .header__nav-item a {
    display: flex;
    padding: 6px 0;
    font-size: 18px;
  }
  .header__nav-dropdown {
    padding-right: 0;
  }

  .header__nav-dropdown::after {
    right: 0;
    top: 24px;
    scale: 1.75;
  }

  .header__dropdown-wrapper {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease;
  }

  .header__dropdown-list {
    margin-top: 8px;
  }

  .header__nav-dropdown:hover .header__dropdown-wrapper {
    opacity: 1;
    visibility: visible;
  }

  .header__nav-dropdown.is-dropdown-open .header__dropdown-wrapper {
    max-height: 500px;
  }

  .header__nav-dropdown.is-dropdown-open::after {
    transform: translateY(-50%) rotate(180deg);
  }
}
