/**
 * Подключается в конце страницы (после ShowHead / компонентов), чтобы перебить Bitrix CSS.
 */

.bx-breadcrumb {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
	gap: 2px 4px;
	max-width: 100% !important;
	margin: 0 0 12px !important;
	padding: 0;
	clear: both;
	overflow: hidden;
}

.bx-breadcrumb > div[style*='clear'] {
	display: none !important;
}

.bx-breadcrumb .bx-breadcrumb-item {
	float: none !important;
	display: inline-flex !important;
	align-items: center;
	flex: 0 1 auto !important;
	flex-shrink: 1 !important;
	width: auto !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
	white-space: normal !important;
	vertical-align: middle !important;
}

.bx-breadcrumb .bx-breadcrumb-item a,
.bx-breadcrumb .bx-breadcrumb-item span {
	display: inline !important;
	width: auto !important;
	max-width: 100%;
	white-space: normal !important;
}

.bx-breadcrumb .bx-breadcrumb-item a {
	color: #1766d2;
	text-decoration: none;
	border-bottom: none !important;
}

.bx-breadcrumb .bx-breadcrumb-item > span:last-child {
	color: #394454;
}

#conten > .block-4.page-about {
	padding-top: 24px;
	padding-bottom: 40px;
}

#conten > .block-4 > .container,
#conten #content .container,
#conten .block-4 .container {
	width: 100% !important;
	max-width: 1400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	box-sizing: border-box;
}

#conten #content {
	width: 100%;
	max-width: 100%;
}

/* Дубли с [s1] в крошках и лишний h1 на списке новостей */
#conten .page-about .bx-breadcrumb-item span:first-child {
	max-width: 100%;
}

#conten .page-about .bx-breadcrumb-item:has(span:first-child:not(:empty)) {
	/* noop for older browsers */
}

/* Новости: карточки в одну колонку на мобильных */
@media (max-width: 767px) {
	#conten #content .col-xs-6,
	#conten #content .col-sm-6 {
		width: 100% !important;
		float: none !important;
	}

	#conten #content .thumb-pad-4 .thumbnail img.preview_picture {
		float: none !important;
		display: block !important;
		width: 100% !important;
		height: auto !important;
		margin: 0 0 12px !important;
	}

	#conten #content .thumb-pad-4 .thumbnail .caption {
		overflow: visible;
		padding: 0 4px 16px !important;
	}

	#conten > .block-4 > .container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

/* Карточка товара — галерея (не в полноэкранном просмотре) */
.tornado-asg-product .product-item-detail-slider-container:not(.popup) .product-item-detail-slider-block,
#conten .tornado-asg-product .product-item-detail-slider-container:not(.popup) .product-item-detail-slider-block {
	position: relative !important;
	box-sizing: border-box;
	padding-top: 100% !important;
	height: 0 !important;
	overflow: hidden;
}

#conten .tornado-asg-product .product-item-detail-slider-images-container {
	position: absolute !important;
	inset: 0;
}

#conten .tornado-asg-product .product-item-detail-slider-image,
#conten .tornado-asg-product .product-item-detail-slider-image.active {
	position: absolute !important;
	inset: 0 !important;
}

#conten .tornado-asg-product .product-item-detail-slider-image {
	opacity: 0;
}

#conten .tornado-asg-product .product-item-detail-slider-image.active {
	opacity: 1;
	z-index: 10;
}

#conten .tornado-asg-product .product-item-detail-slider-image img {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

#conten .tornado-asg-product__gallery {
	min-height: 0;
	overflow: hidden;
}

#conten .news-detail,
#conten #content .news-detail {
	margin-top: 24px;
	margin-bottom: 30px;
}

#conten div.news-detail img.detail_picture {
	max-width: 100%;
	height: auto;
}

/* Список статей /articles/ */
#conten .news-list {
	margin-top: 20px;
	width: 100%;
}

#conten .news-item {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-start;
	justify-content: space-between;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 auto 20px !important;
	padding: 16px 20px;
	box-shadow: 0 0 8px rgba(160, 160, 160, 0.45);
	transition: box-shadow 0.15s ease-out;
}

#conten .news-item:hover {
	box-shadow: 0 0 2px rgba(160, 160, 160, 0.35);
}

#conten .news-item .preview-img {
	width: 20%;
	flex: 0 0 20%;
	max-width: 220px;
}

#conten .news-item .preview-img a {
	display: block;
}

#conten .news-item .preview-img img {
	width: 100% !important;
	height: auto !important;
	display: block;
	float: none !important;
}

#conten .news-item .text {
	width: 78%;
	flex: 1 1 78%;
	min-width: 0;
	margin-left: 10px;
}

#conten .news-item .text .head {
	display: flex !important;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}

#conten .news-item .text .head a b {
	font-weight: 700;
	color: #1766d2;
}

#conten .news-item .text .head .news-date-time {
	margin-left: 0;
	color: #777;
	font-size: 13px;
}

#conten .news-item .preview-text {
	font-size: 14px;
	line-height: 1.5;
	color: #394454;
}

#conten .news-item .preview-text h2 {
	font-size: 18px;
	margin: 0 0 8px;
	line-height: 1.3;
	color: #222;
}

@media (max-width: 767px) {
	#conten .news-item {
		padding: 12px;
	}

	#conten .news-item .preview-img,
	#conten .news-item .text {
		width: 100% !important;
		flex: 0 0 100% !important;
		max-width: 100%;
		margin-left: 0;
	}

	#conten .news-item .preview-img {
		margin-bottom: 10px;
	}
}