.em-diag-wrap {
	max-width: 1180px;
	margin: 40px auto;
	padding: 34px;
	background:
		radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 34%),
		linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
	border-radius: 32px;
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
	font-family: inherit;
	border: 1px solid rgba(148, 163, 184, 0.22);
}

.em-diag-header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 28px;
	align-items: center;
	margin-bottom: 28px;
	padding: 28px;
	border-radius: 28px;
	background: linear-gradient(135deg, #102a56, #173f7c);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.em-diag-header::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 260px;
	height: 260px;
	background: rgba(212, 175, 55, 0.18);
	border-radius: 50%;
}

.em-diag-kicker {
	color: #f7d774;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 8px;
	font-size: 12px;
}

.em-diag-header h1 {
	margin: 0;
	color: #fff;
	font-size: 38px;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.em-diag-header p {
	color: rgba(255, 255, 255, 0.84);
	font-size: 17px;
	margin: 10px 0 0;
	max-width: 720px;
}

.em-diag-timer {
	position: relative;
	z-index: 2;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(14px);
	color: #fff;
	padding: 20px 26px;
	border-radius: 24px;
	min-width: 190px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.em-diag-timer span {
	display: block;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.82;
	margin-bottom: 6px;
}

.em-diag-timer strong {
	font-size: 38px;
	letter-spacing: 0.04em;
	color: #fff;
}

.em-diag-timer strong.warning {
	color: #facc15;
}

.em-diag-timer strong.danger {
	color: #fb7185;
}

.em-diag-student {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 24px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.22);
	padding: 16px;
	border-radius: 22px;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.em-diag-student input,
.em-diag-question input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	border-radius: 14px;
	border: 1px solid #c7d7ee;
	background: #fff;
	font-size: 15px;
	outline: none;
	transition: 0.2s ease;
}

.em-diag-student input:focus,
.em-diag-question input:focus {
	border-color: #1d4ed8;
	box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.em-diag-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.em-diag-question {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(191, 219, 254, 0.95);
	border-radius: 22px;
	padding: 18px;
	display: grid;
	gap: 11px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
	transition: 0.2s ease;
	position: relative;
	overflow: hidden;
}

.em-diag-question::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 5px;
	height: 100%;
	background: linear-gradient(180deg, #d4af37, #1d4ed8);
}

.em-diag-question:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
	border-color: #93c5fd;
}

.em-q-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 5px 10px;
	border-radius: 999px;
	background: #fff7d6;
	color: #8a6a00;
	font-weight: 900;
	font-size: 12px;
	border: 1px solid rgba(212, 175, 55, 0.38);
}

.em-q-text {
	color: #0f172a;
	font-size: 15px;
	line-height: 1.45;
	min-height: 44px;
	font-weight: 650;
}

.em-diag-submit {
	margin-top: 28px;
	background: linear-gradient(135deg, #102a56, #1d4ed8);
	color: #fff;
	border: none;
	padding: 16px 34px;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 16px 32px rgba(29, 78, 216, 0.28);
	transition: 0.2s ease;
}

.em-diag-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 42px rgba(29, 78, 216, 0.34);
}

.em-diag-result {
	margin-top: 32px;
	background:
		linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 246, 255, 0.96));
	border: 1px solid #86efac;
	border-radius: 26px;
	padding: 28px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.em-diag-result h2 {
	margin-top: 0;
	color: #065f46;
	font-size: 28px;
}

.em-result-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 20px 0;
}

.em-result-cards div {
	background: #fff;
	border-radius: 18px;
	padding: 18px;
	border: 1px solid #bbf7d0;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.em-result-cards strong {
	display: block;
	color: #102a56;
	font-size: 24px;
	line-height: 1.15;
}

.em-result-cards span {
	display: block;
	color: #64748b;
	font-size: 13px;
	margin-top: 6px;
	font-weight: 700;
}

@media (max-width: 900px) {
	.em-diag-header,
	.em-diag-student,
	.em-diag-grid,
	.em-result-cards {
		grid-template-columns: 1fr;
	}

	.em-diag-header h1 {
		font-size: 30px;
	}

	.em-diag-wrap {
		padding: 18px;
		margin: 20px auto;
		border-radius: 22px;
	}

	.em-diag-header {
		padding: 22px;
	}

	.em-diag-timer {
		width: 100%;
		min-width: 0;
	}
}