.u4i-school-compare {
	grid-column: 1 / -1;
	margin: 0 0 22px;
	border: 1px solid #dce3ed;
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
}
.u4i-school-compare__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #f7f9fc;
}
.u4i-school-compare__bar > div:first-child { display: grid; gap: 2px; min-width: 190px; }
.u4i-school-compare__bar strong { color: #172b49; font-size: 14px; }
.u4i-school-compare__bar [data-u4i-compare-status] { color: #66758b; font-size: 12px; }
.u4i-school-compare__chips { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; }
.u4i-school-compare__chips span {
	padding: 5px 8px;
	border-radius: 8px;
	background: #e9eef6;
	color: #334b6c;
	font-size: 11px;
	font-weight: 700;
}
.u4i-school-compare__clear,
.u4i-school-compare__remove,
.u4i-school-compare__basis,
.u4i-school-compare__toggle {
	border: 0;
	background: transparent;
	color: #536780;
	font: inherit;
	cursor: pointer;
}
.u4i-school-compare__clear { padding: 8px; font-size: 12px; }
.u4i-school-compare__clear:hover,
.u4i-school-compare__remove:hover,
.u4i-school-compare__basis:hover { color: #244fcc; text-decoration: underline; text-underline-offset: 3px; }
.u4i-school-compare__table-wrap { overflow-x: auto; }
.u4i-school-compare__table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	table-layout: fixed;
}
.u4i-school-compare__table th,
.u4i-school-compare__table td {
	padding: 11px 12px;
	border-bottom: 1px solid #edf0f4;
	text-align: left;
	vertical-align: top;
}
.u4i-school-compare__table th:first-child { width: 17%; }
.u4i-school-compare__table thead th { color: #172b49; font-size: 12px; }
.u4i-school-compare__table thead th > strong { display: block; font-size: 13px; line-height: 1.35; }
.u4i-school-compare__overall { display: block; margin-top: 4px; color: #244fcc; font-weight: 800; }
.u4i-school-compare__remove { display: block; margin-top: 6px; padding: 0; font-size: 10px; }
.u4i-school-compare__table tbody th { color: #263b57; font-size: 12px; }
.u4i-school-compare__score {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-height: 42px;
	padding: 9px 10px;
	border-radius: 9px;
	background: #f4f6f9;
	color: #344a68;
}
.u4i-school-compare__score.is-high { background: #edf6ef; color: #28613a; }
.u4i-school-compare__score.is-mid { background: #f6f2e8; color: #65552c; }
.u4i-school-compare__score.is-low { background: #f6eeee; color: #70433e; }
.u4i-school-compare__value { font-size: 13px; font-weight: 800; line-height: 1.25; }
.u4i-school-compare__leader { font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.u4i-school-compare__basis { margin-top: 6px; padding: 0; font-size: 10px; }
.u4i-school-compare__details-action {
	padding: 12px 16px;
	border-top: 1px solid #edf0f4;
	background: #f8fafc;
}
.u4i-school-compare__details-action button {
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid #b8c7dd;
	border-radius: 10px;
	background: #fff;
	color: #24456f;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}
.u4i-school-compare__details-action button:hover { border-color: #7392c4; background: #f1f5fb; }
.u4i-school-compare__evidence {
	padding: 14px 16px;
	border-top: 1px solid #eadfd8;
	background: #fbf7f4;
	color: #334b6c;
	font-size: 12px;
	line-height: 1.55;
}
.u4i-school-compare__evidence > strong { display: block; margin-bottom: 7px; color: #172b49; }
.u4i-school-compare__evidence .u4i-profile-v2__evidence { margin: 0; padding: 0; background: transparent; }
.u4i-school-compare__toggle-wrap { margin: 14px 0 0; }
.u4i-school-compare__toggle {
	width: 100%;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #cbd6e5;
	border-radius: 10px;
	background: #f8fafc;
	color: #24456f;
	font-size: 12px;
	font-weight: 800;
}
.u4i-school-compare__toggle:hover { border-color: #8da5ca; background: #f0f4fa; }
.u4i-school-compare__toggle.is-selected { border-color: #3157d5; background: #eef2ff; color: #244fcc; }
.u4i-school-compare__toggle:disabled { cursor: not-allowed; opacity: .48; }
.u4i-school-compare-float {
	position: fixed;
	right: 24px;
	bottom: 18px;
	z-index: 1000;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	width: min(420px, calc(100vw - 48px));
	min-height: 54px;
	padding: 10px 14px;
	border: 0;
	border-radius: 14px;
	background: #172b49;
	box-shadow: 0 12px 32px rgba(23, 43, 73, .28);
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.u4i-school-compare-float[hidden] { display: none; }
.u4i-school-compare-float strong { font-size: 13px; white-space: nowrap; }
.u4i-school-compare-float [data-u4i-compare-float-names] {
	min-width: 0;
	overflow: hidden;
	color: #dce7fa;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.u4i-school-compare-float__arrow { font-size: 20px; line-height: 1; }
.u4i-school-compare-float:hover { background: #213b62; }
.u4i-school-compare-float:focus-visible { outline: 3px solid #8fb1ff; outline-offset: 3px; }
.u4i-school-compare-details {
	width: min(1000px, calc(100vw - 32px));
	max-height: min(84vh, 820px);
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(23, 43, 73, .32);
	color: #172b49;
}
.u4i-school-compare-details::backdrop { background: rgba(15, 27, 45, .62); backdrop-filter: blur(3px); }
.u4i-school-compare-details__head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 18px;
	border-bottom: 1px solid #e3e9f2;
	background: #f8fafc;
}
.u4i-school-compare-details__head strong { display: block; font-size: 18px; }
.u4i-school-compare-details__head span { display: block; margin-top: 3px; color: #66758b; font-size: 12px; }
.u4i-school-compare-details__head button {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #cbd6e5;
	border-radius: 9px;
	background: #fff;
	color: #334b6c;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.u4i-school-compare-details__table-wrap { padding: 16px; overflow-x: hidden; }
.u4i-school-compare-details__table {
	width: 100%;
	border: 1px solid #dce4ef;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	table-layout: fixed;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.4;
}
.u4i-school-compare-details__table th,
.u4i-school-compare-details__table td {
	padding: 12px 10px;
	border-right: 1px solid #e3e9f2;
	border-bottom: 1px solid #e3e9f2;
	vertical-align: top;
	overflow-wrap: anywhere;
}
.u4i-school-compare-details__table th:last-child,
.u4i-school-compare-details__table td:last-child { border-right: 0; }
.u4i-school-compare-details__table tbody tr:last-child th,
.u4i-school-compare-details__table tbody tr:last-child td { border-bottom: 0; }
.u4i-school-compare-details__table thead th {
	background: #f2f6fc;
	color: #172b49;
	font-size: 14px;
	text-align: left;
}
.u4i-school-compare-details__table thead th:first-child,
.u4i-school-compare-details__table tbody th { width: 18%; }
.u4i-school-compare-details__table tbody th {
	background: #f8fafc;
	color: #334b6c;
	font-weight: 700;
	text-align: left;
}
.u4i-school-compare-details__table td { font-weight: 800; text-align: center; }
.u4i-school-compare-details__table td.is-confirmed { background: #edf8f1; color: #15713b; }
.u4i-school-compare-details__table td.is-unconfirmed { background: #f7f8fa; color: #7c8797; }
.u4i-school-compare-details__table td.u4i-school-compare-details__documents {
	background: #fff;
	color: #244fcc;
	font-weight: 700;
	text-align: left;
}
.u4i-school-compare-details__documents details,
.u4i-school-compare-details__documents details span { display: block; }
.u4i-school-compare-details__documents summary { display: none; }
@media (max-width: 720px) {
	.u4i-school-compare {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		box-sizing: border-box;
	}
	.u4i-school-compare__bar { align-items: flex-start; flex-wrap: wrap; }
	.u4i-school-compare__bar > div:first-child { min-width: 0; width: 100%; }
	.u4i-school-compare__chips { min-width: calc(100% - 70px); }
	.u4i-school-compare__table-wrap { width: 100%; overflow-x: hidden; }
	.u4i-school-compare__table { width: 100%; min-width: 0; table-layout: fixed; }
	.u4i-school-compare__table th,
	.u4i-school-compare__table td { padding: 7px 2px; overflow-wrap: anywhere; }
	.u4i-school-compare__table th:first-child,
	.u4i-school-compare__table td:first-child { position: static; width: 25%; background: #fff; }
	.u4i-school-compare__table thead th,
	.u4i-school-compare__table thead th > strong,
	.u4i-school-compare__table tbody th { font-size: 12px; line-height: 1.25; }
	.u4i-school-compare__table thead th > strong {
		font-size: 11px;
		letter-spacing: -.02em;
		white-space: nowrap;
	}
	.u4i-school-compare__table tbody th[data-mobile-label] { font-size: 0; }
	.u4i-school-compare__table tbody th[data-mobile-label]::before { content: attr(data-mobile-label); font-size: 12px; }
	.u4i-school-compare__overall { margin-top: 3px; font-size: 12px; }
	.u4i-school-compare__remove { min-height: 28px; margin-top: 3px; font-size: 0; }
	.u4i-school-compare__remove::before { content: "×"; font-size: 18px; line-height: 1; }
	.u4i-school-compare__score {
		min-height: 48px;
		padding: 6px 4px;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 2px;
	}
	.u4i-school-compare__value { font-size: 12px; overflow-wrap: anywhere; }
	.u4i-school-compare__score.is-not-applicable .u4i-school-compare__value { font-size: 0; }
	.u4i-school-compare__score.is-not-applicable .u4i-school-compare__value::before { content: "н/п"; font-size: 12px; }
	.u4i-school-compare__leader { font-size: 0; }
	.u4i-school-compare__leader::before { content: "★"; font-size: 12px; }
	.u4i-school-compare__basis { min-height: 28px; margin-top: 2px; font-size: 0; }
	.u4i-school-compare__basis::before { content: "Осн."; font-size: 12px; }
	.u4i-school-compare__details-action { padding: 10px; }
	.u4i-school-compare__details-action button { width: 100%; min-height: 44px; }
	.u4i-school-compare-details { width: calc(100vw - 20px); max-height: 88vh; border-radius: 16px; }
	.u4i-school-compare-details__table-wrap { width: 100%; padding: 10px; box-sizing: border-box; overflow-x: hidden; }
	.u4i-school-compare-details__table { width: 100%; min-width: 0; font-size: 12px; }
	.u4i-school-compare-details__table th,
	.u4i-school-compare-details__table td { padding: 8px 3px; }
	.u4i-school-compare-details__table thead th { font-size: 11px; line-height: 1.25; letter-spacing: -.02em; white-space: nowrap; }
	.u4i-school-compare-details__table thead th:first-child,
	.u4i-school-compare-details__table tbody th { width: 24%; }
	.u4i-school-compare-details__table tbody th[data-mobile-label] { font-size: 0; }
	.u4i-school-compare-details__table tbody th[data-mobile-label]::before { content: attr(data-mobile-label); font-size: 11px; letter-spacing: -.01em; }
	.u4i-school-compare-details__table td.is-unconfirmed { font-size: 0; }
	.u4i-school-compare-details__table td.is-unconfirmed::before { content: "—"; font-size: 12px; }
	.u4i-school-compare-details__table td.u4i-school-compare-details__documents.is-unconfirmed::before { content: "Нет"; }
	.u4i-school-compare-details__table td.u4i-school-compare-details__documents { font-size: 12px; line-height: 1.25; }
	.u4i-school-compare-details__documents summary { display: block; color: #244fcc; cursor: pointer; }
	.u4i-school-compare-details__documents summary[data-mobile-label] { font-size: 0; }
	.u4i-school-compare-details__documents summary[data-mobile-label]::before { content: attr(data-mobile-label); font-size: 12px; }
	.u4i-school-compare-details__documents details:not([open]) span { display: none; }
	.u4i-school-compare-details__documents details[open] span { margin-top: 5px; }
	.u4i-school-compare-details__head { padding: 14px; }
	.u4i-school-compare-float {
		left: 50%;
		right: auto;
		bottom: max(10px, env(safe-area-inset-bottom));
		width: calc(100vw - 20px);
		min-height: 58px;
		padding: 10px 12px;
		transform: translateX(-50%);
	}
}
@media (max-width: 360px) {
	.u4i-school-compare__table thead th,
	.u4i-school-compare__table thead th > strong,
	.u4i-school-compare__table tbody th { font-size: 11px; }
	.u4i-school-compare__table thead th:not(:first-child),
	.u4i-school-compare__table thead th > strong { font-size: 10px; letter-spacing: -.04em; text-align: center; }
	.u4i-school-compare-details__table thead th:not(:first-child) { font-size: 10px; letter-spacing: -.04em; text-align: center; }
}
