main {
  background-image: url('../../assets/img/services-bg.png');
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  padding-left: 20px;
  padding-right: 20px;
}

.services__wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  margin-top: 220px;
}
.services__title {
  color: var(--black, #081A32);
  text-align: center;
  font-size: 80px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 80px */
}
.services__filters {
  height: 48px;
  margin-top: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.service__filter {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 48px;
  border-radius: 32px;
  background: var(--bg, #ECF1F6);
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 19.8px */
  cursor: pointer;
}
.service__filter.active {
  background: var(--brand-red, #D7171F);
  color: #FFF;
}
.services__items {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 28px;
}
.services__item {
  max-width: 626px;
  border-radius: 32px;
  width: 100%;
  /*height: 530px;*/
  display: flex;
  justify-content: start;
  align-items: end;
  overflow: hidden;
  position: relative;
}
.services__imtem-img {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 32px;
  width: 626px;
  height: 530px;
  transition: all .8s ease;
}
.services__imtem-img:hover {
  transform: scale(1.1);
}
/*.services__item.sea {
  background-image: url('../../assets/img/service-sea.png');
  background-size: cover;
  background-position: center;
}
.services__item.office {
  background-image: url('../../assets/img/service-office.png');
  background-size: cover;
  background-position: center;
}
.services__item.caffe {
  background-image: url('../../assets/img/service-caffe.png');
  background-size: cover;
  background-position: center;
}
.services__item.maxim {
  background-image: url('../../assets/img/service-maxim.png');
  background-size: cover;
  background-position: center;
}*/
.service__text-wrapper {
  z-index: 9999;
  border-radius: 32px;
  background: rgba(8, 26, 50, 0.60);
  backdrop-filter: blur(25px);
  margin: 0 32px 32px 32px;
  padding: 32px;
  width: 100%;
}
.service__title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 28px;
  color: #FFF;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 16px */
  border-radius: 32px;
  background: var(--red, #D7171F);
  margin-bottom: 22px;
}
.service__text {
  color: #FFF;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 26.4px */

}
.pagination__wrapper {
  height: 80px;
  margin-top: 68px;
  margin-bottom: 140px;
  border-radius: 32px;
  background: var(--bg, #ECF1F6);
  display: flex;
  align-items: center;
  justify-content: space-between;

}
.pagination__previous {
  padding-left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.pagination__pages {
  display: flex;
  align-items: center;
}
.pagination__next {
  display: flex;
  align-items: center;
  padding-right: 24px;
  gap: 8px;
  cursor: pointer;
}
.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%; /* 21.6px */
  cursor: pointer;
}
.pagination__page.active {
  background-color: #D7171F;
  color: #FFF;
  border-radius: 32px;
}
.services__filters {
  overflow-y: hidden;
  overflow-x: auto;
}

.service__filter {
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .services__filters {
    gap: 12px;
  }
  .services__title {
    font-size: 60px;
  }
}
@media (max-width: 760px) {
  .services__items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .services__item {
    max-width: 626px;
    width: 100%;
  }
}
@media (max-width: 720px) {
  .services__filters {
    justify-content: start;
  }
}
@media (max-width: 710px) {
  .services__filters {
    width: 100%;
    overflow-x: scroll;
    height: 50px;
  }
  .services__filters::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 700px) {
  .pagination__next,
  .pagination__previous {
    display: none;
  }
  .pagination__wrapper {
    justify-content: center;
  }
  .pagination__page.third,
  .pagination__page.nineth {
    display: none;
  }
  .services__wrapper {
    margin-top: 130px;
  }
}
@media (max-width: 450px) {
  .services__title {
    font-size: 32px;
  }
  .services__item {
    height: 320px;
  }
  .service__text {
    font-size: 18px;
  }
  .service__text-wrapper {
    margin: 0 16px 16px 16px;
    padding: 16px;
  }
}
