/* Nagłówek FTF (ArtWebCraft). Granat i złoto wg wzoru „Elegancki sklep z e-bookami podatkowymi”. */

@font-face{font-family:"FTF Serif";font-style:normal;font-weight:400 700;font-display:swap;src:url(sourceserif-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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"FTF Serif";font-style:normal;font-weight:400 700;font-display:swap;src:url(sourceserif-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{--ftf-granat:#0f1f3d;--ftf-granat-2:#162a4f;--ftf-zloto:#c9a45c;--ftf-zloto-jasne:#e6c987;--ftf-krem:#f4ecdc;--ftf-serif:"FTF Serif",Georgia,"Times New Roman",serif}

.ftf-naglowek-wl #page-container{padding-top:0!important;margin-top:0!important}
.ftf-naglowek{position:sticky;top:0;z-index:9990;background:var(--ftf-granat);color:#fff;border-bottom:1px solid rgba(201,164,92,.35);transition:box-shadow .2s}
.admin-bar .ftf-naglowek{top:32px}
@media (max-width:782px){.admin-bar .ftf-naglowek{top:46px}}
@media (max-width:600px){.admin-bar .ftf-naglowek{top:0}}
.ftf-naglowek.przewiniety{box-shadow:0 6px 18px rgba(8,16,34,.28)}
.ftf-naglowek__in{max-width:1280px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;gap:28px;min-height:84px;box-sizing:border-box}

.ftf-marka{display:flex;align-items:center;gap:14px;text-decoration:none;color:#fff;min-width:0;flex:0 1 auto}
.ftf-marka__foto{width:56px;height:56px;border-radius:50%;flex:none;box-shadow:0 0 0 2px var(--ftf-zloto),0 0 0 4px var(--ftf-granat),0 0 0 5px rgba(201,164,92,.45)}
.ftf-marka__tekst{display:flex;flex-direction:column;gap:3px;min-width:0;padding-left:14px;border-left:1px solid rgba(201,164,92,.45)}
.ftf-marka__nazwa{font-family:var(--ftf-serif);font-weight:700;font-size:26px;line-height:1.1;letter-spacing:.2px;color:#fff;white-space:nowrap}
.ftf-marka__nazwa em{font-style:normal;color:var(--ftf-zloto-jasne)}
.ftf-marka__podpis{font-size:14px;line-height:1.3;color:rgba(244,236,220,.92);letter-spacing:.2px;white-space:nowrap}
.ftf-marka__podpis i{font-style:normal;color:var(--ftf-zloto);padding:0 3px}

.ftf-nav{margin-left:auto}
.ftf-menu{list-style:none;margin:0;padding:0;display:flex;gap:6px}
.ftf-menu li{margin:0;padding:0;list-style:none}
.ftf-menu a{display:block;padding:8px 12px;color:#fff;text-decoration:none;font-size:15.5px;font-weight:500;letter-spacing:.2px;position:relative;transition:color .15s}
.ftf-menu a::after{content:"";position:absolute;left:12px;right:12px;bottom:2px;height:2px;background:var(--ftf-zloto);transform:scaleX(0);transition:transform .2s}
.ftf-menu a:hover{color:var(--ftf-zloto-jasne)}
.ftf-menu .current-menu-item>a::after,.ftf-menu .current_page_item>a::after,.ftf-menu .current-menu-ancestor>a::after,.ftf-menu a:hover::after{transform:scaleX(1)}

.ftf-akcje{display:flex;align-items:center;gap:4px}
.ftf-ikona{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;padding:0;text-decoration:none}
.ftf-ikona:hover{color:var(--ftf-zloto-jasne);background:rgba(255,255,255,.06)}
.ftf-ikona svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ftf-koszyk-licznik{position:absolute;top:3px;right:1px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--ftf-zloto);color:var(--ftf-granat);font-size:11px;font-weight:700;line-height:18px;text-align:center;box-sizing:border-box}
.ftf-menu-btn{display:none}
.ftf-naglowek a:focus-visible,.ftf-naglowek button:focus-visible,.ftf-naglowek input:focus-visible{outline:2px solid var(--ftf-zloto-jasne);outline-offset:2px}

.ftf-szukaj{display:flex;gap:8px;max-width:1280px;margin:0 auto;padding:0 24px 14px;box-sizing:border-box}
.ftf-szukaj[hidden]{display:none}
.ftf-szukaj input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid rgba(201,164,92,.55);border-radius:8px;background:var(--ftf-granat-2);color:#fff;font-size:16px}
.ftf-szukaj input::placeholder{color:rgba(244,236,220,.6)}
.ftf-szukaj button{height:44px;padding:0 20px;border:0;border-radius:8px;background:linear-gradient(180deg,var(--ftf-zloto-jasne),var(--ftf-zloto));color:var(--ftf-granat);font-weight:600;cursor:pointer}

@media (max-width:1100px){
  .ftf-naglowek__in{gap:16px}
  .ftf-marka__nazwa{font-size:22px}
  .ftf-menu a{padding:8px 9px;font-size:15px}
}
@media (max-width:980px){
  .ftf-naglowek__in{min-height:68px;padding:8px 12px 8px 16px;gap:10px}
  .ftf-marka{gap:10px}
  .ftf-marka__foto{width:46px;height:46px}
  .ftf-marka__tekst{padding-left:10px}
  .ftf-marka__nazwa{font-size:19px}
  .ftf-marka__podpis{font-size:13px;white-space:normal}
  .ftf-akcje{margin-left:auto;gap:0}
  .ftf-menu-btn{display:inline-flex}
  .ftf-nav{position:absolute;left:0;right:0;top:100%;margin:0;background:var(--ftf-granat);border-top:1px solid rgba(201,164,92,.3);box-shadow:0 12px 24px rgba(8,16,34,.3);display:none}
  .ftf-nav.otwarte{display:block}
  .ftf-menu{flex-direction:column;gap:0;padding:6px 0}
  .ftf-menu a{padding:14px 20px;font-size:17px}
  .ftf-menu a::after{left:20px;right:auto;width:28px;bottom:8px}
  .ftf-szukaj{padding:0 12px 12px}
}
@media (max-width:420px){
  .ftf-marka__podpis i{display:block;height:0;overflow:hidden;padding:0}
  .ftf-marka__podpis{max-width:none;white-space:nowrap}
  .ftf-marka__nazwa{font-size:18px}
  .ftf-ikona{width:38px;height:38px}
}

/* Podmenu (np. „Dla firm”): na komputerze rozwijane pod pozycją, na telefonie lista w menu. */
.ftf-menu .menu-item-has-children{position:relative;display:flex;align-items:center}
.ftf-podmenu-btn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:30px;margin-left:-8px;padding:0;background:none;border:0;color:#fff;cursor:pointer}
.ftf-podmenu-btn svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .2s}
.ftf-menu .menu-item-has-children.otwarte>.ftf-podmenu-btn svg{transform:rotate(180deg)}
.ftf-menu .sub-menu{list-style:none;margin:0;padding:8px 0;position:absolute;left:0;top:100%;min-width:250px;background:var(--ftf-granat);border:1px solid rgba(201,164,92,.3);border-radius:0 0 10px 10px;box-shadow:0 14px 28px rgba(8,16,34,.3);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s,transform .15s,visibility .15s;z-index:20}
.ftf-menu .menu-item-has-children:hover>.sub-menu,.ftf-menu .menu-item-has-children:focus-within>.sub-menu,.ftf-menu .menu-item-has-children.otwarte>.sub-menu{opacity:1;visibility:visible;transform:none}
.ftf-menu .sub-menu a{padding:10px 18px;font-size:15px;white-space:nowrap}
.ftf-menu .sub-menu a::after{left:18px;right:auto;width:24px;bottom:5px}
@media (max-width:980px){
  .ftf-menu .menu-item-has-children{flex-wrap:wrap}
  .ftf-menu .menu-item-has-children>a{flex:1}
  .ftf-podmenu-btn{width:52px;height:50px;margin:0}
  .ftf-podmenu-btn svg{width:16px;height:16px}
  .ftf-menu .sub-menu{position:static;flex-basis:100%;min-width:0;border:0;border-radius:0;box-shadow:none;background:rgba(255,255,255,.04);padding:0 0 6px;opacity:1;visibility:visible;transform:none;display:none}
  .ftf-menu .menu-item-has-children:hover>.sub-menu,.ftf-menu .menu-item-has-children:focus-within>.sub-menu{display:none}
  .ftf-menu .menu-item-has-children.otwarte>.sub-menu{display:block}
  .ftf-menu .sub-menu a{padding:12px 20px 12px 36px;font-size:16px;white-space:normal}
  .ftf-menu .sub-menu a::after{left:36px}
}

/* Złoty przycisk „Umów konsultację”: na komputerze przed lupą i koszykiem, na telefonie na górze rozwijanego menu. */
.ftf-kons{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 20px;border-radius:8px;background:linear-gradient(180deg,var(--ftf-zloto-jasne),var(--ftf-zloto));color:var(--ftf-granat)!important;font-size:15px;font-weight:600;letter-spacing:.2px;text-decoration:none;white-space:nowrap;box-shadow:0 2px 8px rgba(8,16,34,.25);transition:filter .15s,transform .15s}
.ftf-kons:hover{filter:brightness(1.06);transform:translateY(-1px)}
.ftf-kons--pc{margin-right:8px}
.ftf-kons--tel{display:none}
@media (max-width:1100px){.ftf-kons--pc{padding:0 14px;font-size:14.5px}}
@media (max-width:980px){
  .ftf-kons--pc{display:none}
  .ftf-nav.otwarte .ftf-kons--tel{display:flex;height:48px;margin:14px 20px 6px;font-size:16.5px}
}
/* Średnie ekrany (laptop) z przyciskiem konsultacji: pozycje menu w jednej linii, podpis pod nazwą w dwóch. */
.ftf-menu>li>a{white-space:nowrap}
@media (min-width:981px) and (max-width:1240px){
  .ftf-naglowek__in{gap:14px;padding:10px 16px}
  .ftf-marka{gap:10px}
  .ftf-marka__foto{width:50px;height:50px}
  .ftf-marka__tekst{padding-left:10px}
  .ftf-marka__nazwa{font-size:20px}
  .ftf-marka__podpis{font-size:13px;white-space:normal;max-width:200px}
  .ftf-menu{gap:0}
  .ftf-menu a{padding:8px 8px;font-size:14.5px}
  .ftf-menu a::after{left:8px;right:8px}
  .ftf-podmenu-btn{margin-left:-6px;width:18px}
  .ftf-kons--pc{padding:0 12px;font-size:14px;height:40px;margin-right:2px}
  .ftf-akcje .ftf-ikona{width:38px;height:38px}
}
@media (min-width:1121px) and (max-width:1240px){.ftf-marka__podpis{white-space:nowrap;max-width:none}}
/* Podpis w dwóch liniach (imię / doradca podatkowy nr), bez łamania w środku: 981 do 1120 px */
@media (min-width:981px) and (max-width:1120px){.ftf-marka__podpis{white-space:nowrap;max-width:none}.ftf-marka__podpis i{display:block;height:0;overflow:hidden;padding:0}}
@media (max-width:420px){.ftf-marka__nazwa{font-size:17px}.ftf-marka{gap:8px}.ftf-marka__tekst{padding-left:8px}}

/* Bardzo wąskie telefony: podpis może się zawinąć (nr i numer razem dzięki twardej spacji) */
@media (max-width:379px){.ftf-marka__podpis{white-space:normal}}
