/* KEY ACADEMY: сравнительная таблица XTOOL + компактная ссылка на карточке.
   Геометрию 580/200/76/151 карточки не меняет: слот заголовка остаётся 76px. */

.ka-xtool-compare {
	margin: 0 0 40px;
	color: #4f5358;
}
.ka-xtool-compare__lead,
.ka-xtool-compare__note,
.ka-xtool-compare__foot,
.ka-xtool-compare__copy {
	max-width: 920px;
	margin: 0 0 14px;
	line-height: 1.45;
}
.ka-xtool-compare__note {
	font-size: 14px;
	color: #6b6f74;
}
.ka-xtool-compare__foot,
.ka-xtool-compare__copy {
	font-size: 13px;
	color: #6b6f74;
}
.ka-xtool-compare__scroll {
	overflow: auto;
	max-width: 100%;
	min-height: 280px;
	max-height: calc(100dvh - var(--ka-xtool-head, 0px) - 16px);
	margin: 18px 0 22px;
	border: 1px solid #d2d2d2;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}
.ka-xtool-compare__scroll.is-pinned {
	z-index: 20;
	margin: 0;
	box-shadow: 0 8px 24px rgba(47, 51, 55, .18);
}
.ka-xtool-compare__table {
	border-collapse: separate;
	border-spacing: 0;
	min-width: 1280px;
	width: 100%;
	font-size: 13px;
	line-height: 1.25;
}
.ka-xtool-compare__caption {
	caption-side: top;
	text-align: left;
	padding: 12px 14px;
	font-weight: 700;
	font-size: 16px;
	color: #4f5358;
	background: #fff8f1;
	border-bottom: 1px solid #f3c391;
}
.ka-xtool-compare__table th,
.ka-xtool-compare__table td {
	border-bottom: 1px solid #ececec;
	border-right: 1px solid #f3f3f3;
	padding: 8px 10px;
	vertical-align: middle;
}
.ka-xtool-compare__table thead th {
	position: sticky;
	top: 0;
	z-index: 3;
	background: #4f5358;
	color: #fff;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 1px 0 #4f5358;
}
.ka-xtool-compare__table thead th.ka-xtool-compare__feat {
	position: sticky;
	top: 0;
	left: 0;
	z-index: 5;
	text-align: left;
	white-space: normal;
	min-width: 280px;
}
.ka-xtool-compare__feat {
	position: sticky;
	left: 0;
	z-index: 2;
	background: #fff;
	text-align: left;
	font-weight: 600;
	min-width: 260px;
	max-width: 340px;
	box-shadow: 1px 0 0 #ececec;
}
.ka-xtool-compare__model {
	min-width: 88px;
	max-width: 120px;
	white-space: normal;
	font-size: 12px;
}
.ka-xtool-compare__cell {
	text-align: center;
	background: #fff;
}
.ka-xtool-compare__cell.is-yes {
	background: #fff8f1;
}
.ka-xtool-compare__yes {
	display: inline-block;
	color: #f4943e;
	font-weight: 700;
	font-size: 16px;
}
.ka-xtool-compare__group th {
	position: sticky;
	left: 0;
	z-index: 1;
	background: #f4943e;
	color: #fff;
	font-weight: 700;
	letter-spacing: .04em;
	text-align: left;
	padding: 9px 14px;
}

form.b-product-form:has(> .ka-xtool-compare-btn) {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
}
form.b-product-form:has(> .ka-xtool-compare-btn) > .ka-xtool-compare-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	height: 60px !important;
	min-height: 60px !important;
	max-height: 60px !important;
	margin: 10px 0 0 0 !important;
	box-sizing: border-box !important;
	white-space: nowrap !important;
	text-decoration: none;
	overflow: hidden;
}
@media (max-width: 767px) {
	form.b-product-form:has(> .ka-xtool-compare-btn) > .ka-xtool-compare-btn {
		flex: 1 1 100%;
		margin-left: 0 !important;
		margin-top: 10px !important;
	}
}

/* Каталожная сетка: ссылка внутри слота 76px, карточка 580 не растёт. */
.b-product-grid__item > .b-product-item .b-product-item__title-slot:has(> .ka-xtool-card-link) > .b-product-item__title,
.b-product-grid__item > .b-product-item .b-product-item__title-slot:has(> .ka-xtool-card-link) > a.b-product-item__title,
.b-product-slider__item > .b-product-item .b-product-item__title-slot:has(> .ka-xtool-card-link) > .b-product-item__title,
.b-product-slider__item > .b-product-item .b-product-item__title-slot:has(> .ka-xtool-card-link) > a.b-product-item__title {
	height: 60px !important;
	min-height: 60px !important;
	max-height: 60px !important;
	flex: 0 0 60px !important;
}
.ka-xtool-card-link {
	display: block;
	height: 16px;
	max-height: 16px;
	line-height: 16px;
	margin: 0;
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	color: #f4943e !important;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ka-xtool-card-link:hover {
	color: #d97820 !important;
	text-decoration: underline !important;
}
