/* Shared project viewer and the approved production illustration. */
.project-slide[role="button"]{cursor:zoom-in;position:relative}
.project-slide[role="button"]:focus-visible{outline:2px solid #176a58;outline-offset:5px}
.project-slide[role="button"]:after{content:'Увеличить';position:absolute;right:14px;bottom:14px;padding:8px 13px;border-radius:30px;background:rgba(247,249,242,.9);color:#193b32;font:500 14px/1.3 Manrope,sans-serif;backdrop-filter:blur(10px);pointer-events:none;box-shadow:0 4px 16px #122b2512}
.project-viewer{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:72px 5vw 84px;border:0;background:rgba(12,25,23,.93);color:#fff;overflow:hidden;box-sizing:border-box}
.project-viewer[open]{display:flex;align-items:center;justify-content:center}
.project-viewer::backdrop{background:rgba(12,25,23,.94)}
.project-viewer-track{display:flex;width:100%;height:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom}
.project-viewer-track::-webkit-scrollbar{display:none}
.project-viewer-frame{flex:0 0 100%;width:100%;min-width:0;height:100%;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;scroll-snap-stop:always;padding:0 4px;box-sizing:border-box}
.project-viewer-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 24px 90px #0005;opacity:1;touch-action:pan-x pan-y pinch-zoom;user-select:none;-webkit-user-drag:none}
.project-viewer-image[hidden],.project-viewer-message[hidden]{display:none}
.project-viewer-message{max-width:380px;text-align:center;font:500 16px/1.6 Manrope,sans-serif;color:#fff}
.project-viewer-image.is-loading{opacity:.25}
.project-viewer button{width:46px;height:46px;display:grid;place-items:center;border:1px solid #ffffff45;border-radius:50%;background:#ffffff13;color:inherit;cursor:pointer;transition:background .2s ease;position:relative}
.project-viewer button:hover{background:#ffffff28}
.project-viewer button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.project-viewer button:disabled{opacity:.3;cursor:default}
.project-viewer .project-viewer-close{position:absolute;top:max(14px,env(safe-area-inset-top));right:20px}
.project-viewer-close:before,.project-viewer-close:after{content:'';position:absolute;width:19px;height:1.5px;background:currentColor;transform:rotate(45deg)}
.project-viewer-close:after{transform:rotate(-45deg)}
.project-viewer-controls{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:22px;align-items:center;font:500 14px/1.4 Manrope,sans-serif}
.project-viewer-previous:after,.project-viewer-next:after{content:'';width:10px;height:10px;border-left:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);margin-left:4px}
.project-viewer-next:after{transform:rotate(225deg);margin-left:-4px}
.project-viewer.reduce-motion *{transition:none}
.production-object{display:block;width:100%;max-height:360px;object-fit:contain;margin:0 auto 20px}
.advantages-points .production-object{height:190px;max-width:320px;margin:0 auto 14px}
.balcony-production.has-production-object{display:grid;grid-template-columns:1fr 1fr;gap:28px 56px;align-items:center}
.balcony-production.has-production-object>h2{grid-column:2;grid-row:1;margin:0;align-self:end}
.balcony-production.has-production-object>.production-copy{grid-column:2;grid-row:2;align-self:start}
.balcony-production.has-production-object>.production-object{grid-column:1;grid-row:1/3;margin:0}
@media(max-width:700px){
 .project-viewer{padding:66px 12px 82px}
 .project-slide[role="button"]:after{right:10px;bottom:10px;padding:7px 12px}
 .production-object,.advantages-points .production-object{height:clamp(150px,27svh,230px);max-height:230px;width:100%;margin:0 auto 16px}
 .balcony-production.has-production-object{display:flex;flex-direction:column;gap:14px;align-items:stretch}
 .balcony-production.has-production-object>h2{align-self:stretch}
 .balcony-production.has-production-object>.production-object{order:-1}
}
@media(prefers-reduced-motion:reduce){.project-viewer *{transition:none!important}}
