@charset "UTF-8";

 :root{
      --bg:#0b111b; --layer:#0f1724; --layer2:#101826; --text:#e5ecff; --muted:#9fb0cc;
      --brand:#ef4444; --brand2:#f97316; --accent:#34d399; --stroke:#2a3240; --card:#0f1724;
      --barH: 76px; --hdrH: 64px;
    }
    *{box-sizing:border-box}
    html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;overflow-x:hidden}
    html{scroll-behavior:smooth}
    a{color:#ffd29d;text-decoration:none;word-break:break-word}
    a:hover{opacity:.92}
    img,svg,canvas,video{max-width:100%;height:auto;display:block}
    .wrap{max-width:1120px;width:100%;margin:0 auto;padding:0 20px}
    .row{display:flex;align-items:center;gap:14px;min-width:0}
    .space{flex:1;min-width:0}

    header{
      position:fixed; top:0; left:0; right:0; z-index:70;
      background:linear-gradient(180deg,rgba(11,17,27,.96),rgba(11,17,27,.92));
      -webkit-backdrop-filter:saturate(140%) blur(6px); backdrop-filter:saturate(140%) blur(6px);
      border-bottom:1px solid var(--stroke);
      transition: box-shadow .2s ease, transform .2s ease;
    }
    header.scrolled{ box-shadow:0 6px 24px rgba(0,0,0,.28) }
    main{ padding-top:var(--hdrH); padding-bottom:calc(var(--barH) + env(safe-area-inset-bottom)) }

    .logo.brand{display:flex;flex-direction:row;align-items:center;gap:12px;white-space:nowrap}
    .logo .mark{width:60px;height:60px}
    .brand-title{display:inline-block;font-weight:900;font-size:24px;letter-spacing:.2px}
    .brand-sub{font-size:12px}
    .t-grad{background:linear-gradient(90deg,#ef4444,#f97316);-webkit-background-clip:text;background-clip:text;color:transparent}

    nav a{color:var(--muted);font-weight:500}
    nav a:hover{color:#fff}

    /* link-ikona Facebooka – spójny ze stylem strony */
    .icon-link{
      display:inline-flex;align-items:center;gap:8px;
      padding:8px 10px;border-radius:10px;border:1px solid var(--stroke);
      background:linear-gradient(180deg,#0f1724,#0b111b);
      color:#cfe0ff; white-space:nowrap;
    }
    .icon-link:hover{background:#0e1624;color:#fff}
    .icon-link svg{width:18px;height:18px;flex:0 0 18px}

    .btn{
      display:inline-flex;align-items:center;gap:10px;
      background:linear-gradient(90deg,var(--brand),var(--brand2));color:#111;
      padding:12px 18px;border-radius:12px;font-weight:700;border:1px solid rgba(255,255,255,.06);
      box-shadow:0 8px 24px rgba(239,68,68,.25)
    }
    .btn.outline{background:transparent;color:#cfe0ff;border:1px solid var(--stroke)}
    .btn svg{width:18px;height:18px;flex:0 0 18px}

    .hero{padding:28px 0 10px;border-bottom:1px dashed var(--stroke)}
    .lead,.p-lead{color:var(--muted)}
    .section{padding:28px 0}
    h1{font-size:38px;margin:12px 0 8px}
    h2{font-size:24px;margin:0 0 8px}

    .card{background:var(--card);border:1px solid var(--stroke);border-radius:14px}
    .card .in{padding:18px}
    .muted{color:var(--muted)}
    .kpi{font-size:22px;font-weight:800;background:linear-gradient(90deg,#fff,#ffd29d);-webkit-background-clip:text;background-clip:text;color:transparent}
    .grid{display:grid;grid-gap:14px}
    .grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .grid.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
    .foot{padding:24px 0;border-top:1px solid var(--stroke); margin-top:20px; padding-bottom:calc(var(--barH) + 16px);}
    .mini-logo svg{height:18px}

    .nav-desktop{display:flex;gap:16px;align-items:center}
    .nav-desktop .btn{margin-left:6px}
    .burger{display:none;background:transparent;border:1px solid var(--stroke);border-radius:10px;padding:8px;cursor:pointer;position:relative;z-index:71}
    .burger span{display:block;width:22px;height:2px;background:#cbd5e1;margin:4px 0;border-radius:2px;transition:transform .2s ease, opacity .2s ease}
    .mobile-panel{display:block; position:fixed; top:var(--hdrH); right:14px; left:auto; width:260px; background:var(--bg); border:1px solid var(--stroke); border-radius:12px; box-shadow:0 16px 40px rgba(0,0,0,.45); z-index:60;}
    .mobile-panel[hidden]{display:none}
    .mobile-panel .col{display:flex;flex-direction:column;padding:10px}
    .mobile-panel a{display:block;padding:10px 12px;border-radius:8px;color:#cfe0ff}
    .mobile-panel a:hover{background:#0e1624}

    .sticky-cta{
      position:fixed; left:0; right:0; bottom:0; z-index:65;
      background:linear-gradient(180deg,rgba(16,24,38,.96),rgba(16,24,38,.98));
      border-top:1px solid var(--stroke);
      padding:10px 0 calc(10px + env(safe-area-inset-bottom));
      box-shadow:0 -10px 30px rgba(0,0,0,.35);
      -webkit-backdrop-filter:saturate(140%) blur(6px); backdrop-filter:saturate(140%) blur(6px);
      transform:translateY(100%); animation:ctaIn .6s .6s cubic-bezier(.2,.8,.2,1) forwards;
    }
    @keyframes ctaIn{to{transform:translateY(0)}}
    .cta{min-width:180px;text-align:center}
    .cta.outline{color:#cfe0ff}

    .to-top{
      position:fixed;right:14px;bottom:calc(var(--barH) + 14px);
      z-index:66;width:48px;height:48px;border-radius:999px;border:1px solid var(--stroke);
      background:linear-gradient(180deg,#111827,#0b1321);
      display:grid;place-items:center;box-shadow:0 10px 24px rgba(0,0,0,.35);
      opacity:0;pointer-events:none;transform:translateY(10px);
      transition:opacity .2s ease, transform .2s ease, background .2s ease;
    }
    .to-top svg{width:22px;height:22px;color:#e5ecff}
    .to-top.show{opacity:1;pointer-events:auto;transform:translateY(0)}
    .to-top:hover{background:#121a2a}

    header nav{display:flex;gap:14px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:0}
    header nav::-webkit-scrollbar{display:none}
    @media (max-width:1024px){.grid.g3{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media (max-width:960px){ .nav-desktop{display:none} .burger{display:inline-flex;flex-direction:column;align-items:center;justify-content:center} }
    @media (max-width:720px){
      .wrap{padding:0 14px}
      .grid.g3,.grid.g2{grid-template-columns:1fr}
      .row.stack{flex-direction:column;gap:10px}
      .hero h1{font-size:28px;line-height:1.2}
      .lead{font-size:16px;line-height:1.5}
      .btn{padding:10px 14px;font-size:14px}
      .card .in{padding:14px}
      h2{font-size:20px}
      .kpi{font-size:18px}
      .logo .mark{width:48px;height:48px}
      .brand-title{font-size:20px}
      .brand-sub{display:none}
      .sticky-cta .wrap{padding:0 14px}
      .cta{flex:1;min-width:0}
    }

    .burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
    .burger[aria-expanded="true"] span:nth-child(2){opacity:0}
    .burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

    /* Ikony (pojazdy) */
    .i{stroke:currentColor;fill:none;stroke-width:2}
    .icon-card{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--stroke);border-radius:12px;padding:12px}
    .grid.g4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:14px}
    @media (max-width:1024px){.grid.g4{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media (max-width:720px){.grid.g4{grid-template-columns:1fr}}
    .icon-card .i{width:28px;height:28px;flex:0 0 28px;max-width:none;min-width:28px}

    /* === HERO – tytuł === */
    .hero-title{
      font-weight: 900;
      font-size: clamp(26px, 2.6vw + 14px, 40px);
      line-height: 1.3;
      letter-spacing: .8px;
      margin: 20px 0 20px;
      white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    }
    .hero-title .accent{
      background:linear-gradient(90deg,var(--brand),var(--brand2));
      -webkit-background-clip:text;background-clip:text;color:transparent;
    }
    .hero-title .accent2{color:#ffd29d;font-weight:800}
    @media (max-width: 640px){
      .hero-title{
        font-size: clamp(20px, 5.6vw + 8px, 28px);
        white-space: normal; overflow:visible; text-overflow:clip; line-height:1.15;
      }
    }

    /* === BANER === */
    .hero-banner{ margin:6px 0 16px; }
    .hero-banner .frame{
      position:relative;border-radius:16px;overflow:hidden;
      background:
        radial-gradient(900px 400px at 70% 30%, rgba(239,68,68,.18), transparent 60%),
        radial-gradient(900px 480px at 10% 90%, rgba(249,115,22,.14), transparent 55%),
        linear-gradient(180deg,#0f1724,#0b111b);
      box-shadow:0 16px 44px rgba(0,0,0,.35);
    }
    .hero-banner img{width:100%;height:clamp(380px,42vw,560px);object-fit:cover;object-position:center 100%;filter:saturate(108%) contrast(106%)}
    @media (max-width:900px){.hero-banner img{object-position:center 95%;height:clamp(320px,54vw,520px)}}
    .hero-banner .frame::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(11,17,27,0) 72%, rgba(11,17,27,.66) 100%);pointer-events:none}

    /* carousel hidden… */
    #ecuCarousel{ display:none; }

    /* === STATS / LICZNIKI === */
    .stats .stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
    @media (max-width:1024px){.stats .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media (max-width:640px){.stats .stat-grid{grid-template-columns:1fr}}

    .stat-card{background:var(--card);border:1px solid var(--stroke);border-radius:14px;padding:18px;display:flex;align-items:center;gap:12px}
    .stat-ico{width:38px;height:38px;flex:0 0 38px;color:#ffd29d;opacity:.95}
    .stat-txt{display:flex;flex-direction:column}
    .stat-val{font-weight:900;font-size:clamp(24px,3.2vw,40px);line-height:1;letter-spacing:.4px;background:linear-gradient(90deg,#fff,#ffd29d);-webkit-background-clip:text;background-clip:text;color:transparent}
    .stat-lbl{color:var(--muted);margin-top:6px;font-weight:600;letter-spacing:.2px}

    @media (prefers-reduced-motion: reduce){ .stat-val{transition:none} }

    /* KPIs */
    .kpis { margin-top: 6px; }
    .kpi-card{background:var(--card);border:1px solid var(--stroke);border-radius:14px;padding:16px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
    .kpi-row{ display:flex; align-items:center; gap:12px; margin-bottom:6px; }
    .kpi-card .i{width:28px;height:28px;stroke:#ffd29d;fill:none;stroke-width:2;flex:0 0 28px}
    .kpi-value{font-weight:900;font-size:clamp(20px,2.2vw + 10px,32px);letter-spacing:.3px;line-height:1;background:linear-gradient(90deg,#fff,#ffd29d);-webkit-background-clip:text;background-clip:text;color:transparent}
    .kpi-label{ color: #fff; }
    .kpi-footnote{ font-size: 12px; opacity:.8 }
    .kpi-card{ transform: translateY(6px); opacity:.0; transition: transform .5s ease, opacity .5s ease; }
    .kpi-card.show{ transform: translateY(0); opacity:1; }

    /* SOS */
    .sos-alert{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
    .sos-alert .btn{ margin-left:auto; }
    @media (max-width:720px){ .sos-alert .btn{ width:100%; margin-left:0; } }
    .sos-ico svg{ width:48px; height:48px; }
    .sos-ico .body{ fill:none; stroke:#cfe0ff; stroke-width:2; }
    .sos-ico .arm, .sos-ico .hook{ fill:none; stroke:#cfe0ff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    .sos-ico .w{ fill:#0b111b; stroke:#cfe0ff; stroke-width:2; }
    .sos-ico .beacon{ fill:var(--brand2); opacity:.9; filter:drop-shadow(0 0 6px rgba(249,115,22,.8)); animation:sosBlink 1s infinite ease-in-out; }
    .sos-ico .cross-bg{ fill:#0b111b; stroke:#cfe0ff; stroke-width:2; }
    .sos-ico .cross{ stroke:#ffd29d; stroke-width:2; stroke-linecap:round; }
    @keyframes sosBlink{ 0%,100%{ opacity:.25; } 50%{ opacity:1; } }

/* ===== FULL-BLEED HERO (POPRAWIONE) ===== */
.hero-full{
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  isolation: isolate;
}

/* wysokość + lepszy crop */
.hero-full .media{
  position: relative;
  overflow: hidden;
  height: clamp(420px, 46vw, 760px);
  background: #0b111b;
}

.hero-full .media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ważne: ustawiamy obiektywnie „bezpieczny” kadr na desktop */
  object-position: center 62%;
  filter: saturate(108%) contrast(106%);
  transform: scale(1.02);
}

/* warstwy poprawiające czytelność i „premium look” */
.hero-full .media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    /* ciemniej u góry i u dołu, środek lżejszy */
    linear-gradient(180deg,
      rgba(11,17,27,.78) 0%,
      rgba(11,17,27,.28) 32%,
      rgba(11,17,27,.55) 68%,
      rgba(11,17,27,.88) 100%
    ),
    /* akcenty kolorystyczne spójne z brandem */
    radial-gradient(1100px 520px at 12% 95%, rgba(249,115,22,.18), transparent 60%),
    radial-gradient(900px 420px at 70% 20%, rgba(239,68,68,.16), transparent 55%);
  pointer-events:none;
}

/* overlay na dole */
.hero-full .overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding: clamp(14px, 3vw, 28px);
}

/* kontener treści */
.hero-full .title{
  width:100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* panel z tekstem (czytelność) */
.hero-full .hero-box{
  display: inline-block;
  max-width: min(860px, 100%);
  padding: clamp(12px, 1.8vw, 18px) clamp(14px, 2.2vw, 20px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(15,23,36,.82), rgba(11,17,27,.72));
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
}

/* h1 tylko typografia, bez dziwnych nowrap */
.hero-full h1{
  margin: 0;
  font-weight: 900;
  font-size: clamp(22px, 2.8vw + 14px, 42px);
  line-height: 1.12;
  letter-spacing: .2px;
}

.hero-full .accent{
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* mobile: inny kadr i większa czytelność */
@media (max-width: 720px){
  .hero-full .media{ height: clamp(320px, 62vw, 560px); }
  .hero-full .media img{ object-position: 40% 88%; }
  .hero-full .title{ padding: 0 14px; }
  .hero-full .hero-box{ border-radius: 14px; }
  .hero-full h1{
    font-size: clamp(20px, 5.6vw + 8px, 30px);
    line-height: 1.14;
  }
}
    /* --- O MNIE --- */
    .prose{max-width:68ch;line-height:1.7;font-size:16.5px}
    .p-lead{font-size:18px;color:var(--muted)}
    .about-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:18px}
    @media (max-width:900px){.about-grid{grid-template-columns:1fr}}
    .quick{background:var(--card);border:1px solid var(--stroke);border-radius:14px;padding:16px}
    .pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
    .pill{background:rgba(255,255,255,.06);border:1px solid var(--stroke);border-radius:999px;padding:6px 10px;font-size:13px}
    .checklist{list-style:none;margin:10px 0 0 0;padding:0}
    .checklist li{display:flex;gap:8px;margin:6px 0}
    .checklist svg{width:18px;height:18px;color:#34d399;flex:0 0 18px}
    details.subtle{border:1px dashed var(--stroke);border-radius:12px;padding:10px 12px;background:#0d1523}
    details.subtle summary{cursor:pointer;font-weight:600;color:#cfe0ff}
    details.subtle[open]{background:#0f1724}
/* === FORCE TOP NAV HORIZONTAL (override theme) === */
header .nav-desktop .menu{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
}

header .nav-desktop .menu li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

header .nav-desktop .menu a{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* mobile panel: vertical list */
#mobileNav .menu{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: stretch !important;
}

#mobileNav .menu li{ list-style:none !important; }
/* === MOBILE MENU: fix wrapping === */
#mobileNav .menu { width: 100%; }
#mobileNav .menu li { width: 100%; }

/* all links in mobile menu full width + one line */
#mobileNav .menu a{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  white-space: nowrap;
}

/* icon-link: don't break, keep icon + label in one row */
#mobileNav .icon-link{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  white-space: nowrap;
}

/* CTA button in mobile panel: full width */
#mobileNav .btn{
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

/* burger stays as 3 lines even when open */
.burger[aria-expanded="true"] span:nth-child(1),
.burger[aria-expanded="true"] span:nth-child(3){
  transform: none !important;
}
.burger[aria-expanded="true"] span:nth-child(2){
  opacity: 1 !important;
}
/* === BURGER: tylko podświetlenie, bez X === */

/* reset animacji */
.burger span{
  transform: none !important;
  opacity: 1 !important;
}

/* wygląd normalny */
.burger{
  transition: background .2s ease, box-shadow .2s ease;
}

/* podświetlenie po kliknięciu (menu otwarte) */
.burger[aria-expanded="true"]{
  background: linear-gradient(180deg, #0f1724, #0b111b);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 6px 20px rgba(0,0,0,.35);
}

/* delikatny efekt tap */
.burger:active{
  background: rgba(255,255,255,.06);
}
/* === MENU: tylko TEKSTOWE linki (bez FB i Zadzwoń) === */

.menu li:not(:has(.btn)):not(:has(.icon-link)) > a{
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s ease;
}

/* hover */
.menu li:not(:has(.btn)):not(:has(.icon-link)) > a:hover{
  color: #f97316;
}

/* active / aktualna sekcja */
.menu li.active > a{
  color: #f97316;
  font-weight: 700;
}
/* === ACTIVE menu item by URL (no TXP tags needed) === */
body:has(link[rel="canonical"][href*="/ecu"]) .menu a[data-sec="ecu"],
body:has(link[rel="canonical"][href*="/adblue-dpf-egr"]) .menu a[data-sec="adblue-dpf-egr"],
body:has(link[rel="canonical"][href*="/about"]) .menu a[data-sec="about"],
body:has(link[rel="canonical"][href*="/cennik"]) .menu a[data-sec="cennik"],
body:has(link[rel="canonical"][href*="/kontakt"]) .menu a[data-sec="kontakt"]{
  color: #f97316;
  font-weight: 700;
}

/* hover/tap tylko tekst */
.menu a[data-sec]:hover{ color:#f97316; }
.menu a[data-sec]:active{ color:#ef4444; }
/* menu: active item = tylko tekst */
.menu a[data-sec] { color: var(--muted); transition: color .2s ease; }
.menu a[data-sec]:hover { color: #f97316; }
.menu a[data-sec].is-active { color: #f97316; font-weight: 700; }


/* === FIX: stopka + sticky bar na mobile === */
footer,
.site-footer,
.foot {
  padding-bottom: calc(var(--barH) + 24px);
}

/* jeżeli stopka nie ma klasy */
body > footer {
  padding-bottom: calc(var(--barH) + 24px);
}

/* mobile-only bezpieczeństwo */
@media (max-width: 720px){
  footer,
  .site-footer,
  .foot {
    padding-bottom: calc(var(--barH) + 36px);
  }
}

/* === MOBILE: footer always above sticky bar === */
.foot{
  padding-bottom: calc(var(--barH) + 16px);
}

/* opcjonalnie: ostatnia sekcja nad stopką też ma oddech */
main > .section:last-of-type{
  padding-bottom: calc(var(--barH) + 12px);
}

/* iOS safe-area (żeby nie wchodziło pod home-bar) */
@media (max-width: 720px){
  .foot{
    padding-bottom: calc(var(--barH) + env(safe-area-inset-bottom) + 16px);
  }
}
/* === FOOTER: desktop centered === */
@media (min-width: 721px){
  .foot{
    text-align: center;
  }

  .foot .row{
    justify-content: center;
  }

  .foot .mini-logo{
    justify-content: center;
  }
}
/* CTA zawsze po prawej stronie menu */
.menu-cta{
  margin-left: auto;
  list-style: none;
}

.menu-cta-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* na mobile CTA w panelu jako full width (ładnie) */
@media (max-width: 960px){
  .menu-cta{
    margin-left: 0;
  }
  .menu-cta-wrap{
    flex-direction: column;
    align-items: stretch;
  }
  .menu-cta-wrap .icon-link,
  .menu-cta-wrap .btn{
    width: 100%;
    justify-content: center;
  }
}
/* === Blog prose polish === */
.blog-prose{
  max-width: 72ch;
  line-height: 1.75;
  font-size: 16.5px;
}

.blog-prose h2{
  margin: 22px 0 10px;
  font-size: 22px;
}

.blog-prose h3{
  margin: 18px 0 8px;
  font-size: 18px;
}

.blog-prose p{
  margin: 10px 0;
}

.blog-prose ul,
.blog-prose ol{
  margin: 10px 0 10px 20px;
}

.blog-prose li{
  margin: 6px 0;
}

.blog-prose a{
  color: #ffd29d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose a:hover{
  color: #f97316;
}

/* code blocks (jeśli kiedyś dodasz) */
.blog-prose pre,
.blog-prose code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.blog-prose pre{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  overflow:auto;
}
/* make article list items nicer */
.article-list .article{
  list-style: none;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 14px;
}

.article-list .article h4{
  margin: 0 0 6px;
}

.article-list .article .footnote{
  margin: 10px 0 0;
  opacity: .85;
}
/* blog: szersza kolumna treści */
.blog-prose{
  max-width: 100ch;   /* było 72ch */
}

/* Blog: karta pełnej szerokości jak inne karty */
.blog-prose{ 
  max-width: none;          /* ważne */
}

/* Ale tekst w akapitach niech będzie czytelny (jak Medium), wycentrowany */
.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4{
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

/* Listy zachowują wcięcie, ale nadal w środku */
.blog-prose ul,
.blog-prose ol{
  padding-left: 20px;
}

/* Obrazek ma być szeroki w karcie */
.blog-prose figure,
.blog-prose figure img{
  max-width: 100%;
}
.blog-prose figure{
  margin: 24px 0;
}
.blog-prose figure img{
  width: 100%;
  border-radius: 14px;
}
.blog-prose figcaption{
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.blog-prose img,
.blog-prose figure{
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: block;
}
.blog-prose figure{
  margin: 24px 0;
}

.blog-prose figcaption{
  max-width: 80ch;
  margin: 8px auto 0;
  font-size: 0.9rem;
  opacity: 0.75;
  text-align: center;
}
/* === Blog post: naturalny układ (tekst left, obraz full width) === */

/* 1) Cały blok treści NIE ma być centrowany tekstowo */
.card .in .blog-prose{
  text-align: left !important;
}

/* 2) Tekst w kolumnie (czytelnie) */
.card .in .blog-prose > p,
.card .in .blog-prose > ul,
.card .in .blog-prose > ol,
.card .in .blog-prose > h2,
.card .in .blog-prose > h3,
.card .in .blog-prose > h4{
  max-width: 78ch;
  margin-left: 0;          /* ważne: zamiast auto */
  margin-right: 0;
}

/* 3) Kolumnę tekstu ustawiamy “ładnie” – od lewej, ale z ograniczeniem */
.card .in .blog-prose{
  max-width: 78ch;
  margin-left: 0;          /* zaczyna się od lewej krawędzi karty */
  margin-right: auto;
}

/* 4) Obrazek na pełną szerokość karty */
.card .in figure{
  width: 100%;
  max-width: none;
  margin: 18px 0;
}

.card .in figure img{
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* 5) Podpis pod obrazkiem normalnie, nie “w środku plakatu” */
.card .in figure figcaption{
  max-width: 78ch;
  margin: 8px 0 0;
  text-align: left;
  opacity: .75;
}

/* === BLOG POST LAYOUT (TEXT + FULL WIDTH IMAGE) === */

/* Karta posta */
.card {
  padding: 22px;
}

/* GŁÓWNY CONTENT */
.blog-content {
  display: block;
}

/* ===================== */
/* TEKST – kolumna */
.blog-content > p,
.blog-content > ul,
.blog-content > ol,
.blog-content > h2,
.blog-content > h3,
.blog-content > h4 {
  max-width: 78ch;
  margin-left: 0;
  margin-right: auto;
}

/* ===================== */
/* OBRAZEK – pełna szerokość RAMKI */
.blog-content > figure {
  width: 100%;
  max-width: none;
  margin: 22px 0;
}

/* Obrazek */
.blog-content > figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* Podpis pod obrazkiem */
.blog-content > figure figcaption {
  max-width: 78ch;
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.75;
}
/* === BLOG: TYTUŁ ARTYKUŁU – LEWA KRAWĘDŹ === */
.card[itemtype*="BlogPosting"] h2 {
  text-align: left;
  margin-left: 0;
}
article[itemtype*="BlogPosting"] h2 {
  text-align: left;
}

/* === BLOG LIST: usuń wcięcie listy i wyrównaj do lewej === */
.article-list{
  list-style: none !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;                 /* to usuwa to wcięcie */
}

.article-list > li.article{
  list-style: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;                 /* bez dodatkowego wcięcia */
  text-align: left !important;
}

/* tytuł wpisu też twardo do lewej */
.article-list > li.article h4{
  margin: 0 0 6px !important;
  text-align: left !important;
}

/* link tytułu: bez centrowania, bez dziwnych paddingów */
.article-list > li.article h4 a{
  display: inline !important;
  text-align: left !important;
}
/* === Blog list item: padding inside the box === */
.article-list{
  padding: 0 !important;
  margin: 14px 0 0 !important;
  list-style: none !important;
}

.article-list > li.article{
  padding: 14px 16px !important;     /* <- TO jest oddech od ramki */
  margin: 0 0 12px !important;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 14px;
  text-align: left !important;
}

.article-list > li.article h4{
  margin: 0 0 6px !important;
}

.article-list > li.article .footnote{
  margin: 8px 0 0 !important;
  opacity: .85;
}
/* Złoty tytuł w kafelku */
.title-gold {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f5c84c; /* złoty */
  margin-bottom: 8px;
  letter-spacing: .2px;
}

/* Accordion – bardziej przestrzenny */
.acc {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.035);
}

/* Summary jak nagłówek-klikalny */
.acc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: rgba(255,255,255,.92);
  padding: 6px 0;
  line-height: 1.35;
}

/* Ukryj default marker */
.acc summary::-webkit-details-marker {
  display: none;
}

/* Plus/minus po prawej */
.acc summary:after {
  content: "＋";
  float: right;
  font-weight: 800;
  opacity: .75;
}

.acc[open] summary:after {
  content: "－";
}

/* Tekst w środku – więcej oddechu */
.acc .muted {
  margin-top: 10px;
  line-height: 1.55;
  opacity: .85;
  font-size: 0.95rem;
#sos .sos-ico { color: #f5c84c; }

}
#sos .sos-ico {
  background: rgba(245,200,76,.10);
  border: 1px solid rgba(245,200,76,.30);
}
.logo-img {
  height: 44px;   /* dopasuj */
  width: auto;
  display: block;
}
#topBar .row {
  display: flex;
  align-items: center;     /* wszystko w jednej osi */
  justify-content: space-between;
  flex-wrap: nowrap;       /* NIE łam na nową linię */
}

.logo.brand {
  flex: 0 0 auto;          /* logo nie rozpycha się */
}

.space {
  flex: 1;                 /* robi odstęp między logo a menu */
}

.nav-desktop {
  flex: 0 0 auto;
}

