/* Końcowe plansze desktopowe D20–D24. */
.tp-content-page main { padding-bottom: 78px; }
.tp-page-intro { padding: 0 0 28px; }
.tp-page-intro .tp-commerce-breadcrumbs { min-height: 58px; }
.tp-page-intro .eyebrow { margin: 6px 0 9px; }
.tp-page-intro h1 { margin: 0; font-size: 42px; line-height: 48px; letter-spacing: -.03em; }
.tp-page-intro p { margin: 7px 0 0; color: var(--tp-muted, #66707b); font-size: 16px; line-height: 24px; }

/* D20 — o firmie i lokalizacja. */
.tp-about-feature {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  min-height: 302px;
  overflow: hidden;
  border-radius: 14px;
  background: #f5f6f8;
}
.tp-about-feature-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 28px; }
.tp-about-feature h2 { margin: 0 0 16px; font-size: 30px; line-height: 38px; }
.tp-about-feature p { max-width: 600px; margin: 0 0 20px; color: var(--tp-muted, #66707b); font-size: 15px; line-height: 24px; }
.tp-about-feature .tp-btn { margin-top: auto; min-width: 186px; }
.tp-about-feature-media { min-height: 302px; display: grid; place-items: center; background: #fff; }
.tp-about-feature-media img { width: 100%; height: 100%; min-height: 302px; object-fit: cover; }
.tp-location-block { margin-top: 34px; }
.tp-location-block > h2 { margin: 0; font-size: 28px; line-height: 36px; }
.tp-location-block > p { margin: 6px 0 22px; color: var(--tp-muted, #66707b); font-size: 13px; }
.tp-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tp-location-photo,
.tp-route-card { min-height: 286px; overflow: hidden; border: 1px solid var(--tp-line, #dfe3e8); border-radius: 14px; background: #fff; }
.tp-location-photo img { display: block; width: 100%; height: 286px; object-fit: cover; }
.tp-route-card { display: flex; flex-direction: column; padding: 28px; }
.tp-route-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 23px; }
.tp-route-card h2 svg { width: 27px; height: 27px; color: var(--tp-red, #e80025); }
.tp-route-card strong { font-size: 16px; }
.tp-route-card p { max-width: 620px; margin: 17px 0; color: var(--tp-muted, #66707b); font-size: 13px; line-height: 20px; }
.tp-route-card .tp-btn { width: 100%; margin-top: auto; justify-content: center; gap: 8px; }
.tp-route-card .tp-btn svg { width: 19px; height: 19px; }
.tp-content-help { margin: 50px auto 58px; }

/* D21 — kontakt i zapytanie techniczne. */
.tp-contact-layout { display: grid; grid-template-columns: 416px minmax(0, 1fr); gap: 28px; align-items: start; }
.tp-contact-card { min-height: 570px; padding: 26px 24px; border-radius: 14px; background: #f5f6f8; }
.tp-contact-card h2 { margin: 0 0 23px; font-size: 26px; }
.tp-contact-department { padding: 0 0 22px; border-bottom: 1px solid var(--tp-line, #dfe3e8); }
.tp-contact-department + .tp-contact-department { padding-top: 22px; }
.tp-contact-department:last-of-type { border-bottom: 0; }
.tp-contact-department small { display: flex; align-items: center; gap: 10px; color: var(--tp-ink, #22262c); font-size: 13px; font-weight: 750; }
.tp-contact-department small svg { width: 23px; height: 23px; color: var(--tp-red, #e80025); }
.tp-contact-department strong { display: block; margin: 12px 0 4px; font-size: 25px; line-height: 32px; }
.tp-contact-department a,
.tp-contact-department span { color: var(--tp-muted, #66707b); font-size: 13px; text-decoration: none; }
.tp-contact-address { display: grid; gap: 7px; margin-top: 4px; }
.tp-contact-address strong { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.tp-contact-address svg { width: 23px; height: 23px; color: var(--tp-red, #e80025); }
.tp-contact-card > .tp-btn { width: 100%; margin-top: 20px; justify-content: center; gap: 8px; }
.tp-contact-card > .tp-btn svg { width: 19px; height: 19px; }
.tp-inquiry-card { padding: 26px; border: 1px solid var(--tp-line, #dfe3e8); border-radius: 14px; background: #fff; }
.tp-inquiry-card > h2 { margin: 0 0 26px; font-size: 27px; }
.tp-inquiry-card .form-grid { gap: 16px 18px; }
.tp-inquiry-card .form-row { gap: 8px; }
.tp-inquiry-card .form-row label { font-size: 12px; }
.tp-inquiry-card .input,
.tp-inquiry-card textarea { min-height: 48px; border-radius: 8px; font-size: 14px; }
.tp-inquiry-card textarea { min-height: 112px; resize: vertical; }
.tp-upload-box {
  position: relative;
  min-height: 112px;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: center;
  gap: 3px 14px !important;
  padding: 22px;
  overflow: hidden;
  border: 1px dashed var(--tp-line, #dfe3e8);
  border-radius: 8px;
  background: #f5f6f8;
  cursor: pointer;
}
.tp-upload-box > svg { grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--tp-red, #e80025); }
.tp-upload-box strong { font-size: 17px; }
.tp-upload-box span { color: var(--tp-muted, #66707b); font-size: 12px; font-weight: 500; }
.tp-upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tp-upload-note { margin: 8px 0 0; color: var(--tp-muted, #66707b); font-size: 11px; }
.tp-inquiry-privacy { margin: 3px 0 20px; color: var(--tp-muted, #66707b); font-size: 11px; line-height: 18px; }
.tp-inquiry-privacy a { color: var(--tp-red, #e80025); }
.tp-inquiry-card button[type="submit"] { width: 100%; justify-content: center; gap: 9px; }
.tp-inquiry-card button[type="submit"] svg { width: 20px; height: 20px; }
.tp-inquiry-guide { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--tp-line, #dfe3e8); }
.tp-inquiry-guide > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.tp-inquiry-guide h3 { margin: 0; font-size: 21px; line-height: 28px; }
.tp-inquiry-guide > div:first-child p { margin: 5px 0 0; color: var(--tp-muted, #66707b); font-size: 12px; line-height: 18px; }
.tp-inquiry-guide > div:first-child a { flex: 0 0 auto; color: var(--tp-red, #e80025); font-size: 12px; font-weight: 750; text-decoration: none; }
.tp-inquiry-guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.tp-inquiry-guide-steps a { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 2px 9px; align-items: center; min-height: 72px; padding: 11px; border: 1px solid var(--tp-line, #dfe3e8); border-radius: 10px; color: inherit; text-decoration: none; }
.tp-inquiry-guide-steps a:hover,
.tp-inquiry-guide-steps a:focus-visible { border-color: var(--tp-red, #e80025); background: #fff4f6; }
.tp-inquiry-guide-steps svg { grid-row: 1 / span 2; width: 27px; height: 27px; color: var(--tp-red, #e80025); }
.tp-inquiry-guide-steps strong { font-size: 12px; line-height: 16px; }
.tp-inquiry-guide-steps span { color: var(--tp-muted, #66707b); font-size: 10px; line-height: 14px; }

/* D22 — pomoc w doborze i czytelne schematy. */
.tp-help-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tp-help-step { margin: 0; overflow: hidden; border: 1px solid var(--tp-line, #dfe3e8); border-radius: 14px; background: #f5f6f8; }
.tp-help-step img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 11; object-fit: contain; }
.tp-diagrams-block { margin-top: 38px; }
.tp-diagrams-block h2 { margin: 0; font-size: 28px; }
.tp-diagrams-block > p { margin: 7px 0 20px; color: var(--tp-muted, #66707b); font-size: 13px; }
.tp-diagram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tp-diagram-card { display: grid; padding: 0; overflow: hidden; border: 1px solid var(--tp-line, #dfe3e8); border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.tp-diagram-card img { width: 100%; height: 330px; padding: 14px; object-fit: contain; background: #fff; }
.tp-diagram-card span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 18px; border-top: 1px solid var(--tp-line, #dfe3e8); font-size: 17px; font-weight: 750; }
.tp-diagram-card span svg { width: 22px; height: 22px; color: var(--tp-red, #e80025); }
.tp-diagram-warning { margin: 18px 0 0; color: var(--tp-muted, #66707b); font-size: 12px; }
.tp-diagram-dialog { width: min(1280px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.tp-diagram-dialog::backdrop { background: rgba(18,22,27,.68); }
.tp-diagram-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; padding: 12px 18px; border-bottom: 1px solid var(--tp-line, #dfe3e8); }
.tp-diagram-dialog-head strong { font-size: 18px; }
.tp-diagram-dialog-head button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f5f6f8; cursor: pointer; }
.tp-diagram-dialog-head svg { width: 22px; height: 22px; }
.tp-diagram-dialog img { display: block; width: 100%; height: calc(100dvh - 150px); padding: 18px; object-fit: contain; }

/* D24 — pełna, dynamiczna lista kategorii. */
.tp-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 20px; }
.tp-category-card { min-height: 122px; display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 6px 15px; padding: 20px; border: 1px solid var(--tp-line, #dfe3e8); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.tp-category-card:hover { border-color: rgba(232,0,37,.45); transform: translateY(-2px); }
.tp-category-card img { grid-row: 1 / span 2; align-self: center; width: 49px; height: 49px; object-fit: contain; }
.tp-category-card strong { align-self: end; font-size: 16px; line-height: 22px; }
.tp-category-card span { color: var(--tp-muted, #66707b); font-size: 11px; line-height: 17px; }
.tp-category-question { margin-top: 40px; }
.tp-category-question h2 { margin: 0 0 20px; font-size: 24px; }
.tp-category-question .tp-btn { min-width: 320px; justify-content: center; gap: 9px; }
.tp-category-question svg { width: 20px; height: 20px; }

@media (max-width: 1179px) and (min-width: 821px) {
  .tp-contact-layout { grid-template-columns: 336px minmax(0, 1fr); gap: 24px; }
  .tp-category-grid { grid-template-columns: repeat(3, 1fr); }
  .tp-diagram-card img { height: 280px; }
}

/* M15, M17 i M22/D24 — układy telefoniczne muszą wystąpić po regułach
   desktopowych, inaczej szerokie siatki ponownie rozszerzają dokument. */
@media (max-width: 820px) {
  .tp-content-page main { padding-bottom: 56px; }
  .tp-page-intro { padding-bottom: 24px; }
  .tp-page-intro .tp-commerce-breadcrumbs { min-height: 54px; }
  .tp-page-intro h1 { font-size: 32px; line-height: 38px; }
  .tp-page-intro p { margin-top: 7px; font-size: 15px; line-height: 23px; }

  .tp-contact-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tp-contact-card { min-height: 0; padding: 24px 20px; }
  .tp-contact-card h2 { font-size: 25px; }
  .tp-contact-department strong { font-size: 23px; line-height: 30px; }
  .tp-contact-department a,
  .tp-contact-department span { overflow-wrap: anywhere; font-size: 13px; }
  .tp-inquiry-card { min-width: 0; padding: 22px 18px; }
  .tp-inquiry-card > h2 { margin-bottom: 22px; font-size: 25px; }
  .tp-inquiry-card .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tp-inquiry-card .form-row,
  .tp-inquiry-card .form-row.full { grid-column: auto; min-width: 0; width: 100%; }
  .tp-inquiry-card .input,
  .tp-inquiry-card select,
  .tp-inquiry-card textarea { width: 100%; min-height: 52px; font-size: 16px; }
  .tp-inquiry-card textarea { min-height: 126px; }
  .tp-inquiry-upload { min-height: 144px; }
  .tp-inquiry-guide > div:first-child { display: grid; gap: 10px; }
  .tp-inquiry-guide > div:first-child a { min-height: 44px; display: inline-flex; align-items: center; }
  .tp-inquiry-guide-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tp-inquiry-guide-steps a { min-height: 76px; }

  .tp-diagram-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tp-diagram-card img { height: min(68vh, 540px); padding: 8px; }
  .tp-diagram-card span { min-height: 52px; padding: 12px 15px; font-size: 15px; }
  .tp-diagram-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .tp-diagram-dialog img { height: calc(100dvh - 112px); padding: 8px; }

  .tp-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tp-category-card { min-width: 0; min-height: 132px; grid-template-columns: 46px minmax(0, 1fr); gap: 5px 10px; padding: 14px 12px; }
  .tp-category-card img { width: 43px; height: 43px; }
  .tp-category-card strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 19px; }
  .tp-category-card span { min-width: 0; overflow-wrap: anywhere; font-size: 11px; line-height: 16px; }
  .tp-category-question { margin-top: 30px; }
  .tp-category-question .tp-btn { width: 100%; min-width: 0; min-height: 52px; }
}

@media (max-width: 339px) {
  .tp-page-intro h1 { font-size: 28px; line-height: 34px; }
  .tp-category-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-category-card { min-height: 110px; }
}
