.sy-scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 10040;
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(1rem) scale(0.94);
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        bottom 0.28s ease;
    box-shadow: 0 10px 24px rgba(17, 25, 78, 0.22);
}

.sy-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.sy-scroll-top__ring {
    position: absolute;
    inset: 0;
    display: block;
    line-height: 0;
}

.sy-scroll-top__progress {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.sy-scroll-top__track {
    stroke: rgba(228, 231, 239, 0.95);
    stroke-width: 3;
}

.sy-scroll-top__bar {
    stroke: #fe000b;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.12s linear;
}

.sy-scroll-top__core {
    position: absolute;
    inset: 0.4375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(160deg, #2f3548 0%, #242a3a 48%, #1d2230 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.22s ease, transform 0.22s ease;
}

.sy-scroll-top__core svg {
    display: block;
    margin-top: -1px;
}

.sy-scroll-top:hover .sy-scroll-top__core {
    background: linear-gradient(160deg, #3a4158 0%, #2d3346 48%, #242a3a 100%);
    transform: translateY(-1px);
}

.sy-scroll-top:hover {
    box-shadow: 0 14px 30px rgba(17, 25, 78, 0.28);
}

.sy-scroll-top:focus-visible {
    outline: 2px solid #fe000b;
    outline-offset: 4px;
}

@media (min-width: 992px) {
    .page-home .sy-scroll-top {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .sy-scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 3.125rem;
        height: 3.125rem;
    }

    .sy-scroll-top__core {
        inset: 0.375rem;
    }

    .sy-scroll-top__core svg {
        width: 16px;
        height: 16px;
    }

    body:has(.cookie-consent.is-visible:not([hidden])) .sy-scroll-top {
        bottom: 7.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sy-scroll-top {
        transition: opacity 0.15s ease, visibility 0.15s ease, bottom 0.15s ease;
        transform: none;
    }

    .sy-scroll-top.is-visible {
        transform: none;
    }

    .sy-scroll-top__bar {
        transition: none;
    }
}
