/* Żytnia 6: the supplied wide banner stays complete, with readable text below. */
.project-card.project-card--zytnia { grid-template-columns:minmax(0,1fr); }
.project-card.project-card--zytnia > img {
  display:block; width:100%; height:auto; min-height:0; max-height:none;
  aspect-ratio:auto; padding:0; object-fit:contain; border:0; background:var(--navy);
}
.project-card--zytnia .project-card-content {
  display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
  align-items:center; gap:24px 48px; padding:32px 40px;
}
.zytnia-card-heading h3 { margin-bottom:8px; }
.zytnia-card-heading .zytnia-tagline { margin:0; color:var(--brand); font-family:var(--serif); font-size:1.4rem; font-weight:500; line-height:1.35; }
.zytnia-card-details { min-width:0; }
.zytnia-card-details .pill { margin-bottom:12px; font-size:.875rem; }
.zytnia-card-details p { margin-bottom:12px; font-size:1rem; }
.zytnia-card-details .text-link { margin-top:0; }
.detail-hero--zytnia-banner > img {
  width:100%; max-width:1320px; height:auto; min-height:0;
  aspect-ratio:auto; padding:0; object-fit:contain; margin-inline:auto;
}
.detail-hero--zytnia-banner .project-address { font-size:1rem; }
.detail-hero--zytnia-banner .zytnia-intro strong {
  display:block; color:var(--brand); font-size:clamp(1.4rem,2.3vw,2rem);
  font-family:var(--serif); font-weight:500; line-height:1.3; margin-bottom:16px;
}
.detail-hero--zytnia-banner .zytnia-intro span { display:block; }
.zytnia-proof-panel {
  align-self:stretch; display:flex; flex-direction:column; justify-content:center;
  min-height:480px; padding:clamp(30px,5vw,58px); color:#fff;
  background:var(--navy); border-radius:var(--radius); box-shadow:var(--shadow);
}
.zytnia-proof-panel > p { margin:0 0 24px; color:#d9deea; font-size:.875rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.zytnia-proof-panel > strong { color:#fff; font-size:clamp(4.5rem,8vw,7rem); line-height:.82; letter-spacing:-.07em; }
.zytnia-proof-panel > span { max-width:12em; margin:16px 0 34px; color:#fff; font-family:var(--serif); font-size:clamp(1.45rem,2.2vw,1.9rem); line-height:1.3; }
.zytnia-proof-panel dl { margin:0; border-top:1px solid rgb(255 255 255 / 22%); }
.zytnia-proof-panel dl > div { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:18px; padding:16px 0; border-bottom:1px solid rgb(255 255 255 / 16%); }
.zytnia-proof-panel dt { color:#c8cfdf; font-size:.875rem; }
.zytnia-proof-panel dd { margin:0; color:#fff; font-weight:600; }
/* Keep the desktop paragraph's explicit grid placement from creating a narrow
   implicit column on phones. All hero content follows normal vertical flow. */
@media(max-width:900px) {
  .detail-hero--zytnia-banner .detail-hero-content > .container {
    display:flex; flex-direction:column; align-items:stretch;
    width:calc(100% - 40px); gap:24px;
  }
  .detail-hero--zytnia-banner .detail-hero-content > .container > * {
    min-width:0; max-width:100%; flex-shrink:0;
  }
  .detail-hero--zytnia-banner .detail-hero-content > .container > .pill {
    align-self:flex-start; margin:0;
  }
  .detail-hero--zytnia-banner .detail-hero-content .project-heading {
    width:100%; margin:0;
  }
  .detail-hero--zytnia-banner .project-heading h1 {
    width:auto; max-width:none; margin:0;
    font-size:clamp(2.25rem,7vw,3.4rem); line-height:1.15;
    word-break:normal; overflow-wrap:normal;
  }
  .detail-hero--zytnia-banner .detail-hero-content > .container > .zytnia-intro {
    width:100%; align-self:stretch; margin:0;
  }
  .detail-hero--zytnia-banner .zytnia-intro strong { margin-bottom:12px; }
  .detail-hero--zytnia-banner .detail-hero-content > .container > .facts {
    width:100%; margin:0; padding-top:24px;
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px;
  }
}
@media(max-width:640px) {
  .detail-hero--zytnia-banner .detail-hero-content > .container > .facts {
    grid-template-columns:minmax(0,1fr); gap:20px;
  }
}
@media(max-width:820px) {
  .project-card--zytnia .project-card-content { grid-template-columns:minmax(0,1fr); gap:24px; padding:26px; }
  .zytnia-proof-panel { min-height:0; }
}
@media(max-width:600px) {
  .project-card.project-card--zytnia > img,.detail-hero--zytnia-banner > img { height:auto; min-height:0; aspect-ratio:auto; padding:0; }
  .project-card--zytnia .project-card-content { padding:24px; }
}

@media(min-width:901px) {
  .detail-hero--zytnia-banner {
    display:grid;
    grid-template-columns:minmax(0,.95fr) minmax(520px,1.05fr);
    min-height:0;
  }
  .detail-hero--zytnia-banner > .detail-hero-content {
    grid-column:1;
    grid-row:1;
    padding:48px 40px 48px max(32px,calc((100vw - var(--container))/2));
  }
  .detail-hero--zytnia-banner > .detail-hero-content > .container {
    display:block;
    width:auto;
    max-width:570px;
    margin:0;
  }
  .detail-hero--zytnia-banner > img {
    grid-column:2;
    grid-row:1;
    width:100%;
    height:clamp(400px,54vh,500px);
    min-height:0;
    object-fit:contain;
    padding:28px;
    background:var(--brand);
  }
  .detail-hero--zytnia-banner .detail-hero-content > .container > .facts {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    margin-top:24px;
    padding-top:0;
  }
  .detail-hero--zytnia-banner .detail-actions { margin-top:22px; }
}
