.before-after {
  background-color: #f1f3ff;
  border-radius: 0 0 30px 30px;
  padding: 120px 0;
}
.before-after.design {
  background-color: #fff;
  border-radius: 0 0 30px 30px;
  padding: 120px 0 120px;
}
.before-after-container {
  max-width: 1440px;
  margin: 0 auto;
}
.before-after-subtitle {
  color: #0e1020;
  text-align: center;
  font-family: Gilroy;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 25.2px */
  max-width: 498px;
  margin: 0 auto 16px;
}
.before-after-subtitle span {
  font-weight: 700;
}

.before-after-title {
  max-width: 736px;
  margin: 0 auto 50px;
  color: #0e1020;
  text-align: center;
  font-family: Gilroy;
  font-size: 64px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 64px */
}
.before-after-title.ru {
  max-width: 877px;
}
.before-after-title span {
  font-style: italic;
  font-weight: 700;
}
.before-after-list {
  display: flex;
  flex-wrap: wrap;
}
.before-after-item {
  width: 50%;
  flex-shrink: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: -8px;
}
.before-after-item img {
  object-fit: cover;
}

.before-after-item {
  position: relative;
  width: 50%;
  background: #ebf1f7;
}
.before-after-item1 {
  background: #b9d9f9;
}
.before-after-item2 {
  background: #2c2c2c;
}
.before-after-item3 {
  background: #e4e2b6;
}
.before-after-item4 {
  background: #e1d6fa;
}

.before-after-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* height: 100%; */
  height: auto;
  margin-bottom: -8px;
}

.baia {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  /* height: calc(100% - 8px); */
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(47, 46, 69, 1);
}

.before-after-front-img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
}

.before-after-range {
  position: absolute;
  width: calc(100% + 50px);
  top: calc(50% - 25px);
  left: -25px;
  z-index: 1;
  background: transparent;
}

.before-after-range::-webkit-slider-thumb,
.before-after-range::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  background: transparent;
  border-radius: 50%;
}

.before-after-range {
  -webkit-appearance: none;
  appearance: none;
  height: 50px;
  background: transparent;
  border-radius: 50%;
}

.before-after-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 50px;
  transform: translateX(-1px);
  background: transparent;
  border-radius: 50%;
  background-image: url('../../img/arrs.svg');
  background-size: cover;
  cursor: pointer;
}

.before-after-range::-moz-range-thumb {
  width: 50px;
  height: 50px;
  transform: translateX(-1px);
  background: transparent;
  border-radius: 50%;
  background-image: url('../../img/arrs.svg');
  background-size: cover;
  cursor: pointer;
}

.before-after-badge {
  position: absolute;
  display: flex;
  width: max-content;
  padding: 7px;
  border-radius: 22.5px;
  background-color: rgba(47, 46, 69, 1);
  backdrop-filter: blur(2px);
  gap: 20px;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 1;
}
.before-after-badge-left,
.before-after-badge-right {
  flex-shrink: 0;
  border-radius: 22.5px;
  padding: 2px 20px;
  background-color: #2b49e2;
  color: #fafafc;
  text-align: center;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 25px;
  cursor: pointer;
  transition: all 0.1s linear;
}
.before-after-badge-right {
  background-color: transparent;
}

.before-after-badge.active .before-after-badge-left {
  background-color: transparent;
}
.before-after-badge.active .before-after-badge-right {
  background-color: #2b49e2;
}

@media screen and (max-width: 1024px) {
  .before-after {
    padding: 50px 0 70px;
  }
  .before-after.design {
    padding: 60px 0 60px;
  }
  .before-after-title {
    font-size: 48px;
    margin-bottom: 30px;
  }
  .before-after-subtitle {
    font-size: 16px;
    max-width: 320px;
  }
  .before-after-title.ru {
    max-width: 760px;
  }
}
@media screen and (max-width: 767px) {
  .before-after-item {
    width: 100%;
  }
  .before-after-list {
    flex-direction: column;
    align-items: center;
  }
  .before-after-title {
    font-size: 32px;
    margin-bottom: 24px;
    max-width: 358px;
  }
  .before-after-title.ru {
    max-width: 488px;
  }
  .before-after-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* height: 100%; */
    height: auto;
    margin-bottom: 0px;
  }
}
@media screen and (max-width: 480px) {
  .before-after-badge {
    bottom: 20px;
  }
  .before-after-title.ru {
    max-width: 360px;
  }
}
