/**
 * main.css — ZAWSZE ładowany (functions.php → pst_child_enqueue)
 * Zmienne globalne, header, nawigacja, stopka.
 * Kolory/font zgodne z komponentami Visual Components (ps-trading-template/index.html).
 * Breakpointy: 1024px (tablet) / 767px (mobile) — konwencja Visual Components, NIE 1100/768/480.
 */

:root {
  --pst-navy:         #273140;
  --pst-teal:         #00a19a;
  --pst-orange:       #ec6904;
  --pst-brand-waart:  #f47321;
  --pst-brand-jufisto:#1fbeca;
  --pst-brand-drel:   #ffe600;
  --pst-brand-sterg:  #ed1a3b;
  --pst-text:         #1e2430;
  --pst-muted:        #6d7480;
  --pst-line:         #d7dce2;
  --pst-font:         'Montserrat', Arial, sans-serif;
}

/* ---- bezpiecznik mobilny (Krok 5, standardy-woo) ---- */
html, body {
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }

/* Kadence wypisuje swój globalny <style> w <head> PO naszym main.css (ta sama
   specyficzność na selektorze `body`, ale później w kaskadzie), więc bez
   !important motyw nadpisuje font powrotem do swojego systemowego stosu. */
body {
  font-family: var(--pst-font) !important;
  color: var(--pst-text);
}

.pst-container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Globalny kontener dla nowo tworzonych sekcji Visual Components - 1260px, używany m.in. w markach i kategoriach */
.vc-wrap {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .vc-wrap { padding: 0 20px; }
}
@media (max-width: 767px) {
  .vc-wrap { padding: 0 16px; }
}

/* ==================== HEADER ====================
   Wygląd dostosowany do ps-trading-template/index.html (2026-08-20):
   sticky + cień, szerokość 1260px w nagłówku (nie 1180px jak reszta
   .pst-container), większy znacznik logo. */
.pst-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--pst-line);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.pst-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
}

.pst-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pst-navy);
  flex-shrink: 0;
}

.pst-logo__img {
  display: block;
  width: auto;
  height: 26px;
  flex-shrink: 0;
}

.pst-logo--footer .pst-logo__img { height: 26px; }

.pst-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.pst-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pst-navy);
  transition: transform .2s ease, opacity .2s ease;
}

.pst-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pst-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.pst-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.pst-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.pst-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pst-nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #1e2430;
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.15s;
}

.pst-nav-list a:hover,
.pst-nav-list a.active,
.pst-nav-list li.current-menu-item > a {
  color: var(--pst-teal);
}

/* Na stronie dealerów pozycja „Dealerzy” nie ma stałego wyróżnienia;
   turkus pojawia się nadal po najechaniu, tak jak przy pozostałych linkach. */
.pst-dealers-page .pst-nav-list li.current-menu-item > a { color: #1e2430; }
.pst-dealers-page .pst-nav-list li.current-menu-item > a:hover { color: var(--pst-teal); }

/* ==================== PRZEŁĄCZNIK JĘZYKA ==================== */
.pst-lang {
  position: relative;
  flex-shrink: 0;
  margin-left: 0;
}

.pst-lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pst-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #1e2430;
  border: none !important;
  padding: 6px 8px;
  border-radius: 4px;
  background: transparent !important;
  cursor: pointer;
  transition: color 0.15s;
}

.pst-lang__btn:hover,
.pst-lang__btn:focus,
.pst-lang__btn:hover span,
.pst-lang__btn:focus span {
  color: var(--pst-teal);
  border: none !important;
  text-decoration: none !important;
  outline: none !important;
}

.pst-lang__btn:hover .pst-lang__flag,
.pst-lang__btn:focus .pst-lang__flag {
  border: none !important;
}

.pst-lang__flag,
.pst-lang__dropdown a::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  border: none !important;
  flex-shrink: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: var(--dfi18n-flag, none);
}

.pst-lang__arrow {
  font-size: 9px;
  line-height: 1;
  color: var(--pst-muted);
  margin-left: 2px;
}

.pst-lang__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: max-content;
  padding: 4px 0;
  background: #fff;
  border: 1px solid var(--pst-line);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
  overflow: hidden;
  z-index: 9999;
}

/* Niewidoczny most między przyciskiem a listą */
.pst-lang::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 10px;
  background: transparent;
  pointer-events: auto;
  display: none;
}

/* Otwieranie najechaniem TYLKO tam, gdzie naprawdę jest kursor. Na dotyku
   :hover „przykleja się" po tapnięciu i lista zostawała otwarta po wyborze
   języka, mimo że JS poprawnie zdejmował .open. Na telefonie decyduje wyłącznie
   klasa .open, czyli JS. */
@media (hover: hover) and (pointer: fine) {
  .pst-lang:hover::after { display: block; }
  .pst-lang:hover .pst-lang__dropdown { display: block; }
}

.pst-lang.open .pst-lang__dropdown { display: block; }

.pst-lang__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--pst-text);
  font-family: var(--pst-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--pst-line);
  transition: background .15s, color .15s;
}

.pst-lang__dropdown a:last-child { border-bottom: none; }

.pst-lang__dropdown a:hover {
  background: #f4f6f8;
  color: var(--pst-teal);
}

.pst-lang__dropdown a:hover::before {
  border-color: var(--pst-teal);
}

.pst-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--pst-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}

.pst-header-cta:hover { background: var(--pst-navy); }

/* ==================== FOOTER ==================== */
.pst-site-footer {
  background: var(--pst-navy);
  color: #fff;
  padding: 52px 0 0;
}

.pst-site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 36px;
  width: min(100%, 1260px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pst-footer-col--brand p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #c7ccd3;
  max-width: 320px;
}

.pst-logo--footer { color: #fff; }

.pst-footer-col h5 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #fff;
}

.pst-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pst-footer-col li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #c7ccd3;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.pst-footer-col a {
  font-size: 13px;
  color: #c7ccd3;
  text-decoration: none;
  transition: color .15s;
}

.pst-footer-col a:hover { color: #fff; }

.pst-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.pst-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  transition: border-color .15s, color .15s, background .15s;
}

.pst-footer-social a:hover {
  border-color: var(--pst-teal, #00a19a);
  background: var(--pst-teal, #00a19a);
  color: #fff;
}

.pst-footer-cta {
  margin-top: 14px;
}

.pst-footer-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #c7ccd3;
  text-decoration: none;
  transition: color .15s ease;
}

.pst-footer-cta a:hover {
  color: var(--pst-teal, #00a19a);
}

.pst-site-footer__bottom {
  width: min(100%, 1260px);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 16px 24px;
  font-size: 12px;
  color: #9aa1ab;
}

.pst-site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pst-site-footer__reg-data {
  font-size: 11.5px;
  color: #838b96;
}

/* ==================================================================
   STRONY Z KOMPONENTAMI — reset kontenerów Kadence
   Klasę .pst-fullwidth dokłada functions.php każdej stronie, która zawiera
   shortcode [komponent]. Kadence owija treść w kontener max-width ~1290px,
   a komponenty (hero, kategorie itd.) są pełnej szerokości — zdejmujemy limity.
   ================================================================== */
.pst-fullwidth .content-area,
.pst-fullwidth .content-container,
.pst-fullwidth .site-container,
.pst-fullwidth #primary,
.pst-fullwidth .site-main,
.pst-fullwidth #main,
.pst-fullwidth .content-wrap,
.pst-fullwidth .entry-content-wrap,
.pst-fullwidth .entry-content,
.pst-fullwidth .single-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Artykuł wpisu też bez paddingów/cieni */
.pst-fullwidth article.entry {
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* WordPress (wpautop) owija shortcode'y w <p> — zerujemy marginesy/padding */
.pst-fullwidth .entry-content > p,
.pst-fullwidth .entry-content > p:last-child {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* Przywracamy normalną interlinię wewnątrz sekcji komponentów */
.pst-fullwidth .entry-content > p > section,
.pst-fullwidth .entry-content > p > div {
  line-height: 1.5;
}

/* Usuń margin-top z content-area (Kadence dodaje 5rem) */
.pst-fullwidth .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Twardy bezpiecznik: ukrycie banera .entry-hero na stronach pełnej szerokości / dealerzy / dystrybutorzy */
.pst-fullwidth .entry-hero,
.pst-fullwidth .entry-header.page-title,
.page-slug-dealerzy .entry-hero,
.page-slug-dystrybutorzy .entry-hero,
.page-id-68 .entry-hero {
  display: none !important;
}

/* ==================== DEALERZY / DYSTRYBUTORZY — KONTENER I TYTUŁ ====================
   Header ma 1260px razem z paddingiem 24px, więc jego treść zaczyna się na
   tej samej osi co logo. Toolbar i lista dealerów używają tych samych
   krawędzi wyłącznie na stronie PS Trading; mapa zachowuje pełną szerokość
   okna ustawioną przez GP Hub. */
.pst-dealers-page .zd {
  width: min(100%, 1260px);
  max-width: 1260px;
  padding-right: 24px;
  padding-left: 24px;
}

.pst-dealers-page .zd__title {
  position: relative;
  display: inline-block;
  padding-bottom: 0 !important;
}

.pst-dealers-page .zd .zd__title::after,
.pst-dealers-page .zd__title::after {
  display: none !important;
}

/* ==================== RESPONSYWNOŚĆ ==================== */
/* Prawidłowe odsunięcie przewijania od przyklejonego nagłówka (Sticky Header) */
html {
  scroll-padding-top: 72px;
}
section[id], div[id] {
  scroll-margin-top: 72px;
}

.pst-hero__visual { overflow: hidden !important; max-width: 100% !important; }

@media (max-width: 1200px) {
  .pst-nav-list { gap: 5px; }
  .pst-nav-list a { padding: 7px 9px; font-size: 11px; }
}

@media (max-width: 1024px) {
  .pst-site-header__inner { padding: 0 16px; min-height: 60px; }
  .pst-dealers-page .zd { padding-right: 16px; padding-left: 16px; }
  .pst-nav-list { gap: 4px; }
  .pst-nav-list a { padding: 6px 8px; font-size: 11px; }
  .pst-lang { margin-left: 0; }
  .pst-lang__btn { padding: 4px 6px; font-size: 10.5px; }
  .pst-site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
  .pst-nav-toggle { display: flex; margin-left: auto; }
  .pst-materials__grid { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: -52px !important; }
  .pst-materials__box { aspect-ratio: auto !important; min-height: 100px !important; }

  .pst-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--pst-line);
    margin: 0;
  }

  .pst-nav.open { display: block; }

  .pst-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .pst-nav-list li { width: 100%; }

  .pst-nav-list a {
    display: block;
    padding: 11px 0;
    font-size: 11.5px;
    border-bottom: 1px solid var(--pst-line);
    white-space: normal;
  }

  .pst-lang {
    margin: 0 0 0 12px;
  }

  .pst-header-cta { padding: 9px 16px; font-size: 11px; }
}

@media (max-width: 640px) {
  .pst-site-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .pst-footer-col--brand p {
    max-width: 100% !important;
  }
  .pst-footer-col li,
  .pst-footer-col a {
    font-size: 13px !important;
  }
  .pst-site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* ==================== BLOG & AKTUALNOŚCI ==================== */
.pst-blog-hero {
  position: relative;
  background: #111;
  min-height: 348px;
  box-sizing: border-box;
  padding: 38px 0 42px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}
.pst-blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://pstrading.deforte.com.pl/wp-content/uploads/2026/08/partner-network.jpg') center/cover no-repeat;
  z-index: 1;
  filter: brightness(0.65);
}
.pst-blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.45) 100%);
  z-index: 2;
}
.pst-blog-hero .vc-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}
.pst-blog-hero__content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  height: 100%;
}
.pst-blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pst-orange);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  line-height: 1.2;
}
.pst-blog-hero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0;
}
.pst-blog-hero .pst-blog-hero__title {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
}
.pst-blog-hero__lead {
  font-size: clamp(14.5px, 1.15vw, 16px);
  font-weight: 500;
  color: #e2e8f0;
  max-width: 820px;
  line-height: 1.55;
  margin-bottom: 0;
}

.single-content .vc-pst-k2-hero__title,
.single-content .vc-pst-about__hero-title,
.single-content .vc-pst-career__hero-title,
.single-content .vc-pst-catalogs__hero-title,
.single-content .pst-blog-hero__title {
  margin-top: 0;
}

.pst-blog-feed {
  padding: 40px 0 80px;
  background: #f8fafc;
}
.pst-blog-feed .vc-wrap {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 0 24px;
}
.pst-blog-header {
  text-align: left;
  margin-bottom: 36px;
}
.pst-blog-title {
  font-family: var(--pst-font);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: var(--pst-navy);
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  line-height: 1.2;
}
.pst-blog-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--pst-orange);
  border-radius: 2px;
}
.pst-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pst-blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--pst-line);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pst-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  border-color: var(--pst-teal);
}
.pst-blog-card__thumb-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--pst-navy);
  overflow: hidden;
}
.pst-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pst-blog-card:hover .pst-blog-card__img {
  transform: scale(1.05);
}
.pst-blog-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2835 0%, #273140 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.pst-blog-card__placeholder-logo {
  max-width: 160px;
  opacity: 0.8;
}
.pst-blog-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pst-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.pst-blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.pst-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pst-muted);
  margin-bottom: 12px;
}
.pst-blog-card__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}
.pst-blog-card__title a {
  color: var(--pst-navy);
  text-decoration: none;
  transition: color 0.2s;
}
.pst-blog-card__title a:hover {
  color: var(--pst-teal);
}
.pst-blog-card__excerpt {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.pst-blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pst-teal);
  text-decoration: none;
  transition: gap 0.2s;
}
.pst-blog-card__more:hover {
  color: var(--pst-orange);
  gap: 10px;
}

/* PAGINACJA */
.pst-blog-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}
.pst-blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pst-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--pst-line);
  color: var(--pst-navy);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}
.pst-blog-pagination .page-numbers.current,
.pst-blog-pagination .page-numbers:hover {
  background: var(--pst-teal);
  border-color: var(--pst-teal);
  color: #fff;
}

/* SINGLE POST */
.pst-single-hero {
  position: relative;
  background: #111;
  min-height: 348px;
  box-sizing: border-box;
  padding: 38px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.pst-single-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://pstrading.deforte.com.pl/wp-content/uploads/2026/08/partner-network.jpg') center/cover no-repeat;
  z-index: 1;
  filter: brightness(0.65);
}
.pst-single-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.45) 100%);
  z-index: 2;
}
.pst-single-hero .pst-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}
.pst-single-hero__breadcrumbs {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 14px;
}
.pst-single-hero__breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
}
.pst-single-hero__breadcrumbs a:hover {
  color: var(--pst-teal);
}
.pst-single-hero__title {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0;
  max-width: 920px;
}

.pst-single-body {
  padding: 55px 0 75px;
  background: #fff;
}
.pst-single-container {
  max-width: 860px !important;
}
.pst-single-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  margin: 0 0 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  background: #f1f5f9;
}
.pst-single-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pst-single-content {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}
.pst-single-content p {
  margin-bottom: 24px;
}
.pst-single-content h2,
.pst-single-content h3 {
  color: var(--pst-navy);
  font-weight: 800;
  margin: 36px 0 16px;
}
.pst-single-content ul,
.pst-single-content ol {
  margin: 0 0 24px 24px;
}
.pst-single-content li {
  margin-bottom: 8px;
}
.pst-single-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--pst-line);
}
.pst-single-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--pst-navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}
.pst-single-back-btn:hover {
  background: var(--pst-teal);
}

.pst-single-related {
  padding: 60px 0 80px;
  background: #f8fafc;
  border-top: 1px solid var(--pst-line);
}
.pst-single-related__title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pst-navy);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}
.pst-single-related__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--pst-orange);
}

@media (max-width: 1024px) {
  .pst-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .pst-blog-feed { padding: 40px 0 60px; }
  .pst-blog-header { margin-bottom: 30px; }
  .pst-blog-title { padding-bottom: 12px; }
  .pst-blog-title::after { width: 45px; height: 3px; }
  .pst-dealers-page .zd__title { padding-bottom: 0 !important; }
  .pst-dealers-page .zd .zd__title::after,
  .pst-dealers-page .zd__title::after { display: none !important; }
  .pst-blog-hero,
  .pst-single-hero { padding: 48px 0 52px; min-height: 260px; }
  .pst-blog-grid { grid-template-columns: 1fr; }
  .pst-single-featured-img { aspect-ratio: 16 / 10; max-height: 280px; margin-bottom: 24px; }
  .pst-single-body { padding: 40px 0 50px; }
}

/* ==================== NOWY KATALOG AKTUALNOŚCI ==================== */
.pst-news,
.pst-news * {
  box-sizing: border-box;
}

.pst-news {
  --pst-news-shadow: 0 10px 32px rgba(28, 37, 50, .08);
  background: #f5f7f9;
  color: var(--pst-text);
}

.pst-news a {
  text-decoration: none;
}

.pst-news-hero {
  position: relative;
  isolation: isolate;
  min-height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #18222c url('https://pstrading.deforte.com.pl/wp-content/uploads/assets/hero-slide1-condor-wide.jpg') center 48% / cover no-repeat;
}

.pst-news-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 23, 31, .86), rgba(14, 23, 31, .56) 52%, rgba(14, 23, 31, .79)),
    linear-gradient(0deg, rgba(14, 23, 31, .28), rgba(14, 23, 31, .1));
}

.pst-news-hero__inner {
  padding-top: 30px;
  padding-bottom: 30px;
}

.pst-news-hero__eyebrow {
  margin: 0 0 10px;
  color: #f47321 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.3;
  text-transform: uppercase;
}

.pst-news-hero .pst-news-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.05;
}

.pst-news-hero__lead {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.pst-news-content {
  padding: 30px 0 52px;
}

.pst-news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.pst-news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pst-news-filter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #e3e7eb;
  border-radius: 4px;
  background: #fff;
  color: #35404d;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.pst-news-filter:hover {
  transform: translateY(-1px);
  border-color: var(--pst-brand-waart);
  color: var(--pst-brand-waart);
}

.pst-news-filter.is-active {
  border-color: var(--pst-brand-waart);
  background: var(--pst-brand-waart);
  color: #fff;
}

.pst-news-search {
  position: relative;
  flex: 0 1 320px;
  min-width: 260px;
}

.pst-news-search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  fill: none;
  stroke: #7c8794;
  stroke-linecap: round;
  stroke-width: 2;
  pointer-events: none;
  z-index: 2;
}

.pst-news-search input[type='search'] {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 74px 0 40px;
  border: 1px solid #dce1e6;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: var(--pst-text);
  font-family: var(--pst-font);
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(31, 42, 55, .03);
}

.pst-news-search input[type='search']:focus {
  border-color: var(--pst-teal);
  box-shadow: 0 0 0 3px rgba(0, 161, 154, .12);
}

.pst-news-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 3px;
  background: var(--pst-navy);
  color: #fff;
  font-family: var(--pst-font);
  font-size: 9.5px;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
}

.pst-news-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -10px 0 22px;
  padding: 11px 14px;
  border-left: 3px solid var(--pst-teal);
  background: #fff;
  color: var(--pst-muted);
  font-size: 12px;
}

.pst-news-results p {
  margin: 0;
}

.pst-news-results a {
  color: var(--pst-teal);
  font-weight: 800;
  white-space: nowrap;
}

.pst-news-featured,
.pst-news-card {
  overflow: hidden;
  border: 1px solid #e1e5e9;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(28, 37, 50, .045);
}

.pst-news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  height: 350px;
  min-height: 328px;
  margin-bottom: 28px;
}

.pst-news-featured__media,
.pst-news-card__media {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--pst-navy);
}

.pst-news-featured__image,
.pst-news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.pst-news-featured:hover .pst-news-featured__image,
.pst-news-card:hover .pst-news-card__image {
  transform: scale(1.035);
}

.pst-news-featured__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 3vw, 36px);
}

.pst-news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 13px;
  color: #7c8590;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.pst-news-card__meta time {
  margin-left: auto;
  white-space: nowrap;
}

.pst-news-card__category {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 3px;
  background: #fff1e7;
  color: var(--pst-brand-waart);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.pst-news-featured .pst-news-card__category {
  background: var(--pst-brand-waart);
  color: #fff;
}

.pst-news-featured .pst-news-card__meta time {
  margin-left: 0;
}

.pst-news-featured .pst-news-featured__title {
  margin: 0 0 15px;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.12;
}

.pst-news-featured__title a,
.pst-news-card__title a {
  color: var(--pst-text);
  overflow-wrap: anywhere;
}

.pst-news-featured__title a:hover,
.pst-news-card__title a:hover {
  color: var(--pst-teal);
}

.pst-news-featured__excerpt {
  margin: 0 0 24px;
  color: #58616c;
  font-size: 13px;
  line-height: 1.65;
}

.pst-news-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 4px;
  background: var(--pst-brand-waart);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transition: gap .2s ease, background .2s ease;
}

.pst-news-button:hover {
  gap: 14px;
  background: #d95e12;
  color: #fff;
}

.pst-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pst-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pst-news-card:hover {
  transform: translateY(-4px);
  border-color: #cdd4db;
  box-shadow: var(--pst-news-shadow);
}

.pst-news-card__media {
  aspect-ratio: 16 / 6.8;
}

.pst-news-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 28px;
  background: linear-gradient(135deg, #1d2835, #35475a);
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.pst-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
}

.pst-news-card .pst-news-card__title {
  margin: 0 0 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.2px;
  line-height: 1.28;
}

.pst-news-card__excerpt {
  flex: 1;
  margin: 0 0 18px;
  color: #626c77;
  font-size: 11.5px;
  line-height: 1.55;
}

.pst-news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pst-brand-waart);
  font-size: 10.5px;
  font-weight: 800;
  transition: gap .2s ease;
}

.pst-news-card__more:hover {
  gap: 11px;
  color: #d95e12;
}

.pst-news-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.pst-news-more a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 28px;
  border: 1px solid var(--pst-brand-waart);
  border-radius: 4px;
  background: #fff;
  color: var(--pst-brand-waart);
  font-size: 10.5px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease;
}

.pst-news-more a:hover {
  background: var(--pst-brand-waart);
  color: #fff;
}

.pst-news-empty {
  padding: 70px 24px;
  border: 1px solid #e1e5e9;
  border-radius: 5px;
  background: #fff;
  text-align: center;
}

.pst-news-empty h2 {
  margin: 0 0 10px;
  color: var(--pst-navy);
  font-size: 25px;
}

.pst-news-empty p {
  margin: 0 0 24px;
  color: var(--pst-muted);
}

.pst-news-cta {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, #1c2733, #263544);
  color: #fff;
}

.pst-news-cta__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 128px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.pst-news-cta__icon {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 6px;
}

.pst-news-cta__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.pst-news-cta__copy {
  flex: 1;
}

.pst-news-cta__copy h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.pst-news-cta__copy p {
  margin: 0;
  color: #ccd3da;
  font-size: 11.5px;
}

.pst-news-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--pst-brand-waart);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pst-news-cta__button:hover {
  background: #d95e12;
  color: #fff;
}

@media (max-width: 1024px) {
  .pst-news-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .pst-news-search {
    flex-basis: auto;
    width: min(100%, 420px);
  }

  .pst-news-featured {
    grid-template-columns: 1fr 1fr;
    height: 390px;
  }

  .pst-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pst-news-hero {
    min-height: 178px;
  }

  .pst-news-hero__inner {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .pst-news-hero .pst-news-hero__title {
    letter-spacing: -1px;
  }

  .pst-news-content {
    padding: 20px 0 40px;
  }

  .pst-news-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .pst-news-filter {
    justify-content: center;
    text-align: center;
  }

  .pst-news-search {
    min-width: 0;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 9px rgba(31, 42, 55, .08);
  }

  .pst-news-featured {
    grid-template-columns: 1fr;
    height: auto;
  }

  .pst-news-featured__media {
    aspect-ratio: 16 / 8.5;
  }

  .pst-news-featured__body {
    padding: 24px 20px 27px;
  }

  .pst-news-featured .pst-news-featured__title {
    font-size: 24px;
  }

  .pst-news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pst-news-card__media {
    aspect-ratio: 16 / 7.5;
  }

  .pst-news-results {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .pst-news-cta__inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .pst-news-cta__copy {
    min-width: calc(100% - 76px);
  }

  .pst-news-cta__button {
    justify-content: center;
    width: 100%;
  }
}

/* ==================== FORMULARZ KONTAKTOWY AJAX ==================== */
.pst-form-alert {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: pstFadeIn 0.3s ease;
}
.pst-form-alert--success {
  background: #e6f7f6;
  border: 1px solid #00a19a;
  color: #006863;
}
.pst-form-alert--error {
  background: #fdf2f2;
  border: 1px solid #ed1a3b;
  color: #991b1b;
}
.vc-pst-k2-main__submit:disabled,
.vc-pst-k2-main__submit.pst-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.vc-pst-k2-main__select.pst-highlight {
  border-color: #00a19a !important;
  box-shadow: 0 0 0 4px rgba(0, 161, 154, 0.25) !important;
  transition: all 0.3s ease !important;
}
@keyframes pstFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== STRONA DYSTRYBUTORZY (GP HUB) ==================== */
.pst-dealers-page .zd .zd__logo-wrap {
  display: none !important;
}

/* Całkowita likwidacja odstępu między nazwą a adresem */
.pst-dealers-page .zd .zd__nazwa,
.zd .zd__nazwa {
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.25 !important;
}

.pst-dealers-page .zd .zd__row,
.zd .zd__row {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pst-dealers-page .zd .zd__dane,
.zd .zd__dane {
  margin: 0 !important;
  padding: 0 !important;
}

.pst-dealers-page .zd .zd__adres,
.zd .zd__adres {
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  line-height: 1.35 !important;
}

.pst-dealers-page .zd__title,
.pst-dealers-page .zd .zd__title {
  padding-bottom: 0 !important;
}
.pst-dealers-page .zd__title::after,
.pst-dealers-page .zd .zd__title::after,
.pst-dealers-page .zd__topbar h2::after,
.zd__title::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
  border: none !important;
}

.zd__wiecej-btn--rozwiniete {
  background: #2b313a !important;
}
.zd__wiecej-btn--rozwiniete svg {
  transform: rotate(180deg) !important;
}
.zd__wiecej-btn--rozwiniete:hover svg {
  transform: rotate(180deg) translateY(2px) !important;
}

/* Wyrównanie i wycentrowanie kratek dystrybutorów na mobile */
@media (max-width: 767px) {
  .pst-dealers-page .zd,
  .zd {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .pst-dealers-page .zd .zd__topbar,
  .zd .zd__topbar {
    gap: 12px !important;
  }

  .pst-dealers-page .zd .zd__tools,
  .zd .zd__tools {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .pst-dealers-page .zd .zd__geo,
  .zd .zd__geo {
    order: 1 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    height: 40px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    letter-spacing: .2px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .pst-dealers-page .zd .zd__szukajbtn,
  .zd .zd__szukajbtn {
    order: 2 !important;
    flex: 0 0 auto !important;
    min-width: 80px !important;
    width: auto !important;
    max-width: none !important;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .pst-dealers-page .zd .zd__search,
  .zd .zd__search {
    order: 3 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    box-sizing: border-box !important;
  }

  .pst-dealers-page .zd .zd__search input,
  .zd .zd__search input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 13.5px !important;
  }

  /* Mniejsze kafle i czcionki kategorii */
  .pst-dealers-page .zd .zd__kat-filtry,
  .zd .zd__kat-filtry {
    gap: 6px !important;
    margin-bottom: 14px !important;
  }

  .pst-dealers-page .zd .zd__kat-btn,
  .zd .zd__kat-btn {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
  }

  .pst-dealers-page .zd .zd__kat-count,
  .zd .zd__kat-count {
    font-size: 10px !important;
  }

  .pst-dealers-page .zd .zd__kat-dot,
  .zd .zd__kat-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .pst-dealers-page .zd .zd__map,
  .zd .zd__map {
    width: calc(100% + 32px) !important;
    max-width: 100vw !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
  }

  .pst-dealers-page .zd .zd__lista,
  .zd .zd__lista {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .pst-dealers-page .zd .zd__poz,
  .zd .zd__poz {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pst-dealers-page .zd .zd__row,
  .zd .zd__row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }

  .pst-dealers-page .zd .zd__akcje,
  .zd .zd__akcje {
    align-items: stretch !important;
    width: 100% !important;
  }

  .pst-dealers-page .zd .zd__trasa,
  .zd .zd__trasa {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ==================== PROCES WSPÓŁPRACY (SEKCJA JAK ROZPOCZĄĆ WSPÓŁPRACĘ) ==================== */
@media (max-width: 1280px) {
  .pst-process .vc-title::before {
    margin-right: 48px !important;
  }
}

@media (max-width: 767px) {
  /* Naprawa nachodzenia 3 kwadratów na tytuł */
  .pst-process .vc-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
  }
  .pst-process .vc-title::before {
    width: 9px !important;
    height: 9px !important;
    margin-right: 38px !important;
    box-shadow: 14px 0 0 var(--teal), 28px 0 0 var(--teal) !important;
    vertical-align: middle !important;
  }

  /* Siatka 2x2 dla kafelków procesu (2 kolumny, 2 wiersze) */
  .pst-process__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    aspect-ratio: unset !important;
    background: none !important;
  }

  /* Kompaktowe wymiary kafelków i reset starych przesunięć */
  .pst-process__step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 14px 10px 12px !important;
    border: 1.5px solid #e1e4e8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
  .pst-process__step:nth-child(1),
  .pst-process__step:nth-child(4) {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .pst-process__step img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    margin: 0 auto 6px !important;
    display: block !important;
  }

  .pst-process__step h3 {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 0 4px !important;
    line-height: 1.2 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    text-align: center !important;
  }

  .pst-process__step p {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    color: #555d67 !important;
    max-width: 100% !important;
    width: auto !important;
    margin: 0 0 8px !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    text-align: center !important;
  }

  .pst-process__step b {
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #333a44 !important;
    margin: auto 0 0 0 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    text-align: center !important;
  }

  .pst-process__step--teal {
    border-color: var(--teal) !important;
  }
}

/* ==================== PODSTRONA DOKUMENTY DO POBRANIA ==================== */
.pst-downloads {
  margin: 20px 0 40px;
}
.pst-downloads__section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--pst-navy, #273140);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pst-line, #d7dce2);
}
.pst-downloads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.pst-downloads__card {
  background: #ffffff;
  border: 1px solid var(--pst-line, #d7dce2);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pst-downloads__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--pst-teal, #00a19a);
}
.pst-downloads__card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.pst-downloads__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 6px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pst-downloads__icon svg {
  width: 22px;
  height: 22px;
}
.pst-downloads__card-body {
  flex-grow: 1;
}
.pst-downloads__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  margin-bottom: 6px;
}
.pst-downloads__card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pst-navy, #273140);
  line-height: 1.4;
  margin: 0 0 4px;
}
.pst-downloads__card-model {
  font-size: 13px;
  color: var(--pst-muted, #6d7480);
  margin: 0 0 12px;
  font-family: monospace;
}
.pst-downloads__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff !important;
  background: var(--pst-navy, #273140);
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .2s ease;
  box-sizing: border-box;
}
.pst-downloads__btn:hover {
  background: var(--pst-teal, #00a19a);
}
.pst-downloads__btn svg {
  width: 15px;
  height: 15px;
}
.pst-downloads__alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}
.pst-downloads__alert-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 12px;
}
.pst-downloads__alert-text {
  font-size: 14px;
  line-height: 1.6;
  color: #78350f;
  margin: 0;
}

/* ==================== PŁYWAJĄCY WIDŻET SOCIAL MEDIA (SFSI) ====================
   Prawa strona, 25vh od dołu ekranu.
   Wymuszamy pozycjonowanie 'fixed', aby zapobiec ucinaniu i wyjeżdżaniu ikon
   za stronę przy przewijaniu oraz błędom przeliczania pozycji w skrypcie JS. */
#sfsi_floater {
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  bottom: 25vh !important;
  top: auto !important;
  z-index: 9999 !important;
}

@media (max-width: 767px) {
  #sfsi_floater {
    right: 12px !important;
    bottom: 20vh !important;
  }
}

