.atv-tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.atv-brand {
  min-width: 0;
  border-top: 3px solid var(--yellow);
  padding-top: 10px;
}
.atv-brand h2, .atv-brand h3:not(.atv-kind) {
  font: 750 21px/1.2 var(--display);
  margin-bottom: 8px;
}
.atv-kind {
  color: var(--muted);
  font: 650 13px/1.4 var(--font);
  margin: 14px 0 3px;
}
.atv-tree ul { list-style: none }
.atv-tree li { border-bottom: 1px solid var(--line) }
.atv-tree li a {
  display: block;
  padding: 7px 2px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.atv-tree a:hover, .atv-crumbs a:hover, .atv-model header a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#atv.directory-group, #snow.directory-group { max-width: none }
:is(#menu-snow, #snow, #menu-motobuksirovshchiki, #motobuksirovshchiki, #menu-powerboats, #powerboats) .atv-tree { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.atv-brands, .atv-crumbs { display: flex; flex-wrap: wrap; gap: 8px }
.atv-brands { margin: 16px 0 24px }
.atv-brands a {
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 5px;
}
.atv-brands a:hover { background: var(--soft) }
#atv .model-link, #snow .model-link { margin-block: 24px }
#atv #item-6:not(:target) { display: none }
.atv-model { min-height: 38vh }
.atv-model h1 { max-width: 32ch }
.atv-crumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px }
@media (max-width: 900px) {
  .atv-tree { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 580px) {
  .atv-tree, :is(#menu-snow, #snow, #menu-motobuksirovshchiki, #motobuksirovshchiki, #menu-powerboats, #powerboats) .atv-tree { grid-template-columns: minmax(0, 1fr); gap: 20px }
  .atv-tree li a { padding-block: 11px }
}

/* Manufacturer artwork in catalog headings. Reversed originals retain a dark backing. */
.brand-mark {
  display: inline-flex;
  vertical-align: middle;
  width: min(100%, var(--mark-width, 146px));
  height: 38px;
  align-items: center;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.brand-mark[data-brand="stels"], .brand-mark[data-brand="bizon"] {
  background: var(--ink);
  border-radius: 4px;
  padding: 5px 9px;
}
.brand-mark[data-brand="bizon"] { --mark-width: 130px }
.brand-mark[data-brand="baltmotors"] { --mark-width: 158px }
.brand-mark[data-brand="irbis"] { --mark-width: 116px }
.brand-mark[data-brand="gladiator"] { --mark-width: 132px }
.menu-columns a.brand-heading-link, .atv-brand h3 > a {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 2px 0;
}
.directory-brand { margin: 18px 0 8px }

#engines.directory-group, #powerboats.directory-group, #boats.directory-group, #moto.directory-group, #motobuksirovshchiki.directory-group { max-width: none }
#menu-moto .atv-tree, #moto .atv-tree { align-items: start }
.catalog-price { display: inline-block; white-space: nowrap; margin-inline-start: .4em; font-weight: 650 }
.model-price { margin-block: 18px; font-size: clamp(22px, 3vw, 32px); font-weight: 700 }
.moto-sport-link { display: inline-block; margin-top: 16px; text-decoration: underline }
#moto .model-link { margin-block: 24px }
.brand-mark[data-brand="bse"] { background: var(--ink); padding: 5px 9px; border-radius: 4px }
.brand-mark[data-brand="kayo"] { --mark-width: 100px }
