.service-steps {
    background: #FFFFFF;
    padding-top: 160px;
    padding-bottom: 312px;
    overflow-x: clip;
}

.service-steps__title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 55px;
    line-height: 64px;
    color: #5C075E;
    margin: 0 0 -50px 0;
}

/* clip-wrap — измерительный контейнер для JS, визуально прозрачный */
.service-steps__clip-wrap {
    overflow: visible;
}

.service-steps__timeline {
    position: relative;
    height: 495px;
    transform: translateX(0);
    transition: transform 0.4s ease;
    will-change: transform;
}

.service-steps__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 324px;
    height: 2px;
    background: #DCBADC;
    z-index: 1;
}

.service-steps__step {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 0;
}

.service-steps__marker {
    position: absolute;
    top: 312px;
    left: 0;
    z-index: 4;
}

.service-steps__marker-icon {
    display: block;
    width: 25px;
    height: 24px;
    fill: #8D2A8F;
}

.service-steps__step:nth-child(2) .service-steps__item-content { width: 430px; }
.service-steps__step:nth-child(3) .service-steps__item-content { width: 465px; }
.service-steps__step:nth-child(4) .service-steps__item-content { width: 626px; }
.service-steps__step:nth-child(5) .service-steps__item-content { width: 626px; height: 225px; }
.service-steps__step:nth-child(n+6) .service-steps__item-content { width: 625px; height: 225px; }

.service-steps__item-content {
    position: absolute;
    left: 29px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-steps__item-content::before {
    content: '';
    position: absolute;
    left:  -22px;
    width: 0;
    border-left: 2px dashed #DCBADC;
    z-index: 2;
}

.service-steps__step--bottom .service-steps__item-content::before {
    top: -48px;
    bottom: 0;
}

.service-steps__step--top .service-steps__item-content::before {
    top: 0;
    bottom: -48px;
}

.service-steps__step--bottom .service-steps__item-content {
    top: calc(324px + 60px);
}

.service-steps__step--top .service-steps__item-content {
    top: calc(324px - 60px);
    transform: translateY(-100%);
}

.service-steps__item-title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 38px;
    color: #5C075E;
    margin: 0;
}

.service-steps__item-text {
    font-family: Manrope, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    color: #5C075E;
}

@media (max-width: 1024px) {
    .service-steps {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .service-steps__title {
        font-size: 34px;
        line-height: 46px;
        margin-bottom: 0;
    }

    .service-steps__nav {
        gap: 20px;
    }

    .service-steps__arrow {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .service-steps__item-title {
        font-size: 18px;
        line-height: 25px;
    }

    .service-steps__item-text {
        font-size: 12px;
        line-height: 18px;
    }

    .service-steps__item-content {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .service-steps {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .service-steps__nav {
        display: none;
    }

    .service-steps__header {
        margin-bottom: 25px;
    }

    .service-steps__timeline {
        height: auto !important;
        min-width: unset !important;
        transform: none !important;
        transition: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        position: relative;
    }

    .service-steps__line { display: none !important; }

    .service-steps__nav {
        display: none !important;
    }

    /* Вертикальная пунктирная линия */
    .service-steps__timeline::before {
        content: '';
        position: absolute;
        left: 9px;
        top: 0;
        bottom: 0;
        width: 0;
        border-left: 1px dashed #DCBADC;
        z-index: 0;
    }

    .service-steps__step,
    .service-steps__step--bottom,
    .service-steps__step--top {
        position: static !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px;
        padding-bottom: 20px;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: 1;
    }

    .service-steps__marker {
        position: static !important;
        display: block !important;
        flex-shrink: 0;
        top: auto !important;
        left: auto !important;
    }

    .service-steps__marker-icon {
        width: 19px;
        height: 18px;
    }

    .service-steps__item-content,
    .service-steps__step:nth-child(2) .service-steps__item-content,
    .service-steps__step:nth-child(3) .service-steps__item-content,
    .service-steps__step:nth-child(4) .service-steps__item-content,
    .service-steps__step:nth-child(5) .service-steps__item-content,
    .service-steps__step:nth-child(n+6) .service-steps__item-content {
        position: static !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        flex: 1;
    }

    .service-steps__item-content::before { display: none !important; }
}

@media (max-width: 576px) {
    .service-steps { padding-bottom: 35px !important; margin-bottom: 35px !important; }

    .service-steps__title {
        font-size: 24px;
        line-height: 27px;
    }

    .service-steps__item-title {
        font-size: 16px;
        line-height: 22px;
    }

    .service-steps__item-text {
        font-size: 12px;
        line-height: 18px;
    }
}

.service-steps__header {
    display:flex;
    justify-content:space-between;

}

.service-steps__nav {
    display:flex;
    gap:16px;
}

.service-steps__arrow {
    width:68px;
    height:68px;
    border-radius:50%;
    background:#8D2A8F;
    border:none;
    color:#fff;
    font-size:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.2s;
}

.service-steps__arrow:hover {
    transform:scale(1.05);
    box-shadow:0 6px 14px rgba(0,0,0,.25);
}

.service-steps__arrow:disabled {
    opacity:.4;
    cursor:not-allowed;
}