.ireklamacje-main {
  background: #f1f1ef;
  padding: 44px 24px 58px;
  color: #272727;
}
.letter {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 40px 48px 36px;
  background: #fff;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
.letter__header {
  aspect-ratio: 6615332 / 638672;
  margin-bottom: 34px;
  overflow: hidden;
}
.letter__header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.letter__body p {
  margin: 0 0 16px;
  text-align: justify;
}
.letter__body h2 {
  margin: 25px 0 11px;
  color: #272727;
  font: 700 1.06em / 1.35 Calibri, "Segoe UI", Arial, sans-serif;
  break-after: avoid;
}
.letter__body a {
  color: #175b90;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.letter__body a:hover {
  color: #0b3e68;
}
.letter__body a:focus-visible {
  outline: 2px solid #175b90;
  outline-offset: 4px;
}
.letter__closing {
  width: min(100%, 300px);
  margin: 29px 0 36px auto;
  break-inside: avoid;
}
.letter__closing p {
  margin: 0;
  text-align: left;
}
.letter__signature {
  width: 280px;
  height: auto;
  margin: 12px 0;
}
.letter__footer-image {
  width: 100%;
  height: auto;
}
.letter__footer-mobile {
  display: none;
}
@media (max-width: 640px) {
  .ireklamacje-main { padding: 20px 12px 28px; }
  .letter { padding: 22px 20px 24px; font-size: 16px; line-height: 1.5; }
  .letter__header { margin-bottom: 24px; }
  .letter__body p { text-align: left; }
  .letter__body h2 { margin-top: 24px; }
  .letter__closing { margin-block: 26px 29px; }
  .letter__signature { width: min(100%, 260px); }
  .letter__footer-image { display: none; }
  .letter__footer-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
    padding-top: 18px;
    border-top: 2px solid #373737;
    font-size: 13px;
    line-height: 1.45;
  }
  .letter__footer-mobile p { margin: 0; }
  .letter__footer-mobile a { color: inherit; text-decoration: underline; }
}
@media (max-width: 360px) {
  .letter { padding-inline: 16px; }
  .letter__footer-mobile { grid-template-columns: 1fr; gap: 14px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  html, body, .ireklamacje-main { background: #fff; }
  .header, .mobile-nav, .backdrop, .footer, .lang-rog, .lightbox,
  .skip-link, .cookie-banner, .cookie-modal, [data-cookie-banner],
  [data-cookie-modal] { display: none !important; }
  .ireklamacje-main { padding: 0; }
  .letter { width: 100%; padding: 0; font-size: 11pt; line-height: 1.3; }
  .letter__body p { margin-bottom: 6pt; text-align: justify; }
  .letter__body h2 { margin: 12pt 0 6pt; }
  .letter__header { margin-bottom: 18pt; }
  .letter__closing { width: 70mm; margin-block: 16pt 20pt; }
  .letter__signature { width: 65mm; }
  .letter__footer-image { display: block; }
  .letter__footer-mobile { display: none; }
}
