.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 11px 15px;
    border: 0;
    border-radius: 999px;
    background: #176e9e;
    box-shadow: 0 8px 20px rgba(0, 51, 102, .24);
    color: #fff;
    cursor: pointer;
    font: 700 13px/1 'Montserrat', sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0b527c;
    transform: translateY(-3px);
}

.back-to-top:focus-visible {
    outline: 3px solid #f7b733;
    outline-offset: 3px;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

@media (max-width: 640px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        justify-content: center;
        padding: 0;
    }

    .back-to-top span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

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