/* Certificates — modern grid with title & spacing */

.b-certs {
	--ct-accent: var(--primary-color, #e85d04);
	--ct-radius: 10px;
	--ct-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
	--ct-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);

	padding: 48px 16px 56px;
	background: #fff;
}

@media (min-width: 576px) {
	.b-certs {
		padding: 56px 24px 64px;
	}
}

@media (min-width: 992px) {
	.b-certs {
		padding: 72px 32px 80px;
	}
}

@media (min-width: 1280px) {
	.b-certs {
		padding: 80px 40px 96px;
	}
}

.b-certs__inner {
	max-width: 1100px;
	margin: 0 auto;
}

/* Header — same language as other blocks */
.b-certs__header {
	text-align: center;
	margin-bottom: 36px;
}

.b-certs__title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.b-certs__line {
	display: block;
	width: 40px;
	height: 3px;
	margin: 0 auto;
	background: var(--ct-accent);
	border-radius: 2px;
}

@media (min-width: 768px) {
	.b-certs__title {
		font-size: 26px;
	}

	.b-certs__header {
		margin-bottom: 44px;
	}
}

/* Grid — not full-bleed, clear gaps */
.b-certs__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	justify-items: center;
}

@media (min-width: 480px) {
	.b-certs__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 20px;
	}
}

@media (min-width: 768px) {
	.b-certs__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px 24px;
	}
}

@media (min-width: 992px) {
	.b-certs__grid {
		gap: 32px 28px;
	}
}

.b-certs__item {
	width: 100%;
	max-width: 320px;
}

.b-certs__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: transform 0.25s ease;
}

.b-certs__card:hover {
	transform: translateY(-4px);
}

.b-certs__imgWrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 3 / 4;
	padding: 16px;
	background: #f7f7f7;
	border: 1px solid #e8e8e8;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.b-certs__card:hover .b-certs__imgWrap {
	box-shadow: var(--ct-shadow-hover);
	border-color: color-mix(in srgb, var(--ct-accent) 30%, #e8e8e8);
}

.b-certs__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.b-certs__name {
	display: block;
	margin-top: 12px;
	padding: 0 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	color: #333;
	word-wrap: break-word;
}

.b-certs__pager {
	margin-top: 36px;
	text-align: center;
}
