/* 2026-09-17 — «Сертификаты на оборудование КСИЛ» (page-certificates.php).
   Loaded together with text-page.css (shared page shell, company nav). */

.mdt-cert-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 32px;
}

.mdt-cert-card {
	background: #ffffff;
	border: 1px solid #dfe7ee;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

.mdt-cert-card__badge {
	background: #fdf0e2;
	border-radius: 999px;
	color: #a35a12;
	font-size: 12px;
	font-weight: 700;
	left: 12px;
	padding: 5px 12px;
	position: absolute;
	top: 12px;
	z-index: 1;
}

/* Fixed-height box with object-fit: contain, not cover — the whole document
   image must stay visible, never cropped, whatever its own aspect ratio. */
.mdt-cert-card__preview {
	align-items: center;
	background: #f7f9fb;
	border-bottom: 1px solid #eef2f6;
	display: flex;
	height: 220px;
	justify-content: center;
	padding: 16px;
}

.mdt-cert-card__preview img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.mdt-cert-card__preview--placeholder {
	color: #8296a9;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.mdt-cert-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.mdt-cert-card__title {
	color: #10243a;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 2px;
}

.mdt-cert-card__meta {
	color: #24384a;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.mdt-cert-card__meta span {
	color: #55708a;
	font-weight: 600;
}

.mdt-cert-card__link {
	color: #d9670f;
	font-size: 14px;
	font-weight: 700;
	margin-top: auto;
	padding-top: 10px;
	text-decoration: none;
}

.mdt-cert-card__link:hover,
.mdt-cert-card__link:focus-visible {
	color: #a34c0f;
	text-decoration: underline;
}

.mdt-cert-empty {
	background: #f7f9fb;
	border: 1px solid #dfe7ee;
	border-radius: 6px;
	color: #55708a;
	font-size: 15px;
	margin-top: 32px;
	padding: 32px 24px;
	text-align: center;
}

@media (max-width: 900px) {
	.mdt-cert-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mdt-cert-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdt-cert-card__preview {
		height: 200px;
	}
}
