.brand-wrap{display:flex;align-items:center;gap:2px;flex:none;position:relative}.brand-wrap .logo{padding-right:6px}.brand-switch{position:relative}.brand-switch[hidden]{display:none}.brand-switch-btn{display:inline-flex;align-items:center;gap:6px;height:32px;min-width:32px;padding:0 6px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;font:inherit;transition:background .2s ease,border-color .2s ease,transform .2s cubic-bezier(.32,.72,0,1)}@media(hover:hover){.brand-switch-btn:hover{background:var(--paper-soft)}}.brand-switch-btn:active{transform:scale(.96)}.brand-switch-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.brand-switch-chev{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s cubic-bezier(.32,.72,0,1)}.brand-switch.is-open .brand-switch-chev{transform:rotate(180deg)}.brand-switch-btn--collab{border-color:color-mix(in srgb,#1B4A8C 40%,transparent)}.brand-switch-btn>em,.brand-switch-mark em{font-style:normal;font-weight:800;color:#f96a04}.collab-mj{display:inline-flex;align-items:center;gap:3px;line-height:1;white-space:nowrap}.collab-mj b{font-size:12px;font-weight:800;letter-spacing:.02em;color:#1b4a8c}.collab-mj i{font-style:normal;font-size:9px;font-weight:800;letter-spacing:.04em;color:#fff;background:#1b4a8c;border:1.5px solid #9CC2FA;border-radius:4px;padding:1px 4px;transform:rotate(-4deg)}[data-theme=dark] .collab-mj b{color:#9cc2fa}.brand-switch-menu{position:absolute;top:calc(100% + 12px);left:-40px;z-index:120;width:320px;padding:8px;border-radius:22px;background:var(--paper-card);border:1px solid var(--line);box-shadow:var(--shadow-soft);opacity:0;visibility:hidden;transform:translateY(-6px) scale(.98);transform-origin:20% 0;transition:opacity .22s ease,transform .3s cubic-bezier(.32,.72,0,1),visibility 0s linear .3s}.brand-switch.is-open .brand-switch-menu{opacity:1;visibility:visible;transform:none;transition:opacity .22s ease,transform .34s cubic-bezier(.32,.72,0,1),visibility 0s}.brand-switch-head{display:block;padding:8px 12px 6px;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}.brand-switch-item{display:grid;grid-template-columns:44px 1fr 20px;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;color:var(--ink);text-decoration:none;transition:background .2s ease}@media(hover:hover){.brand-switch-item:hover{background:var(--paper-soft)}}.brand-switch-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.brand-switch-item.is-current{background:color-mix(in srgb,var(--accent) 8%,transparent)}.brand-switch-tile{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--paper-soft);border:1px solid var(--line)}.brand-switch-tile--duo{border:0;background:linear-gradient(135deg,#1f7a5a 0 50%,#1b4a8c 50%);box-shadow:inset 0 -4px #f96a04}.brand-switch-tile--duo svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round}.brand-switch-text{display:grid;gap:2px;min-width:0}.brand-switch-text strong{font-size:.92rem;line-height:1.25}.brand-switch-text span{font-size:.8rem;color:var(--ink-soft)}.brand-switch-check{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.brand-switch-item[data-project=mgimo]{position:relative}.brand-switch-item[data-project=mgimo]:before{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:2px;opacity:.55;background:linear-gradient(90deg,#4fa37c 0 25%,#1b4a8c 0 50%,#f0b429 0 75%,#f96a04 0)}@media(max-width:479px){.brand-switch-btn--collab .collab-mj b{display:none}.brand-switch-menu{position:fixed;top:70px;left:12px;right:12px;width:auto}}.collab-wipe{position:fixed;inset:0;z-index:10000;display:flex;pointer-events:none;transform:skew(-12deg) scaleX(1.3)}.collab-wipe span{flex:1;transform-origin:50% 0}.collab-wipe--in{pointer-events:auto}.collab-wipe--in span{animation:collab-band-in .52s cubic-bezier(.65,0,.35,1) both;animation-delay:calc(var(--i) * 30ms)}.collab-wipe--out span{transform-origin:50% 100%;animation:collab-band-out .62s cubic-bezier(.65,0,.35,1) both;animation-delay:calc(.12s + var(--i) * 40ms)}@keyframes collab-band-in{0%{transform:scaleY(0)}to{transform:none}}@keyframes collab-band-out{0%{transform:none}to{transform:scaleY(0)}}@media(prefers-reduced-motion:reduce){.collab-wipe{display:none}}.brand-switch-btn--collab{gap:6px;padding:0 10px 0 3px;height:32px}.brand-switch-x{width:24px;height:24px;padding:5px;box-sizing:border-box;border-radius:50%;background:#f96a04;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;transition:transform .3s cubic-bezier(.32,.72,0,1)}.brand-switch.is-open .brand-switch-x{transform:rotate(90deg)}@media(min-width:1181px)and (max-width:1599px){.header-inner:has(.brand-switch:not([hidden])){gap:10px;padding-inline:20px}.header-inner:has(.brand-switch:not([hidden])) .main-nav>ul>.nav-item>a{padding:10px 8px;font-size:14px}.header-inner:has(.brand-switch:not([hidden])) .header-actions{gap:8px}.header-inner:has(.brand-switch:not([hidden])) .header-actions>.btn{padding-inline:14px;font-size:14px}}
