/* BK76: realizacje i produkcje — 2026-10-03 */
.production-teaser,
.production-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 38px 6%;
}

.production-teaser {
  border-top: 1px solid var(--line);
}

.production-teaser-heading,
.production-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.production-teaser-heading > div,
.production-section-heading > div {
  max-width: 760px;
}

.production-teaser h2,
.production-section h2 {
  margin: 5px 0 10px;
  font-size: clamp(38px, 4vw, 58px);
}

.production-teaser-heading p:last-child,
.production-section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.production-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.production-teaser-card {
  position: relative;
  display: flex;
  min-height: 360px;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  isolation: isolate;
}

.production-teaser-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.production-teaser-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 22, 34, .9), rgba(10, 22, 34, .08) 72%);
}

.production-teaser-card:hover img {
  transform: scale(1.03);
}

.production-teaser-card span {
  display: block;
  width: 100%;
  padding: 26px;
}

.production-teaser-card small {
  display: block;
  margin-bottom: 6px;
  color: #dce5ee;
  font-size: 12px;
}

.production-teaser-card strong {
  display: block;
  font: 500 clamp(27px, 2.4vw, 38px)/1.08 'Cormorant Garamond', Georgia, serif;
}

.production-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 58px 6% 38px;
}

.production-hero .small-title {
  margin-bottom: 12px;
}

.production-hero h1 {
  max-width: 1050px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 102px);
  line-height: .98;
}

.production-hero .page-lead {
  max-width: 900px;
}

.production-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto 18px;
  padding: 0 6%;
}

.production-index a {
  border: 1px solid #b9c5d2;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
}

.production-index a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.production-section {
  scroll-margin-top: 20px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.production-section:first-child {
  border-top: 0;
}

.production-section-heading {
  align-items: start;
}

.production-section-heading > p {
  max-width: 500px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.production-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.portfolio-photo {
  grid-column: span 4;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #e7ebef;
  cursor: zoom-in;
}

.portfolio-photo.wide {
  grid-column: span 8;
}

.portfolio-photo img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}

.portfolio-photo.wide img {
  height: 370px;
}

.portfolio-photo:hover img {
  filter: brightness(1.04);
  transform: scale(1.018);
}

.production-note {
  max-width: 1400px;
  margin: 0 auto 54px;
  padding: 30px 6%;
  background: #f0ede6;
}

.production-note h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 3.3vw, 48px);
}

.production-note p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
}

.project-case-hero {
  position: relative;
  min-height: 650px;
  margin: 0 22px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.project-case-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 22, 34, .92), rgba(10, 22, 34, .55) 52%, rgba(10, 22, 34, .08));
}

.project-case-copy {
  display: flex;
  min-height: 650px;
  max-width: 790px;
  flex-direction: column;
  justify-content: center;
  padding: 60px 6%;
}

.project-case-copy .small-title {
  color: #d8e1eb;
}

.project-case-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(62px, 8vw, 112px);
  line-height: .93;
}

.project-case-copy p:last-child {
  max-width: 650px;
  margin: 0;
  color: #eef2f5;
  font-size: 18px;
}

.project-case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 34px 6%;
  border-bottom: 1px solid var(--line);
}

.project-case-facts div {
  border-left: 2px solid #b39468;
  padding-left: 16px;
}

.project-case-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.project-case-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.project-case-story {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 6% 50px;
}

.project-case-story h2,
.project-detail h2 {
  margin-bottom: 20px;
  font-size: clamp(40px, 4.3vw, 64px);
}

.project-case-story p,
.project-detail p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.project-case-story ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.project-case-story li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 15px;
}

.project-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 6%;
}

.project-detail-copy {
  max-width: 820px;
  margin-bottom: 28px;
}

.project-detail .production-gallery {
  margin-top: 26px;
}

.project-material-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 44px auto 64px;
  padding: 44px 6%;
  border-radius: 14px;
  background: #f0ede6;
}

.project-material-note h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
}

.project-material-note p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.image-dialog {
  width: min(94vw, 1320px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #111b26;
  color: #fff;
}

.image-dialog::backdrop {
  background: rgba(6, 12, 20, .88);
}

.image-dialog figure {
  margin: 0;
}

.image-dialog img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.image-dialog figcaption {
  padding: 12px 58px 14px 18px;
  font-size: 13px;
  text-align: left;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(12, 24, 36, .75);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .production-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .production-teaser-card:last-child {
    grid-column: auto;
    min-height: 300px;
  }
  .production-section-heading {
    display: block;
  }
  .production-section-heading > p {
    margin-top: 0;
  }
  .portfolio-photo,
  .portfolio-photo.wide {
    grid-column: span 6;
  }
  .portfolio-photo img,
  .portfolio-photo.wide img {
    height: 300px;
  }
  .project-case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-case-story {
    gap: 38px;
  }
}

@media (max-width: 620px) {
  .production-teaser,
  .production-page {
    padding-right: 6%;
    padding-left: 6%;
  }
  .production-teaser-heading {
    display: block;
  }
  .production-teaser-heading .quiet-link {
    margin-top: 8px;
  }
  .production-teaser-grid {
    grid-template-columns: 1fr;
  }
  .production-teaser-card,
  .production-teaser-card:last-child {
    grid-column: auto;
    min-height: 300px;
  }
  .production-hero {
    padding-top: 36px;
  }
  .production-hero h1 {
    font-size: clamp(46px, 14vw, 70px);
  }
  .production-index {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .production-index a {
    flex: 0 0 auto;
  }
  .production-section {
    padding: 36px 0;
  }
  .production-gallery {
    gap: 10px;
  }
  .portfolio-photo,
  .portfolio-photo.wide {
    grid-column: 1 / -1;
  }
  .portfolio-photo img,
  .portfolio-photo.wide img {
    height: auto;
    max-height: 520px;
  }
  .project-case-hero {
    min-height: 610px;
    margin: 0 10px;
    border-radius: 12px;
  }
  .project-case-hero > img {
    object-position: 57% center;
  }
  .project-case-hero::after {
    background: linear-gradient(0deg, rgba(10, 22, 34, .95), rgba(10, 22, 34, .18) 78%);
  }
  .project-case-copy {
    min-height: 610px;
    justify-content: flex-end;
    padding: 42px 7%;
  }
  .project-case-copy h1 {
    font-size: clamp(55px, 16vw, 78px);
  }
  .project-case-copy p:last-child {
    font-size: 16px;
  }
  .project-case-facts {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }
  .project-case-facts div {
    padding-left: 10px;
  }
  .project-case-facts dd {
    font-size: 14px;
  }
  .project-case-story,
  .project-material-note {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 44px;
    padding-bottom: 38px;
  }
  .project-detail {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .production-teaser-card img,
  .portfolio-photo img {
    transition: none;
  }
}
