
.scroll-to-top {
    position: fixed;
    bottom: 2vmin;
    right: 3vmin;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;

    /* Адаптивные размеры */
    width: 10vmin;
    height: 10vmin;
    min-width: 44px;
    /* Минимум для мобильных (удобно для пальца) */
    min-height: 44px;
    max-width: 60px;
    /* Максимум для ПК */
    max-height: 60px;
    border-radius: 50%;
    /* Делает форму круглой */
}


.scroll-to-top svg {
    width: 55%;
    height: auto;
    display: block;
    margin-top: -2px;
}

/* Эффекты при наведении (для ПК) */
.scroll-to-top:hover {
    background-color: #333;
    transform: translateY(-5px) scale(1.05);
}

/* Эффекты при нажатии (для мобильных и ПК) */
.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* Класс для скрытия кнопки */
.scroll-to-top.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    /* Кнопка будет плавно выезжать снизу */
}