/* ============================================
   POGRZEBY WISNIEWSCY - LOCAL MATERIAL ICONS
   Clean WordPress theme with local Material Icons
   ============================================ */
/* WYŁĄCZENIE WORDPRESS margin-block-end dla FOOTER */
:where(.wp-site-blocks) > footer,
:where(.wp-site-blocks) > .wp-block-template-part[data-type="footer"],
footer,
.site-footer,
.wp-block-template-part[data-type="footer"] {
  margin-block-end: unset !important;
  margin-bottom: 0 !important;
}

/* KRYTYCZNE NADPISANIE WordPress columns - DOKŁADNIE TAKIE SAMO JAK HEADER */
/* Nadpisanie WordPress reguł z min-width:782px na 992px */

/* Wyłącz WordPress desktop layout od 782px do 992px */
@media (min-width: 782px) and (max-width: 992px) {
  html body .wp-block-columns,
  html body .wp-block-columns.wp-block-columns {
    flex-wrap: wrap !important; /* Nadpisuje WordPress flex-wrap:nowrap !important */
    flex-direction: column !important;
    display: flex !important;
  }
  
  html body .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
  html body .wp-block-column {
    flex-basis: 100% !important; /* Nadpisuje WordPress flex-basis:0 */
    flex-grow: 0 !important; /* Nadpisuje WordPress flex-grow:1 */
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Wszystko do 992px - mobilny layout */
@media (max-width: 992px) {
  html body .wp-block-columns,
  html body .wp-block-columns.wp-block-columns {
    flex-direction: column !important;
    display: flex !important;
  }
  
  html body .wp-block-column,
  html body .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
    flex-grow: 0 !important;
  }
}

:root {
  /* Golden Color Scheme - Pogr.header-location .material-icons {
  color: #ffffff !important;
  font-size: 36px !important;
  margin-right: 12px;
  margin-left: 0;
  flex-shrink: 0;
}isniewscy */
  --primary-color: #b89b5e;
  --primary-light: #d4c39e;
  --primary-dark: #8f7a4a;
  --accent-color: #b89b5e;
  
  /* Dark Color Scheme */
  --bg-dark: #141412;
  --bg-darker: #2a2a2a;
  --bg-darkest: #1f1f1f;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  
  /* Typography */
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --heading-font: 'Open Sans', sans-serif;
}

/* ==========================================================================
   WORDPRESS BREAKPOINT OVERRIDE - GLOBALNE NADPISANIE
   Zmiana domyślnych breakpointów WordPress z 600px/782px na 992px
   ========================================================================== */

/* NADPISANIE WordPress columns breakpoint z 782px na 993px */
@media (min-width: 782px) and (max-width: 992px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }
  
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ==========================================================================
   WORDPRESS NAVIGATION BREAKPOINT OVERRIDE
   Zmiana domyślnego breakpointu WordPress z 600px na 992px
   ========================================================================== */

/* Ukryj desktop menu do 992px */
@media (max-width: 991px) {
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }
  
  .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
}

/* Pokaż desktop menu od 992px */
@media (min-width: 992px) {
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    z-index: auto !important;
    background-color: inherit !important;
  }
  
  .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
  
  .wp-block-navigation__responsive-container-close {
    display: none !important;
  }
}

/* ==========================================================================
   MATERIAL ICONS - LOCAL INTEGRATION
   ========================================================================== */

/* ==========================================================================
   TYPOGRAPHY - HEADINGS STYLE
   ========================================================================== */

/* H1 - Main page headings */
h1, .h1 {
  font-family: var(--heading-font);
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0 0 24px 0;
  padding: 0 0 8px 0;
  letter-spacing: -0.5px;
  border-bottom: 2px solid var(--primary-light);
}

/* H1 links */
h1 a, .h1 a {
  color: #000000;
  text-decoration: none;
}

h1 a:hover, .h1 a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* H2 - Section headings */
h2, .h2 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
  margin: 32px 0 20px 0;
  padding: 0 0 8px 0;
  letter-spacing: -0.3px;
  border-bottom: 2px solid var(--primary-light);
}

/* H2 links */
h2 a, .h2 a {
  color: #000000;
  text-decoration: none;
}

h2 a:hover, .h2 a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* H3 - Subsection headings */
h3, .h3 {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-dark);
  margin: 24px 0 16px 0;
  padding: 0;
  letter-spacing: 0;
}

/* H4 - Small headings */
h4, .h4 {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  margin: 20px 0 12px 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 1.2em;
    margin-bottom: 20px;
  }
  
  h2, .h2 {
    font-size: 1.2em;
    margin: 28px 0 16px 0;
  }
  
  h3, .h3 {
    font-size: 20px;
    margin: 20px 0 12px 0;
  }
  
  h4, .h4 {
    font-size: 16px;
    margin: 16px 0 10px 0;
  }
}

/* Enhanced Material Icons with golden theme */
.material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
  direction: ltr !important;
  -webkit-font-feature-settings: 'liga' !important;
  font-feature-settings: 'liga' !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Golden theme Material Icons */
.material-icons.golden {
  color: var(--primary-color);
}

.material-icons.golden-light {
  color: var(--primary-light);
}

.material-icons.golden-dark {
  color: var(--primary-dark);
}

/* Size variants for Material Icons */
.material-icons.small { font-size: 16px !important; }
.material-icons.medium { font-size: 24px !important; }
.material-icons.large { font-size: 36px !important; }
.material-icons.xl { font-size: 48px !important; }

/* ==========================================================================
   GLOBAL OVERFLOW CONTROL
   ========================================================================== */

/* Prevent horizontal overflow on main containers */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* Main WordPress containers */
#page, .site, .site-content, main, article {
  overflow-x: hidden;
  max-width: 100%;
}

/* ==========================================================================
   BACKGROUND COLOR SYSTEM - #414141 THEME
   ========================================================================== */

/* Dark background utilities */
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-darker { background-color: var(--bg-darker) !important; }
.bg-darkest { background-color: var(--bg-darkest) !important; }

/* Text colors for dark backgrounds */
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Combined dark theme classes */
.dark-theme {
  background-color: var(--bg-dark) !important;
  color: var(--text-light) !important;
}

.dark-theme-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%) !important;
  color: var(--text-light) !important;
}

.dark-theme-content {
  background-color: var(--bg-dark) !important;
  color: var(--text-light) !important;
  border: 1px solid var(--primary-color) !important;
}

/* Override any black backgrounds globally */
*[style*="background: #000"],
*[style*="background-color: #000"],
*[style*="background: black"],
*[style*="background-color: black"] {
  background-color: var(--bg-dark) !important;
}

/* WordPress block overrides */
.wp-block-group.has-black-background-color,
.wp-block-cover.has-black-background-color,
.has-black-background-color {
  background-color: var(--bg-dark) !important;
}
header {
  background-color: var(--bg-dark) !important;
}
/* ==========================================================================
   TOP CONTACT BAR - Full width with golden colors
   ========================================================================== */  
.topbar {
  background-color: var(--bg-dark) !important;
  color: var(--primary-color) !important;
  padding: 10px 15px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.topbar .material-icons {
  color: var(--primary-color) !important;
  vertical-align: middle;
  margin-right: 8px;
  font-size: 18px !important;
  line-height: 1;
  flex-shrink: 0;
}

.topbar a {
  color: var(--primary-color) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.topbar a span {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Responsive breakpoints for topbar */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .topbar a {
    margin: 5px 0;
    justify-content: center;
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .topbar a {
    font-size: 12px;
    flex-direction: column;
    align-items: center;
  }
  
  .topbar .material-icons {
    margin: 0 0 4px 0;
    font-size: 16px !important;
  }
}

.topbar a:hover {
  color: var(--primary-light) !important;
}

.topbar a:hover .material-icons {
  color: var(--primary-light) !important;
}

/* ==========================================================================
   HEADER LAYOUT 
   ========================================================================== */

/* Domyślny mobilny layout dla wszystkich rozmiarów */
body .header-container,
.wp-site-blocks .header-container,
.site-header .header-container,
header .header-container,
.header-container {
  background-color: var(--bg-dark) !important;
  padding: 20px 15px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 15px !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  transition: all 0.3s ease !important;
}

/* Domyślne mobilne ustawienia dla wszystkich elementów */
body .header-logo,
.wp-site-blocks .header-logo,
.site-header .header-logo,
header .header-logo,
body .header-phone,
.wp-site-blocks .header-phone,
.site-header .header-phone,
header .header-phone,
body .header-location,
.wp-site-blocks .header-location,
.site-header .header-location,
header .header-location {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  grid-column: 1 !important;
  justify-self: center !important;
  display: flex !important;
}

body .header-logo,
.wp-site-blocks .header-logo,
.site-header .header-logo,
header .header-logo {
  order: 1 !important;
  margin-bottom: 15px !important;
}

body .header-phone,
.wp-site-blocks .header-phone,
.site-header .header-phone,
header .header-phone {
  order: 2 !important;
  margin-bottom: 10px !important;
}

body .header-location,
.wp-site-blocks .header-location,
.site-header .header-location,
header .header-location {
  order: 3 !important;
  margin-top: 0 !important;
}

/* Domyślne wyśrodkowanie tekstu w mobilnym layoutcie */
body .header-phone .phone-content,
.wp-site-blocks .header-phone .phone-content,
.site-header .header-phone .phone-content,
header .header-phone .phone-content {
  text-align: center !important;
}

body .header-location .location-text,
.wp-site-blocks .header-location .location-text,
.site-header .header-location .location-text,
header .header-location .location-text {
  text-align: center !important;
}

/* Kolumna 1: Logo */
body .header-logo,
.wp-site-blocks .header-logo,
.site-header .header-logo,
header .header-logo,
.header-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  transition: all 0.3s ease !important;
}

body .header-logo img,
.wp-site-blocks .header-logo img,
.site-header .header-logo img,
header .header-logo img,
.header-logo img {
  max-height: 60px !important;
  width: auto !important;
  transition: all 0.3s ease !important;
}

.header-logo .company-name {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 600;
  margin-left: 10px;
  font-family: var(--heading-font);
}

/* Kolumna 2: Lokalizacja - dosunięta do prawej */
.header-location {
  display: flex;
  align-items: flex-start;
  text-align: right;
  justify-content: flex-end;
  padding-top: 10px;
  transition: all 0.3s ease;
}

/* Wspólne style dla ikon w kolumnach 2 i 3 */
.header-location .material-icons,
.header-phone .material-icons {
  color: #ffffff !important;
  margin-left: 0;
  flex-shrink: 0;
  vertical-align: top;
  align-self: flex-start;
  transition: all 0.3s ease;
}

/* Specyficzne rozmiary ikon i marginesy */
.header-location .material-icons {
  font-size: 36px !important;
  margin-right: 15px;
}

.header-phone .material-icons {
  font-size: 36px !important;
  margin-right: 15px;
}

/* Style tekstu lokalizacji */
.header-location .location-text {
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1.4;
}

.header-location .location-main {
  font-weight: 600;
  margin-bottom: 2px;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.header-location .location-address {
  font-size: 14px;
  color: #cccccc !important;
  transition: all 0.3s ease;
}

/* Kolumna 3: Telefon całodobowy - dosunięty do prawej */
.header-phone {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 10px;
  transition: all 0.3s ease;
}

.header-phone .phone-content {
  text-align: right;
}

.header-phone .phone-number {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.header-phone .phone-label {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.header-phone .phone-hours {
  color: #cccccc !important;
  font-size: 13px;
  text-align: right;
}

/* Hover effects */
.header-phone:hover .phone-number {
  color: var(--primary-light) !important;
}

.header-phone:hover .material-icons {
  color: var(--primary-light) !important;
}

/* ==========================================================================
   HEADER RESPONSIVE BREAKPOINTS - Skonsolidowane
   ========================================================================== */

/* NADPISANIE WordPress columns - zapobiega konfliktom z .wp-block-column */
@media (max-width: 992px) {
  /* Nadpisz wszystkie WordPress column styles w headerze */
  .header-container,
  .site-header,
  header {
    flex-wrap: nowrap !important;
  }
  
  .header-container .wp-block-column,
  .site-header .wp-block-column,
  header .wp-block-column,
  .header-container .wp-block-columns > *,
  .site-header .wp-block-columns > *,
  header .wp-block-columns > * {
    flex-basis: auto !important;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Wyłącz wszystkie WordPress column flexbox rules dla headera */
  .header-container .wp-block-columns,
  .site-header .wp-block-columns,
  header .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
}

/* Desktop layout - tylko dla bardzo dużych ekranów */
@media (min-width: 993px) {
  body .header-container,
  .wp-site-blocks .header-container,
  .site-header .header-container,
  header .header-container {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 20px !important;
    text-align: left !important;
    padding: 20px 15px !important;
  }
  
  body .header-logo,
  .wp-site-blocks .header-logo,
  .site-header .header-logo,
  header .header-logo {
    justify-content: flex-start !important;
    text-align: left !important;
    order: 1 !important;
    margin-bottom: 0 !important;
  }
  
  body .header-location,
  .wp-site-blocks .header-location,
  .site-header .header-location,
  header .header-location {
    justify-content: flex-end !important;
    text-align: right !important;
    order: 2 !important;
    margin-top: 0 !important;
  }
  
  body .header-phone,
  .wp-site-blocks .header-phone,
  .site-header .header-phone,
  header .header-phone {
    justify-content: flex-end !important;
    text-align: right !important;
    order: 3 !important;
    margin-bottom: 0 !important;
  }
}

/* Większe tablety - większe czcionki i logo */
@media (min-width: 769px) and (max-width: 992px) {
  body .header-container,
  .wp-site-blocks .header-container,
  .site-header .header-container,
  header .header-container {
    padding: 25px 20px !important;
    gap: 20px !important;
  }
  
  body .header-logo img,
  .wp-site-blocks .header-logo img,
  .site-header .header-logo img,
  header .header-logo img {
    max-height: 75px !important;
  }
  
  body .header-logo,
  .wp-site-blocks .header-logo,
  .site-header .header-logo,
  header .header-logo {
    margin-bottom: 20px !important;
  }
  
  body .header-phone,
  .wp-site-blocks .header-phone,
  .site-header .header-phone,
  header .header-phone {
    margin-bottom: 15px !important;
  }
  
  .header-phone .material-icons,
  .header-location .material-icons {
    font-size: 32px !important;
  }
  
  .header-phone .phone-number {
    font-size: 22px !important;
  }
  
  .header-location .location-main {
    font-size: 16px !important;
  }
}

/* Mobile - mniejsze czcionki i padding */
@media (max-width: 768px) {
  body .header-container,
  .wp-site-blocks .header-container,
  .site-header .header-container,
  header .header-container {
    padding: 15px 10px !important;
    gap: 18px !important;
  }
  
  body .header-logo img,
  .wp-site-blocks .header-logo img,
  .site-header .header-logo img,
  header .header-logo img {
    max-height: 55px !important;
  }
  
  .header-phone .material-icons,
  .header-location .material-icons {
    font-size: 29px !important;
  }
  
  .header-phone .phone-number {
    font-size: 18px !important;
  }
  
  .header-location .location-main {
    font-size: 14px !important;
  }
}

/* Bardzo małe urządzenia - dodatkowe optymalizacje */
@media (max-width: 480px) {
  .header-container {
    padding: 12px 8px;
    gap: 15px;
  }
  
  .header-logo img {
    max-height: 50px;
  }
  
  .header-phone .material-icons,
  .header-location .material-icons {
    font-size: 24px !important;
  }
  
  .header-phone .phone-number {
    font-size: 16px !important;
  }
  
  .header-location .location-main {
    font-size: 13px !important;
  }
  
  .header-location .location-sub {
    font-size: 11px !important;
  }
}

/* ==========================================================================
   HEADER MENU STYLES - Tylko dla sekcji header
   ========================================================================== */

/* Sticky menu dla desktop - klasa topmenu */
.topmenu,
header .topmenu,
.wp-block-navigation.topmenu {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background-color: var(--bg-dark) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* JavaScript sticky menu - klasa is-sticky */
.topmenu.is-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100% !important;
  z-index: 999 !important;
  background-color: var(--bg-dark) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  padding: 15px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Kontener menu wewnątrz sticky */
.topmenu.is-sticky .wp-block-navigation__container,
.topmenu.is-sticky .wp-block-navigation-item,
.topmenu.is-sticky ul {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
  flex-wrap: nowrap !important;
}

/* WAŻNE: Submenu w sticky musi zachować pionowy układ */
.topmenu.is-sticky .wp-block-navigation__submenu-container {
  flex-direction: column !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  gap: 0 !important;
}

.topmenu.is-sticky .wp-block-navigation__submenu-container .wp-block-navigation-item {
  width: 100% !important;
  flex-direction: column !important;
}

/* Elementy listy menu w poziomie */
.topmenu.is-sticky li {
  display: inline-flex !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Linki w sticky menu */
.topmenu.is-sticky a {
  padding: 10px 15px !important;
  margin: 0 5px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
}

.topmenu.is-sticky a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dodatkowe wsparcie dla kontenerów menu */
body header,
.wp-site-blocks header,
.site-header {
  position: relative !important;
}

/* Tło menu - klasa topmenu */
.topmenu,
header .topmenu,
.topmenu .wp-block-navigation__responsive-container.is-menu-open,
.topmenu .wp-block-navigation__responsive-container-content {
  background-color: var(--bg-dark) !important;
}

/* Białe linki menu - klasa topmenu */
.topmenu a,
header .topmenu a {
  color: #ffffff !important;
  text-transform: uppercase;
  line-height: 1.25em;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  text-decoration: none;
}

.topmenu a:hover,
header .topmenu a:hover {
  color: var(--primary-light) !important;
}

/* Responsive sticky menu - klasa topmenu dla tablet/mobile */
@media (max-width: 991px) {
  .topmenu,
  header .topmenu,
  .wp-block-navigation.topmenu,
  .topmenu.is-sticky {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08) !important;
  }
  
  .topmenu.is-sticky {
    padding: 12px 15px !important;
  }
  
  .topmenu.is-sticky .wp-block-navigation__container,
  .topmenu.is-sticky .wp-block-navigation-item,
  .topmenu.is-sticky ul {
    gap: 20px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  .topmenu.is-sticky li {
    display: inline-flex !important;
  }
  
  .topmenu.is-sticky a {
    padding: 8px 12px !important;
    margin: 0 3px !important;
  }
}

/* Sticky menu submenu - od 768px do 991px (tablet) */
@media (min-width: 768px) and (max-width: 991px) {
  .topmenu.is-sticky .wp-block-navigation__submenu-container {
    background-color: var(--bg-dark) !important;
    border: 1px solid rgba(184, 155, 94, 0.3) !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 10px 0 !important;
    margin-top: 5px !important;
    min-width: 240px !important;
    width: auto !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    gap: 0 !important;
    z-index: 1000 !important;
  }
  
  .topmenu.is-sticky .wp-block-navigation__submenu-container .wp-block-navigation-item {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    flex-direction: column !important;
  }

  .topmenu.is-sticky .wp-block-navigation__submenu-container a {
    color: #ffffff !important;
    background: none !important;
    padding: 10px 20px !important;
    display: block !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
  }

  .topmenu.is-sticky .wp-block-navigation__submenu-container a:hover {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .topmenu,
  header .topmenu,
  .wp-block-navigation.topmenu,
  .topmenu.is-sticky {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06) !important;
  }
  
  .topmenu.is-sticky {
    padding: 10px 12px !important;
  }
  
  .topmenu.is-sticky .wp-block-navigation__container,
  .topmenu.is-sticky .wp-block-navigation-item,
  .topmenu.is-sticky ul {
    gap: 15px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  
  .topmenu.is-sticky li {
    display: inline-flex !important;
  }
  
  .topmenu.is-sticky a {
    padding: 6px 10px !important;
    margin: 0 2px !important;
    font-size: 13px !important;
  }
}

/* Hamburger button - klasa topmenu */
.topmenu .wp-block-navigation__responsive-container-open,
.topmenu .wp-block-navigation__responsive-container-close,
header .topmenu .wp-block-navigation__responsive-container-open,
header .topmenu .wp-block-navigation__responsive-container-close {
  color: #ffffff !important;
  background: transparent !important;
}

.topmenu .wp-block-navigation__responsive-container-open svg,
.topmenu .wp-block-navigation__responsive-container-close svg,
header .topmenu .wp-block-navigation__responsive-container-open svg,
header .topmenu .wp-block-navigation__responsive-container-close svg {
  fill: #ffffff !important;
}

/* Menu label - klasa topmenu */
.topmenu .wp-block-navigation__toggle_button_label,
header .topmenu .wp-block-navigation__toggle_button_label {
  color: #ffffff !important;
}

/* Dodaj napis "MENU" po hamburgerze na mobile - klasa topmenu */
@media (max-width: 991px) {
  .topmenu .wp-block-navigation__responsive-container-open::after,
  header .topmenu .wp-block-navigation__responsive-container-open::after {
    content: "MENU";
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
    letter-spacing: 0.5px !important;
  }
}

/* Style dla menu mobilnego */
@media (max-width: 991px) {
  
  /* Główne elementy menu mobilnego */
  header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    padding: 8px 15px !important;
    margin: 2px 0 !important;
    text-align: left !important;
  }
  
  /* Główne linki menu mobilnego */
  header .wp-block-navigation__responsive-container-content .wp-block-navigation-item > a {
    text-align: left !important;
    padding: 6px 0 !important;
  }
  
  /* Submenu w mobile menu - wszystkie rozmiary */
  header .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 5px 0 5px 20px !important;
    margin: 0 !important;
    min-width: auto !important;
    width: 100% !important;
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  header .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
  }

  header .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container a {
    color: #ffffff !important;
    background: none !important;
    padding: 4px 0 !important;
    display: block !important;
    text-decoration: none !important;
    font-size: 13px !important;
    border: none !important;
    opacity: 0.9 !important;
  }

  header .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container a:hover {
    opacity: 1 !important;
    color: var(--primary-light) !important;
  }
}

/* Usuń obramowanie z aktywnych elementów w mobile */
@media (max-width: 991px) {
  header .wp-block-navigation a:focus,
  header .wp-block-navigation a:active,
  header .wp-block-navigation__responsive-container-open:focus,
  header .wp-block-navigation__responsive-container-close:focus,
  header .wp-block-navigation__responsive-container-open:active,
  header .wp-block-navigation__responsive-container-close:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* Usuń wszystkie border z menu mobilnego */
  header .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
  header .wp-block-navigation__responsive-container-content .wp-block-navigation-item a {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  
  /* Usuń linie separatora między elementami menu */
  header .wp-block-navigation__responsive-container-content .wp-block-navigation-item::before,
  header .wp-block-navigation__responsive-container-content .wp-block-navigation-item::after {
    display: none !important;
    content: none !important;
  }
}

/* Ukryj domyślne strzałki WordPress */
header .wp-block-navigation .wp-block-navigation__submenu-icon,
header .wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-icon {
  display: none !important;
}

/* Białe strzałki dla wszystkich elementów menu głównego */
header .wp-block-navigation .wp-block-navigation-item > a::after,
header .wp-block-navigation .wp-block-navigation-submenu > .wp-block-navigation-item__label::after,
header .wp-block-navigation .wp-block-navigation-submenu > button::after,
header .wp-block-navigation .wp-block-navigation-submenu > a::after {
  content: "keyboard_arrow_down" !important;
  font-family: 'Material Icons' !important;
  color: #ffffff !important;
  font-size: 16px !important;
  margin-left: 8px !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
  direction: ltr !important;
  -webkit-font-feature-settings: 'liga' !important;
  font-feature-settings: 'liga' !important;
  vertical-align: middle !important;
  display: inline-block !important;
  position: relative !important;
  top: -1px !important;
}

/* Ukryj strzałki dla elementów wewnątrz submenu (dzieci submenu) */
header .wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation__submenu-container a::after,
header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a::after {
  display: none !important;
}

/* Desktop submenu styles - tylko dla desktop */
@media (min-width: 992px) {
  header .wp-block-navigation .wp-block-navigation__submenu-container {
    background-color: var(--bg-dark) !important;
    border: 1px solid rgba(184, 155, 94, 0.3) !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 10px 0 !important;
    margin-top: 5px !important;
    min-width: 280px !important;
    width: auto !important;
  }
  
  header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header .wp-block-navigation .wp-block-navigation__submenu-container a {
    color: #ffffff !important;
    background: none !important;
    padding: 10px 20px !important;
    display: block !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border: none !important;
    transition: all 0.3s ease !important;
  }

  header .wp-block-navigation .wp-block-navigation__submenu-container a:hover {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    transform: none !important;
  }
}

.headgroup {
  padding-top: 15px !important;
}

/* ==========================================================================
   SINGLE POST/PAGE LAYOUT
   ========================================================================== */

/* Usuń odstęp między headerem a obrazkiem wyróżniającym */
.wp-block-post-featured-image {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Usuń margines z górnej części main content */
main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Usuń padding z header gdy występuje przed obrazkiem */
header + .wp-block-post-featured-image,
.site-header + .wp-block-post-featured-image,
.wp-site-blocks header + .wp-block-post-featured-image {
  margin-top: 0 !important;
}

/* NADPISANIE rozmiaru fontu dla tytułu posta */
.wp-block-post-title.has-x-large-font-size {
  font-size: 1.2em !important;
}


/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

/* NADPISANIE WordPress columns breakpoint z 781px na 992px - AGRESYWNE */
@media (max-width: 992px) {
  /* Nadpisz WordPress domyślny breakpoint dla wszystkich columns */
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  
  /* Wymuś mobilny layout dla wszystkich columns */
  .wp-block-columns {
    flex-wrap: wrap !important;
    flex-direction: column !important;
  }
  
  .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
}

/* Przywróć WordPress desktop layout od 993px */
@media (min-width: 993px) {
  .wp-block-columns {
    flex-wrap: nowrap !important;
  }
  
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 0 !important;
    flex-grow: 1 !important;
  }
  
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*=flex-basis] {
    flex-grow: 0 !important;
  }
}

/* NADPISANIE WordPress columns dla stopki - IDENTYCZNE Z HEADEREM */

/* Nadpisanie WordPress reguł dla stopki od 782px do 991px */
@media (min-width: 782px) and (max-width: 991px) {
  html body footer .wp-block-columns,
  html body footer .wp-block-columns.wp-block-columns {
    flex-wrap: wrap !important; /* Nadpisuje WordPress flex-wrap:nowrap !important */
    flex-direction: column !important;
    display: flex !important;
    align-items: stretch !important;
  }
  
  html body footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
  html body footer .wp-block-column,
  html body footer .wp-block-columns > * {
    flex-basis: 100% !important; /* Nadpisuje WordPress flex-basis:0 */
    flex-grow: 0 !important; /* Nadpisuje WordPress flex-grow:1 */
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
    display: block !important;
  }
}

/* Stopka do 991px - mobilny layout */
@media (max-width: 991px) {
  html body footer .wp-block-columns,
  html body footer .wp-block-columns.wp-block-columns {
    flex-direction: column !important;
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
  }
  
  html body footer .wp-block-column,
  html body footer .wp-block-columns > *,
  html body footer .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
    display: block !important;
    flex-grow: 0 !important;
  }
}

/* Desktop layout dla stopki - elementy obok siebie */
@media (min-width: 992px) {
  footer .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 30px !important;
  }
  
  footer .wp-block-column,
  footer .wp-block-columns > * {
    flex: 1 !important;
    margin-bottom: 0 !important;
    width: auto !important;
  }
}

/* Tło stopki */
footer {
  background-color: var(--bg-dark) !important;
  color: #ffffff !important;
  padding: 20px 0 20px 0 !important;
}

/* Kontener stopki */
footer .wp-block-group,
footer .wp-block-columns,
footer .wp-block-column {
  background-color: var(--bg-dark) !important;
  color: #ffffff !important;
}

/* Nagłówki w stopce */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
  font-weight: 600 !important;
  margin-bottom: 15px !important;
}

/* Teksty w stopce */
footer p, footer span, footer div {
  color: #ffffff !important;
  line-height: 1.6 !important;
}

/* Linki w stopce */
footer a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

footer a:hover {
  color: var(--primary-light) !important;
}

/* Listy w stopce ze strzałkami */
footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

footer ul li {
  position: relative !important;
  padding-left: 25px !important;
  margin-bottom: 8px !important;
  color: #ffffff !important;
  line-height: 1.6 !important;
}

footer ul li::before {
  content: "arrow_forward_ios" !important;
  font-family: 'Material Icons' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: var(--primary-color) !important;
  font-size: 12px !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1.6 !important;
}

footer ul li a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: block !important;
}

footer ul li a:hover {
  color: var(--primary-light) !important;
}

/* Informacje o prawach autorskich */
footer .wp-block-paragraph.has-text-align-center,
footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 20px !important;
  margin-top: 30px !important;
  text-align: center !important;
  color: #cccccc !important;
  font-size: 14px !important;
}

/* Style dla codewidget-2 arrows */
footer .codewidget-2 {
  background-color: var(--bg-dark) !important;
  padding: 25px !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
}

/* Nagłówek h3 w codewidget-2 używa globalnych stylów widgetów */

footer .codewidget-2 h4 {
  color: var(--primary-light) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  margin: 20px 0 15px 0 !important;
  letter-spacing: 0.5px !important;
}

footer .codewidget-2 .company-name p {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  margin-bottom: 15px !important;
  letter-spacing: 1px !important;
}

/* Style dla list kontaktowych */
footer .codewidget-2 .contact-list ul {
  margin-bottom: 25px !important;
}

footer .codewidget-2 .contact-list ul li {
  font-size: 14px !important;
  font-weight: 500 !important;
  padding-left: 25px !important;
  margin-bottom: 10px !important;
  line-height: 1.5 !important;
}

footer .codewidget-2 .contact-list ul li::before {
  content: "location_on" !important;
  font-size: 14px !important;
  color: var(--primary-color) !important;
  top: 2px !important;
}

/* Ikony specjalne dla różnych typów kontaktu */
footer .codewidget-2 .contact-list ul li:nth-child(1)::before {
  content: "location_on" !important;
}

footer .codewidget-2 .contact-list ul li:nth-child(2)::before {
  content: "phone" !important;
}

footer .codewidget-2 .contact-list ul li:nth-child(3)::before {
  content: "smartphone" !important;
}

footer .codewidget-2 .contact-list ul li:nth-child(4)::before {
  content: "email" !important;
}

/* Style dla listy usług */
footer .codewidget-2 .services-list ul li {
  font-size: 14px !important;
  padding-left: 25px !important;
  margin-bottom: 8px !important;
  color: #ffffff !important;
  line-height: 1.6 !important;
}

footer .codewidget-2 .services-list ul li::before {
  content: "arrow_forward_ios" !important;
  font-size: 12px !important;
  color: var(--primary-color) !important;
  top: 1px !important;
}

/* Linki w codewidget-2 */
footer .codewidget-2 a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

footer .codewidget-2 a:hover {
  color: var(--primary-light) !important;
  text-decoration: underline !important;
}

/* NADPISANIE - WordPress columns dla stopki - IDENTYCZNE Z HEADEREM */
@media (max-width: 992px) {
  /* Maksymalna specyficzność dla stopki */
  html body.wp-site-blocks footer .wp-block-columns,
  html body.wp-site-blocks footer .wp-block-columns.wp-block-columns,
  html body footer .wp-block-columns,
  html body footer .wp-block-columns.wp-block-columns {
    flex-wrap: wrap !important; 
    flex-direction: column !important;
    display: flex !important;
    align-items: stretch !important;
  }
  
  html body.wp-site-blocks footer .wp-block-column,
  html body.wp-site-blocks footer .wp-block-columns > .wp-block-column,
  html body footer .wp-block-column,
  html body footer .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
    display: block !important;
    flex-grow: 0 !important;
  }
}

/* Specjalne nadpisanie od 600px do 991px */
@media (min-width: 600px) and (max-width: 991px) {
  html body.wp-site-blocks footer .wp-block-columns {
    flex-wrap: wrap !important; 
    flex-direction: column !important;
    display: flex !important;
    align-items: stretch !important;
  }
  
  html body.wp-site-blocks footer .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
    display: block !important;
    flex-grow: 0 !important;
    align-self: stretch !important;
    flex-direction: column !important;
  }
}

/* Wyrównanie wszystkich widgetów stopki do góry - TYLKO DESKTOP */
@media (min-width: 992px) {
  footer .wp-block-columns {
    align-items: stretch !important;
    display: flex !important;
  }

  footer .wp-block-column {
    align-self: stretch !important;
    vertical-align: top !important;
    display: flex !important;
    flex-direction: column !important;
  }

  footer .wp-block-column > * {
    align-self: flex-start !important;
  }
}

/* Style dla wszystkich widgetów stopki (informacje, kontakt, itp.) */
footer .wp-block-widget-area,
footer .widget,
footer [class*="widget"],
footer [id*="widget"] {
  background-color: var(--bg-dark) !important;
  padding: 0 !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
}

/* Nagłówki we wszystkich widgetach (w tym codewidget-2) */
footer .wp-block-widget-area h3,
footer .wp-block-widget-area h4,
footer .widget h3,
footer .widget h4,
footer [class*="widget"] h3,
footer [class*="widget"] h4,
footer [id*="widget"] h3,
footer [id*="widget"] h4 {
  color: var(--primary-color) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 20px !important;
  border-bottom: 2px solid var(--primary-color) !important;
  padding-bottom: 10px !important;
}

/* Listy we wszystkich widgetach ze strzałkami */
footer .wp-block-widget-area ul,
footer .widget ul,
footer [class*="widget"] ul:not(.codewidget-2 ul),
footer [id*="widget"] ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

footer .wp-block-widget-area ul li,
footer .widget ul li,
footer [class*="widget"] ul li:not(.codewidget-2 ul li),
footer [id*="widget"] ul li {
  position: relative !important;
  padding-left: 25px !important;
  margin-bottom: 8px !important;
  color: #ffffff !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
}

footer .wp-block-widget-area ul li::before,
footer .widget ul li::before,
footer [class*="widget"] ul li::before:not(.codewidget-2 ul li::before),
footer [id*="widget"] ul li::before {
  content: "arrow_forward_ios" !important;
  font-family: 'Material Icons' !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  color: var(--primary-color) !important;
  font-size: 12px !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1 !important;
}

/* Linki we wszystkich widgetach */
footer .wp-block-widget-area a,
footer .widget a,
footer [class*="widget"] a:not(.codewidget-2 a),
footer [id*="widget"] a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

footer .wp-block-widget-area a:hover,
footer .widget a:hover,
footer [class*="widget"] a:hover:not(.codewidget-2 a:hover),
footer [id*="widget"] a:hover {
  color: var(--primary-light) !important;
  text-decoration: underline !important;
}

/* Teksty we wszystkich widgetach */
footer .wp-block-widget-area p,
footer .widget p,
footer [class*="widget"] p:not(.codewidget-2 p),
footer [id*="widget"] p {
  color: #ffffff !important;
  line-height: 1.6 !important;
  margin-bottom: 10px !important;
  font-size: 14px !important;
}

/* Globalne ustawienie jednolitej czcionki w stopce (oprócz głównych nagłówków h3) */
body footer h3.wp-block-heading,
body footer .wp-block-widget-area h3.wp-block-heading,
body footer .widget h3.wp-block-heading,
body footer [class*="widget"] h3.wp-block-heading,
body footer [id*="widget"] h3.wp-block-heading,
body footer .wp-block-column h3.wp-block-heading,
body footer h3,
body footer .wp-block-widget-area h3,
body footer .widget h3,
body footer [class*="widget"] h3,
body footer [id*="widget"] h3,
body footer .wp-block-column h3 {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

footer h1, footer h2 {
  font-size: 20px !important;
  line-height: 1.3 !important;
}

/* Tablet - średnie optymalizacje dla stopki */
@media (min-width: 769px) and (max-width: 992px) {
  footer {
    padding: 35px 20px !important;
  }
  
  footer .wp-block-column {
    margin-bottom: 25px !important;
  }
  
  /* Tablet rozmiary nagłówków - UJEDNOLICENIE WSZYSTKICH H3 z wysoką specyficznością */
  body footer h3.wp-block-heading,
  body footer .wp-block-widget-area h3.wp-block-heading,
  body footer .widget h3.wp-block-heading,
  body footer [class*="widget"] h3.wp-block-heading,
  body footer [id*="widget"] h3.wp-block-heading,
  body footer .wp-block-column h3.wp-block-heading,
  body footer h3,
  body footer .wp-block-widget-area h3,
  body footer .widget h3,
  body footer [class*="widget"] h3,
  body footer [id*="widget"] h3,
  body footer .wp-block-column h3 {
    font-size: 18px !important;
  }
  
  footer h4 {
    font-size: 15px !important;
  }
}

/* Mobile - dodatkowe optymalizacje dla stopki */
@media (max-width: 768px) {
  footer {
    padding: 30px 15px 15px 15px !important;
  }
  
  footer .codewidget-2 {
    padding: 20px !important;
    margin-bottom: 15px !important;
  }
  
  /* Responsive rozmiary nagłówków - UJEDNOLICENIE WSZYSTKICH H3 z wysoką specyficznością */
  body footer h3.wp-block-heading,
  body footer .wp-block-widget-area h3.wp-block-heading,
  body footer .widget h3.wp-block-heading,
  body footer [class*="widget"] h3.wp-block-heading,
  body footer [id*="widget"] h3.wp-block-heading,
  body footer .wp-block-column h3.wp-block-heading,
  body footer h3,
  body footer .wp-block-widget-area h3,
  body footer .widget h3,
  body footer [class*="widget"] h3,
  body footer [id*="widget"] h3,
  body footer .wp-block-column h3 {
    font-size: 16px !important;
    margin-bottom: 15px !important;
  }
  
  footer h4 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }
  
  /* Responsive dla wszystkich widgetów */
  footer .wp-block-widget-area,
  footer .widget,
  footer [class*="widget"],
  footer [id*="widget"] {
    padding: 20px !important;
    margin-bottom: 15px !important;
  }
}

/* ==========================================================================
   SWIPER SLIDER STYLES
   ========================================================================== */

/* Kontener główny slidera */
.custom-slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 40px auto;
  background-color: var(--bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Fullwidth slider - na całą szerokość viewport */
.custom-slider-container.swiper-fullwidth {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100vw !important;
  position: relative;
}

/* Dodatkowe style dla fullwidth */
.swiper-fullwidth .custom-slider {
  border-radius: 0;
}

.swiper-fullwidth .swiper-slide {
  border-radius: 0;
}

/* Swiper wrapper */
.custom-slider .swiper {
  width: 100%;
  max-width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.custom-slider .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay dla lepszej czytelności tekstu - tylko gdy jest obraz */
.custom-slider .swiper-slide[style*="background-image"] .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 20, 18, 0.4), rgba(20, 20, 18, 0.2));
  z-index: 1;
}

/* Fallback bez overlay dla slajdów bez obrazu */
.custom-slider .swiper-slide:not([style*="background-image"]) {
  background: var(--bg-dark);
}

.custom-slider .swiper-slide:not([style*="background-image"]) .slide-overlay {
  display: none;
}

/* Zawartość slajdu */
.custom-slider .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 40px;
}

.custom-slider .slide-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.custom-slider .slide-subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 30px;
  color: var(--primary-light);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.custom-slider .slide-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ffffff;
  opacity: 0.9;
}

.custom-slider .slide-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.custom-slider .slide-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.custom-slider .slide-button .material-icons {
  font-size: 20px;
}

/* Nawigacja Swiper */
.custom-slider .swiper-button-next,
.custom-slider .swiper-button-prev {
  color: #ffffff;
  background: rgba(20, 20, 18, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-top: -25px;
  transition: all 0.3s ease;
}

.custom-slider .swiper-button-next:after,
.custom-slider .swiper-button-prev:after {
  font-size: 20px;
  font-weight: 700;
}

.custom-slider .swiper-button-next:hover,
.custom-slider .swiper-button-prev:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Pagination */
.custom-slider .swiper-pagination {
  bottom: 20px;
}

.custom-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.custom-slider .swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 992px) {
  .custom-slider .swiper {
    height: 400px;
  }
  
  .custom-slider .slide-content {
    padding: 0 30px;
  }
  
  .custom-slider .slide-title {
    font-size: 36px;
  }
  
  .custom-slider .slide-subtitle {
    font-size: 20px;
  }
  
  .custom-slider .slide-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .custom-slider-container {
    margin: 30px auto;
    border-radius: 8px;
  }
  
  .custom-slider .swiper {
    height: 350px;
  }
  
  .custom-slider .slide-content {
    padding: 0 20px;
  }
  
  .custom-slider .slide-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .custom-slider .slide-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .custom-slider .slide-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  .custom-slider .slide-button {
    padding: 12px 25px;
    font-size: 15px;
  }
  
  .custom-slider .swiper-button-next,
  .custom-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  
  .custom-slider .swiper-button-next:after,
  .custom-slider .swiper-button-prev:after {
    font-size: 16px;
  }
}

/* ==========================================================================
   SWIPER EFFECTS STYLES
   ========================================================================== */

/* Cube Effect */
.custom-slider .swiper-cube .swiper-slide {
  pointer-events: none;
}

.custom-slider .swiper-cube .swiper-slide-active {
  pointer-events: auto;
}

.custom-slider .swiper-cube .swiper-cube-shadow {
  background: rgba(0, 0, 0, 0.4);
}

/* Coverflow Effect */
.custom-slider .swiper-coverflow {
  overflow: visible;
}

.custom-slider .swiper-coverflow .swiper-slide {
  transition: transform 0.3s ease;
}

.custom-slider .swiper-coverflow .swiper-slide-shadow {
  background: rgba(0, 0, 0, 0.2);
}

/* Flip Effect */
.custom-slider .swiper-flip .swiper-slide {
  pointer-events: none;
}

.custom-slider .swiper-flip .swiper-slide-active,
.custom-slider .swiper-flip .swiper-slide-next {
  pointer-events: auto;
}

/* Slide Effect - poprawione ustawienia */
.custom-slider .swiper-horizontal > .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.custom-slider .swiper-slide {
  transition: transform 0.6s ease;
  background-color: var(--bg-dark);
  width: 100% !important;
  max-width: 100%;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

/* Specjalne ustawienia dla slide effect loop */
.custom-slider .swiper-slide:not(.swiper-slide-duplicate) {
  opacity: 1;
}

.custom-slider .swiper-slide-duplicate {
  opacity: 1 !important;
}

/* Fade Effect - smooth opacity transitions */
.custom-slider .swiper-fade .swiper-slide {
  transition: opacity 0.8s ease-in-out;
}

/* STOPKA - NADPISANIE WordPress LAYOUT CLASSES */
@media (max-width: 991px) {
  /* Nadpisanie WordPress is-layout-flex w stopce */
  footer .is-layout-flex,
  footer .wp-block-columns.is-layout-flex,
  footer .wp-container-core-group-is-layout-flex.wp-container-core-group-is-layout-flex.wp-container-core-group-is-layout-flex,
  footer [class*="wp-container-core-group-is-layout"] {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }
  
  footer .is-layout-flex > *,
  footer .wp-block-columns.is-layout-flex > *,
  footer .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    display: block !important;
    margin-bottom: 30px !important;
    flex-grow: 0 !important;
  }
  
  /* Nuclear option dla wszystkich container classes */
  footer [class*="wp-container-core-group-is-layout"] {
    justify-content: flex-start !important;
    align-items: stretch !important;
    flex-direction: column !important;
  }
}

/* GLOBALNE NADPISANIE WordPress LAYOUT CLASSES - PODOBNIE JAK HEADER */
@media (max-width: 991px) {
  /* Wyłączenie justify-content i align-items dla wszystkich layout flex w stopce */
  footer .wp-container-core-group-is-layout-flex,
  footer [class*="wp-container-core-group-is-layout-e"] {
    justify-content: flex-start !important;
    align-items: stretch !important;
    flex-direction: column !important;
  }
}

/* Napraw slide direction */
.custom-slider .swiper-wrapper {
  transform: translateZ(0); /* Hardware acceleration */
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible; /* Pozwala na smooth sliding */
}

/* Prevent black background flash */
.custom-slider .swiper {
  background-color: var(--bg-dark);
  overflow: hidden !important; /* Bardzo ważne - ucina wszystko co wychodzi poza */
  position: relative;
}

/* ==========================================================================
   WORDPRESS FONT SIZE OVERRIDES
   ========================================================================== */

/* Override WordPress preset font-size--large to 1rem with proper line-height */
:root {
  --wp--preset--font-size--large: 1rem;
}

/* Apply the override to elements using the large font size */
.has-large-font-size,
[style*="font-size:var(--wp--preset--font-size--large)"],
*[style*="font-size: var(--wp--preset--font-size--large)"] {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* ==========================================================================
   CONTAINER QUERIES OVERRIDE - NADPISANIE theme.json wideSize: 1340px
   ========================================================================== */

/* NUCLEAR OPTION dla container queries - maksymalna specyficzność */
@media (min-width: 992px) {
  body footer .wp-block-columns.is-layout-flex.is-layout-flex.is-layout-flex,
  body footer .wp-container-core-group-is-layout-flex.wp-container-core-group-is-layout-flex.wp-container-core-group-is-layout-flex,
  body footer [class*="wp-container-core-group-is-layout"].wp-block-columns.wp-block-columns,
  body footer .is-layout-flex.wp-block-columns.wp-block-columns,
  html body footer .wp-block-columns.is-layout-flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }
  
  /* Nadpisanie dzieci kolumn */
  body footer .wp-block-columns > .wp-block-column,
  body footer [class*="wp-container-core-group-is-layout"] > .wp-block-column {
    width: auto !important;
    max-width: none !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    margin-bottom: 0 !important;
  }
}

/* Dodatkowe container queries override */
@container (min-width: 992px) {
  footer .wp-block-columns.is-layout-flex {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
}

/* Nadpisanie wszystkich możliwych WordPress automatycznych container rules dla wideSize: 1340px */
@media (min-width: 992px) and (max-width: 1399px) {
  body footer .wp-block-columns.is-layout-flex,
  body footer .wp-container-core-group-is-layout-flex {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }
}
/* NUCLEAR OPTION - maksymalne nadpisanie WordPress pullquote */
body .wp-block-pullquote,
.wp-block-pullquote.wp-block-pullquote,
.entry-content .wp-block-pullquote {
  position: relative !important;
  background-color: #bf9e58 !important;
  border: none !important;
  border-top: 3px solid var(--primary-color) !important;
  border-bottom: 3px solid var(--primary-color) !important;
  border-radius: 0 !important;
  padding: 60px 40px !important;
  margin: 50px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Usunięte cudzysłowy - teraz tylko wzór w tle */

body .wp-block-pullquote blockquote,
.wp-block-pullquote.wp-block-pullquote blockquote,
.entry-content .wp-block-pullquote blockquote {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

body .wp-block-pullquote blockquote p,
.wp-block-pullquote.wp-block-pullquote blockquote p,
.entry-content .wp-block-pullquote blockquote p,
body .wp-block-pullquote p,
.wp-block-pullquote.wp-block-pullquote p,
.entry-content .wp-block-pullquote p {
  font-family: 'Times New Roman', serif !important;
  font-size: 28px !important;
  line-height: 1.4 !important;
  color: #ffffff !important;
  font-style: italic !important;
  font-weight: 400 !important;
  margin: 0 !important;
  text-align: center !important;
  letter-spacing: 0.8px !important;
  position: relative !important;
  z-index: 2 !important;
}

body .wp-block-pullquote blockquote cite,
body .wp-block-pullquote cite,
.wp-block-pullquote.wp-block-pullquote blockquote cite,
.wp-block-pullquote.wp-block-pullquote cite,
.entry-content .wp-block-pullquote blockquote cite,
.entry-content .wp-block-pullquote cite {
  display: block !important;
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  color: var(--primary-color) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  text-align: right !important;
  margin-top: 25px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

body .wp-block-pullquote blockquote cite::before,
body .wp-block-pullquote cite::before,
.wp-block-pullquote.wp-block-pullquote blockquote cite::before,
.wp-block-pullquote.wp-block-pullquote cite::before,
.entry-content .wp-block-pullquote blockquote cite::before,
.entry-content .wp-block-pullquote cite::before {
  content: "— " !important;
  color: var(--primary-color) !important;
  font-weight: 400 !important;
}

/* Wariant z tłem w kolorze primary */
.wp-block-pullquote.is-style-solid-color {
  background: var(--primary-color);
  border-left: 4px solid #ffffff;
}

.wp-block-pullquote.is-style-solid-color::before {
  color: rgba(255, 255, 255, 0.3);
}

.wp-block-pullquote.is-style-solid-color blockquote p {
  color: #ffffff;
}

.wp-block-pullquote.is-style-solid-color cite {
  color: #ffffff;
}

/* Responsive Design z wysoką specyficznością */
@media (max-width: 768px) {
  body .wp-block-pullquote,
  .wp-block-pullquote.wp-block-pullquote,
  .entry-content .wp-block-pullquote {
    padding: 40px 20px !important;
    margin: 30px 0 !important;
    background-size: 15px 15px !important;
  }
  
  body .wp-block-pullquote blockquote p,
  body .wp-block-pullquote p,
  .wp-block-pullquote.wp-block-pullquote blockquote p,
  .wp-block-pullquote.wp-block-pullquote p,
  .entry-content .wp-block-pullquote blockquote p,
  .entry-content .wp-block-pullquote p {
    font-size: 20px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
  }
  
  body .wp-block-pullquote cite,
  .wp-block-pullquote.wp-block-pullquote cite,
  .entry-content .wp-block-pullquote cite {
    font-size: 14px !important;
    margin-top: 20px !important;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  body .wp-block-pullquote,
  .wp-block-pullquote.wp-block-pullquote,
  .entry-content .wp-block-pullquote {
    padding: 50px 30px !important;
    margin: 40px 0 !important;
    background-size: 18px 18px !important;
  }
  
  body .wp-block-pullquote blockquote p,
  body .wp-block-pullquote p,
  .wp-block-pullquote.wp-block-pullquote blockquote p,
  .wp-block-pullquote.wp-block-pullquote p,
  .entry-content .wp-block-pullquote blockquote p,
  .entry-content .wp-block-pullquote p {
    font-size: 24px !important;
    letter-spacing: 0.6px !important;
  }
}

/* ==========================================================================
   PULLQUOTE NA CAŁĄ SZEROKOŚĆ STRONY I PRZYKLEJENIE DO STOPKI
   ========================================================================== */

/* Pullquote na całą szerokość strony dotykający do stopki */
.wp-block-pullquote.full-width {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* Kontener dla pullquote na samym końcu strony */
.wp-block-pullquote.full-width.footer-attached {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Wrapper strony musi mieć position relative dla absolute positioning */
body.has-footer-pullquote,
.wp-site-blocks.has-footer-pullquote,
main.has-footer-pullquote {
  position: relative !important;
  min-height: 100vh !important;
  padding-bottom: 150px !important;
}

/* Responsive dla pullquote na całą szerokość */
@media (max-width: 768px) {
  .wp-block-pullquote.full-width {
    padding: 40px 15px !important;
  }
  
  body.has-footer-pullquote,
  .wp-site-blocks.has-footer-pullquote,
  main.has-footer-pullquote {
    padding-bottom: 120px !important;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .wp-block-pullquote.full-width {
    padding: 50px 30px !important;
  }
  
  body.has-footer-pullquote,
  .wp-site-blocks.has-footer-pullquote,
  main.has-footer-pullquote {
    padding-bottom: 140px !important;
  }
}

/* ==========================================================================
   STYLOWANIE IKON W SEKCJACH FIRMA
   ========================================================================== */

/* Style dla ikon w sekcji firma-opinie */
.firma-opinie .material-icons {
  border: 5px solid #fff !important;
  border-radius: 50% !important;
  color: #C6A561 !important;
  background: #1F1F1F !important;
  font-size: 42px !important;
  height: 115px !important;
  width: 115px !important;
  line-height: 115px !important;
  box-shadow: 0 0 25px rgba(0,0,0,0.3) !important;
  transition: all .3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px auto !important;
}

.firma-opinie .material-icons:hover {
  color: #fff !important;
  background: #C6A561 !important;
  transform: scale(1.05) !important;
}

/* Style dla ikon w sekcji firma-kontakt */
.firma-kontakt .material-icons {
  border: 5px solid #fff !important;
  border-radius: 50% !important;
  color: #C6A561 !important;
  background: #1F1F1F !important;
  font-size: 42px !important;
  height: 115px !important;
  width: 115px !important;
  line-height: 115px !important;
  box-shadow: 0 0 25px rgba(0,0,0,0.3) !important;
  transition: all .3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px auto !important;
}

.firma-kontakt .material-icons:hover {
  color: #fff !important;
  background: #C6A561 !important;
  transform: scale(1.05) !important;
}

/* Stylizacja sekcji firma */
.firma-opinie, .firma-kontakt {
 padding: 30px !important;
  margin-bottom: 20px !important;
}

/* Responsive dla ikon */
@media (max-width: 768px) {
  .firma-opinie .material-icons {
    font-size: 32px !important;
    height: 80px !important;
    width: 80px !important;
    line-height: 80px !important;
    margin: 0 auto 15px auto !important;
  }
  
  .firma-kontakt .material-icons {
    font-size: 32px !important;
    height: 80px !important;
    width: 80px !important;
    line-height: 80px !important;
    margin: 0 auto 15px auto !important;
  }
  
  .firma-opinie, .firma-kontakt {
    padding: 20px !important;
  }
}

/* ==========================================================================
   STYLOWANIE TYTUŁÓW OPINIE 
   ========================================================================== */

/* Tytuły w sekcjach firma-opinie i firma-kontakt */
.firma-opinie h2,
.firma-opinie h3,
.firma-opinie .title,
.firma-kontakt h2,
.firma-kontakt h3,
.firma-kontakt .title {
  font-family: var(--font-primary) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  color: #1F1F1F !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin: 0 0 30px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* Dodatkowy styl dla pierwszego tekstu/nagłówka */
.firma-opinie > *:first-child:not(.material-icons),
.firma-kontakt > *:first-child:not(.material-icons) {
  font-family: var(--font-primary) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  color: #1F1F1F !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin: 0 0 30px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* Teksty opisowe pod tytułami */
.firma-opinie p,
.firma-kontakt p {
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #666 !important;
  text-align: center !important;
  line-height: 1.6 !important;
  margin: 0 0 20px 0 !important;
  padding: 0 20px !important;
}

/* Responsive dla tytułów */
@media (max-width: 768px) {
  .firma-opinie h2,
  .firma-opinie h3,
  .firma-opinie .title,
  .firma-kontakt h2,
  .firma-kontakt h3,
  .firma-kontakt .title,
  .firma-opinie > *:first-child:not(.material-icons),
  .firma-kontakt > *:first-child:not(.material-icons) {
    font-size: 24px !important;
    letter-spacing: 1px !important;
    margin: 0 0 20px 0 !important;
  }
  
  .firma-opinie p,
  .firma-kontakt p {
    font-size: 14px !important;
    padding: 0 15px !important;
    margin: 0 0 15px 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .firma-opinie h2,
  .firma-opinie h3,
  .firma-opinie .title,
  .firma-kontakt h2,
  .firma-kontakt h3,
  .firma-kontakt .title,
  .firma-opinie > *:first-child:not(.material-icons),
  .firma-kontakt > *:first-child:not(.material-icons) {
    font-size: 28px !important;
    letter-spacing: 1.5px !important;
  }
}
