.advantages {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.advantages .item {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border: 1px solid rgba(249,249,249);
    border-radius: 5px;
}
.advantages .item img {
    margin-bottom: 5px;
    max-height: 260px !important;
}
.advantages .item div:nth-of-type(1) {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-first);
    margin-bottom: 5px;
}
.image-comparison {
    position: relative;
    width: 100%;
    height: 450px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 25px;
  }
  .pictures {
      position: relative;
      width: 100%;
      height: 100%;
      opacity: .85;
      display: flex;
      align-items: center;
  }
  .pictures img {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: contain;
  }
  .pictures img.before {
    opacity: .85;
  }
  .pictures .after {
    width: 100%; /* Стартовое положение 50% */
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
  }
  .slider {
    position: absolute;
    top: 0;
    left: 50%; /* Начальное положение по центру */
    width: 5px;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    cursor: ew-resize;
    transform: translateX(-50%);
  }
.bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bar .icon {
position: absolute;
}
.bar .icon:before {
background-color: #fff;
}
@media (max-width: 768px) {
    .advantages {
        grid-template-columns: 1fr 1fr;
    }
    .advantages .item div:nth-of-type(1) {
        font-size: 15px;
    }
    .advantages .item div:nth-of-type(2) {
        font-size: 13px;
    }
    .image-comparison {
      height: 190px;
      border-radius: 10px;
    }
    .bar {
        width: 24px;
        height: 24px;
    }
}