
.scroll-to-top {
    position: fixed;
    right: 32px;
    bottom: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(31,64,127,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.3s, box-shadow 0.3s;
    border: none;
    outline: none;
    
    background-size: 56px 56px;
    background-repeat: no-repeat;
    background-position: center;
}
.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-to-top:active {
    transform: scale(0.95);
}
.scroll-to-top:hover {
    box-shadow: 0 12px 40px rgba(31,64,127,0.25);
}
.scroll-to-top svg {
    width: 28px;
    height: 28px;
    display: block;
}
@media (max-width: 768px) {
    .scroll-to-top {
        right: 16px;
        bottom: 24px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }
}