
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    /* border-radius: 50%; */
    /* background-color: #333; */
    background-color: rgb(0, 0, 0); /* измененно */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    outline: none;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); */
    box-shadow: 5px 5px 20px black;  /* измененно */
  }
  
  .scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .scroll-to-top:hover {
    background-color: #555;
    transform: translateY(-3px);
  }
  
  /* Адаптивные стили для кнопки */
  @media (max-width: 800px) {
    .scroll-to-top {
      width: 10vw;
      height: 10vw;
      bottom: 10px;
      right: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .scroll-to-top {
      width: 10vw;
      height: 10vw;
      bottom: 10px;
      right: 10px;
    }
  }