/* ==========================================================
   OPLATIM — КАСТОМНАЯ ШАПКА (SEO-2026), замена Astra HFB.
   Дизайн-язык b26: Inter, акцент #2563EB, мягкие тени.
   ========================================================== */

.op-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: transparent;
	font-family: 'Inter', sans-serif;
	padding: 12px 20px 0;
}
/* Липкую шапку отодвигаем ровно на высоту админ-бара — но только пока он сам
   зафиксирован. Ниже 600px WordPress делает #wpadminbar position:absolute, и он
   уезжает вместе со страницей: если оставить отступ, над шапкой висит пустая
   полоса. Видно только залогиненному админу, у посетителей админ-бара нет. */
.admin-bar .op-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .op-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .op-header { top: 0; } }

.op-header__bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px 0 22px;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 64px;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border: 1px solid rgba(21, 22, 25, .10);
	border-radius: 999px;
	box-shadow: 0 18px 40px -30px rgba(21, 22, 25, .45);
}

/* Логотип */
.op-header__logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.op-logo {
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	font-size: 25px;
	line-height: 1;
	letter-spacing: -.02em;
	white-space: nowrap;
	background: linear-gradient(120deg, #2563EB 0%, #4f46e5 48%, #06b6d4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	transition: filter .2s ease;
}
.op-header__logo:hover .op-logo { filter: saturate(1.25) brightness(1.05); }
.op-logo__tld { -webkit-text-fill-color: #0f172a; color: #0f172a; }

/* Фирменный SVG-знак (градиентная плитка + белые стрелки обмена). Инлайн-SVG:
   вес ~0, ноль доп. запросов, чёткий на любом экране. Знак декоративный (aria-hidden),
   имя сайта остаётся текстом «Oplatim.com» — для SEO и доступности. */
.op-logo__mark { display: inline-flex; flex: 0 0 auto; margin-right: 10px; }
.op-logo__mark svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 5px 12px rgba(37, 99, 235, .38)); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.op-header__logo:hover .op-logo__mark svg { transform: rotate(-8deg); }
@media (prefers-reduced-motion: reduce) { .op-logo__mark svg { transition: none; } .op-header__logo:hover .op-logo__mark svg { transform: none; } }
@media (max-width: 600px) { .op-logo__mark { margin-right: 8px; } .op-logo__mark svg { width: 30px; height: 30px; } }

/* Навигация */
.op-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.op-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.op-nav__item { position: relative; }
.op-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border-radius: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--ui-text);
	text-decoration: none;
	transition: .15s ease;
	position: relative;
}
.op-nav__link:hover { color: var(--ui-ink); }
.op-nav__link.is-active { color: var(--ui-ink); }
/* Активный раздел: тонкая линия акцента под пунктом, без заливки. */
.op-nav__link.is-active::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 1px;
	height: 2px;
	border-radius: 2px;
	background: var(--ui-accent);
}
.op-mobile__link.is-active { color: var(--b26-accent, #2563EB); }

/* Кнопки / действия */
.op-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.op-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	line-height: 1;
	transition: .15s ease;
}
.op-btn--tg { background: var(--ui-btn); color: #fff; box-shadow: var(--ui-btn-sh); border-radius: 999px; min-height: 44px; padding: 0 20px; }
.op-btn--tg:hover { background: var(--ui-accent-d); color: #fff; transform: translateY(-1px); }
.op-btn:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 3px; }
.op-btn--tg:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.op-btn__ico { flex: 0 0 auto; }

/* Бургер (моб.) */
.op-burger {
	display: none;
	width: 44px; height: 44px;
	border: 1px solid rgba(21, 22, 25, .12);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.op-burger span { display: block; width: 20px; height: 2px; background: var(--b26-text, #0f172a); border-radius: 2px; transition: .2s ease; }
.op-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.op-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.op-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Astra красит кнопки при наведении и фокусе в свой синий: держим бургер белым, фокус — кольцом акцента. */
.op-header .op-burger:hover,
.op-header .op-burger:focus,
.op-header .op-burger[aria-expanded="true"] { background: #fff; border-color: rgba(21, 22, 25, .2); }
.op-header .op-burger:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

/* Мобильное выезжающее меню */
.op-mobile {
	background: rgba(255, 255, 255, .98);
	padding: 10px 12px 14px;
	max-width: 1200px;
	margin: 8px auto 0;
	border: 1px solid rgba(21, 22, 25, .10);
	border-radius: var(--ui-r);
	box-shadow: 0 24px 48px -28px rgba(21, 22, 25, .45);
}
.op-mobile[hidden] { display: none; }
.op-mobile__nav { display: flex; flex-direction: column; gap: 2px; max-width: 1240px; margin: 0 auto; }
.op-mobile__link {
	padding: 12px 14px;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 600;
	color: var(--b26-text, #0f172a);
	text-decoration: none;
}
.op-mobile__link:hover { background: var(--ui-soft); color: var(--ui-accent); }
.op-btn--block { justify-content: center; width: 100%; margin-top: 14px; padding: 14px; }

/* ----- Адаптив ----- */
@media (min-width: 922px) {
	.op-burger { display: none; }
	.op-mobile { display: none !important; }
}
@media (max-width: 921px) {
	.op-nav { display: none; }
	.op-header__actions { margin-left: auto; } /* бургер прижимаем к правому краю */
	.op-header { padding: 10px 12px 0; }
	.op-header__bar { min-height: 56px; padding: 0 8px 0 16px; }
	.op-header__actions .op-btn--tg { display: none; } /* десктоп-кнопка прячется — она в мобильном меню */
	.op-burger { display: flex; }
}
