/*=============== HEADER ===============*/
header {
  background-color: var(--body-color-dark);
}
.header__section {
  margin-left: 60px;
  margin-right: 60px;
  width: 100%;
}

.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5vw;
}

.header__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  width: 8vw;
}

.header__nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.1s ease-in-out;
  cursor: pointer;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}
.header__nav-link:hover {
  opacity: 0.7;
}

.header__drop-link {
  position: relative;
}

.header__drop-menu {
  margin-top: 2vh;
  position: absolute;
  left: -0.5vw;
  background-color: var(--body-color-menu);
  border-radius: 12px;
  z-index: 50;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}
.header__drop-wrap {
  box-sizing: border-box;
  padding: 1vw;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}
.header__drop-wrap a {
  transition: opacity 0.1s ease-in-out;
}
.header__drop-wrap a:hover {
  opacity: 0.7;
}

.header__button-feed {
  padding: 15px 24px;
  border-radius: 8px;
  font-size: var(--smaller-font-size);
}

/*============ Burger Menu Styles ===========*/
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.burger__line {
  width: 34px;
  height: 4px;
  background: var(--first-color);
  margin: 3px 0;
  border-radius: 20px;
  transition: 0.3s;
}

/* sticky header */
/* Базовые стили для header */
.site-header {
  position: fixed;
  min-height: 14vh;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: min-height 0.3s ease;

  display: flex;
  align-items: center;
}

/* Состояние когда страница прокручена */
.site-header.scrolled {
  /* box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15); */
  min-height: 10vh;
}

/*=============== MEDIA SCREEN ===============*/
@media (max-width: 768px) {
  /* header {
    padding: 10px 0;
  } */
  .header__section {
    margin-left: 20px;
    margin-right: 20px;
  }
  .header__logo {
    width: 25vw;
  }
  .site-header {
    min-height: 10vh;
  }
  .site-header.scrolled {
    min-height: 8vh;
  }

  .burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 78px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 78px);
    background: var(--body-color-dark);
    transition: left 0.3s ease;
    z-index: 999;

    padding-top: 30px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    overflow: auto;
  }
  .scrolled .header__nav {
    top: 60px;
    height: calc(100vh - 69px);
  }

  .header__nav.active {
    left: 0;
  }

  .header__nav-link {
    padding-left: 25px;
    font-size: 5.5vw;
    font-weight: 400;
  }

  .header__button-feed {
    margin-left: 25px;
    padding: 14px 24px;
  }
  .header__button-feed a {
    font-size: 5vw;
  }

  .header__drop-menu {
    position: relative;
    margin-top: 0;
    margin-left: 55px;
    background: var(--body-color-dark);
  }

  .header__drop-wrap {
    margin-top: 16px;
    gap: 16px;
  }
  .header__drop-wrap a {
    font-size: 5.5vw;
  }

  .header_contacts {
    margin-top: 15px;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    padding-left: 25px;
    color: var(--text-color-light);
    gap: 24px;
  }

  .header_contacts h6 {
    font-size: 5.5vw;
    margin-bottom: 10px;
  }

  .header_contacts a,
  .header_contacts p {
    font-size: 4.5vw;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .header_contacts img {
    width: 6vw;
  }

  /* Burger animation */
  .burger.active .burger__line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 8px);
  }

  .burger.active .burger__line:nth-child(2) {
    opacity: 0;
  }

  .burger.active .burger__line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -8px);
  }
}

@media screen and (min-width: 1024px) {
  .header__button-feed {
    padding: 12px 18px;
  }
}
