/* фон всей секции */
.history-timeline {
    position: relative;
    background: #f4f8fb;
    padding: 60px 0;
}

/* линия */
.history-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: #2c8aa0; /* цвет из меню */
    transform: translateX(-50%);
}

/* строки */
.history-row {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.history-row.left {
    left: 0;
    text-align: right;
}

.history-row.right {
    left: 50%;
}

/* карточка */
.history-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.history-card:hover {
    transform: translateY(-5px);
}

/* картинка */
.history-image-wrap {
    height: 220px;
    overflow: hidden;
}

.history-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* контент */
.history-content {
    padding: 20px;
}

/* год */
.history-year {
    color: #2c8aa0;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

/* заголовок */
.history-title {
    color: #1e2a3a;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* текст */
.history-text {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* точки */
.history-row::after {
    content: "";
    position: absolute;
    top: 30px;
    width: 14px;
    height: 14px;
    background: #2c8aa0;
    border-radius: 50%;
}

/* позиция */
.history-row.left::after {
    right: -7px;
}

.history-row.right::after {
    left: -7px;
}

@media (max-width: 900px) {
    .history-timeline::before {
        left: 20px;
    }

    .history-row {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .history-row.right,
    .history-row.left {
        left: 0;
        text-align: left;
    }

    .history-row::after {
        left: 13px;
    }
}