

/* Start:/local/templates/gynecology/components/bitrix/catalog/events/bitrix/catalog.element/.default/style.css?17562183891041*/
.main-block-events .img-events-s.img-events-s-none-image{min-height: 720px;}
.pop-map .map-frame{width: 100%; height: 590px;}

.soc-share.soc-share-v2 li a{display:flex;align-items:center;justify-content:center;fill:#404040;background:#ececec;width:30px;height:30px;border-radius:50%}
.soc-share.soc-share-v2 li a:hover path{fill:#E03860}
.soc-share.soc-share-v2 li svg{display:block}

.wr-buts-events .buts-events {
    flex-direction: row-reverse;
}
.wr-buts-events .buts-events a{
    background: #fac4d7;
}
@media(max-width: 1000px){
.wr-buts-events .buts-events {
    flex-direction: column-reverse;
}
.wr-buts-events .buts-events .bt-ev:last-child{
	margin-bottom: 10px;
}
}

    @media (min-width: 1000px) {
        .lectors-programm {
            padding-bottom: 120px !important; /* Отступ снизу для ПК */
        }
    }

.window-lector p {
  display: -webkit-box;
  -webkit-line-clamp: 6; /* ограничение в 6 строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* End */


/* Start:/local/templates/gynecology/components/bitrix/system.auth.authorize/.default/style.css?17502327147091*/
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/* Overlay для затемнения фона */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный */
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000 !important; /* Убедитесь, что попап поверх остального контента */
	/* По умолчанию может быть скрыт, например: display: none; */
}

.modal-overlay.active {
	display: flex;
}

/* Стили основного контейнера попапа из инспектора */
.login-popup {
	background-color: #FFFFFF;
	width: 815px; /* Ширина из инспектора */
	/* height: 544px; */ /* Высота из инспектора */
	padding: 32px; /* Отступы из инспектора */
	display: flex; /* Flexbox для содержимого */
	flex-direction: column; /* Элементы располагаются по вертикали */
	/* justify-content и align-items из инспектора применены к modal-overlay для центрирования самого попапа */
	border-radius: 8px; /* Примерный border-radius */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Примерная тень */
	position: relative; /* Для позиционирования QR-кода */
	font-family: 'Onest', BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; /* Применяем шрифт */
	margin: 20px;
}

/* Адаптивность для попапа */
@media (max-width: 850px) {
	.login-popup {
		width: 90%; /* Уменьшаем ширину на маленьких экранах */
		height: auto; /* Высота авто */
		max-height: 90%; /* Ограничиваем максимальную высоту */
		overflow-y: auto; /* Добавляем скролл, если контент не помещается */
	}
}

@media (max-width: 500px) {
	.login-popup {
		padding: 20px; /* Уменьшаем отступы */
	}
}


/* Стилизация элементов внутри попапа */
.login-popup h1 {
	color:#181032;
	font-family: Onest;
	font-size: 36px;
	font-style: normal;
	font-weight: 500;
	line-height: 114%; /* 41.04px */
	margin: 0;
}

.login-popup p {
	color: var(--Text-Primary, #181032);
	font-family: Onest;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 114%; /* 22.8px */
	margin: 20px 0;
}

.form-group {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.form-group label {
	margin-bottom: 17px;
	color: var(--Text-Primary, #181032);
	font-family: Onest;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 114%; /* 22.8px */
}

.form-group input[type="text"],
.form-group input[type="password"] {
	padding: 10px 15px;
	border: 1px solid #e0e0e0; /* Используем цвет из template_styles */
	border-radius: 4px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
	border-color: #DC7B91; /* Цвет при фокусе из template_styles */
}

.button-group {
	display: flex;
	gap: 15px; /* Отступ между кнопками */
	margin-top: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap; /* Перенос кнопок на новую строку при необходимости */
	align-self: center; /* Центрируем блок кнопок */
}

.button-group button {
	padding: 12px 24px;
	border-radius: 50px; /* Скругленные углы как в template_styles */
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.btn-login {
	display: flex;
	width: 154px;
	height: 45px;
	padding: 10px 12px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 20px;
	border: 1px solid #DC7B91;
	background: var(--Color, #FEEFF2);
	transition: background-color 0.3s ease;
	color: #DC7B91;
}

.btn-login:hover {
	background-color: #EFE5E7;
	color: #DC7B91;
}

.btn-register {
	display: flex;
	width: 200px;
	padding: 10px 12px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: #FFFFFF;
	/* align-self: stretch; */ /* Убрано, так как фиксированная ширина задана явно */
	border-radius: 23px;
	background: #DC7B91; /* Используем hex цвет из var(--Secondary, #17897C) */
	transition: background-color 0.3s ease;
	text-decoration: none;
}

.btn-register:hover {
	background-color: #b85c77;
	color: #fff;
	border: 1px solid #b85c77;
}

.forgot-password {
	color: #DC7B91;
	font-family: Onest;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 114%; /* 22.8px */
	text-decoration-line: underline;
	text-decoration-style: solid;
	text-decoration-skip-ink: none;
	text-decoration-thickness: auto;
	text-underline-offset: auto;
	text-underline-position: from-font;
}

.forgot-password:hover {
	color: #b85c77;
	text-decoration: underline;
}


.contact-info p {
	color: #181032;
	font-family: Onest;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 114%; /* 22.8px */
	margin-top: 32px;
}

.whatsapp-link {
	color: #DC7B91;
	font-family: Onest;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 114%; /* 22.8px */
	text-decoration-line: none;
}

.whatsapp-link:hover {
	color: #b85c77;
	text-decoration: underline;
}

.qr-code {
	position: absolute;
	bottom: 37px; /* Отступ снизу как padding попапа */
	right: 32px; /* Отступ справа как padding попапа */
	width: 100px; /* Примерный размер QR-кода */
	height: 100px; /* Примерный размер QR-кода */
}

.qr-code img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* Сохраняем пропорции изображения */
}

@media (max-width: 960px) {
	.login-popup h1 {
		font-size: 22px;
	}
	.login-popup p {
		font-size: 16px;
	}
	.form-group label {
		font-size: 16px;
	}
	.form-group input[type="text"],
	.form-group input[type="password"] {
		font-size: 16px;
	}
	.forgot-password {
		font-size: 16px;
	}
	.contact-info p {
		max-width: 306px;
		font-size: 16px;
	}
	.whatsapp-link {
		font-size: 16px;
	}
	.qr-code {
		bottom: 35px;
	}
	.qr-code img {}
}

@media (max-width: 480px) {
	.btn-login {
		width: 100%;
	}
	.btn-register {
		width: 100%;
	}
	.qr-code img {
		display: none;
	}
}

.close-popup {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 32px;
	color: #b85c77;
	cursor: pointer;
	z-index: 10;
	transition: color 0.2s;
}

.close-popup:hover {
	color: #DC7B91;
}

body, .modal-overlay, .login-popup, .login-popup *, .form-group input, .form-group label, .btn-login, .btn-register, .forgot-password, .whatsapp-link, .contact-info p {
	font-family: sans-serif !important;
}
/* End */


/* Start:/local/templates/gynecology/components/wexpert/includer/popup/style.min.css?1749020297344*/
.popup.popup-doctor-warning{display:none}.popup.popup-doctor-warning.order_popup_show{display:block}.popup.popup-doctor-warning .overlay-warning{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5)}.popup-doctor-warning .check_block{display:table;margin:0 auto}.popup-doctor-warning .check_block .but-all{display:inline-block}
/* End */


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

/* ========== АДАПТИВНАЯ СЕТКА: 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);
    }
}

/* Средние экраны (1024-1399px): всегда 2 колонки */
@media (min-width: 1024px) and (max-width: 1399px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .events-right {
        width: 300px;
    }
}

/* Планшеты (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: 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;
        justify-content: center;
        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 {
    display: none !important;
    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;
}

/* На мобильных (< 960px) показываем мобильную версию, скрываем десктопную */
@media (max-width: 959px) {
    .but-more-all.for-mob {
        display: none !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: none !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 */
/* /local/templates/gynecology/components/bitrix/catalog/events/bitrix/catalog.element/.default/style.css?17562183891041 */
/* /local/templates/gynecology/components/bitrix/system.auth.authorize/.default/style.css?17502327147091 */
/* /local/templates/gynecology/components/wexpert/includer/popup/style.min.css?1749020297344 */
/* /local/templates/gynecology/components/bitrix/catalog/events/bitrix/news.list/.default-v2/style.css?176043118327929 */
/* /local/templates/gynecology/components/wexpert/includer/ajax.pagen/style.min.css?174902029738 */
