/* Раздел «Мероприятия» — стили поверх .acard / .acards__grid / .detail-* */

/* --- Бейдж формата (ОНЛАЙН / ОФЛАЙН / ГИБРИД) --- */
.event-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}
.event-badge--online  { background: #1f9d57; }   /* зелёный */
.event-badge--offline { background: #d97706; }   /* оранжевый */
.event-badge--hybrid  { background: #3a5a7c; }   /* синий */

/* Бейдж поверх обложки карточки */
.event-card .acard__media { position: relative; }
.event-card .acard__media .event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
/* Бейдж в теле карточки без обложки */
.event-badge--inline {
    align-self: flex-start;
    margin-bottom: 10px;
}

/* --- Карточка мероприятия --- */
.event-card__dates {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3a5a7c;
    margin-bottom: 8px;
}
.event-card__dates i { opacity: 0.8; }

.event-card__meta {
    justify-content: space-between;
}
.event-card__price {
    font-weight: 700;
    color: #1f9d57;
}
.event-card__participants {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}
.event-card--past { opacity: 0.85; }
.event-card--past .event-card__price { color: #94a3b8; }

/* --- Заголовки секций списка --- */
.events-section__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 8px 0 20px;
}
.events-section__heading--archive {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid #1a1a1a;
    color: #5b6675;
}

/* --- Деталь: подзаголовок в hero --- */
.detail-hero__subtitle {
    margin: 10px 0 0;
    font-size: 1.0625rem;
    line-height: 1.5;
    opacity: 0.92;
}
.detail-hero--simple .detail-hero__subtitle { color: #5b6675; }
.detail-hero__content .event-badge { margin-bottom: 14px; }

/* --- Деталь: блок «Информация о мероприятии» --- */
.event-info {
    background: #f7f9fb;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.event-info__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}
.event-info__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
}
.event-info__label i { width: 16px; text-align: center; color: #3a5a7c; }
.event-info__value {
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.55;
    text-transform: capitalize;
}
.event-info__tz {
    text-transform: none;
    font-weight: 600;
    color: #5b6675;
}

/* --- Деталь: CTA-кнопка регистрации --- */
.event-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1f9d57;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    margin: 4px 0 28px;
}
.event-cta:hover { background: #178046; transform: translateY(-2px); }
.event-cta--bottom { margin: 32px 0; }

/* --- Адаптив --- */
@media (max-width: 600px) {
    .event-info__row { grid-template-columns: 1fr; gap: 4px; }
    .event-cta { width: 100%; justify-content: center; }
}
