.main-block {
  background-image: url(/Img/MainPage/Bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-block__content {
  color: #ffffff;
  padding: 3.5% 0 5.3% 0;
}

.main-block__body {
  display: grid;
  align-items: start;
  row-gap: 2.5rem;
  &:not(:last-child) {
    margin-bottom: 2.7%;
  }
}

.main-block__swiper {
  overflow: hidden;
  margin: 0px -1.25rem;
  padding: 0px 1.25rem;
}

.main-block__swiper-wrapper:not(:last-child) {
  margin-bottom: 1.875rem;
}

.slide-main-block__content {
  &:not(:last-child) {
    margin-bottom: 6.3%;
  }
}

.slide-main-block__title {
  font-weight: 700;
  &:not(:last-child) {
    margin-bottom: 0.41em;
  }
}

.slide-main-block__sub-title {
  font-weight: inherit;
  &:not(:last-child) {
    margin-bottom: 0.83em;
  }
}

.slide-main-block__title,
.slide-main-block__sub-title {
  font-size: 2.25rem;
  line-height: 128%;
  letter-spacing: 0.03em;
}

.slide-main-block__text {
  font-size: 1.25rem;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.7);
}

.controll-main-block {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 1.25rem;

  .controll-main-block__dotts {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 0.9375rem;

    .swiper-pagination-bullet {
      position: relative;
      cursor: pointer;
      height: 2.5rem;
      width: 1.125rem;
      transition: all 0.3s ease 0s;
      background: transparent;
      opacity: 1;
      &::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        height: 0.625rem;
        width: 0.625rem;
        border-radius: 50%;
        background-color: #e8aa31;
        transform: translate(0px, -50%);
        opacity: 0;
      }
      &::after {
        content: "";
        position: absolute;
        top: 50%;
        height: 0.125rem;
        width: 100%;
        background-color: #fff;
        transform: translate(0px, -50%);
        border-radius: 0;
      }
    }

    .swiper-pagination-bullet-active {
      width: 1.875rem;
      background: transparent;
      &::before {
        opacity: 1;
        left: 1.25rem;
        transition: left 3s linear 0s;
      }
      &::after {
        background-color: #e8aa31;
      }
    }
  }
}

.fraction-controll {
  display: flex;
  align-items: flex-end;
  letter-spacing: 0.2em;
  color: #fff;
  .fraction-controll__current {
    font-weight: 600;
    font-size: 1.5rem;
    color: #e8aa31;
  }

  .fraction-controll__all {
    font-weight: 600;
  }
}

.media-main-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem;
}

.media-main-block__body {
  position: relative;
}

.media-main-block__image {
  & img {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }
  &::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4%;
    width: 94.2%;
    padding-bottom: 94.2%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform: translate(31%, 0px);
  }
}

.media-main-block__tips {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  height: 100%;
  width: 100%;
}

.media-main-block__tip {
  position: absolute;
  height: 1.25rem;
  width: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s ease 0s;
  &:hover {
    transform: rotate(-180deg);
  }
  & span {
    position: absolute;
    top: -25%;
    left: -25%;
    z-index: 3;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 15px;
    color: #fff;
  }
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: #e8aa31;
  }
  &::after {
    opacity: 0.5;
    transform: scale(1.6);
  }
}

.media-main-block__tip_1 {
  top: 37.2%;
  left: 16.1%;
}

.media-main-block__tip_2 {
  top: 11.4%;
  right: 2.9%;
}

.media-main-block__tip_3 {
  right: 3.7%;
  bottom: 23%;
}

.media-main-block__tip-text {
  position: absolute;
  top: 130%;
  left: -100%;
  z-index: -1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 300%;
  height: 150%;
  font-size: 1.25rem;
  color: #fff;
  border-radius: 5px;
  background-color: #2d2c2c;
  transform: rotate(180deg);
}

.advantages-main {
  display: grid;
  justify-content: space-between;
  gap: 0.625rem;
  grid-template-columns: repeat(4, auto);
}

.advantages-main__item {
  display: inline-grid;
  gap: 1.0625rem;
  text-align: center;
  max-width: 18.125rem;
  grid-template-rows: 77px auto;
}

.advantages-main__text {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 160%;
}

/* MEDIA (TABLET)*/

@media (min-width: 1023px) {
  .main-block__body {
    grid-template-columns: 1fr 39.6875%;
  }

  .slide-main-block__content {
    padding-right: 2.5rem;
  }
}

@media (max-width: 1023px) {
  .slide-main-block__title,
  .slide-main-block__sub-title {
    font-size: 1.375rem;
  }

  .slide-main-block__text {
    font-size: 1rem;
  }

  .slide-main-block__button {
    width: 100%;
  }

  .advantages-main {
    row-gap: 1.875rem;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

/* MEDIA (PHONE) */

@media (max-width: 767px) {
  .advantages-main {
    grid-template-columns: repeat(1, 1fr);
  }
}
