.front-main {
	width: min(1240px, calc(100% - 32px));
	max-width: none;
	margin: 0 auto;
}






.categories-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 18px 0 20px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: 30px 8px 30px 8px;
	background:
		radial-gradient(circle at 86% 12%, rgba(253, 195, 0, .32), transparent 28%),
		radial-gradient(circle at 8% 96%, rgba(33, 167, 181, .28), transparent 34%),
		linear-gradient(135deg, #09283b 0%, #0d5570 52%, #21a7b5 100%);
	color: #fff;
	box-shadow: 0 20px 46px rgba(13, 85, 112, .18);
}

.categories-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, .24), rgba(0, 0, 0, .86));
	content: "";
}

.categories-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.6rem);
	line-height: 1;
}

.categories-hero .section-kicker {
	color: #fdc300;
}

.categories-hero p:not(.section-kicker) {
	max-width: 620px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 1.05rem;
	line-height: 1.7;
}

.categories-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin: 0 0 56px;
}

.categories-list__card {
	position: relative;
	overflow: hidden;
	min-height: 96px;
	border-top: 1px solid rgba(13, 85, 112, 0.18);
	border-radius: 8px 22px 8px 22px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 251, 250, .72)),
		radial-gradient(circle at 16% 0%, rgba(253, 195, 0, .12), transparent 34%);
	box-shadow:
		0 12px 26px rgba(23, 59, 80, .06),
		inset 0 1px 0 rgba(255, 255, 255, .66);
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.categories-list__card::after {
	position: absolute;
	right: -16px;
	bottom: -0.42em;
	color: rgba(13, 85, 112, 0.045);
	font-size: 3.2rem;
	font-weight: 950;
	line-height: 1;
	content: "EXCELSIS";
	pointer-events: none;
}

.categories-list__card h2 {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: .96rem;
}

.categories-list__card a {
	display: flex;
	align-items: center;
	min-height: 96px;
	padding: 14px 40px 14px 16px;
	color: #142331;
	font-weight: 950;
	text-decoration: none;
}

.categories-list__card a::after {
	position: absolute;
	right: 14px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 7px 2px 7px 2px;
	background: #0d5570;
	color: #fff;
	content: "→";
	transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.categories-list__card a:hover,
.categories-list__card a:focus-visible {
	outline: 0;
	color: #0d5570;
	text-decoration: none;
}

.categories-list__card:hover,
.categories-list__card:focus-within {
	box-shadow: 0 18px 34px rgba(23, 59, 80, .1);
	transform: translateY(-1px);
}

.categories-list__card a:hover::after,
.categories-list__card a:focus-visible::after {
	background: #fdc300;
	color: #101820;
	transform: translateX(2px);
}

.categories-list__card a:active {
	color: #101820;
	text-decoration-color: #101820;
}

html.front-theme-dark .categories-list__card {
	border-color: rgba(255, 255, 255, .14);
	background:
		radial-gradient(circle at 96% 0, rgba(33, 167, 181, .14), transparent 34%),
		linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
	box-shadow:
		0 14px 30px rgba(0, 0, 0, .2),
		inset 0 1px 0 rgba(255, 255, 255, .06);
}

html.front-theme-dark .categories-list__card a {
	color: #f8fbfc;
}

html.front-theme-dark .categories-list__card a:hover,
html.front-theme-dark .categories-list__card a:focus-visible {
	color: #ffd76b;
}

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

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

@media (max-width: 700px) {
	/* Keep full labels and decoration, with less vertical space on phones. */
	.categories-list__card,
	.categories-list__card a {
		min-height: 72px;
	}

	.categories-list {
		grid-template-columns: 1fr;
	}

	.categories-hero {
		padding: 28px 22px;
	}
}
