ф
/* ============================================================
   Locomotive Scroll — кастомные стили для сайта designhello.ru
   Бегущая строка, reveal-анимации, кастомный скроллбар
   ============================================================ */


/* ---------- Плавная прокрутка как фолбэк (без Locomotive) ---------- */

html:not(.has-scroll-smooth) {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html:not(.has-scroll-smooth) {
        scroll-behavior: auto;
    }
}


/* ---------- Кастомный скроллбар Locomotive ---------- */

.c-scrollbar {
    position: fixed !important;
    top: 0;
    height: 100vh !important;
    width: 10px;
    z-index: 99999;
}

.c-scrollbar_thumb {
    background-color: rgba(113, 84, 248, 0.75) !important;
    width: 6px !important;
    margin: 2px;
    opacity: 0.55;
}

.c-scrollbar:hover .c-scrollbar_thumb,
.has-scroll-dragging .c-scrollbar_thumb,
.has-scroll-scrolling .c-scrollbar_thumb {
    opacity: 1;
}


/* ---------- Reveal-анимации появления при скролле ---------- */

html.loco-enabled [data-loco-reveal] {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

html.loco-enabled [data-loco-reveal].is-inview {
    opacity: 1;
    transform: none;
}

html.loco-enabled [data-loco-reveal="left"] {
    transform: translateX(-50px);
}

html.loco-enabled [data-loco-reveal="right"] {
    transform: translateX(50px);
}

html.loco-enabled [data-loco-reveal="scale"] {
    transform: scale(0.93);
}


/* Уважение к prefers-reduced-motion: не прячем контент */

@media (prefers-reduced-motion: reduce) {
    html.loco-enabled [data-loco-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ---------- Бегущая строка (маркиз) ---------- */

.running-line {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* background: linear-gradient(90deg, #131147 0%, #221d68 50%, #131147 100%); */
    border-top: 1px solid rgb(0 0 0 / 7%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 5;
}

.running-line__track {
    display: flex;
    width: max-content;
    animation: runningLineScroll 32s linear infinite;
    will-change: transform;
}

.running-line:hover .running-line__track,
.running-line:focus-within .running-line__track {
    animation-play-state: paused;
}

.running-line__group {
    display: flex;
    align-items: center;
    padding: 24px 0;
    flex-shrink: 0;
}

.running-line__item {
    /* font-family: 'proxima_bold', 'Graphik', Arial, sans-serif; */
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #000000;
    white-space: nowrap;
    padding: 0 30px;
}

.running-line__sep {
    color: #00985a;
    font-size: 20px;
    line-height: 1;
    opacity: 0.9;
}

@keyframes runningLineScroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 767px) {
    .running-line__item {
        font-size: 17px;
        padding: 0 16px;
    }
    .running-line__group {
        padding: 15px 0;
    }
    .running-line__track {
        animation-duration: 20s;
    }
    .running-line__sep {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .running-line__track {
        animation-duration: 80s;
    }
}