.container-pref {
  height: 820px;
  background-color: var(--white);
  padding: 100px 0px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

.title-pref {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 306px;
  color: var(--black);
  font-family: var(--montserrat);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.image-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.items-container-pref {
  width: 1160px;
  display: grid;
  grid-template-columns: repeat(2, 440px);
  grid-template-rows: repeat(2, 260px);
  row-gap: 100px;
  column-gap: 280px;
  z-index: 1;
}

.item-pref {
  width: 440px;
  height: 260px;
  border-radius: 20px;
  border: 0px solid var(--gray);
  padding: 25px 20px 20px 20px;
  box-sizing: border-box;
  position: relative;
}

.item1-pref {
  grid-column: span 1;
  background: var(--gray);
  color: var(--black);
}
.item2-pref {
  grid-column: span 1;
  background: var(--green);
  color: var(--white);
}
.item3-pref {
  grid-column: span 1;
  background: var(--black);
  color: var(--white);
}
.item4-pref {
  grid-column: span 1;
  background: var(--gray);
  color: var(--black);
}

.item-title-pref {
  font-family: var(--montserrat);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  position: absolute;
  top: 25px;
  left: 20px;
  margin: 0px;
  padding: 0px;
}

.item-text-pref {
  width: 375px;
  font-family: var(--nunito);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  position: absolute;
  bottom: 10px;
  left: 10px;
  opacity: 0.8;
  list-style: none;
  padding: 0;
}

.item-text-pref li {
  position: relative;
  padding-left: 10px;
  padding-bottom: 10px;
  text-indent: 10px;
}

.item-text-pref li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
}

.swiper {
  display: none;
}

@media (max-width: 1400px) and (min-width: 1024px) {
  .container-pref {
    height: 760px;
    background-color: var(--white);
    padding: 80px 0px;
  }

  .title-pref {
    font-size: 38px;
  }

  .items-container-pref {
    width: 960px;

    grid-template-columns: repeat(2, 400px);
    grid-template-rows: repeat(2, 260px);
    row-gap: 120px;
    column-gap: 160px;
  }

  .item-pref {
    width: 400px;
    height: 240px;
    padding: 25px 20px 20px 20px;
  }

  .item-title-pref {
    font-size: 20px;

    top: 25px;
    left: 20px;
  }

  .item-text-pref {
    width: 370px;

    font-size: 14px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .container-pref {
    height: 620px;
    padding: 80px 0px;
  }

  .title-pref {
    font-size: 34px;
  }

  .items-container-pref {
    width: 760px;

    grid-template-columns: repeat(2, 340px);
    grid-template-rows: repeat(2, 220px);
    row-gap: 100px;
    column-gap: 80px;
  }

  .item-pref {
    width: 320px;
    height: 220px;
    padding: 20px 15px 15px 15px;
  }

  .item-title-pref {
    font-size: 18px;

    top: 20px;
    left: 15px;
  }

  .item-text-pref {
    width: 300px;

    font-size: 12px;
  }
  .item-text-pref li {
    padding-bottom: 5px;
  }
}
@media (max-width: 768px) {
  .container-pref {
    height: 450px;
    overflow: hidden;
    padding: 60px 0px 20px 0px;
    gap: 10px;
    display: flex;
    background-color: var(--lgray);
  }
  .image-circle {
    width: 345px;
    height: 345px;
  }

  .title-pref {
    font-size: 24px;
    position: relative;
    top: -15%;
    left: -1%;
    transform: translate(0%, 0%);
    width: 345px;
  }

  .items-container-pref {
    width: 345px;

    grid-template-columns: repeat(1, 345px);
    grid-template-rows: repeat(4, 220px);
    row-gap: 30px;
    column-gap: 0px;
    display: none;
  }

  .item-pref {
    width: 345px;
    height: 243px;
    padding: 10px 15px 15px 15px;
  }

  .item-pref > .elipse {
    top: 20px;
  }
  .item-pref > .elipse-one {
    right: 40px;
  }

  .item-pref > .elipse-two {
    right: 20px;
  }

  .item-title-pref {
    font-size: 16px;
    top: 20px;
    left: 15px;
  }

  .item-text-pref {
    width: 300px;
    font-size: 14px;
    left: 5px;
    bottom: 20px;
  }
  .item-text-pref li {
    padding-bottom: 5px;
  }
  .swiper {
    width: 345px;
    height: 320px;
    display: block;
    gap: 20px;
  }

  .swiper-slide {
    width: 345px;
    height: 243px;
  }

  .swiper-pagination {
    --swiper-pagination-color: var(
      --black
    ); /* Цвет активного буллета пагинации */
    --swiper-pagination-bullet-inactive-color: #999999; /* Цвет неактивного буллета */
    --swiper-pagination-bullet-inactive-opacity: 1; /* Прозрачность неактивных буллетов */
    --swiper-pagination-bullet-size: 6px; /* Размер буллетов */
    --swiper-pagination-bullet-horizontal-gap: 4px;
  }
  .item1-pref,
  .item4-pref {
    background-color: var(--white);
    box-shadow: 0px 16px 7px 0px rgba(24, 28, 36, 0),
    0px 7px 7px 0px rgba(24, 28, 36, 0.01),
    0px 5px 6px 0px rgba(24, 28, 36, 0.05),
    0px 4px 4px 0px rgba(24, 28, 36, 0.09),
    0px 1px 2px 0px rgba(24, 28, 36, 0.1);
  }
}
