.bpc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.bpc-card {
	position: relative;
	display: block;
	width: 100%;
	height: 220px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: #e5e7eb;
	border-radius: 16px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpc-card:focus-visible {
	outline: 3px solid #29b6f6;
	outline-offset: 4px;
}

.bpc-card--hover:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.bpc-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.4s ease;
}

.bpc-card--hover:hover .bpc-photo {
	transform: scale(1.05);
}

.bpc-label {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 65px;
	padding: 0 24px;
}

.bpc-label__text {
	display: block;
	color: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	overflow-wrap: anywhere;
}

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

	.bpc-card {
		height: 180px;
	}

	.bpc-label {
		height: 52px;
		padding-right: 18px;
		padding-left: 18px;
	}

	.bpc-label__text {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.bpc-grid {
		grid-template-columns: 1fr;
	}

	.bpc-card {
		height: 160px;
	}

	.bpc-label {
		height: 46px;
		padding-right: 14px;
		padding-left: 14px;
	}

	.bpc-label__text {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpc-card,
	.bpc-photo {
		transition: none;
	}

	.bpc-card--hover:hover,
	.bpc-card--hover:hover .bpc-photo {
		transform: none;
	}
}
