/* Плотная вертикальная сетка с автоматическим расчётом высоты карточек */
html body.vtm-sitemap-page .vtm-map-grid[data-view="tiles"],
html body.vtm-sitemap-page .vtm-map-grid[data-view="compact"],
html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-rows:8px!important;
  grid-auto-flow:row dense!important;
  column-gap:14px!important;
  row-gap:10px!important;
  align-items:start!important;
  column-count:auto!important;
}
html body.vtm-sitemap-page .vtm-map-grid[data-view="compact"]{column-gap:10px!important;row-gap:8px!important}
html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:18px!important;row-gap:12px!important}
html body.vtm-sitemap-page .vtm-map-grid[data-view="tiles"]>.vtm-map-section,
html body.vtm-sitemap-page .vtm-map-grid[data-view="compact"]>.vtm-map-section,
html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]>.vtm-map-section{
 display:block!important;
 box-sizing:border-box!important;
 width:100%!important;
 min-width:0!important;
 min-height:0!important;
 max-width:100%!important;
 margin:0!important;
 align-self:start!important;
 break-inside:auto!important;
}
html body.vtm-sitemap-page .vtm-map-grid[data-view="tiles"].vtm-masonry-measuring,
html body.vtm-sitemap-page .vtm-map-grid[data-view="compact"].vtm-masonry-measuring,
html body.vtm-sitemap-page .vtm-map-grid[data-view="large"].vtm-masonry-measuring{
 grid-auto-rows:auto!important;
 grid-auto-flow:row!important;
}
html body.vtm-sitemap-page .vtm-map-grid.vtm-masonry-measuring>.vtm-map-section{grid-row-end:auto!important}
@media(max-width:1050px){
 html body.vtm-sitemap-page .vtm-map-grid[data-view="tiles"],
 html body.vtm-sitemap-page .vtm-map-grid[data-view="compact"],
 html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
 html body.vtm-sitemap-page .vtm-map-grid[data-view="tiles"],
 html body.vtm-sitemap-page .vtm-map-grid[data-view="compact"],
 html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]{grid-template-columns:1fr!important}
}
