:root {
    --site-scrollbar-width: 14px;
    --site-scrollbar-gold: #c8a97e;
}

html.has-site-scrollbar {
    scrollbar-width: none;
}

html.has-site-scrollbar::-webkit-scrollbar {
    display: none;
}

.site-scrollbar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 6000;
    width: var(--site-scrollbar-width);
    height: 100dvh;
    border-radius: 0;
    background: #171b20;
    touch-action: none;
    cursor: pointer;
}

.site-scrollbar[hidden] {
    display: none;
}

html.has-site-scrollbar .hero-contacts {
    right: calc(34px + var(--site-scrollbar-width));
}

@media (max-width: 900px) {
    html.has-site-scrollbar .hero-contacts {
        right: calc(16px + var(--site-scrollbar-width));
    }
}

.site-scrollbar:focus-visible {
    outline: 2px solid var(--site-scrollbar-gold);
    outline-offset: 3px;
}

.site-scrollbar__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    min-height: 64px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    border-radius: 10px;
    background: var(--site-scrollbar-gold);
    cursor: grab;
}

.site-scrollbar__thumb svg {
    width: 8px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.site-scrollbar.is-scrolling-up svg {
    transform: rotate(180deg);
}

.site-scrollbar.is-dragging .site-scrollbar__thumb {
    cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
    .site-scrollbar__thumb svg {
        transition: none;
    }
}

