/* NEMAZING V82 — обычный предмет = одна карточка + одна картинка */
body.inventory-page .inventory-card{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
}

body.inventory-page .inventory-card-image{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  z-index:1!important;
}

/* В media обычного предмета разрешён только его IMG. */
body.inventory-page .inventory-card-image > :not(img){
  display:none!important;
}

body.inventory-page .inventory-card-image > img{
  display:block!important;
  position:relative!important;
  z-index:2!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}

/* Номерная верстка никогда не может жить внутри обычной карточки. */
body.inventory-page .inventory-card .inventory-plate-card,
body.inventory-page .inventory-card .inventory-plate-face,
body.inventory-page .inventory-card .inventory-plate-main,
body.inventory-page .inventory-card .inventory-plate-country-panel,
body.inventory-page .inventory-card .inventory-plate-flag-band{
  display:none!important;
}

/* Если plate-объект по ошибке попал в общую сетку — скрываем его.
   Разрешаем plate card только в настоящей вкладке «Автономера». */
body.inventory-page .inventory-grid > .inventory-plate-card{
  display:none!important;
}
body.inventory-page[data-inventory-category="plates"] .inventory-grid > .inventory-plate-card{
  display:flex!important;
}

/* Убираем любые отрицательные сдвиги, способные визуально наложить соседние карточки. */
body.inventory-page .inventory-grid > .inventory-card,
body.inventory-page .inventory-grid > .inventory-plate-card{
  margin-top:0!important;
  transform:none;
}
