/* DarmowaCzcionka v4 — global navigation, attribution and page controls */
html {scroll-behavior:smooth;scroll-padding-top:88px}
body#top {scroll-margin-top:0}
[id="kategorie"],[id="polecane"],[id="narzedzia"],[id="jak-to-dziala"],#font-grid {scroll-margin-top:94px}
.site-header{position:sticky;top:0;z-index:1100}
.site-header .header-inner{min-height:72px;gap:20px}
.brand-wordmark{display:inline-block;font-weight:900;letter-spacing:-1.3px;white-space:nowrap;font-size:clamp(16px,1.65vw,22px);line-height:1.2}
.site-header .brand{flex-shrink:0;min-width:0}
.site-header .main-nav{display:flex;align-items:center;gap:15px;font-size:12px}
.site-header .main-nav>a:not(.nav-cta){white-space:nowrap;padding:8px 0}
.site-header .main-nav>a:not(.nav-cta):hover {color:#741ae8}
.header-search{display:flex;align-items:center;min-width:128px;max-width:186px;flex:1;height:37px;margin-left:4px;border:1px solid #e7def1;background:#faf8fe;border-radius:11px}
.header-search input{min-width:0;flex:1;width:100%;border:0;background:none;padding:8px 0 8px 11px;outline:none;color:#302142;font:inherit;font-size:11px}
.header-search input:focus{outline:none}
.header-search:focus-within{border-color:#a367e7;box-shadow:0 0 0 3px rgba(116,26,232,.09)}
.header-search button{border:0;background:transparent;color:#7822ce;width:33px;height:33px;padding:0;font-size:24px;flex:none;line-height:1}
.footer-grid .footer-brand{font-weight:800;letter-spacing:-1px}
.footer-grid .footer-brand .brand-wordmark{font-size:20px;white-space:normal;overflow-wrap:anywhere;color:#fff}
.footer-grid .footer-brand .brand-domain{color:#e3b0ff}
.footer-bottom{align-items:center;margin-top:32px}
.footer-woh-credit{display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:#d8cde3;font-size:12px;min-height:40px}
.footer-woh-credit span{font-size:12px}
.footer-woh-credit img{width:89px;height:36px;object-fit:contain;display:block}
.footer-woh-credit:hover{color:#fff}
.back-to-top{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));width:52px;height:52px;border:0;border-radius:17px;background:linear-gradient(135deg,#7516e4,#ab22cf);color:white;font-size:31px;line-height:1;box-shadow:0 12px 30px rgba(75,19,140,.29);z-index:1150;display:grid;place-items:center;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .2s,transform .2s,visibility .2s}
.back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:linear-gradient(135deg,#5412ba,#9014bd)}
.back-to-top:focus-visible{outline:3px solid #ffc5e9;outline-offset:3px}
.footer-bottom .footer-woh-credit:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (min-width:1600px){
 .site-header .main-nav{gap:20px;font-size:13px}
 .header-search{max-width:220px}
 .back-to-top{right:36px;bottom:36px}
}
@media (max-width:1180px){
 .site-header .header-inner{gap:11px}
 .site-header .main-nav{gap:9px;font-size:11px}
 .header-search{min-width:95px;max-width:145px}
 .site-header .main-nav>a:not(.nav-cta){letter-spacing:-.2px}
 .nav-cta{padding:10px 12px;font-size:11px}
}
@media (max-width:950px){
 .site-header .header-inner{min-height:69px}
 .site-header .main-nav{display:none}
 .site-header .main-nav.is-open{display:flex;position:absolute;top:68px;left:0;right:0;flex-direction:column;align-items:stretch;gap:4px;padding:16px 22px 25px;max-height:calc(100dvh - 68px);overflow-y:auto;background:rgba(255,255,255,.99);border-top:1px solid #efe5f5;box-shadow:0 18px 34px rgba(54,20,103,.13)}
 .site-header .main-nav>a:not(.nav-cta){padding:10px 14px;font-size:14px}
 .site-header .nav-toggle{display:block}
 .header-search{min-width:0;max-width:none;width:100%;flex:none;margin:8px 0 5px;height:43px}
 .header-search input{font-size:14px}
 .header-search button{height:40px;width:43px}
 .site-header .main-nav .nav-cta{display:block;text-align:center;padding:14px 20px;font-size:13px}
}
@media (max-width:760px){
 html{scroll-padding-top:70px}
 [id="kategorie"],[id="polecane"],[id="narzedzia"],[id="jak-to-dziala"],#font-grid{scroll-margin-top:76px}
 .site-header .header-inner{min-height:69px}
 .footer-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
 .footer-woh-credit{gap:8px}
 .back-to-top{right:15px;bottom:max(16px,env(safe-area-inset-bottom));height:48px;width:48px;border-radius:15px;font-size:28px}
}
@media (prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .back-to-top{transition:none}
}
