/* MOIX — HUD galerie SKINART („MOIX — SPECIMEN“). Tmavá laboratoř, rohové závorky, bez neonu. */
.hg-lab{background:#141015;color:#e9e4ec;border-radius:22px;padding:clamp(18px,3vw,36px);position:relative;
  background-image:radial-gradient(ellipse at 50% 40%,#231d25 0,#141015 70%)}
.hg-lab::before,.hg-lab::after{content:"";position:absolute;width:18px;height:18px;border:1px solid rgba(214,236,255,.45)}
.hg-lab::before{left:12px;top:12px;border-right:0;border-bottom:0}
.hg-lab::after{right:12px;bottom:12px;border-left:0;border-top:0}
.hg-lab-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:rgba(214,236,255,.62);margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid rgba(214,236,255,.14)}
.hg-lab-head b{color:#d6ecff;font-weight:500}
.hg-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px}
.hg-item{display:flex;flex-direction:column;gap:8px;min-width:0}
.hg-tile{all:unset;box-sizing:border-box;position:relative;display:block;cursor:zoom-in;border-radius:6px;overflow:hidden;background:#1b161c;
  outline-offset:3px;aspect-ratio:16/9}
.hg-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.hg-tile:hover img{transform:scale(1.035)}
.hg-tile:focus-visible{outline:2px solid #d9f25c}
.hg-c{position:absolute;width:16px;height:16px;border:1.5px solid #d6ecff;opacity:0;transition:opacity .2s;z-index:1;pointer-events:none}
.hg-c--tl{left:6px;top:6px;border-right:0;border-bottom:0}.hg-c--br{right:6px;bottom:6px;border-left:0;border-top:0}
.hg-tile:hover .hg-c,.hg-tile:focus-visible .hg-c{opacity:1}
.hg-cap{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:12px;color:rgba(233,228,236,.78)}
.hg-kod{color:#f1eef3;font-weight:500;letter-spacing:.06em}
.hg-st{margin-left:auto;font-size:10px;letter-spacing:.12em;text-transform:uppercase;padding:3px 8px;border-radius:999px;border:1px solid rgba(214,236,255,.28);white-space:nowrap}
.hg-st--ok{background:#d9f25c;color:#24162a;border-color:#d9f25c}
.hg-st--wait{color:rgba(233,228,236,.75)}
.hg-st--sold{color:rgba(233,228,236,.55);text-decoration:line-through}
.hg-item.is-sold img{filter:grayscale(.7) brightness(.7)}
.hg-dlg{padding:0;border:0;background:transparent;max-width:min(1600px,96vw);width:fit-content;max-height:98vh;color:#e9e4ec}
.hg-dlg::backdrop{background:rgba(10,8,11,.86)}
.hg-dlg-in{background:#141015;border:1px solid rgba(214,236,255,.18);border-radius:10px;padding:12px}
.hg-dlg-top,.hg-dlg-bot{display:flex;align-items:center;justify-content:space-between;gap:12px;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:12px}
.hg-dlg-top{letter-spacing:.14em;text-transform:uppercase;color:rgba(214,236,255,.7);padding:4px 4px 10px}
.hg-dlg-fig{margin:0;display:flex;justify-content:center}.hg-dlg-fig img{width:auto;max-width:100%;height:auto;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);display:block;border-radius:4px;background:#1b161c}
.hg-dlg-bot{padding:10px 4px 2px}
.hg-dlg-cap{margin:0;text-align:center;line-height:1.7}.hg-dlg-cap small{color:rgba(233,228,236,.62)}
.hg-dlg-cap .hg-st{margin-left:4px}
.hg-x,.hg-nav{font:inherit;color:#e9e4ec;background:transparent;border:1px solid rgba(214,236,255,.3);border-radius:999px;padding:8px 14px;cursor:pointer;min-height:40px;white-space:nowrap}
.hg-x:hover,.hg-nav:hover{border-color:#d9f25c}
@media (max-width:980px){.hg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){
  .hg-grid{gap:18px 10px}
  .hg-tile{aspect-ratio:4/5}
  .hg-cap{font-size:11px;gap:3px 8px}.hg-st{margin-left:0}
  .hg-dlg-bot{flex-wrap:wrap}.hg-dlg-cap{order:-1;width:100%}
  .hg-nav{flex:1}
}
