.header2 {
  position: relative;
  height: 48px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
  z-index: 10;
  margin: 0 0 35px 0;
}
.header2__box {
  width: 100%;
  display: grid;
  grid-template-rows: 48px 10px 32px;
  grid-template-columns: 157px auto 32px 10px 32px 10px;
  grid-template-areas:
      "header2-logo . header2-search . header2-hamburger ."
      ". . . . . ."
      "header2-menu header2-menu header2-menu header2-menu header2-menu header2-menu"
;

}
.header2__logo-link {
  grid-area: header2-logo;
  display: block;
  margin: 10px 0 0 10px;
}
.header2__menu {
  grid-area: header2-menu;
  background: #fff;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 0 0 10px;
}
.header2__menu-list {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  width: 300px;
}
.header2__menu-list::-webkit-scrollbar {
  width:1px !important;
  height: 1px;
}
.header2__menu-list::-webkit-scrollbar * {
  background:transparent;
}
.header2__menu-list::-webkit-scrollbar-thumb {
  background:rgba(255,255,255,0.1) !important;
}
.header2__burger {
  grid-area: header2-hamburger;
  width: 32px;
  height: 32px;
  display: block;
  margin: 10px 0 0 0;
}
.header2__search {
  grid-area: header2-search;
  width: 32px;
  height: 32px;
  display: block;
  margin: 10px 0 0 0;
}

.page-box__layer {
  z-index: 2;
}
.header2__controls {

  z-index: 10;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  overflow-y: auto;
  -webkit-transform: translateX(100vw);
  transform: translateX(100vw);
  transition: -webkit-transform 0.3s cubic-bezier(0.56, 0.1, 0.34, 0.91);
  top: 0;
  left: 0;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.header2__controls_active {
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
}
.header2__close {
  height: 48px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 10px;
}
.header2__guest {
  grid-area: header2-auth;
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 10px;
  border: 1px solid #dadada;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 5px;
}
.header2__submenu-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 10px 0 20px;
}
.header2__submenu-list a {
  color: #484848;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  display: block;
  margin-bottom: 12px;
}
.header2__drpodown {
  border: 1px solid #333;
  margin: -10px 10px 10px 10px;
  border-radius: 5px;
  box-sizing: border-box;
  padding: 10px;
  list-style-type: none;
  max-width: 425px;
}
.header2__drpodown li {
  margin-bottom: 10px;
}

@media (min-width : 768px) {
  .header2 {
    height: auto;
    display: flex;
    justify-content: center;
    margin: 0 0 0 0;
  }

  .header2__box {
    width: 100%;
    display: grid;
    grid-template-rows:20px 48px  20px;
    grid-template-columns: 157px 20px auto 32px 10px 32px 10px;
    grid-template-areas:
        ". . . . . . ."
        "header2-logo . header2-menu header2-search . header2-hamburger ."
        ". . . . . . ."
  ;
  }
}

@media (min-width : 1024px) {
  .header2_underline::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #dadada;
    position: absolute;
    margin-top: 87px;
  }
  .header2__box {
    max-width: 1110px;
    width: 100%;
    display: grid;
    grid-template-rows:20px 48px  20px;
    grid-template-columns: 157px 20px auto 32px 10px 32px 10px 280px;
    grid-template-areas:
        ". . . . . . . ."
        "header2-logo . header2-menu header2-search . header2-hamburger . ."
        "header2-auth header2-auth header2-auth header2-auth header2-auth header2-auth header2-auth header2-auth"
  ;
  }
  .header2__box_auto {
    grid-template-rows:20px 48px  auto;
  }
  .header2__box_auto .header2__controls {
    /*border-top: 1px solid #dadada;*/
  }

  .header2__menu {
    position: relative;
    z-index: 10;
  }
  .header2__close {
    display: none;
  }
  .header2__controls {
    grid-area: header2-auth;
    z-index: auto;
    position: relative;
    width: 100%;
    height: auto;
    background: transparent;
    -webkit-transform: none;
    transform: none;
    transition: none;
    top: auto;
    left: auto;
    -webkit-overflow-scrolling: unset;
    overflow: visible;
    display: flex;
    align-items: flex-end;
  }

  .header2__guest {
    width: 280px;
    margin-top: -50px;
    border: none;
    padding: 5px 10px;
    position: relative;
    z-index: 20;
  }
  .header2__submenu {
    grid-area: header2-submenu;
    width: 100%;
    z-index: 20;
    position: relative;
    box-sizing: border-box;
    padding: 10px 280px 0 35px;
    visibility: hidden;
    opacity:0;
    height: auto;
    transition: height 0.8s ease, opacity 0.5s linear;
  }
  .header2__controls_active .header2__submenu {
    visibility: visible;
    opacity:1;
  }
  .header2__submenu ul {
    display: flex;
    flex-wrap: wrap;
  }
  .header2__submenu ul li {
    padding: 0 20px 0 0;
    font-size: 14px;
    line-height: 18px;
  }
  .header2__submenu ul li a {
    font-size: 14px;
    line-height: 18px;
  }

  .header2__profile {
    margin-top: -38px;
    padding-right: 10px;
    display: flex;
    justify-content: flex-end;
    width: 100px;
  }
  .header2__drpodown {
    position: absolute;
    width: 200px;
    margin: 28px 0 0 -160px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
    display: none;
    border: 1px solid #dadada;
  }
  .header2__drpodown_active {
    display: block;
  }
  .header2__drpodown li {
    margin-bottom: 10px;
  }
  .header2__drpodown li a {
    display: block;
  }
}

