.works-page{padding-top:34px;padding-bottom:90px}.works-back{font-size:13px;color:var(--gray)}.works-back:hover{color:var(--accent-dark)}.works-intro{display:flex;align-items:end;justify-content:space-between;gap:45px;padding:52px 0 42px;border-bottom:1px solid var(--line)}.works-intro h1{margin:16px 0 0;font-size:clamp(48px,6vw,76px);font-weight:470;letter-spacing:-3px}.works-intro>p{max-width:440px;margin:0 0 8px;color:var(--gray)}
.works-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 18px;margin-top:38px}.works-gallery:empty{display:none}.work-card{margin:0;min-width:0}.work-photo{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:14px;background:#dce4ef;overflow:hidden;cursor:zoom-in}.work-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.work-photo:hover img{transform:scale(1.035)}.work-card h2{margin:12px 0 4px;font-size:16px;font-weight:620;letter-spacing:-.2px}.work-card p{margin:0;color:var(--gray);font-size:13px}.photo-expand{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff70;border-radius:50%;background:#0d1f388c;color:white;backdrop-filter:blur(8px);pointer-events:none}
.works-empty{margin-top:38px;padding:50px 38px;border:1px dashed #cbd5e4;border-radius:18px;background:white}.works-empty h2{font-size:27px;font-weight:520;margin:0 0 8px}.works-empty p{max-width:570px;margin:0;color:var(--gray)}.works-empty[hidden]{display:none}.works-footer{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-top:85px;padding:48px;border-radius:24px;background:#eaf0ff}.works-footer h2{margin:15px 0 0;font-size:38px;font-weight:480;line-height:1.16;letter-spacing:-1.5px}.works-footer>div:last-child{display:flex;flex-direction:column;align-items:stretch;gap:12px}.works-phone{text-align:center;color:var(--accent-dark);font-size:13px;font-weight:620}
.work-viewer{width:fit-content;height:fit-content;margin:auto;box-sizing:border-box;max-width:60vw;max-height:60vh;padding:0;border:0;border-radius:12px;background:transparent;overflow:hidden}.work-viewer[open]{display:grid;place-items:center;background:transparent;border:0}.work-viewer[open]::backdrop{background:rgba(17,16,14,.48);backdrop-filter:blur(2px)}.work-viewer>img{display:block;width:auto;height:auto;min-width:0;min-height:0;max-width:60vw;max-height:60vh;border-radius:12px;object-fit:contain}.work-viewer>button{position:absolute;z-index:3;display:grid;place-items:center;width:50px;height:50px;padding:0;border:1px solid #ffffff5c;border-radius:50%;background:#0d1f38c9;color:white;box-shadow:0 8px 26px #0005;backdrop-filter:blur(10px);cursor:pointer;transition:background .2s,transform .2s}.work-viewer>button:hover{background:var(--accent)}.work-viewer>.viewer-close{top:18px;right:18px}.work-viewer>.viewer-close:hover{transform:scale(1.04)}.work-viewer>.viewer-nav{top:50%;transform:translateY(-50%)}.work-viewer>.viewer-nav:hover{transform:translateY(-50%) scale(1.05)}.work-viewer>.viewer-prev{left:18px;right:auto}.work-viewer>.viewer-next{right:18px;left:auto}.work-viewer>.viewer-counter{position:absolute;z-index:3;left:50%;bottom:18px;transform:translateX(-50%);padding:7px 12px;border-radius:99px;background:#0d1f38c9;color:white;font-size:12px;font-variant-numeric:tabular-nums;backdrop-filter:blur(10px)}.work-viewer>button[hidden]{display:none}
@media(max-width:1000px){.works-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.works-page{padding-top:25px;padding-bottom:65px}.works-intro{display:block;padding:35px 0 28px}.works-intro h1{font-size:48px;letter-spacing:-2px}.works-intro>p{margin-top:18px}.works-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;margin-top:28px}.work-card h2{font-size:15px}.works-footer{display:block;margin-top:60px;padding:30px 23px}.works-footer h2{font-size:31px}.works-footer>div:last-child{margin-top:26px}.work-viewer{max-width:92vw;max-height:75vh;max-height:75dvh;padding:0;border:0;border-radius:12px}.work-viewer>img{max-width:92vw;max-height:75vh;max-height:75dvh;border-radius:8px}.work-viewer>button{width:46px;height:46px}.work-viewer>.viewer-close{top:12px;right:12px}.work-viewer>.viewer-prev{left:8px}.work-viewer>.viewer-next{right:8px}.work-viewer>.viewer-counter{bottom:12px}}
@media(max-width:430px){.work-photo{border-radius:12px}.photo-expand{width:34px;height:34px}.work-card figcaption:empty{display:none}}
@media(prefers-reduced-motion:reduce){.work-card img,.work-viewer>button{transition:none}}


.work-viewer[data-loading="true"]{min-width:min(360px,60vw);min-height:min(220px,60vh)}.viewer-loading{padding:0 72px;text-align:center;font-size:14px;line-height:1.5;color:var(--warm-white,#fff)}.viewer-loading[hidden]{display:none}
@media(max-width:760px){.work-viewer[data-loading="true"]{min-width:min(360px,92vw);min-height:min(220px,75dvh)}}

.work-viewer[data-compact="true"]{overflow:visible}.work-viewer[data-compact="true"]>.viewer-close{top:-54px;right:0}

.viewer-loading:not(.viewer-loading-error){padding:0;width:28px;height:28px;border:2px solid #f6f1e930;border-top-color:var(--bronze,#b78b56);border-radius:50%;animation:viewer-loading-spin .8s linear infinite}
@keyframes viewer-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.viewer-loading:not(.viewer-loading-error){animation:none}}
