.elementor-kit-9{--e-global-color-primary:#0054FF;--e-global-color-secondary:#111111;--e-global-color-text:#CCCCCC;--e-global-color-accent:#A9B2C2;--e-global-typography-primary-font-family:"Montserrat";--e-global-typography-primary-font-size:16px;--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Montserrat";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Montserrat";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Montserrat";--e-global-typography-accent-font-weight:500;background-color:#111111;}.elementor-kit-9 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS */@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600&display=swap');

/* =========================================================================
   SolisByte — blog
   Wklej w: Elementor → Ustawienia strony (Site Settings) → Własny CSS.
   Działa z szablonami Theme Buildera: Archiwum, Element pętli (karta) i Pojedynczy wpis.
   Każdy element dostaje klasę w Elementorze: Zaawansowane → Klasy CSS.
   ========================================================================= */

:root {
  --sb-blue: #0054ff;
  --sb-blue-hover: #0047d9;
  --sb-bg: #111111;
  --sb-bg-raised: #151515;
  --sb-bg-card: #191919;
  --sb-ink: #ffffff;
  --sb-muted: #cccccc;
  --sb-faint: #a9b2c2;
  --sb-line: rgba(255, 255, 255, .14);
  --sb-font: "DM Sans", Arial, sans-serif;
  --sb-gutter: 48px;
}

@media (max-width: 1100px) {
  :root { --sb-gutter: 30px; }
}

@media (max-width: 650px) {
  :root { --sb-gutter: 22px; }
}

/* Sekcja: kontener na pełną szerokość z bocznym marginesem jak w headerze (max 1800 px treści). */
body .e-con.sb-section {
  padding-right: max(var(--sb-gutter), calc((100% - 1800px) / 2 + var(--sb-gutter)));
  padding-left: max(var(--sb-gutter), calc((100% - 1800px) / 2 + var(--sb-gutter)));
}

/* Wspólne tło i krój dla szablonów bloga. */
body .sb-blog,
body .sb-post,
body .sb-card {
  background-color: var(--sb-bg);
  color: var(--sb-ink);
  font-family: var(--sb-font);
  -webkit-font-smoothing: antialiased;
}

body .sb-blog :is(h1, h2, h3, h4, p, a, span, li, button),
body .sb-post :is(h1, h2, h3, h4, p, a, span, li, button, figcaption, cite),
body .sb-card :is(h1, h2, h3, h4, p, a, span) {
  font-family: var(--sb-font);
}

/* =========================================================================
   1. Góra bloga (archiwum)
   ========================================================================= */

body .e-con.sb-blog-intro {
  padding-top: calc(var(--sb-header-h, 94px) + 72px);
  padding-bottom: 56px;
}

body .sb-blog-intro .sb-blog-title :is(h1, h2, .elementor-heading-title) {
  margin: 0;
  color: var(--sb-ink);
  font-size: clamp(56px, 7vw, 120px);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.055em;
}

body .sb-blog-title .sb-hl {
  color: var(--sb-blue);
}

body .sb-blog-intro .sb-blog-lead,
body .sb-blog-intro .sb-blog-lead p {
  max-width: 560px;
  margin: 0;
  color: var(--sb-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* Filtr kategorii (widżet Filtr taksonomii) */
body .sb-blog-filter .e-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--sb-line);
}

body .sb-blog-filter .e-filter::-webkit-scrollbar {
  display: none;
}

body .sb-blog-filter .e-filter-item {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  padding: 14px 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sb-faint);
  box-shadow: none;
  font-family: var(--sb-font);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}

body .sb-blog-filter .e-filter-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: var(--sb-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

body .sb-blog-filter .e-filter-item:hover,
body .sb-blog-filter .e-filter-item:focus {
  background: transparent;
  color: var(--sb-ink);
}

body .sb-blog-filter .e-filter-item[aria-pressed="true"] {
  background: transparent;
  color: var(--sb-ink);
}

body .sb-blog-filter .e-filter-item[aria-pressed="true"]::after {
  transform: scaleX(1);
}

body .sb-blog-filter .e-filter-item:focus-visible {
  outline: 2px solid var(--sb-ink);
  outline-offset: 2px;
}

/* =========================================================================
   2. Siatka wpisów (widżet Siatka pętli / Loop Grid)
   ========================================================================= */

body .e-con.sb-blog-list {
  gap: 56px;
  padding-bottom: 120px;
}

body .sb-blog-grid .elementor-loop-container {
  row-gap: 64px;
  column-gap: 32px;
}

/* Wyróżniony (pierwszy) wpis zajmuje cały rząd. */
body .sb-blog-grid .e-loop-item:has(.sb-card--featured) {
  grid-column: 1 / -1;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--sb-line);
}

/* Paginacja numerami */
body .sb-blog-grid .elementor-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--sb-line);
}

body .sb-blog-grid .elementor-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border-radius: 4px;
  color: var(--sb-faint);
  font-family: var(--sb-font);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

body .sb-blog-grid .elementor-pagination a.page-numbers:hover {
  color: var(--sb-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

body .sb-blog-grid .elementor-pagination .page-numbers.current {
  background: var(--sb-blue);
  color: var(--sb-ink);
}

/* Przycisk „Pokaż więcej” */
body .sb-blog-grid .e-load-more-anchor + .elementor-button-wrapper,
body .sb-blog-grid .elementor-button-wrapper {
  margin-top: 64px;
  text-align: center;
}

body .sb-blog-grid .elementor-button,
body .sb-blog-grid .elementor-button:visited {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 15px 24px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  background: transparent;
  color: var(--sb-ink);
  font-family: var(--sb-font);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}

body .sb-blog-grid .elementor-button:hover {
  border-color: var(--sb-ink);
  background: transparent;
  color: var(--sb-ink);
}

/* =========================================================================
   3. Karta wpisu (szablon Elementu pętli). Cała karta jest jednym linkiem.
   ========================================================================= */

body .e-con.sb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--sb-ink);
  text-decoration: none;
}

body .sb-card:focus-visible {
  outline: 2px solid var(--sb-blue);
  outline-offset: 6px;
}

/* Obrazek 16:10 z subtelnym przybliżeniem na hover */
body .sb-card .sb-card-media {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--sb-bg-card);
}

body .sb-card .sb-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
  transition: transform .6s cubic-bezier(.22, .68, 0, 1), filter .4s ease;
}

body .sb-card:hover .sb-card-media img {
  transform: scale(1.035);
}

/* Kategoria: zwykły, przygaszony tekst nad tytułem */
body .sb-card .sb-card-cat {
  padding-top: 22px;
}

body .sb-card .sb-card-cat :is(ul, li, span, a) {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sb-faint);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: .01em;
  text-decoration: none;
}

body .sb-card .sb-card-cat :is(.elementor-icon-list-items, ul) {
  display: flex;
  align-items: center;
}

body .sb-card .sb-card-cat .elementor-icon-list-icon {
  display: none;
}

body .sb-card .sb-card-title {
  margin-top: 12px;
}

body .sb-card .sb-card-title :is(h2, h3, .elementor-heading-title) {
  margin: 0;
  color: var(--sb-ink);
  font-size: clamp(21px, 1.65vw, 26px);
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -.6px;
  text-wrap: balance;
}

body .sb-card:hover .sb-card-title :is(h2, h3, .elementor-heading-title) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

body .sb-card .sb-card-excerpt {
  margin-top: 12px;
}

body .sb-card .sb-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sb-muted);
  font-size: 15px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body .sb-card .sb-card-excerpt :is(p, div) {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Data na dole karty, z linią nad nią i strzałką */
body .sb-card .sb-card-meta {
  position: relative;
  margin-top: auto;
  padding-top: 20px;
}

body .sb-card .sb-card-meta::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: var(--sb-line);
}

body .sb-card .sb-card-meta :is(ul, li, span, time) {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sb-faint);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

body .sb-card .sb-card-meta .elementor-icon-list-icon {
  display: none;
}

body .sb-card .sb-card-meta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 16px;
  height: 16px;
  background: currentColor;
  color: var(--sb-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M6 6h12v12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M6 6h12v12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}

body .sb-card:hover .sb-card-meta::after {
  transform: translate(3px, -3px);
}

/* --- Karta wyróżniona: pierwszy wpis na pełną szerokość, obrazek obok tekstu --- */

@media (min-width: 900px) {
  body .e-con.sb-card.sb-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(32px, 4vw, 72px);
    align-items: start;
    padding-bottom: 8px;
  }

  /* Tekst zawsze w prawej kolumnie, obrazek w lewej. */
  body .sb-card--featured > .elementor-element {
    grid-column: 2;
  }

  body .sb-card--featured > .sb-card-media {
    grid-column: 1;
    grid-row: 1 / -1;
    margin: 0;
  }

  /* Wpis bez obrazka wyróżniającego: zwykły układ jedna pod drugą. */
  body .e-con.sb-card.sb-card--featured:not(:has(.sb-card-media img)) {
    display: flex;
    max-width: 820px;
  }

  body .sb-card--featured:not(:has(.sb-card-media img)) .sb-card-cat {
    padding-top: 0;
  }

  body .sb-card--featured:not(:has(.sb-card-media img)) .sb-card-meta {
    align-self: stretch;
    margin-top: 32px;
  }

  body .sb-card--featured .sb-card-media img {
    aspect-ratio: 16 / 9;
  }

  body .sb-card--featured .sb-card-cat {
    padding-top: 6px;
  }

  body .sb-card--featured .sb-card-title {
    margin-top: 18px;
  }

  body .sb-card--featured .sb-card-title :is(h2, h3, .elementor-heading-title) {
    font-size: clamp(32px, 3vw, 50px);
    line-height: 1.08;
    letter-spacing: -.045em;
  }

  body .sb-card--featured .sb-card-excerpt {
    margin-top: 20px;
  }

  body .sb-card--featured .sb-card-excerpt {
    max-width: 460px;
    font-size: 17px;
    -webkit-line-clamp: 4;
  }

  body .sb-card--featured .sb-card-meta {
    align-self: end;
  }
}

/* =========================================================================
   4. Pojedynczy wpis — nagłówek
   ========================================================================= */

body .e-con.sb-post-head {
  padding-top: calc(var(--sb-header-h, 94px) + 56px);
  padding-bottom: 48px;
}

/* „← Wszystkie wpisy” */
body .sb-post-back :is(a, .elementor-button) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sb-faint);
  font-size: 14px;
  font-weight: 450;
  text-decoration: none;
}

body .sb-post-back :is(a, .elementor-button):hover {
  background: transparent;
  color: var(--sb-ink);
}

body .sb-post-head .sb-post-cat {
  margin-top: 40px;
}

body .sb-post-cat :is(ul, li, span, a) {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sb-faint);
  font-size: 14px;
  font-weight: 450;
  text-decoration: none;
}

body .sb-post-cat :is(.elementor-icon-list-items, ul) {
  display: flex;
  align-items: center;
}

body .sb-post-cat a:hover {
  color: var(--sb-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body .sb-post-cat .elementor-icon-list-icon {
  display: none;
}

body .sb-post-head .sb-post-title {
  margin-top: 18px;
}

body .sb-post-title :is(h1, .elementor-heading-title) {
  max-width: 980px;
  margin: 0;
  color: var(--sb-ink);
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 450;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body .sb-post-head .sb-post-lead {
  margin-top: 26px;
}

body .sb-post-lead,
body .sb-post-lead :is(p, div) {
  max-width: 640px;
  margin: 0;
  color: var(--sb-muted);
  font-size: 19px;
  line-height: 1.6;
}

/* Rząd: autor · data · czas czytania */
body .sb-post-head .e-con.sb-post-meta-row,
body .sb-post-head .sb-post-meta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--sb-line);
}

body .sb-post-meta :is(ul, .elementor-icon-list-items) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}

body .sb-post-meta :is(li, span, a, time) {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sb-faint);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

body .sb-post-meta .elementor-post-info__item--type-author {
  color: var(--sb-ink);
  font-weight: 500;
}

body .sb-post-meta .elementor-post-info__item-prefix,
body .sb-post-meta .elementor-icon-list-icon i,
body .sb-post-meta .elementor-icon-list-icon svg {
  display: none;
}

body .sb-post-meta .elementor-icon-list-icon img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
}

/* Okładka */
/* Okładka: szeroki, niski kadr. Obraz jest wyższy od ramki,
   żeby przy przewijaniu mógł się delikatnie przesuwać (paralaksa z wpis-dodatki.html). */
body .sb-post-cover {
  position: relative;
  width: 100%;
  height: clamp(240px, 32vw, 520px);
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--sb-bg-card);
}

body .sb-post-cover :is(a, picture) {
  display: contents;
}

body .sb-post-cover img {
  position: absolute;
  top: -12%;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 124%;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
  transform: translate3d(0, var(--sb-parallax, 0px), 0);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  body .sb-post-cover img {
    top: 0;
    height: 100%;
    transform: none;
  }
}

/* =========================================================================
   5. Pojedynczy wpis — układ treści (spis treści po lewej, tekst po prawej)
   ========================================================================= */

body .e-con.sb-post-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(40px, 6vw, 120px);
  padding-top: 72px;
  padding-bottom: 96px;
}

body .e-con.sb-post-aside {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 32px);
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  gap: 32px;
}

/* Treść wypełnia całą szerokość obok spisu treści. */
body .e-con.sb-post-main {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

@media (max-width: 1024px) {
  body .e-con.sb-post-body {
    flex-direction: column;
    gap: 40px;
    padding-top: 48px;
  }

  body .e-con.sb-post-aside {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }
}

/* Spis treści (widżet Spis treści) */
body .sb-toc,
body .sb-post-aside .elementor-widget-table-of-contents,
body .sb-toc .elementor-toc {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__header {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--sb-line);
  background: transparent;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__header-title {
  color: var(--sb-ink);
  font-family: var(--sb-font);
  font-size: 14px;
  font-weight: 600;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__toggle-button {
  color: var(--sb-faint);
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__body {
  max-height: none;
  padding: 14px 0 0;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-wrapper {
  margin: 0;
  padding: 0;
  list-style: none;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-item-text-wrapper::before,
body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-item::marker {
  display: none;
  content: none;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-item-text,
body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-item-text:visited {
  position: relative;
  display: block;
  padding: 7px 0;
  color: var(--sb-faint);
  font-family: var(--sb-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-item-text:hover {
  color: var(--sb-ink);
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-item-text.elementor-item-active {
  color: var(--sb-ink);
  font-weight: 500;
}

body :is(.sb-toc, .sb-post-aside .elementor-widget-table-of-contents) .elementor-toc__list-wrapper .elementor-toc__list-wrapper {
  padding-left: 14px;
}

/* Udostępnianie (widżet Przyciski udostępniania, styl „Minimal”) */
body .sb-share .elementor-grid {
  gap: 6px;
}

body .sb-share .elementor-share-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  background: transparent;
  color: var(--sb-faint);
  transition: color .2s ease, border-color .2s ease;
}

body .sb-share .elementor-share-btn__icon {
  width: 100%;
  background: transparent;
  color: inherit;
}

body .sb-share .elementor-share-btn__icon :is(i, svg) {
  font-size: 15px;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

body .sb-share .elementor-share-btn:hover {
  border-color: var(--sb-ink);
  color: var(--sb-ink);
}

/* =========================================================================
   6. Treść wpisu (widżet Treść wpisu — to, co piszesz w edytorze WordPressa)
   ========================================================================= */

body .sb-article {
  color: var(--sb-muted);
  font-family: var(--sb-font);
  font-size: 19px;
  line-height: 1.7;
}

body .sb-article > :first-child,
body .sb-article .elementor-widget-container > :first-child {
  margin-top: 0;
}

body .sb-article p {
  margin: 0 0 1.35em;
}

body .sb-article :is(h2, h3, h4) {
  color: var(--sb-ink);
  font-family: var(--sb-font);
  font-weight: 450;
  text-wrap: balance;
  scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
}

body .sb-article h2 {
  margin: 2.1em 0 .6em;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.14;
  letter-spacing: -1.2px;
}

body .sb-article h3 {
  margin: 1.8em 0 .5em;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.25;
  letter-spacing: -.5px;
}

body .sb-article h4 {
  margin: 1.6em 0 .4em;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

body .sb-article strong,
body .sb-article b {
  color: var(--sb-ink);
  font-weight: 500;
}

body .sb-article a {
  color: var(--sb-ink);
  text-decoration: underline;
  text-decoration-color: var(--sb-blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}

body .sb-article a:hover {
  color: var(--sb-ink);
  text-decoration-color: var(--sb-ink);
}

/* Listy */
body .sb-article :is(ul, ol) {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

body .sb-article li {
  margin: 0 0 .55em;
  padding-left: .3em;
}

body .sb-article ul > li::marker {
  color: var(--sb-blue);
  font-size: 1.1em;
}

body .sb-article ol > li::marker {
  color: var(--sb-faint);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Cytat */
body .sb-article :is(blockquote, .wp-block-quote) {
  margin: 2.4em 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--sb-line);
  background: transparent;
  font-style: normal;
}

body .sb-article :is(blockquote, .wp-block-quote) p {
  margin: 0 0 .6em;
  color: var(--sb-ink);
  font-size: clamp(24px, 2.2vw, 30px);
  font-style: normal;
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -.6px;
}

body .sb-article :is(blockquote, .wp-block-quote) cite {
  display: block;
  color: var(--sb-faint);
  font-size: 14px;
  font-style: normal;
}

/* Obrazy i podpisy */
body .sb-article figure {
  margin: 2.2em 0;
}

body .sb-article img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

body .sb-article figcaption,
body .sb-article .wp-element-caption {
  margin-top: 12px;
  color: var(--sb-faint);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

/* Tabela */
body .sb-article .wp-block-table {
  margin: 2.2em 0;
  overflow-x: auto;
}

body .sb-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

body .sb-article :is(th, td) {
  padding: 14px 20px 14px 0;
  border: 0;
  border-bottom: 1px solid var(--sb-line);
  background: transparent;
  text-align: left;
  vertical-align: top;
}

body .sb-article th,
body .sb-article thead td {
  color: var(--sb-faint);
  font-size: 13px;
  font-weight: 500;
}

body .sb-article td:first-child {
  color: var(--sb-ink);
}

body .sb-article .wp-block-table figcaption {
  margin-top: 12px;
}

/* Kod */
body .sb-article code {
  padding: .12em .4em;
  border: 1px solid var(--sb-line);
  border-radius: 3px;
  background: var(--sb-bg-card);
  color: var(--sb-ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .86em;
}

body .sb-article pre {
  margin: 2em 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--sb-line);
  border-radius: 3px;
  background: var(--sb-bg-card);
  font-size: 15px;
  line-height: 1.6;
}

body .sb-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

/* Separator */
body .sb-article hr,
body .sb-article .wp-block-separator {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: var(--sb-line);
  opacity: 1;
}

/* Przycisk z edytora WP */
body .sb-article .wp-block-buttons {
  margin: 2em 0;
}

body .sb-article .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 4px;
  background: var(--sb-blue);
  color: var(--sb-ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease;
}

body .sb-article .wp-block-button__link:hover {
  background: var(--sb-blue-hover);
  color: var(--sb-ink);
}

/* Filmy z YouTube itp. */
body .sb-article .wp-block-embed {
  margin: 2.2em 0;
}

body .sb-article .wp-block-embed iframe {
  border-radius: 3px;
}

/* --- Ramka „Wskazówka”: blok Grupa z klasą sb-note --- */
body .sb-article .sb-note {
  position: relative;
  margin: 2.2em 0;
  padding: 26px 28px 8px;
  overflow: hidden;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  background: var(--sb-bg-raised);
}

body .sb-article .sb-note::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--sb-blue);
}

body .sb-article .sb-note :is(h3, h4, p:first-child strong:only-child) {
  margin-top: 0;
}

body .sb-article .sb-note p {
  font-size: 17px;
}

/* --- Wezwanie do kontaktu w treści: blok Grupa z klasą sb-inline-cta --- */
body .sb-article .sb-inline-cta {
  margin: 2.6em 0;
  padding: 32px 32px 30px;
  border-radius: 4px;
  background: var(--sb-blue);
  color: var(--sb-ink);
}

body .sb-article .sb-inline-cta :is(h2, h3) {
  margin: 0 0 .4em;
  color: var(--sb-ink);
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -.8px;
}

body .sb-article .sb-inline-cta p {
  margin-bottom: 1.2em;
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
}

body .sb-article .sb-inline-cta .wp-block-buttons {
  margin: 0;
}

body .sb-article .sb-inline-cta .wp-block-button__link {
  background: var(--sb-ink);
  color: var(--sb-blue);
}

body .sb-article .sb-inline-cta .wp-block-button__link:hover {
  background: #e8efff;
  color: var(--sb-blue-hover);
}

@media (max-width: 650px) {
  body .sb-article {
    font-size: 17px;
  }

  body .sb-article .sb-inline-cta {
    padding: 26px 22px 24px;
  }
}

/* =========================================================================
   7. Pod treścią: autor i wpisy powiązane
   ========================================================================= */

body .sb-author .elementor-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--sb-line);
}

body .sb-author .elementor-author-box__avatar {
  flex: 0 0 64px;
  margin: 0;
}

body .sb-author .elementor-author-box__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

body .sb-author .elementor-author-box__name {
  margin: 0 0 6px;
  color: var(--sb-ink);
  font-family: var(--sb-font);
  font-size: 18px;
  font-weight: 500;
}

body .sb-author .elementor-author-box__bio,
body .sb-author .elementor-author-box__bio p {
  margin: 0;
  color: var(--sb-muted);
  font-family: var(--sb-font);
  font-size: 15px;
  line-height: 1.6;
}

body .e-con.sb-related {
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 120px;
  border-top: 1px solid var(--sb-line);
}

body .sb-related-title :is(h2, .elementor-heading-title) {
  margin: 0;
  color: var(--sb-ink);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -.05em;
}

body .sb-related-title .sb-hl {
  color: var(--sb-blue);
}

/* =========================================================================
   8. Ograniczony ruch
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  body .sb-card *,
  body .sb-blog-filter *,
  body .sb-toc *,
  body .sb-article * {
    transition: none !important;
  }

  body .sb-card:hover .sb-card-media img {
    transform: none;
  }
}

/* =========================================================================
   9. Poprawki pod motyw Astra i globalne ustawienia Elementora
   ========================================================================= */

/* Astra zamyka szablony w wąskim pudełku z marginesami i białym tłem — na blogu je zdejmujemy. */
body:is(.blog, .archive, .single-post) {
  background-color: var(--sb-bg);
}

body:is(.blog, .archive, .single-post) #content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

body:is(.blog, .archive, .single-post) #primary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

body:is(.blog, .archive, .single-post) :is(.elementor-location-archive, .elementor-location-single) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Karty w siatce: bez białego tła Astry. */
body .sb-blog-grid .e-loop-item {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

/* Góra bloga i nagłówek wpisu zawsze od lewej. */
body .e-con.sb-blog-intro,
body .e-con.sb-post-head {
  align-items: flex-start;
  text-align: left;
}

/* Krój DM Sans wygrywa z globalnym fontem Elementora (ikony i kod zostają bez zmian). */
body :is(.sb-blog, .sb-post, .sb-card),
body :is(.sb-blog, .sb-post, .sb-card) :not(i):not(svg):not(svg *):not(code):not(pre):not(pre *) {
  font-family: var(--sb-font) !important;
}

/* Nagłówki: kolor i rozmiar wygrywają z globalną typografią i kolorami Elementora. */
body :is(.sb-blog-title, .sb-post-title, .sb-card-title, .sb-related-title) .elementor-heading-title {
  margin: 0;
  color: var(--sb-ink);
  font-weight: 450;
  text-transform: none;
}

body .sb-blog-title .elementor-heading-title {
  font-size: clamp(56px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -.055em;
}

body .sb-post-title .elementor-heading-title {
  max-width: 980px;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

body .sb-card-title .elementor-heading-title {
  font-size: clamp(21px, 1.65vw, 26px);
  line-height: 1.22;
  letter-spacing: -.6px;
}

body .sb-related-title .elementor-heading-title {
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.1;
  letter-spacing: -.05em;
}

body :is(.sb-blog-title, .sb-related-title) .elementor-heading-title .sb-hl {
  color: var(--sb-blue);
}

@media (min-width: 900px) {
  body .sb-card--featured .sb-card-title .elementor-heading-title {
    font-size: clamp(32px, 3vw, 50px);
    line-height: 1.08;
    letter-spacing: -.045em;
  }
}

/* Teksty widżetów (zajawka, informacje o wpisie) wygrywają z globalną typografią. */
body .sb-post-lead {
  font-size: 19px;
  line-height: 1.6;
}

body :is(.sb-post-meta, .sb-post-cat, .sb-card-cat, .sb-card-meta) .elementor-icon-list-text {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Link kategorii: bez globalnego koloru Elementora. */
body :is(.sb-post-cat, .sb-card-cat) .elementor-icon-list-text .elementor-post-info__terms-list-item {
  color: inherit;
}

body .sb-post-cat .elementor-icon-list-text .elementor-post-info__terms-list-item:hover {
  color: var(--sb-ink);
}

/* Etykiety (kategoria, autor, data): bez wcięć, które Elementor dodaje elementom w linii. */
body :is(.sb-post-cat, .sb-card-cat, .sb-post-meta, .sb-card-meta) .elementor-icon-list-items.elementor-inline-items {
  margin: 0 !important;
}

body :is(.sb-post-cat, .sb-card-cat, .sb-post-meta, .sb-card-meta) .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
  margin: 0 !important;
  padding: 0;
}

body :is(.sb-post-cat, .sb-card-cat, .sb-card-meta) .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item::after {
  display: none;
}/* End custom CSS */