html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
}
body {
  height: 100%;
}
.sticky__top {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 9999;
}
.left-bar {
  width: calc(99.9% * 3/12);
  height: 100%;
  background-color: #353b7d;
}
.left-bar:nth-child(1n) {
  float: left;
  margin-right: 0;
  clear: none;
}
.left-bar:last-child {
  margin-right: 0;
}
.left-bar:nth-child(0n) {
  float: right;
}
.contacts {
  margin-top: 80px;
  height: calc(100% - 80px - 90px);
  overflow-y: scroll;
  position: relative;
}
.contacts__top {
  height: 80px;
  -webkit-box-shadow: #000 -8px 0px 12px 0px;
          box-shadow: #000 -8px 0px 12px 0px;
  z-index: 10;
  width: calc(99.9% * 3/12);
  background-color: #353b7d;
}
.contacts__top:nth-child(1n) {
  float: left;
  margin-right: 0;
  clear: none;
}
.contacts__top:last-child {
  margin-right: 0;
}
.contacts__top:nth-child(0n) {
  float: right;
}
.contacts__bottom {
  height: 90px;
  -webkit-box-shadow: #000 -8px 0px 12px 0px;
          box-shadow: #000 -8px 0px 12px 0px;
  z-index: 10;
  width: calc(99.9% * 3/12);
  background-color: #353b7d;
}
.contacts__bottom:nth-child(1n) {
  float: left;
  margin-right: 0;
  clear: none;
}
.contacts__bottom:last-child {
  margin-right: 0;
}
.contacts__bottom:nth-child(0n) {
  float: right;
}
.contacts-chat-room {
  padding: 15px 0;
  height: 60px;
  position: relative;
  color: #636791;
}
.contacts-chat-room:hover {
  background-color: #3f4694;
  cursor: pointer;
}
.contacts-chat-room--active {
  background-color: #292f66;
}
.contacts-chat-room__title {
  color: #fff;
  position: absolute;
  top: 23px;
  font-weight: bold;
  font-size: 15px;
}
.contacts-chat-room__title span.online {
  width: 10px;
  height: 10px;
  background-color: #6ab04c;
  display: inline-block;
  border-radius: 1000px;
  margin-left: 5px;
}
.contacts-chat-room__time {
  position: absolute;
  top: 23px;
  right: 43px;
}
.contacts-chat-room__excerpt {
  position: absolute;
  top: 47px;
  text-overflow: ellipsis;
  width: 50%;
  height: 18px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
}
.contacts-chat-room__profile-pictures {
  width: calc(99.9% * 5/20 - (30px - 30px * 5/20));
  height: 60px;
}
.contacts-chat-room__profile-pictures:nth-child(1n) {
  float: left;
  margin-right: 30px;
  clear: none;
}
.contacts-chat-room__profile-pictures:last-child {
  margin-right: 0;
}
.contacts-chat-room__profile-pictures:nth-child(20n) {
  margin-right: 0;
  float: right;
}
.contacts-chat-room__profile-pictures:nth-child(20n + 1) {
  clear: both;
}
.contacts-chat-room__profile-pictures-single {
  width: 45px;
  height: 45px;
  background-color: #00f;
  border-radius: 40px;
  position: absolute;
  top: 22px;
  left: 30px;
  background-image: url("https://avatars2.githubusercontent.com/u/8213031?s=460&v=4");
  background-size: cover;
}
.contacts-chat-room__profile-pictures-single--multiple-first {
  background-color: #ffc0cb;
  top: 20px;
  left: 23px;
  z-index: 3;
  background-image: url("https://avatars0.githubusercontent.com/u/32596568?s=200&v=4");
}
.contacts-chat-room__profile-pictures-single--multiple-second {
  top: 27px;
  left: 37px;
}
.contacts-chat-room__meta {
  width: calc(99.9% * 15/20 - (30px - 30px * 15/20));
}
.contacts-chat-room__meta:nth-child(1n) {
  float: left;
  margin-right: 30px;
  clear: none;
}
.contacts-chat-room__meta:last-child {
  margin-right: 0;
}
.contacts-chat-room__meta:nth-child(20n) {
  margin-right: 0;
  float: right;
}
.contacts-chat-room__meta:nth-child(20n + 1) {
  clear: both;
}
.contacts-chat-room__silent {
  position: absolute;
  top: 44px;
  right: 11px;
  font-size: 18px;
}
.chat {
  width: 80%;
  height: 100%;
  display: inline-block;
  padding-left: 20%;
}
.chat-body {
  height: calc(100% - 80px - 90px);
  overflow-y: scroll;
  margin-top: 80px;
  width: calc(99.9% * 9/12);
  position: relative;
}
.chat-body:nth-child(1n) {
  float: left;
  margin-right: 0;
  clear: none;
}
.chat-body:last-child {
  margin-right: 0;
}
.chat-body:nth-child(0n) {
  float: right;
}
.chat-top {
  height: 80px;
  -webkit-box-shadow: #b5c0c6 0px 2px 4px 0px;
          box-shadow: #b5c0c6 0px 2px 4px 0px;
  width: calc(99.9% * 9/12);
  position: relative;
  font-weight: bold;
  background-color: #fff;
}
.chat-top:nth-child(1n) {
  float: left;
  margin-right: 0;
  clear: none;
}
.chat-top:last-child {
  margin-right: 0;
}
.chat-top:nth-child(0n) {
  float: right;
}
.chat-top__title {
  position: absolute;
  top: 30px;
  left: 47px;
}
.chat-top__tools {
  color: #b5c0c6;
  position: absolute;
  top: 30px;
  right: 50px;
}
.chat-top__tools svg {
  padding-left: 22px;
  cursor: pointer;
}
.chat-top__tools svg:hover {
  color: #000;
}
.contacts-search {
  text-align: center;
  padding-top: 20px;
}
.contacts-search__input {
  background-color: rgba(0,0,0,0);
  border: none;
  color: #b5c0c6;
  width: calc(80% - 10px);
  padding-right: 10px;
}
.contacts-search__input:focus {
  outline: none;
  color: #b5c0c6;
}
.contacts-search__input::-webkit-input-placeholder {
  color: #b5c0c6;
}
.contacts-search__input:-ms-input-placeholder {
  color: #b5c0c6;
}
.contacts-search__input::-ms-input-placeholder {
  color: #b5c0c6;
}
.contacts-search__input::placeholder {
  color: #b5c0c6;
}
.contacts-search__box {
  width: calc(100% - 43px);
  margin: 0 auto;
  background-color: #636791;
  padding: 8px 0;
}
.contacts-search__search-icon {
  color: #b5c0c6;
  padding: 0 19px 0 7px;
  margin-right: -5px;
  font: 400 13.3333px Arial;
}
.chat-container {
  padding: 0 50px;
}
.chat-single {
  margin: 30px 0;
  position: relative;
}
.chat-single:before {
  content: '';
  display: table;
}
.chat-single:after {
  content: '';
  display: table;
  clear: both;
}
.chat-single__name {
  font-weight: bold;
}
.chat-single__profile-picture {
  width: 50px;
  height: 50px;
  background-color: #00f;
  border-radius: 1000px;
  background-image: url("https://avatars2.githubusercontent.com/u/8213031?s=460&v=4");
  background-size: cover;
}
.chat-single__profile-picture-container {
  width: calc(99.9% * 2/30 - (30px - 30px * 2/30));
}
.chat-single__profile-picture-container:nth-child(1n) {
  float: left;
  margin-right: 30px;
  clear: none;
}
.chat-single__profile-picture-container:last-child {
  margin-right: 0;
}
.chat-single__profile-picture-container:nth-child(30n) {
  margin-right: 0;
  float: right;
}
.chat-single__profile-picture-container:nth-child(30n + 1) {
  clear: both;
}
.chat-single__name-message-container {
  width: calc(99.9% * 25/30 - (30px - 30px * 25/30));
  font-size: 15px;
}
.chat-single__name-message-container:nth-child(1n) {
  float: left;
  margin-right: 30px;
  clear: none;
}
.chat-single__name-message-container:last-child {
  margin-right: 0;
}
.chat-single__name-message-container:nth-child(30n) {
  margin-right: 0;
  float: right;
}
.chat-single__name-message-container:nth-child(30n + 1) {
  clear: both;
}
.chat-single__time {
  position: absolute;
  right: 10px;
  top: 0px;
  color: #636791;
  font-size: 14px;
}
.chat-single__message {
  padding-top: 11px;
}
.sticky-bottom {
  width: 100%;
  height: 90px;
  position: fixed;
  bottom: 0;
  z-index: 2;
  background-color: #fff;
}
