.custom-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.custom-cards-grid__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	padding: 28px;
	color: inherit;
	text-decoration: none;
	background-color: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 0 0 rgba(15, 23, 42, 0);
	transition:
		border-color 0.25s ease,
		background-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.custom-cards-grid__card:hover,
.custom-cards-grid__card:focus-visible {
	color: inherit;
	text-decoration: none;
	border-color: #2563eb;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	transform: translateY(-3px);
}

.custom-cards-grid__card:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 3px;
}

.custom-cards-grid__link-arrow {
	position: absolute;
	top: 26px;
	right: 26px;
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: #64748b;
	pointer-events: none;
	opacity: 0;
	transform: translate(-2px, 2px);
	transition:
		color 0.25s ease,
		opacity 0.25s ease,
		transform 0.25s ease;
}

.custom-cards-grid__link-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.custom-cards-grid__card:hover .custom-cards-grid__link-arrow,
.custom-cards-grid__card:focus-visible .custom-cards-grid__link-arrow {
	color: #475569;
	opacity: 1;
	transform: translate(0, 0);
}

.custom-cards-grid__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	font-size: 28px;
	line-height: 1;
	color: #2563eb;
	background-color: #eff6ff;
	border-radius: 12px;
	transition:
		color 0.25s ease,
		background-color 0.25s ease,
		transform 0.25s ease;
}

.custom-cards-grid__icon i,
.custom-cards-grid__icon svg {
	display: block;
	transition: transform 0.25s ease;
}

.custom-cards-grid__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.custom-cards-grid__card:hover .custom-cards-grid__icon,
.custom-cards-grid__card:focus-visible .custom-cards-grid__icon {
	color: #fff;
	background-color: #2563eb;
	transform: scale(1.03);
}

.custom-cards-grid__card:hover .custom-cards-grid__icon i,
.custom-cards-grid__card:hover .custom-cards-grid__icon svg,
.custom-cards-grid__card:focus-visible .custom-cards-grid__icon i,
.custom-cards-grid__card:focus-visible .custom-cards-grid__icon svg {
	transform: scale(1.05);
}

.custom-cards-grid__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
}

.custom-cards-grid__title {
	margin: 0;
	color: #0f172a;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.25s ease;
}

.custom-cards-grid__description {
	margin: 0;
	color: #64748b;
	font-size: 1rem;
	line-height: 1.65;
}

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

@media (max-width: 767px) {
	.custom-cards-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-cards-grid__card,
	.custom-cards-grid__icon,
	.custom-cards-grid__icon i,
	.custom-cards-grid__icon svg,
	.custom-cards-grid__link-arrow,
	.custom-cards-grid__title {
		transition-duration: 0.01ms;
	}

	.custom-cards-grid__card:hover,
	.custom-cards-grid__card:focus-visible,
	.custom-cards-grid__card:hover .custom-cards-grid__icon,
	.custom-cards-grid__card:focus-visible .custom-cards-grid__icon,
	.custom-cards-grid__card:hover .custom-cards-grid__icon i,
	.custom-cards-grid__card:hover .custom-cards-grid__icon svg,
	.custom-cards-grid__card:focus-visible .custom-cards-grid__icon i,
	.custom-cards-grid__card:focus-visible .custom-cards-grid__icon svg {
		transform: none;
	}

	.custom-cards-grid__link-arrow,
	.custom-cards-grid__card:hover .custom-cards-grid__link-arrow,
	.custom-cards-grid__card:focus-visible .custom-cards-grid__link-arrow {
		transform: none;
	}
}
