/*
 * CRHD — страница «О проекте» v3 (макет Claude Design «О проекте v3»).
 * Поверх cr-site-core.css, cr-home.css и cr-about-method.css (калькулятор), всё под `.crh4-page.cab5`.
 */

/* ---------- Первый экран ---------- */

.crh5 .cab5-band--top {
	padding-top: 24px;
}

.cab5 .cab5-bc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--ink3);
}

.crh4-page.cab5 .cab5-bc a {
	color: var(--ink3);
}

.crh4-page.cab5 .cab5-bc a:hover {
	color: var(--blue);
}

.cab5 .cab5-bc span:last-child {
	color: var(--ink);
	font-weight: 600;
}

.cab5 .cab5-top__g {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 32px 48px;
	align-items: center;
}

.cab5 .cab5-top__m {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.cab5 .crh5-b {
	color: var(--blue);
}

.crh4-page.cab5 .cab5-h1 {
	margin-top: 16px;
	font-size: clamp(34px, 2.8vw + 16px, 60px);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -.03em;
}

.crh4-page.cab5 .cab5-lead {
	margin-top: 16px;
	max-width: 620px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink2);
}

@media (min-width: 760px) {
	.crh4-page.cab5 .cab5-lead {
		font-size: 18px;
	}
}

.crh4-page.cab5 .cab5-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	margin: 28px 0 0;
}

.cab5 .cab5-stats > div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 4px;
	padding: 12px;
	border-radius: 16px;
	background: var(--soft);
}

.cab5 .cab5-stats > .is-hi {
	background: var(--blue-t);
}

.cab5 .cab5-stats dd {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.cab5 .cab5-stats .is-hi dd {
	color: var(--blue);
}

.cab5 .cab5-stats dt {
	font-size: 12px;
	line-height: 1.3;
	color: var(--ink2);
	text-wrap: balance;
}

@media (min-width: 760px) {
	.crh4-page.cab5 .cab5-stats {
		gap: 14px;
	}
	.cab5 .cab5-stats > div {
		padding: 18px 20px;
		border-radius: 20px;
	}
	.cab5 .cab5-stats dd {
		font-size: 36px;
	}
	.cab5 .cab5-stats dt {
		font-size: 14px;
	}
}

/* Плашка каталога */
.crh4-page.cab5 .cab5-cat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	width: 100%;
	margin-top: 12px;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 20px;
	background: #fff;
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.crh4-page.cab5 .cab5-cat:hover {
	border-color: var(--blue);
	box-shadow: 0 10px 26px rgba(74, 114, 255, .12);
	color: var(--ink);
}

.crh4-page.cab5 .cab5-cat:active {
	transform: scale(.985);
}

.cab5 .cab5-cat__l {
	display: flex;
	align-items: center;
}

.cab5 .cab5-cat__l > * {
	margin-left: -8px;
}

.cab5 .cab5-cat__l > :first-child {
	margin-left: 0;
}

.cab5 .cab5-cat__l .crh4-logo-box {
	--s: 44px !important;
	border-radius: 12px;
	box-shadow: 0 0 0 3px #fff;
}

.cab5 .cab5-cat__l .crh4-logo-box:nth-child(n+5) {
	display: none;
}

.cab5 .cab5-cat__more {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--blue-l);
	color: #2f56e0;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 0 0 3px #fff;
}

.cab5 .cab5-cat__t {
	flex: 1 1 200px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cab5 .cab5-cat__t b {
	font-size: 15px;
	font-weight: 800;
}

.cab5 .cab5-cat__t small {
	font-size: 13px;
	color: var(--ink3);
}

.cab5 .cab5-cat__a {
	color: var(--blue);
}

@media (min-width: 760px) {
	.cab5 .cab5-cat__l .crh4-logo-box:nth-child(n+5) {
		display: flex;
	}
}

/* Схема «как работает рейтинг» */
.cab5 .cab5-vis {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 18px;
	border-radius: 28px;
	background:
		radial-gradient(circle at 88% 6%, #dfe8ff 0, rgba(223, 232, 255, 0) 52%),
		radial-gradient(circle at 8% 96%, #e3f6ee 0, rgba(227, 246, 238, 0) 50%),
		#f4f7fd;
}

.cab5 .cab5-sp {
	position: absolute;
	line-height: 1;
	animation: crh5-twinkle 3.2s ease-in-out infinite;
}

.cab5 .cab5-sp--a {
	top: 16px;
	left: 18px;
	font-size: 14px;
}

.cab5 .cab5-sp--b {
	bottom: 20px;
	right: 20px;
	font-size: 12px;
	animation-delay: -1.4s;
}

.cab5 .cab5-fl {
	animation: crh5-float var(--fd, 7s) ease-in-out infinite;
}

.cab5 .cab5-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.cab5 .cab5-ar {
	position: relative;
	width: 2px;
	height: 28px;
	background: repeating-linear-gradient(180deg, #9db3ff 0 4px, transparent 4px 8px);
}

.cab5 .cab5-ar::after {
	content: "";
	position: absolute;
	left: -4px;
	bottom: -2px;
	width: 9px;
	height: 9px;
	border-right: 2px solid #9db3ff;
	border-bottom: 2px solid #9db3ff;
	transform: rotate(45deg);
}

.cab5 .cab5-fm {
	width: 100%;
	max-width: 420px;
	padding: 16px 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 11, 47, .1);
	rotate: -1.2deg;
}

.cab5 .cab5-fm__h {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #2f56e0;
}

.cab5 .cab5-fm__g {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.cab5 .cab5-fm__g > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--soft);
}

.cab5 .cab5-fm__g small {
	font-size: 11px;
	color: var(--ink3);
}

.cab5 .cab5-fm__g b {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.cab5 .cab5-fm__g .is-hi {
	background: var(--blue-l);
}

.cab5 .cab5-fm__g .is-hi b {
	color: var(--blue);
}

.cab5 .cab5-res {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 400px;
	padding: 12px 16px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 11, 47, .1);
	rotate: 1deg;
}

.cab5 .cab5-res__n {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #fff1c2;
	color: #8a5a00;
	font-size: 13px;
	font-weight: 800;
}

.cab5 .cab5-res .crh4-logo-box {
	--s: 36px !important;
	border-radius: 10px;
}

.cab5 .cab5-res__nm {
	flex: 1;
	min-width: 0;
	font-size: 15px;
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cab5 .cab5-res__p {
	font-size: 24px;
	font-weight: 800;
}

@media (min-width: 760px) and (max-width: 979px) {
	.cab5 .cab5-vis {
		display: none;
	}
}

/* ---------- Методика, границы, текст ---------- */

.cab5 .cab5-method .crh5-hd,
.cab5 .cab5-lim .crh5-hd {
	margin-bottom: 32px;
}

.cab5 .cab-card {
	border-radius: 24px;
}

.cab5 .cab5-lim__g {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px 32px;
}

.cab5 .cab5-lim__i {
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.crh4-page.cab5 .cab5-lim__i h3 {
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.cab5 .cab5-lim__i p {
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink2);
}

.cab5 .cab5-seo {
	max-width: 860px;
}

.cab5 .cab5-seo h2 {
	margin-bottom: 14px;
}

/* Ритм: подряд идущие белые полосы без двойного отступа, плашка прижата к вопросам. */
.cab5.crh5 .crh5-band--white + .crh5-band--white {
	padding-top: 24px;
}

.cab5.crh5 .crh5-band--white + .cab5-band--forco {
	padding-top: 0;
}

/* Движение включено всегда (см. cr-home.css). */
@media (prefers-reduced-motion: reduce) {
	.crh4-page.cab5 .cab5-fl {
		animation: crh5-float var(--fd, 7s) ease-in-out infinite !important;
	}
	.crh4-page.cab5 .cab5-sp {
		animation: crh5-twinkle 3.2s ease-in-out infinite !important;
	}
}

/* Вопросы на белой полосе: карточки серые, иначе белое на белом. */
.cab5 .crh4-q {
	background: var(--soft);
}
