.zd-home-section.zd-prefab-story { padding: 48px 0; scroll-margin-top: 110px; background: #fff; color: #182b4b; }
.zd-prefab-story > .container { max-width: 1304px; }
.zd-prefab-story ::selection, .zd-construction-dialog ::selection { background: #fac55f; color: #182b4b; }
.zd-prefab-story-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 26px; }
.zd-prefab-story-head h2 { margin: 0; color: #182b4b; font-size: var(--zd-section-title-size); line-height: var(--zd-section-title-line); font-weight: 600; }
.zd-prefab-story-summary p { max-width: 58ch; margin: 0; color: #536277; font-size: 16px; line-height: 1.65; }
.zd-timber-specification { min-width: 0; overflow-x: auto; border: 1px solid #c6ccd4; border-radius: 16px; background: #fff; scrollbar-color: #b8862d #f4f5f7; scrollbar-width: thin; }
.zd-timber-standard-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #182b4b; font-size: 15px; line-height: 1.5; }
.zd-timber-standard-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.zd-comparison-criterion { width: 20%; }
.zd-comparison-masonry { width: 36%; }
.zd-comparison-timber { width: 44%; }
.zd-timber-standard-table thead th { padding: 13px 18px; background: #182b4b; color: #fff; font-weight: 600; text-align: left; vertical-align: middle; border-right: 1px solid #485974; }
.zd-timber-standard-table thead th:last-child { color: #fac55f; border-right: 0; }
.zd-timber-standard-table thead small { display: block; color: #fff; font-size: 13px; font-weight: 400; }
.zd-timber-standard-table tbody :is(th,td) { padding: 10px 18px; border-bottom: 1px solid #d6dce4; border-right: 1px solid #d6dce4; text-align: left; vertical-align: middle; }
.zd-timber-standard-table tbody th { font-weight: 600; color: #182b4b; }
.zd-timber-standard-table tbody td { color: #536277; }
.zd-timber-standard-table tbody td:last-child { border-right: 0; background: #fff8e9; color: #182b4b; font-weight: 500; font-variant-numeric: tabular-nums; }
.zd-timber-standard-table tbody tr:last-child :is(th,td) { border-bottom: 0; }
.zd-comparison-scroll-hint { display: none; }
.zd-construction-launcher { margin-top: 32px; scroll-margin-top: 130px; }
.zd-construction-launcher-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.zd-construction-launcher h3 { margin: 0; color: #182b4b; font-size: 22px; line-height: 1.3; font-weight: 600; }
.zd-construction-launcher-head p { margin: 0; color: #536277; font-size: 14px; line-height: 1.5; }
.zd-construction-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.zd-construction-open { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #c6ccd4; border-radius: 16px; color: #182b4b; text-decoration: none; background: #fff; transition: border-color .2s; }
.zd-construction-preview { display: flex; justify-content: center; height: 168px; padding: 8px 20px 0; background: #f7f6f2; }
.zd-construction-preview img { display: block; height: 100%; width: 100%; object-fit: contain; }
.zd-construction-preview-copy { display: flex; flex-direction: column; flex: 1; padding: 14px 20px 16px; }
.zd-construction-preview-copy h4 { margin: 0 0 5px; color: #182b4b; font-size: 20px; line-height: 1.3; font-weight: 600; }
.zd-construction-preview-copy p { margin: 0 0 12px; color: #536277; font-size: 14px; line-height: 1.5; }
.zd-construction-preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e1e5eb; }
.zd-construction-preview-footer > span { font-size: 20px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.zd-construction-preview-footer small { font-size: 13px; font-weight: 400; }
.zd-construction-preview-footer i { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #fac55f; color: #182b4b; font-size: 14px; transition: transform .2s; }
.zd-construction-open:hover { color: #182b4b; border-color: #aa7926; }
.zd-construction-open:hover i { transform: translate(2px,-2px); }
.zd-prefab-story :is(a,.zd-timber-specification):focus-visible { outline: 3px solid #b58224; outline-offset: 4px; }
@media (max-width: 991px) {
  .zd-prefab-story-head { gap: 24px; }
  .zd-timber-standard-table :is(th,td) { padding-left: 12px; padding-right: 12px; }
  .zd-construction-launcher-head { display: block; }
  .zd-construction-launcher-head p { margin-top: 6px; }
  .zd-construction-options { gap: 12px; }
  .zd-construction-preview { height: 146px; padding: 6px 12px 0; }
  .zd-construction-preview-copy { padding: 12px; }
  .zd-construction-preview-copy h4 { font-size: 18px; }
  .zd-construction-preview-footer > span { font-size: 18px; }
}
@media (max-width: 767px) {
  .zd-home-section.zd-prefab-story { padding: 32px 0; }
  .zd-prefab-story-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
  .zd-prefab-story-head h2 { font-size: 28px; line-height: 1.15; }
  .zd-prefab-story-summary p { font-size: 16px; }
  .zd-comparison-scroll-hint { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; color: #536277; font-size: 14px; line-height: 1.5; }
  .zd-timber-standard-table { width: 170%; min-width: 0; font-size: 14px; }
  .zd-comparison-criterion { width: 17.647%; }
  .zd-comparison-masonry { width: 41.1765%; }
  .zd-comparison-timber { width: 41.1765%; }
  .zd-timber-standard-table tr > th:first-child { position: sticky; left: 0; z-index: 2; }
  .zd-timber-standard-table tbody th { background: #fff; box-shadow: 1px 0 0 #c6ccd4; }
  .zd-timber-standard-table thead th:first-child { z-index: 3; }
  .zd-construction-launcher { margin-top: 26px; }
  .zd-construction-launcher h3 { font-size: 22px; }
  .zd-construction-options { grid-template-columns: 1fr; }
  .zd-construction-open { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: stretch; }
  .zd-construction-preview { height: auto; min-height: 156px; padding: 8px; align-items: center; }
  .zd-construction-preview img { height: 140px; }
  .zd-construction-preview-copy h4 { font-size: 18px; }
  .zd-construction-preview-copy p { margin-bottom: 8px; }
  .zd-construction-preview-footer { gap: 4px; padding-top: 8px; }
  .zd-construction-preview-footer > span { font-size: 18px; }
  .zd-construction-preview-footer small { display: block; font-size: 12px; }
  .zd-construction-preview-footer i { width: 30px; height: 30px; }
}
.zd-construction-viewing { overflow: hidden; }
.zd-construction-dialog { width: min(1180px,calc(100vw - 40px)); height: min(760px,calc(100dvh - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 0; border-radius: 16px; color: #182b4b; background: #f7f6f2; box-shadow: 0 24px 80px rgba(7,17,31,.32); }
.zd-construction-dialog[open] { display: flex; flex-direction: column; }
.zd-construction-dialog::backdrop { background: rgba(7,17,31,.7); }
.zd-construction-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; flex-shrink: 0; }
.zd-construction-header h2 { margin: 0; color: #182b4b; font-size: 24px; line-height: 1.25; font-weight: 600; }
.zd-construction-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #bfc8d3; border-radius: 50%; background: transparent; color: #182b4b; cursor: pointer; }
.zd-construction-close:hover { background: #f6e7c5; }
.zd-construction-tabs { display: grid; grid-template-columns: repeat(3,1fr); flex-shrink: 0; gap: 8px; margin: 0 24px; padding-bottom: 12px; border-bottom: 1px solid #bfc8d3; }
.zd-construction-tabs button { padding: 10px 12px; border: 0; border-radius: 8px; color: #182b4b; background: #e9edf2; font-size: 16px; line-height: 1.4; font-weight: 600; cursor: pointer; }
.zd-construction-tabs button[aria-selected="true"] { color: #fff; background: #182b4b; }
.zd-construction-tabs button:hover:not([aria-selected="true"]) { background: #f6e7c5; }
.zd-construction-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 24px; scrollbar-width: thin; scrollbar-color: #9e8860 #ece9e2; }
.zd-construction-panel { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: start; gap: 28px; }
.zd-construction-panel[hidden] { display: none; }
.zd-construction-diagram figure { margin: 0 0 14px; }
.zd-construction-diagram img { display: block; width: 100%; height: auto; max-height: 410px; object-fit: contain; }
.zd-construction-diagram figcaption { margin: 10px 0 0; color: #536277; font-size: 13px; line-height: 1.5; }
.zd-construction-diagram figcaption a { margin-left: 8px; color: #182b4b; text-decoration: underline; text-underline-offset: 4px; }
.zd-construction-diagram > p { margin: 0; color: #536277; font-size: 14px; line-height: 1.6; }
.zd-construction-panel-head { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; }
.zd-construction-panel-head h3 { margin: 0; color: #182b4b; font-size: 20px; line-height: 1.3; font-weight: 600; }
.zd-construction-panel-head p { margin: 0; color: #182b4b; font-size: 18px; line-height: 1.4; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zd-construction-panel-head small { font-size: 13px; font-weight: 400; }
.zd-construction-intro { margin: 12px 0; color: #536277; font-size: 14px; line-height: 1.55; }
.zd-construction-layers { margin: 0; padding: 0 0 0 23px; }
.zd-construction-layers li { margin: 0 0 7px; padding-left: 4px; color: #536277; font-size: 14px; line-height: 1.5; }
.zd-construction-layers li::marker { color: #182b4b; font-weight: 600; font-variant-numeric: tabular-nums; }
.zd-construction-layers strong { color: #182b4b; font-weight: 600; }
.zd-tech-sources { margin-top: 18px; padding-top: 14px; border-top: 1px solid #bfc8d3; color: #536277; font-size: 14px; line-height: 1.6; }
.zd-tech-sources summary { width: fit-content; color: #182b4b; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.zd-tech-sources p { max-width: 90ch; margin: 12px 0; font-size: 14px; }
.zd-tech-sources ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.zd-tech-sources a { color: #182b4b; text-decoration: underline; text-underline-offset: 4px; }
.zd-prefab-story :is(a,.zd-tech-comparison-wrap):focus-visible, .zd-construction-dialog :is(a,button,summary):focus-visible { outline: 3px solid #b58224; outline-offset: 4px; }
#dla-kogo .zd-home-overview-grid { align-items: stretch; }
#dla-kogo .zd-home-overview-item { height: 100%; display: flex; flex-direction: column; cursor: default; }
#dla-kogo .zd-home-overview-item > span { flex-shrink: 0; }
#dla-kogo .zd-home-card-title { display: block; min-height: 2.4em; line-height: 1.2; }
#dla-kogo .zd-home-overview-item > p:last-child { min-height: 6.4em; margin-bottom: 0; line-height: 1.6; }
@media (max-width: 991px) {
}
@media (max-width: 767px) {
  .zd-construction-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .zd-construction-header { padding: 12px 14px; gap: 12px; }
  .zd-construction-header h2 { font-size: 21px; }
  .zd-construction-tabs { margin: 0 14px; }
  .zd-construction-tabs button { font-size: 15px; }
  .zd-construction-content { padding: 14px; }
  .zd-construction-panel { grid-template-columns: 1fr; gap: 20px; }
  .zd-construction-diagram img { max-height: 260px; }
  .zd-construction-panel-head h3 { font-size: 19px; }
  .zd-construction-diagram figcaption { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .zd-construction-open, .zd-construction-open > i { transition: none; }
}

@media (max-width: 767px) {
  #dla-kogo .zd-home-overview-item { padding: 16px 0 14px; border-top: 1px solid rgba(22,34,56,.08); }
  #dla-kogo .zd-home-overview-item:first-child { border-top-color: transparent; }
}

.zd-construction-dialog .zd-construction-close { background: #182b4b; color: #fac55f; border-color: #182b4b; }
.zd-construction-dialog .zd-construction-close:hover { background: #304666; }
.zd-construction-panel-head { gap: 8px 12px; }
.zd-construction-panel-head > p { padding: 6px 10px; border-radius: 8px; background: #f6e7c5; }
.zd-construction-intro { margin: 10px 0 14px; }
.zd-construction-layer-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.45; color: #182b4b; }
.zd-construction-layer-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.zd-construction-layer-table :is(th,td) { border: 1px solid #d4dbe4; padding: 8px 10px; vertical-align: middle; text-align: left; }
.zd-construction-layer-table th { width: 48%; font-weight: 600; }
.zd-construction-layer-table thead th { background: #e9edf2; color: #182b4b; }
.zd-construction-layer-table td { color: #536277; }
.zd-construction-layer-label { display: flex; align-items: center; gap: 8px; }
.zd-layer-number { flex: 0 0 21px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #182b4b; color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .zd-construction-dialog { height: calc(100dvh - 16px); }
  .zd-construction-panel { grid-template-columns: 1fr; }
  .zd-construction-layer-table :is(th,td) { padding: 8px; }
  .zd-construction-layer-label { gap: 6px; }
}

.zd-construction-dialog .zd-construction-close { min-width: 40px; max-width: 40px; width: 40px; padding: 0; flex: 0 0 40px; }

#wybrane-projekty .zd-area-label-short { display: none; }
@media (max-width: 380px) {
  #wybrane-projekty .zd-area-label-full { display: none; }
  #wybrane-projekty .zd-area-label-short { display: inline; }
}

@media (max-width: 380px) { #wybrane-projekty .zd-home-project-tagline { min-height: 3em; } }
