.gallery-brand{color:#eee}
.plan-link.active{border-color:#5aa9ff;background:#1d3554}
#gallery-main{max-width:1680px;margin:0 auto;padding:24px}
.gallery-hero{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px;padding:26px 28px;border:1px solid #252525;border-radius:14px;background:linear-gradient(135deg,#171717,#111)}
.gallery-hero p{margin:0 0 6px;color:#5aa9ff;font-size:11px;font-weight:700;letter-spacing:.14em}
.gallery-hero h1{margin:0;font-size:32px;line-height:1.15}
.gallery-hero div>span{display:block;margin-top:7px;color:#999}
.gallery-summary{min-width:130px;text-align:right}
.gallery-summary strong{display:block;color:#fff;font-size:34px;line-height:1}
.gallery-summary span{color:#777;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.gallery-toolbar{position:sticky;top:58px;z-index:8;display:flex;align-items:end;gap:10px;margin-bottom:18px;padding:12px;border:1px solid #242424;border-radius:10px;background:#111e;backdrop-filter:blur(10px)}
.gallery-toolbar label{display:flex;flex-direction:column;gap:5px;min-width:260px}
.gallery-toolbar label>span{color:#999;font-size:11px}
.gallery-images-filter{flex-direction:row!important;align-items:center;min-width:0!important;padding:8px 10px}
.gallery-images-filter input{width:auto}
#gallery-reset{margin-left:auto}
.gallery-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.gallery-product{min-width:0;overflow:hidden;border:1px solid #252525;border-radius:12px;background:#151515}
.gallery-product-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #242424}
.gallery-product-head h2{margin:0;font-size:15px;overflow-wrap:anywhere}
.gallery-product-head p{margin:4px 0 0;color:#7f8b95;font:11px ui-monospace,SFMono-Regular,Consolas,monospace}
.gallery-product-head a{flex:0 0 auto;padding:5px 8px;border:1px solid #315779;border-radius:5px;color:#a9d4ff;font-size:11px}
.gallery-product-category{display:inline-block;margin-top:7px;padding:3px 6px;border-radius:4px;background:#1b2633;color:#a9d4ff;font-size:10px}
.gallery-strip{display:grid;grid-auto-flow:column;grid-auto-columns:132px;gap:7px;padding:10px;overflow-x:auto;scroll-snap-type:x proximity}
.gallery-image{position:relative;aspect-ratio:1;padding:0;overflow:hidden;border:1px solid #2b2b2b;border-radius:7px;background:#090909;scroll-snap-align:start}
.gallery-image:hover{border-color:#5aa9ff}
.gallery-image img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-image span{position:absolute;left:4px;bottom:4px;padding:2px 5px;border-radius:3px;background:#000b;color:#ddd;font-size:9px}
.gallery-no-images{padding:22px;color:#666;text-align:center}
.gallery-empty{padding:80px 20px;color:#777;text-align:center}
.gallery-more-wrap{padding:22px;text-align:center}
.gallery-more{min-width:180px;padding:10px 18px;background:#2a6bd8;border-color:#2a6bd8}
.gallery-lightbox{width:min(1100px,96vw);height:min(900px,94dvh);padding:0;border:1px solid #343434;border-radius:10px;background:#090909;color:#eee;overflow:hidden}
.gallery-lightbox[open]{display:grid;grid-template-rows:minmax(0,1fr) 46px;place-items:center}
.gallery-lightbox::backdrop{background:#000d}
.gallery-lightbox img{display:block;max-width:100%;max-height:calc(94dvh - 46px);object-fit:contain}
#gallery-lightbox-close{position:absolute;right:10px;top:10px;z-index:2;width:38px;height:38px;padding:0;background:#111d;font-size:26px}
.gallery-lightbox-nav{position:absolute;top:50%;z-index:2;width:44px;height:58px;padding:0;background:#111c;font-size:32px;transform:translateY(-50%)}
.gallery-lightbox-nav.prev{left:10px}.gallery-lightbox-nav.next{right:10px}
.gallery-lightbox footer{align-self:stretch;width:100%;padding:0 16px;background:#151515;display:flex;align-items:center;justify-content:space-between;gap:15px;color:#aaa;font-size:12px}
@media(max-width:760px){
  header#topbar{flex-wrap:wrap}.search-wrap{order:3;flex-basis:100%;max-width:none}.lang{margin-left:auto}
  #gallery-main{padding:12px}.gallery-hero{padding:20px;align-items:start}.gallery-hero h1{font-size:25px}
  .gallery-toolbar{top:104px;flex-wrap:wrap}.gallery-toolbar label{min-width:100%;width:100%}.gallery-images-filter{width:auto!important}.gallery-product-grid{grid-template-columns:1fr}
}
