

.to-top {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 99;
  display: block;
  width: 45px;
  height: 45px;
  border: 0;
  padding: 0;
  border-radius: 50px;
  background: transparent;
  cursor: pointer;

  box-shadow: inset 0 0 0 2px rgba(0, 93, 224, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(130%);
  transition: all 200ms linear;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.to-top:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.to-top__ring path {
  fill: none;
  stroke: #a41f24;

  stroke-width: 3.5;
  box-sizing: border-box;
}

.to-top__icon {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a41f24;
  pointer-events: none;
  cursor: pointer;
}
.to-top__icon svg {

  width: 19px;
  height: 19px;
  fill: currentColor;
}

.no-js .to-top {
  display: none;
}

@media (max-width: 360px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  .to-top__icon {
    width: 41px;
    height: 41px;
  }
  .to-top__icon svg {

    width: 17px;
    height: 17px;
  }
}

@media (hover: none) {
  .to-top:active {
    opacity: .85;
  }
}

@media print {
  .to-top {
    display: none !important;
  }
}