/* 404 page (moved out of the page: the production CSP forbids inline styles) */
main#content {
	background: linear-gradient(135deg, #F3F5F8 0%, #E8EEF4 100%);
	padding-bottom: 80px;
}

footer {
	margin-top: 0 !important;
}

.error-404-section {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
}

.error-404-content {
	max-width: 700px;
	text-align: center;
}

.error-404-number {
	font-size: 180px;
	font-weight: 700;
	line-height: 1;
	color: var(--color-primary);
	margin: 0 0 40px;
	opacity: 0.3;
}

.error-404-content h2 {
	font-size: 42px;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0 0 20px;
}

.error-404-content p {
	font-size: 20px;
	color: var(--color-text);
	margin: 0 0 40px;
	line-height: 1.6;
}

.error-404-links {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 60px;
}

.error-404-link {
	display: inline-block;
	background-color: var(--color-accent);
	color: #fff;
	border: 1px solid var(--color-accent);
	border-radius: 100px;
	padding: 16px 55px;
	font-family: var(--font-family);
	font-size: 15px;
	font-weight: 400;
	line-height: 15px;
	text-decoration: none;
	transition: all 0.3s;
}

.error-404-link:hover {
	background-color: transparent;
	color: var(--color-accent);
}

.error-404-link-secondary {
	background: transparent;
	color: var(--color-accent);
}

.error-404-link-secondary:hover {
	background: var(--color-accent);
	color: #fff;
}

.error-404-smart-banner {
	padding: 40px;
	background: linear-gradient(135deg, #247DA8 0%, #20B9E1 100%);
	border-radius: 16px;
	margin-bottom: 0;
	box-shadow: 0 8px 24px rgba(36, 125, 168, 0.25);
}

.error-404-smart-banner-hidden {
	display: none;
}

.error-404-smart-banner h3 {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
}

.error-404-smart-banner p {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 24px;
}

.error-404-lingomatch-link {
	display: inline-block;
	background-color: #fff;
	color: var(--color-accent);
	border: 2px solid #fff;
	border-radius: 100px;
	padding: 16px 55px;
	font-family: var(--font-family);
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	text-decoration: none;
	transition: all 0.3s;
}

.error-404-lingomatch-link:hover {
	background-color: transparent;
	color: #fff;
}

.error-404-suggestions {
	padding: 30px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 12px;
	backdrop-filter: blur(10px);
}

.error-404-suggestions h2 {
	font-size: 20px;
	font-weight: 600;
	color: var(--color-primary);
	margin: 0 0 20px;
}

.error-404-suggestions ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.error-404-suggestions li {
	margin: 0;
}

.error-404-suggestions a {
	display: block;
	padding: 12px 16px;
	color: var(--color-text);
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
	font-size: 15px;
}

.error-404-suggestions a:hover {
	background: rgba(36, 125, 168, 0.1);
	color: var(--color-accent);
	transform: translateX(4px);
}

@media (max-width: 768px) {
	.error-404-number {
		font-size: 120px;
	}

	.error-404-icon {
		width: 80px;
		height: 80px;
		margin: -100px auto 30px;
	}

	.error-404-content h1 {
		font-size: 32px;
	}

	.error-404-content p {
		font-size: 18px;
	}

	.error-404-links {
		flex-direction: column;
		align-items: stretch;
	}

	.error-404-smart-banner {
		padding: 24px;
	}

	.error-404-smart-banner h3 {
		font-size: 24px;
	}

	.error-404-smart-banner p {
		font-size: 16px;
	}

	.error-404-suggestions ul {
		grid-template-columns: 1fr;
	}
}
