.banner {
  padding: 0;
  margin-top: 0;
}

.banner__item {
  position: relative;
  min-height: 560px;
  background: image-set(
      url('/img/redesign/mainbg.webp') type('image/webp'),
      url('/img/redesign/mainbg.jpg') type('image/jpeg')
    )
    50% 100% / cover no-repeat;
}

.banner__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22));
}

.banner .container {
  position: relative;
  z-index: 1;
  min-height: 560px;
}

.banner__title {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 46px 20px 20px;
  text-align: center;
}

.banner__title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 6.66%,
    rgba(255, 255, 255, 0.9) 37.52%,
    rgba(255, 255, 255, 0.9) 64.68%,
    rgba(255, 255, 255, 0) 95.16%
  );
  z-index: -1;
}

.banner__badge {
  position: absolute;
  top: -26px;
  width: fit-content;
  padding: 10px 26px;
  border-radius: 3px;
  background: #0067b3;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.banner__subtitle {
  color: #000000;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.banner__button {
  width: 282px;
  margin: 14px auto 0;
}

.banner__props {
  position: absolute;
  right: 30px;
  bottom: 22px;
  left: 30px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.banner__props a {
  position: relative;
  width: 33.333%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s linear;
}

.banner__props a::before {
  content: '';
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
}

.banner__props .banner__prop--equipment::before {
  background-image: url('/img/redesign/icons/banner-equipment.svg');
}

.banner__props .banner__prop--trade-in::before {
  background-image: url('/img/redesign/icons/banner-trade-in.svg');
}

.banner__props .banner__prop--one-day::before {
  background-image: url('/img/redesign/icons/banner-one-day.svg');
}

.banner__props a:hover {
  z-index: 2;
  transform: scale(1.02);
  background: #0b70b7;
  color: #ffffff;
}

@media (min-width: 1200px) {
  .banner .container {
    max-width: 1300px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .banner__item,
  .banner .container {
    min-height: 62vw;
  }

  .banner__title {
    top: 12vw;
    padding: 0;
  }

  .banner__title::before {
    content: none;
  }

  .banner__badge {
    position: relative;
    top: 0;
    font-size: 3vw;
  }

  .banner__subtitle {
    margin-top: 2vw;
    font-size: 3vw;
  }

  .banner__props {
    bottom: 24px;
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .banner__props a {
    width: calc(50% - 4px);
  }
}

@media (max-width: 767px) {
  .banner__item {
    min-height: 0;
    padding-top: 37vw;
    background-color: #0b70b7;
    background-image:
      image-set(
        url('/img/redesign/mainbg.webp') type('image/webp'),
        url('/img/redesign/mainbg.jpg') type('image/jpeg')
      ),
      linear-gradient(180deg, #0b70b7 0%, #075ca3 55%, #063b78 100%);
    background-position:
      50% 0,
      0 0;
    background-size:
      100% auto,
      100% 100%;
    background-repeat: no-repeat;
  }

  .banner__item::after {
    content: none;
  }

  .banner .container {
    min-height: 0;
    padding: 14px 10px 22px;
  }

  .banner__title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 0 0 12px;
    color: #ffffff;
  }

  .banner__title::before {
    content: none;
  }

  .banner__badge {
    position: static;
    max-width: 100%;
    padding: 6px 11px;
    background: #0067b3;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
  }

  .banner__subtitle {
    max-width: 100%;
    margin-top: 7px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.22;
    text-align: center;
  }

  .banner__button {
    width: 100%;
    max-width: 310px;
    height: 44px;
    margin-top: 12px;
    font-size: 13px;
  }

  .banner__props {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .banner__props a {
    width: fit-content;
    min-height: 0;
    margin: 0;
    gap: 0;
    padding: 7px 9px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 11px;
    justify-content: center;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .banner__props a::before {
    content: none;
  }

  .banner__props a:hover {
    transform: none;
  }
}
