/*
 * CRHD — страница одного рейтинга (макет «Рейтинг - Уборка квартир»). Поверх cr-home4.css и cr-rating4.css.
 * Только transform, opacity, background-color, border-color; hover только при наведении.
 */

/* ---------- Заголовок и переключатель ---------- */

.crr4-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px 40px;
	margin-top: 24px;
}

.crr4-head__t {
	flex: 1 1 560px;
	min-width: 0;
}

.crh4-page .crr4-head .crr-h1 {
	margin-top: 0;
}

.crh4-page .crr4-lead {
	max-width: 680px;
}

.crr4-sw {
	position: relative;
	flex: 1 1 100%;
}

@media (min-width: 760px) {
	.crr4-sw {
		flex: none;
	}
}

.crr4-sw__cap {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink2);
}

.crh4-page .crr4-sw__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-width: 260px;
	height: 48px;
	padding: 0 14px 0 16px;
	background: #fff;
	border: 1.5px solid var(--line2);
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	transition: border-color .15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-sw__btn:hover {
		border-color: var(--blue);
	}
}

.crr4-sw__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	min-width: 280px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--sh-drop);
	transform-origin: top right;
	animation: crr4-pop .18s cubic-bezier(.23, 1, .32, 1) both;
}

.crr4-sw__list[hidden] {
	display: none;
}

.crh4-page .crr4-sw__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-sw__list a:hover {
		background: var(--soft);
	}
}

.crr4-sw__list a span {
	font-size: 13px;
	color: var(--ink2);
}

@keyframes crr4-pop {
	from {
		opacity: 0;
		transform: scale(.95);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Таблица (ПК) и список (телефон) ---------- */

.crh4-page .crr4-t {
	display: none;
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 15px;
}

.crr4-cards,
.crr4-msort {
	display: block;
}

.crr4-msort {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	font-size: 13px;
	color: var(--ink2);
}

@media (min-width: 760px) {
	.crh4-page .crr4-t {
		display: table;
	}
	.crr4-cards,
	.crr4-msort {
		display: none;
	}
}

.crh4-page .crr4-msort select {
	height: 36px;
	padding: 0 8px;
	border: 1.5px solid var(--line2);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.crh4-page .crr4-msort__i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 36px;
	margin-left: auto;
	color: var(--ink2);
}

.crh4-page .crr4-t th,
.crh4-page .crr4-t td {
	border: 0;
	background: transparent;
	text-align: left;
	vertical-align: middle;
}

.crh4-page .crr4-t thead tr {
	height: 48px;
}

.crh4-page .crr4-th {
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink3);
}

.crh4-page .crr4-th--pl {
	width: 88px;
	padding-left: 20px;
}

.crh4-page .crr4-th--r {
	width: 88px;
}

.crh4-page .crr4-th--n {
	width: 100px;
	text-align: right;
}

.crh4-page .crr4-th--p {
	width: 104px;
	text-align: right;
}

.crh4-page .crr4-th--a {
	width: 168px;
}

.crh4-page .crr4-th button {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink3);
	cursor: pointer;
}

.crh4-page .crr4-th button.is-on {
	color: var(--ink);
}

.crr4-ar {
	display: none;
}

.crr4-th button.is-on .crr4-ar {
	display: block;
}

.crr4-th__in {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.crh4-page .crr4-th button.crr4-th__i {
	padding: 6px 4px;
	border-radius: 8px;
	color: var(--ink2);
	transition: transform .12s ease-out;
}

.crh4-page .crr4-th button.crr4-th__i:active {
	transform: scale(.97);
}

.crh4-page .crr4-tr {
	height: 76px;
	border-top: 1px solid var(--line);
	transition: background-color .15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-tr:hover {
		background-color: #fafbfc;
	}
}

.crh4-page .crr4-td {
	padding: 12px 0;
	font-size: 15px;
}

.crh4-page .crr4-td--pl {
	padding-left: 20px;
}

.crh4-page .crr4-td--n {
	text-align: right;
	color: var(--ink);
}

.crh4-page .crr4-td--p {
	text-align: right;
	font-size: 17px;
	font-weight: 700;
}

.crh4-page .crr4-td--a {
	padding: 0 20px 0 16px;
	text-align: right;
}

.crr4-pl {
	display: flex;
	align-items: center;
	gap: 12px;
}

.crr4-pl__n {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink2);
}

.crh4-page .crr4-cb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 1.5px solid var(--line2);
	border-radius: 6px;
	color: transparent;
	transition: background-color .15s ease, border-color .15s ease;
}

.crh4-page .crr4-cb.is-on,
.crh4-page [aria-checked="true"] .crr4-cb {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.crh4-page .crr4-cb.is-off {
	opacity: .4;
}

.crr4-co {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding-right: 16px;
}

.crr4-co .crh4-logo-box,
.crr4-card__lg .crh4-logo-box {
	border-radius: 12px;
}

.crr4-co__t {
	min-width: 0;
}

.crh4-page .crr4-co__n {
	display: -webkit-box;
	overflow: hidden;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-co__n:hover {
		color: #2f56e0;
		text-decoration: underline;
	}
}

.crr4-co__l {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: var(--ink2);
}

.crr4-rate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.crr4-mut {
	color: var(--ink2);
}

.crh4-page .crr4-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 12px 0 14px;
	background: #fff;
	border: 1.5px solid var(--line2);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
	transition: border-color .15s ease, background-color .15s ease, transform .12s ease-out;
}

.crh4-page .crr4-more:active {
	transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-more:hover {
		border-color: var(--blue);
	}
}

.crh4-page .crr4-more[aria-expanded="true"] {
	background: var(--blue-l);
	border-color: var(--blue);
}

.crr4-more .crh4-i {
	transition: transform .2s ease-in-out;
}

.crr4-more[aria-expanded="true"] .crh4-i {
	transform: rotate(180deg);
}

/* ---------- Раскрытие ---------- */

.crh4-page .crr4-dr {
	background: #fafbfc;
}

.crh4-page .crr4-dr[hidden] {
	display: none;
}

.crh4-page .crr4-dr td {
	padding: 0 20px 24px 88px;
}

.crr4-d {
	animation: crr4-fade .18s ease-out both;
}

@keyframes crr4-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.crr4-d__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 32px;
	padding-top: 4px;
}

.crr4-d__h {
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink2);
}

.crr4-d__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 15px;
	line-height: 1.4;
}

.crh4-page .crr4-phone {
	font-weight: 600;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--line2);
	text-underline-offset: 3px;
}

.crh4-page .crr4-site {
	text-decoration: underline;
	text-underline-offset: 3px;
	word-break: break-word;
}

.crr4-msgs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.crh4-page .crr4-msg {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px 0 10px;
	border: 1.5px solid var(--line2);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	transition: border-color .15s ease, transform .12s ease-out;
}

.crh4-page .crr4-msg:active {
	transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-msg:hover {
		border-color: var(--blue);
		color: var(--ink);
	}
}

.crr4-msg__i {
	display: flex;
	flex: none;
	width: 18px;
	height: 18px;
}

.crr4-msg__i svg {
	width: 100%;
	height: 100%;
}

.crr4-msg--wa .crr4-msg__i {
	color: #25d366;
}

.crr4-msg--tg .crr4-msg__i {
	color: #229ed9;
}

.crr4-msg--max .crr4-msg__i {
	color: #7a4cf2;
}

.crr4-msg--vk .crr4-msg__i {
	color: #0077ff;
}

.crr4-conds {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 15px;
}

.crr4-conds > div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.crr4-conds .is-off {
	color: var(--ink3);
}

.crr4-conds__m {
	display: flex;
	justify-content: center;
	width: 16px;
}

.crr4-conds .is-on .crr4-conds__m {
	color: var(--blue);
}

.crr4-src > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}

.crr4-d__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 32px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.crr4-rv {
	flex: 1 1 420px;
	min-width: 0;
}

.crr4-rv .crr4-d__h {
	margin-bottom: 0;
}

.crr4-rv__m {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 14px;
	color: var(--ink2);
}

.crr4-rv__r {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	color: var(--ink);
}

.crh4-page .crr4-rv__t {
	max-width: 68ch;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink);
	text-wrap: pretty;
}

.crh4-page .crr4-open {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	height: 44px;
	padding: 0 18px;
	background: var(--blue);
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	transition: background-color .15s ease, transform .12s ease-out;
}

.crh4-page .crr4-open:active {
	transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-open:hover {
		background: var(--blue-h);
		color: #fff;
	}
}

/* Телефонная раскладка раскрытия */

.crr4-d--m {
	padding: 4px 16px 20px;
}

.crr4-d--m .crr4-d__cols {
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.crr4-d--m .crr4-d__list {
	gap: 10px;
}

.crh4-page .crr4-call {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	background: var(--blue);
	border-radius: 12px;
	font-weight: 600;
	color: #fff;
}

.crh4-page .crr4-d--m .crr4-msg {
	height: 44px;
	padding: 0 14px 0 12px;
}

.crr4-d--m .crr4-msg__i {
	width: 20px;
	height: 20px;
}

.crr4-d--m .crr4-d__foot {
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	margin-top: 20px;
}

.crh4-page .crr4-d--m .crr4-open {
	justify-content: center;
	height: 48px;
	background: transparent;
	border: 1.5px solid var(--line2);
	color: var(--ink);
}

/* ---------- Список (телефон) ---------- */

.crr4-card {
	border-top: 1px solid var(--line);
}

.crr4-card.is-open {
	background: #fafbfc;
}

.crr4-card__top {
	display: flex;
	gap: 12px;
	padding: 16px 16px 12px;
}

.crr4-card__lg {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 44px;
}

.crr4-card__pl {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink2);
	white-space: nowrap;
}

.crr4-card__tx {
	flex: 1;
	min-width: 0;
}

.crr4-card__m {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin-top: 8px;
	font-size: 14px;
}

.crr4-card__btns {
	display: flex;
	gap: 8px;
	padding: 0 16px 14px;
}

.crh4-page .crr4-card__btns > button {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--line2);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	background: transparent;
}

.crh4-page .crr4-card__btns .crr4-more[aria-expanded="true"] {
	background: var(--blue-l);
	border-color: var(--blue);
}

.crh4-page .crr4-cmpbtn[aria-checked="true"] {
	border-color: var(--blue);
}

.crh4-page .crr4-cmpbtn .crr4-cb {
	width: 18px;
	height: 18px;
	border-radius: 5px;
}

.crr4-cmpbtn.is-off {
	opacity: .4;
}

/* ---------- Низ карточки, советы, другие рейтинги ---------- */

.crr4-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding: 14px 20px;
	border-top: 1px solid var(--line);
}

.crr4-foot__t {
	flex: 1 1 280px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink2);
}

.crr4-tips {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 64px;
}

.crr4-tips__g {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 0 40px;
}

.crr4-tip {
	padding: 20px 0;
	border-top: 1px solid var(--line);
}

.crr4-tip__h {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.crr4-tip__t {
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink2);
	text-wrap: pretty;
}

.crr4-others {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 56px;
}

.crr4-others__h {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 16px;
}

.crr4-others__h .crh4-link {
	margin-left: auto;
	font-weight: 600;
}

.crr4-others__g {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.crh4-page .crr4-oth {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 76px;
	padding: 16px 20px;
	box-shadow: inset 1px 0 0 var(--line);
	color: var(--ink);
	transition: background-color .15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.crh4-page .crr4-oth:hover {
		background: #fafbfc;
		color: var(--ink);
	}
}

.crh4-page .crr4-oth .crr-ibox {
	width: 40px;
	height: 40px;
	flex: none;
}

.crr4-oth__t {
	flex: 1;
	min-width: 0;
}

.crr4-oth__t b {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.crr4-oth__t small {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--ink2);
}

.crr4-oth__a {
	display: flex;
	color: var(--blue);
}

/* ---------- Панель сравнения и окно ---------- */

.crr4-bar {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: calc(100% - 24px);
	padding: 10px 10px 10px 20px;
	background: #000b2f;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(0, 11, 47, .24);
	color: #fff;
	font-family: "gilroy", "Onest", system-ui, sans-serif;
	transform: translateX(-50%);
	animation: crr4-bar .2s cubic-bezier(.23, 1, .32, 1) both;
}

.crr4-bar[hidden] {
	display: none;
}

@keyframes crr4-bar {
	from {
		opacity: 0;
		transform: translate(-50%, 8px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.crr4-bar__t {
	min-width: 0;
	overflow: hidden;
	font-size: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crr4-bar button {
	font: inherit;
	border: 0;
	background: none;
	cursor: pointer;
}

.crr4-bar .crr4-bar__x {
	height: 44px;
	padding: 0 8px;
	font-size: 15px;
	font-weight: 500;
	color: #d3dbea;
}

.crr4-bar .crr4-bar__go {
	height: 44px;
	padding: 0 20px;
	border-radius: 12px;
	background: #4a72ff;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	transition: background-color .15s ease, transform .12s ease-out;
}

.crr4-bar .crr4-bar__go:active {
	transform: scale(.97);
}

.crr4-bar .crr4-bar__go:disabled {
	background: #3f4b6b;
	color: #d3dbea;
	cursor: default;
}

.crr4-cg {
	display: grid;
	grid-template-columns: var(--cols);
	margin-top: 4px;
	font-size: 15px;
}

.crr4-cg__h {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 12px 16px;
}

.crr4-cg__h b {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.crr4-cg__l {
	padding: 12px 0;
	border-top: 1px solid #e6eaf2;
	color: #3f4b6b;
}

.crr4-cg__v {
	padding: 12px;
	border-top: 1px solid #e6eaf2;
}

.crr4-cg__a {
	padding: 16px 12px 0;
}

.crr4-cg__a a {
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- Узкие экраны ---------- */

@media (max-width: 759px) {
	.crh4-page .crr4-bar {
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.crr4-sw__list,
	.crr4-d,
	.crr4-bar {
		animation: none !important;
	}
	.crr4-more .crh4-i {
		transition: none;
	}
}
