

/* Start:/local/templates/.default/components/bitrix/news/online/bitrix/news.list/calendar_conferencies/style.css?17911967126588*/
/* ========================================
   КАЛЕНДАРЬ (Pickmeup)
   ======================================== */
.calendar-widget {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.calendar-widget .pickmeup {
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Шапка календаря с навигацией */
.calendar-widget nav:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.calendar-widget .pmu-month {
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #1f2937;
}

/* === СТРЕЛКИ НАВИГАЦИИ === */
.calendar-widget .pmu-prev,
.calendar-widget .pmu-next {
    background: #f3f4f6 !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0 !important;
    color: transparent !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Левая стрелка */
.calendar-widget .pmu-prev::before {
    content: "‹" !important;
    font-size: 28px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    color: #6b7280 !important;
    display: block !important;
}

/* Правая стрелка */
.calendar-widget .pmu-next::before {
    content: "›" !important;
    font-size: 28px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    color: #6b7280 !important;
    display: block !important;
}

.calendar-widget .pmu-prev:hover,
.calendar-widget .pmu-next:hover {
    background: #e5e7eb !important;
}

.calendar-widget .pmu-prev:hover::before,
.calendar-widget .pmu-next:hover::before {
    color: #1f2937 !important;
}

/* Дни недели */
.calendar-widget .pmu-day-of-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-widget .pmu-day-of-week div {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

/* Сетка дней */
.calendar-widget .pmu-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* Кнопки дней, месяцев, лет */
.calendar-widget .pmu-days .pmu-button,
.calendar-widget .pmu-months .pmu-button,
.calendar-widget .pmu-years .pmu-button {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
}

.calendar-widget .pmu-days .pmu-button:hover:not(.pmu-selected):not(.pmu-current),
.calendar-widget .pmu-months .pmu-button:hover,
.calendar-widget .pmu-years .pmu-button:hover {
    background: #f3f4f6;
}

/* Состояния дат */
.calendar-widget .pmu-days .pmu-today {
    background: #f3f4f6;
    font-weight: 700;
}

.calendar-widget .pmu-days .pmu-selected {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

.calendar-widget .pmu-days .pmu-current {
    background: #011b58;
    color: white !important;
    font-weight: 700;
}

.calendar-widget .pmu-not-in-month {
    opacity: 0.4;
    color: #9ca3af;
}

/* Сетки для выбора месяца и года */
.calendar-widget .pmu-months,
.calendar-widget .pmu-years {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Скрытие неактивных видов */
.calendar-widget .pickmeup:not(.pmu-view-days) .pmu-days, 
.calendar-widget .pickmeup:not(.pmu-view-days) .pmu-day-of-week, 
.calendar-widget .pickmeup:not(.pmu-view-months) .pmu-months, 
.calendar-widget .pickmeup:not(.pmu-view-years) .pmu-years {
    display: none;
}

/* ========================================
   СПИСОК ВЕБИНАРОВ
   ======================================== */
.upcoming-cards {
    display: none;
}

.upcoming-cards.current {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.upcoming-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.upcoming-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.upcoming-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.upcoming-card-image .img-placeholder {
    width: 100%;
    height: 150px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border-radius: 8px;
    font-size: 14px;
}

.upcoming-card-content h3 a:hover {
    color: #011b58 !important;
    text-decoration: underline !important;
}




/* ========================================
   ВНЕШНИЕ ТРАНСЛЯЦИИ
   ======================================== */
.upcoming-card.is-external {
    border-left: 4px solid #f59e0b; /* янтарная полоса слева */
    background: #fffdf7;
}

.external-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 10px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.external-badge svg {
    flex-shrink: 0;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 768px) {
    .calendar-widget {
        padding: 15px;
    }
    
    .calendar-widget .pmu-month {
        font-size: 16px;
    }
    
    .calendar-widget .pmu-days .pmu-button,
    .calendar-widget .pmu-months .pmu-button,
    .calendar-widget .pmu-years .pmu-button {
        font-size: 13px;
    }
    
    .calendar-widget .pmu-day-of-week div {
        font-size: 11px;
        padding: 4px 0;
    }
    
    .upcoming-card-content h3 {
        font-size: 16px;
    }
}
/* End */


/* Start:/local/templates/.default/components/bitrix/news/online/bitrix/news.list/past_events/style.css?17912129579462*/
div.news-list
{
    word-wrap: break-word;
}
div.news-list img.preview_picture
{
    float:left;
    margin:0 4px 6px 0;
}
.news-date-time {
    color:#486DAA;
}

/* ========================================
   СТРАНИЦА СОБЫТИЙ
   ======================================== */

/* Общие заголовки секций */
.upcoming-events h2,
.events h2 {
    font-size: 26px;
    color: #1f2937;
    margin: 0 0 25px;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

/* Обертка событий */
.events-wrapper {
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6e8eb;
}

/* Предстоящие события */
.upcoming-events {
    padding: 35px 0 0;
}

.upcoming-cards {
    display: none;
}

.upcoming-cards.current {
    display: block;
}

.upcoming-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upcoming-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.upcoming-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.upcoming-card-content {
    padding: 20px;
}

.upcoming-card-content h3 {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
}

.upcoming-card-content h3 a {
    color: #1f2937;
}

.upcoming-card-content p {
    line-height: 1.6;
    display: inline-block;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 20px;
    width: fit-content;
}

/* Прошедшие события */
.events {
    padding: 30px 0 35px;
}

/* ========================================
   ГРУППИРОВКА ПО МЕСЯЦАМ И ДНЯМ
   ======================================== */
.month-block {
    margin-bottom: 45px;
}
.month-block:last-of-type {
    margin-bottom: 0;
}

.month-header {
    position: relative;
    padding-left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
}
.month-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 2px;
    background: #011b58;
}
.month-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.2px;
}
.month-count {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.day-block {
    margin-bottom: 26px;
}
.day-block:last-child {
    margin-bottom: 0;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.2px;
}
.day-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ========================================
   СЕТКА КАРТОЧЕК (ПРОПОРЦИОНАЛЬНАЯ)
   ======================================== */

/* Фиксированная сетка 4 колонки */
.day-events {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Карточка с ограниченной шириной */
.event-card {
    max-width: 300px;
    width: 100%;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #d1d5db;
}

/* Картинка - без фиксированной высоты, подстраивается */
.event-image {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    overflow: hidden;
}

.event-image a {
    display: block;
}

.event-image img {
    width: 100%;
    height: auto;
    max-height: 275px;
    object-fit: contain;
    display: block;
}

.event-image-placeholder {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Флажки НМО / Запись */
.event-flags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}
.event-flag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}
.event-flag--nmo {
    background: #011b58;
    color: #fff;
}
.event-flag--record {
    background: rgba(17, 24, 39, .75);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Контент карточки */
.event-content {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}
.event-date svg {
    opacity: 0.7;
}

.event-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 12px;
    font-weight: 600;
    flex: 1;
}
.event-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}
.event-title a:hover {
    color: #011b58;
    text-decoration: underline;
}

.event-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 6px;
}

/* ========================================
   ВНЕШНИЕ ПЛОЩАДКИ
   ======================================== */
.event-card.is-external {
    border-left: 4px solid #f59e0b;
    background: #fffdf7;
}

.external-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 10px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}
.external-badge svg {
    flex-shrink: 0;
}

/* ========================================
   КНОПКА
   ======================================== */
.btn--event {
    background: #1f2937;
    color: white;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
}
.btn--event:hover {
    background: #374151;
    color: white;
    transform: translateX(3px);
}

/* ========================================
   ОДИНОЧНАЯ КАРТОЧКА ДНЯ
   ======================================== */
.day-events--single {
    grid-template-columns: 1fr;
}
.day-events--single .event-card {
    max-width: 100%;
    flex-direction: row;
}
.day-events--single .event-image {
    width: 380px;
    flex-shrink: 0;
}
.day-events--single .event-image img {
    height: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* ========================================
   ПАГИНАЦИЯ
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    clear: both;
    list-style: none;
    padding: 0;
}
.page-item {
    display: inline-block;
}
.page-link {
    display: block;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
.page-link:hover:not(.disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}
.page-item.active .page-link {
    background: #1f2937;
    border-color: #1f2937;
    color: white;
}
.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 1200px) {
    .day-events {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .day-events {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .upcoming-events h2,
    .events h2 {
        font-size: 22px;
    }
    
    .month-title {
        font-size: 20px;
    }
    
    .day-events {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        max-width: 100%;
    }
    
    .event-image img {
        max-height: 200px;
    }
    
    .day-events--single .event-card {
        flex-direction: column;
    }
    
    .day-events--single .event-image {
        width: 100%;
    }
    
    .day-events--single .event-image img {
        height: auto;
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .upcoming-events h2,
    .events h2 {
        font-size: 20px;
    }
    
    .upcoming-card-content p {
        font-size: 12px;
    }
    
    .upcoming-card-content h3 {
        font-size: 16px;
    }
    
    .event-date {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .events-wrapper {
        padding: 15px;
    }
}
/* End */
/* /local/templates/.default/components/bitrix/news/online/bitrix/news.list/calendar_conferencies/style.css?17911967126588 */
/* /local/templates/.default/components/bitrix/news/online/bitrix/news.list/past_events/style.css?17912129579462 */
