#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--rclPrimary, #D47B1C); /* Основной оранжевый цвет */
    color: var(--rclLight, #FAFAFA); /* Светлый текст */
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scroll-to-top i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

#scroll-to-top:hover {
    background-color: var(--rclPrimaryHover, #C06B15); /* Темнее оранжевый при наведении */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#scroll-to-top:hover i {
    transform: scale(1.1);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Анимация появления/исчезания */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

#scroll-to-top.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

#scroll-to-top.fade-out {
    animation: fadeOut 0.3s ease forwards;
}