:root {
    --size: clamp(10rem, 1rem + 40vmin, 30rem);
    --gap: calc(var(--size) / 14);
    --duration: 40s;
    --scroll-start: 0;
    --scroll-end: calc(-100% - var(--gap));
}

@keyframes scroll-x {
    from {
        transform: translateX(var(--scroll-start));
    }
    to {
        transform: translateX(var(--scroll-end));
    }
}
@keyframes scroll-y {
    from {
        transform: translateY(var(--scroll-start));
    }
    to {
        transform: translateY(var(--scroll-end));
    }
}

.technologies-slider * {
    box-sizing: border-box;
}

.technologies-slider {
    padding-top: 88px !important;
    padding-bottom: 140px !important;
}

.technologies-slider h2 {
    margin-bottom: 45px;
    max-width: 815px;
}

@media screen and (max-width: 1024px) {
    .technologies-slider {
        /*padding: 64px 0 128px 0 !important;*/
        padding-top: 64px !important;
        padding-bottom: 128px !important;
    }

    .technologies-slider > .wrapper {
        padding-top: 32px !important;
    }
}

@media screen and (max-width: 768px) {
    .technologies-slider {
        /*padding: 32px 0 104px 0 !important;*/
        padding-top: 32px !important;
        padding-bottom: 104px !important;
    }
}

.technologies-slider .horizontal-scroll-list-item {
    margin-right: 30px;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    margin-bottom: 45px;
}

.marquee:last-child {
    margin-bottom: 0;
}

.marquee__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: scroll-x var(--duration) linear infinite;
}

.marquee--vertical {
    --mask-direction: to bottom;
}

.marquee--vertical, .marquee--vertical .marquee__group {
    flex-direction: column;
}

.marquee--vertical .marquee__group {
    animation-name: scroll-y;
}

.marquee--reverse .marquee__group {
    animation-direction: reverse;
    animation-delay: -3s;
}

.wrapper {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 100vw;
}
.wrapper--vertical {
    flex-direction: row;
    height: 100vh;
}

.horizontal-scroll-list-item {
    display: inline-flex;
    font-size: 28px;
    font-weight: 500;
    padding: 30px 0;
    border-radius: 10px;
    border: 2px solid black;
    width: 300px;
    justify-content: center;
    white-space: nowrap;
}

@media screen and (max-width: 1024px) {
    .technologies-slider {
        padding-top: 80px;
        padding-bottom: 120px;
    }

    .technologies-slider .title--circle:after {
        right: -10px;
    }
}

@media screen and (max-width: 768px) {
    .technologies-slider {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .marquee {
        margin-bottom: 25px;
    }

    .horizontal-scroll-list-item {
        font-size: 22px;
        padding: 20px 70px;
        width: 200px;
    }

    .technologies-slider .title--circle {
        max-width: 330px;
        font-size: 28px !important;
    }

    .technologies-slider .title--circle:after {
        right: auto;
        left: 105px;
    }

    .technologies-slider h2 {
        margin-bottom: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__group {
        animation-play-state: paused;
    }
}
