/** Header page styles **/

/** header **/
.header {
  background-color: white;
}
.header__wrapper {
  width: 90vw;
  margin: 0 auto;
  padding: 1vw 0;
}

/** top-nav **/
.top-nav_device_mobile {
  display: none;
}
.top-nav__row {
  width: 100%;
}
.top-nav__logo {
  flex-grow: 0;
  width: 10vw;
}
.top-nav__lk {
  flex-grow: 0;
}
.top-nav__nav {
  flex-grow: 1;
  flex-shrink: 0;
}
.top-nav__list {
  margin-left: auto;
  margin-right: 2vw;
}

/** nav-row **/
.nav-row {
  display: flex;
  align-items: center;
}

/** logo **/
.logo__img {
  width: 100%;
  height: 100%;
  display: block;
}

/** nav-list **/
.nav-list {
  display: flex;
  justify-content: flex-end;
}
.nav-list__item {
  flex: 0 0 auto;
}

/** nav-link **/
.nav-link {
  font-size: 1vw;
  display: flex;
  justify-content: center;
}
.nav-link_type_primary {
  padding: 1vw 1.2vw;
  background-color: var(--primary-color);
  border-radius: 0.25rem;
  color: white;
}
.nav-link_type_primary:hover {
  background-color: var(--primary-color-hover);
}
.nav-link_type_secondary {
  line-height: 2vw;
  position: relative;
  padding: 1vw 2vw;
}
.nav-link_type_secondary::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0.2rem;
  background: #000;
  -webkit-transition: width 0.2s linear;
  transition: width 0.2s linear;
}
.nav-link_type_secondary:hover::after {
  width: 100%;
}

/** modal **/
.modal__wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: var(--modal-layer);
}

/** phablet **/
@media screen and (max-width: 1279.98px) {
  .top-nav__list {
    max-width: 35vw;
  }
  .nav-list__item {
    flex: 1 0 auto;
  }
}

/** mobile **/
@media screen and (max-width: 1023.98px) {
  /** header **/
  .header.nav-opened {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;

  }
  .header__wrapper {
    margin: 0 5vw;
    padding: 2rem 0;
  }
  .header__nav {
    margin-top: 3rem;
  }

  /** top-nav **/
  .top-nav.top-nav_device_desktop {
    display: none;
  }
  .top-nav_device_mobile {
    display: flex;
  }
  .top-nav {
    display: flex;
    flex-direction: column;
  }
  .top-nav__row {
    width: 100%;
    display: flex;
    align-items: center;
  }
  .top-nav__logo {
    width: 10rem;
  }
  .top-nav__panel {
    flex-grow: 1;
  }
  .top-nav__list {
    max-width: none;
    width: 100%;
  }

  /** nav-panel **/
  .nav-panel {
    display: flex;
    justify-content: flex-end;
  }
  /** nav-list **/
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  /** nav-link **/
  .nav-link {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 2rem;
    padding-left: 1vw;
    padding-right: 1vw;
  }
  .nav-link_type_primary {
    color: var(--primary-color);
    background: none;
  }
  .nav-link_type_primary:hover {
    color: var(--primary-color-hover);
    background: none;
  }
  .nav-link_type_secondary::after {
    display: none;
  }

  /** collapse **/
  .collapse__icon {
    cursor: pointer;
  }
  .burger-icon {
    height: 48px;
  }
  .cross-icon {
    height: 40px;
  }
}