.stage-items-out {
    overflow-x: auto;
    margin: 0 -15px;
    padding: 0 0 10px 15px;
}

.stage-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
    width: 1200px;
}

.stage-item {
    position: relative;
    z-index: 0;
    padding: 16px 40px 16px 21px; 
}

.stage-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 20px;
    border: 3px dotted var(--item-color);
    border-radius: 30px;
    z-index: -2; 
}

.stage-item::after {
    content: "";
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 20px;
    left: 40%;
    background: var(--item-color);
    border-radius: 30px;
    z-index: -1;
}

.stage-item-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    height: 100%;
    padding: 24px 14px 24px;
    border: 3px solid #E6E6E6;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stage-item-inner::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -40px; 
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid var(--item-color);
    z-index: -1; 
}

.stage-item:last-child .stage-item-inner::after {
    display: none;
}

.stage-number {
    display: flex;
    display: none;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 3px dotted var(--item-color);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: var(--item-color);
    flex-shrink: 0;
}

.stage-item-inner h3 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.2;
}

.stage-txt {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    flex-grow: 1;
}

.stage-img {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-img img {
    max-height: 100%;
    width: auto;
    filter: brightness(0) saturate(100%) invert(29%) sepia(21%) saturate(1682%) hue-rotate(178deg) brightness(97%) contrast(87%);
}



@media screen and (min-width: 768px) {
    .art-stages .section-slides {
        display: none;
    }

    .stage-items-out {
        margin: 0;
        padding: 0;
    }

    .stage-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .stage-item-inner h3 {
        font-size: 24px;
    }
}

@media screen and (min-width: 1024px) {
    .stage-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 20px;
    }
}

@media screen and (min-width: 1200px) {
    .stage-items {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 34px;
    }
}