.totop {
  position: fixed;
  bottom:50px;
  right:15px;
  background-color: #000;
  color:#fff;
  text-align: center;
  width: 160px;
  height: 48px;
  line-height: 48px;
  display: none;
  color:#fff;
  text-transform: uppercase;
  z-index: 3;
  cursor: pointer;
  transition: all .3s ease;
  border:1px solid #000;
}
.totop:hover {
  background-color: rgba(0,0,0,.8);
}

.totop.active {
  display: block;
}

@media (max-width:1170px) {
  .totop,.totop.active {
display: none;  
}

}

@media (max-width:991px) {
  .totop {
  bottom:15px;
  right:15px;
  width: 120px;
  height: 32px;
  line-height: 32px;
}

}