

/* Start:/local/templates/saratovmer/components/bitrix/news.list/calendar_events_child_p/style.css?178153591211244*/
:root {
    --primary: #2A6BE0;
    --primary-dark: #1B4FB3;
    --sun: #FFB020;
    --sun-dark: #F08C00;
    --bg: #EEF4FB;
    --card: #FFFFFF;
    --text: #16233C;
    --text-light: #5C6C88;
    --border: #E1E9F4;
    --clubs: #EC6240;
    --circles: #1FA06B;
    --schools: #8257D6;
    --libraries: #1893A8;
    --sport: #f08c00;
}

html body {
    background: var(--bg);
    color: var(--text);
}

.eventsList {
    font-family: 'Inter', system-ui, sans-serif;
}

.hero {
    background: linear-gradient(135deg, #F7FAFE 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.sun-icon {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at 35% 35%, #FFD36B, var(--sun), var(--sun-dark));
    border-radius: 50%;
    box-shadow: 0 0 0 3px white, 0 4px 12px rgba(240,140,0,0.3);
}

.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(238, 244, 251, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.sticky-bar.stuck {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.day-pill {
    min-width: 65px;
    padding: 8px 0;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.day-pill:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.day-pill.day-pill.selected {
    background: linear-gradient(135deg, var(--sun), var(--sun-dark));
    border-color: var(--sun-dark);
    color: white;
}

.day-pill.selected .day-name,
.day-pill.selected .day-number,
.day-pill.selected .month-name {
    color: white;
}

.day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.month-name {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2p
}
 div.days-strip.d-flex[style*="display: none"] {
    display: none !important;
}

.day-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.event-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: var(--text);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg);
}

.day-pill.selected .event-badge {
    background: white;
    color: var(--sun-dark);
}

/*  ФИЛЬТРЫ  */
.filter-chip {
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: white;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.filter-chip:hover {
    background: #f8f9fa;
    border-color: #c1c9d6;
}

.filter-chip.active {
    border-color: transparent;
}

/* Кнопка "Все" */
.filter-chip[data-filter="all"].active {
    background: var(--text);
    color: white;
}

/* Категории фильтров */
.filter-chip[data-filter="clubs"].active {
    background: rgba(236, 98, 64, 0.1);
    border-color: var(--clubs);
    color: var(--clubs);
}

.filter-chip[data-filter="circles"].active {
    background: rgba(31, 160, 107, 0.1);
    border-color: var(--circles);
    color: var(--circles);
}

.filter-chip[data-filter="schools"].active {
    background: rgba(130, 87, 214, 0.1);
    border-color: var(--schools);
    color: var(--schools);
}

.filter-chip[data-filter="libraries"].active {
    background: rgba(24, 147, 168, 0.1);
    border-color: var(--libraries);
    color: var(--libraries);
}

.filter-chip[data-filter="sport"].active {
    background: rgba(255, 208, 158, 0.39);
    border-color: var(--sport);
    color: var(--sport);
}

/* Неактивное состояние */
.filter-chip:not(.active) {
    background: white;
    border-color: var(--border);
    color: var(--text);
}

.filter-chip:not(.active) .filter-dot {
    opacity: 0.4;
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    transition: opacity 0.2s;
}

.filter-chip.active .filter-dot {
    opacity: 1;
}

.filter-count {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.7;
    display: inline-block;
    min-width: 16px;
    text-align: center;
}

.filter-chip.active .filter-count {
    opacity: 1;
}

/* Анимация для фильтров */
.filter-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.filter-chip:active::before {
    width: 200px;
    height: 200px;
}

/* Скрываем все month-strip по умолчанию */
.month-strip {
    display: none !important;
	  padding-top: 6px;
}

/* Показываем только активный */
.month-strip.active {
    display: flex !important;
}


/* Общие стили для скроллбара в days-strip и month-strip */
.days-strip,
.month-strip {
    /* Плавная прокрутка */
    scroll-behavior: smooth;
    
    /* Отступ снизу для скроллбара */
    padding-bottom: 8px;
    
    /* Для мобильных - momentum scrolling */
    -webkit-overflow-scrolling: touch;
    
    /* Скрываем скроллбар по умолчанию, показываем при наведении */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Показываем скроллбар при наведении */
.days-strip:hover,
.month-strip:hover {
    scrollbar-color: var(--primary) var(--border);
}

/* Webkit (Chrome, Safari, Edge) */
.days-strip::-webkit-scrollbar,
.month-strip::-webkit-scrollbar {
    height: 6px;
}

.days-strip::-webkit-scrollbar-track,
.month-strip::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 0 10px; /* Отступы по краям */
}

.days-strip::-webkit-scrollbar-thumb,
.month-strip::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* Показываем скроллбар при наведении */
.days-strip:hover::-webkit-scrollbar-thumb,
.month-strip:hover::-webkit-scrollbar-thumb {
    background: var(--border);
}

.days-strip:hover::-webkit-scrollbar-thumb:hover,
.month-strip:hover::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Всегда показываем скроллбар на мобильных */
@media (max-width: 768px) {
    .days-strip::-webkit-scrollbar-thumb,
    .month-strip::-webkit-scrollbar-thumb {
        background: var(--border);
    }
    
    .days-strip,
    .month-strip {
        scrollbar-color: var(--border) transparent;
    }
}

/* Индикаторы прокрутки */
.days-strip {
    position: relative;
}

/* Тень слева (когда прокручено вправо) */
.days-strip::before {
    content: '';
    position: sticky;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(238, 244, 251, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Тень справа (когда есть куда прокручивать) */
.days-strip::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, rgba(238, 244, 251, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

/* Скрываем тени когда скроллбар не нужен */
@media (min-width: 1200px) {
    .days-strip::before,
    .days-strip::after {
        display: none;
    }
}


/*  КАРТОЧКИ МЕРОПРИЯТИЙ  */
.event-card {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    border-left-width: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.event-card.clubs { border-left-color: var(--clubs); }
.event-card.circles { border-left-color: var(--circles); }
.event-card.schools { border-left-color: var(--schools); }
.event-card.libraries { border-left-color: var(--libraries); }
.event-card.sport { border-left-color: var(--sport); }

.event-time {
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.event-time small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
}

.event-time.time-tbd {
    font-size: 13px;
    color: var(--text-light);
}

.event-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.clubs .event-category { color: var(--clubs); }
.circles .event-category { color: var(--circles); }
.schools .event-category { color: var(--schools); }
.libraries .event-category { color: var(--libraries); }
.sport .event-category { color: var(--sport); }

.event-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.event-location, .event-org {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/*  ГРУППЫ ВРЕМЕНИ  */
.time-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.time-icon { font-size: 24px; }

.time-label { 
    font-size: 14px; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin: 0;
}

.time-range { 
    font-size: 12px; 
    color: var(--text-light); 
}

/*  ПУСТЫЕ СОСТОЯНИЯ  */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-icon { 
    font-size: 48px; 
    margin-bottom: 16px; 
}

/*  СКРОЛЛБАР  */
.days-strip::-webkit-scrollbar {
    height: 4px;
}

.days-strip::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.days-strip::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/*  ПОИСК  */
#searchInput:focus {
    box-shadow: 0 0 0 0.25rem rgba(42, 107, 224, 0.25);
    border-color: var(--primary);
}

#clearSearch {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#clearSearch:hover {
    opacity: 1;
}
#searchInput {
	max-width: 1095px;
	border-radius: 30px;
}

/*  АДАПТИВНОСТЬ  */
@media (max-width: 768px) {
    .day-pill {
        min-width: 55px;
        padding: 4px 0;
    }
    
    .day-number {
        font-size: 18px;
    }
    
    .event-card {
        border-radius: 16px;
    }
    
    .filter-chip {
        padding: 4px 10px;
        font-size: 12px;
    }
}



/* End */
/* /local/templates/saratovmer/components/bitrix/news.list/calendar_events_child_p/style.css?178153591211244 */
