#zp-photobooks .pb-editorial-hero {
  margin-bottom: clamp(34px, 5vw, 70px);
  background: #f6f1f7;
}

#zp-photobooks .pb-editorial-hero.pb-hero-media:not(.pb-hero-product) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy photo";
  overflow: hidden;
}

#zp-photobooks .pb-editorial-hero h1 {
  max-width: 18ch;
  font-size: clamp(1.95rem, 4vw, 3.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

#zp-photobooks .pb-editorial-hero .pb-hero-copy > p:not(.pb-occasion-date) { max-width: 48ch; }
#zp-photobooks .pb-editorial-hero .pb-actions { gap: 8px 12px; }
#zp-photobooks .pb-editorial-hero > figure:not(.pb-editorial-emblem) { margin: 0; align-self: stretch; }
#zp-photobooks .pb-editorial-hero figure > a { display: block; height: 100%; }

#zp-photobooks .pb-editorial-hero.pb-hero-media:not(.pb-hero-product) > figure:not(.pb-editorial-emblem) img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1.55;
  object-fit: cover;
}

#zp-photobooks .pb-editorial-hero > .pb-editorial-emblem {
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0;
  padding: 15px 30px;
}

#zp-photobooks .pb-editorial-hero > .pb-editorial-emblem .pb-delivery-emblem {
  display: block;
  float: none;
  width: min(100%, 215px);
  min-height: 0;
  height: auto;
  margin: 0;
  object-fit: contain;
}

#zp-photobooks .pb-topic-gallery {
  margin-bottom: clamp(36px, 6vw, 74px);
}

#zp-photobooks .pb-topic-gallery .pb-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 32px);
}

#zp-photobooks :is(.pb-topic-gallery,.pb-service-gallery) .pb-gallery img {
  aspect-ratio: 1.53;
  border-radius: 12px;
  object-fit: contain;
  background: var(--pb-surface);
}

#zp-photobooks :is(.pb-topic-gallery,.pb-service-gallery) figcaption {
  margin-top: 6px;
  font-size: .95rem;
  line-height: 1.45;
}

#zp-photobooks .pb-topic-planning {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 68px);
}

#zp-photobooks .pb-topic-planning > section { min-width: 0; margin-bottom: 0; }
#zp-photobooks .pb-topic-planning .pb-topic-shots { padding: clamp(18px, 3vw, 32px); background: #f6f1f7; }
#zp-photobooks .pb-topic-storyboard { margin: 17px 0; padding: 0 0 0 1.65em; }
#zp-photobooks .pb-topic-storyboard li { padding: 12px 0 16px 5px; border-top: 1px solid var(--pb-line); }
#zp-photobooks .pb-topic-storyboard li::marker { color: var(--pb-accent); font-weight: 700; }
#zp-photobooks .pb-topic-storyboard h3 { margin-bottom: 4px; }
#zp-photobooks .pb-topic-storyboard p { margin: 0; color: var(--pb-muted); }

#zp-photobooks .pb-topic-recommendation {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(18px, 4vw, 49px);
  padding: clamp(17px, 4vw, 44px);
  border-top: 0;
  border-radius: 14px;
  background: #f6f1f7;
}

#zp-photobooks .pb-topic-recommendation figure { margin: 0; }
#zp-photobooks .pb-topic-recommendation figure img { width: 100%; height: auto; max-height: 265px; object-fit: contain; }
#zp-photobooks .pb-topic-recommendation .pb-actions { margin-top: 15px; }
#zp-photobooks .pb-topic-recommendation h3 { color: var(--pb-accent); }

#zp-photobooks :is(.pb-topic-related,.pb-blog-list,.pb-material-cards) {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

#zp-photobooks :is(.pb-topic-related,.pb-blog-list,.pb-material-cards) .pb-card {
  border-radius: 12px;
}

#zp-photobooks :is(.pb-topic-related,.pb-blog-list,.pb-material-cards) .pb-card img {
  height: auto;
  aspect-ratio: 1.57;
  object-fit: cover;
}

#zp-photobooks .pb-card-link { display: flex; align-items: center; gap: 5px; }
#zp-photobooks .pb-card-link svg { flex: none; }

#zp-photobooks .pb-editorial-links { list-style: none; padding: 0; margin: 0; }
#zp-photobooks .pb-editorial-links li { border-top: 1px solid var(--pb-line); }
#zp-photobooks .pb-editorial-links li:last-child { border-bottom: 1px solid var(--pb-line); }

#zp-photobooks .pb-editorial-links a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 14px 8px;
  min-height: 58px;
  color: var(--pb-ink);
}

#zp-photobooks .pb-editorial-links a:hover { color: var(--pb-accent); background: #f8f5f9; text-decoration: none; }
#zp-photobooks .pb-editorial-links a > svg { color: var(--pb-accent); }
#zp-photobooks .pb-editorial-links a > svg:first-child { width: 30px; height: 30px; }
#zp-photobooks .pb-editorial-links small { display: block; margin-top: 3px; color: var(--pb-muted); font-size: .95rem; }

#zp-photobooks .pb-nearby-cities a:not(.pb-button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--pb-surface);
  color: var(--pb-ink);
}

#zp-photobooks .pb-nearby-cities a:not(.pb-button):hover { background: var(--pb-lilac); color: var(--pb-accent); }
#zp-photobooks .pb-nearby-cities .pb-delivery-cities { display: flex; flex-wrap: wrap; gap: 8px; }
#zp-photobooks .pb-print-sizes { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; padding: 0; margin: 15px 0 0; }
#zp-photobooks .pb-print-sizes li { padding: 7px 12px; border: 1px solid var(--pb-line); border-radius: 8px; }
#zp-photobooks :is(.pb-delivery-checklist,.pb-material-advice) { padding: clamp(20px, 4vw, 43px); border: 0; border-radius: 14px; background: #f6f1f7; }
#zp-photobooks .pb-material-advice .pb-button { margin-top: 12px; }

#zp-photobooks[data-pb-route="blog"] #stati { scroll-margin-top: 84px; }
#zp-photobooks[data-pb-route="blog"] #rubrika-1 { padding-top: 0; border-top: 0; }
#zp-photobooks[data-pb-route="blog"] .pb-blog-list .pb-card-body { padding: clamp(13px, 2.1vw, 24px); }
#zp-photobooks[data-pb-route="blog"] .pb-blog-list .pb-card-body p { line-height: 1.45; }
#zp-photobooks .pb-article-outline.pb-disclosure { padding: 0; background: #f6f1f7; }
#zp-photobooks .pb-article-outline .pb-jumps { padding: 0 14px 12px; margin: 0; border: 0; }
#zp-photobooks .pb-article-outline .pb-jumps a { color: var(--pb-ink); background: transparent; }
#zp-photobooks .pb-article-outline .pb-jumps a:hover { color: var(--pb-accent); }

#zp-photobooks .pb-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px 26px;
  align-items: center;
  min-height: 0;
  padding: clamp(18px, 3vw, 34px);
}

#zp-photobooks .pb-next-step:has(> img) { grid-template-columns: clamp(80px, 12vw, 145px) minmax(0, 1fr) auto; }
#zp-photobooks .pb-next-step > img { width: 100%; height: auto; max-height: 116px; aspect-ratio: 4 / 3; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  #zp-photobooks :is(.pb-topic-gallery,.pb-topic-related,.pb-material-cards,.pb-blog-list) img { transition: scale 220ms ease-out; }
  #zp-photobooks :is(.pb-topic-gallery,.pb-topic-related,.pb-material-cards,.pb-blog-list) a:is(:hover,:focus-visible) img { scale: 1.025; }
}

@media (max-width: 760px) {
  #zp-photobooks .pb-editorial-hero.pb-hero-media:not(.pb-hero-product) { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "photo"; }
  #zp-photobooks .pb-editorial-hero > .pb-editorial-emblem { display: none; }
  #zp-photobooks .pb-editorial-hero.pb-hero-media:not(.pb-hero-product) > figure:not(.pb-editorial-emblem) img { aspect-ratio: 1.65; }
  #zp-photobooks :is(.pb-topic-related,.pb-blog-list,.pb-material-cards) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #zp-photobooks .pb-topic-planning { grid-template-columns: minmax(0,1fr); }
  #zp-photobooks .pb-topic-planning .pb-topic-shots { grid-row: 1; }
  #zp-photobooks .pb-next-step:has(> img) { grid-template-columns: 90px minmax(0, 1fr); }
  #zp-photobooks .pb-next-step .pb-button { grid-column: 1 / -1; width: fit-content; }
}

@media (max-width: 520px) {
  #zp-photobooks :is(.pb-topic-gallery .pb-gallery,.pb-topic-recommendation,.pb-blog-list,.pb-next-step:not(:has(> img))) {
    grid-template-columns: minmax(0,1fr);
  }
  #zp-photobooks .pb-topic-recommendation figure img { max-height: 180px; }
  #zp-photobooks :is(.pb-topic-related,.pb-material-cards) .pb-card-body { padding: 10px; }
  #zp-photobooks :is(.pb-topic-related,.pb-material-cards) .pb-card h3 { font-size: 1rem; line-height: 1.22; }
  #zp-photobooks .pb-material-cards .pb-card p { font-size: .95rem; line-height: 1.4; }
}

#zp-photobooks .pb-wide-banner {
  margin-bottom: clamp(32px, 5vw, 66px);
  background: linear-gradient(108deg,#f4edf6,#faf5f1 76%);
}

#zp-photobooks .pb-wide-banner .pb-editorial-hero {
  align-items: center;
  gap: clamp(20px, 5vw, 68px);
  margin: 0;
  padding: clamp(24px, 4vw, 52px) 0;
  max-width: none;
  border-radius: 0;
  background: transparent;
}

#zp-photobooks .pb-wide-banner .pb-editorial-hero .pb-hero-copy { padding: 0; }

#zp-photobooks[data-pb-route="materialy"] .pb-material-paper > * {
  max-width: 808px;
  margin-inline: auto;
}
#zp-photobooks[data-pb-route="materialy"] .pb-paper-comparison article {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid var(--pb-line);
}
#zp-photobooks[data-pb-route="materialy"] .pb-paper-comparison img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--pb-surface);
  border-radius: 8px;
}
#zp-photobooks[data-pb-route="materialy"] .pb-paper-comparison h3 {
  font-size: clamp(19px, 2vw, 24px);
}
#zp-photobooks[data-pb-route="materialy"] .pb-paper-comparison p { margin-top: 6px; }
#zp-photobooks[data-pb-route="materialy"] .pb-paper-comparison > p { margin-bottom: 18px; }
@media (max-width: 590px) {
  #zp-photobooks[data-pb-route="materialy"] .pb-paper-comparison article {
    grid-template-columns: minmax(0, 1fr);
  }
}

#zp-photobooks .pb-wide-banner .pb-editorial-hero > figure:not(.pb-editorial-emblem) {
  align-self: center;
  min-width: 0;
}

#zp-photobooks .pb-wide-banner .pb-hero-media.pb-editorial-hero > figure:not(.pb-editorial-emblem) img {
  height: auto;
  aspect-ratio: 1.58;
  border-radius: 12px;
}

#zp-photobooks .pb-wide-banner .pb-editorial-hero .pb-theme-index-art {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1.65;
  justify-self: center;
}

#zp-photobooks .pb-wide-banner .pb-hero-media.pb-editorial-hero > figure.pb-theme-index-art img {
  position: absolute;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgb(41 24 48 / .17));
}

#zp-photobooks .pb-wide-banner .pb-hero-media.pb-editorial-hero > figure.pb-theme-index-art img:first-child {
  inset: 0 12% auto auto;
  width: 46%;
}
#zp-photobooks .pb-wide-banner .pb-hero-media.pb-editorial-hero > figure.pb-theme-index-art img:last-child {
  inset: auto 11% -1% auto;
  width: 84%;
}

#zp-photobooks :is(.pb-centered-callout,.pb-story-choices) {
  text-align: center;
  padding: clamp(27px, 5vw, 62px) 0 0;
  margin: clamp(36px, 6vw, 76px) 0 0;
  border-top: 1px solid var(--pb-line);
}

#zp-photobooks :is(.pb-centered-callout,.pb-story-choices) > h2 { text-wrap: balance; }
#zp-photobooks :is(.pb-centered-callout,.pb-story-choices) > p {
  color: var(--pb-muted);
  max-width: 53ch;
  margin: 10px auto 20px;
  text-wrap: pretty;
}

#zp-photobooks .pb-centered-callout .pb-button { border-radius: 999px; }
#zp-photobooks .pb-callout-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  border-radius: 20px;
  color: var(--pb-accent);
  background: #f5edf6;
}
#zp-photobooks .pb-callout-icon :is(svg,img) { display: block; width: 32px; height: 32px; }
#zp-photobooks .pb-callout-icon img { width: 48px; height: 48px; object-fit: contain; }

#zp-photobooks .pb-story-choices > .pb-story-entry-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 740px;
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
}
#zp-photobooks .pb-story-choices > .pb-story-entry-links > li + li { margin-top: 0; }
#zp-photobooks .pb-story-entry-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 14px 10px;
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  color: var(--pb-ink);
  font-weight: 600;
  text-decoration: none;
}
#zp-photobooks .pb-story-entry-links .pb-callout-icon { margin: 0; }
#zp-photobooks .pb-story-entry-links li:nth-child(2) .pb-callout-icon { background: #e9eef8; color: #4c4f8a; }
#zp-photobooks .pb-story-entry-links li:nth-child(3) .pb-callout-icon { background: #f9eee0; color: #814e27; }
#zp-photobooks .pb-story-entry-links a > svg { margin-top: auto; color: var(--pb-accent); }
#zp-photobooks .pb-story-entry-links a:is(:hover,:focus-visible) { border-color: var(--pb-accent); color: var(--pb-accent); }

#zp-photobooks[data-pb-route="individualnaya"] .pb-individual-gallery .pb-product-stage { overflow: clip; }
#zp-photobooks[data-pb-route="individualnaya"] .pb-individual-gallery .pb-product-photo a { padding: 0; aspect-ratio: 3 / 2; }
#zp-photobooks[data-pb-route="individualnaya"] .pb-individual-gallery .pb-product-photo img { object-fit: cover; }
#zp-photobooks .pb-product-showcase .pb-individual-gallery .pb-product-controls:not([hidden]) { display: flex; gap: 8px; }
#zp-photobooks .pb-individual-gallery .pb-product-controls [data-product-step]:not([hidden]) {
  position: static;
  flex: 0 0 44px;
  background: var(--pb-surface);
}
#zp-photobooks .pb-individual-gallery .pb-product-controls [data-product-step]:not(:disabled):hover { background: var(--pb-lilac); }
#zp-photobooks .pb-individual-gallery .pb-product-controls [data-product-step]:disabled { visibility: visible; opacity: .42; cursor: default; }
#zp-photobooks .pb-product-showcase .pb-individual-gallery .pb-product-thumbs { gap: clamp(4px, 1vw, 10px); }
#zp-photobooks .pb-product-showcase .pb-individual-gallery .pb-model-flip-link { position: static; margin-top: 12px; }
#zp-photobooks .pb-product-showcase .pb-individual-gallery .pb-model-flip-link .pb-button {
  gap: 8px;
  border: 1px solid var(--pb-line);
  background: var(--pb-lilac);
}
#zp-photobooks .pb-individual-gallery .pb-model-flip-link .pb-button svg { width: 20px; height: 20px; }
#zp-photobooks[data-pb-route="individualnaya"] .pb-quick-dialog .pb-book-page-label { margin-bottom: 8px; }
#zp-photobooks[data-pb-route="individualnaya"] .pb-quick-dialog [data-book-thumbnails] {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  #zp-photobooks .pb-wide-banner .pb-editorial-hero .pb-theme-index-art { width: min(100%, 365px); }
}

@media (max-width: 520px) {
  #zp-photobooks .pb-story-choices > .pb-story-entry-links { grid-template-columns: minmax(0, 1fr); }
  #zp-photobooks .pb-story-entry-links a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 16px;
    text-align: start;
    padding: 9px 13px;
  }
  #zp-photobooks .pb-story-entry-links .pb-callout-icon { width: 46px; height: 46px; border-radius: 15px; }
  #zp-photobooks .pb-story-entry-links a > svg { margin: 0; }
}
