.project-art,.projects-sample,.case-slide{position:relative}
button.mdq-cover{position:absolute;inset:0;z-index:2;width:100%;height:100%;background:transparent;border:0;border-radius:inherit;cursor:pointer}
.mdq-cover:focus-visible{outline:3px solid #317eff;outline-offset:-4px}
html.mdq-viewing{overflow:hidden}
dialog.mdq-dialog{box-sizing:border-box;width:min(900px,calc(100% - 24px));max-height:88vh;max-height:88dvh;margin:auto;padding:0 clamp(16px,3vw,32px) 22px;background:#111d2a;color:#edf5fc;border:1px solid #486274;border-radius:18px;box-shadow:0 24px 90px #0007;overflow:auto;overscroll-behavior:contain}
.mdq-dialog::backdrop{background:#07111fd4;backdrop-filter:blur(6px)}
.mdq-dialog>header{position:sticky;inset:0 0 auto;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:18px 0 12px;background:#111d2a;color:inherit;box-shadow:none;border:0}
.mdq-dialog h2,.mdq-dialog h3,.mdq-dialog p{color:inherit;margin:0}
.mdq-dialog h2{font-size:clamp(26px,4vw,38px);line-height:1.2}
.mdq-dialog small{font-size:11px;letter-spacing:.08em;color:#9cc9f4}
.mdq-dialog button,.mdq-dialog a{background:#22374a;color:white;border:1px solid #536a7c;border-radius:9px;padding:9px 14px;font:inherit;cursor:pointer}
.mdq-dialog header button{font-size:24px;line-height:1;width:44px;height:44px}
.mdq-dialog p{line-height:1.55;font-size:15px;color:#c7d6e1}
.mdq-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0}
.mdq-details section{padding:0;background:none}
.mdq-dialog h3{font-size:16px;margin-bottom:4px}
.mdq-dialog .mdq-note{font-size:12px;color:#a2bdce;margin-bottom:10px}
.mdq-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px}
.mdq-gallery figure{margin:0;overflow:hidden;border-radius:10px;border:1px solid #314453;background:#0b1722}
.mdq-gallery img{display:block;width:100%;height:clamp(220px,36vh,380px);object-fit:contain;background:#08121c}
.mdq-gallery figcaption{padding:9px 12px;font-size:13px;color:#c6d8e5}
.mdq-dialog>footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:18px;padding:14px 0 0;background:none;border-top:1px solid #304557}
.mdq-dialog .mdq-contact{background:#235ac9;text-decoration:none}
@media(max-width:600px){.mdq-details,.mdq-gallery{grid-template-columns:1fr}.mdq-gallery img{height:auto;max-height:54vh}.mdq-dialog>header{padding-top:12px}}
