/* TaxNexo – nawigacja v1 (pływający pasek, mega-menu, wyszukiwarka, menu mobilne) – makieta */
:root{--ann-h:38px;--shadow-3:0 1px 2px rgba(14,34,64,.05),0 24px 60px -18px rgba(14,34,64,.28)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tn-ann{background:var(--navy);color:#fff;height:var(--ann-h);display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;line-height:1.2;padding:0 16px;text-align:center}
.tn-ann a{color:#fff;text-decoration:underline;text-underline-offset:3px;font-weight:500;display:inline-flex;align-items:center;gap:8px;min-height:44px}
.tn-ann a:hover{color:var(--green)}
.tn-ann .dot{width:8px;height:8px;border-radius:50%;background:var(--green);flex:none}
.tn-head{position:sticky;top:0;z-index:60;padding:12px 24px 0;pointer-events:none}
.tn-in{position:relative;max-width:1296px;margin:0 auto;pointer-events:none}
.tn-bar{pointer-events:auto;display:flex;align-items:center;gap:6px;height:72px;padding:0 14px 0 22px;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:20px;box-shadow:0 1px 2px rgba(14,34,64,.04),0 10px 30px -14px rgba(14,34,64,.18);backdrop-filter:blur(10px);transition:height .2s,box-shadow .2s,padding .2s}
.tn-logo{display:flex;align-items:center;margin-right:18px;flex:none}
.tn-logo img{height:34px;width:auto;display:block;transition:height .2s}
.tn-nav{display:flex;align-items:center;gap:2px;margin:0;padding:0;list-style:none}
.tn-nav>li{position:relative;display:flex}
.tn-link,.tn-trig{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:12px;border:0;background:transparent;font:500 15px/1 Poppins,Arial,sans-serif;color:var(--navy);text-decoration:none;cursor:pointer;white-space:nowrap}
.tn-link:hover,.tn-trig:hover{background:var(--mist)}
.tn-link:focus-visible,.tn-trig:focus-visible,.tn-ib:focus-visible,.tn-mega a:focus-visible,.tn-bar .btn:focus-visible,.tn-logo:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.tn-link.on{background:var(--mist)}
.tn-trig svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;transition:transform .2s}
.tn-trig[aria-expanded="true"]{background:var(--mist)}
.tn-trig[aria-expanded="true"] svg{transform:rotate(45deg)}
.tn-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.tn-ib{width:44px;height:44px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--navy);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.tn-ib:hover{background:var(--mist)}
.tn-ib svg,.tn-bar .btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tn-bar .btn{height:44px;padding:0 18px;font-size:14px;gap:8px;border-radius:12px;box-shadow:none}
.tn-bar .btn.chatb{background:#fff;border-color:#CBD2DD}
.tn-bar .btn.chatb:hover{border-color:var(--navy)}
.tn-bar .btn.login{border-color:transparent;background:transparent;padding:0 14px}
.tn-bar .btn.login:hover{background:var(--mist)}
.tn-bar .btn.cta{background:var(--green);border-color:var(--green);color:var(--navy);font-weight:600}
.tn-bar .btn.cta:hover{background:#0FA678;border-color:#0FA678}
.tn-burger{display:none}
/* po przewinięciu: mniejszy pasek z mocniejszym cieniem */
.tn-head.scrolled .tn-bar{height:60px;box-shadow:0 2px 4px rgba(14,34,64,.06),0 18px 40px -12px rgba(14,34,64,.30)}
.tn-head.scrolled .tn-logo img{height:28px}
.tn-head.scrolled{padding-top:8px}
/* mega-menu */
.tn-mega{pointer-events:auto;position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-3);padding:28px;display:none}
.tn-mega.open{display:block}
.tn-mgrid{display:grid;gap:8px 12px}
.tn-mega .g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tn-mega .g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tn-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 14px;align-content:start;padding:14px;border-radius:14px;text-decoration:none;color:var(--navy);border:1px solid transparent}
.tn-item:hover{background:var(--mist);border-color:var(--line)}
.tn-item .ic{grid-row:1/3;width:44px;height:44px;border-radius:12px;background:var(--mist);display:flex;align-items:center;justify-content:center;color:var(--navy);border:1px solid var(--line)}
.tn-item:hover .ic{background:#fff}
.tn-item .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tn-item b{font-weight:600;font-size:15px;line-height:1.3;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px}
.tn-item span.d{font-size:13.5px;line-height:1.5;color:var(--grey)}
.tn-item .badge{font-size:10px;line-height:1.5;padding:1px 8px}
.tn-mhead{font-weight:600;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--grey);margin:0 0 8px 14px}
.tn-split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}
.tn-split.s2{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 300px}
.tn-promo{background:var(--navy);color:#fff;border-radius:16px;padding:26px 24px;display:flex;flex-direction:column;gap:10px}
.tn-promo h3{font-size:19px;line-height:1.3;color:#fff}
.tn-promo p{font-size:14px;line-height:1.55;color:rgba(255,255,255,.78)}
.tn-promo .btn{margin-top:auto;height:44px;font-size:14px;background:var(--green);border-color:var(--green);color:var(--navy);font-weight:600;align-self:flex-start}
.tn-promo .tl{margin-top:2px;color:#fff;font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.tn-legend{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--grey);align-items:center}
.tn-legend span{display:inline-flex;align-items:center;gap:8px}
/* tło rozmywające stronę przy otwartym menu */
.tn-scrim{position:fixed;inset:0;background:rgba(14,34,64,.28);z-index:55;display:none}
body.mega .tn-scrim{display:block}
/* wyszukiwarka */
.sz{position:fixed;inset:0;z-index:100;background:rgba(14,34,64,.55);display:none;align-items:flex-start;justify-content:center;padding:64px 24px 24px}
body.szuk .sz{display:flex}
body.szuk{overflow:hidden}
.sz-card{width:100%;max-width:760px;max-height:calc(100vh - 88px);display:flex;flex-direction:column;background:#fff;border-radius:20px;box-shadow:var(--shadow-3);overflow:hidden}
.sz-top{display:flex;align-items:center;gap:12px;padding:0 20px;height:72px;border-bottom:1px solid var(--line);flex:none}
.sz-top>svg{width:22px;height:22px;fill:none;stroke:var(--grey);stroke-width:1.8;stroke-linecap:round;flex:none}
.sz-top input{flex:1;min-width:0;height:48px;border:0;outline:0;font:500 18px Poppins,Arial,sans-serif;color:var(--navy);background:transparent}
.sz-top input::placeholder{color:#8c97a8;font-weight:400}
.sz-esc{flex:none;height:30px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:600;color:var(--grey);background:var(--mist);cursor:pointer}
.sz-close{display:none}
.sz-body{overflow:auto;padding:8px 20px 20px;flex:1}
.sz-sug{padding:12px 0 6px;display:flex;flex-wrap:wrap;gap:8px}
.sz-sug a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:500;text-decoration:none;color:var(--navy);background:#fff}
.sz-sug a:hover{border-color:var(--navy)}
.sz-sug a svg{width:16px;height:16px;fill:none;stroke:var(--grey);stroke-width:1.8;stroke-linecap:round}
.sz-lab{font-weight:600;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--grey);margin:16px 0 4px}
.sz-grp{margin-top:12px}
.sz-grp h2{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--grey);margin:0 0 4px;display:flex;align-items:center;gap:10px;line-height:1.5}
.sz-grp h2 em{font-style:normal;font-weight:500;letter-spacing:0;text-transform:none;font-size:13px;color:#8c97a8}
.sz-res{display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 14px;padding:12px;border-radius:12px;text-decoration:none;color:var(--navy);align-items:start}
.sz-res:hover,.sz-res.act{background:var(--mist)}
.sz-res .ic{grid-row:1/3;width:36px;height:36px;border-radius:10px;background:var(--mist);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.sz-res:hover .ic{background:#fff}
.sz-res .ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sz-res b{font-weight:600;font-size:15px;line-height:1.35}
.sz-res small{font-size:13px;line-height:1.5;color:var(--grey)}
.sz-res mark{background:#DDF5EC;color:var(--navy);border-radius:3px;padding:0 2px}
.sz-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--line);font-size:13px;color:var(--grey);background:var(--mist);flex:none}
.sz-foot kbd{font:600 11px Poppins,Arial,sans-serif;background:#fff;border:1px solid var(--line);border-radius:6px;padding:2px 7px;color:var(--navy);margin:0 2px}
.sz-empty{padding:36px 8px 24px;text-align:center}
.sz-empty .big{width:56px;height:56px;border-radius:16px;background:var(--mist);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;margin:0 auto 18px}
.sz-empty .big svg{width:26px;height:26px;fill:none;stroke:var(--grey);stroke-width:1.6;stroke-linecap:round}
.sz-empty h2{font-size:21px;margin-bottom:8px;letter-spacing:0;text-transform:none;color:var(--navy);display:block}
.sz-empty p{color:var(--grey);font-size:15px;max-width:460px;margin:0 auto 20px}
.sz-empty .acts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.sz-empty .btn{height:48px}
.sz-empty .btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
/* menu mobilne */
.mm{position:fixed;inset:0;z-index:90;background:#fff;display:none;flex-direction:column}
body.mob .mm{display:flex}
body.mob{overflow:hidden}
.mm-top{flex:none;display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 12px 0 20px;border-bottom:1px solid var(--line)}
.mm-top img{height:28px;width:auto;display:block}
.mm-top .tn-ib{border-color:var(--line)}
.mm-scroll{flex:1;overflow:auto;padding:8px 20px 24px}
.mm-acc{border-bottom:1px solid var(--line)}
.mm-acc>button,.mm-lnk{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0;border:0;background:transparent;font:600 17px Poppins,Arial,sans-serif;color:var(--navy);text-align:left;cursor:pointer;text-decoration:none}
.mm-lnk{border-bottom:1px solid var(--line)}
.mm-acc>button svg,.mm-lnk svg{width:20px;height:20px;fill:none;stroke:var(--grey);stroke-width:2;stroke-linecap:round;transition:transform .2s;flex:none}
.mm-acc>button[aria-expanded="true"] svg{transform:rotate(45deg)}
.mm-acc>button:focus-visible,.mm-lnk:focus-visible,.mm-sub a:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.mm-sub{display:none;padding:0 0 14px}
.mm-acc.open .mm-sub{display:grid;gap:2px}
.mm-sub a{display:grid;grid-template-columns:40px minmax(0,1fr);gap:2px 12px;padding:10px 6px;min-height:56px;border-radius:12px;text-decoration:none;color:var(--navy);align-items:start}
.mm-sub a:active{background:var(--mist)}
.mm-sub .ic{grid-row:1/3;width:40px;height:40px;border-radius:12px;background:var(--mist);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.mm-sub .ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mm-sub b{font-weight:600;font-size:15px;line-height:1.3;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.mm-sub span.d{font-size:13px;line-height:1.45;color:var(--grey)}
.mm-sub .badge{font-size:10px;line-height:1.5;padding:1px 8px}
.mm-search{margin-top:18px;display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 16px;border:1px solid #CBD2DD;border-radius:12px;background:#fff;color:#5E6B80;font:400 16px Poppins,Arial,sans-serif;cursor:pointer;text-align:left}
.mm-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;flex:none}
.mm-cta{flex:none;padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;box-shadow:0 -10px 24px -16px rgba(14,34,64,.25);display:grid;gap:10px}
.mm-cta .btn{height:52px;width:100%;font-size:16px;border-radius:12px;box-shadow:none;gap:10px}
.mm-cta .btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mm-cta .btn.cta{color:var(--navy);font-weight:600}
.mm-cta .row2{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px}
.mm-cta .row2 .btn{height:48px;font-size:14px;padding:0 8px;white-space:nowrap}
/* tło strony (makieta stanu menu) */
.scr{display:none}
body[data-s="home"] #scr-home,body[data-s="blog"] #scr-blog,body[data-s="post"] #scr-post{display:block}
.hm-hero{padding-top:56px}
@media (max-width:1180px){
 .tn-nav,.tn-right .btn.chatb,.tn-right .btn.login,.tn-right .btn.cta{display:none}
 .tn-burger{display:inline-flex;border-color:var(--line)}
 .tn-bar{height:64px;padding:0 10px 0 18px}
 .tn-head.scrolled .tn-bar{height:56px}
}
@media (max-width:600px){
 :root{--ann-h:40px}
 .tn-ann{font-size:12px}
 .tn-head{padding:8px 12px 0}
 .tn-bar{border-radius:16px;height:60px;padding:0 8px 0 14px}
 .tn-logo img{height:28px}
 .tn-head.scrolled .tn-bar{height:52px}
 .tn-head.scrolled .tn-logo img{height:24px}
 .sz{padding:0}
 .sz-card{max-width:none;height:100%;max-height:none;border-radius:0}
 .sz-top{height:64px;padding:0 8px 0 16px}
 .sz-top input{font-size:17px}
 .sz-esc{display:none}
 .sz-close{display:inline-flex}
 .sz-foot{display:none}
 .sz-body{padding:4px 16px 24px}
 .sz-res{padding:12px 8px}
}

.sz-more{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;font-size:14px;font-weight:500;color:var(--navy);text-decoration:underline;text-underline-offset:3px}

/* Mega-menu kolumnowe (Piotr 19:15) */
.tn-mega{padding:24px 28px}
.mx{display:grid;grid-template-columns:repeat(var(--mxc,3),minmax(0,1fr)) 270px;gap:28px;align-items:start}
#mega-wiedza .mx{--mxc:2}
.mx-col{display:flex;flex-direction:column;gap:4px;min-width:0}
.mx-h{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#5E6B80;padding-bottom:10px;border-bottom:1px solid var(--line)}
.mx-h svg{width:16px;height:16px;stroke:#12B886;fill:none;stroke-width:2}
.mx .tn-item{padding:10px 8px;border-radius:12px}
.mx-news{background:#0E2240;color:#C9D3E3;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:8px}
.mx-news h3{margin:0;color:#fff;font-size:17px}.mx-news p{margin:0;font-size:13.5px;line-height:1.5}
.mx-tag{align-self:flex-start;font-size:11px;font-weight:600;background:#12B886;color:#0E2240;padding:3px 10px;border-radius:999px}
.mx-art{height:84px;border-radius:12px;background:radial-gradient(circle at 70% 30%,rgba(18,184,134,.55),rgba(18,184,134,0) 60%),linear-gradient(135deg,#16315a,#0E2240);display:flex;align-items:center;justify-content:center}
.mx-art svg{width:34px;height:34px;stroke:#9FE3CB;fill:none;stroke-width:1.6}
.mx-news .btn{margin-top:6px;align-self:flex-start;background:#12B886;color:#0E2240;border:0}
/* wariant granatowy */
body.mm-navy .tn-mega{background:#0E2240;border-color:#16315a}
body.mm-navy .tn-mega .tn-item b,body.mm-navy .tn-mega .tn-mhead{color:#fff}
body.mm-navy .tn-mega .tn-item .d{color:#AEBBD0}
body.mm-navy .tn-mega .tn-item:hover{background:#16315a}
body.mm-navy .tn-mega .tn-item .ic{background:#16315a;border-color:#23447a}
body.mm-navy .tn-mega .tn-item .ic svg{stroke:#9FE3CB}
body.mm-navy .mx-h{color:#8C9AB3;border-color:#23447a}
body.mm-navy .mx-news{background:#fff;color:#3A4A63}body.mm-navy .mx-news h3{color:#0E2240}
body.mm-navy .tn-legend{color:#AEBBD0;border-color:#23447a}
