/* Xpose Vision — header */
.xvh { --xvh-ink: #000; --xvh-pad: 22px; position: relative; z-index: 999; background: #fff; color: var(--xvh-ink); font-family: 'Montserrat', inherit, sans-serif; transition: box-shadow .3s, background-color .3s; }
.xvh *, .xvh *::before, .xvh *::after { box-sizing: border-box; }
.xvh.is-sticky { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.xvh.is-scrolled { --xvh-pad: 10px; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.06); }

.xvh-in { max-width: var(--xvh-width, 1140px); margin: 0 auto; padding: var(--xvh-pad) 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: padding .3s ease; }

/* Logo */
.xvh .xvh-logo { display: flex; align-items: center; line-height: 0; text-decoration: none; color: inherit; flex: none; }
.xvh .xvh-logo-img { display: block; width: var(--xvh-logo, 56px); height: auto; max-width: none; transition: width .3s ease; }
.xvh.is-scrolled .xvh-logo-img { width: calc(var(--xvh-logo, 56px) * .78); }
.xvh .xvh-logo-text { font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }

/* Desktop menu: Начало | За нас | Услуги | Проекти */
.xvh .xvh-menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.xvh .xvh-menu > li { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.xvh .xvh-menu > li + li::before { content: ""; width: 1px; height: 14px; margin: 0 20px; background: var(--xvh-ink); }
.xvh .xvh-menu a { position: relative; display: inline-block; padding: 6px 2px; font-size: 16px; font-weight: 400; line-height: 1.2; color: var(--xvh-ink); text-decoration: none; text-transform: none; letter-spacing: normal; box-shadow: none; border: 0; background: none; }
.xvh .xvh-menu a:hover, .xvh .xvh-menu a:focus { color: #3f444b; }
.xvh .xvh-menu .current-menu-item > a::after,
.xvh .xvh-menu .current_page_item > a::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -8px; height: 2px; background: var(--xvh-ink); }
.xvh .xvh-menu a:focus-visible { outline: 2px solid var(--xvh-ink); outline-offset: 4px; }

/* Mobile toggle hidden on desktop */
.xvh .xvh-toggle { display: none; }
.xvh-backdrop { display: none; }

/* ---------- Phone & small tablet: dropdown menu (variant C) ---------- */
@media (max-width: 900px) {
	.xvh { --xvh-pad: 12px; }
	.xvh.is-scrolled { --xvh-pad: 8px; }
	.xvh-in { padding-left: 20px; padding-right: 16px; position: relative; }
	.xvh .xvh-logo-img { width: calc(var(--xvh-logo, 56px) * .8); }
	.xvh.is-scrolled .xvh-logo-img { width: calc(var(--xvh-logo, 56px) * .68); }

	.xvh.xvh .xvh-toggle,
	.xvh.xvh .xvh-toggle:hover,
	.xvh.xvh .xvh-toggle:focus {
		display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 0 16px;
		border: 1px solid var(--xvh-ink); border-radius: 999px; background: #fff; color: var(--xvh-ink); box-shadow: none;
		font: inherit; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
	}
	.xvh.xvh .xvh-toggle:focus-visible { outline: 2px solid var(--xvh-ink); outline-offset: 3px; }
	.xvh.xvh.is-open .xvh-toggle { background: var(--xvh-ink); color: #fff; }
	.xvh .xvh-toggle-close { display: none; }
	.xvh.is-open .xvh-toggle-open { display: none; }
	.xvh.is-open .xvh-toggle-close { display: inline; }

	.xvh .xvh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 2; background: #fff; padding: 4px 20px 24px; box-shadow: 0 16px 30px rgba(0,0,0,.18); }
	.xvh.is-open .xvh-nav { display: block; }
	.xvh .xvh-menu { flex-direction: column; align-items: stretch; }
	.xvh .xvh-menu > li + li::before { display: none; }
	.xvh .xvh-menu > li { display: block; border-bottom: 1px solid rgba(0,0,0,.1); }
	.xvh .xvh-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0; font-size: 18px; font-weight: 600; }
	.xvh .xvh-menu a::before { content: "→"; order: 2; font-weight: 400; }
	.xvh .xvh-menu .current-menu-item > a, .xvh .xvh-menu .current_page_item > a { font-weight: 800; }
	.xvh .xvh-menu .current-menu-item > a::after, .xvh .xvh-menu .current_page_item > a::after { display: none; }

	.xvh-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 1; background: rgba(0,0,0,.35); }
	.xvh.is-open .xvh-backdrop:not([hidden]) { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	.xvh, .xvh-in, .xvh .xvh-logo-img { transition: none; }
}
