/* === Основной контейнер === */
.em-container {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 750px;
}

/* === Левая панель === */
.em-left-panel {
    width: 100%;
    position: relative;
    background: #0a1f44;
    color: #ffffff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.em-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
}

.em-bg-gradient {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to bottom, #0a1f44 0%, rgba(10, 31, 68, 0.8) 50%, transparent 100%);
    z-index: 10;
}

.em-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.em-left-content {
    position: relative;
    z-index: 20;
    margin-top: 1rem;
}

.em-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.em-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.em-divider {
    width: 1px;
    height: 2rem;
    background: #9ca3af;
}

.em-logo-sub {
    font-size: 0.75rem;
    line-height: 1.25;
}

.em-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.5rem 0;
}

.em-red-line {
    width: 3rem;
    height: 0.25rem;
    background: #dc2626;
    margin-bottom: 1.5rem;
}

.em-description {
    font-size: 0.875rem;
    color: #e5e7eb;
    line-height: 1.625;
    max-width: 24rem;
    margin: 0;
}

.em-btn-wrapper {
    position: relative;
    z-index: 20;
    margin-top: auto;
    padding-top: 2.5rem;
}

.em-left-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.em-left-btn:hover {
    background: #ffffff;
    color: #0a1f44;
}

.em-left-btn-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.em-arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

.em-left-btn:hover .em-arrow-icon {
    transform: translateX(0.25rem);
}

/* === Правая панель === */
.em-right-panel {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.em-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.em-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.em-calendar-icon {
    width: 1.75rem;
    height: 1.75rem;
    fill: #dc2626;
}

.em-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1f44;
    margin: 0;
}

.em-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0a1f44;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.em-link:hover {
    color: #dc2626;
}

.em-link-icon {
    width: 1rem;
    height: 1rem;
}

/* === Фильтры === */
.em-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.em-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    background: none;
    font-family: inherit;
}

.em-filter-btn--active {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.em-filter-btn--inactive {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #f3f4f6;
}

.em-filter-btn--inactive:hover {
    background: #e5e7eb;
}

.em-filter-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.em-hint {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
}

/* === Список выставок === */
.em-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    height: 430px;
    margin-bottom: 1.5rem;
}

/* Кастомный скроллбар */
.em-events::-webkit-scrollbar {
    width: 6px;
}
.em-events::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.em-events::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.em-events::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === Нижний баннер === */
.em-banner {
    margin-top: auto;
    background: #0a1f44;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.em-banner-decor {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8rem;
    height: 8rem;
    background: #dc2626;
    transform: rotate(45deg) translate(4rem, 4rem);
}

.em-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.em-banner-icon {
    width: 3rem;
    height: 3rem;
    fill: #ffffff;
    opacity: 0.8;
    flex-shrink: 0;
    display: none;
}

.em-banner-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 0.25rem 0;
}

.em-banner-text {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.em-banner-small {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
}

.em-banner-btn {
    position: relative;
    z-index: 10;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
    font-family: inherit;
}

.em-banner-btn:hover {
    background: #b91c1c;
}

.em-btn-icon {
    width: 1rem;
    height: 1rem;
}

/* === Адаптив (lg: ≥1024px) === */
@media (min-width: 1024px) {
    .em-container {
        flex-direction: row;
    }
    .em-left-panel {
        width: 35%;
    }
    .em-right-panel {
        width: 65%;
        padding: 2.5rem;
    }
    .em-header-title {
        font-size: 1.875rem;
    }
}

/* === Адаптив (md: ≥768px) === */
@media (min-width: 768px) {
    .em-banner {
        flex-direction: row;
    }
    .em-banner-icon {
        display: block;
    }
    .em-banner-btn {
        width: auto;
    }
}

/* === Карточка выставки === */
.em-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #ffffff;
    transition: box-shadow 0.3s;
}

.em-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Изображение */
.em-card-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

/* Контентная часть */
.em-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0.25rem 0;
}

/* Заголовок */
.em-card-title {
    font-weight: 700;
    color: #0a1f44;
    font-size: 1rem;
    line-height: 1.25;
    margin: 0 0 0.5rem 0;
}

/* Мета-строка (дата + город) */
.em-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.em-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Категория */
.em-card-category {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* Блок "Подробнее" — скрыт на мобильных */
.em-card-action {
    display: none;
    flex-shrink: 0;
    border-left: 1px solid #e5e7eb;
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.em-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0a1f44;
    text-decoration: none;
    transition: color 0.3s;
}

.em-card-link:hover {
    color: #dc2626;
}

/* === sm: ≥640px === */
@media (min-width: 640px) {
    .em-card {
        flex-direction: row;
        align-items: center;
    }

    .em-card-img {
        width: 160px;
    }

    .em-card-action {
        display: flex;
    }
}

/* === lg: ≥1024px === */
@media (min-width: 1024px) {
    .em-card-title {
        font-size: 1.125rem;
    }
}