.scroll-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 9;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    border: 1px solid transparent;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.scroll-top._on-light {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.scroll-top._on-dark {
    color: var(--green);
    background: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

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

.scroll-top._on-light:hover {
    background: var(--green-light);
    color: var(--green);
}

.scroll-top._on-dark:hover {
    background: var(--green-light);
    border-color: rgba(255, 255, 255, 0.15);
}

.scroll-top .icon {
    width: 20px;
    height: 20px;
    transform: rotate(-90deg);
}

@media only screen and (max-width: 1023.98px) {
    .scroll-top {
        right: 20px;
        bottom: 20px;
        width: 48px;
        height: 48px;
    }
}

@media only screen and (max-width: 599.98px) {
    .scroll-top {
        right: 12px;
        bottom: 12px;
    }
}
