/* Floating scroll-to-top button */

.scroll-top-btn {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 10020;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #2558a8, #2f9e63);
    box-shadow: 0 10px 24px rgba(26, 43, 60, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    box-shadow: 0 12px 28px rgba(37, 88, 168, 0.35);
}

.scroll-top-btn:focus-visible {
    outline: 2px solid #2558a8;
    outline-offset: 3px;
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

@media (max-width: 900px) {
    .scroll-top-btn {
        right: 14px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-btn {
        transition: none;
    }
}
