.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  max-width: 1920px;
  margin-inline: auto;
  padding-block: 19px;
  padding-left: 40px;
}
.header__brand {
  flex-shrink: 0;
  margin-right: auto;
}
.header__logo {
  display: block;
  min-height: 90px;
  width: 100%;
  max-width: 313px;
}
.header__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.header__nav-link {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition:0.3s ease;
}
.header__nav-link:hover {
  color: #358838;
}
.header__contact {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 18px 16px 18px 21px;
  border-radius: 10px 0 0 10px;
  background-color: #358838;
  color: #fff;
  position: relative;
  width: 201px;
  transition: 0.3s ease;
}

.header__contact:hover{
  color: #fff;
  opacity: 0.7;
}

.header__contact-icon {
  width: 28px;
  height: auto;
  object-fit: contain;
  display: block;
}
.header__contact-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.header__menu-button {
  display: none;
}
@media screen and (max-width: 991px) {
  .header {
    height: 80px;
  }
  .header__inner {
    position: relative;
    z-index: 20;
    height: 80px;
    gap: 0;
    justify-content: space-between;
    padding: 16px 11px;
    background-color: #fff;
  }
  .header__brand {
    position: relative;
    z-index: 30;
  }
  .header__logo {
    max-width: 106px;
    min-height: unset;
    width: 100%;
  }
  .header__nav {
    position: fixed;
    inset: 80px 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 40px;
    align-items: center;
    justify-content: flex-start;
    padding: 56px 16px 168px;
    background-color: #f5f8f1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }
  .header__nav-link {
    font-size: 16px;
    line-height: 1.5;
  }
  .header__contact {
    position: fixed;
    left: 50%;
    bottom: 54px;
    z-index: 15;
    display: none;
    width: 260px;
    min-height: 72px;
    gap: 24px;
    padding: 8px 14px;
    border-radius: 32px;
  }
  .header__contact::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
  }
  .header__contact-icon {
    width: 30px;
  }
  .header__contact-text {
    font-size: 16px;
  }
  .header__menu-button {
    position: relative;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 48px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
  }
  .header__menu-line {
    width: 34px;
    height: 2px;
    background-color: #000;
    transition: transform 0.3s, opacity 0.3s;
  }
  .header.open .header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .header.open .header__contact {
    display: flex;
    transform: translateX(-50%);
  }
  .header.open .header__menu-button .header__menu-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .header.open .header__menu-button .header__menu-line:nth-child(2) {
    opacity: 0;
  }
  .header.open .header__menu-button .header__menu-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}
