@charset "UTF-8";
/* ============================================================
   MinecraftZone - about.css: страница «О нас», лента истории по годам
   Тема (стекло, шапка, лист) берётся из global.css и glass.css, здесь только сама лента.
   ============================================================ */

#history .content {
    max-width: 1180px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 8px 0;
}

/* вертикальная линия по центру с плавным затуханием вниз */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(var(--main-color), rgba(240, 199, 94, 0.12));
}

.year {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    scroll-margin-top: 140px;
}

/* плашка с годом сидит на линии */
.year-mark {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    padding: 6px 16px;
    border: 1px solid var(--main-color);
    border-radius: 999px;
    background: #8A5410;
    color: #F3EEE2;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.year-card {
    padding: 22px 26px;
    border: 1px solid var(--card-line, rgba(255, 255, 255, 0.10));
    border-radius: var(--r-card, 14px);
    background: var(--card-bg, rgba(255, 255, 255, 0.04));
    transition: border-color 0.15s ease, background 0.15s ease;
}

.year-card:hover {
    border-color: var(--glass-gold, rgba(240, 199, 94, 0.55));
    background: rgba(255, 255, 255, 0.07);
}

/* карточки чередуются: нечётные слева от линии, чётные справа */
.year:nth-child(odd) .year-card {
    grid-column: 1;
    margin-right: 56px;
}

.year:nth-child(even) .year-card {
    grid-column: 2;
    margin-left: 56px;
}

.year-card h3 {
    margin: 0 0 8px;
    color: #F5F0E4;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.year-card p {
    margin: 0;
    color: var(--description-color);
    font-size: 16px;
    line-height: 1.7;
}

/* последний узел «сейчас»: золотая плашка и кнопки связи */
.year.now .year-mark {
    background: var(--main-color);
    color: #1B1B1B;
}

.year.now .year-card {
    border-color: var(--glass-gold, rgba(240, 199, 94, 0.55));
}

.year-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.year-actions a {
    text-decoration: none;
}

@media (max-width: 819px) {
    .timeline {
        gap: 24px;
        padding-left: 0;
    }

    /* на телефоне линия слева, год над карточкой, карточки на всю ширину */
    .timeline::before {
        left: 7px;
        transform: none;
    }

    .year {
        display: block;
        padding-left: 30px;
    }

    .year::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 0;
        width: 16px;
        height: 16px;
        border: 3px solid var(--main-color);
        border-radius: 50%;
        background: #1B1B1B;
    }

    .year-mark {
        position: static;
        display: inline-block;
        margin: 0 0 10px;
        transform: none;
    }

    .year:nth-child(odd) .year-card,
    .year:nth-child(even) .year-card {
        margin: 0;
    }

    .year-card {
        padding: 18px 18px;
    }
}
