:root {
    --custom-speed: 120;
    /* px / second */
    --custom-gap: 24px;
    --custom-slide-height: 180px;
}


* {
    box-sizing: border-box
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    margin: 32px;
    background: #f6f7fb;
    color: #111
}


.custom-slider-note {
    max-width: 900px;
    margin: 0 auto 18px;
    line-height: 1.4
}


.custom-slider-wrap {
    overflow: hidden
}

.custom-slider {
    display: block;
    width: 100%;
    background: transparent;
    padding: 10px 0;
}


.custom-track {
    display: flex;
    gap: var(--custom-gap);
    align-items: center;
    will-change: transform;
    animation: custom-scroll linear infinite;
    animation-play-state: running;
}


.custom-slide {
    flex: 0 0 auto;
    width: 300px;
    height: var(--custom-slide-height);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(11, 20, 40, 0.08);
    user-select: none;
    padding: 40px;
}


.c1 {
    background: linear-gradient(135deg, #ff6b6b, #fbc2eb)
}

.c2 {
    background: linear-gradient(135deg, #4facfe, #00f2fe)
}

.c3 {
    background: linear-gradient(135deg, #43e97b, #38f9d7)
}

.c4 {
    background: linear-gradient(135deg, #fddb92, #d1fdff)
}

.c5 {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb)
}


@keyframes custom-scroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(calc(-1 * var(--custom-translate-end)))
    }
}


@media (max-width:520px) {
    .custom-slide {
        width: 220px;
        height: 140px;
        font-size: 16px
    }
}