.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 18px;
    background: rgba(17, 17, 19, 0.88);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s ease,
        background 0.28s ease,
        box-shadow 0.28s ease;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    display: block;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: #155bc0;
    box-shadow: 0 18px 34px rgba(21, 91, 192, 0.24);
    transform: translateY(-3px) scale(1.03);
}

.scroll-top:active {
    transform: translateY(0) scale(0.96);
}

@media (max-width: 560px) {
    .scroll-top {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .scroll-top svg {
        width: 22px;
        height: 22px;
    }
}