/*
 * Главная: комплект полноширинных баннеров v2.3.8.
 * Отдельный файл даёт новый URL и обходит старый объединённый CSS в кэше.
 */

.hero-slider {
  isolation: isolate;
  min-height: clamp(520px, 37.5vw, 720px);
  background: #151b24;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(14, 20, 29, .98) 0%,
    rgba(14, 20, 29, .91) 24%,
    rgba(14, 20, 29, .58) 43%,
    rgba(14, 20, 29, .08) 68%,
    transparent 82%);
}

.hero-slider::after {
  z-index: 2;
  opacity: .22;
  -webkit-mask: linear-gradient(90deg, #000 0 34%, transparent 62%);
          mask: linear-gradient(90deg, #000 0 34%, transparent 62%);
}

.hero-slider .hero-inner {
  display: block;
  max-width: none;
  min-height: inherit;
  margin: 0;
  position: relative;
  z-index: auto;
}

.hero-slider .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  min-height: inherit;
  height: 100%;
  margin: 0;
  overflow: hidden;
  clip-path: none;
}

.hero-slider .hero-media .hero-track,
.hero-slider .hero-slide {
  height: 100%;
  min-height: inherit;
}

.hero-slider .hero-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-slider .hero-copy {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: min(100%, 1320px);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(64px, 6vw, 104px) 32px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: none;
  text-align: left;
}

.hero-slider .hero-logo {
  margin: 0 0 18px;
}

.hero-slider .hero-logo img {
  display: block;
  width: auto;
  max-width: 116px;
  max-height: 54px;
  object-fit: contain;
}

.hero-slider .hero-copy-track {
  width: min(600px, 52%);
}

.hero-slider .hero-copy h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(48px, 4.2vw, 72px);
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.hero-slider .hero-copy p {
  max-width: 540px;
  margin: 18px 0 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  color: #edf0f4;
}

.hero-slider .hero-copy .btn {
  align-self: flex-start;
}

.hero-slider .hero-pager {
  margin-top: clamp(34px, 4vw, 56px);
}

@media (max-width: 1100px) {
  .hero-slider .hero-copy-track {
    width: min(540px, 58%);
  }

  .hero-slider .hero-copy h1 {
    font-size: clamp(44px, 5vw, 58px);
  }
}

@media (max-width: 900px) {
  .hero-slider {
    min-height: 0;
  }

  .hero-slider::before,
  .hero-slider::after {
    display: none;
  }

  .hero-slider .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-slider .hero-copy {
    order: 1;
    width: 100%;
    min-height: 318px;
    padding: 36px 20px 28px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: #151b24;
  }

  .hero-slider .hero-logo {
    margin-bottom: 14px;
  }

  .hero-slider .hero-logo img {
    max-width: 92px;
    max-height: 42px;
  }

  .hero-slider .hero-copy-track {
    width: 100%;
  }

  .hero-slider .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
  }

  .hero-slider .hero-copy p {
    max-width: 420px;
    margin: 14px auto 22px;
    font-size: 15px;
  }

  .hero-slider .hero-copy .btn {
    align-self: center;
  }

  .hero-slider .hero-pager {
    margin-top: 24px;
    justify-content: center;
  }

  .hero-slider .hero-arrows {
    margin-top: 10px;
    justify-content: center;
  }

  .hero-slider .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: 0;
    min-height: 0;
    padding-top: 48%;
    margin: 0;
    clip-path: none;
  }

  .hero-slider .hero-media .hero-track {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
  }

  .hero-slider .hero-slide {
    min-height: 0;
    height: 100%;
    background-position: 72% center;
    background-size: cover;
  }
}

@media (max-width: 420px) {
  .hero-slider .hero-copy {
    min-height: 302px;
    padding-inline: 16px;
  }

  .hero-slider .hero-copy h1 {
    font-size: 34px;
  }

  .hero-slider .hp-dot {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-track {
    transition: none;
  }
}
