/**
 * Хедер поверх хиро-блока
 *
 * Разметка — header.php (.topbar + .hero__header со всем содержимым).
 * Вынесено из css/style.css.
 */

/* ---------- Топ блок (header) ---------- */
.topbar {
	height: 51px;
	background: #c8a35f; /* Gold */
	color: #fff;
	font-family: "Museo Sans Cyrl 500", "Segoe UI", system-ui, sans-serif;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.topbar__contacts {
	display: flex;
	align-items: center;
	gap: 40px;
}

.topbar__item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	line-height: 19px;
}

.topbar__item svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.topbar__lang {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Переключатель языков: ссылки (Polylang) или кнопки-фолбэк */
.topbar__lang button,
.topbar__lang a {
	appearance: none;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	color: #fff;
	text-decoration: none;
	font: inherit;
	font-size: 16px;
	line-height: 19px;
	transition: opacity 0.2s;
}

.topbar__lang button.is-muted,
.topbar__lang a.is-muted {
	opacity: 0.5;
}
.topbar__lang a.is-muted:hover {
	opacity: 0.8;
}

/* Хедер поверх хиро — стеклянная плашка (Меню сайта).
   Лежит в обычном потоке под топбаром; сам хиро подтянут вверх
   отрицательным margin-top (см. .hero в style.css), поэтому стекло
   ложится поверх верхней части картинки. */
.hero__header {
	position: relative;
	z-index: 10;
	height: 112px;
	background: rgba(47, 52, 58, 0.5);
	box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(10.5px);
	-webkit-backdrop-filter: blur(10.5px);
}
/* Не на главной за шапкой нет хиро — вместо стекла сплошной фон */
.hero__header--solid {
	background: #2f343a;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.hero__header-inner {
	display: flex;
	align-items: center;
	gap: clamp(28px, 3.6vw, 70px);
	height: 100%;
}

.logo {
	display: flex;
	flex-direction: column;
	line-height: 1;
	text-decoration: none;
}
.logo__title {
	font-family: "Museo Sans Cyrl 700", "Segoe UI", system-ui, sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 38px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #fff;
}
.logo__subtitle {
	margin-top: 4px;
	font-family: "Museo Sans Cyrl 300", "Segoe UI", system-ui, sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 17px;
	color: #828993;
}

.btn-catalog {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 20px 35px;
	border: none;
	border-radius: 5px;
	background: var(--blue, #2e5edb);
	color: #fff;
	text-decoration: none;
	font-family: "Museo Sans Cyrl 700", "Segoe UI", system-ui, sans-serif;
	font-size: 20px;
	line-height: 24px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
}
.btn-catalog:hover {
	background: #2650c0;
}
.btn-catalog svg {
	width: 24px;
	height: 24px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 35px;
}
.nav a {
	color: #fff;
	font-size: 14px;
	line-height: 17px;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.2s;
}
.nav a:hover,
.nav a.is-active {
	opacity: 1;
}

/* Список пунктов из wp_nav_menu (ul.header__list) — горизонтальный, без маркеров.
   Ссылки внутри стилизуются правилом .nav a (у контейнера класс .nav). */
.header__list {
	display: flex;
	align-items: center;
	gap: 35px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.header__list li {
	list-style: none;
}
/* активный пункт — классы WordPress */
.header__list .current-menu-item > a,
.header__list .current_page_item > a,
.header__list .current-menu-ancestor > a {
	opacity: 1;
}

.socials {
	margin-left: auto;
	display: flex;
	gap: 10px;
}
.social {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #50555b;
	color: #fff;
	transition: background 0.2s;
}
.social svg {
	width: 20px;
	height: 20px;
}
.social:hover {
	background: #5d636b;
}

@media (max-width: 1024px) {
	.hero__header {
		height: 88px;
	}
	.hero__header-inner {
		gap: 20px;
	}
}
