/* CleanRating — рейтинги «Топ-10»: витрина и страница рейтинга */

body.cr-tops-page .page-content,
body.cr-tops-page .content-area > .container > article,
body.cr-tops-page .breadcrumb,
body.cr-tops-page .page-title,
body.cr-tops-page #objects,
body.cr-tops-page .home-filters {
	display: none !important;
}

body.cr-tops-page .content > .container,
body.cr-tops-page #content > .container,
body.cr-tops-page .site-content > .container,
body.cr-tops-page .page-content > .container {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

html:has(body.cr-tops-page),
body.cr-tops-page {
	overflow-x: clip;
}

body.cr-tops-page .content,
body.cr-tops-page #content,
body.cr-tops-page .site-content,
body.cr-tops-page .container {
	overflow: visible;
}

/* Child theme pins every <header>; keep ours in the flow (we use divs, this is a guard). */
body.cr-tops-page .crt header {
	position: static !important;
	width: auto !important;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
}

body.cr-tops-page header.header {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.crt {
	--crt-text: #2a2a2a;
	--crt-muted: #6b7280;
	--crt-line: #e8eaf0;
	--crt-bg: #f6f7fb;
	--crt-card: #fff;
	--crt-accent: #4a72ff;
	--crt-accent-2: #4163db;
	--crt-soft: #eef2ff;
	background: #fff;
	color: var(--crt-text);
	padding: 24px 0 72px;
	font-family: gilroy, "Segoe UI", sans-serif;
}

.crt *,
.crt *::before,
.crt *::after {
	box-sizing: border-box;
}

.crt-wrap {
	width: min(1100px, calc(100% - 32px));
	margin: 0 auto;
}

.crt a {
	text-decoration: none;
}

.crt-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Breadcrumbs */
.crt-bc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 8px 0 24px;
	font-size: 14px;
	color: var(--crt-muted);
}

.crt-bc a {
	color: var(--crt-muted);
}

.crt-bc a:hover {
	color: var(--crt-accent);
}

/* Hero */
.crt-hero {
	max-width: 820px;
	margin-bottom: 24px;
}

.crt-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--crt-soft);
	color: var(--crt-accent-2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.crt-hero h1 {
	margin: 0 0 14px;
	font-family: gilroy, "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #111827;
}

.crt-lead {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.55;
	color: #4b5563;
}

.crt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.crt-chips li {
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--crt-bg);
	color: #4b5563;
	font-size: 14px;
	font-weight: 600;
}

/* Rating switcher */
.crt-switch {
	display: flex;
	gap: 8px;
	margin: 0 0 24px;
	padding: 2px 0 6px;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.crt-switch a {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 1px solid var(--crt-line);
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.crt-switch a:hover {
	border-color: var(--crt-accent);
	color: var(--crt-accent);
}

.crt-switch a.is-on {
	border-color: var(--crt-accent);
	background: var(--crt-accent);
	color: #fff;
}

/* List of companies */
.crt-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crt-row {
	display: grid;
	grid-template-columns: 44px 72px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--crt-line);
	border-radius: 20px;
	background: var(--crt-card);
	transition: box-shadow 0.18s, border-color 0.18s;
}

/* The parent theme decorates every <li> with counters/markers: switch that off here. */
.crt .crt-list,
.crt .crt-list > li {
	list-style: none;
	text-align: left;
}

.crt .crt-list > li::before,
.crt .crt-list > li::after {
	content: none !important;
	display: none !important;
}

.crt-row:hover {
	border-color: #cfd8ff;
	box-shadow: 0 10px 28px rgba(74, 114, 255, 0.1);
}

.crt-row--p1 {
	border-color: #ffd98a;
	background: linear-gradient(180deg, #fffaf0 0%, #fff 70%);
}

.crt-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--crt-bg);
	color: #374151;
	font-size: 20px;
	font-weight: 800;
}

.crt-row--p1 .crt-rank {
	background: #ffb800;
	color: #fff;
}

.crt-row--p2 .crt-rank {
	background: #aeb7c7;
	color: #fff;
}

.crt-row--p3 .crt-rank {
	background: #d99461;
	color: #fff;
}

.crt-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border: 1px solid var(--crt-line);
	border-radius: 16px;
	background: #fff;
}

.crt-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.crt-logo__ph {
	color: var(--crt-accent);
	font-size: 28px;
	font-weight: 800;
}

.crt-main {
	min-width: 0;
}

.crt-name {
	margin: 0 0 6px;
	font-family: gilroy, "Segoe UI", sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.crt-name a {
	color: #111827;
}

.crt-name a:hover {
	color: var(--crt-accent);
}

.crt-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-size: 14px;
	color: var(--crt-muted);
}

.crt-level {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--crt-soft);
	color: var(--crt-accent-2);
	font-size: 13px;
	font-weight: 700;
}

.crt-level--leader {
	background: #fff1cc;
	color: #946200;
}

.crt-level--strong {
	background: #e3f6e8;
	color: #1d7a39;
}

.crt-level--reliable {
	background: var(--crt-soft);
	color: var(--crt-accent-2);
}

.crt-level--growing,
.crt-level--start {
	background: #f1f2f6;
	color: #5b6270;
}

.crt-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #374151;
	font-weight: 700;
}

.crt-stars svg {
	color: #ffb800;
}

.crt-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 84px;
	padding: 8px 14px;
	border-radius: 16px;
	background: var(--crt-soft);
	text-align: center;
}

.crt-score b {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: var(--crt-accent-2);
}

.crt-score span {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--crt-muted);
}

.crt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 1px solid var(--crt-accent);
	border-radius: 14px;
	background: #fff;
	color: var(--crt-accent);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.crt-btn:hover {
	background: var(--crt-accent);
	color: #fff;
}

.crt-all {
	margin: 18px 0 0;
	font-size: 16px;
	font-weight: 600;
}

.crt-all a {
	color: var(--crt-accent);
}

.crt-all a:hover {
	color: var(--crt-accent-2);
}

/* Sections */
.crt-sec {
	margin-top: 48px;
}

.crt-sec h2,
.crt-cta h2 {
	margin: 0 0 16px;
	font-family: gilroy, "Segoe UI", sans-serif;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #111827;
}

.crt-sec p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.6;
	color: #374151;
}

.crt-ul,
.crt-tips {
	margin: 0 0 14px;
	padding-left: 22px;
	font-size: 16px;
	line-height: 1.6;
	color: #374151;
}

.crt .crt-ul {
	list-style: disc;
}

.crt .crt-tips {
	list-style: decimal;
}

.crt .crt-ul li,
.crt .crt-tips li {
	display: list-item;
	margin: 0 0 8px;
	text-align: left;
}

.crt .crt-ul > li {
	list-style: disc outside;
}

.crt .crt-tips > li {
	list-style: decimal outside;
}

.crt .crt-ul li::before,
.crt .crt-tips li::before {
	content: none !important;
	display: none !important;
}

.crt-tips li::marker {
	color: var(--crt-accent);
	font-weight: 700;
}

.crt-levels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.crt-levels li {
	margin: 0;
	padding: 7px 14px;
	border-radius: 12px;
	background: var(--crt-bg);
	color: #374151;
	font-size: 14px;
	font-weight: 600;
}

.crt-note {
	font-size: 14px !important;
	color: var(--crt-muted) !important;
}

.crt-note a {
	color: var(--crt-accent);
}

/* FAQ */
.crt-faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.crt-faq details {
	border: 1px solid var(--crt-line);
	border-radius: 16px;
	background: #fff;
}

.crt-faq summary {
	position: relative;
	padding: 16px 52px 16px 20px;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
	color: #111827;
	list-style: none;
}

.crt-faq summary::-webkit-details-marker {
	display: none;
}

.crt-faq summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--crt-accent);
	border-bottom: 2px solid var(--crt-accent);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.18s;
}

.crt-faq details[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.crt-faq details p {
	margin: 0;
	padding: 0 20px 18px;
	font-size: 16px;
	line-height: 1.6;
	color: #4b5563;
}

/* Cards */
.crt-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.crt-grid--sm {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crt-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--crt-line);
	border-radius: 20px;
	background: var(--crt-card);
	color: var(--crt-text);
	transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

.crt-card:hover {
	border-color: #cfd8ff;
	box-shadow: 0 12px 30px rgba(74, 114, 255, 0.12);
	transform: translateY(-2px);
}

.crt-card__label {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--crt-soft);
	color: var(--crt-accent-2);
	font-size: 13px;
	font-weight: 800;
}

.crt-card__title {
	margin-top: 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.crt-card__count {
	font-size: 14px;
	color: var(--crt-muted);
}

.crt-card__leader {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--crt-bg);
	font-size: 14px;
}

.crt-card__lead-k {
	color: var(--crt-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.crt-card__lead-n {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
	color: #111827;
}

.crt-card__lead-p {
	color: var(--crt-accent-2);
	font-weight: 800;
}

.crt-card__go {
	margin-top: auto;
	padding-top: 12px;
	color: var(--crt-accent);
	font-size: 15px;
	font-weight: 700;
}

.crt-grid--sm .crt-card {
	padding: 16px;
}

.crt-grid--sm .crt-card__title {
	font-size: 17px;
}

.crt-grid--sm .crt-card__leader {
	display: none;
}

/* Call to action */
.crt-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 56px;
	padding: 32px 36px;
	border-radius: 24px;
	background: linear-gradient(120deg, #4a72ff 0%, #6f8dff 100%);
	color: #fff;
}

.crt-cta h2 {
	margin: 0 0 6px;
	color: #fff;
}

.crt-cta p {
	margin: 0;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}

.crt a.crt-cta__btn {
	flex: 0 0 auto;
	padding: 15px 28px;
	border-radius: 16px;
	background: #fff;
	color: var(--crt-accent-2);
	font-size: 16px;
	font-weight: 700;
	transition: transform 0.15s, box-shadow 0.15s;
}

.crt a.crt-cta__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

/* Tablet */
@media (max-width: 1023px) {
	.crt-grid,
	.crt-grid--sm {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crt-row {
		grid-template-columns: 44px 64px minmax(0, 1fr) auto;
	}

	.crt-btn {
		display: none;
	}
}

/* Phone */
@media (max-width: 640px) {
	.crt {
		padding: 12px 0 56px;
	}

	.crt-lead {
		font-size: 16px;
	}

	.crt-grid,
	.crt-grid--sm {
		grid-template-columns: 1fr;
	}

	.crt-row {
		grid-template-columns: 36px 56px minmax(0, 1fr);
		grid-template-areas:
			"rank logo score"
			"main main main";
		gap: 12px;
		padding: 14px;
		border-radius: 18px;
	}

	.crt-rank {
		grid-area: rank;
		width: 36px;
		height: 36px;
		border-radius: 11px;
		font-size: 17px;
	}

	.crt-logo {
		grid-area: logo;
		width: 56px;
		height: 56px;
		border-radius: 14px;
	}

	.crt-score {
		grid-area: score;
		justify-self: end;
		min-width: 72px;
		padding: 6px 10px;
	}

	.crt-score b {
		font-size: 24px;
	}

	.crt-main {
		grid-area: main;
	}

	.crt-name {
		font-size: 18px;
	}

	.crt-sec {
		margin-top: 36px;
	}

	.crt-faq summary {
		padding: 14px 44px 14px 16px;
		font-size: 16px;
	}

	.crt-faq details p {
		padding: 0 16px 16px;
	}

	.crt-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 24px 20px;
		text-align: left;
	}

	.crt a.crt-cta__btn {
		text-align: center;
	}
}

/* Link from a catalog listing header to the rating */
.crt-caplink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4163db;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.crt-caplink:hover {
	background: #4a72ff;
	color: #fff;
}

.crt-caplink span::after {
	content: " →";
}
