#zwracać-uwagę,
#prawo-dotyczące,
#organizacje-wydające,
#dostawcy,
#zachęca,
#faq {
  max-width: 1280px;

  > div:has(> img) {
    width: 100%;
    max-height: 460px;
    border-radius: 12px;

    > img {
      width: 100%;
      height: 460px;
      object-fit: cover;
      border-radius: inherit;
      -webkit-border-radius: inherit;
      -moz-border-radius: inherit;
      -ms-border-radius: inherit;
      -o-border-radius: inherit;
    }
  }

  a.btn_svg > div {
    width: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  a.btn_svg > div > img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
  }
}

#faq .accord__contaner {
  max-width: 1280px;
}

.btn_svg div:has(img) {
  height: auto;
}

.home {
  justify-content: space-between !important;
}

/* Guide pages: hero illustration — slightly rounded corners (like homepage) */
.home_bg > a > img[src^="images/"] {
  border-radius: 16px;
}

/* Guide pages: content illustrations — left-aligned, slightly larger (exclude hero .home_bg) */
div:not(.home_bg) > a > img[src^="images/"] {
  display: block;
  width: 100%;
  height: auto;
  max-width: 680px;
  border-radius: 12px;
}
div:not(.home_bg) > a:has(> img[src^="images/"]) {
  display: block;
  max-width: 680px;
  margin: 18px 0;
}

/* ===== Mobile tables: fit to screen, wrap by words (no scroll, no char-break) ===== */
@media (max-width: 768px) {
  .table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }
  .table table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
  }
  .table table th,
  .table table td {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    font-size: 12px;
    padding: 8px 6px;
    vertical-align: top;
  }
  .table table th p,
  .table table td p {
    font-size: 12px;
    margin: 0;
  }
}

header div:has(+ a) {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  header a {
    margin-right: auto;
  }
}
header a {
  font-family: Inter, sans-serif;
  font-weight: 400 !important;
  color: #5e5e5e;
}
