/* === BAZA WIEDZY (bw-) === */
.bw-hero, .bw-section, .bw-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding-left: clamp(1rem, 4vw, 2rem) !important;
  padding-right: clamp(1rem, 4vw, 2rem) !important;
}
.bw-grid, .bw-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important;
  gap: var(--mk-gap) !important;
}
@media (max-width: 767px) {
  [class^="bw-"] { font-size: var(--mk-fs-base) !important; }
  [class^="bw-"] h1 { font-size: var(--mk-fs-2xl) !important; }
  [class^="bw-"] h2 { font-size: var(--mk-fs-xl) !important; }
}

/* === BLOG / NEWS (bn-) === */
.bn-hero, .bn-container, .bn-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.bn-card, .bn-post {
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 767px) {
  .bn-grid { grid-template-columns: 1fr !important; }
  [class^="bn-"] [style*="white-space"] { white-space: normal !important; }
}

/* === DO POBRANIA (dp-) === */
.dp-table, .dp-list {
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dp-row, .dp-item {
  flex-wrap: wrap !important;
}
@media (max-width: 767px) {
  .dp-row, .dp-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .dp-btn, .dp-download { width: 100% !important; text-align: center !important; }
}

/* === FAQ (faq-) === */
.faq-item, .faq-question, .faq-answer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .faq-question { font-size: var(--mk-fs-base) !important; padding: 1rem !important; }
  .faq-answer { padding: 1rem !important; }
}

/* === GRK / GŁÓWNE RODZAJE KONTROLI (grk-) === */
.grk-section, .grk-hero, .grk-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) !important;
}
.grk-grid, .grk-services {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important;
  gap: var(--mk-gap) !important;
}
@media (max-width: 767px) {
  [class^="grk-"] { width: 100% !important; }
  .grk-card { padding: 1.25rem !important; }
}

/* === SERWIS / FORMULARZ (sf-) === */
.sf-form, .sf-input, .sf-textarea, .sf-select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.sf-row { flex-wrap: wrap !important; gap: 1rem !important; }
@media (max-width: 767px) {
  .sf-row { flex-direction: column !important; }
  .sf-col { width: 100% !important; }
  .sf-btn { width: 100% !important; }
}

/* === KONTAKT (kt-) === */
.kt-section, .kt-info, .kt-map {
  width: 100% !important;
  max-width: 100% !important;
}
.kt-map iframe { width: 100% !important; height: clamp(300px, 50vw, 500px) !important; }
@media (max-width: 767px) {
  .kt-grid { grid-template-columns: 1fr !important; }
}

/* === O NAS (on-) === */
.on-section, .on-team, .on-history {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .on-team-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
  .on-member img { max-width: 150px !important; }
}

/* === USŁUGI (us-) === */
.us-hero, .us-section, .us-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.us-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) !important;
  gap: var(--mk-gap) !important;
}
@media (max-width: 767px) {
  .us-card { padding: 1.5rem !important; }
  .us-icon { width: 48px !important; height: 48px !important; }
}

/* === GLOBAL TABLE FIX === */
table {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
  table th, table td {
    padding: 0.5rem !important;
    font-size: var(--mk-fs-sm) !important;
  }
}
