/* SVG icon helpers — inline .p-icon + CSS-mask replacements for former Font Awesome ::before */

.p-icon {
	display: inline-block;
	vertical-align: -0.125em;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

/* scroll-to-top: .p-icon 1em перебивал 18px из scroll-to-top.css */
.scroll-to-top__icon.p-icon,
.scroll-to-top .p-icon--arrow-up {
	width: 20px;
	height: 20px;
}

/* Shared mask pseudo reset (replaces Font Awesome glyph + font-family) */
.contrast-version span::before,
.top-navi_item::before,
.personal-cabinet-link::before,
.personal-cabinet-link:hover::before,
.personal-cabinet-link1:hover::before,
.prev-items-block_more span::after,
.title-block .after::before,
.title-block .before::after,
.prev-novelty_date::after,
.prev-novelty_loc em::before,
.prev-ann_date::after,
.prev-ann_loc em::before,
.calendar-block .title-block span.after::before,
.calendar .prev::before,
.calendar .next::before,
.calendar-action_loc em::before,
.contacts-block_phone::before,
.contacts-block_addr::before,
.contacts-block_mail::before,
.breadcrumbs ul li::before,
.download-file_icon::before,
.contacts-info_addr::before,
.contacts-info_person::before,
.prev-article_loc em::before,
.category-filter::after,
.region-filter::after,
.date-filter::after,
.prev-novelty_locs::before {
	content: "" !important;
	font-family: inherit !important;
	font-weight: normal !important;
	font-style: normal !important;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.contrast-version span::before {
	-webkit-mask-image: url("/local/include/icons/svg/eye.svg") !important;
	mask-image: url("/local/include/icons/svg/eye.svg") !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
	display: block !important;
	/* FA eye шире высоты; бокс чуть крупнее прежних 14px font-size */
	width: 20px !important;
	height: 14px !important;
	top: 4px !important;
}

.top-navi_item::before,
.title-block .after::before,
.title-block .before::after,
.prev-novelty_date::after,
.prev-ann_date::after,
.calendar-block .title-block span.after::before,
.breadcrumbs ul li::before,
.contacts-info_addr::before,
.contacts-info_person::before,
.category-filter::after,
.region-filter::after,
.date-filter::after {
	-webkit-mask-image: url("/local/include/icons/svg/circle.svg");
	mask-image: url("/local/include/icons/svg/circle.svg");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	/* FA \f111 при font-size:5px — круг почти на всю em-коробку; прежний SVG был r=6/24 */
	width: 5px;
	height: 5px;
	min-width: 5px;
	min-height: 5px;
}

.personal-cabinet-link::before,
.personal-cabinet-link:hover::before,
.personal-cabinet-link1:hover::before {
	-webkit-mask-image: url("/local/include/icons/svg/user.svg");
	mask-image: url("/local/include/icons/svg/user.svg");
	width: 9px;
	height: 9px;
}

/* Header ЛК uses inline SVG — keep ::before off */
.header .personal-cabinet-link.personal-cabinet-link--with-icon::before,
.header .personal-cabinet-link.personal-cabinet-link--with-icon:hover::before {
	content: none !important;
	display: none !important;
	-webkit-mask-image: none;
	mask-image: none;
	background: none;
}

.prev-items-block_more span::after {
	-webkit-mask-image: url("/local/include/icons/svg/chevron-down.svg");
	mask-image: url("/local/include/icons/svg/chevron-down.svg");
	width: 24px;
	height: 24px;
}

.prev-novelty_loc em::before,
.prev-ann_loc em::before,
.calendar-action_loc em::before,
.prev-article_loc em::before,
.prev-novelty_locs::before {
	-webkit-mask-image: url("/local/include/icons/svg/location.svg");
	mask-image: url("/local/include/icons/svg/location.svg");
	width: 12px;
	height: 12px;
}

.calendar .prev::before {
	-webkit-mask-image: url("/local/include/icons/svg/chevron-left.svg");
	mask-image: url("/local/include/icons/svg/chevron-left.svg");
	width: 28px;
	height: 28px;
}

.calendar .next::before {
	-webkit-mask-image: url("/local/include/icons/svg/chevron-right.svg");
	mask-image: url("/local/include/icons/svg/chevron-right.svg");
	width: 28px;
	height: 28px;
}

/* Футер contacts-block: FA solid @12px выглядел крупнее — 16px + плотная маска */
.contacts-block_phone::before,
.contacts-block_addr::before,
.contacts-block_mail::before {
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	width: 16px;
	height: 16px;
}
.contacts-block_phone::before {
	-webkit-mask-image: url("/local/include/icons/svg/phone.svg");
	mask-image: url("/local/include/icons/svg/phone.svg");
}
.contacts-block_addr::before {
	-webkit-mask-image: url("/local/include/icons/svg/location.svg");
	mask-image: url("/local/include/icons/svg/location.svg");
}
.contacts-block_mail::before {
	-webkit-mask-image: url("/local/include/icons/svg/envelope.svg");
	mask-image: url("/local/include/icons/svg/envelope.svg");
}

.download-file_icon::before {
	width: 24px;
	height: 24px;
	display: inline-block;
	margin: 0 auto;
}
.download-file.wr .download-file_icon::before {
	-webkit-mask-image: url("/local/include/icons/svg/file-word.svg");
	mask-image: url("/local/include/icons/svg/file-word.svg");
}
.download-file.ac .download-file_icon::before {
	-webkit-mask-image: url("/local/include/icons/svg/file-pdf.svg");
	mask-image: url("/local/include/icons/svg/file-pdf.svg");
}
.download-file.el .download-file_icon::before {
	-webkit-mask-image: url("/local/include/icons/svg/paperclip.svg");
	mask-image: url("/local/include/icons/svg/paperclip.svg");
}

/* Social icon SVGs in header/footer */
/* Соцсети: FA брал размер из font-size родителя; SVG = тот же em-бокс */
#table_soc_icons1 a.social-icon .p-icon {
	display: block;
	width: 16px;
	height: 16px;
}
#socials a.social-icon .p-icon {
	display: block;
	width: 26px;
	height: 26px;
}
#table_soc_icons1 .social-icon__vk-video,
#socials .social-icon__vk-video {
	width: 16px;
	height: 16px;
}
#socials .social-icon__vk-video {
	width: 24px;
	height: 24px;
}
#table_soc_icons1 .social-icon__max,
#socials .social-icon__max {
	width: 16px;
	height: 16px;
}
#socials .social-icon__max {
	width: 24px;
	height: 24px;
}

/* Filter / search inline icons */
.date-filter_name .p-icon,
.category-filter_name .p-icon,
.sport-filter_name .p-icon,
.region-filter_name .p-icon,
.filter-reset-link .p-icon,
.search-block_loupe .p-icon {
	width: 1em;
	height: 1em;
}
.filter-reset-link .p-icon {
	width: 1.1em;
	height: 1.1em;
}
.region-link__icon .p-icon,
.region-detail-link__icon .p-icon {
	width: 1em;
	height: 1em;
}

/* ui-kit */
.dropdown__trigger::after,
.collapsible-list__toggle::after,
.collapsible-list--native details summary::after {
	content: "" !important;
	font-family: inherit !important;
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: currentColor;
	-webkit-mask: url("/local/include/icons/svg/chevron-down.svg") center / contain no-repeat;
	mask: url("/local/include/icons/svg/chevron-down.svg") center / contain no-repeat;
}
.collapsible-list__toggle::after,
.collapsible-list--native details summary::after {
	width: 12px;
	height: 12px;
}
.modal__close::before {
	content: "" !important;
	font-family: inherit !important;
	display: inline-block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("/local/include/icons/svg/xmark.svg") center / contain no-repeat;
	mask: url("/local/include/icons/svg/xmark.svg") center / contain no-repeat;
}

/* banners pager: неактивные — кольцо (как FA \f192), active/hover — заливка */
.slider--banners .bx-wrapper .bx-pager.bx-default-pager a::before {
	content: "" !important;
	font-family: inherit !important;
	display: block !important;
	width: 7px !important;
	height: 7px !important;
	background-color: currentColor !important;
	color: var(--color-white) !important;
	-webkit-mask: url("/local/include/icons/svg/circle-ring.svg") center / contain no-repeat !important;
	mask: url("/local/include/icons/svg/circle-ring.svg") center / contain no-repeat !important;
	text-indent: 0 !important;
}
.slider--banners .bx-wrapper .bx-pager.bx-default-pager a:hover::before,
.slider--banners .bx-wrapper .bx-pager.bx-default-pager a.active::before,
.slider--banners .bx-wrapper .bx-pager.bx-default-pager a:focus-visible::before {
	-webkit-mask-image: url("/local/include/icons/svg/circle.svg") !important;
	mask-image: url("/local/include/icons/svg/circle.svg") !important;
}

/* protocol events */
.protocol-event-date::before,
.protocol-event-type::before,
.protocol-event-location::before {
	content: "" !important;
	font-family: inherit !important;
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 6px;
	vertical-align: -0.125em;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.protocol-event-date::before {
	-webkit-mask-image: url("/local/include/icons/svg/calendar.svg");
	mask-image: url("/local/include/icons/svg/calendar.svg");
}
.protocol-event-type::before {
	-webkit-mask-image: url("/local/include/icons/svg/person-running.svg");
	mask-image: url("/local/include/icons/svg/person-running.svg");
}
.protocol-event-location::before {
	-webkit-mask-image: url("/local/include/icons/svg/location.svg");
	mask-image: url("/local/include/icons/svg/location.svg");
}

/* smart.filter: JS still toggles fa-angle-* on [data-role=prop_angle] */
[data-role="prop_angle"] .p-icon {
	transition: transform 0.2s ease;
	width: 0.85em;
	height: 0.85em;
}
[data-role="prop_angle"].fa-angle-up .p-icon {
	transform: rotate(180deg);
}
