.route {
    display: flex;
    flex-direction: column;
    counter-reset: blockIndex;
    padding: 10px 0;
}
.route__item {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    counter-increment: blockIndex;
    padding: 40px 0;
}
.route__item + .route__item {
    margin-top: -2px;
}
.route__item:before {
    content: counter(blockIndex);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    color: var(--color-primary-inverse);
    flex: 0 0 auto;
}
.route__desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.route__name {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.1;
    margin: 0;
}
.route__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.15;
    max-width: 280px;
    margin: 0;
}
.route__item:not(:first-child) {
    padding-top: 40px;
}
.route__item:not(:last-child) {
    padding-bottom: 40px;
}
.route__item:not(:first-child) .route__desc:before,
.route__item:not(:last-child) .route__desc:after {
    content: "";
    position: absolute;
    width: calc(50% - 25px);
    height: calc(50% - 32px);
    opacity: 0.5;
}
.route__item:not(:first-child) .route__desc:before {
    right: 25px;
    top: 0;
    border-radius: 0 20px 0 0;
    border-top: 2px dashed var(--color-primary);
    border-right: 2px dashed var(--color-primary);
}
.route__item:not(:last-child) .route__desc:after {
    left: 25px;
    bottom: 0;
    border-radius: 0 0 0 20px;
    border-left: 2px dashed var(--color-primary);
    border-bottom: 2px dashed var(--color-primary);
}
.route__item:not(:first-child) .route__name:before,
.route__item:not(:last-child) .route__name:after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    z-index: 1;
    left: 23px;
}
.route__item:not(:first-child) .route__name:before {
    top: calc(50% - 32px);
}
.route__item:not(:last-child) .route__name:after {
    top: calc(50% + 32px);
}
.route__item:nth-child(2n+2) {
    flex-direction: row-reverse;
}
.route__item:nth-child(2n+2) .route__name:before,
.route__item:nth-child(2n+2) .route__name:after {
    left: auto;
    right: 23px;
}
.route__item:nth-child(2n+2) .route__desc {
    align-items: flex-end;
    text-align: right;
}
.route__item:nth-child(2n+2) .route__desc:after {
    left: auto;
    right: 25px;
    border-left: none;
    border-right: 2px dashed var(--color-primary);
    border-radius: 0 0 20px 0;
}
.route__item:nth-child(2n+1) .route__desc:before {
    right: auto;
    left: 25px;
    border-right: none;
    border-left: 2px dashed var(--color-primary);
    border-radius: 20px 0 0 0;
}
@media screen and (min-width: 768px) {
    .route {
        padding: 10px 50px;
    }
    .route__item {
        gap: 32px;
    }
    .route__item:before {
        width: 72px;
        height: 72px;
        font-size: 36px;
    }
    .route__name {
        font-size: 28px;
    }
    .route__text {
        font-size: 16px;
        max-width: 580px;
    }
    .route__item:not(:first-child) .route__desc:before,
    .route__item:not(:last-child) .route__desc:after {
        width: calc(50% - 36px);
        height: calc(50% - 52px);
    }
    .route__item:not(:first-child) .route__desc:before {
        right: 36px;
    }
    .route__item:not(:last-child) .route__desc:after {
        left: 36px;
    }
    .route__item:not(:first-child) .route__name:before,
    .route__item:not(:last-child) .route__name:after {
        left: 34px;
    }
    .route__item:not(:first-child) .route__name:before {
        top: calc(50% - 52px);
    }
    .route__item:not(:last-child) .route__name:after {
        top: calc(50% + 52px);
    }
    .route__item:nth-child(2n+2) .route__name:before,
    .route__item:nth-child(2n+2) .route__name:after {
        left: auto;
        right: 34px;
    }
    .route__item:nth-child(2n+2) .route__desc:after {
        left: auto;
        right: 36px;
    }
    .route__item:nth-child(2n+1) .route__desc:before {
        right: auto;
        left: 36px;
    }
}