/* Общие стили */
.header {
	background: #fff;
}

.header > .container {
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Верхние иконки */
.header__top {
	display: flex;
	gap: 2.5rem;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.header__top a {
	padding: 1rem;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-text {
	font-size: 20px;
	font-weight: 800;
	transition: transform 0.35s ease-in-out;
}

.header-text-1 {
	color: #ea002a;
}

.header-text-2 {
	color: #064d9d;
}

.header-text-3 {
	color: #008290;
}

.header-text-4 {
	color: #368619;
}

.header-text-5 {
	color: #aa64aa;
}

/* Анимация стрелки при hover */
.header__top a::after {
	pointer-events: none;
	cursor: pointer;
	position: absolute;
	z-index: -1;
	content: '';
	border-style: solid;
	border-width: 8px 15px 0 15px;
	transition-duration: 0.25s;
	transition-property: bottom;
	left: calc(50% - 15px);
	bottom: 0.5rem;
	opacity: 0;
	border-color: currentColor transparent transparent transparent;
}

.header__top a:hover::after {
	opacity: 1;
	transform: translateY(3px);
}

/* Лого по центру */
.header__logo {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 25px;
	flex-direction: column;
	gap: 0.1rem;
}

.header-date {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
}

.data-now-container {
	display: flex;
	align-items: center;
}

.date-now-header {
	font-size: 14px;
	font-weight: 700;
}

.header__logo--1 {
	width: 65%;
	height: fit-content;
}

.header__logo--2 {
	margin-left: auto;
	width: 200px;
	height: 30px;
	margin-bottom: 0.5rem;
}

/* Навигация */
.header__nav ul {
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	gap: 5px;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	position: relative;
	padding: 0.625rem 0;
}

.header__nav ul::before {
	content: '';
	width: 100%;
	border-top: 1px solid #008c99;
	position: absolute;
	top: 0px;
}

.header__nav ul::after {
	content: '';
	width: 100%;
	border-bottom: 1px solid #008c99;
	position: absolute;
	bottom: 0px;
}

.header__nav li a {
	display: block;
	padding: 6px;
	text-decoration: none;
	color: #333;
	font-size: 14.5px;
	font-weight: 600;
	border: 2px solid transparent;
	transition: all 0.35s ease-in-out;
	position: relative;
	flex-shrink: 0;
	color: #008c99;
}

.header__nav li {
	position: relative;
	min-height: 32px;
	height: fit-content;
}

.header__nav li::after {
	content: '';
	height: 100%;
	border-right: 1px solid #008c99;
	position: absolute;
	right: -4px;
	top: 0;
}

.header-search {
	width: 20px;
	height: 20px;
	padding: 2px;
	flex-shrink: 0;
	background-color: #c62620;
	border-radius: 100%;
	object-fit: contain;
}

.li-header-search::after {
	border-right: none !important;
}

.header__nav li.active a,
.header__nav li a:hover {
	background: #008c99; /* как у Home */
	color: #fff;
}

/* Иконка поиска */
.header__search {
	display: flex;
	justify-content: flex-end;
}

.header__search img {
	max-height: 28px;
	cursor: pointer;
	transition: transform 0.3s;
}

.header__search img:hover {
	transform: scale(1.2);
}

.a-header-search {
	padding: 0 6px !important;
	margin-top: 2px;
	flex-shrink: 0;
}

.menu {
	display: none;
	flex-direction: column;
	align-items: center;
}

.menu-icon {
	width: 35px;
	height: 35px;
}

.menu-text {
	text-transform: uppercase;
	font-size: 12px;
	color: black;
	font-weight: 600;
}

.a-header-search {
	display: none;
}

/* Адаптив */
@media screen and (max-width: 993px) {
	.header {
		border-bottom: 1px solid #008c997d;
	}
	.header__top,
	.header__nav,
	.header__logo--2,
	.header-date {
		display: none;
	}

	.header > .container {
		width: 100%;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}
	.mobile-header {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.header-search {
		width: 35px;
		height: 35px;
	}

	.header__logo--1 img {
		width: 100%;
	}

	.header__logo--1 {
		width: 50%;
	}

	.menu {
		display: flex;
	}
	.a-header-search {
		display: flex;
	}
}
@media screen and (max-width: 700px) {
	.header__logo--1 {
		width: 60%;
	}
}

@media screen and (max-width: 500px) {
	.header > .container {
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}

	.header__logo--1 {
		width: 100%;
	}
	.mobile-header {
		gap: 1rem;
	}
	.menu-icon {
		width: 30px;
		height: 30px;
	}
	.header-search {
		width: 30px;
		height: 30px;
	}
}

.a-header-search:hover {
	background-color: white !important;
}

.header__nav li a.header-red {
	color: #c62620;
}

.header__nav li a.header-red:hover {
	color: white;
}
