

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.start-icon, .end-icon {
    text-align: center;
    font-size: 24px;
    color: #81d100;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.timeline-item .timeline-content,
.timeline-item .timeline-image {
    width: 45%;
}

.timeline-item .timeline-content {
    text-align: right; /* Выравнивание текста по правому краю */
}

.timeline-item .timeline-image img {
    width: 60%;
}

.timeline-item .left {
    order: 1;
}

.timeline-item .right {
    order: 2;
}

.timeline-item:nth-child(even) .left {
    order: 2;
}

.timeline-item:nth-child(even) .right {
    order: 1;
}


.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #81d100;
    top: 20px; /* Смещение линии вниз */
    bottom: 20px; /* Смещение линии вверх */
    left: 50%;
    margin-left: -2px;
    z-index: -1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #81d100;
    border: 2px solid #fff;
    top: 50%;
    left: 50%;
    margin-left: -6px;
    margin-top: -6px;
    z-index: 1;
    box-shadow: 0 0 0 4px #81d100;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 60px;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right; /* Выравнивание текста по правому краю */
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right; /* Выравнивание текста по правому краю */
}

@media screen and (width < 480px){
    .timeline{
        padding: 0px;
    }
    .timeline-item{
        padding: 0px;
    }
    .timeline-item:nth-child(even){
        
        padding: 0px;
    }
}