.events-list {
    padding: 48px 0 72px;
    background: var(--soft, #f5f7fb);
}

.events-list__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.events-list__summary {
    color: var(--muted, #647084);
    font-size: 0.95rem;
}

.events-list__summary strong {
    color: var(--ink, #202735);
    font-size: 1.1rem;
}

.events-list__divider {
    margin: 0 6px;
}

.events-list__tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line, #e5e9f0);
    box-shadow: 0 8px 24px rgba(16, 35, 63, 0.06);
}

.events-list__tab {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: transparent;
    color: var(--muted, #647084);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.events-list__tab:hover,
.events-list__tab.is-active {
    background: var(--cms-primary, #284cd8);
    color: #fff;
}

.events-table-wrap {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line, #e5e9f0);
    box-shadow: 0 18px 40px rgba(16, 35, 63, 0.08);
}

.events-list__empty {
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    color: var(--muted, #647084);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
}

.events-table thead {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.events-table th {
    padding: 16px 18px;
    text-align: left;
    color: var(--muted, #647084);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line, #e5e9f0);
}

.events-table__row {
    transition: background 0.2s ease;
}

.events-table__row:hover {
    background: rgba(40, 76, 216, 0.04);
}

.events-table__row + .events-table__row {
    border-top: 1px solid var(--line, #e5e9f0);
}

.events-table__cell {
    padding: 18px;
    vertical-align: top;
    color: var(--ink, #202735);
    font-size: 0.95rem;
    line-height: 1.55;
}

.events-table__event {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 240px;
}

.events-table__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line, #e5e9f0);
}

.events-table__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.events-table__desc {
    margin: 0;
    color: var(--muted, #647084);
    font-size: 0.88rem;
    line-height: 1.55;
}

.events-table__date {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 180px;
}

.events-table__date-badge {
    display: grid;
    gap: 2px;
    min-width: 54px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(40, 76, 216, 0.08);
    text-align: center;
}

.events-table__date-day {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--cms-primary, #284cd8);
}

.events-table__date-month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #647084);
}

.events-table__date time {
    display: block;
    font-weight: 700;
}

.events-table__time {
    display: block;
    margin-top: 4px;
    color: var(--muted, #647084);
    font-size: 0.88rem;
}

.events-table__category {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(40, 76, 216, 0.1);
    color: var(--cms-primary, #284cd8);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.events-table__status {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.events-table__status--upcoming {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.events-table__status--past {
    background: rgba(100, 116, 132, 0.12);
    color: var(--muted, #647084);
}

.events-table__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--cms-primary, #284cd8);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.events-table__action:hover {
    filter: brightness(1.05);
}

.events-table__action--muted {
    background: transparent;
    color: var(--muted, #647084);
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .events-table thead {
        display: none;
    }

    .events-table,
    .events-table tbody,
    .events-table__row,
    .events-table__cell {
        display: block;
        width: 100%;
    }

    .events-table__row {
        padding: 8px 0;
    }

    .events-table__cell {
        display: grid;
        grid-template-columns: minmax(110px, 34%) 1fr;
        gap: 10px 14px;
        padding: 10px 18px;
        border-bottom: 1px solid var(--line, #e5e9f0);
    }

    .events-table__cell::before {
        content: attr(data-label);
        color: var(--muted, #647084);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .events-table__cell--event::before {
        content: none;
    }

    .events-table__cell--event {
        display: block;
        padding-top: 18px;
        border-bottom: 0;
    }

    .events-table__cell--action::before {
        content: none;
    }

    .events-table__cell--action {
        display: block;
        padding-bottom: 18px;
    }
}

@media (max-width: 640px) {
    .events-list__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .events-list__tabs {
        width: 100%;
        justify-content: center;
    }

    .events-table__event {
        flex-direction: column;
    }

    .events-table__thumb {
        width: 100%;
        height: 160px;
    }
}