/* oplaty.css
   Styl spójny z akty.css, internet-tv.css, sprzatanie.css, mawaria.css i piece.css.
*/

.page-root.oplaty-page {
  --opl-navy: #0d3566;
  --opl-navy-dark: #08284e;
  --opl-blue: #2f79c8;
  --opl-blue-soft: #eef5fc;
  --opl-line: #ccd9ea;
  --opl-line-soft: #e6edf5;
  --opl-orange: #e99912;
  --opl-orange-soft: #fff8e9;
  --opl-text: #102f58;
  --opl-muted: #66798e;
  --opl-green: #4d9b4d;
  --opl-radius: 12px;

  max-width: 1200px;
  margin-inline: auto;
  padding: 34px 28px 52px;
  color: var(--opl-text);
}

.oplaty-page,
.oplaty-page *,
.oplaty-page *::before,
.oplaty-page *::after {
  box-sizing: border-box;
}

/* HERO */
.oplaty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}

.oplaty-title {
  margin: 0 !important;
  text-align: left !important;
  color: var(--opl-navy) !important;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.oplaty-title-accent {
  display: block;
  width: 66px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--opl-orange);
}

.oplaty-lead {
  max-width: 650px;
  margin: 25px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.oplaty-hero-art {
  justify-self: end;
  width: min(100%, 340px);
  overflow: hidden;
}

.oplaty-hero-art-img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: inset(0 0 18px 0);
  margin-bottom: -18px;
}

/* NAGŁÓWKI */
.oplaty-section-label {
  margin: 0 0 14px;
  color: var(--opl-navy);
  font-size: 1rem;
  line-height: 1.3;
}

/* SPOSOBY PŁATNOŚCI */
.oplaty-methods {
  margin-top: 4px;
}

.oplaty-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.oplaty-method {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 10px;
}

.oplaty-method h3 {
  margin: 0 0 3px;
  color: var(--opl-navy);
  font-size: .98rem;
}

.oplaty-method p,
.oplaty-method small {
  margin: 0;
  color: var(--opl-text);
  line-height: 1.35;
}

.oplaty-method small {
  color: var(--opl-muted);
  font-size: .84rem;
}

.oplaty-method-icon,
.oplaty-proof-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--opl-blue-soft);
}

.oplaty-method-icon {
  width: 48px;
  height: 48px;
}

.oplaty-method-icon svg,
.oplaty-proof-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: var(--opl-navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.oplaty-link{
  text-decoration:none
  }
  
.oplaty-proof-icon svg {
  width: 22px;
  height: 22px;
}

.oplaty-method-icon svg *,
.oplaty-proof-icon svg * {
  fill: none;
  stroke: inherit;
  stroke-width: inherit;
  stroke-linecap: inherit;
  stroke-linejoin: inherit;
}

/* INFO */
.oplaty-info {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 16px 0 18px;
  padding: 15px 18px;
  border: 1px solid #f0c66d;
  border-radius: var(--opl-radius);
  background: var(--opl-orange-soft);
}

.oplaty-info-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.oplaty-info p {
  margin: 0;
  line-height: 1.45;
}

/* DOWÓD WPŁATY */
.oplaty-proof {
  margin-top: 2px;
}

.oplaty-proof-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.oplaty-proof-item {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 2px 16px 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.oplaty-proof-item + .oplaty-proof-item {
  border-left: 1px solid var(--opl-line-soft);
}

.oplaty-proof-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.oplaty-proof-item strong {
  color: var(--opl-navy);
  font-size: .9rem;
  line-height: 1.25;
}

.oplaty-proof-item span:not(.oplaty-proof-icon) {
  margin-top: 2px;
  color: var(--opl-text);
  font-size: .86rem;
  line-height: 1.25;
}

.oplaty-proof-note {
  margin: 18px 0 0;
  line-height: 1.5;
}

/* WARNING */
.oplaty-warning {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid #f0c66d;
  border-radius: var(--opl-radius);
  background: var(--opl-orange-soft);
}

.oplaty-warning-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.oplaty-warning p {
  margin: 0;
  line-height: 1.45;
}

/* RODZAJE OPŁAT */
.oplaty-types {
  margin-top: 22px;
}

.oplaty-types-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 9px;
  text-align: center;
  color: var(--opl-navy);
  font-size: 1.5rem;
}

.oplaty-types-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: var(--opl-orange);
  transform: translateX(-50%);
}

.oplaty-types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.oplaty-type-card {
  padding: 18px 20px;
  border: 1px solid var(--opl-line);
  border-radius: var(--opl-radius);
}

.oplaty-type-card-independent {
  background: linear-gradient(135deg, #f6faf3, #fff);
  border-color: #d7e7d4;
}

.oplaty-type-card-dependent {
  background: linear-gradient(135deg, #f3f8fe, #fff);
}

.oplaty-type-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.oplaty-type-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.oplaty-type-card-independent .oplaty-type-symbol {
  background: var(--opl-green);
}

.oplaty-type-card-dependent .oplaty-type-symbol {
  background: var(--opl-blue);
}

.oplaty-type-card h3 {
  margin: 0;
  color: var(--opl-navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

.oplaty-type-card-independent h3 {
  color: #347c36;
}

.oplaty-type-card-dependent h3 {
  color: #0f5aa7;
}

.oplaty-type-card p {
  margin: 0;
  line-height: 1.45;
}

.oplaty-type-intro {
  margin-top: 12px !important;
}

.oplaty-type-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.oplaty-type-card li {
  margin-bottom: 6px;
  line-height: 1.35;
}

.oplaty-type-card-independent li::marker {
  color: var(--opl-green);
}

.oplaty-type-card-dependent li::marker {
  color: var(--opl-blue);
}

/* PDF */
.oplaty-download {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid var(--opl-line);
  border-radius: var(--opl-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(13, 53, 102, .025);
}

.oplaty-pdf-icon {
  display: block;
  width: 58px;
  height: 66px;
  object-fit: contain;
  justify-self: center;
}

.oplaty-download-copy h2 {
  margin: 0;
  color: var(--opl-navy);
  font-size: 1rem;
}

.oplaty-download-copy p {
  margin: 4px 0 0;
  color: var(--opl-muted);
  font-size: .88rem;
}

.oplaty-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--opl-navy);
  border-radius: 9px;
  background: var(--opl-navy);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.oplaty-download-btn:hover {
  background: var(--opl-navy-dark);
  border-color: var(--opl-navy-dark);
  box-shadow: 0 5px 14px rgba(8, 40, 78, .14);
}

.oplaty-download-arrow {
  font-size: 1.05rem;
}

/* FOCUS */
.oplaty-page a:focus-visible {
  outline: 3px solid rgba(233, 153, 18, .35);
  outline-offset: 2px;
}

/* TABLET */
@media (max-width: 1024px) {
  .page-root.oplaty-page {
    padding-inline: 20px;
  }

  .oplaty-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .oplaty-hero-art {
    width: min(100%, 300px);
  }

  .oplaty-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .oplaty-proof-item + .oplaty-proof-item {
    border-left: 0;
  }

  .oplaty-proof-item:nth-child(n+4) {
    margin-top: 6px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .page-root.oplaty-page {
    padding: 22px 14px 36px;
  }

  .oplaty-hero {
    display: block;
    margin-bottom: 16px;
  }

  .oplaty-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .oplaty-title-accent {
    width: 44px;
    margin-top: 11px;
  }

  .oplaty-lead {
    margin-top: 18px;
    font-size: .95rem;
  }

  .oplaty-hero-art {
    width: min(72vw, 230px);
    margin: 12px auto 0;
  }

  .oplaty-method-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .oplaty-method {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 2px;
  }

  .oplaty-method-icon {
    width: 40px;
    height: 40px;
  }

  .oplaty-method-icon svg {
    width: 21px;
    height: 21px;
  }

  .oplaty-info {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 13px 12px;
  }

  .oplaty-info-icon {
    width: 38px;
    height: 38px;
  }

  .oplaty-info p {
    font-size: .86rem;
  }

  .oplaty-proof-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .oplaty-proof-item,
  .oplaty-proof-item:nth-child(n+4) {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .oplaty-proof-icon {
    width: 30px;
    height: 30px;
    margin: 0;
  }

  .oplaty-proof-icon svg {
    width: 18px;
    height: 18px;
  }

  .oplaty-proof-item strong,
  .oplaty-proof-item span:not(.oplaty-proof-icon) {
    grid-column: 2;
    margin: 0;
    font-size: .86rem;
  }

  .oplaty-proof-item strong + span {
    margin-top: -4px !important;
  }

  .oplaty-warning {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 13px 12px;
  }

  .oplaty-warning-icon {
    width: 38px;
    height: 38px;
  }

  .oplaty-warning p {
    font-size: .86rem;
  }

  .oplaty-types-title {
    font-size: 1.28rem;
  }

  .oplaty-types-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .oplaty-type-card {
    padding: 15px 14px;
  }

  .oplaty-download {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 12px;
  }

  .oplaty-download-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .oplaty-pdf-icon {
    width: 50px;
    height: 57px;
  }
}

/* =========================================================
   WYDRUK A4
   ========================================================= */
@media print {

  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #102f58 !important;
    font-family: "Segoe UI", Calibri, Arial, sans-serif !important;
    font-size: 9pt !important;
    line-height: 1.22 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .header,
  .main-nav,
  .menu,
  .menu-toggle,
  .footer,
  .wcag-trigger,
  .wcag-panel,
  .manage-cookies,
  .oplaty-hero-art,
  .oplaty-title-accent {
    display: none !important;
  }

  .page-root.oplaty-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .oplaty-hero {
    display: block !important;
    margin: 0 0 3mm !important;
    padding: 0 0 2.5mm !important;
    border-bottom: 1px solid var(--opl-navy) !important;
  }

  .oplaty-title {
    margin: 0 !important;
    font-size: 15pt !important;
    line-height: 1.08 !important;
  }

  .oplaty-lead {
    margin: 1.5mm 0 0 !important;
    max-width: none !important;
    font-size: 8.4pt !important;
    line-height: 1.2 !important;
  }

  .oplaty-section-label {
    margin-bottom: 1.8mm !important;
    font-size: 9.5pt !important;
  }

  .oplaty-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2mm !important;
  }

  .oplaty-method {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 2mm !important;
    padding: 1.2mm 1mm !important;
  }

  .oplaty-method-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .oplaty-method-icon svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 1.6 !important;
  }

  .oplaty-method h3 {
    font-size: 8.6pt !important;
    margin-bottom: .3mm !important;
  }

  .oplaty-method p,
  .oplaty-method small {
    font-size: 7.8pt !important;
    line-height: 1.15 !important;
  }

  .oplaty-info {
    margin: 2.5mm 0 !important;
    padding: 2mm 2.5mm !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 2mm !important;
  }

  .oplaty-info-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .oplaty-info p {
    font-size: 8pt !important;
    line-height: 1.18 !important;
  }

  .oplaty-proof-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  .oplaty-proof-item {
    display: flex !important;
    padding: 0 1.2mm !important;
    text-align: center !important;
  }

  .oplaty-proof-item + .oplaty-proof-item {
    border-left: 1px solid #e6edf5 !important;
  }

  .oplaty-proof-icon {
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 1mm !important;
  }

  .oplaty-proof-icon svg {
    width: 15px !important;
    height: 15px !important;
    stroke-width: 1.55 !important;
  }

  .oplaty-proof-item strong,
  .oplaty-proof-item span:not(.oplaty-proof-icon) {
    font-size: 7.7pt !important;
    line-height: 1.12 !important;
  }

  .oplaty-proof-note {
    margin: 2.5mm 0 0 !important;
    font-size: 8pt !important;
    line-height: 1.2 !important;
  }

  .oplaty-warning {
    margin-top: 2.5mm !important;
    padding: 2mm 2.5mm !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 2mm !important;
  }

  .oplaty-warning-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .oplaty-warning p {
    font-size: 8pt !important;
    line-height: 1.18 !important;
  }

  .oplaty-types {
    margin-top: 3mm !important;
  }

  .oplaty-types-title {
    margin-bottom: 2mm !important;
    padding-bottom: 1mm !important;
    font-size: 11.5pt !important;
  }

  .oplaty-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.5mm !important;
  }

  .oplaty-type-card {
    padding: 2.5mm 3mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .oplaty-type-head {
    gap: 2mm !important;
    margin-bottom: 1.7mm !important;
  }

  .oplaty-type-symbol {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
    font-size: 8.5pt !important;
  }

  .oplaty-type-card h3 {
    font-size: 9pt !important;
  }

  .oplaty-type-card p,
  .oplaty-type-card li {
    font-size: 7.8pt !important;
    line-height: 1.16 !important;
  }

  .oplaty-type-intro {
    margin-top: 1.7mm !important;
  }

  .oplaty-type-card ul {
    margin-top: 1mm !important;
  }

  .oplaty-type-card li {
    margin-bottom: .6mm !important;
  }

  .oplaty-download {
    grid-template-columns: 31px minmax(0, 1fr) 42mm !important;
    gap: 2.5mm !important;
    margin-top: 3mm !important;
    padding: 2mm 2.5mm !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .oplaty-pdf-icon {
    width: 30px !important;
    height: auto !important;
  }

  .oplaty-download-copy h2 {
    font-size: 8.8pt !important;
  }

  .oplaty-download-copy p {
    font-size: 7.5pt !important;
  }

  .oplaty-download-btn {
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 8pt !important;
  }

  .oplaty-page a[href]::after {
    content: none !important;
  }
}
