/* Подключение локального шрифта Gineso Condensed Black */
@font-face {
	font-family: 'GinesoCondBlack';
	src: url('/local/templates/madsquad/fonts/GinesoCondBlack/Gineso-ConBla.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Oswald';
	src: url('/local/templates/madsquad/fonts/oswald/Oswald-Regular.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Oswald', sans-serif;
	background-color: #0a0a0a;
	color: #ffffff;
	overflow-x: hidden;
}

.container_404 {
	position: relative;
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* Overlay */
.container_404::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1;
}

/* Decorative patterns */
.left_pattern,
.right_pattern {
	position: absolute;
	bottom: 0;
	width: 25%;
	height: 100%;
	z-index: 2;
	opacity: 0.1;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
}

.left_pattern {
	left: 0;
}

.right_pattern {
	right: 0;
}

/* Topographic lines */
.topo_lines {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0.2;
	z-index: 1;
	pointer-events: none;
}

/* Content wrapper */
.content_wrapper {
	position: relative;
	z-index: 3;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Header */
.header_404 {
	text-align: center;
	padding: 40px 0;
}

.title_404 {
	/* Применяем локальный шрифт с фоллбэком на Oswald */
	font-family: 'GinesoCondBlack', 'Oswald', sans-serif;
	font-size: 280px;
	font-weight: 900; /* Black начертание обычно 900 */
	color: #f97316;
	line-height: 1;
	text-shadow: 
		4px 4px 0px rgba(0, 0, 0, 0.5),
		0 0 60px rgba(249, 115, 22, -0.5);
	letter-spacing: 20px;
	margin-bottom: 20px;
	/* animation: glitch 3s infinite; */
	filter: url('#grunge');
}

@keyframes glitch {
	0%, 100% { transform: translate(0); }
	20% { transform: translate(-2px, 2px); }
	40% { transform: translate(-2px, -2px); }
	60% { transform: translate(2px, 2px); }
	80% { transform: translate(2px, -2px); }
}

.sub_title_404 {
	font-family: 'Oswald', sans-serif;
	font-size: 48px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 3px;
}

.text_404 {
	font-family: 'Roboto', sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #a0a0a0;
	line-height: 1.6;
	margin-bottom: 40px;
}

/* Button */
.btn_back_404 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
	color: #ffffff;
	text-decoration: none;
	padding: 18px 40px;
	border-radius: 8px;
	font-family: 'Oswald', sans-serif;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
	cursor: pointer;
	margin: 0 auto 60px;
}

.btn_back_404:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* Icons section */
.icon_404 {
	display: flex;
	justify-content: center;
	gap: 60px;
	padding: 60px 0;
	flex-wrap: wrap;
}

.icon_block {
	text-align: center;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.icon_block:hover {
	transform: translateY(-5px);
}

.icon_block img {
	width: 80px;
	height: 80px;
	margin: 0 auto 15px;
	transition: all 0.3s ease;
}

.icon_block:hover img {
	filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.6));
}

.text_icon {
	font-family: 'Oswald', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.prew_text_icon {
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #707070;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Footer */
.footer_404 {
	border-top: 1px solid rgba(249, 115, 22, 0.3);
	padding: 30px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.compass_img img {
	width: 50px;
	height: 50px;
}

.footer_title_404 {
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #f97316;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 5px;
}

.footer_prew_text_404 {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #707070;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
	.title_404 {
		font-size: 150px;
		letter-spacing: 10px;
	}

	.sub_title_404 {
		font-size: 32px;
	}

	.text_404 {
		font-size: 16px;
		padding: 0 20px;
	}

	.icon_404 {
		gap: 40px;
	}

	.icon_block img {
		width: 60px;
		height: 60px;
	}

	.left_pattern,
	.right_pattern {
		width: 50px;
	}
}

@media (max-width: 480px) {
	.title_404 {
		font-size: 100px;
	}

	.sub_title_404 {
		font-size: 24px;
	}

	.icon_404 {
		flex-direction: column;
		gap: 30px;
	}

	.footer_404 {
		flex-direction: column;
		text-align: center;
	}
}