#zp-photobooks[data-pb-route="pechat-foto"] .pb-wrap {
  width: min(1352px, 100% - 40px);
}

#zp-photobooks .pb-photo-print-hero {
  display: grid;
  grid-template-columns: minmax(0, 48.5%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 1.94vw, 30px);
  min-height: 490px;
  border-radius: 10px;
  background: #f9f9f9;
  overflow: clip;
}

#zp-photobooks .pb-photo-print-art {
  position: relative;
  align-self: stretch;
  min-height: 490px;
}

#zp-photobooks .pb-photo-print-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#zp-photobooks .pb-photo-print-copy {
  padding: 24px clamp(16px, 3.5vw, 55px) 24px 0;
}

#zp-photobooks .pb-photo-print-copy h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.75rem, 3.875vw, 3.05rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
}

#zp-photobooks .pb-photo-print-copy p {
  max-width: 38ch;
  margin: 8px 0 16px;
  line-height: 1.45;
}

#zp-photobooks .pb-photo-print-copy ul {
  margin: 0 0 18px;
  padding-inline-start: 15px;
  color: var(--pb-muted);
  font-size: .875rem;
  line-height: 1.35;
}

#zp-photobooks .pb-photo-print-copy li + li { margin-top: 6px; }
#zp-photobooks .pb-photo-print-copy .pb-button { min-height: 48px; border-radius: 8px; gap: 6px; }
#zp-photobooks .pb-photo-print-copy .pb-button svg { width: 16px; height: 16px; flex: none; }
#zp-photobooks .pb-photo-print-hero + .pb-page-body { margin-top: clamp(38px, 5vw, 70px); }

#zp-photobooks #formaty .pb-format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
}

#zp-photobooks #formaty .pb-format-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  background: var(--pb-paper);
}

#zp-photobooks #formaty .pb-format-sample {
  position: relative;
  aspect-ratio: 3 / 2;
}

#zp-photobooks #formaty .pb-format-sample img {
  position: absolute;
  inset: 8%;
  display: block;
  width: 84%;
  height: 84%;
  object-fit: contain;
}

#zp-photobooks #formaty .pb-format-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 4px clamp(12px, 1.6vw, 22px) clamp(12px, 1.6vw, 22px);
}

#zp-photobooks #formaty .pb-format-copy :is(h3, p) {
  margin: 0;
}

#zp-photobooks #formaty .pb-format-copy h3 {
  font-size: clamp(1.22rem, 2.05vw, 1.75rem);
  line-height: 1.15;
}

#zp-photobooks #formaty .pb-format-copy p {
  line-height: 1.4;
}

#zp-photobooks #formaty .pb-format-multiple {
  color: var(--pb-muted);
  font-size: .875rem;
}

#zp-photobooks #formaty .pb-format-action {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

#zp-photobooks #formaty .pb-format-action a {
  min-height: 44px;
  padding-inline: 8px;
}

#zp-photobooks #formaty .pb-format-action a:focus-visible { outline-offset: 3px; }

@media (max-width: 999px) {
  #zp-photobooks #formaty .pb-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 605px) {
  #zp-photobooks[data-pb-route="pechat-foto"] .pb-wrap { width: calc(100% - 32px); }
  #zp-photobooks .pb-photo-print-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  #zp-photobooks .pb-photo-print-art { min-height: clamp(270px, 86vw, 395px); }
  #zp-photobooks .pb-photo-print-copy { padding: 4px 18px 24px; }
}

@media (max-width: 480px) {
  #zp-photobooks #formaty .pb-format-sample {
    aspect-ratio: 4 / 3;
  }

  #zp-photobooks #formaty .pb-format-copy {
    font-size: .875rem;
  }

  #zp-photobooks #formaty .pb-format-action a {
    font-size: .875rem;
  }
}
