/* SITE_HEADER_2026_11_12: шапка как на главной (UX-3) для внутренних страниц promo — копия разделов 3 и 5 из landing-ux3.css
   с собственными переменными (на внутренних страницах --font-t = Inter). Меню — /site-menu.js. Главная этот файл не подключает. */
@font-face страницы ── */
@font-face{font-family:'ManropeV';font-style:normal;font-weight:200 800;font-display:swap;
  src:url(/assets/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'ManropeV';font-style:normal;font-weight:200 800;font-display:swap;
  src:url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'ManropeV';font-style:normal;font-weight:200 800;font-display:swap;
  src:url(/assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{--sh-font:'ManropeV',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
/* ── 3. Шапка: единая полупрозрачная панель ──────────────────────── */
html body header,html body header.scrolled{background:transparent;border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none;padding-top:14px}
html body header .wrap.nav{max-width:1480px;width:calc(100% - 48px);height:68px;min-height:68px;margin:0 auto;padding:0 12px 0 16px;
  display:flex;align-items:center;flex-wrap:nowrap;gap:0;border-radius:20px;
  background:rgba(15,11,28,.64);border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:background .25s}
html body header.scrolled .wrap.nav{background:rgba(11,8,21,.86)}

/* логотип: квадратная иконка «D» + DEVICE CRM */
html body header .logo2,.hx-dr-head .logo2{gap:11px;flex:0 0 auto;text-decoration:none}
html body header .logo2 .mark,.hx-dr-head .logo2 .mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(140deg,#b75cff,#7c3aed);
  color:#fff;font-family:var(--sh-font);font-size:21px;font-weight:700;line-height:1;box-shadow:0 6px 18px rgba(139,92,246,.45),inset 0 1px 0 rgba(255,255,255,.25)}
html body header .logo2 .lg-txt,.hx-dr-head .logo2 .lg-txt{font-family:var(--sh-font);font-size:21px;font-weight:700;letter-spacing:.005em;white-space:nowrap;color:#fff}
html body header .logo2 .lg-txt b,.hx-dr-head .logo2 .lg-txt b{font-weight:700;color:#c45bff}
.hx-divider{flex:0 0 auto;width:1px;height:30px;margin:0 clamp(16px,2vw,30px);background:linear-gradient(180deg,transparent,rgba(255,255,255,.2),transparent)}

/* меню: Medium, равные промежутки, hover и тонкий фиолетовый акцент активного пункта */
html body header .nav-links{flex:1 1 auto;justify-content:center;gap:clamp(16px,1.8vw,34px);font-size:clamp(14px,1.05vw,16px);color:#e7e3f7}
html body .nav-links a{font-family:var(--sh-font);font-weight:500;position:relative;color:inherit;transition:color .2s,opacity .2s}
html body .nav-links a::after{content:"";position:absolute;left:10%;right:10%;bottom:-9px;height:2px;border-radius:2px;background:linear-gradient(90deg,#c084fc,#8b5cf6);transform:scaleX(0);transform-origin:center;transition:transform .22s ease}
html body .nav-links a:hover{opacity:1;color:#fff}
html body .nav-links a:hover::after,html body .nav-links a:focus-visible::after,html body .nav-links a.is-active::after{transform:scaleX(1)}
html body .nav-links a.is-active{color:#fff}

/* кнопки шапки: «Войти» контурная, «Зарегистрироваться» яркая, одной высоты */
html body header .wrap.nav > .btn{height:44px;padding:0 20px;font-size:15px;border-radius:12px;white-space:nowrap;flex:0 0 auto}
html body header .wrap.nav > .hx-login{margin-left:12px;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3);box-shadow:none;text-decoration:none}
html body header .wrap.nav > .hx-login:hover{border-color:rgba(192,132,252,.75);background:rgba(139,92,246,.12)}
html body header .wrap.nav > .btn-primary{margin-left:10px;box-shadow:0 6px 22px rgba(168,85,247,.45),0 0 0 1px rgba(192,132,252,.35)}
html body header .wrap.nav > .btn-primary:hover{transform:translateY(-1px);box-shadow:0 10px 28px rgba(168,85,247,.6),0 0 0 1px rgba(216,180,254,.5)}
html body header .wrap.nav > .btn:focus-visible,html body .nav-links a:focus-visible,html body header .logo2:focus-visible{outline:2px solid #c084fc;outline-offset:3px;border-radius:10px}

/* ── 5. Мобильное меню (landing-menu-v2.js) ─────────────────────── */
.hx-burger{display:none;place-items:center;width:44px;height:44px;margin-left:10px;padding:0;flex:0 0 auto;cursor:pointer;
  border-radius:12px;border:1px solid rgba(168,85,247,.38);background:rgba(139,92,246,.12);color:#fff;transition:background .2s,border-color .2s}
.hx-burger:hover{background:rgba(139,92,246,.22);border-color:rgba(192,132,252,.6)}
.hx-burger span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor}
.hx-overlay{position:fixed;inset:0;z-index:2147483600;background:rgba(4,3,10,.64);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;transition:opacity .25s ease;touch-action:none}
.hx-overlay.is-open{opacity:1}
.hx-drawer{position:fixed;top:0;right:0;bottom:0;z-index:2147483601;width:min(86vw,360px);display:flex;flex-direction:column;
  padding:14px 18px calc(20px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;
  background:linear-gradient(180deg,#130f24,#0b0915);border-left:1px solid rgba(168,85,247,.28);box-shadow:-30px 0 80px rgba(76,29,149,.45);
  transform:translateX(100%);transition:transform .28s ease}
.hx-drawer.is-open{transform:none}
.hx-overlay[hidden],.hx-drawer[hidden]{display:none}
.hx-dr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin-bottom:10px}
.hx-dr-head .logo2 .lg-txt{font-size:18px}
.hx-close{flex:0 0 auto;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--card-brd);background:rgba(255,255,255,.04);color:#fff;cursor:pointer}
.hx-close:hover{background:rgba(255,255,255,.09)}
.hx-dr-nav{display:flex;flex-direction:column;gap:2px;margin:4px 0 20px}
.hx-dr-nav a{display:flex;align-items:center;min-height:50px;padding:0 14px;border-radius:12px;color:#fff;font-size:17px;font-weight:500;text-decoration:none;transition:background .15s}
.hx-dr-nav a:hover{background:rgba(139,92,246,.16)}
.hx-dr-nav a.is-active{background:rgba(139,92,246,.14);box-shadow:inset 3px 0 0 #a855f7}
.hx-dr-actions{margin-top:auto;display:grid;gap:10px}
.hx-dr-actions .btn{width:100%;min-height:52px;justify-content:center;font-size:16px;text-decoration:none}
.hx-dr-actions .hx-dr-login{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3);box-shadow:none}
.hx-burger:focus-visible,.hx-close:focus-visible,.hx-dr-nav a:focus-visible,.hx-dr-actions .btn:focus-visible,.hx-dr-head .logo2:focus-visible{outline:2px solid #c084fc;outline-offset:2px}
html.hx-menu-open,html.hx-menu-open body{overflow:hidden}
@media(prefers-reduced-motion:reduce){.hx-overlay,.hx-drawer,.hero2.hx2 .cta-big{transition:none}}

/* бургер: ниже 1260px (замер: строка «логотип + 7 пунктов + 2 кнопки» помещается с запасом ≥13px от 1260px)
   или если меню всё же не поместилось (класс ставит landing-menu-v2.js) */
@media(max-width:1259px){
  html body .nav-links,.hx-divider{display:none}
  html.hx-js .hx-burger{display:inline-grid}
  html body header .wrap.nav > .hx-login{margin-left:auto}
}
html.hx-js.hx-nav-collapsed .nav-links,html.hx-js.hx-nav-collapsed .hx-divider{display:none}
html.hx-js.hx-nav-collapsed .hx-burger{display:inline-grid}
html.hx-js.hx-nav-collapsed header .wrap.nav > .hx-login{margin-left:auto}
/* на узких экранах кнопки шапки переезжают в панель меню */
@media(max-width:767px){
  html.hx-js header .wrap.nav > .hx-login{display:none}
  html.hx-js header .wrap.nav > .btn-primary{margin-left:auto}
}
@media(max-width:520px){
  html.hx-js header .wrap.nav > .btn{display:none}
  html.hx-js .hx-burger{margin-left:auto}
  html body header .wrap.nav{width:calc(100% - 24px);height:62px;min-height:62px;padding:0 10px 0 12px;border-radius:16px}
  html body header .logo2 .lg-txt{font-size:18px}
  html body header .logo2 .mark{width:34px;height:34px;font-size:19px}
}


/* как на главной: «Зарегистрироваться» прижата вправо, когда пункты меню скрыты (NO_LOGIN_BTN_2026_11_10); вес кнопки — как на главной */
@media(max-width:1259px){html body header#header .wrap.nav > .btn-primary{margin-left:auto}}
html.hx-js.hx-nav-collapsed body header#header .wrap.nav > .btn-primary{margin-left:auto}
html body header .wrap.nav > .btn{font-family:var(--sh-font);font-weight:600;letter-spacing:0}
/* на внутренних страницах есть .wrap{padding:0 16px !important} для телефонов — у панели шапки отступы как на главной */
html body header .wrap.nav{padding:0 12px 0 16px !important}
@media(max-width:520px){html body header .wrap.nav{padding:0 10px 0 12px !important}}
