/* First page pass. Every rule is restricted to this page and its content. */
.page-pass1-vodnye-steny .ww-hero-grid { grid-template-columns: .95fr 1.15fr; gap: 5%; }
.page-pass1-vodnye-steny .ww-hero { padding-bottom: 40px; }
.page-pass1-vodnye-steny .ww-crumbs { margin-bottom: 28px; }
.page-pass1-vodnye-steny .ww-buyer .ww-subtitle { font-size: clamp(23px,2.15vw,31px); }
.page-pass1-vodnye-steny .ww-lead { max-width: 49ch; }
.page-pass1-vodnye-steny .ww-hero-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px 14px 0 0; }
.page-pass1-vodnye-steny .ww-hero-art { overflow: hidden; border: 1px solid var(--ww-line); border-radius: 14px; background: #fff; }
.page-pass1-vodnye-steny .ww-hero-art figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 14px 18px; margin: 0; font-size: 12px; }
.page-pass1-vodnye-steny .ww-hero-art figcaption strong { font-weight: 600; color: var(--ww-ink); }
.page-pass1-vodnye-steny .ww-hero-art figcaption a { text-underline-offset: 3px; }
.page-pass1-vodnye-steny .ww-hero-key { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; list-style: none; margin: 0; padding: 18px; background: #f6f3f9; }
.page-pass1-vodnye-steny .ww-hero-key li { font-size: 12px; line-height: 1.5; color: var(--ww-muted); }
.page-pass1-vodnye-steny .ww-hero-key b { display: block; color: var(--ww-ink); font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.page-pass1-vodnye-steny .ww-hero-key span { color: var(--ww-accent); margin-right: 5px; font-size: 10px; }
.page-pass1-vodnye-steny #request .pass1-material-summary { margin: 22px 0 0; padding: 15px 0; border-block: 1px solid #ffffff38; font-size: 14px; line-height: 1.65; }
.page-pass1-vodnye-steny #request .pass1-material-summary strong { color: #fff; font-weight: 600; }
@media (max-width: 1000px) {
  .page-pass1-vodnye-steny .ww-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-pass1-vodnye-steny .ww-lead { max-width: 65ch; }
  .page-pass1-vodnye-steny .ww-hero-art { width: 100%; max-width: 760px; }
  .page-pass1-vodnye-steny .ww-hero-image { aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) {
  .page-pass1-vodnye-steny .ww-crumbs { margin-bottom: 22px; }
  .page-pass1-vodnye-steny .ww-buyer .ww-subtitle { margin: 14px 0; }
  .page-pass1-vodnye-steny .ww-hero-key { gap: 10px; padding: 14px; }
  .page-pass1-vodnye-steny .ww-hero-key b { font-size: 12px; }
  .page-pass1-vodnye-steny .ww-hero-key li { font-size: 11px; }
  .page-pass1-vodnye-steny .ww-hero-art figcaption { padding: 12px 14px; }
}

/* Acceptance fix: keep the open mobile navigator clear of the contact button. */
@media(max-width:780px){
 body.page-pass1-vodnye-steny #sectionRail:not(.is-collapsed){width:min(330px,calc(100vw - 104px))!important;max-width:min(330px,calc(100vw - 104px))!important;padding-bottom:58px!important}
 body.page-pass1-vodnye-steny #sectionRail:not(.is-collapsed) #sectionRailToggle{left:auto!important;right:8px!important;bottom:8px!important;top:auto!important;transform:none!important}
}

/* Failed references remain readable, without empty photo or zoom controls. */
body.page-pass1-vodnye-steny .wwg-card.is-reference-unavailable{display:block;min-height:0}
body.page-pass1-vodnye-steny .wwg-photo.is-reference-unavailable{display:flex;align-items:center;min-height:124px;height:auto;padding:66px 24px 24px;box-sizing:border-box;background:#eee8f3;color:#65556f;cursor:default}
body.page-pass1-vodnye-steny .wwg-card.is-reference-unavailable figcaption{min-height:0;padding:24px 24px 100px}
body.page-pass1-vodnye-steny .wwg-photo.is-reference-unavailable img,body.page-pass1-vodnye-steny .wwg-photo.is-reference-unavailable .wwg-zoom,body.page-pass1-vodnye-steny .wwg-choice.is-reference-unavailable img{display:none}
body.page-pass1-vodnye-steny .wwg-reference-note{font-size:13px;line-height:1.6;max-width:48ch}
body.page-pass1-vodnye-steny .wwg-choice.is-reference-unavailable span{position:static;display:grid;place-items:center;height:100%;font-size:13px;text-shadow:none}
body.page-pass1-vodnye-steny .wwg-dialog-image.is-reference-unavailable img{display:none}
body.page-pass1-vodnye-steny .wwg-dialog-image .wwg-reference-note{align-self:center;text-align:center;padding:28px 66px}
body.page-pass1-vodnye-steny .wwg-reference-note[hidden]{display:none}
body.page-pass1-vodnye-steny .wwg-viewer:has(.wwg-card.is-reference-unavailable:not([hidden])) .wwg-controls{top:16px;right:16px;padding:5px 6px 5px 12px;background:#271d43;border-radius:40px}
body.page-pass1-vodnye-steny .wwg-viewer:has(.wwg-card.is-reference-unavailable:not([hidden])) .wwg-selector{left:24px;right:24px;width:auto}
