/**
 * Стили шапки сайта
 * Фиксированная, адаптивная, с мобильным меню
 */

/* ===========================
   ШАПКА — БАЗОВЫЕ СТИЛИ
   =========================== */

.site-header {
	position: relative;
	background-color: #1C1C1E;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Внутренний контейнер — flexbox строка */
.site-header__inner {
	display: flex;
	align-items: center;
	height: 80px;
	gap: var(--space-md);
}

/* ===========================
   ЛОГОТИП
   =========================== */

.site-header__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}

.site-header__logo:hover {
	text-decoration: none;
}

.site-header__logo-flag {
	width: 44px;
	height: 44px;
	border-radius: 5px;
	flex-shrink: 0;
	display: block;
}

.site-header__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
	gap: 4px;
}

.site-header__logo-name {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	color: var(--color-white);
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1;
}

.site-header__logo-tagline {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: 0.3px;
	line-height: 1.3;
}

/* ===========================
   НАВИГАЦИЯ (десктоп)
   =========================== */

.site-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.site-header__nav-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Убираем лишние стили WordPress */
.site-header__nav-list li {
	margin: 0;
	padding: 0;
}

.site-header__nav-list .menu-item > a {
	display: block;
	padding: 10px 15px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	transition: color var(--transition);
	white-space: nowrap;
	position: relative;
}

/* Подчёркивание при наведении */
.site-header__nav-list .menu-item > a::after {
	content: '';
	position: absolute;
	bottom: 6px;
	left: 15px;
	right: 15px;
	height: 2px;
	background-color: var(--color-accent-red);
	transform: scaleX(0);
	transition: transform var(--transition);
	transform-origin: center;
}

.site-header__nav-list .menu-item > a:hover,
.site-header__nav-list .menu-item.current-menu-item > a,
.site-header__nav-list .menu-item.current-page-ancestor > a {
	color: var(--color-white);
}

.site-header__nav-list .menu-item > a:hover::after,
.site-header__nav-list .menu-item.current-menu-item > a::after {
	transform: scaleX(1);
}

/* ===========================
   КНОПКА "ЗАПИСАТЬСЯ" (десктоп)
   =========================== */

.site-header__cta {
	flex-shrink: 0;
	padding: 10px 22px;
	font-size: 14px;
	letter-spacing: 0.3px;
}

/* ===========================
   КНОПКА БУРГЕРА (мобильные)
   =========================== */

.site-header__burger {
	display: none; /* скрыта на десктопе */
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--radius-sm);
	cursor: pointer;
	padding: 0;
	margin-left: auto;
	transition: border-color var(--transition);
}

.site-header__burger:hover {
	border-color: rgba(255, 255, 255, 0.65);
}

.site-header__burger-line {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--color-white);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
}

/* Анимация в крестик при открытом меню */
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   МОБИЛЬНОЕ МЕНЮ
   =========================== */

.site-header__mobile-menu {
	display: none; /* скрыто по умолчанию, управляется JS + .is-open */
	background-color: #252527;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: var(--space-sm) var(--container-padding) var(--space-md);
}

.site-header__mobile-menu.is-open {
	display: block;
}

/* Пункты мобильного меню */
.site-header__mobile-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__mobile-nav-list li {
	margin: 0;
}

.site-header__mobile-nav-list .menu-item > a {
	display: block;
	padding: 14px 0;
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: color var(--transition);
}

.site-header__mobile-nav-list .menu-item:last-child > a {
	border-bottom: none;
}

.site-header__mobile-nav-list .menu-item > a:hover,
.site-header__mobile-nav-list .menu-item.current-menu-item > a {
	color: var(--color-white);
}

.site-header__mobile-cta {
	display: block;
	margin-top: var(--space-md);
	text-align: center;
}

/* ===========================
   АДАПТИВНОСТЬ — ШАПКА
   =========================== */

/* Планшеты и мобильные */
@media (max-width: 991px) {
	/* Прячем десктоп навигацию и кнопку */
	.site-header__nav,
	.site-header__cta {
		display: none;
	}

	/* Показываем бургер */
	.site-header__burger {
		display: flex;
	}
}

/* Маленькие мобильные */
@media (max-width: 575px) {
	.site-header__inner {
		height: 64px;
	}

	/* Прячем слоган — оставляем только "ФРАНЦУЗ" */
	.site-header__logo-tagline {
		display: none;
	}

	.site-header__logo-name {
		font-size: 20px;
	}
}
