/* Media formats: keep copy and artwork in normal flow with one shared inset. */
html body.dn9-document--mediynaya-reklama #formats .med-formats-sidebar {
  position: static;
  top: auto;
  align-self: start;
  margin-top: 0;
}
html body.dn9-document--mediynaya-reklama #formats .med-formats-lead { margin-bottom: 0; }
html body.dn9-document--mediynaya-reklama #formats .med-formats-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.25rem;
  padding: clamp(1.25rem, 1.4vw, 1.5rem);
  min-height: 18rem;
  align-items: stretch;
}
html body.dn9-document--mediynaya-reklama #formats .med-formats-card__body {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  justify-content: flex-start;
}
html body.dn9-document--mediynaya-reklama #formats .med-formats-card__content { margin: 0; }
html body.dn9-document--mediynaya-reklama #formats .med-formats-card__desc { max-width: none; }
html body.dn9-document--mediynaya-reklama #formats .med-formats-card__media {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
}
html body.dn9-document--mediynaya-reklama #formats .med-formats-card__media picture {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
html body.dn9-document--mediynaya-reklama #formats .med-formats-card .med-formats-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
}
@media (min-width: 1081px) and (max-width: 1380px) {
  html body.dn9-document--mediynaya-reklama #formats .med-formats-layout {
    grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr);
    gap: 2rem;
  }
  html body.dn9-document--mediynaya-reklama #formats .med-formats-card { gap: 1rem; }
}
@media (max-width: 540px) {
  html body.dn9-document--mediynaya-reklama #formats .med-formats-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1.5rem;
  }
  html body.dn9-document--mediynaya-reklama #formats .med-formats-card__media {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* VK steps: the icon stays green on its light tile when the card is hovered. */
html body.dn-service-cards #process .vkm-process-card :is(.vkm-process-card__icon, .vkm-process-card__icon svg) {
  color: #16a34a !important;
  -webkit-text-fill-color: #16a34a !important;
}
html body.dn-service-cards #process .vkm-process-card .vkm-process-card__icon {
  background: #f7f7f7 !important;
}
