

/* Start:/local/templates/gynecology/css/slick-theme.min.css?17490202972128*/
.slick-list,.slick-slider{position:relative;display:block}.slick-slider{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}.slick-list{overflow:hidden;margin:0;padding:0}.slick-list:focus{outline:0}.slick-list.dragging{cursor:pointer}.slick-slider .slick-list,.slick-slider .slick-track{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto;padding-bottom:0}.slick-track:after,.slick-track:before{display:table;content:''}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{display:none;float:left;min-height:1px}.slick-initialized .slick-slide,.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}.slick-dotted.slick-slider{padding-bottom:0}.slick-dots{position:relative;left:auto;bottom:auto;z-index:80;display:flex;justify-content:center;width:100%;padding:0;margin:0;list-style:none;text-align:center}.slick-dots li{position:relative;width:12px;height:12px;margin:0 0 0 10px;padding:0;cursor:pointer}.slick-dots li:first-child{margin-left:0}.slick-dots li button{background:0 0;border:1px solid #404040;font-size:0;line-height:0;display:block;width:12px;height:12px;padding:0;cursor:pointer;color:transparent;outline:0;border-radius:30px}.slick-dots li.slick-active button{background:#fad3e1;border-color:#fad3e1}.slick-next,.slick-prev{position:absolute;top:50%;margin-top:-20px;z-index:70;border:0;background:#fff;width:0;height:40px;padding:0 0 0 40px;overflow:hidden;display:block;outline:0;cursor:pointer}.slick-prev{left:-10px}.slick-next{right:-10px}
/* End */


/* Start:/local/templates/gynecology/components/wexpert/includer/adv.slick.banners/slider.min.css?1749020297204*/
.adv-banner-slick-slider-wrapper{position:relative}.adv-banner-slick-slider .slide{display:none}.adv-banner-slick-slider .slide:first-child,.adv-banner-slick-slider.slick-initialized .slide{display:block}
/* End */


/* Start:/local/templates/gynecology/components/bitrix/catalog.section/.default-v2/style.css?176043791128716*/
/* Стили компонента карточек событий */

/* ========== АДАПТИВНАЯ СЕТКА: 2 или 3 колонки ========== */

/* Layout для body-events с баннером */
.body-events {
    display: flex;
    gap: 20px;
}

.events-left {
    flex: 1;
    min-width: 0;
}

.events-right {
    width: 382px;
    flex-shrink: 0;
}

/* СКРЫВАЕМ пустой контейнер баннера */
.events-right:not(:has(a)):not(:has(img)):not(:has(.banner)) {
    display: none;
    width: 0;
}

/* Events Grid - БАЗОВАЯ СЕТКА */
.events-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* ПО УМОЛЧАНИЮ: 3 колонки */
.events-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Если в .events-right есть ссылка или картинка - 2 колонки */
.body-events:has(.events-right a) .events-grid,
.body-events:has(.events-right img) .events-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Fallback для браузеров без :has() - через JS добавляются классы */
.body-events.no-banner .events-grid {
    grid-template-columns: repeat(3, 1fr);
}

.body-events.has-banner .events-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* АДАПТИВНОСТЬ */

/* Большие экраны (1400px+): логика такая же */
@media (min-width: 1400px) {
    /* По умолчанию 3 колонки - уже задано выше */
    
    /* Если есть баннер - 2 колонки */
    .body-events:has(.events-right a) .events-grid,
    .body-events:has(.events-right img) .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Средние экраны (960-1399px): адаптация с баннером */
@media (min-width: 960px) and (max-width: 1399px) {
    /* Если есть баннер справа - карточки адаптивные */
    .body-events:has(.events-right a) .events-grid,
    .body-events:has(.events-right img) .events-grid,
    .body-events.has-banner .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Без баннера - 2 колонки */
    .body-events:not(:has(.events-right a)):not(:has(.events-right img)) .events-grid,
    .body-events.no-banner .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Карточки адаптивные по ширине */
    .event-card {
        width: 100% !important;
        max-width: 100%;
    }
    
    .events-right {
        width: 300px;
        flex-shrink: 0;
    }
    
    .events-left {
        flex: 1;
        min-width: 0;
    }
}

/* Планшеты (768-1023px): 2 колонки, баннер внизу */
@media (min-width: 768px) and (max-width: 1023px) {
    .body-events {
        flex-direction: column;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .events-right {
        width: 100%;
    }
}

/* Мобильные (до 767px): 1 колонка */
@media (max-width: 767px) {
    .body-events {
        flex-direction: column;
    }
    
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .events-right {
        width: 100%;
    }
    
    .events-left {
        width: 100%;
    }
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 1px 10px 0px #1810320D;
    transition: box-shadow 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
    max-width: 376px;
    height: 611px;
    display: block;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

.event-card:hover {
    box-shadow: 0px 8px 24px 0px rgba(24, 16, 50, 0.15);
}

.event-image {
    position: relative;
    height: 201px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NMO badge */
.nmo-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #FEEFF2;
    border-radius: 8px 0 8px 0;
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    width: 89px;
    height: 44px;
}

.nmo-number {
    font-size: 14px;
    font-weight: 500;
    color: #DC7B91;
    line-height: 1;
}

.nmo-text {
    font-size: 14px;
    font-weight: 500;
    color: #DC7B91;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* НМО Accreditation Badge */
.nmo-accreditation-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #FEEFF2;
    border-radius: 8px 0 8px 0;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    width: 245px;
    height: 44px;
}

.nmo-accreditation-text {
    font-size: 14px;
    font-weight: 500;
    color: #DC7B91;
    line-height: 1.2;
    text-align: center;
}

/* Hide old status icons */
.event-status-badge img,
.ico-online-ev,
.ico-online-ev img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Event status badge (live/soon/record) */
.event-status-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(4px) !important;
}

.event-status-badge:empty {
    display: none !important;
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    line-height: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #FF0000;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* Event badges */
.event-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 23px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.badge.hmo {
    background: #ff6b9d;
    color: white;
}

.badge.online {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.badge.free {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.badge.offline {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.badge.hybrid {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.event-content {
    padding: 20px 20px 20px 20px;
    position: relative;
    height: calc(100% - 201px);
}

.event-content-main {
    height: 100%;
    overflow: hidden;
}

.event-content-footer {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-category {
    font-size: 12px;
    color: #666;
    font-weight: 300;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-title {
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .event-title {
        font-size: 18px !important;
    }
}

.event-title a {
    text-decoration: none;
    color: inherit;
}

.event-title a:hover {
    color: #DC7B91;
}

/* Event meta information */
.event-meta {
    margin-bottom: 20px;
}

.event-author, .event-date, .event-location {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
    gap: 8px;
}

.meta-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
    fill: #DC7B91;
}

.meta-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 400;
    display: block;
}

.meta-value {
    color: #333;
    font-weight: 400;
    line-height: 1.4;
    display: block;
}

@media (max-width: 767px) {
    .event-author, .event-date, .event-location {
        font-size: 16px;
    }

    .meta-label {
        font-size: 14px;
    }

    .meta-value {
        font-size: 16px;
    }
}

/* View count */
.view-count {
    color: #C1C1C1;
    font-size: 12px;
    font-weight: 400;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.view-count svg {
    flex-shrink: 0;
}

.event-button {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 23px;
    font-size: 16px;
    font-weight: 400;
    line-height: 40px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #D1D4D0;
    color: #333;
}

.event-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.event-button:hover::before {
    left: 100%;
}

.event-button:hover {
    background: #DC7B91;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 123, 145, 0.3);
}

.event-button.primary {
    background: #D1D4D0;
    color: #333;
}

.event-button.primary:hover {
    background: #DC7B91;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 123, 145, 0.3);
}

.event-button.secondary {
    background: #D1D4D0;
    color: #333;
    border: none;
}

.event-button.secondary:hover {
    background: #DC7B91;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 123, 145, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 40px;
}

.pagination-btn {
    background: #404040;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 64, 64, 0.3);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    right: 0;
}

.pagination-arrow {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #666;
}

.pagination-arrow:hover {
    background: #f5f5f5;
    color: #333;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.page-number.active {
    background: #FEEFF2;
    color: #333;
    font-weight: 600;
}

/* Медиа-запрос для экранов от 960px */
@media (min-width: 960px) {
    /* Логика 2/3 колонок работает выше, тут только размеры */
    .body-events:has(.events-right) .events-grid {
        gap: 20px;
        align-items: stretch;
    }
    
    .event-card {
        width: 458px;
        height: 601px;
    }

    .event-card img {
        width: 100%;
        height: 201px;
        object-fit: cover;
    }
}

/* Медиа-запрос для экранов от 1400px */
@media (min-width: 1400px) {
    /* Сетка управляется выше, здесь только отступы */
    .events-grid {
        gap: 24px;
    }
    
    .event-card {
        width: 376px;
        height: 611px;
    }

    .event-card img {
        width: 100%;
        height: 201px;
        object-fit: cover;
    }
}

.page-number:not(.active):hover {
    background: #f5f5f5;
}

.page-dots {
    color: #999;
    font-size: 14px;
}

/* Медиа-запрос для мобильных экранов 480px и ниже */
@media (max-width: 480px) {
    .event-card {
        height: 681px;
    }

    .event-content {
        padding: 15px 15px 25px 15px;
        height: calc(100% - 201px);
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1399px) {
    .pagination-controls {
        display: none;
    }
}

/* Экраны от 640px до 960px - 2 карточки в ряд */
@media (min-width: 640px) and (max-width: 959px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .event-card {
        width: 100%;
        max-width: none;
    }
}


/* Экраны меньше 640px - 1 карточка в ряд */
@media (max-width: 639px) {
    .container {
        padding: 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card {
        width: 100%;
        max-width: none;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-controls {
        order: -1;
    }
}



/* Mobile Filters */
.mobile-filters {
    display: none;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1000;
}

.mobile-filter-dropdown {
    position: relative;
}

.mobile-filter-btn {
    padding: 8px 12px;
    background: #FEEFF2;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #181032;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    height: 30px;
    box-sizing: border-box;
}

/* Кнопка "Фильтрация" */
.mobile-filter-btn[data-filter="filters"] {
    width: 99px;
    gap: 6px;
}

.mobile-filter-btn[data-filter="filters"] .dropdown-arrow {
    width: 16px;
    height: 10px;
}

/* Кнопка "Выбрать специальность" */
.mobile-filter-btn[data-filter="specialty"] {
    width: 220px;
    white-space: nowrap;
}

.mobile-filter-btn:hover {
    border-color: #DC7B91;
    background: #fce4e9;
}

.mobile-filter-btn.active {
    border-color: #DC7B91;
    background: #fce4e9;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-filter-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-filter-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 480px;
    max-width: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.mobile-filter-dropdown-content.show {
    max-height: 434px;
    overflow-y: auto;
}

/* Специфичные стили для выпадающего списка специальностей */
#mobileSpecialtyDropdown {
    width: 297px;
    min-width: 297px;
    max-width: 297px;
}

#mobileSpecialtyDropdown.show {
    max-height: 238px;
}

/* Адаптивные размеры для разных экранов */
@media (max-width: 520px) {
    .mobile-filter-dropdown-content {
        max-width: calc(100vw - 40px);
        min-width: 260px;
    }
    
    /* Адаптивность для специальностей */
    #mobileSpecialtyDropdown {
        width: calc(100vw - 40px);
        min-width: 260px;
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 400px) {
    .mobile-filter-dropdown-content {
        max-width: calc(100vw - 20px);
        min-width: 240px;
    }
    
    .mobile-filter-dropdown-content.show {
        max-height: 380px;
    }
    
    /* Адаптивность для специальностей на маленьких экранах */
    #mobileSpecialtyDropdown {
        width: calc(100vw - 20px);
        min-width: 240px;
        max-width: calc(100vw - 20px);
    }
    
    #mobileSpecialtyDropdown.show {
        max-height: 200px;
    }
}

@media (max-width: 320px) {
    .mobile-filter-dropdown-content {
        max-width: calc(100vw - 10px);
        min-width: 200px;
    }
    
    .mobile-filter-dropdown-content.show {
        max-height: 350px;
    }
}

.mobile-filter-section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

/* Стили для переключателей */
.toggle-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 16px;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 16px;
    color: #404040;
    font-weight: 400;
}

.toggle-option:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.toggle-label {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
    color: #404040;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #DC7B91;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Стили для кнопок-тегов */
.tag-section {
    padding: 20px 16px;
}

.tag-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #404040;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-button {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.tag-button input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tag-text {
    display: inline-block;
    padding: 4px 16px;
    height: 26px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    color: #666666;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.tag-button:hover .tag-text {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.tag-button input:checked + .tag-text {
    background-color: #DC7B91;
    color: white;
    border-color: #DC7B91;
}

.mobile-filter-section:last-child {
    border-bottom: none;
}

.mobile-filter-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #404040;
}

.mobile-filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: #404040;
    position: relative;
}

.mobile-filter-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

/* Стили для радио-кнопок */
.mobile-filter-option input[type="radio"] + .checkmark {
    border-radius: 50%;
}

/* Стили для checkbox'ов специальностей - делаем их круглыми как радио */
#mobileSpecialtyDropdown .mobile-filter-option input[type="checkbox"] + .checkmark {
    border-radius: 50%;
}

.mobile-filter-option:hover .checkmark {
    border-color: #DC7B91;
}

.mobile-filter-option input:checked + .checkmark {
    background-color: #DC7B91;
    border-color: #DC7B91;
}

.mobile-filter-option input:checked + .checkmark:after {
    content: "";
    position: absolute;
    display: block;
}

/* Стили для обычных checkbox'ов (галочка) */
.mobile-filter-option input[type="checkbox"]:checked + .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Стили для checkbox'ов специальностей - точка как у радио */
#mobileSpecialtyDropdown .mobile-filter-option input[type="checkbox"]:checked + .checkmark:after {
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    border: none;
    transform: none;
}

/* Стили для радио-кнопок */
.mobile-filter-option input[type="radio"]:checked + .checkmark:after {
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

@media (max-width: 960px) {
    .filters {
        display: none;
    }
    
    .mobile-filters {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .mobile-filters {
        padding: 0px;
    }
    
    .event-content {
        padding: 15px 15px 25px 15px;
    }
    
    .pagination-numbers {
        gap: 5px;
    }
    
    .page-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Удалено: grid управляется логикой has() выше */

/* Loading animation for images - ОТКЛЮЧЕНО, показываем сразу */
.event-image img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.event-image img.loaded {
    opacity: 1;
}

/* Hover effects for interactive elements */
.filter-select:focus,
.event-button:focus,
.pagination-btn:focus {
    outline: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}



::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Мобильные экраны ниже 480px */
@media (max-width: 479px) {
    .banner-icon {
        display: none;
    }
    
    .banner-content {
        justify-content: center;
        text-align: center;
    }
    
    .banner-text-section {
        align-items: center;
        text-align: center;
    }
    
    .banner-text {
        text-align: center;
    }
    
    .banner-button {
        align-self: center;
    }
}

/* Кнопка "Показать ещё" для мобильной пагинации */
.but-more-all {
    text-align: center;
    margin: 30px 0;
}

.but-more-all a {
    display: inline-flex !important;
    width: 154px !important;
    padding: 10px 12px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    border-radius: 23px !important;
    background: #404040 !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: normal !important;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    height: auto !important;
    min-width: auto !important;
    text-align: center !important;
    position: static !important;
}

.but-more-all a:before {
    display: none !important;
    content: none !important;
}

.but-more-all a:hover {
    background: #333 !important;
    box-shadow: 0 4px 12px rgba(64, 64, 64, 0.3) !important;
}


/* По умолчанию скрываем мобильную версию, показываем десктопную */
.but-more-all.for-mob {
    display: none !important;
}

.but-more-all.for-desc {
    display: block !important;
}

/* На мобильных (< 960px) показываем мобильную версию, скрываем десктопную */
@media (max-width: 959px) {
    .but-more-all.for-mob {
        display: block !important;
    }
    
    .but-more-all.for-desc {
        display: none !important;
    }
}

/* На десктопе (>= 960px) показываем десктопную версию, скрываем мобильную */
@media (min-width: 960px) {
    .but-more-all.for-mob {
        display: none !important;
    }
    
    .but-more-all.for-desc {
        display: block !important;
    }
}

/* ========== Стили для выбранных фильтров (теги) ========== */

/* Нижняя часть фильтров (теги, дата, очистка) */
.bot-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.tags-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-selected-value {
    background: #FEEFF2 !important;
    color: #404040 !important;
    padding: 4px 12px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: none !important;
}

.filter-selected-value div {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-tags {
    cursor: pointer !important;
    width: 14px !important;
    height: 14px !important;
    position: relative !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.close-tags:hover {
    opacity: 1 !important;
}

.close-tags::before,
.close-tags::after {
    content: '' !important;
    position: absolute !important;
    width: 10px !important;
    height: 2px !important;
    background: #404040 !important;
    top: 50% !important;
    left: 50% !important;
}

.close-tags::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.close-tags::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.clear-filter {
    margin-left: auto;
}

.clear-filter a {
    color: #c44569 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.clear-filter a:hover {
    color: #a03856 !important;
}

.but-calendar input {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: #FEEFF2;
    cursor: pointer;
}
/* End */


/* Start:/local/templates/gynecology/components/wexpert/includer/ajax.pagen/style.min.css?174902029738*/
.pagen-pending{opacity:.3;cursor:wait}
/* End */


/* Start:/local/components/wexpert/dynamic.container/templates/.default/style.min.css?174902029828*/
.dynamic-loading{opacity:.5}
/* End */
/* /local/templates/gynecology/css/slick-theme.min.css?17490202972128 */
/* /local/templates/gynecology/components/wexpert/includer/adv.slick.banners/slider.min.css?1749020297204 */
/* /local/templates/gynecology/components/bitrix/catalog.section/.default-v2/style.css?176043791128716 */
/* /local/templates/gynecology/components/wexpert/includer/ajax.pagen/style.min.css?174902029738 */
/* /local/components/wexpert/dynamic.container/templates/.default/style.min.css?174902029828 */
