/* ── Зигзаг-таймлайн впровадження ── */
.impl-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.impl-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, .08);
    transform: translateX(-50%);
}

.impl-step {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
}

.impl-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    z-index: 2;
}

.impl-step-card {
    padding: 18px 22px;
    width: 100%;
}

/* непарні кроки (1,3,5) — зліва, номер перед карткою */
.impl-step:nth-child(odd) {
    justify-content: flex-end;
    padding-right: 40px;
    flex-direction: row;
    gap: 14px;
}

.impl-step:nth-child(odd) .impl-step-num {
    order: -1;
}

/* парні кроки (2,4) — праворуч, номер перед карткою */
.impl-step:nth-child(even) {
    margin-left: 50%;
    justify-content: flex-start;
    padding-left: 40px;
    flex-direction: row;
    gap: 14px;
}

/* На мобільних — одна колонка, лінія зліва */
@media (max-width: 768px) {
    .impl-timeline::before {
        left: 18px;
    }

    .impl-step,
    .impl-step:nth-child(odd),
    .impl-step:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
        flex-direction: row;
    }

    .impl-step:nth-child(odd) .impl-step-num {
        order: 0;
        position: absolute;
        left: 0;
    }

    .impl-step:nth-child(even) .impl-step-num {
        position: absolute;
        left: 0;
    }
}