/* 404
 * The site header is fixed, so this page owns its header clearance.
 */
.error-404 {
	display: flex;
	align-items: center;
	min-height: 680px;
	padding: 155px 0 90px;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 22%, rgba(4, 136, 203, .14), transparent 28rem),
		linear-gradient(135deg, #f7fcff 0%, #dff4ff 100%);
}

.error-404__container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
	align-items: center;
	gap: clamp(40px, 7vw, 100px);
}

.error-404__content {
	max-width: 630px;
}

.error-404__code {
	margin: 0 0 8px;
	color: #0488cb;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1;
}

.error-404__title {
	max-width: 600px;
	margin-bottom: 20px;
	font-size: clamp(4rem, 5.3vw, 7.2rem);
	line-height: 1.05;
}

.error-404__text {
	max-width: 550px;
	margin-bottom: 32px;
	color: #44506a;
	font-size: clamp(1.7rem, 1.6vw, 2rem);
	line-height: 1.65;
}

.error-404 a.error-404__button {
	padding: 11px 25px;
}

.error-404__visual {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	isolation: isolate;
}

.error-404__visual::before {
	content: "";
	position: absolute;
	inset: 9%;
	z-index: -1;
	border-radius: 38% 62% 63% 37% / 45% 41% 59% 55%;
	background: #0f1d65;
	transform: rotate(-7deg);
	box-shadow: 0 25px 60px rgba(15, 29, 101, .2);
}

.error-404__number {
	color: #fff;
	font-size: clamp(8rem, 12vw, 15rem);
	font-weight: 700;
	letter-spacing: -.08em;
	line-height: 1;
}

.error-404__shape {
	position: absolute;
	border-radius: 50%;
	background: #0488cb;
}

.error-404__shape--one {
	top: 2%;
	right: 4%;
	width: 18%;
	aspect-ratio: 1;
}

.error-404__shape--two {
	bottom: 5%;
	left: 1%;
	width: 11%;
	aspect-ratio: 1;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 29, 101, .14);
}

@media screen and (max-width: 768px) {
	.error-404 {
		min-height: 620px;
		padding: 125px 0 65px;
	}

	.error-404__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.error-404__content {
		max-width: 580px;
	}

	.error-404__title {
		font-size: clamp(3.6rem, 11vw, 5.2rem);
	}

	.error-404__visual {
		width: min(78vw, 360px);
		margin: 0 auto;
	}

	.error-404__number {
		font-size: clamp(7rem, 25vw, 11rem);
	}
}

@media screen and (max-width: 420px) {
	.error-404 {
		padding-top: 115px;
	}

	.error-404__text {
		font-size: 1.7rem;
	}

	.error-404 a.error-404__button {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.error-404__visual::before {
		transform: none;
	}
}
