*,
*::before,
*::after {
	box-sizing: border-box;
}

.header {
	background-color: #1a1a1a;
	padding: 12px 24px;
	border-bottom: 1px solid #333;
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1440px;
	margin: 0 auto;
	gap: 20px;
}

.header__left {
	flex-shrink: 0;
}

.header__logo {
	display: inline-block;
	background-color: #0056f2;
	color: #fff;
	padding: 10px 24px;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 1px;
}

.header__nav {
	flex-grow: 1;
	display: flex;
	justify-content: center;
}

.header__nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 20px;
}

.header__nav-link {
	color: #e0e0e0;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	padding: 8px 4px;
	transition: color 0.2s ease;
}

.header__nav-link:hover {
	color: #fff;
}

.header__nav-link--more {
	color: #a0a0a0;
}

.header__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header__search {
	display: flex;
	align-items: center;
	background-color: #333;
	border-radius: 20px;
	padding: 0 12px;
}

.header__search-input {
	background: transparent;
	border: none;
	color: #fff;
	padding: 10px 0;
	font-size: 1rem;
	outline: none;
	width: 150px;
}

.header__search-input::placeholder {
	color: #888;
}

.header__search-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0 8px 0 0;
	display: flex;
	align-items: center;
}

.header__search-icon {
	width: 20px;
	height: 20px;
	color: #aaa;
}

.header__login-btn {
	background-color: #8ab4f8;
	color: #1a1a1a;
	border: none;
	border-radius: 20px;
	padding: 10px 24px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.header__login-btn:hover {
	background-color: #a8c7fa;
}

.header__menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.header__menu-icon {
	display: block;
	width: 24px;
	height: 3px;
	background-color: #fff;
	border-radius: 2px;
}

.header__menu-icon:not(:last-child) {
	margin-bottom: 5px;
}

@media (max-width: 1260px) {
	.header__nav-item:nth-last-child(2) {
		display: none;
	}
}

@media (max-width: 1170px) {
	.header__nav-item:nth-last-child(3) {
		display: none;
	}
}

@media (max-width: 1100px) {
	.header__nav-item:nth-last-child(4) {
		display: none;
	}
}

@media (max-width: 1024px) {
	.header__nav-list {
		gap: 12px;
	}

	.header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #2a2a2a;
		padding: 10px 24px;
	}
}

@media (max-width: 768px) {
	.header {
		padding: 12px 16px;
	}
	.header__container {
		position: relative;
	}

	.header__nav--open {
		display: block;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.header__menu-toggle {
		display: block;
	}
}

@media (max-width: 570px) {
	.header__search {
		display: none;
	}
}
