.review-content {
  max-width: 1680px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

.review-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.review-title .cmsl_razdsite {
  margin-bottom: 5px;
}

.review-title h1 {
  font-size: 42px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  /* margin-top: 50px; */
  margin-bottom: 52px;
}

.review-header-text {
  font-size: 16px;
  line-height: 1.3;
  margin-right: 30px;
  white-space: pre-wrap;
}

.review-header-button {
  display: flex;
  align-items: center;
  min-width: 255px;
}

.review-header-button__button a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 255px;
  height: 60px;
  padding: 20px;
  background: #000;
  font-size: 15px;
  font-family: "HelveticaNeueCyr";
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.45px;
  text-decoration: none;
  line-height: 1.7;
}

.review-header-button__button a span {
  position: relative;
  overflow: hidden;
}

.review-header-button__button a span::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: 0.2s;
}

.review-header-button__button a:hover span::before {
  width: 100%;
}

.review-header-button__arrow {
  display: flex;
  display: none;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 60px;
  background: #f6f6f6;
  flex: none;
}

.review-items {
  display: flex;
  flex-wrap: wrap;
}

.review-item {
  width: 20%;
  color: #000;
  text-decoration: none;
  border: 1px solid #e7e7e7;
  margin-left: -1px;
  margin-top: -1px;
}

.review-item:hover {
  text-decoration: none;
  color: #000;
}

.review-item-photo {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.review-item-photo-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-size: contain; */
  background-repeat: no-repeat;
  background-position: center;
  /* filter: grayscale(100%); */
  transition: 0.2s;
  will-change: transform;
  padding: 15px;
}

.review-item-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center;
}

.review-item-title {
  padding: 0 10px;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 45px;
}

.review-item:hover .review-item-photo-inner {
  /* filter: grayscale(0); */
  transform: scale(1.05);
}

.review-page {
  display: flex;
  flex-direction: column;
  max-width: 1580px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

.review-content__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-content__title h1 {
  font-size: 30px;
}

.review-photo {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 35px;
  margin-left: -15px;
  margin-right: -15px;
}

.review-photo__item {
  width: 25%;
  padding-left: 15px;
  padding-right: 15px;
}

.review-photo__item_inner {
  display: flex;
  padding-top: 140.69%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.review-text {
  font-size: 16px;
  line-height: 1.5;
}

.review-text p:first-child {
  margin-top: 0;
}

@media(max-width: 1900px) {
  .review-header-button {
    margin-right: 0;
  }
}

@media (max-width: 1365px) {
  .review-header {
    flex-direction: column;
  }

  .review-header-text {
    order: 2;
  }

  .review-header-button {
    order: 1;
    width: 100%;
  }

  .review-header-button__button {
    background: #f6f6f6;
    width: 100%;
  }

  .review-header-button__button a {
    background: #f6f6f6;
    color: #000;
  }

  /* .review-header-button__arrow {
    display: flex;
  } */

  .review-title h1,
  .review-title h1,
  .review-content__title h1 {
    font-size: 24px;
  }

  .projects_razdsite a {
    display: flex;
  }

  .review-header {
    margin-bottom: -10px;
  }

  .review-header-text {
    margin-top: 30px;
    margin-right: 0;
    white-space: normal;
    transition: 0.2s;
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform;
    max-height: 0;
  }

  .review-header-text {
    transform: scaleY(1);
    height: 100%;
    max-height: 1000px;
    padding-bottom: 50px;
  }

  .review-header-text br {
    display: none;
  }

  .review-item {
    width: 33.3333%;
  }

  .review-item-title {
    word-break: break-word;
  }

  .review-content__title {
    margin-bottom: 20px;
  }

  .review-photo {
    margin-left: -5px;
    margin-right: -5px;
  }

  .review-photo__item {
    width: 50%;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
  }

  body[data-theme="_review"] .bread_crumb {
    display: none;
  }

  body[data-theme="_review"] .review-content {
    margin-top: 50px;
  }
}

@media (max-width: 767px) {
  .review-item {
    width: 50%;
  }
}
