.sidebar1 {
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  width: 250px;
  padding-bottom: 70px;
  background: #FAFAFB;
  overflow: hidden;
  font-family: 'Poppins', 'Montserrat',  sans-serif;
  line-height: 1.5;
  -webkit-transition: width .25s, -webkit-transform .25s;
  transition: width .25s, -webkit-transform .25s;
  -o-transition: width .25s, transform .25s;
  transition: width .25s, transform .25s;
  transition: width .25s, transform .25s, -webkit-transform .25s;
}

.sidebar1__wrapper {
  max-height: 100%;
  padding: 20px 10px 0;
  overflow: auto;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sidebar1__wrapper::-webkit-scrollbar {
  display: none;
}

.sidebar1__top {
  display: none;
}

.sidebar1__close {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: 0 15px 0 -4px;
  font-size: 0;
}

.sidebar1__close .icon {
  font-size: 18px;
  fill: #92929D;
}

.sidebar1__top .sidebar1__logo {
  font-size: 0;
}

.sidebar1__top .sidebar1__pic {
  width: 112px;
}

.sidebar1__top .sidebar1__pic_white {
  display: none;
}

.sidebar1__write {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 600;
  color: #44444F;
  -webkit-transition: border-color .25s;
  -o-transition: border-color .25s;
  transition: border-color .25s;
}

.sidebar1__write .icon {
  margin-right: 10px;
  font-size: 24px;
  fill: #92929D;
}

.sidebar1__write:hover {
  border-color: #B5B5BE;
}

.sidebar1__menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin: 0 -10px 10px;
}

.sidebar1__menu .sidebar1__link {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  white-space: nowrap;
  font-weight: 500;
  color: #171725;
  -webkit-transition: color .25s;
  -o-transition: color .25s;
  transition: color .25s;
}

.sidebar1__menu .sidebar1__link .icon {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-right: 22px;
  font-size: 24px;
  fill: #92929D;
  -webkit-transition: fill .25s;
  -o-transition: fill .25s;
  transition: fill .25s;
}

.sidebar1__menu .sidebar1__link:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 3px;
  height: 32px;
  border-radius: 0 3px 3px 0;
  background: #0062FF;
  opacity: 0;
  -webkit-transition: opacity .25s;
  -o-transition: opacity .25s;
  transition: opacity .25s;
}

.sidebar1__menu .sidebar1__link:hover {
  color: #0062FF;
}

.sidebar1__menu .sidebar1__link:hover .icon {
  fill: #0062FF;
}

.sidebar1__menu .sidebar1__link.active {
  color: #0062FF;
}

.sidebar1__menu .sidebar1__link.active .icon {
  fill: #0062FF;
}

.sidebar1__menu .sidebar1__link.active:before {
  opacity: 1;
}

.sidebar1__menu .sidebar1__link:not(:last-child) {
  margin-bottom: 5px;
}

.sidebar1__menu .sidebar1__counter,
.sidebar1__profile .sidebar1__counter {
  min-width: 28px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 12px;
  background: #FC5A5A;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 22px;
  color: #ffffff;
}

.sidebar1__menu .sidebar1__counter {
  right: 20px;
}

.sidebar1__profile .sidebar1__counter {
  right: 0;
}

.sidebar1__group {
  margin: 0 -10px;
}

.sidebar1__item {
  position: relative;
  padding: 10px 0;
}

.sidebar1__item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: #F1F1F5;
}

.sidebar1__head {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 42px;
  padding: 0 50px 0 20px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #92929D;
}

.sidebar1__head:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 21px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 12px;
  height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%2392929D' fill-rule='evenodd' d='M5.99999993,2.41421 L1.70711,6.70711 C1.31658,7.09763 0.683418,7.09763 0.292893,6.70711 C-0.0976311,6.31658 -0.0976311,5.68342 0.292893,5.29289 L5.29289,0.292893 C5.68342,-0.0976311 6.31658,-0.0976311 6.70711,0.292893 L11.7071,5.29289 C12.0976,5.68342 12.0976,6.31658 11.7071,6.70711 C11.3166,7.09763 10.6834,7.09763 10.2929,6.70711 L5.99999993,2.41421 Z' transform='rotate(180 6 3.5)'/%3E%3C/svg%3E%0A") no-repeat 50% 50%/100% auto;
  -webkit-transition: -webkit-transform .25s;
  transition: -webkit-transform .25s;
  -o-transition: transform .25s;
  transition: transform .25s;
  transition: transform .25s, -webkit-transform .25s;
}

.sidebar1__item.active .sidebar1__head:before {
  -webkit-transform: translateY(-50%) rotate(180deg);
  -ms-transform: translateY(-50%) rotate(180deg);
  transform: translateY(-50%) rotate(180deg);
}

.sidebar1__body .sidebar1__link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 42px;
  padding: 0 20px 0 25px;
  white-space: nowrap;
  color: #171725;
  -webkit-transition: opacity .25s;
  -o-transition: opacity .25s;
  transition: opacity .25s;
}

.sidebar1__body .sidebar1__link:hover {
  opacity: .85;
}

.sidebar1__body .sidebar1__link .sidebar1__counter {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: #B5B5BE;
}

.sidebar1__status {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 31px;
  border-radius: 50%;
  -webkit-transition: margin .25s;
  -o-transition: margin .25s;
  transition: margin .25s;
}

.sidebar1__chat {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 46px;
  padding: 0 20px 0 26px;
  white-space: nowrap;
  font-weight: 500;
  color: #0062FF;
  -webkit-transition: color .25s;
  -o-transition: color .25s;
  transition: color .25s;
}

.sidebar1__chat:hover {
  color: #50B5FF;
}

.sidebar1__chat:not(:last-child) {
  margin-bottom: 12px;
}

.sidebar1__plus {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 20px;
  height: 20px;
  margin-right: 22px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0062FF;
  font-size: 0;
  -webkit-transition: background .25s;
  -o-transition: background .25s;
  transition: background .25s;
}

.sidebar1__plus .icon {
  font-size: 12px;
  fill: #ffffff;
}

.sidebar1__chat:hover .sidebar1__plus {
  background: #50B5FF;
}

.sidebar1__list {
  padding: 0 20px;
}

.sidebar1__profile {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #171725;
  -webkit-transition: opacity .25s;
  -o-transition: opacity .25s;
  transition: opacity .25s;
}

.sidebar1__profile.online:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #82C43C;
}

.sidebar1__profile:hover {
  opacity: .8;
}

.sidebar1__profile:not(:last-child) {
  margin-bottom: 24px;
}

.sidebar1 .ava {
  margin-right: 15px;
  border: 1px solid #F1F1F5;
}

.sidebar1__user {
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: auto;
}

.sidebar1 .switch {
  position: absolute;
  left: 20px;
  bottom: 20px;
}

body.dark .sidebar1 {
  background: #17171E;
}

body.dark .sidebar1__top {
  background: #1C1C24;
  border-color: #292932;
}

body.dark .sidebar1__pic_black {
  display: none;
}

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

body.dark .sidebar1__write {
  background: #292932;
  color: #FAFAFB;
}

body.dark .sidebar1__write .icon {
  fill: #B5B5BE;
}

body.dark .sidebar1__menu .sidebar1__link {
  color: #B5B5BE;
}

body.dark .sidebar1__menu .sidebar1__link .icon {
  fill: #B5B5BE;
}

body.dark .sidebar1__menu .sidebar1__link:before {
  background: #FAFAFB;
}

body.dark .sidebar1__menu .sidebar1__link:hover, body.dark .sidebar1__menu .sidebar1__link.active {
  color: #FAFAFB;
}

body.dark .sidebar1__menu .sidebar1__link:hover .icon, body.dark .sidebar1__menu .sidebar1__link.active .icon {
  fill: #FAFAFB;
}

body.dark .sidebar1__item:before {
  background: #292932;
}

body.dark .sidebar1__head {
  color: #FAFAFB;
}

body.dark .sidebar1__body .sidebar1__link {
  color: #B5B5BE;
  -webkit-transition: color .25s;
  -o-transition: color .25s;
  transition: color .25s;
}

body.dark .sidebar1__body .sidebar1__link:hover {
  opacity: 1;
  color: #ffffff;
}

body.dark .sidebar1__chat {
  color: #FAFAFB;
}

body.dark .sidebar1__plus {
  background: #1E75FF;
  -webkit-box-shadow: 0 0 0 2px #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

body.dark .sidebar1__user {
  color: #B5B5BE;
}

@media only screen and (min-width: 1366px) {
  .page1.toggle .sidebar1 {
    width: 64px;
  }
  .page1.toggle .page1__wrap {
    padding-left: 64px;
  }
  .page1.toggle .messenger {
    padding-left: 64px;
  }
  .page1.toggle .sidebar1__write {
    font-size: 0;
  }
  .page1.toggle .sidebar1__write .icon {
    margin-right: 0;
  }
  .page1.toggle .sidebar1__head {
    display: none;
  }
  .page1.toggle .sidebar1__chat {
    padding-left: 23px;
  }
  .page1.toggle .sidebar1__status {
    margin-left: 4px;
  }
  .page1.toggle .sidebar1__list {
    padding: 0 17px;
  }
  .page1.toggle .sidebar1__item:before {
    left: 10px;
    right: 10px;
  }
  .page1.toggle .sidebar1__profile:before {
    position: absolute;
    top: 5px;
    right: -2px;
  }
}

@media only screen and (max-width: 1365px) {
  .page1.toggle .sidebar1 {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  .sidebar1 {
    top: 0;
    z-index: 15;
    width: 280px;
    padding: 70px 0;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform .25s;
    transition: -webkit-transform .25s;
    -o-transition: transform .25s;
    transition: transform .25s;
    transition: transform .25s, -webkit-transform .25s;
  }
  .sidebar1__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    height: 70px;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #E2E2EA;
  }
}

@media only screen and (max-width: 767px) {
  .sidebar1__top {
    height: 70px;
  }
  .sidebar1__close .icon {
    font-size: 16px;
  }
  .sidebar1__write {
    display: none;
  }
}