/*
 * Общий блок "табы + фильтры" (ПК) — переиспользуется на нескольких страницах
 * (/lawyers/, вопросы на главной, страница вопроса, дальше по плану ещё). Не привязан
 * к конкретной фиче — префикс .cfpc- (catalog filters, ПК). Список конкретных строк
 * фильтра каждая страница верстает сама (разные поля), но использует эти общие
 * классы/компоненты (.cfpc-filters__row, .cfpc-switch, .cfpc-sos-badge и т.д.).
 *
 * Изолирован от main.css: общий templates/tabs.twig трогать нельзя, он рендерится
 * ещё на страницах, не переведённых на этот компонент.
 */

.cfpc-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 10px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(20, 43, 80, .06);
	overflow: hidden;
}
.cfpc-tabs__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 52px;
	color: #7a8291;
	font-size: 14px;
	text-decoration: none;
}
.cfpc-tabs__item:hover {
	background: #f8fafc;
}
.cfpc-tabs__item--active {
	color: #0c3976;
	font-weight: 700;
}
.cfpc-tabs__item--active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: #1677ff;
}
.cfpc-tabs__count {
	color: #a3abbb;
	font-size: 13px;
	font-weight: 400;
}
.cfpc-tabs__item--active .cfpc-tabs__count {
	color: #1677ff;
}

.cfpc-filters {
	margin-bottom: 10px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(20, 43, 80, .06);
	overflow: hidden;
}
.cfpc-filters__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	padding: 8px 18px;
	font-size: 13px;
	color: #12203f;
	cursor: pointer;
	border-bottom: 1px solid #eef1f6;
}
.cfpc-filters__row:last-child {
	border-bottom: none;
}
.cfpc-filters__row:hover {
	background: #f8fafc;
}
.cfpc-filters__row[hidden] {
	display: none;
}
.cfpc-filters__label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6f7a90;
	white-space: nowrap;
}
.cfpc-filters__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: #1677ff;
}
.cfpc-filters__value {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #12203f;
	font-weight: 600;
	white-space: nowrap;
}
.cfpc-filters__flag {
	width: 16px;
	height: 11px;
	object-fit: cover;
}
.cfpc-filters__row--switch {
	cursor: default;
}
.cfpc-sos-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 20px;
	min-width: 27px;
	padding: 0 5px;
	border-radius: 5px;
	background: #e31d2b;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}
.cfpc-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 21px;
}
.cfpc-switch input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}
.cfpc-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #cdd2db;
	pointer-events: none;
}
.cfpc-switch__track::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #fff;
	transition: .2s;
}
.cfpc-switch input:checked + .cfpc-switch__track {
	background: #16a05d;
}
.cfpc-switch input:checked + .cfpc-switch__track::before {
	transform: translateX(15px);
}
