/* Товарка 360: одна шапка на всех страницах (журнал /blog/, главная, /ai/, /calc/, /radar/). Владелец 09.10.2026:
   логотип и ширина как в журнале, салатовые «Войти через Telegram» и «Кабинет». Селекторы через body>.top, чтобы
   перебить старые правила header журнала. Шрифты: Unbounded (логотип), Golos (меню), файлы сайта. */
@font-face{font-family:Unbounded;src:url(/assets/unbounded.ttf) format("truetype");font-weight:200 900;font-display:swap}
@font-face{font-family:"Golos Text";src:url(/assets/golostext.ttf) format("truetype");font-weight:400 900;font-display:swap}
body>.top{position:sticky;top:0;z-index:60;display:block;max-width:none;height:auto;margin:0;padding:0;
  background:#fffdf9;border-bottom:1px solid #e6e0d6;box-shadow:none;clip-path:none;font:16px/1.4 "Golos Text",Golos,system-ui,sans-serif}
body>.top:after{display:none}
body>.top .top-in{max-width:1600px;margin:0 auto;padding:0 32px;height:72px;display:flex;align-items:center;gap:28px}
body>.top .logo{font:800 27px/1 Unbounded,sans-serif;letter-spacing:-1.7px;color:#f2653d;text-decoration:none;white-space:nowrap;
  display:inline-flex;align-items:center;border:0}
body>.top .logo span{display:inline-block;font-size:24px;letter-spacing:-1px;background:#2e3546;color:#e8ff58;padding:7px 9px;
  border-radius:13px;margin-left:8px;transform:rotate(-5deg)}
body>.top .top-nav{display:flex;align-items:center;gap:24px;flex:1;margin:0}
body>.top .top-nav a{display:inline-block;color:#2e3546;text-decoration:none;font-weight:600;font-size:16px;padding:6px 0;
  border-bottom:2px solid transparent;margin:0}
body>.top .top-nav a:hover{border-bottom-color:#dce1ee}
body>.top .top-nav a.is-active{border-bottom-color:#f2653d}
body>.top .top-nav .nav-ai{color:#b83f1a}
body>.top .top-nav .top-login,body>.top .acct-btn{margin-left:auto;background:#e8ff58;color:#151922;border:0;border-radius:12px;
  padding:10px 18px;font:600 16px "Golos Text",Golos,sans-serif;text-decoration:none;cursor:pointer}
body>.top .top-nav .top-login:hover,body>.top .acct-btn:hover{background:#dcf53f;border-bottom-color:transparent}
body>.top .menu-toggle,body>.top .burger{display:none}

/* кабинет после входа (account.js) */
body>.top .acct{position:relative;margin-left:auto}
body>.top .acct-btn{display:flex;align-items:center;gap:10px;padding:5px 14px 5px 5px;margin:0}
body>.top .acct-btn:after{content:"";width:7px;height:7px;border-right:2px solid #151922;border-bottom:2px solid #151922;
  transform:rotate(45deg) translateY(-2px);margin-left:2px}
body>.top .acct-ava{width:32px;height:32px;border-radius:9px;background:#2e3546;color:#e8ff58;display:grid;place-items:center;
  font:800 15px Unbounded,sans-serif}
body>.top .acct-ava img{width:100%;height:100%;object-fit:cover;border-radius:9px;display:block}
body>.top .acct-ava.has-img{background:#fff}
body>.top .acct-menu{position:absolute;right:0;top:calc(100% + 10px);width:330px;background:#fffdf9;border:1px solid #dce1ee;
  border-radius:18px;box-shadow:0 22px 50px #2e354629;padding:8px;display:none;z-index:70;text-align:left}
body>.top .acct-menu:before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
body>.top .acct:hover .acct-menu,body>.top .acct:focus-within .acct-menu,body>.top .acct.open .acct-menu{display:block}
body>.top .acct-head{padding:10px 12px 12px;border-bottom:1px solid #dce1ee;margin-bottom:6px}
body>.top .acct-head b{display:block;font-size:16px;color:#2e3546}
body>.top .acct-head small{color:#5b6680;font-size:13px}
body>.top .acct-menu .acct-item{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:12px;text-decoration:none;
  border:0;color:#2e3546}
body>.top .acct-menu .acct-item:hover{background:#fff}
body>.top .acct-item .sq{flex:0 0 30px;height:30px;border-radius:8px;display:block}
body>.top .acct-item b{display:block;font-size:15px;font-weight:600}
body>.top .acct-item small{display:block;color:#5b6680;font-size:13px;line-height:1.35}
body>.top .sq-orange{background:#f2653d}body>.top .sq-slate{background:#66728d}body>.top .sq-ink{background:#2e3546}
body>.top .sq-rust{background:#b83f1a}body>.top .sq-lime{background:#e8ff58;border:2px solid #2e3546}
body>.top .acct-out{display:block;width:100%;text-align:left;margin-top:6px;padding:10px 12px;border:0;border-top:1px solid #dce1ee;
  background:none;color:#5b6680;font:500 14px "Golos Text",Golos,sans-serif;cursor:pointer}
body>.top .acct-out:hover{color:#b83f1a}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:90;background:#2e3546;color:#fff;
  padding:14px 20px;border-radius:14px;box-shadow:0 14px 30px #2e354640;font:15px/1.45 "Golos Text",Golos,sans-serif;
  max-width:min(560px,calc(100% - 32px));transition:opacity .4s}
.toast a{color:#e8ff58}.toast-hide{opacity:0;pointer-events:none}

@media (max-width:1100px){body>.top .top-nav{gap:16px}body>.top .top-nav a{font-size:15px}}
@media (max-width:860px){
  body>.top .top-in{height:60px;padding:0 16px;justify-content:space-between}
  body>.top .logo{font-size:22px;letter-spacing:-1.2px}
  body>.top .logo span{font-size:19px;padding:5px 7px;border-radius:10px;margin-left:6px}
  body>.top .burger{display:flex;width:44px;height:44px;border:2px solid #2e3546;border-radius:12px;align-items:center;
    justify-content:center;cursor:pointer;margin:0}
  body>.top .burger span,body>.top .burger span:before,body>.top .burger span:after{display:block;width:20px;height:2px;
    background:#2e3546;border-radius:2px;position:relative}
  body>.top .burger span:before,body>.top .burger span:after{content:"";position:absolute;left:0}
  body>.top .burger span:before{top:-6px}body>.top .burger span:after{top:6px}
  body>.top .top-nav{display:none;position:absolute;top:60px;left:0;right:0;background:#fffdf9;border-bottom:1px solid #dce1ee;
    flex-direction:column;align-items:stretch;gap:0;padding:8px 16px 16px}
  body>.top .top-nav a{display:block;padding:12px 0;border-bottom:1px solid #dce1ee;font-size:17px}
  body>.top .top-nav a.is-active{border-bottom-color:#dce1ee}
  body>.top .top-nav .top-login{margin:12px 0 0;text-align:center;border-bottom:0}
  body>.top .menu-toggle:checked~.top-nav{display:flex}
  body>.top .acct{margin:12px 0 0}
  body>.top .acct-btn{width:100%}
  body>.top .acct-menu{position:static;width:auto;display:block;box-shadow:none;border:0;padding:6px 0 0;background:transparent}
  body>.top .acct-menu:before{display:none}
}
