.spec-layout--gallery{align-items:start}
.spec-layout--gallery .spec-card{position:sticky;top:110px}
.vehicle-gallery{min-width:0}
.vehicle-gallery__heading{margin-bottom:18px}
.vehicle-gallery__heading h2{margin:0 0 4px;font-size:1.8rem}
.vehicle-gallery__heading p{margin:0;color:var(--muted);font-size:.9rem}
.vehicle-gallery__stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:16px;background:var(--sky);cursor:zoom-in}
.vehicle-gallery__stage>img{display:block;width:100%;height:100%;object-fit:contain}
[data-gallery-ready]:not([data-gallery-ready=true]){visibility:hidden}
.vehicle-gallery__stage[aria-busy=true]::before,.vehicle-lightbox__view[aria-busy=true]::before{position:absolute;content:'Загружаем фото…';font-size:.85rem}
.vehicle-gallery__stage[aria-busy=true]::before{color:var(--muted)}
.vehicle-lightbox__view[aria-busy=true]::before{color:#c5e2ee}
.vehicle-gallery__expand{position:absolute;right:14px;bottom:14px;display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:8px;background:var(--navy);color:#fff;font-size:.76rem;font-weight:700}
.vehicle-gallery svg,.vehicle-lightbox svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vehicle-gallery__caption{display:flex;justify-content:space-between;align-items:start;gap:20px;min-height:42px;padding:11px 2px 8px;font-size:.85rem;color:var(--muted)}
.vehicle-gallery__caption>[data-gallery-count]{flex:none;font-variant-numeric:tabular-nums}
.vehicle-gallery__thumbnails{display:flex;gap:10px;overflow-x:auto;max-width:100%;padding:3px 3px 12px;scroll-padding:3px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.vehicle-gallery__thumbnails::-webkit-scrollbar{height:5px}
.vehicle-gallery__thumbnails::-webkit-scrollbar-thumb{border-radius:3px;background:var(--line)}
.vehicle-gallery__thumbnail{display:flex;flex:0 0 100px;align-items:center;justify-content:center;aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:var(--sky);opacity:.72}
.vehicle-gallery__thumbnail img{width:100%;height:100%;object-fit:cover}
.vehicle-gallery__thumbnail:hover,.vehicle-gallery__thumbnail[aria-current=true]{opacity:1}
.vehicle-gallery__thumbnail[aria-current=true]{outline:2px solid var(--cyan-2);outline-offset:1px}
.vehicle-gallery__stage:focus-visible,.vehicle-gallery__thumbnail:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.vehicle-gallery__error{margin:10px 0 0;color:var(--navy);font-size:.85rem}
body.gallery-open{overflow:hidden}
.vehicle-lightbox{box-sizing:border-box;width:min(1160px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:20px 24px 18px;border:0;border-radius:16px;background:var(--navy);color:#fff}
.vehicle-lightbox::backdrop{background:rgba(2,15,24,.9)}
.vehicle-lightbox__header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.vehicle-lightbox__header p{margin:0;color:#fff;font-size:1rem;font-weight:700}
.vehicle-lightbox__control{display:flex;flex:none;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:1px solid #587b8e;border-radius:8px;background:var(--navy);color:#fff;cursor:pointer}
.vehicle-lightbox__control:hover{background:var(--navy-2)}
.vehicle-lightbox__control:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
.vehicle-lightbox__view{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:180px;height:min(70dvh,760px);background:#062235;border-radius:8px}
.vehicle-lightbox__view>img{width:100%;height:100%;object-fit:contain}
.vehicle-lightbox__previous,.vehicle-lightbox__next{position:absolute;z-index:1;top:calc(50% - 23px)}
.vehicle-lightbox__previous{left:12px}
.vehicle-lightbox__next{right:12px}
.vehicle-lightbox__caption{display:flex;justify-content:space-between;gap:20px;padding-top:14px;color:#c5e2ee;font-size:.9rem}
.vehicle-lightbox__caption>[data-gallery-large-count]{flex:none;font-variant-numeric:tabular-nums}
@media(max-width:780px){
  .spec-layout--gallery .spec-card{position:static}
  .vehicle-gallery__heading h2{font-size:1.55rem}
  .vehicle-gallery__thumbnail{flex-basis:82px}
  .vehicle-gallery__expand{right:10px;bottom:10px;padding:9px 11px;font-size:.7rem}
  .vehicle-lightbox{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:12px;border-radius:12px}
  .vehicle-lightbox__view{height:min(62dvh,650px)}
  .vehicle-lightbox__header{gap:10px;margin-bottom:10px}
  .vehicle-lightbox__header p{font-size:.9rem}
  .vehicle-lightbox__previous{left:5px}
  .vehicle-lightbox__next{right:5px}
  .vehicle-lightbox__caption{padding-top:10px;font-size:.8rem}
}
