/*
Theme Name: FK Tech V5
Author: Wrumer
Version: 5.1.0
Description: Glass UI + baner w headerze + menu WP + home 80/20 sticky + mini mapa.
*/

/* =========================================================
   1) ROOT
========================================================= */
:root{
  --bg:#050608;
  --text:#e5e7eb;
  --muted:#9ca3af;

  --accent:#f5c400;   /* złoty */
  --accent2:#23b4b7;  /* turkus */

  --radius:18px;

  --glass-bg: rgba(10,12,16,.40);
  --glass-bg-strong: rgba(15,20,28,.60);
  --glass-border: rgba(255,255,255,.18);
  --glass-shadow: 0 10px 30px rgba(0,0,0,.35);
  --glass-blur: 6px;

  --container:1080px;

  /* wysokość banera (desktop) */
  --banner-h: clamp(320px, 20vw, 420px);
}

/* =========================================================
   2) RESET / baza
========================================================= */
*{ box-sizing:border-box; }

html, body{ height:100%; }

html{ margin-top:0 !important; }

body{
  margin:0;
  padding:0;
  color:var(--text);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height:1.6;

  background-color:var(--bg);
  background-image:url('https://fabryka-kluczy.pl/wp-content/uploads/2026/02/ChatGPT-Image-7-lut-2026-11_14_30.png');
  background-repeat:repeat;
  background-size:600px 600px;
  background-attachment:fixed;
}

.site{ margin:0 !important; padding:0 !important; }

img{ max-width:100%; height:auto; display:block; }

a{ color:inherit; text-decoration:none; }

button{ font:inherit; }

/* =========================================================
   3) LAYOUT
========================================================= */
.container{
  width:min(var(--container), 94vw);
  margin:0 auto;
}

.main{ padding:14px 0 46px; }

/* =========================================================
   4) HEADER (baner)
========================================================= */
.site-header{
  position:relative;
  overflow:hidden;
  isolation:isolate;

  height:var(--banner-h);
  background:rgba(0,0,0,.05);
  border-bottom:1px solid rgba(255,255,255,.10);
}

/* overlay */
.site-header::after{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:0;
  pointer-events:none;
}

/* BANER */
.site-header::before{
  content:'';
  position:absolute;
  inset:0;

  background-image:url('https://fabryka-kluczy.pl/wp-content/uploads/2026/02/baner-www-scaled-1.png');
  background-repeat:no-repeat;

  /* pełna wysokość, docina boki */
  background-size:auto 100%;
  background-position:center;

  z-index:1;
  pointer-events:none;
}

/* zawartość w headerze (jeśli istnieje) */
.header-inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0;
}

/* Logo/tytuł OFF (bo w banerze) */
.site-branding,
.custom-logo-link,
.custom-logo,
.site-title,
.site-description{
  display:none !important;
}

/* =========================================================
   5) MENU (desktop)
   - pasek ma szerokość jak container
========================================================= */
.nav-bar{
  position:relative;
  z-index:2;

  width:min(var(--container), 94vw);
  margin:10px auto 0;

  padding:10px 0 10px;
}

.nav-bar .menu{
  list-style:none;
  margin:0;
  padding:8px 10px;

  display:flex;
  justify-content:center;
  gap:12px;

  border-radius:14px;
  background:rgba(0,0,0,.26);
  border:1px solid rgba(255,255,255,.14);

  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.nav-bar .menu a{
  display:block;
  padding:11px 18px;
  border-radius:14px;

  font-size:16px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;

  background:rgba(0,0,0,.35);
  border:1px solid rgba(35,180,183,.45);
  color:var(--text);

  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

/* Drawer: menu zawsze w jednej kolumnie (bez losowego zawijania) */
#nav-drawer .menu{
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  gap:10px;
  padding:10px;
}

#nav-drawer .menu > li{
  width:100%;
}

#nav-drawer .menu a{
  display:block;
  width:100%;
  text-align:center;
}

.nav-bar .menu a:hover{
  transform:translateY(-1px);
  background:rgba(35,180,183,.15);
  border-color:rgba(35,180,183,.80);
  box-shadow:
    0 0 0 1px rgba(35,180,183,.35),
    0 6px 18px rgba(35,180,183,.25);
}

.nav-bar .menu .current-menu-item > a{
  background:rgba(35,180,183,.22);
  border-color:rgba(35,180,183,1);
}

/* =========================================================
   5b) MENU (wspólne: ukrywanie elementów mobilnych poza breakpointem)
   - bezpieczeństwo: hamburger i drawer nie pojawiają się na desktop
========================================================= */
.nav-toggle{ display:none; }
#nav-drawer{ display:none; }
#nav-drawer[hidden]{ display:none !important; }

/* =========================================================
   6) GLASS (główny content)
========================================================= */
.entry-content{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--glass-shadow);

  backdrop-filter:blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(120%);

  display:flex;
  flex-direction:column;
  gap:24px;

  padding-top:0;
  padding-bottom:18px;
}

.entry-content > *{ margin:0 !important; }

/* =========================================================
   7) TYPOGRAFIA
========================================================= */
.entry-content h1{
  font-size:clamp(30px, 3.6vw, 42px);
  text-transform:uppercase;
}

.entry-content h2{
  font-size:clamp(20px, 2.2vw, 26px);
  text-transform:uppercase;
}

.entry-content p{ color:var(--muted); }

/* =========================================================
   8) WP: BUTTONS + KAFLE
========================================================= */
.wp-block-buttons{ gap:12px; }

.wp-block-button__link{
  padding:12px 18px !important;
  border-radius:14px !important;
  font-weight:900 !important;
  background:linear-gradient(135deg, var(--accent), #ffd86a) !important;
  color:#111 !important;
  border:none !important;
}

.wp-block-columns{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.wp-block-column{
  background:var(--glass-bg-strong);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  padding:18px;

  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);

  min-width:0;
}

/* =========================================================
   9) HOME: 80/20 + STICKY (fix: gap nie psuje szerokości)
========================================================= */
.home .entry-content>.wp-block-columns:first-of-type {
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  /* zostaje jak było globalnie */
}

/* zamiast width:80% (bo +gap robi "dziurę") */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:first-child {
  flex: 0 0 calc(80% - 8px);
  min-width: 0;
}

/* zamiast width:20% */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child {
  flex: 0 0 calc(20% - 8px);
  min-width: 0;

  position: sticky;
  top: 24px;

  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* mobile zachowujemy jak było, tylko bez "width:100% !important" chaosu */
@media (max-width:1050px) {
  .home .entry-content>.wp-block-columns:first-of-type {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .home .entry-content>.wp-block-columns:first-of-type>.wp-block-column {
    flex: 0 0 100%;
    width: 100%;
    position: static;
  }
}

/* =========================================================
  10) MAPA
========================================================= */
.map-section{
  display:flex;
  flex-direction:column;
  gap:10px;

  position:relative;
  padding-top:18px;
  margin-top:18px;
  padding-bottom:16px;
}

.map-section::before{
  content:"";
  position:absolute;
  top:0;
  left:10%;
  right:10%;
  height:1px;
  background:rgba(255,255,255,.12);
  pointer-events:none;
}

.map-section::after{
  content:"";
  display:block;
  width:60%;
  height:1px;
  margin:16px auto 0;
  background:rgba(255,255,255,.18);
}

.map-section h2{
  margin-top:0 !important;
  margin-bottom:4px;
  text-align:center;
  letter-spacing:.8px;
}

.map-mini{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.15);
  aspect-ratio:4/3;
}

.map-mini .map-iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.map-link{
  font-size:14px;
  text-align:center;
  margin-top:10px !important;
}

.map-link a{
  display:inline-block;
  color:var(--accent);
  font-weight:800;
}

/* =========================================================
  11) FAQ TICKER
========================================================= */
.faq-ticker{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(15,20,28,.60);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  position:relative;
  overflow:hidden;

  max-width:680px;
  margin-left:auto;
  margin-right:auto;
}

.faq-ticker__head{
  text-align:center;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.8px;
  margin:0 0 10px;
  color:#fff;

  position:relative;
  padding-bottom:10px;
}

.faq-ticker__head::after{
  content:"";
  display:block;
  width:60%;
  height:1px;
  margin:10px auto 0;
  background:rgba(255,255,255,.18);
}

.faq-ticker__viewport{
  position:relative;
  overflow:hidden;
  height:auto;
  transition:height .25s ease;
  padding:0 60px;
}

.faq-ticker__slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:translateX(24px);
  transition:transform .35s ease, opacity .35s ease;
  will-change:transform, opacity;
  text-align:center;
}

.faq-ticker__slide.is-active{
  opacity:1;
  transform:translateX(0);
}

.faq-q{
  font-weight:900;
  color:#fff;
  margin:0 0 8px;
  text-align:center;
}

.faq-a{
  color:rgba(255,255,255,.88);
  line-height:1.65;
  margin:0;
  text-align:center;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}

.faq-ticker__nav{
  position:absolute;
  top:14px;
  left:0;
  right:0;
  height:40px;
  pointer-events:none;
}

.faq-btn{
  pointer-events:auto;
  position:absolute;
  top:0;

  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(35,180,183,.45);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-weight:900;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  transition:box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.faq-btn:hover{
  border-color:rgba(35,180,183,.65);
  box-shadow:0 0 10px rgba(35,180,183,.18);
}

.faq-btn[data-faq-prev]{ left:10px; }
.faq-btn[data-faq-next]{ right:10px; }

/* =========================================================
  12) PORADNIKI
========================================================= */
.fk-poradniki{ margin-top:26px; }

.fk-poradniki__title{
  text-align:center;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.8px;
  color:#fff;
  margin-bottom:10px;
  position:relative;
}

.fk-poradniki__title::after{
  content:"";
  display:block;
  width:70%;
  height:1px;
  margin:10px auto 0;
  background:rgba(255,255,255,.18);
}

.fk-poradniki__list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fk-poradniki__item{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(35,180,183,.22);
  text-decoration:none;
  color:rgba(255,255,255,.88);
}

.fk-poradniki__item:hover{
  border-color:rgba(35,180,183,.60);
  background:rgba(35,180,183,.10);
}

.fk-poradniki__item strong{
  display:block;
  color:#fff;
  margin-bottom:4px;
}

.fk-poradniki__item span{
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.75);
}

/* =========================================================
  13) Footer
========================================================= */
.site-footer{
  margin-top:32px;
  padding:24px 0;
  border-top:1px solid rgba(255,255,255,.10);
  font-size:14px;
  color:var(--muted);
}

/* =========================================================
  FIX: overflow
========================================================= */
.entry-content,
.entry-content *{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content figure{ max-width:100%; }

.entry-content table{
  width:100%;
  display:block;
  overflow-x:auto;
}

/* =========================================================
   USŁUGI (CPT)
========================================================= */
.fk-uslugi-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin:0;
  padding:0;
}

@media (max-width:720px){
  .fk-uslugi-list{ grid-template-columns:1fr; }
}

.fk-usluga-link{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  padding:16px 18px;
  border-radius:16px;

  background:var(--glass-bg-strong);
  border:1px solid rgba(255,255,255,.14);

  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-size:.95rem;
  line-height:1.3;

  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.fk-usluga-link:hover{
  transform:translateY(-1px);
  background:rgba(35,180,183,.10);
  border-color:rgba(35,180,183,.70);
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.fk-usluga-link{ position:relative; padding-left:44px; }

.fk-usluga-link::before{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  font-size:18px;
  opacity:.9;
}

.fk-uslugi-list--uslugi .fk-usluga-link::before{ content:"🔧"; }
.fk-uslugi-list--sprzedaz .fk-usluga-link::before{ content:"🛒"; }


/* =========================================================
   SINGLE USŁUGA – przycisk "Wróć do usług"
========================================================= */
.fk-usluga-backbar{
  max-width: var(--container);
  margin: 14px auto 24px;
  padding: 0 3vw;
  position: relative;
  z-index: 0;
}
@media (min-width: 720px){
  .fk-usluga-backbar{ padding: 0; }
}

.fk-back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--glass-shadow);
}
.fk-back-link:hover{
  background: rgba(35,180,183,.10);
  border-color: rgba(35,180,183,.30);
}

.fk-usluga-hero{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
}

.fk-usluga-hero img{
  width:100%;
  height:auto;
  display:block;
}

/* =========================================================
  MOBILE (baner + menu + hamburger + drawer)
========================================================= */
@media (max-width:1050px){
  /* mobile banner height spójna z pozycją przycisku */
  :root{
    --banner-h: clamp(180px, 34vw, 240px);
  }

  /* baner: “za szeroki” ogarniamy przez lekkie powiększenie */
  header.site-header{
    height: var(--banner-h);
    overflow:hidden;
  }

  header.site-header::before{
    background-size: 115% 100%;
    background-position: 50% 50%;
  }

  header.site-header::after{
    background: rgba(0,0,0,0);
  }

  /* menu desktop ukryte, pokazujemy hamburger */
  .nav-primary{ display:none; }
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    position:absolute;
    right:14px;
    bottom:14px;

    z-index:40;

    width:46px;
    height:46px;
    border-radius:14px;

    border:1px solid rgba(35,180,183,.55);
    background:rgba(0,0,0,.45);
    color:#fff;
    font-weight:900;
    font-size:22px;
    cursor:pointer;

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }


  /* drawer pod przyciskiem, rośnie w dół */
  #nav-drawer{
    display:block;
    position:fixed;
    right:14px;
    left:auto;
    top: calc(var(--banner-h) + 6px);
    bottom:auto;

    width:min(300px, calc(100vw - 28px));
    max-height: calc(100vh - var(--banner-h) - 20px);
    overflow-y:auto;

    border-radius:18px;
    padding:10px;

    background:rgba(0,0,0,.65);
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 18px 45px rgba(0,0,0,.55);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    z-index:60;
  }

  #nav-drawer[hidden]{ display:none !important; }

  /* inne mobile układy */
  .nav-bar{ margin-top:-10px; }

  .nav-bar .menu{
    gap:10px;
    padding:10px;
    flex-wrap:wrap;
  }

  .nav-bar .menu a{
    padding:12px 16px;
    font-size:16px;
  }

  .home .entry-content > .wp-block-columns:first-of-type{ flex-direction:column; }

  .home .entry-content > .wp-block-columns:first-of-type > .wp-block-column{
    width:100% !important;
    position:static;
  }

  .map-mini{ aspect-ratio:16/9; }
}

@media (max-width:700px){
  .faq-ticker{ padding:14px; }
  .faq-ticker__viewport{ padding:0 52px; }
  .faq-btn{ width:38px; height:38px; }
}

/* =========================================================
   MICROANIMATIONS (bez ruszania layoutu)
========================================================= */

/* Globalnie: płynne przejścia tylko tam, gdzie ma sens */
a, button, .btn,
.wp-block-button__link,
input[type="submit"], input[type="button"], input[type="reset"]{
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
  will-change: transform;
}

/* Klik (lekki "press") */
button:active, .btn:active,
.wp-block-button__link:active,
.nav-toggle:active{
  transform: translateY(1px) scale(.985);
}

/* Karty / panele (hover premium, bez przesuwania layoutu) */
.glass, .card, .panel,
.fk-card, .fk-panel{
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease, background-color .16s ease;
}
.glass:hover, .card:hover, .panel:hover,
.fk-card:hover, .fk-panel:hover{
  transform: translateY(-1px);
}

/* Menu desktop: delikatny glow na hover (bez zmian rozmiaru) */
.nav-bar .menu a{
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease;
}
.nav-bar .menu a:hover{
  transform: translateY(-1px);
}

/* Drawer: linki też "miękkie" */
#nav-drawer .menu a{
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease;
}
#nav-drawer .menu a:hover{
  transform: translateY(-1px);
}

/* Hamburger: miękka reakcja na hover */
.nav-toggle{
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease, opacity .14s ease;
}
.nav-toggle:hover{
  transform: translateY(-1px);
}

/* Drawer: animacja wejścia (bez grzebania w hidden/display) */
@keyframes fkDrawerIn{
  from{ opacity: 0; transform: translateY(-6px); }
  to  { opacity: 1; transform: translateY(0); }
}
#nav-drawer:not([hidden]){
  animation: fkDrawerIn .16s ease-out;
}

/* Preferencje systemowe: redukcja animacji */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* =========================================================
   HOME – CTA "Zadzwoń" + "Napisz" (prawy panel nad lokalizacją)
========================================================= */

/* ograniczamy się do prawej kolumny 80/20 na home */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-button__link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 52px;
  border-radius: 16px !important;

  /* lekki „premium” zamiast płaskiego złota */
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(255, 255, 255, .10) inset;
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* ikony rozróżniające CTA */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child a.wp-block-button__link[href^="tel:"]::before {
  content: "📞";
  font-size: 18px;
  line-height: 1;
}

.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child a.wp-block-button__link[href^="mailto:"]::before {
  content: "✉️";
  font-size: 18px;
  line-height: 1;
}

/* hover mocniej, ale bez zmiany rozmiaru (bez skoków) */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .14) inset;
}

/* focus (klawiatura / accessibility) */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-button__link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(35, 180, 183, .35),
    0 14px 28px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .14) inset;
}

/* CTA – niezawodny klik i estetyka (mobile/desktop) */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-button__link {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  /* szybszy, pewniejszy tap */
}

/* Na urządzeniach dotykowych nie rób hoverów (żeby nie było „klejenia” stanu) */
@media (hover: none) {
  .home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-button__link:hover {
    transform: none;
  }
}

/* Mobile: trochę większy „tap target” i czytelniejszy tekst */
@media (max-width: 980px) {
  .home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-button__link {
    min-height: 56px;
    font-size: 16px;
  }
}

/* =========================================================
   HOME – prawy panel: dopracowanie odstępów + mapa
========================================================= */

/* kontener prawej kolumny na home */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child {
  text-align: center;
}

/* CTA + dane kontaktowe: równe odstępy */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-button {
  margin: 0 0 10px;
}

.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child p {
  margin: 6px 0;
  color: var(--muted);
}

/* linia-separator: więcej oddechu */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child hr {
  margin: 14px 0 18px;
  opacity: .35;
}

/* nagłówek LOKALIZACJA: ciaśniej do góry, równo do mapy */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child h2,
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child h3 {
  margin: 0 0 12px;
}

/* mapa: pełny radius + brak "wychodzenia" rogów */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child iframe {
  width: 100%;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

/* jeśli iframe siedzi w wrapperze – też go zaokrąglij */
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-embed,
.home .entry-content>.wp-block-columns:first-of-type>.wp-block-column:last-child .wp-block-embed__wrapper {
  border-radius: 18px;
  overflow: hidden;
}

/* HOME – prawy panel: CTA + lokalizacja (polish) */
.home .wp-block-columns .wp-block-column:last-child {
  text-align: center;
}

.home .wp-block-columns .wp-block-column:last-child .wp-block-button {
  margin: 0 0 10px !important;
}

.home .wp-block-columns .wp-block-column:last-child p {
  margin: 6px 0 !important;
  color: var(--muted);
}

.home .wp-block-columns .wp-block-column:last-child hr {
  margin: 14px 0 18px !important;
  opacity: .35;
}

.home .wp-block-columns .wp-block-column:last-child h2,
.home .wp-block-columns .wp-block-column:last-child h3 {
  margin: 0 0 12px !important;
}

/* mapa – równe rogi */
.home .wp-block-columns .wp-block-column:last-child iframe,
.home .wp-block-columns .wp-block-column:last-child .wp-block-embed,
.home .wp-block-columns .wp-block-column:last-child .wp-block-embed__wrapper {
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Google reviews placeholder */
.fk-google-placeholder {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
  box-shadow: var(--glass-shadow);
}

.fk-google-placeholder a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  transition: transform .15s ease, opacity .15s ease;
}

.fk-google-placeholder a:hover {
  transform: translateY(-1px);
  opacity: 1;
}

/* Rotator: "Z punktu widzenia" */
/* Z punktu widzenia:
   - rotate="0" => pokazuj wszystkie (3 szt.)
   - rotate="1" => rotator pokazuje 1 szt. naraz
*/
.fk-latest-plain__item {
    display: block;
    opacity: 1;
    transform: none;
}

/* TYLKO gdy rotacja jest włączona */
.fk-latest-plain[data-rotate="1"] .fk-latest-plain__item {
    display: none;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
}

.fk-latest-plain[data-rotate="1"] .fk-latest-plain__item.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
}
.fk-latest-plain__item-title{
  display:block;
  font-weight:800;
  text-decoration:none;
  margin-bottom:8px;
}
.fk-latest-plain__item-excerpt{
  margin: 0 0 10px;
}

/* =========================================================
   ARCHIWA KATEGORII (Poradniki / Z punktu widzenia)
========================================================= */
.fk-archive-header{
  text-align:center;
  margin-bottom:14px;
}

.fk-archive-title{
  margin:0 !important;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.8px;
}

.fk-archive-desc{
  margin-top:10px !important;
  color:rgba(255,255,255,.72);
}

.fk-archive-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.fk-archive-item{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(35,180,183,.22);
  text-decoration:none;
  color:rgba(255,255,255,.90);
}

.fk-archive-item:hover{
  border-color:rgba(35,180,183,.60);
  background:rgba(35,180,183,.10);
}

.fk-archive-item__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.fk-archive-item__title{
  font-weight:900;
}

.fk-archive-meta{
  font-size:12px;
  color:rgba(255,255,255,.60);
  white-space:nowrap;
  margin-top:2px;
}

.fk-archive-item__excerpt{
  margin-top:6px;
  color:rgba(255,255,255,.78);
  line-height:1.35;
  font-size:14px;
}

.fk-archive-item__excerpt{
  margin-top:6px;
  color:rgba(255,255,255,.78);
  line-height:1.45;
}

.fk-archive-readmore{
  display:inline-block;
  margin-top:10px;
  color:var(--accent);
  font-weight:800;
}

.fk-archive-pagination{
  margin-top:16px;
  display:flex;
  justify-content:center;
}

.fk-archive-pagination .nav-links{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:center;
}

.fk-archive-pagination .page-numbers{
  display:inline-flex;
  min-width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
  text-decoration:none;
  color:rgba(255,255,255,.88);
  padding:0 10px;
}

.fk-archive-pagination .page-numbers.current{
  border-color:rgba(35,180,183,.55);
  background:rgba(35,180,183,.12);
}

/* =========================================================
   POST / PAGE – czytelność treści (premium)
========================================================= */

/* ogranicz szerokość samej treści, ale nie całego kontenera */
/* Ogranicz szerokość tylko tekstu (nie bloków layoutu typu columns) */
.entry-content>p,
.entry-content>h1,
.entry-content>h2,
.entry-content>h3,
.entry-content>h4,
.entry-content>ul,
.entry-content>ol,
.entry-content>blockquote,
.entry-content>table,
.entry-content>pre,
.entry-content>figure {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
/* PODSTRONY: nie zwężaj tytułu/leadów/sekcji strony (żeby nie było "dziury") */
.page .entry-content>h1,
.page .entry-content>h2,
.page .entry-content>h3,
.page .entry-content>h4 {
  max-width: none;
}
/* Bloki Gutenberga na stronach: nie ograniczaj wrapperów layoutu */
.page .entry-content>.wp-block-group,
.page .entry-content>.wp-block-cover,
.page .entry-content>.wp-block-columns {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* HOME: nic nie zmieniamy (zostaje jak jest) */
.home .entry-content>* {
  max-width: none;
}

/* rytm i typografia */
.entry-content{
  line-height: 1.65;
  font-size: 16px;
  color: rgba(255,255,255,.88);
}

.entry-content p{
  margin: 0 0 14px;
  color: rgba(255,255,255,.86);
}

/* nagłówki – wyraźne, ale bez przesady */
.entry-content h1,
.entry-content h2,
.entry-content h3{
  line-height: 1.2;
  letter-spacing: .2px;
  margin: 22px auto 10px;
  max-width: 860px;
}

.entry-content h1{ font-size: 34px; }
.entry-content h2{ font-size: 26px; }
.entry-content h3{ font-size: 20px; }

/* linki */
.entry-content a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,196,0,.35);
}
.entry-content a:hover{
  border-bottom-color: rgba(245,196,0,.85);
}

/* listy */
.entry-content ul,
.entry-content ol{
  margin: 0 auto 14px;
  padding-left: 22px;
  max-width: 860px;
}
.entry-content li{
  margin: 6px 0;
}

/* obrazki i wideo */
.entry-content img,
.entry-content video,
.entry-content iframe{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.wp-block-image,
.wp-block-gallery{
  margin: 16px auto;
  max-width: 860px;
}

/* cytaty */
.entry-content blockquote{
  margin: 16px auto;
  max-width: 860px;
  padding: 12px 14px;
  border-left: 3px solid rgba(35,180,183,.65);
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  color: rgba(255,255,255,.82);
}

/* separatory */
.entry-content hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 18px auto;
  max-width: 860px;
}

/* tabelki */
.entry-content table{
  width: 100%;
  max-width: 860px;
  margin: 16px auto;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}
.entry-content th,
.entry-content td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.entry-content th{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

/* mały detal: “Czytaj więcej” i podobne linki w treści */
.entry-content .fk-read-more{
  border-bottom: none;
}

/* delikatne separatory między 3 wpisami */
.fk-latest-plain__item{
  padding: 10px 0;
}

.fk-latest-plain__item:last-child{
  border-bottom: 0;
}

/* =========================================================
   HOME – tytuły sekcji + separatory
========================================================= */

/* Z punktu widzenia: tytuł jak Poradniki */
.fk-latest-plain__title{
  text-align:center;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.8px;
  margin: 18px 0 10px;
}

/* separator pod tytułem (w obu sekcjach) */
.fk-poradniki__title,
.fk-latest-plain__title{
  position: relative;
  padding-bottom: 12px;
}

.fk-poradniki__title::after,
.fk-latest-plain__title::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width: 70%;
  max-width: 520px;
  height: 1px;
  background: rgba(255,255,255,.14);
}

/* =========================================================
   PORADNIKI – rotator (display none / block)
========================================================= */
.fk-poradnik-slide{
  display:none;
}

.fk-poradnik-slide.is-active{
  display:block;
}

/* =========================================================
   ARCHIWA – nagłówek (centrowanie + fix ucinania)
========================================================= */
.entry-content.fk-archive{
  padding-top: 18px;
}

.fk-archive-header{
  text-align: center;
}

.fk-archive-title{
  margin: 0 !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.2;
  padding-top: 6px;
  padding-bottom: 14px;
  color: #fff;
  position: relative;
  overflow: visible;
}

.fk-archive-title::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:70%;
  max-width:520px;
  height:1px;
  background:rgba(255,255,255,.14);
}

/* ARCHIWA – nagłówek ma być centrowany względem CAŁEGO boxa */
.entry-content.fk-archive .fk-archive-header{
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
}

.entry-content.fk-archive .fk-archive-title{
  max-width: none !important;
  width: 100%;
  text-align: center;
}

/* =========================
   404
========================= */
.fk-404{
  text-align:center;
  padding:60px 20px;
}

.fk-404-title{
  font-size:72px;
  font-weight:900;
  margin-bottom:10px;
  color:var(--accent);
}

.fk-404-sub{
  font-size:22px;
  font-weight:700;
  margin-bottom:16px;
}

.fk-404-desc{
  color:var(--muted);
  margin-bottom:30px;
}

.fk-404-btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:14px;
  background:rgba(35,180,183,.15);
  border:1px solid rgba(35,180,183,.55);
  font-weight:800;
  text-transform:uppercase;
}

.fk-404-btn:hover{
  background:rgba(35,180,183,.25);
}

/* 404 – pełne wyśrodkowanie */
.fk-404{
  max-width: 720px;
  margin: 0 auto;
}

.fk-404 .fk-404-title,
.fk-404 .fk-404-sub,
.fk-404 .fk-404-desc,
.fk-404 .fk-404-actions{
  text-align:center;
}

/* usuń ograniczenie szerokości z globalnej reguły */
.fk-404 > *{
  max-width: none !important;
}

/* FIX "za dużo miejsca z prawej" na podstronach (Kontakt / O nas / wpisy)
   - wyłączamy zwężanie max-width 860px tylko poza stroną główną
*/
body:not(.home) .entry-content>* {
  max-width: unset !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}