.timeline {
    margin-top: 60px;
}

.timeline__title {
    line-height: 46px;
}

.timeline__title span {
    color: var(--c-blue);
}

.timeline__text {
    max-width: 1038px;
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 24px;
}

.timeline__grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    margin-top: 24px;
}

.timeline__years {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 14px;
}

.timeline__year {
    min-width: 86px;
    padding: 8px 16px;
    border-radius: 9999px;
    color: var(--c-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 26.4px;
    text-align: center;
    text-decoration: none;
}

.timeline__year:hover {
    color: var(--c-blue);
}

.timeline__year.is-active {
    background: var(--c-blue);
    color: #fff;
}

.timeline__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 792px;
    margin: 0;
    padding: 0 0 0 12px;
    overflow-y: auto;
    background: linear-gradient(var(--c-blue), var(--c-blue)) 9px 0 / 3px 100% no-repeat;
    list-style: none;
    scrollbar-width: thin;
}

.timeline__item {
    position: relative;
    display: flex;
    flex: none;
    justify-content: space-between;
    gap: 24px;
    min-height: 248px;
    padding: 24px 24px 24px 20px;
    border-radius: 12px;
    background: var(--c-grey-50);
}

.timeline__item:focus:not(:focus-visible) {
    outline: none;
}

.timeline__item:first-child {
    border-top-left-radius: 0;
}

.timeline__item:last-child {
    border-bottom-left-radius: 0;
}

.timeline__item::before {
    content: "";
    position: absolute;
    top: 37px;
    left: -10.5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-blue);
}

.timeline__body {
    display: flex;
    flex-direction: column;
    max-width: 542px;
}

.timeline__item-year {
    font-size: 22px; font-weight: 700; line-height: 46px;
}

.timeline__item-title {
    margin: 0; font-size: 26px; font-weight: 700; line-height: 46px;
}

.timeline__item-text {
    margin: 17px 0 0;
    color: var(--c-grey-600);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.timeline__image {
    flex: none;
    width: 360px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .timeline__grid {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .timeline__image {
        width: 240px; height: auto; aspect-ratio: 9 / 5;
    }
}

@media (max-width: 860px) {
    .timeline__title {
        font-size: 32px; line-height: 40px;
    }

    .timeline__grid {
        grid-template-columns: 1fr;
    }

    .timeline__years {
        flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0 0 24px;
    }

    .timeline__year {
        min-width: 0; font-size: 18px;
    }

    .timeline__item {
        flex-direction: column;
    }

    .timeline__item-title {
        line-height: 32px;
    }

    .timeline__image {
        width: 100%;
    }
}

@media print {
    .timeline__list {
        max-height: none;
        overflow: visible;
    }
}
