/* ----------------------events--------------------- */
.events {
  padding: 160px 0 120px;
}
.events__conteiner {
  position: relative;
  z-index: 1;
}
.events__cards-future {
  margin-bottom: 60px;
}
.events__cards-block_title {
  font-size: 24px;
  line-height: 108%;
  margin: 0 auto 10px;
}
.events__card {
  margin: 15px;
  border: 1px solid #d1d1d1;
}
.events-img__bg1 {
  width: 462px;
  height: 462px;
  background: url(../img/icons/dots_460x460.svg) no-repeat center;
  background-size: contain;
  position: absolute;
  right: -356px;
  top: 468px;
  z-index: -1;
}
.events-img__bg2 {
  width: 462px;
  height: 462px;
  background: url(../img/icons/dots_460x460.svg) no-repeat center;
  background-size: contain;
  position: absolute;
  left: -334px;
  top: -50px;
  z-index: -1;
}
.events-img__bg3 {
  width: 261px;
  height: 261px;
  background: url(../img/icons/gray_elips_50pt_261x261.svg) no-repeat center;
  background-size: contain;
  position: absolute;
  right: -263px;
  top: -34px;
  z-index: -1;
}
.events-img__bg4 {
  width: 462px;
  height: 462px;
  background: url(../img/icons/dots_460x460.svg) no-repeat center;
  background-size: contain;
  position: absolute;
  left: -412px;
  bottom: -45px;
  z-index: -1;
}
.events__cards-past .events__card-img {
  filter: grayscale(1);
}
/* ------------------not-future__events-------------------------- */
.not-future__events {
  padding: 65px 40px 60px;
  border-radius: 20px;
  position: relative;
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.not-future__events::before {
  content: '';
  width: 460px;
  height: 460px;
  background: url(../img/icons/dots.svg) no-repeat center;
  background-size: contain;
  position: absolute;
  left: -230px;
  bottom: 0px;
  z-index: 1;
}
.not-future__events::after {
  content: '';
  width: 460px;
  height: 460px;
  background: url(../img/icons/dots.svg) no-repeat center;
  background-size: contain;
  position: absolute;
  right: -270px;
  top: -60px;
  z-index: 1;
}
.not-future__events-title {
  font-size: 24px;
  line-height: 108%;
  margin-bottom: 14px;
}
.link__past-events {
  font-size: 35px;
  transform: rotate(90deg);
}
@media screen and (max-width: 1300px) {
  .events {
    padding: 140px 0 105px;
  }
  .events__cards-block_title {
    font-size: 21px;
  }
  .events__card {
    margin: 10px;
  }
  .not-future__events {
    padding: 48px 32px 60px;
  }
  .not-future__events::before {
    width: 401px;
    height: 401px;
    left: -201px;
  }
  .not-future__events::after {
    width: 401px;
    height: 401px;
    right: -236px;
    top: -52px;
  }
  .not-future__events-title {
    font-size: 21px;
    line-height: 162%;
  }
  .link__past-events {
    font-size: 30px;
  }
  .events__cards-future {
    margin-bottom: 52px;
  }
  .nav-links {
    margin: 37px auto 0;
  }
  .events-img__bg1 {
    right: -311px;
    bottom: -290px;
  }
  .events-img__bg2 {
    width: 403px;
    height: 403px;
    left: -292px;
    top: -44px;
  }
  .events-img__bg3 {
    width: 228px;
    height: 228px;
    right: -230px;
    top: -30px;
  }
}
@media screen and (max-width: 1150px) {
  .events {
    padding: 122px 0 92px;
  }
  .events__cards-block_title {
    font-size: 18px;
  }
  .not-future__events::before {
    width: 350px;
    height: 350px;
    left: -175px;
  }
  .not-future__events::after {
    width: 350px;
    height: 350px;
    right: -206px;
    top: -45px;
  }
  .not-future__events-title {
    font-size: 18px;
  }
  .link__past-events {
    font-size: 26px;
  }
  .events-img__bg1 {
    width: 351px;
    height: 351px;
    right: -271px;
    bottom: -253px;
  }
  .events-img__bg2 {
    width: 351px;
    height: 351px;
    left: -255px;
    top: -38px;
  }
  .events-img__bg3 {
    width: 199px;
    height: 199px;
    right: -200px;
    top: -26px;
  }
}
@media screen and (max-width: 970px) {
  .events {
    padding: 106px 0 80px;
  }
  .not-future__events-title {
    font-size: 16px;
  }
  .link__past-events {
    font-size: 25px;
  }
  .not-future__events::before {
    width: 200px;
    height: 200px;
    left: -108px;
    bottom: -114px;
  }
  .not-future__events::after {
    width: 200px;
    height: 200px;
    right: -83px;
    top: -126px;
  }
  .events__title {
    line-height: 24px;
  }
  .events__subtitle {
    margin-top: 16px;
  }
}
@media screen and (max-width: 850px) {
  .events {
    padding: 75px 0 0;
  }
  .events__subtitle {
    margin-top: 8px;
    margin-bottom: 32px;
  }
  .events__cards-block_title {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 0;
  }
  .events__card {
    margin: 8px;
  }
  .events__cards-future {
    margin: 0;
  }
  .not-future__events {
    margin-top: 16px;
    margin-bottom: 32px;
  }
  .events__title h2 {
    flex-direction: row;
    justify-content: center;
  }

  .events-img__bg3 {
    display: none;
  }
  .events-img__bg2 {
    width: 250px;
    height: 250px;
    left: -171px;
    top: 25px;
  }
  .events-img__bg1 {
    width: 250px;
    height: 250px;
    right: -169px;
    bottom: auto;
    top: -40px;
  }
  .events-img__bg4 {
    display: none;
  }
  .events__title span {
    margin-right: 5px;
  }
}
@media screen and (max-width: 660px) {
  .events__cards {
    margin: 8px -8px 0;
  }
}
