@import url("../design-tokens.css");

.fuel-systems {
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.fuel-systems__slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 92px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        rgba(4, 7, 8, 0.88);
    box-shadow:
        inset 0 1px 0 var(--color-border-subtle),
        0 18px 38px rgba(0, 0, 0, 0.34);
}

.fuel-systems__viewport {
    width: 100%;
    overflow: hidden;
}

.fuel-systems__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: fuelSystemsMarquee 60s linear infinite;
    will-change: transform;
}

.fuel-systems__slider:hover .fuel-systems__track {
    animation-play-state: paused;
}

.fuel-systems__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.fuel-systems__item::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    margin: 0 34px;
    border-radius: var(--radius-round);
    background: var(--color-brand);
    box-shadow: 0 0 10px rgba(240, 0, 18, 0.9);
}

.fuel-systems__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 46px;
}

.fuel-systems__logo img {
    display: block;
    max-width: 200px;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.96;
}

.fuel-systems__logo span {
    color: var(--color-white);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fuel-systems__arrow {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-brand);
    cursor: pointer;
}

.fuel-systems__arrow svg {
    width: 34px;
    height: 34px;
    fill: none;
}

.fuel-systems__arrow path {
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fuel-systems__slider.is-reverse .fuel-systems__track {
    animation-direction: reverse;
}

@keyframes fuelSystemsMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 760px) {
    .fuel-systems__slider {
        gap: var(--space-2-5);
        min-height: 76px;
        padding: 15px 0;
    }

    .fuel-systems__logo {
        min-width: 96px;
        height: 38px;
    }

    .fuel-systems__logo img {
        max-width: 118px;
        max-height: 34px;
    }

    .fuel-systems__item::after {
        margin: 0 22px;
    }

    .fuel-systems__arrow {
        width: 28px;
    }

    .fuel-systems__arrow svg {
        width: 28px;
        height: 28px;
    }
}