.timeline {
    display: grid;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}

.timeline--title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 18px;
}

/* Базовое состояние — скрыты */
.timeline--item {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(40px);
}

/* Анимация запускается только при добавлении класса */
.timeline--item.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Анимация появления */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка для каждого элемента */
.timeline--item.animate:nth-child(1) { animation-delay: 0.1s; }
.timeline--item.animate:nth-child(2) { animation-delay: 0.3s; }
.timeline--item.animate:nth-child(3) { animation-delay: 0.5s; }
.timeline--item.animate:nth-child(4) { animation-delay: 0.7s; }
.timeline--item.animate:nth-child(5) { animation-delay: 0.9s; }
.timeline--item.animate:nth-child(6) { animation-delay: 1.1s; }
.timeline--item.animate:nth-child(7) { animation-delay: 1.3s; }
.timeline--item.animate:nth-child(8) { animation-delay: 1.5s; }
.timeline--item.animate:nth-child(9) { animation-delay: 1.7s; }
.timeline--item.animate:nth-child(10) { animation-delay: 1.9s; }
.timeline--item.animate:nth-child(11) { animation-delay: 2.1s; }
.timeline--item.animate:nth-child(12) { animation-delay: 2.3s; }
.timeline--item.animate:nth-child(13) { animation-delay: 2.5s; }

.timeline--item--title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.timeline--item--left {
    text-align: right;
    max-width: 403px;
    width: 100%;
}

.timeline--item--right {
    margin-left: 517px;
    max-width: 403px;
    width: 100%;
}

.timeline--item--right,
.timeline--item--left {
    padding-bottom: 70px;
}

.timeline--item > div:before {
    content: '';
    position: absolute;
    height: 100%;
    border-left: 1px dashed #C6C6C6;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline--item--grey > div:before {
    border-left: 1px solid #ABCF39;
}

.timeline--item--right:after,
.timeline--item--left:after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #ABCF39;
    border-radius: 100%;
    top: 16px;
    transform: translate(-50%, -8px);
    left: 50%;
    z-index: 2;
}

.timeline--item--top > div {
    padding-bottom: 118px;
}

.timeline--item--top > div:after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: #ABCF39;
    border-radius: 100%;
    top: 0;
    transform: translate(-50%, -8px);
    left: 50%;
    z-index: 2;
}

.timeline--item--bottom > div {
    padding-bottom: 0;
}

.timeline--item--bottom > div:after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: #C6C6C6;
    border-radius: 100%;
    top: 0;
    transform: translate(-50%, -8px);
    left: 50%;
    z-index: 2;
}

.timeline--item--gray:after {
    background-color: #fff;
    border: 1px solid #C6C6C6;
}

@media (max-width: 960px) {
    .timeline--item--right,
    .timeline--item--left {
        margin-left: 55px;
        text-align: left;
        max-width: 77%;
    }

    .timeline--item--top > div:after {
        left: 5%;
    }

    .timeline--item > div:before {
        left: 5%;
    }

    .timeline--item--right:after,
    .timeline--item--left:after {
        left: 5%;
    }

    .timeline--item--bottom > div:after {
        left: 5%;
    }
}