/* Shared AXVPN header: one presentation on every public theme page. */
.ax-header.ax-header--shared .custom-logo{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
.ax-header.ax-header--shared :is(.ax-theme-toggle--desktop,.ax-header-telegram--desktop,.ax-header-account){min-height:44px;height:44px}
.ax-header.ax-header--shared .ax-theme-toggle--desktop{width:44px;flex-basis:44px}
.ax-header.ax-header--shared :is(a,button):focus-visible{outline:3px solid var(--ax-red);outline-offset:4px}

.ax-header.ax-header--shared{--header-bg:#ffffffed;--header-ink:#202127;--header-muted:#454650;--header-control:#f4f4f6;--header-line:#e4e4e9;--header-hover:#ececf0;background:var(--header-bg);border-bottom-color:var(--header-line)}
html[data-theme="dark"] .ax-header.ax-header--shared{--header-bg:#0d0d0fed;--header-ink:#f5f5f7;--header-muted:#c0c0ca;--header-control:#202025;--header-line:#303037;--header-hover:#2b2b32;background:var(--header-bg);border-bottom-color:var(--header-line)}
.ax-header--shared .ax-header-inner{width:min(1440px,calc(100% - 96px));min-height:80px;gap:32px}
.ax-header.ax-header--shared :is(.custom-logo-link,.ax-logo-fallback){width:140px;height:38px;flex-basis:140px}
.ax-header.ax-header--shared .ax-navigation{color:var(--header-muted);font-size:14px;font-weight:600}
.ax-header.ax-header--shared :is(.ax-theme-toggle,.ax-header-telegram,.ax-header-account,.ax-menu-toggle){border:1px solid var(--header-line);border-radius:12px;background:var(--header-control);color:var(--header-ink);box-shadow:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.ax-header.ax-header--shared :is(.ax-theme-toggle,.ax-header-telegram,.ax-header-account,.ax-menu-toggle):hover{background:var(--header-hover);border-color:var(--header-line);color:var(--header-ink)}
html[data-theme="dark"] .ax-header.ax-header--shared .ax-header-account{background:var(--header-control);border-color:var(--header-line);color:var(--header-ink)}
html[data-theme="dark"] .ax-header.ax-header--shared .ax-header-account:hover{background:var(--header-hover);border-color:var(--header-line);color:var(--header-ink)}
.ax-header.ax-header--shared .ax-header-account{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:0;padding:0 16px;font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap}
.ax-header.ax-header--shared .ax-header-account .ax-icon{width:20px;height:20px;flex-basis:20px;stroke-width:1.65}
.ax-header--shared .ax-header-utilities{gap:8px}
.ax-header.ax-header--shared .ax-header-telegram--desktop{order:0;width:44px;flex-basis:44px;padding:0;justify-content:center}
.ax-header.ax-header--shared .ax-header-telegram__icon{display:block;width:24px;height:24px;flex:0 0 24px;object-fit:contain;filter:none}
.ax-header.ax-header--shared .ax-theme-icon{width:21px;height:21px;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.ax-header--shared .axh-menu-cross{display:none}
.ax-header--shared .ax-menu-toggle[aria-expanded="true"] .axh-menu-lines{display:none}
.ax-header--shared .ax-menu-toggle[aria-expanded="true"] .axh-menu-cross{display:block}
@media(min-width:901px){
.ax-header.ax-header--shared .ax-navigation{flex:1 1 auto;min-width:0;gap:0;position:static}
.ax-header--shared .ax-navigation::before,.ax-header--shared .ax-navigation::after{content:"";display:block;flex:1 1 24px;min-width:16px}
.ax-header--shared .ax-navigation::before{order:-1}
.ax-header--shared .ax-navigation::after{order:1}
.ax-header--shared .ax-navigation>a{margin-inline:12px;padding-block:12px;white-space:nowrap}
.ax-header--shared .ax-navigation>a:first-of-type{margin-left:0}
.ax-header--shared .ax-navigation>a:last-of-type{margin-right:0}
.ax-header--shared .ax-navigation>ul{flex:0 1 auto;flex-wrap:wrap;justify-content:center;gap:8px 24px}
.ax-header--shared .ax-navigation>ul a{display:block;padding-block:12px;white-space:nowrap}
.ax-header--shared .ax-navigation-actions{order:2;gap:10px;margin:0;flex:0 0 auto}}
@media(min-width:901px) and (max-width:1199px){
.ax-header--shared .ax-header-inner{width:calc(100% - 48px);gap:20px}
.ax-header.ax-header--shared :is(.custom-logo-link,.ax-logo-fallback){width:120px;flex-basis:120px}
.ax-header--shared .ax-navigation>a{margin-inline:8px}
.ax-header--shared .ax-navigation>ul{column-gap:16px}
.ax-header--shared .ax-navigation::before,.ax-header--shared .ax-navigation::after{min-width:12px}
.ax-header.ax-header--shared .ax-header-account{padding-inline:12px}}
@media(max-width:900px){
.ax-header--shared .ax-header-inner{width:calc(100% - 32px);min-height:68px;gap:6px;position:relative}
.ax-header.ax-header--shared :is(.custom-logo-link,.ax-logo-fallback){width:108px;height:30px;flex-basis:108px;margin-right:auto}
.ax-header--shared .ax-header-inner>:is(.ax-theme-toggle--mobile,.ax-header-telegram--mobile,.ax-menu-toggle){display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:0;margin:0;border-radius:11px}
.ax-header--shared .ax-menu-toggle{order:0}
.ax-header.ax-header--shared .ax-navigation{top:calc(100% + 1px);left:0;right:0;padding:12px;background:var(--header-bg);border:1px solid var(--header-line);border-radius:16px;box-shadow:0 12px 28px #00000010}
.ax-header--shared .ax-navigation::before,.ax-header--shared .ax-navigation::after{display:none}
.ax-header--shared .ax-navigation.is-open{gap:2px}
.ax-header--shared .ax-navigation>a,.ax-header--shared .ax-navigation ul a{min-height:48px;padding:12px;font-size:15px;line-height:24px;border-radius:10px}
.ax-header--shared .ax-navigation ul{gap:2px;padding:0}
.ax-header--shared .ax-navigation.is-open .ax-navigation-actions{padding-top:10px;margin-top:8px;border-top:1px solid var(--header-line)}
.ax-header.ax-header--shared .ax-navigation .ax-header-account{min-height:48px;margin:0;justify-content:center}
.ax-header--shared .ax-navigation-actions>.ax-header-utilities{display:none}}
@media(max-width:359px){
.ax-header--shared .ax-header-inner{gap:4px}
.ax-header.ax-header--shared :is(.custom-logo-link,.ax-logo-fallback){width:104px;flex-basis:104px}}


@media(prefers-reduced-motion:reduce){.ax-header.ax-header--shared :is(a,button){transition:none}}

/* Theme icon cross-transition; state is owned exclusively by the existing theme system. */
.ax-header.ax-header--shared .ax-theme-toggle{
 position:relative;overflow:hidden;
 transition:transform .1s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
}
.ax-header.ax-header--shared .ax-theme-toggle .ax-theme-icon{
 display:block;position:absolute;inset:0;margin:auto;pointer-events:none;
 transform-origin:center;
 transition:opacity .26s cubic-bezier(.22,1,.36,1),transform .26s cubic-bezier(.22,1,.36,1);
}
.ax-header.ax-header--shared .ax-theme-toggle .ax-theme-icon-moon{
 opacity:1;transform:translateY(0) rotate(0) scale(1);
}
.ax-header.ax-header--shared .ax-theme-toggle .ax-theme-icon-sun{
 opacity:0;transform:translateY(-6px) rotate(-25deg) scale(.65);
}
html[data-theme="dark"] .ax-header.ax-header--shared .ax-theme-toggle .ax-theme-icon-moon{
 opacity:0;transform:translateY(6px) rotate(25deg) scale(.65);
}
html[data-theme="dark"] .ax-header.ax-header--shared .ax-theme-toggle .ax-theme-icon-sun{
 opacity:1;transform:translateY(0) rotate(0) scale(1);
}
@media(hover:hover) and (pointer:fine){
 .ax-header.ax-header--shared .ax-theme-toggle:hover{
  background:var(--header-hover);
  border-color:color-mix(in srgb,var(--header-ink) 16%,var(--header-line));
 }
}
@media(hover:none),(pointer:coarse){
 .ax-header.ax-header--shared .ax-theme-toggle:hover{background:var(--header-control);border-color:var(--header-line)}
}
.ax-header.ax-header--shared .ax-theme-toggle:active{transform:scale(.96);background:var(--header-hover)}
@media(prefers-reduced-motion:reduce){
 .ax-header.ax-header--shared .ax-theme-toggle{transition:none}
 .ax-header.ax-header--shared .ax-theme-toggle:active{transform:none}
 .ax-header.ax-header--shared .ax-theme-toggle .ax-theme-icon{transform:none;transition:none}
 html[data-theme="dark"] .ax-header.ax-header--shared .ax-theme-toggle .ax-theme-icon{transform:none}
}

/* Text navigation: a centered accent, without changing link or header geometry. */
.ax-header.ax-header--shared .ax-navigation .ax-header-link{color:var(--header-muted)}
.ax-header.ax-header--shared .ax-navigation .ax-header-link:is(:focus-visible,[aria-current="page"]){color:var(--header-ink)}
@media(min-width:901px){
 .ax-header--shared .ax-header-link,.ax-header--shared .ax-header-account>span{position:relative}
 .ax-header--shared .ax-header-link::after,.ax-header--shared .ax-header-account>span::after{
  content:"";position:absolute;left:16%;bottom:7px;width:68%;height:1.5px;
  border-radius:2px;background:var(--ax-red);pointer-events:none;
  opacity:0;transform:scaleX(.15);transform-origin:center;
  transition:transform .26s cubic-bezier(.22,1,.36,1),opacity .26s cubic-bezier(.22,1,.36,1);
 }
 .ax-header--shared .ax-header-account>span::after{bottom:-5px}
 .ax-header--shared .ax-header-link:is(:focus-visible,[aria-current="page"])::after,
 .ax-header--shared .ax-header-account:is(:focus-visible,[aria-current="page"])>span::after{opacity:1;transform:scaleX(1)}
}
@media(min-width:901px) and (hover:hover) and (pointer:fine){
 .ax-header.ax-header--shared .ax-navigation .ax-header-link:hover{color:var(--header-ink)}
 .ax-header--shared .ax-header-link:hover::after,
 .ax-header--shared .ax-header-account:hover>span::after{opacity:1;transform:scaleX(1)}
}
@media(max-width:900px){
 /* No hover underline on touch: only the current page has a static inset accent. */
 .ax-header.ax-header--shared .ax-navigation :is(.ax-header-link,.ax-header-account)[aria-current="page"]{box-shadow:inset 2px 0 var(--ax-red)}
}
@media(prefers-reduced-motion:reduce){
 .ax-header--shared .ax-header-link::after,.ax-header--shared .ax-header-account>span::after{transform:none;transition:none}
 .ax-header--shared .ax-header-link:is(:hover,:focus-visible,[aria-current="page"])::after,
 .ax-header--shared .ax-header-account:is(:hover,:focus-visible,[aria-current="page"])>span::after{transform:none}
}
