/* Own brands: the uploaded ZAC (140×66) and REVTOOL (300×300) PNGs
   contain large white margins. Show the marks, not the whole canvases.
   This is the source for the same rules at the end of glavnaya-approved.css. */
.hm-codex .hm-brands-no-local .hm-brand-logo-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 96px;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #17171a;
}

.hm-codex .hm-brands-no-local .hm-brand-logo-slot img {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  object-fit: fill;
  mix-blend-mode: multiply;
}

/* ZAC: visible artwork is x=29–111, y=16–50 in the 140×66 upload. */
.hm-codex .hm-brands-no-local .hm-own-brand:first-child .hm-brand-logo-slot img {
  top: -21px;
  left: -61px;
  width: 140px;
  height: 66px;
  transform: scale(2.1);
  transform-origin: top left;
}

/* REVTOOL: visible artwork is x=15–284, y=119–180 in the 300×300 upload. */
.hm-codex .hm-brands-no-local .hm-own-brand:nth-child(2) .hm-brand-logo-slot img {
  top: -102px;
  left: -15px;
  width: 300px;
  height: 300px;
}

.hm-codex .hm-brands-no-local .hm-brand-logo-slot > strong {
  /* вне шкалы намеренно: утверждённый размер текстовой заглушки марки */
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  color: #17171a;
  font-family: Montserrat, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.hm-codex .hm-brands-no-local .hm-own-brand:first-child .hm-brand-logo-slot > strong {
  letter-spacing: 0.015em;
}

.hm-codex .hm-brands-no-local .hm-own-brand:nth-child(2) .hm-brand-logo-slot > strong {
  letter-spacing: -0.015em;
}

.hm-codex .hm-brands-no-local .hm-own-brand-meta {
  min-height: 0;
}

@media (max-width: 767px) {
  .hm-codex .hm-brands-no-local .hm-brand-logo-slot {
    height: 80px;
    margin-bottom: 8px;
  }

  .hm-codex .hm-brands-no-local .hm-own-brand:first-child .hm-brand-logo-slot img {
    top: -14px;
    left: -52px;
    transform: scale(1.8);
  }

  .hm-codex .hm-brands-no-local .hm-own-brand:nth-child(2) .hm-brand-logo-slot img {
    top: -110px;
  }

  .hm-codex .hm-brands-no-local .hm-brand-logo-slot > strong {
    /* вне шкалы намеренно: утверждённый мобильный размер заглушки */
    font-size: 28px;
  }
}
