/* services-list-old: bento (карточки главной) */
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Bootstrap .row — ::before/::after (clearfix) иначе становятся лишними ячейками CSS Grid */
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento::before,
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento::after {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item.clearfix::after {
	display: none !important;
	content: none !important;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell > a {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	color: inherit;
	text-decoration: none;
}

/* min-width:0 — иначе min-content (картинка, min-width:100% у img) раздувает дорожку и ячейки наезжают друг на друга */
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell {
	align-self: stretch;
	min-width: 0;
	max-width: 100%;
	min-height: 0;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	height: auto;
	min-height: 0;
	box-sizing: border-box;
}

/* Высота из aspect-ratio, не height:100% — иначе при абсолютном контенте строка grid схлопывается. */
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--narrow .item {
	aspect-ratio: 1 / 1;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide .item {
	aspect-ratio: 2 / 1;
}

/* .items.row — выше специфичность, чем template_styles «.sections.item-views .item .image { width:140px }» */
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .image {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	float: none;
	z-index: 0;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .image .wrap {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .image img,
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .image img.img-responsive {
	width: 100% !important;
	min-width: 0;
	max-width: 100% !important;
	height: 100% !important;
	-o-object-fit: cover;
	object-fit: cover;
	object-position: center;
	display: block;
	vertical-align: top;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 72%);
	pointer-events: none;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item:hover .image::before {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .info {
	position: absolute;
	z-index: 2;
	top: auto;
	bottom: 0;
	left: 0;
	right: 0;
	height: auto;
	min-height: 42%;
	padding: 1rem 1rem 1.1rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	box-sizing: border-box;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .info .info__inner {
	width: 100%;
	max-width: 100%;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .previewtext {
	font-size: 0.8125rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 0.4rem;
	font-weight: 400;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .title.dark-color {
	display: block;
	font-size: 1.125rem;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
	background: none;
	padding: 0;
	margin: 0;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--all > a {
	display: block;
	width: 100%;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--all .item.services-front-bento__item--all {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f7f7f7;
	border: 1px solid #d9d9d9;
	box-shadow: none;
	aspect-ratio: 1 / 1;
	height: auto;
	padding: 1rem;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--all > a:hover .item.services-front-bento__item--all,
.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--all > a:focus .item.services-front-bento__item--all {
	background: #f2f2f2;
	border-color: #bdbdbd;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__all-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	max-width: 100%;
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 500;
	color: #333;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__all-label {
	display: inline;
}

.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__all-arrow {
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-top: 0.05em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	flex-shrink: 0;
}

/* responsive-medc2: .sections.item-views.front:not(.icons) .items .item .image { width:140px } на tablet/desktop */
@media (min-width: 768px) {
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .image {
		float: none !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		margin-left: 0 !important;
		padding: 0 !important;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .info {
		padding-left: 1rem !important;
	}
}

@media (min-width: 992px) {
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 18px;
		align-items: stretch;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide {
		grid-column: span 2;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--narrow {
		grid-column: span 1;
	}

	/*
	 * Высоту ряда задаёт только wide через ::before (2/1).
	 * Карточки (.item) absolute и заполняют ячейку — узкие = той же высоты, что wide.
	 */
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide > a {
		display: block;
		position: relative;
		width: 100%;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide > a::before {
		content: "";
		display: block;
		width: 100%;
		aspect-ratio: 2 / 1;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--narrow > a,
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--all > a {
		display: block;
		position: relative;
		width: 100%;
		height: 100%;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide .item,
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--narrow .item,
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--all .item.services-front-bento__item--all {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: unset !important;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 16px;
		align-items: stretch;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide {
		grid-column: span 2;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--narrow {
		grid-column: span 1;
	}
}

@media (max-width: 767px) {
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide,
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--narrow {
		grid-column: span 1;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--narrow .item,
	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--wide .item {
		aspect-ratio: 16 / 10;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .services-front-bento__cell--all .item.services-front-bento__item--all {
		aspect-ratio: 16 / 10;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .image {
		float: none !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
	}

	.sections.item-views.services-item.services-type-2.front .items.row.services-front-bento .item .info {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
}
