.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 70px;
  padding: 5px 20px 5px 25px;
  -webkit-box-shadow: inset 0px -1px 0px #E2E2EA;
  box-shadow: inset 0px -1px 0px #E2E2EA;
  background: #ffffff;
}

.header__title {
  display: none;
}

.header__logo {
  font-size: 0;

  &.clickable {
    cursor: pointer;
  }
}

.header__logo .header__pic {
  width: 112px;

  img {
    max-height: 50px !important;
  }

  svg {
    max-height: 50px !important;
  }
}

.header__logo .header__pic_white {
  display: none;
}

.header__profile .header__pic {
  width: 100%;
  min-height: 32px;
  border-radius: 50%;
}

.header__group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: auto;
}

.header__burger {
  display: none;
  font-size: 0;
}

.header__burger .icon {
  font-size: 32px;
  fill: #92929D;
}

.header_empty .header__burger {
  display: none;
}

.header__search {
  position: relative;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 86px;
  margin-right: 20px;
  -webkit-transition: width .25s;
  -o-transition: width .25s;
  transition: width .25s;
}

.header__search.active {
  width: 240px;
}

.header__search.active .header__wrap {
  height: 38px;
}

.header__bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  background: rgba(23, 23, 37, 0.3);
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all .25s;
  -o-transition: all .25s;
  transition: all .25s;
}

.header__open {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 42px;
  padding-left: 3px;
  font-size: 0;
}

.header__open .icon {
  font-size: 20px;
  fill: #92929D;
  -webkit-transition: fill .25s;
  -o-transition: fill .25s;
  transition: fill .25s;
}

.header__open:hover .icon {
  fill: #B5B5BE;
}

.header__input {
  width: 100%;
  height: 38px;
  padding: 0 10px 0 42px;
  background: #F1F1F5;
  border-radius: 10px;
  font-family: 'Poppins', 'Montserrat',  sans-serif;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 600;
  /* color: #171725; */
}

/* .header__input::-webkit-input-placeholder {
  color: #696974;
}

.header__input::-ms-input-placeholder {
  color: #696974;
}

.header__input::placeholder {
  color: #696974;
} */

body.dark .header__input {
  background: #4F4F5A;
  border-color: #44444F;
  /* color: #FAFAFB; */
}

body.dark .header__bg {
  background: rgba(146, 146, 157, 0.3);
}

body.dark .header {
  background: #1C1C24;
  -webkit-box-shadow: inset 0px -1px 0px #292932;
  box-shadow: inset 0px -1px 0px #292932;
}

body.dark .header__input::-webkit-input-placeholder {
  /* color: #FAFAFB; */
}

body.dark .header__input::-ms-input-placeholder {
  /* color: #FAFAFB; */
}

body.dark .header__pic_white {
  display: inline-block;
}

body.dark .header__input::placeholder {
  /* color: #FAFAFB; */
}

body.dark .header__pic_black {
  display: none;
}

body.dark .header__title {
  /* color: #FAFAFB; */
}

@media only screen and (max-width: 767px) {
  .header__search {
    position: static;
    width: auto;
    font-size: 0;
  }

  .header__search.active {
    width: auto;
  }

  .header__open {
    position: relative;
    width: auto;
    padding: 0;
  }

  .header__input {
    padding: 0 20px;
    border-radius: 0;
    border-bottom: 1px solid #E2E2EA;
  }

  .header__wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    -webkit-transition: height .25s;
    -o-transition: height .25s;
    transition: height .25s;
  }

  .header__burger .icon {
    font-size: 24px;
  }

  .header {
    height: 60px;
    padding: 5px 20px;
  }

  .header:not(.header_empty) .header__logo {
    display: none;
  }

  body.dark .header {
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  .header__title {
    display: block;
    font-family: 'Poppins', 'Montserrat',  sans-serif;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 600;
  }
}

@media only screen and (max-width: 1023px) {
  .header__burger {
    display: inline-block;
    margin-right: 20px;
  }


  .header__bg.show {
    visibility: visible;
    opacity: 1;
  }
}

@media only screen and (max-width: 1199px) {
  .header {
    padding: 5px 20px;
  }
}