.hero {
  height: 50vh;
  height: 50dvh;
  justify-content: flex-end;
  margin-bottom: 72px;
}

@media (max-width: 900px) {
  .hero {
    margin-bottom: 40px;
  }
}

/* Планшеты и мобилка: баннеры с текстом на картинке — вписываем целиком, без cover и zoom */
@media (max-width: 1024px) {
  .hero {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* до расчёта в sliders.js (applyHeroBannerAspect) */
    aspect-ratio: 16 / 5;
    min-height: 120px;
  }

  .hero__slider {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    left: 0;
  }

  .hero__image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #0d0d0d;
    transform: scale(1) !important;
    transition: opacity 2s ease !important;
  }
}

@media (max-width: 640px) {
  .hero {
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
  }

  .main > .hero:first-child {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero__image {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
}

.hero__content {
  width: 100%;
}

.hero__content .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-right: 100px;
  padding-left: 20px;
  text-align: right;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero__content .container {
    padding-right: 20px;
    text-align: center;
  }
}
