* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: linear-gradient(135deg, #E8F4F8 0%, #F0F8FF 100%);
	min-height: 100vh;
	height: 100vh;
	display: flex;
	flex-direction: column;
	color: #2c3e50;
	overflow: hidden;
}

header {
	padding: 12px 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #FFFFFF;
	flex-shrink: 0;
}

.logo {
	height: 48px;
	display: block;
	max-width: 100%;
	object-fit: contain;
}

.header-promo {
	display: flex;
	align-items: center;
}

.header-btn {
	padding: 8px 16px;
	background: transparent;
	color: #0066CC;
	text-decoration: none;
	border: 1.5px solid #0066CC;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.header-btn:hover {
	background: #0066CC;
	color: #FFFFFF;
}

main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 50px;
	min-height: 0;
	overflow-y: auto;
}

.content-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	max-width: 1200px;
	width: 100%;
	align-items: center;
}

.error-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.emoji {
	font-size: 56px;
	margin-bottom: 4px;
	line-height: 1;
}

.error-title {
	font-size: 38px;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 12px;
	letter-spacing: -1px;
}

.error-description {
	font-size: 15px;
	color: #7a8a9a;
	line-height: 1.5;
	margin-bottom: 24px;
}

.error-description a {
	color: #0066CC;
	text-decoration: none;
}

.error-description a:hover {
	text-decoration: underline;
}

.error-btn {
	display: inline-block;
	padding: 14px 28px;
	background: #0066CC;
	color: #FFFFFF;
	text-decoration: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
	width: fit-content;
}

.error-btn:hover {
	background: #0052a3;
	transform: translateY(-1px);
}

.error-code-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.error-code {
	font-size: 240px;
	font-weight: 700;
	color: #0066CC;
	letter-spacing: -8px;
	line-height: 1;
	opacity: 0.9;
}

footer {
	padding: 20px 50px;
	background: #FFFFFF;
	flex-shrink: 0;
}

.search-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.search-label {
	display: block;
	font-size: 15px;
	font-weight: 500;
	color: #2c3e50;
	margin-bottom: 10px;
	text-align: center;
}

#search {
	width: 100%;
	margin-bottom: 14px;
}

#search form {
	display: flex;
	gap: 12px;
	max-width: 800px;
	margin: 0 auto;
}

#search_word {
	flex: 1;
	padding: 10px 14px;
	border: 1.5px solid #E5E5E5;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: #2c3e50;
	transition: border-color 0.2s;
}

#search_word:focus {
	outline: none;
	border-color: #0066CC;
}

.searchsbm {
	padding: 10px 20px;
	background: #0066CC;
	color: #FFFFFF;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.searchsbm:hover {
	background: #0052a3;
	transform: translateY(-1px);
}

.browser-promo {
	text-align: center;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #E5E5E5;
}

.browser-promo-text {
	font-size: 13px;
	color: #7a8a9a;
	line-height: 1.5;
}

.browser-promo-text a {
	color: #0066CC;
	text-decoration: none;
}

.browser-promo-text a:hover {
	text-decoration: underline;
}


@media (max-width: 1024px) and (min-width: 769px) {
	header {
		padding: 10px 40px;
	}

	.logo {
		height: 55px;
	}

	main {
		padding: 25px 40px;
	}

	.content-wrapper {
		gap: 50px;
	}

	.error-code {
		font-size: 180px;
	}

	.error-title {
		font-size: 34px;
	}

	footer {
		padding: 18px 40px;
	}
}

@media (max-width: 768px) {
	body {
		height: auto;
		min-height: 100vh;
		overflow-y: auto;
	}

	header {
		flex-direction: column;
		gap: 8px;
		padding: 8px 16px;
		align-items: center;
	}

	header > a {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.logo {
		height: 55px;
		max-width: 100%;
		object-fit: contain;
	}

	.header-promo {
		width: 100%;
		justify-content: center;
	}

	.header-btn {
		width: 100%;
		max-width: 300px;
	}

	main {
		padding: 16px 16px;
		min-height: calc(100vh - 200px);
	}

	.content-wrapper {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.error-content {
		gap: 8px;
		text-align: center;
		align-items: center;
	}

	.emoji {
		font-size: 32px;
		margin-bottom: 4px;
	}

	.error-code {
		font-size: 100px;
		letter-spacing: -4px;
	}

	.error-title {
		font-size: 28px;
		margin-bottom: 8px;
	}

	.error-description {
		font-size: 14px;
		margin-bottom: 16px;
	}

	.error-btn {
		margin: 0 auto;
	}

	footer {
		padding: 12px 16px;
	}

	#search form {
		flex-direction: column;
	}

	.searchsbm {
		width: 100%;
	}
}

