.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 950;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #ffffff;
  color: #007bff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Скрываем кнопку, если открыто ваше мобильное меню */
.mobile-menu[aria-hidden="false"] ~ .scroll-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-to-top__progress {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.scroll-to-top__track,
.scroll-to-top__bar {
  fill: none;
  stroke-width: 3;
}

.scroll-to-top__track {
  stroke: rgba(0, 123, 255, 0.15);
}

.scroll-to-top__bar {
  stroke: #007bff;
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-to-top__arrow {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.scroll-to-top:hover {
  background-color: #f8f9fa;
}

.scroll-to-top:hover .scroll-to-top__arrow {
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .scroll-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .scroll-to-top__progress {
    width: 44px;
    height: 44px;
  }
}
