.active .tabs__item-btn {
  position: relative;
  color: #f04a3d;
}
.active .tabs__item-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #f04a3d;
}

.tabs__item > input[type="radio"] {
  display: none;
}

.page-template-template-review .reviews {
  font-weight: 400;
}
.page-template-template-review .reviews__title {
  margin-bottom: 80px;
}
.page-template-template-review .reviews__tabs {
  margin-bottom: 35px;
}

.title {
  font-size: 52px;
  font-weight: 500;
}

.tabs {
  overflow: hidden;
  display: flex;
  align-items: center;
}
.tabs__item {
  margin-right: 40px;
  white-space: nowrap;
  margin-bottom: 7px;
}
.tabs__item-btn {
  font-size: 18px;
  display: inline-block;
  padding-bottom: 7px;
  letter-spacing: -0.18px;
  font-weight: 500;
  background: transparent;
}
.tabs:last-child {
  margin-right: 0;
}

.page-template-template-review .review-list {
  margin-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 20px;
}

.rev-card {
  display: flex;
  padding: 24px 24px 40px;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #f3fafc;
}
.page-template-template-review .review__user-img img {
  width: 100%;
  height: 100%;
}
.rev-card__avatar {
  max-width: 120px;
  margin-bottom: 52px;
}
.rev-card__avatar img {
  width: 100%;
  height: auto;
}
.rev-card__title {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}
.rev-card__rating {
  margin-bottom: 28px;
}
.rev-card__rating svg {
  width: 24px;
  height: 24px;
  display: initial;
}
.rev_ban {
  margin-bottom: 150px;
}
.reviews .rev-card__text {
  font-size: 20px;
  margin-bottom: 36px;
  line-height: 120%;
  flex: 1 0 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

.rev-card__read-full {
  display: flex;
  align-items: center;
  letter-spacing: -0.18px;
  cursor: pointer;
  font-size: 18px;
  background: transparent;
}
.rev-card__read-full-icon {
  margin-left: 24px;
}

.btn-more {
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-more__btn {
  font-family: "Janna LT", sans-serif;
  font-size: 17px;
  line-height: 17px;
  font-weight: 400;
  padding: 19px 40px;
  color: #000;
  background-color: transparent;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.pere_cat.active {
  position: relative;
  color: #f04a3d;
}
.pere_cat.active::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #f04a3d;
}
.case_cat {
  overflow: auto;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.pere_cat {
  margin-right: 40px;
  white-space: nowrap;
  margin-bottom: 7px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.18px;
}
.page-template-template-review .review__user-img {
  border-radius: 8px;
  margin-bottom: 32px;
  overflow: hidden;
}

.page-template-template-review .review__item.swiper-slide {
  background: transparent;
  padding: 0;
}
h4.page-template-template-review .review__title {
  font-size: 30px;
  font-weight: 500;
  line-height: 115%;
  letter-spacing: -0.3px;
  margin-top: 30px;
}
.page-template-template-review .review__text {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-top: 20px;
  min-height: 48px;
}
.pod_case {
  font-size: 18px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.18px;
  display: flex;
  margin-top: 38px;
  cursor: pointer;
}
.pod_case svg {
  margin-left: 24px;
  margin-top: -6px;
}
.page-template-template-review .review__list {
  padding-bottom: 120px;
}
.casesa .review__list {
  grid-template-columns: repeat(3, 1fr);
}
.casesa {
  padding-bottom: 200px;
}
.casesa .btn-more__btn.case_mr.hide {
  display: none;
}
.casesa .btn-more__btn {
  margin: 0 auto;
  display: block;
}
.page-template-template-review .review__wrapper {
  position: relative;
}
.page-template-template-review .review__arrows {
  position: absolute;
  z-index: 9;
  width: 103%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  top: 35%;
  left: -1.5%;
}
.page-template-template-review .reviews__content > .btn-more {
  max-width: 100%;
}
section#review {
  padding-top: 144px;
}
.case_cat:hover .pere_cat {
  opacity: 0.5;
}
.case_cat:hover .pere_cat:hover {
  opacity: 1;
}
.page-template-template-review .reviews__tabs.tabs:hover .tabs__item {
  opacity: 0.5;
}
.page-template-template-review .reviews__tabs.tabs:hover .tabs__item:hover {
  opacity: 1;
}
.slider__next_rev.page-template-template-review .review__arrow,
.slider__prev_rev.page-template-template-review .review__arrow {
  cursor: pointer;
}
.data_modal_case {
  display: none;
  width: 100%;
  height: 100%;
  z-index: 20;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
/* li.tabs__item:nth-child(n + 8) {
  display: none;
}
ul.page-template-template-review
  .review-list
  li.page-template-template-review
  .review-list__item:nth-child(n + 9) {
  display: none;
} */
ul.page-template-template-review
  .review-list.more_act
  li.page-template-template-review
  .review-list__item {
  display: block;
}
.review-list__item {
  cursor: pointer;
}
.modal-review {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 80;
}
.modal-review-over {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: #00000075;
  z-index: 2;
}
.modal-review__content {
  position: absolute;
  z-index: 3;
  width: 640px;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: fit-content;
}
.modal-case {
  position: fixed;
  top: 0;
  width: 55%;
  height: 100%;
  z-index: 81;
  right: -100%;
  transition: right 1.1s ease-out;
}
.modal-case.active {
  right: 30px;
}
.modal-case-over {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: #00000075;
  z-index: 80;
  display: none;
}
.modal-case-over.active {
  display: block;
}
.big_image_case img {
  width: 100%;
}
.modal-case__content {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: auto;
  right: 0;
  top: 3%;
  bottom: 0;
  height: 94%;
  padding: 24px;
  background: #e6f7f9;
  border-radius: 8px;
  overflow: auto;
}
.right_case_bl {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 32px;
  position: relative;
  width: 100%;
  float: left;
}
button.modal-case__close {
  position: absolute;
  left: -110px;
  z-index: 9;
  top: 3%;
}

button.modal-review__close {
  position: absolute;
  right: -80px;
}
.rev-card-top {
  display: flex;
  justify-content: start;
  align-items: center;
}
.rev-card-top .rev-card__avatar {
  margin-right: 32px;
}
.rev-card-top .rev-card__rating {
  margin-bottom: 0px;
}
.rev-card-top .rev-card__avatar {
  margin-bottom: 25px;
}
.modal-review__right {
  border-radius: 24px;
  background: #fff;
  border: 20px solid #e6f7f9;
}
.rev-card__text p {
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.2px;
}
.rev-cat {
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
  position: relative;
  display: block;
  width: fit-content;
  margin-top: 24px;
  margin-bottom: 37px;
}
.rev-cat::before {
  content: "";
  width: 100%;
  position: absolute;
  height: 1px;
  background: #f04a3d;
  bottom: -2px;
}
.modal-case__right {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.right_case_bl-item {
  margin-bottom: 60px;
}
.left_case {
  position: sticky;
  top: 0;
  width: 35%;
}
.right_case {
  width: calc(65% - 12px);
}
.spis_case {
  background: #fff;
  border-radius: 8px;
  margin-top: 12px;
  padding: 32px 14px;
}
h4.mod_t_c {
  font-size: 52px;
  font-weight: 500;
  line-height: 104%;
  letter-spacing: -0.676px;
}
.cos_in {
  position: absolute;
  right: 32px;
  top: 48px;
}
.opis_t_c p {
  font-size: 18px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.18px;
  opacity: 0.5;
  margin-top: 18px;
  margin-bottom: 32px;
}
.char_t_c {
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  /* float: left; */
  margin-bottom: 30px;
  width: 100%;
}
.char_t_c > svg {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
  position: relative;
  top: 8px;
}
.right_case_bl h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 115%;
  letter-spacing: -0.3px;
  margin: 0 0 32px;
}
.opis_c_z p {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  margin-bottom: 20px;
}
h2.mar_t_sh {
  margin-top: 50px;
}
.cif_case > span {
  background: #f6f6f6;
  height: 44px;
  width: 44px;
  display: block;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  line-height: 44px;
  margin-right: 26px;
}
.cif_case.active > span {
  background: #f04a3d;
  color: #fff;
}
.cif_case {
  display: flex;
  align-items: center;
  position: relative;
}
.cif_case::before {
  content: "";
  background: url("/wp-content/uploads/2023/09/h_vec.svg");
  position: absolute;
  left: 22px;
  top: 100%;
  width: 1px;
  height: 63px;
}
.cif_case:last-child::before {
  content: "";
  display: none;
}
.but_or {
  font-size: 18px;
  text-align: center;
  color: #fff;
  height: 58px;
  line-height: 58px;
  cursor: pointer;
  background-color: #f04a3d;
  border-radius: 20px;
  width: 100%;
  margin: 40px 0;
  float: left;
}
.page-template-template-review .review__item {
  cursor: pointer;
}
.right_case .big_image_case.mob {
  display: none;
}
@media only screen and (max-width: 1600px) {
  .modal-case {
    width: 70%;
  }
  h4.mod_t_c {
    font-size: 46px;
  }
  .char_t_c {
    margin-bottom: 26px;
  }
  h2.mar_t_sh {
    font-size: 26px;
  }
  .casesa .review__list {
    display: grid;
    overflow: visible;
  }
}
@media only screen and (max-width: 1440px) {
  .page-template-template-review .review-list {
    gap: 50px 20px;
    margin-bottom: 80px;
  }
  .page-template-template-review .reviews__title {
    margin-bottom: 50px;
  }
  .page-template-template-review .reviews__tabs {
    margin-bottom: 43px;
  }
  .tabs {
    overflow-x: scroll;
  }
  .rev-card {
    padding: 24px;
  }
  .rev-card__avatar {
    max-width: 80px;
  }
  .rev-card__title {
    font-size: 26px;
    letter-spacing: -0.26px;
    margin-bottom: 19px;
  }
  .rev-card__rating {
    margin-bottom: 17px;
  }
  .rev-card__text {
    -webkit-line-clamp: 6;
    font-size: 16px;
    margin-bottom: 68px;
  }
}
@media only screen and (max-width: 1200px) {
  .page-template-template-review .review-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .casesa .review__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 980px) {
  .container {
    padding: 100px 40px;
  }
  .title {
    font-size: 34px;
  }
  .page-template-template-review .review-list {
    margin-bottom: 40px;
  }
  /* .page-template-template-review .review-list li:nth-child(n + 5) {
    display: none;
  } */
  .page-template-template-review .reviews__title {
    margin-bottom: 40px;
  }
  .page-template-template-review .reviews__tabs {
    margin-bottom: 23px;
  }
  .tabs__item {
    margin-right: 24px;
  }
  .tabs__item-btn {
    padding-bottom: 9px;
  }
  .rev-card__title {
    font-size: 24px;
    letter-spacing: -0.24px;
    margin-bottom: 15px;
  }
  .rev-card__text {
    -webkit-line-clamp: 5;
    font-size: 14px;
    margin-bottom: 83px;
  }
  .modal-case__right {
    flex-direction: column;
  }
  .left_case {
    display: none;
  }
  .big_image_case img {
    height: 100%;
  }
  .big_image_case {
    width: 95px;
    height: 95px;
    border-radius: 100%;
    overflow: hidden;
  }
  .right_case .big_image_case.mob {
    display: block;
    margin-bottom: 24px;
  }
  h4.mod_t_c {
    font-size: 32px;
  }
  .opis_t_c p {
    font-size: 16px;
  }
  .char_t_c {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .spis_case {
    display: none;
  }
  .modal-case.active {
    right: 0;
  }
  .modal-case {
    width: 100%;
  }
  .right_case {
    width: 100%;
  }
  button.modal-case__close {
    left: auto;
    right: 28px;
    top: 28px;
    width: 40px;
    height: 40px;
  }
  button.modal-case__close circle {
    fill: #005761;
  }
  button.modal-case__close path {
    fill: #fff;
  }
  .modal-case__content {
    top: 0;
    height: 100%;
    padding: 12px;
  }
  .cos_in {
    top: 128px;
  }
  .right_case .big_image_case.mob {
    margin-bottom: 32px;
  }
}
@media only screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .container {
    padding: 0px 20px;
  }
  .case_cat {
    overflow-x: auto;
  }
  .rev_ban img {
    min-height: 400px;
  }
  .title {
    font-size: 24px;
  }
  .page-template-template-review .reviews__title {
    margin-bottom: 30px;
  }
  .page-template-template-review .review-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* .page-template-template-review .review-list li:nth-child(n + 3) {
    display: none;
  } */
  .rev-card {
    width: 100%;
  }
  .rev-card__title {
    font-size: 22px;
    letter-spacing: -0.22px;
    margin-bottom: 11px;
  }
  .rev-card__rating {
    margin-bottom: 12px;
  }
  .rev-card__text {
    margin-bottom: 62px;
  }
  .rev-card__read-full {
    font-size: 14px;
  }
  .rev-card__read-full-icon {
    margin-left: 8px;
  }
  .tabs {
    margin-bottom: 10px;
  }
  .tabs__item-btn {
    padding-bottom: 4px;
    font-size: 14px;
  }
  .btn-more {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn-more__btn {
    width: 100%;
  }
  h4.mod_t_c {
    font-size: 24px;
  }
  .opis_t_c p {
    font-size: 14px;
    margin: 4px 0 30px;
  }
  .char_t_c {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .right_case_bl {
    padding: 20px;
  }
  h2.mar_t_sh {
    margin-top: 20px;
  }
  .modal-review__right {
    height: 100%;
  }
  .modal-review__right .rev-card__text {
    max-height: 100%;
  }
  .casesa .review__list {
    grid-template-columns: 1fr;
  }
}
