/* Услуги и Вопрос-Ответ: только оформление, текст не меняется. */

#maincol:has(.services-tak) > p,
#maincol:has(.ask-items) > p {
	line-height: 1.55;
	margin: 0 0 12px;
}

#maincol:has(.services-tak) .zag-index {
	background: none;
	border: 0;
	padding: 6px 0 14px;
	margin: 8px 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	color: #c23736;
}

/* --- Услуги: карточки --- */

.services-tak {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 22px;
}

.services-tak a,
.services-tak a.href {
	display: block;
	text-decoration: none !important;
	color: inherit;
}

.services-tak a > div {
	display: grid;
	grid-template-columns: 58px 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	row-gap: 4px;
	align-items: start;
	margin: 0;
	padding: 14px 16px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	box-sizing: border-box;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.services-tak a > div:hover {
	border-color: #c23736;
	background: #fff;
	box-shadow: 0 8px 18px rgba(194, 55, 54, .12);
	transform: translateY(-1px);
}

.services-tak a div img {
	grid-column: 1;
	grid-row: 1 / span 2;
	float: none;
	display: block;
	width: 58px;
	height: 58px;
	padding: 8px;
	margin: 0;
	object-fit: contain;
	background: #fff7f7;
	border: 1px solid #f0d6d5;
	border-radius: 8px;
	box-sizing: border-box;
}

.services-tak a div p:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
	margin: 2px 0 0;
	padding: 0;
	color: #c23736;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.services-tak a div p:last-child {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	padding: 0;
	color: #4e4e4e;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 400;
}

.services-tak a:hover div p:nth-child(2) {
	color: #a82e2d;
}

/* --- FAQ: карточки с номерами 01, 02, 03 --- */

.ask-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 22px;
	counter-reset: faqn;
}

.ask-item {
	display: grid;
	grid-template-columns: 58px 1fr;
	column-gap: 0;
	align-items: start;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	overflow: hidden;
	counter-increment: faqn;
}

.ask-item::before {
	content: counter(faqn, decimal-leading-zero);
	grid-column: 1;
	grid-row: 1 / span 10;
	padding: 16px 0 16px;
	color: #c23736;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	font-variant-numeric: tabular-nums;
	font-family: verdana, sans-serif;
	border-right: 1px solid #f0f0f0;
	background: #fffaf9;
}

.ask-item > p:first-child,
.ask-item p:nth-child(1) {
	grid-column: 2;
	position: relative;
	margin: 0;
	padding: 16px 16px 12px 14px;
	background: #fff;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	border-radius: 0;
	color: #2f2f2f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.ask-item > p:first-child strong,
.ask-item p:nth-child(1) strong {
	font-weight: 700;
	color: #2f2f2f;
}

.ask-item > p:first-child::before,
.ask-item p:nth-child(1)::before {
	content: none;
	display: none;
}

.ask-item > p:nth-child(2),
.ask-item > div,
.ask-item p:nth-child(2),
.ask-item div {
	grid-column: 2;
	margin: 0;
	padding: 12px 16px 16px 14px;
	background: #fff;
	color: #4e4e4e;
	font-size: 12px;
	line-height: 1.55;
}

.ask-item ul {
	grid-column: 2;
	margin: 0;
	padding: 4px 16px 14px 36px;
	background: #fff;
	color: #4e4e4e;
	font-size: 12px;
	line-height: 1.55;
	list-style: disc;
}

.ask-item ul li {
	margin: 3px 0;
	padding: 0;
	font-size: 12px;
	color: #4e4e4e;
	list-style: disc;
}

/* --- Страницы услуг: лид + секции + списки --- */

.service-article > p:first-of-type {
	margin: 0 0 16px;
	padding: 16px 18px;
	background: #fff7f7;
	border: 1px solid #e8c4c3;
	border-left: 5px solid #c23736;
	border-radius: 6px;
	box-sizing: border-box;
	line-height: 1.55;
}

.service-article:has(> .stropt-takel) > p:first-of-type {
	margin: 0 0 14px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.service-article > p:has(> strong:only-child),
.service-article > p:has(> strong:first-child):has(> strong:last-child):not(:has(> :not(strong, br))) {
	margin: 18px 0 10px;
	padding: 0;
	color: #c23736;
	font-weight: 700;
	line-height: 1.35;
	background: none;
	border: 0;
}

.service-article > p:has(> strong:only-child) strong,
.service-article > p:has(> strong:first-child):has(> strong:last-child):not(:has(> :not(strong, br))) strong {
	color: #c23736;
	font-weight: 700;
}

.service-article > ul {
	margin: 0 0 16px;
	padding: 12px 16px 12px 18px;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	box-sizing: border-box;
	list-style: none;
}

.service-article > ul > li {
	position: relative;
	margin: 0;
	padding: 6px 0 6px 18px;
	list-style: none;
	line-height: 1.55;
}

.service-article > ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c23736;
}

.service-article > p:last-of-type:not(:first-of-type) {
	margin: 18px 0 8px;
	padding: 16px 18px;
	background: #fff7f7;
	border: 1px solid #e8c4c3;
	border-left: 5px solid #c23736;
	border-radius: 6px;
	box-sizing: border-box;
	line-height: 1.55;
}

.service-article > p:last-of-type:not(:first-of-type) strong {
	color: #c23736;
}

/* Список оборудования: класс clients здесь чужой (карусель логотипов), вернуть вертикальный список */
#maincol ul.clients {
	display: block !important;
	flex-wrap: unset;
	overflow: visible !important;
	justify-content: flex-start;
	margin: 0 0 4px;
	padding: 0;
}

#maincol ul.clients li {
	display: block;
	float: none;
	width: auto;
	margin: 6px 0 0;
	padding-left: 16px;
	line-height: 1.5;
	background: url("../images/bullet-list.png") no-repeat 0 8px;
}

#maincol ul.clients li:first-child {
	margin-top: 0;
}

/* Примеры работ на страницах услуг: сетка фото по центру */
#maincol div:has(> .gallery_mob) {
	text-align: center;
}

#maincol .gallery_mob {
	float: none;
	display: inline-block;
	vertical-align: top;
}

/* Теги сайдбара: assets/templates/ajax/css/sidebar-works.css */

/* --- Сайдбар: 3 случайные статьи --- */

#leftcol .decorate-title:has(+ .articles) {
	margin-bottom: 0;
	padding: 11px 12px;
	text-align: left;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px 8px 0 0;
	border-bottom: none;
}

#leftcol .decorate-title:has(+ .articles) a {
	margin-top: 2px;
	margin-right: 0;
	color: #fff;
	opacity: .92;
}

#leftcol .decorate-title:has(+ .articles) a:hover {
	opacity: 1;
	text-decoration: underline;
}

#leftcol .articles {
	width: 100%;
	margin: 0 0 18px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-top: none;
	border-radius: 0 0 8px 8px;
	box-sizing: border-box;
}

#leftcol .articles .line {
	margin: 0;
	padding: 0;
	border-top: 1px solid #f0f0f0;
}

#leftcol .articles .line:first-child {
	border-top: none;
	padding-top: 0;
}

#leftcol .articles .line a {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 11px 12px 11px 10px;
	color: #2f2f2f;
	font-size: 12px;
	line-height: 1.4;
	text-decoration: none;
	box-sizing: border-box;
	transition: background .15s ease, color .15s ease;
}

#leftcol .articles .line a::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	margin-top: 6px;
	border-radius: 50%;
	background: #c23736;
}

#leftcol .articles .line a:hover {
	background: #fafafa;
	color: #c23736;
	text-decoration: none;
}

@media (max-width: 640px) {
	.services-tak a > div {
		grid-template-columns: 48px 1fr;
		padding: 12px;
		column-gap: 10px;
	}

	.services-tak a div img {
		width: 48px;
		height: 48px;
		padding: 6px;
	}

	.ask-item {
		grid-template-columns: 46px 1fr;
	}

	.ask-item::before {
		font-size: 18px;
		padding-top: 14px;
	}

	.ask-item > p:first-child,
	.ask-item p:nth-child(1) {
		padding-left: 12px;
	}
}
