/**
 * RAEM Events — Стили каталога и карточек мероприятий (/events/)
 * Редакционная дизайн-система RAEM.KZ (строгая деловая типографика, без эмодзи и пилюль)
 */

:root {
    --re-primary: #2563EB;
    --re-primary-hover: #1D4ED8;
    --re-primary-light: #EFF6FF;
    --re-primary-border: #DBEAFE;
    --re-text-dark: #0F172A;
    --re-text-muted: #64748B;
    --re-text-sub: #334155;
    --re-bg-page: #FFFFFF;
    --re-bg-card: #FFFFFF;
    --re-border-light: #E2E8F0;
    --re-border-hover: #CBD5E1;
    --re-radius-tag: 4px;
    --re-radius-btn: 6px;
    --re-radius-card: 8px;
    --re-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --re-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    --re-container-max: 1200px;
}

/* Базовые сбросы для изоляции */
.re-page-wrap {
    background-color: var(--re-bg-page);
    color: var(--re-text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.re-page-wrap *, .re-page-wrap *::before, .re-page-wrap *::after {
    box-sizing: border-box;
}

/* Полная изоляция от глобальных стилей темы и Elementor Kit */
.re-page-wrap a,
.re-page-wrap a:hover,
.re-page-wrap a:focus,
.re-page-wrap a:active {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-decoration: none !important;
}

/* Принудительная защита цвета текста на кнопках с темным/синим фоном от глобального Elementor CSS */
.re-page-wrap a.btn-reg,
.re-page-wrap a.btn-reg *,
.re-page-wrap a.btn-sidebar-reg,
.re-page-wrap a.btn-sidebar-reg *,
.re-page-wrap a.btn-mobile-reg,
.re-page-wrap a.btn-mobile-reg *,
.re-page-wrap a.btn-major-link,
.re-page-wrap a.btn-major-link *,
.re-page-wrap a.btn-guide-banner,
.re-page-wrap a.btn-guide-banner *,
.re-page-wrap a.btn-editorial,
.re-page-wrap a.btn-editorial * {
    color: #FFFFFF !important;
}

.re-page-wrap a.btn-reg:hover,
.re-page-wrap a.btn-reg:hover *,
.re-page-wrap a.btn-sidebar-reg:hover,
.re-page-wrap a.btn-sidebar-reg:hover *,
.re-page-wrap a.btn-mobile-reg:hover,
.re-page-wrap a.btn-mobile-reg:hover *,
.re-page-wrap a.btn-major-link:hover,
.re-page-wrap a.btn-major-link:hover *,
.re-page-wrap a.btn-guide-banner:hover,
.re-page-wrap a.btn-guide-banner:hover *,
.re-page-wrap a.btn-editorial:hover,
.re-page-wrap a.btn-editorial:hover * {
    color: #FFFFFF !important;
}

/* Изоляция цвета текста для светлых/контурных кнопок */
.re-page-wrap a.btn-details,
.re-page-wrap a.btn-details *,
.re-page-wrap a.btn-major-guide,
.re-page-wrap a.btn-major-guide *,
.re-page-wrap a.btn-sidebar-ics,
.re-page-wrap a.btn-sidebar-ics *,
.re-page-wrap a.btn-mobile-ics,
.re-page-wrap a.btn-mobile-ics * {
    color: #0F172A !important;
}

.re-page-wrap a.btn-details:hover,
.re-page-wrap a.btn-details:hover *,
.re-page-wrap a.btn-major-guide:hover,
.re-page-wrap a.btn-major-guide:hover * {
    color: var(--re-primary) !important;
}

/* Изоляция цвета заголовков карточек (строго темно-графитовый, синий только по наведению) */
.re-page-wrap a.re-card-title,
.re-page-wrap .re-major-title a {
    color: #0F172A !important;
    transition: color 0.15s ease;
}
.re-page-wrap a.re-card-title:hover,
.re-page-wrap .re-major-title a:hover {
    color: var(--re-primary) !important;
}

.re-container {
    max-width: var(--re-container-max);
    margin: 0 auto;
    padding: 20px 20px 80px;
    width: 100%;
}

/* Хлебные крошки */
.re-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--re-text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.re-crumbs a {
    color: var(--re-text-muted) !important;
    transition: color 0.15s;
}
.re-crumbs a:hover {
    color: var(--re-text-dark) !important;
}
.re-crumbs-sep {
    color: #CBD5E1;
}

/* Hero секция каталога */
.re-hero {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--re-border-light);
}
.re-page-wrap .re-hero h1,
.re-hero h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--re-text-dark) !important;
    line-height: 1.25 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.02em !important;
}
.re-hero p {
    font-size: 15px;
    color: var(--re-text-sub);
    max-width: 720px;
    line-height: 1.55;
    margin: 0;
}

/* ========================================================
   ВИТРИНА «ГЛАВНЫЕ СОБЫТИЯ ГОДА»
   ======================================================== */
.re-major-showcase {
    margin-bottom: 36px;
}
.re-section-heading {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.re-section-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.re-page-wrap .re-section-title,
.re-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--re-text-dark) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    letter-spacing: -0.015em !important;
}
.re-section-subtitle {
    font-size: 13.5px;
    color: var(--re-text-muted);
    margin: 0;
}
.re-major-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.re-major-card {
    background: #FFFFFF;
    border: 1px solid var(--re-border-light);
    border-radius: var(--re-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--re-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.re-major-card:hover {
    box-shadow: var(--re-shadow-md);
    border-color: #94A3B8;
}
.re-major-visual {
    position: relative;
    height: 185px;
    background: #0F172A;
    overflow: hidden;
}
.re-major-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.re-major-card:hover .re-major-img {
    transform: scale(1.02);
}
.re-major-fallback-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
}
.re-major-fallback-tag {
    font-size: 12px;
    font-weight: 600;
    color: #F8FAFC;
    background: rgba(15, 23, 42, 0.8);
    padding: 5px 12px;
    border-radius: var(--re-radius-tag);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.re-major-badges-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}
.re-major-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.re-major-date-line {
    font-size: 12px;
    font-weight: 600;
    color: var(--re-text-muted);
    margin-bottom: 6px;
}
.re-page-wrap .re-major-title,
.re-major-title {
    font-size: 17.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.01em !important;
}
.re-major-desc {
    font-size: 13.5px;
    color: var(--re-text-sub);
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
}
.re-major-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}
.btn-major-guide {
    background: #FFFFFF;
    color: #0F172A !important;
    border: 1px solid #CBD5E1;
    padding: 7px 13px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-major-guide:hover {
    background: #F8FAFC;
    border-color: var(--re-primary);
}
.btn-major-link {
    background: #0F172A;
    color: #FFFFFF !important;
    padding: 7px 14px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    transition: background 0.15s ease;
}
.btn-major-link:hover {
    background: #1E293B;
}

/* ========================================================
   СТРОГИЕ РЕДАКЦИОННЫЕ ТЕГИ И СТАТУСЫ (БЕЗ ПИЛЮЛЬ И ЭМОДЗИ)
   ======================================================== */
.badge-major-gold {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 4px 8px;
    border-radius: var(--re-radius-tag);
    font-size: 10.5px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap !important;
    user-select: none;
}

.badge-partner {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
    padding: 4px 8px;
    border-radius: var(--re-radius-tag);
    font-size: 11px;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap !important;
    user-select: none;
}

.badge-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--re-radius-tag);
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}
.badge-status.open {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.badge-status.upcoming {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}
.badge-status.running {
    background: #FEFCE8;
    color: #854D0E;
    border: 1px solid #FEF08A;
}
.badge-status.reg_closed {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #CBD5E1;
}
.badge-status.past {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.badge-type {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--re-radius-tag);
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
    line-height: 1.2;
}

/* ========================================================
   ПАНЕЛЬ ВКЛАДОК И ФИЛЬТРОВ КАТАЛОГА
   ======================================================== */
.re-controls-box {
    background: var(--re-bg-card);
    border: 1px solid var(--re-border-light);
    border-radius: var(--re-radius-card);
    padding: 18px 20px;
    margin-bottom: 28px;
    box-shadow: var(--re-shadow-sm);
}
.re-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--re-border-light);
    padding-bottom: 14px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.re-tabs {
    display: flex;
    gap: 6px;
}
.re-tab {
    background: transparent;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--re-text-muted) !important;
    padding: 6px 12px;
    border-radius: var(--re-radius-btn);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.re-tab:hover {
    color: var(--re-text-dark) !important;
    background: #F8FAFC;
}
.re-tab.active {
    color: var(--re-text-dark) !important;
    background: #F1F5F9;
    border-color: #CBD5E1;
}
.re-tab-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--re-radius-tag);
    background: #E2E8F0;
    color: var(--re-text-sub);
}
.re-tab.active .re-tab-badge {
    background: #0F172A;
    color: #FFFFFF;
}

/* Фильтры (аккуратные прямоугольные кнопки вместо круглых пилюль) */
.re-filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.re-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.re-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--re-text-muted);
    margin-right: 6px;
    min-width: 72px;
    flex-shrink: 0;
}
.re-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 500 !important;
    color: var(--re-text-sub) !important;
    background: #FFFFFF;
    border: 1px solid var(--re-border-light);
    transition: all 0.15s ease;
    white-space: nowrap !important;
    line-height: 1.35;
    flex-shrink: 0;
}
.re-pill:hover {
    border-color: #94A3B8 !important;
    color: var(--re-text-dark) !important;
    background: #F8FAFC !important;
}
.re-pill.active {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #0F172A !important;
    font-weight: 600 !important;
}

/* ========================================================
   СЕТКА КАРТОЧЕК КАТАЛОГА
   ======================================================== */
.re-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    width: 100%;
}

.re-card {
    background: var(--re-bg-card);
    border: 1px solid var(--re-border-light);
    border-radius: var(--re-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--re-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    width: 100%;
    min-width: 0;
}
.re-card:hover {
    box-shadow: var(--re-shadow-md);
    border-color: #94A3B8;
}

/* Визуал шапки карточки — четкие чистые обложки без мутного затемнения */
.re-card-visual {
    position: relative;
    height: 156px;
    background: #0F172A;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    overflow: hidden;
}
.re-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.28) 0%, rgba(15,23,42,0.05) 45%, rgba(15,23,42,0.45) 100%);
    pointer-events: none;
    z-index: 1;
}
.re-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.3s ease;
}
.re-card:hover .re-card-img {
    transform: scale(1.02);
}

/* Fallback-обложка карточки в каталоге */
.re-fallback-cover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.re-fallback-pattern {
    width: 100%;
    height: 100%;
    display: block;
}
.re-fallback-content-inner {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 90px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.re-fallback-top-line {
    display: flex;
    gap: 6px;
    align-items: center;
}
.re-fallback-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.re-fallback-city-pill {
    color: #CBD5E1;
    font-size: 10.5px;
    font-weight: 500;
}
.re-fallback-event-name {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.re-card-badges-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    z-index: 2;
}

/* Блок даты календаря [ 8 | НОЯ ] */
.re-date-block {
    background: #FFFFFF;
    border-radius: var(--re-radius-btn);
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    z-index: 2;
    margin-left: auto;
}
.re-date-day {
    font-size: 19px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
}
.re-date-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.re-date-month {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--re-primary);
    text-transform: uppercase;
}
.re-date-time {
    font-size: 10px;
    color: var(--re-text-muted);
    font-weight: 500;
}

/* Тело карточки */
.re-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.re-card-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--re-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    flex-wrap: wrap;
}
.re-card-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--re-text-dark);
    line-height: 1.35;
    margin-bottom: 8px;
    word-break: break-word;
    letter-spacing: -0.01em;
}
.re-card-desc {
    font-size: 13px;
    color: var(--re-text-sub);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
    word-break: break-word;
}

/* Факты карточки: чистая табличная сетка с тонкими разделителями */
.re-card-facts {
    border-top: 1px solid #F1F5F9;
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    font-size: 12px;
    margin-bottom: 14px;
}
.re-fact-item {
    min-width: 0;
}
.re-fact-item-org {
    grid-column: 1 / -1;
}
.re-fact-item span {
    color: var(--re-text-muted);
    display: block;
    font-size: 10.5px;
    margin-bottom: 1px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}
.re-fact-item strong {
    color: var(--re-text-dark);
    font-weight: 600;
    font-size: 12.5px;
    display: block;
    line-height: 1.35;
    word-break: break-word;
}
.re-fact-item-price strong {
    white-space: nowrap !important;
}

/* Подвал карточки */
.re-card-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #F1F5F9;
    padding-top: 12px;
    margin-top: auto;
}
.btn-reg {
    flex-grow: 1;
    background: var(--re-primary);
    color: #FFFFFF !important;
    padding: 8px 12px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.15s ease;
}
.btn-reg:hover {
    background: var(--re-primary-hover);
}
.btn-reg-closed {
    flex-grow: 1;
    background: #F8FAFC !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0;
    padding: 8px 12px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
}
.btn-reg-past {
    background: #334155 !important;
}
.btn-reg-past:hover {
    background: #1E293B !important;
}
.btn-details {
    background: #FFFFFF;
    color: #0F172A !important;
    border: 1px solid #CBD5E1;
    padding: 8px 12px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s ease;
}
.btn-details:hover {
    background: #F8FAFC;
    border-color: var(--re-primary);
}

/* ========================================================
   ОДИНОЧНАЯ КАРТОЧКА СОБЫТИЯ (/event/<slug>/)
   ======================================================== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    width: 100%;
}
.single-main-col {
    min-width: 0;
    width: 100%;
}
.single-hero-card {
    background: #FFFFFF;
    border: 1px solid var(--re-border-light);
    border-radius: var(--re-radius-card);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--re-shadow-sm);
}
.single-cover-wrapper {
    width: 100%;
    max-height: 380px;
    border-radius: var(--re-radius-btn);
    overflow: hidden;
    margin-bottom: 20px;
    background: #0F172A;
}
.single-cover-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}
.single-meta-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--re-text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}
.kicker-type {
    color: var(--re-primary);
    font-weight: 700;
}
.kicker-major {
    color: #0F172A;
    font-weight: 700;
}
.kicker-partner {
    color: #475569;
}
.kicker-status.status-open {
    color: #059669;
}
.kicker-status.status-upcoming {
    color: #2563EB;
}
.kicker-status.status-reg_closed,
.kicker-status.status-past {
    color: #64748B;
}
.kicker-sep {
    color: #CBD5E1;
    user-select: none;
}

.re-page-wrap .single-hero-card h1.single-title,
.re-page-wrap h1.single-title,
.single-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--re-text-dark) !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.015em !important;
    word-break: break-word;
}
.single-organizer-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--re-text-sub);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.radar-link-badge {
    color: var(--re-primary) !important;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.radar-link-badge:hover {
    text-decoration: underline !important;
}

.single-lead-excerpt {
    font-size: 15.5px;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 20px 0;
}

/* Редакционные врезки: гид, анонс, итоги (единый строгий газетный стиль) */
.single-guide-banner,
.editorial-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #0F172A;
    border-radius: var(--re-radius-btn);
    padding: 16px 18px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.guide-banner-body,
.editorial-box-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 200px;
}
.guide-banner-eyebrow,
.editorial-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--re-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.guide-banner-title,
.editorial-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.4;
}
.btn-guide-banner,
.btn-editorial {
    background: #0F172A;
    color: #FFFFFF !important;
    padding: 8px 14px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.btn-guide-banner:hover,
.btn-editorial:hover {
    background: var(--re-primary);
}

/* Одиночная страница: блок «Серия и прошлые годы» */
.single-past-years-box {
    border-top: 1px solid var(--re-border-light);
    padding-top: 18px;
    margin-top: 20px;
}
.past-years-header {
    margin-bottom: 12px;
}
.past-years-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
}
.past-years-sub {
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.4;
}
.past-years-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.past-year-chip {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: var(--re-radius-btn);
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    transition: all 0.15s ease;
}
.past-year-chip .chip-year {
    font-weight: 700;
    color: #0F172A;
}
.past-year-chip .chip-title {
    color: #475569;
    font-size: 12px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.past-year-chip .chip-arrow {
    color: #64748B;
    font-size: 11px;
}
.past-year-chip:hover {
    border-color: #0F172A;
    background: #FFFFFF;
}

/* Основное описание */
.single-desc-card {
    background: #FFFFFF;
    border: 1px solid var(--re-border-light);
    border-radius: var(--re-radius-card);
    padding: 28px;
    box-shadow: var(--re-shadow-sm);
    margin-bottom: 28px;
}
.re-page-wrap .single-desc-card h2,
.single-desc-card h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 12px 0 !important;
    color: var(--re-text-dark) !important;
    letter-spacing: -0.01em !important;
}
.single-desc-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 14px 0;
}
.single-desc-card ul {
    padding-left: 20px;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 14px 0;
}

/* Мобильный блок быстрого действия под H1 */
.mobile-quick-action {
    display: none;
    background: #F8FAFC;
    border: 1px solid var(--re-border-light);
    border-radius: var(--re-radius-btn);
    padding: 16px;
    margin-bottom: 18px;
}
.mobile-quick-date {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}
.mobile-quick-venue {
    font-size: 13px;
    color: var(--re-text-sub);
    margin-bottom: 12px;
}
.btn-mobile-reg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--re-primary);
    color: #FFFFFF !important;
    padding: 11px 16px;
    border-radius: var(--re-radius-btn);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
}
.btn-mobile-reg.closed {
    background: #F1F5F9 !important;
    color: #64748B !important;
    border: 1px solid #CBD5E1;
    cursor: default;
}
.btn-mobile-ics {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #FFFFFF;
    color: #0F172A !important;
    border: 1px solid #CBD5E1;
    padding: 9px 16px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
}

/* Сайдбар на десктопе */
.single-sidebar-col {
    min-width: 0;
    width: 100%;
}
.single-sidebar-card {
    background: #FFFFFF;
    border: 1px solid var(--re-border-light);
    border-radius: var(--re-radius-card);
    padding: 22px;
    box-shadow: var(--re-shadow-sm);
    position: sticky;
    top: 30px;
}
.sidebar-date-highlight {
    border-bottom: 1px solid var(--re-border-light);
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.sidebar-day {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    margin-bottom: 3px;
    letter-spacing: -0.015em;
}
.sidebar-month-time {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--re-text-muted);
}
.sidebar-facts-list {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
}
.sidebar-fact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 12.5px;
    gap: 12px;
}
.sidebar-fact:last-child {
    border-bottom: none;
}
.sidebar-fact-label {
    color: var(--re-text-muted);
    font-weight: 500;
    flex-shrink: 0;
}
.sidebar-fact-val {
    color: var(--re-text-dark);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-sidebar-reg {
    background: var(--re-primary);
    color: #FFFFFF !important;
    padding: 10px 16px;
    border-radius: var(--re-radius-btn);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.btn-sidebar-reg:hover {
    background: var(--re-primary-hover);
}
.sidebar-reg-closed {
    background: #F8FAFC !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0;
    padding: 10px;
    text-align: center;
    border-radius: var(--re-radius-btn);
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    user-select: none;
}
.btn-sidebar-ics {
    background: #FFFFFF;
    color: #0F172A !important;
    border: 1px solid #CBD5E1;
    padding: 9px 14px;
    border-radius: var(--re-radius-btn);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.btn-sidebar-ics:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}

/* ========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (СТРОГО БЕЗ ГОРИЗОНТАЛЬНОГО СКРОЛЛА)
   ======================================================== */
@media (max-width: 768px) {
    .re-page-wrap {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    .re-container {
        padding: 18px 16px 40px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .re-hero h1 {
        font-size: 24px;
    }
    .re-hero p {
        font-size: 14px;
    }
    .re-major-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
    }
    .re-major-visual {
        height: 160px;
    }
    .re-controls-box {
        padding: 14px;
    }
    .re-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
    }
    .re-card {
        max-width: 100%;
    }
    .re-filter-label {
        width: 100%;
        margin-bottom: 2px;
    }
    .re-card-footer {
        flex-direction: column;
        gap: 8px;
    }
    .btn-reg, .btn-details, .btn-reg-closed {
        width: 100%;
    }

    /* Одиночная карточка на мобильном */
    .single-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
    }
    .single-title {
        font-size: 22px;
    }
    .single-hero-card,
    .single-desc-card {
        padding: 20px 16px;
    }
    .mobile-quick-action {
        display: block;
    }
    .single-sidebar-col {
        display: none;
    }
    .single-guide-banner,
    .editorial-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 10px;
    }
    .btn-guide-banner,
    .btn-editorial {
        width: 100%;
        justify-content: center;
    }
    .past-year-chip {
        width: 100%;
        justify-content: space-between;
    }
    .past-year-chip .chip-title {
        max-width: 65%;
    }
    .re-organizer-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Подписка на календарь (.ics) и коммерческий блок для организаторов (Items 23 & 24) */
.re-btn-cal-feed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}
.re-btn-cal-feed:hover {
    background: #f8fafc;
    border-color: #0f172a;
}

.re-organizer-cta {
    margin-top: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.re-organizer-cta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.re-organizer-cta-text strong {
    font-size: 15px;
    color: #0f172a;
}
.re-organizer-cta-text span {
    font-size: 13px;
    color: #64748b;
}
.re-organizer-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
.re-organizer-cta-btn:hover {
    background: #1e293b;
}
