#zp-photobooks :is(.pb-editor-invitation,.pb-print-intro) {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: clamp(27px,5vw,64px) clamp(10px,4vw,55px);
  background: #fff;
}
#zp-photobooks :is(.pb-editor-invitation h2,.pb-print-intro h1) {
  color: var(--pb-accent);
  font-size: clamp(1.55rem,4.5vw,2.8rem);
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
#zp-photobooks :is(.pb-editor-invitation,.pb-print-intro) p {
  max-width: 57ch;
  margin: 0;
  text-wrap: pretty;
}
#zp-photobooks :is(.pb-editor-invitation,.pb-print-intro) .pb-actions { justify-content: center; margin: 6px 0 0; }
#zp-photobooks :is(.pb-editor-invitation,.pb-print-intro) img {
  display: block;
  width: min(100%,780px);
  height: auto;
  margin-top: 12px;
  object-fit: contain;
}
#zp-photobooks .pb-editor-invitation { margin-block: clamp(38px,6vw,80px); border-block: 1px solid var(--pb-line); }
#zp-photobooks .pb-print-intro { padding-block: clamp(16px,3vw,36px); }
#zp-photobooks .pb-print-intro img { width: min(100%,720px); }
#zp-photobooks #zagruzka { margin-top: 12px; padding-top: 0; border: 0; }
#zp-photobooks .pb-print-workspace { background: #fff; border-radius: 16px; padding: clamp(14px,3vw,34px); }
#zp-photobooks .pb-print-editor-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 18px; }
#zp-photobooks .pb-print-editor-heading h3 { margin: 0; }
#zp-photobooks .pb-print-editor-heading label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#zp-photobooks .pb-print-editor-heading select { width: auto; }
#zp-photobooks .pb-print-upload {
  padding: clamp(12px,2.6vw,30px);
  margin: 0;
  border: 1px dashed #b7a5c6;
  border-radius: 12px;
  background: #faf9fb;
}
#zp-photobooks .pb-print-upload:focus-within,
#zp-photobooks .pb-print-upload[data-dragging] { border-color: var(--pb-accent); background: #f5f1f7; }
#zp-photobooks .pb-print-upload [data-print-hint] { color: var(--pb-muted); font-size: .92rem; font-weight: 400; }
#zp-photobooks .pb-print-back-preview img { max-height: 110px; object-fit: contain; background: white; }
#zp-photobooks .pb-print-workspace [data-print-feedback]:empty { display: none; }

#zp-photobooks[data-pb-route="dizayn"] #zapros,
#zp-photobooks #primery-oformleniya .pb-photo-features article {
  background: rgba(244,244,245,.74);
  border: 0;
  box-shadow: 0 12px 32px rgba(29,22,36,.07);
}
#zp-photobooks[data-pb-route="dizayn"] #zapros { border-radius: 16px; }

#zp-photobooks[data-builder-stage="configuration"][data-pb-route="konstruktor"] .pb-hero-media {
  position: static;
  grid-template: "copy photo" / minmax(0,1fr) minmax(0,.85fr);
  padding: 0 clamp(12px,3vw,36px);
  gap: 12px;
  background: #faf9fb;
  border: 1px solid #eeebf0;
}
#zp-photobooks[data-builder-stage="configuration"][data-pb-route="konstruktor"] .pb-hero-media .pb-hero-copy {
  padding: clamp(16px,2.6vw,35px) 0;
}
#zp-photobooks[data-builder-stage="configuration"][data-pb-route="konstruktor"] .pb-hero-media > figure {
  position: static;
  width: 100%;
  margin: 0;
}
#zp-photobooks[data-pb-route="konstruktor"] .pb-hero-media > figure:not(.pb-printed-calendar) img {
  max-height: 225px;
  filter: none;
}
#zp-photobooks[data-pb-route="konstruktor"] :is(.pb-quote,.pb-wizard-steps ol,.pb-wizard-header [data-step-progress],.pb-work-panel .pb-dropzone,.pb-parameter-choices [aria-pressed="true"]) {
  background: #fff;
}
#zp-photobooks[data-pb-route="konstruktor"] .pb-quote { border: 1px solid var(--pb-line); padding: 18px; }
#zp-photobooks[data-pb-route="konstruktor"] .pb-wizard-steps [aria-current] {
  background: white;
  box-shadow: inset 3px 0 var(--pb-accent);
}
#zp-photobooks .pb-builder-cover-preview a { position: relative; display: block; width: fit-content; }
#zp-photobooks .pb-builder-cover-preview a img { width: clamp(100px,15vw,160px); }
#zp-photobooks .pb-builder-cover-preview a span {
  display: block;
  margin-top: 2px;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#zp-photobooks :is(.pb-studio-frame-tools,.pb-studio-page-actions) { box-sizing: border-box; min-width: 0; }
#zp-photobooks :is(.pb-studio-frame-tools,.pb-studio-page-actions) summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
  list-style: none;
}
#zp-photobooks :is(.pb-studio-frame-tools,.pb-studio-page-actions) summary::-webkit-details-marker { display: none; }
#zp-photobooks :is(.pb-studio-frame-tools,.pb-studio-page-actions) summary::after {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-right: 1px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
#zp-photobooks :is(.pb-studio-frame-tools,.pb-studio-page-actions)[open] summary::after { transform: rotate(225deg); }
#zp-photobooks .pb-studio-page-actions .pb-editor-action-grid { display: grid; min-width: 0; padding: 6px; }
#zp-photobooks .pb-studio-page-actions button { max-width: 100%; padding-inline: 6px; white-space: normal; }

#zp-photobooks[data-pb-route="tehtrebovaniya"] .pb-wide-banner { background: #fff; }
#zp-photobooks[data-pb-route="tehtrebovaniya"] .pb-wide-banner .pb-hero { background: #fff; }
#zp-photobooks[data-pb-route="tehtrebovaniya"] .pb-wide-banner .pb-hero-media > figure img {
  width: min(100%,650px);
  max-height: none;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: transparent;
  filter: none;
}
#zp-photobooks[data-pb-route^="kalendar-"] [data-calendar-quote] .pb-quantity-custom {
  border-top: 1px solid var(--pb-line);
  padding-top: 13px;
  margin-top: 10px;
}
#zp-photobooks .pb-calendar-template-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
#zp-photobooks .pb-calendar-template-controls > button[aria-pressed="true"] { color: white; background: var(--pb-accent); }
#zp-photobooks .pb-calendar-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 205px),1fr));
  gap: clamp(12px,2.2vw,24px);
}
#zp-photobooks .pb-calendar-templates article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  justify-items: center;
  padding: 14px;
  background: #faf9fb;
  border-radius: 12px;
  text-align: center;
}
#zp-photobooks .pb-calendar-templates canvas {
  display: block;
  margin: auto;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 216px;
  box-shadow: 0 7px 18px #21152a23;
}
#zp-photobooks .pb-calendar-templates h3 { font-size: 1.02rem; margin: 0; }
#zp-photobooks .pb-calendar-templates .pb-actions { display: grid; width: 100%; gap: 5px; margin: 0; }
#zp-photobooks .pb-calendar-templates .pb-button { padding: 7px 9px; font-size: .89rem; }
#zp-photobooks [data-pb-calendar-editor="quarter"] .pb-quarter-downloads {
  display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; margin-block: 15px 19px;
}
#zp-photobooks .pb-quarter-downloads p { margin: 0; }
#zp-photobooks .pb-project-file { min-width: 0; }
#zp-photobooks [data-calendar-download-status]:empty { display: none; }

@media (min-width: 981px) {
  #zp-photobooks[data-pb-route="konstruktor"] .pb-workspace {
    grid-template-columns: 76px var(--pb-studio-panel-width) minmax(0,1fr) 154px;
  }
}
@media (max-width: 700px) {
  #zp-photobooks[data-builder-stage="configuration"][data-pb-route="konstruktor"] .pb-hero-media {
    grid-template: "copy" "photo" / minmax(0,1fr);
    gap: 0;
  }
  #zp-photobooks[data-builder-stage="configuration"][data-pb-route="konstruktor"] .pb-hero-media .pb-hero-copy :is(h1,p) { max-width: none; }
  #zp-photobooks[data-builder-stage="configuration"][data-pb-route="konstruktor"] .pb-hero-media > figure img { max-height: 142px; }
  #zp-photobooks[data-pb-route="konstruktor"] .pb-wizard-steps [aria-current] { box-shadow: inset 0 -3px var(--pb-accent); }
}
@media (max-width: 660px) {
  #zp-photobooks[data-pb-route="konstruktor"] .pb-spread-picker {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-height: 210px;
    overflow: auto;
  }
}
