.hpc-grid-wrap {
	--hpc-card-radius: 24px;
	--hpc-border: #e5e7eb;
	--hpc-text: #101828;
	--hpc-muted: #ef4444;
	--hpc-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
	--hpc-shadow-hover: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.hpc-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hpc-card {
	align-items: center;
	background: #fff;
	border: 1px solid var(--hpc-border);
	border-radius: var(--hpc-card-radius);
	box-shadow: var(--hpc-shadow);
	color: var(--hpc-text);
	display: flex;
	flex-direction: column;
	gap: 18px;
	justify-content: center;
	min-height: 342px;
	padding: 28px 24px 34px;
	text-align: center;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.hpc-card:hover,
.hpc-card:focus {
	box-shadow: var(--hpc-shadow-hover);
	color: var(--hpc-text);
	transform: translateY(-4px);
}

.hpc-card.is-hidden {
	display: none;
}

.hpc-grid-wrap.is-expanded .hpc-card.is-hidden {
	display: flex;
}

.hpc-card__media {
	align-items: center;
	display: flex;
	height: 150px;
	justify-content: center;
	max-width: 100%;
}

.hpc-card__media img {
	display: block;
	height: auto;
	max-height: 150px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.hpc-card__title {
	color: var(--hpc-text);
	font-size: clamp(1.45rem, 2vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.hpc-card__link {
	color: var(--hpc-muted);
	font-size: 1rem;
	font-weight: 700;
}

.hpc-toggle-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.hpc-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--hpc-muted);
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
}

.hpc-toggle__icon {
	align-items: center;
	border: 2px solid #d1d5db;
	border-radius: 999px;
	color: var(--hpc-muted);
	display: inline-flex;
	height: 68px;
	justify-content: center;
	transition: transform 180ms ease, border-color 180ms ease;
	width: 68px;
}

.hpc-toggle__icon svg {
	display: block;
	height: 26px;
	width: 26px;
}

.hpc-toggle__label {
	font-size: 1.1rem;
	font-weight: 700;
}

.hpc-grid-wrap.is-expanded .hpc-toggle__icon {
	transform: rotate(180deg);
}

.hpc-toggle:hover .hpc-toggle__icon,
.hpc-toggle:focus .hpc-toggle__icon {
	border-color: #ef4444;
}

@media (max-width: 1200px) {
	.hpc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

@media (max-width: 560px) {
	.hpc-grid {
		gap: 18px;
		grid-template-columns: minmax(0, 1fr);
	}

	.hpc-card {
		min-height: 290px;
		padding: 24px 18px 28px;
	}

	.hpc-toggle-wrap {
		margin-top: 28px;
	}
}

