/* ION Heat — Timeline / Story & Milestones */

.timeline .container {
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Шапка */
.timeline__head {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
}

.timeline__top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
}

.timeline__line-accent {
    border: none;
    border-top: 1px solid var(--main);
    align-self: stretch;
    margin: 0;
}

.timeline__label {
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    line-height: 130%;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline__title {
    color: var(--text);
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    align-self: stretch;
}

.timeline__desc {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    align-self: stretch;
}

/* Таймлайн */
.timeline__body {
    display: flex;
    flex-direction: row;
    gap: 45px;
    align-items: flex-start;
    align-self: stretch;
}

/* Вертикальная линия с иконками */
.timeline__track {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 10px;
}

.timeline__track-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--fon2);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    z-index: 1;
}

.timeline__icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

.timeline__connector {
    width: 1px;
    flex: 1;
    min-height: 32px;
    background: var(--text);
}

.timeline__track-item:last-child .timeline__connector {
    display: none;
}

/* Пункты */
.timeline__items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
    padding-top: 10px;
}

.timeline__item {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

.timeline__year {
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 130%;
    font-weight: 500;
    flex-shrink: 0;
    width: 80px;
}

.timeline__text {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    flex: 1;
}

.timeline__text strong,
.timeline__text b {
    font-weight: 600;
}

.timeline__text u {
    text-decoration: underline;
}

/* Фото внизу */
.timeline__photo {
    border-radius: 12px;
    align-self: stretch;
    width: 100%;
    height: 466px;
    object-fit: cover;
    display: block;
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .timeline__title {
        font-size: clamp(32px, 5vw, 64px);
    }

    .timeline__track {
        display: none;
    }

    .timeline__body {
        gap: 0;
    }

    .timeline__items {
        padding-top: 0;
        gap: 24px;
    }

    .timeline__item {
        border-left: 2px solid var(--main);
        padding-left: 20px;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .timeline .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .timeline__item {
        flex-direction: column;
        gap: 8px;
    }

    .timeline__year {
        width: auto;
        font-size: 22px;
    }

    .timeline__photo {
        height: 240px;
    }
}