.reviews-container {
  width: 100%;
  height: 350px;
  background-color: rgba(186, 186, 186, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 36px;
  margin-bottom: 48px;
  background-image: url('../img/reviews_bg.jpg');
  background-size: cover;
  background-position: center center;
}
.reviews-container .reviews-main-title {
  font-weight: 500;
  font-size: 2.25rem;
  color: rgba(15, 15, 15, 1);
  max-width: max-content;
  position: relative;
  padding: 15px 35px 15px 0;
}
.reviews-container .reviews-main-title::before {
  content: "";
  position: absolute;
  right: 0;
  background-color: rgba(237, 237, 237, 0.7);
  border-radius: 0px 8px 8px 0px;
  height: 100%;
  top: 50%;
  transform: translateY(-50%);
  left: -1000px;
}
.reviews-container .reviews-main-title span {
  position: relative;
}
.reviews-form {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 50px 55px;
  background-color: #e8e8e8;
  border-radius: 16px;
  height: 485px;
  width: 636px;
  max-width: 100%;
  margin-bottom: 8%;
}
.comment-respond {
  display: flex;
  flex-direction: column;
  padding: 44px 55px 30px;
  background-color: rgba(236, 235, 238, 1);
  border-radius: 16px;
  width: 636px;
  max-width: 100%;
}
.comment-form {
  display: flex;
  flex-direction: column;
}
.reviews-form-title {
  font-size: 1.75rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 32px;
  color: rgba(20, 20, 20, 1);
}
.reviews-form-name {
  width: 100%;
  max-width: 100%;
  padding: 18px 20px;
  color: rgba(126, 126, 126, 1);
  border-radius: 8px;
  border: transparent;
  margin-bottom: 24px;
  order: 1;
  background-color: rgba(250, 250, 250, 1);
  font-size: 18px;
  line-height: 1;
}
.reviews-form-response {
  width: 100%;
  max-width: 100%;
  height: 143px;
  padding: 18px 20px;
  color: rgba(126, 126, 126, 1);
  background-color: rgba(250, 250, 250, 1);
  font-size: 18px;
  border-radius: 8px;
  border: transparent;
  margin-bottom: 24px;
  resize: none;
  order: 3;
}
.reviews__form__wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 100px;
}
.reviews__form__wrapper .reviews__form__form {
  width: 50%;
  max-width: 50%;
  position: relative;
  z-index: 1;
}
.reviews__form__wrapper .reviews__form__image {
  position: relative;
  width: 50%;
  max-width: 50%;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}
div#reviews {
  z-index: 2;
}
.reviews__form__wrapper .reviews__form__image img {
  position: absolute;
  top: 51%;
  transform: translateY(-50%);
}
main {
  position: relative;
  overflow: hidden;
}
.reviews-form-response:focus-visible,
.reviews-form-name:focus-visible {
  outline: none;
  box-shadow: 0 0 4px 1px;
}
.reviews-btn {
  padding: 20px 64px;
  color: rgba(242, 242, 242, 1);
  background-color: rgba(38, 20, 79, 1);
  border-radius: 8px;
  border-color: transparent;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.15s ease-in-out 0s, color 0.17s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
}
.reviews-btn:hover {
  background-color: rgba(242, 242, 242, 1);
  color: rgba(38, 20, 79, 1);
  border-color: rgba(38, 20, 79, 1);
}
.form-submit {
  order: 4;
  display: flex;
}
.form-submit input {
  margin: 0 auto;
}
.reviews-title {
  font-size: 2.25rem;
  font-weight: 500;
  color: #141414;
  margin-bottom: 60px;
}
.reviews-arrows {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  align-items: center;
  gap: 46px;
}
.reviews-arrow {
  border: none;
  outline: none;
  background-color: transparent;
  padding: 0;
  margin-bottom: 68px;
}
.reviews-block .glide__slides {
  align-items: unset;
}
.reviews-card {
  padding: 20px 20px 44px;
  background-color: rgba(236, 235, 238, 1);
  border-radius: 16px;
  min-height: 100%;
}
.reviews-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.reviews-name {
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  margin: 0;
  color: rgba(20, 20, 20, 1);
}
.reviews-response {
  max-width: 100%;
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
  color: rgba(20, 20, 20, 1);
}
.reviews-block {
  margin-bottom: 86px;
}

.glide__bullets {
  display: none !important;
}

/* Зірочки */
.all_com_pr span:before {
  color: #fb9c30;
}
.com_block_star {
  order: 3;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1;
  color: rgba(126, 126, 126, 1);
  padding-left: 5px;
}
.comments-rating {
  border: none;
  padding: 0;
  margin-left: 0;
}
.comments-rating label {
  display: inline-block;
  font-size: 18px;
}
.rating-container {
  font-size: 0;
  unicode-bidi: bidi-override;
  direction: rtl;
  display: flex;
  align-items: center;
}
.rating-container * {
  font-size: 1.4rem;
}
.rating-container > input {
  display: none;
}
.rating-container > input + label {
  font-family: 'dashicons';
  display: inline-block;
  overflow: hidden;
  text-indent: 9999px;
  width: 1em;
  white-space: nowrap;
  cursor: pointer;
  margin: 0;
}

.rating-container > input + label:before {
  display: inline-block;
  text-indent: -9999px;
  content: '\f154';
  color: #888;
}

.rating-container > input:checked ~ label:before,
.rating-container > input + label:hover ~ label:before,
.rating-container > input + label:hover:before {
  content: '\f155';
  color: #fb9c30;
  text-shadow: 0 0 1px #888;
}

.rating-container > .star-cb-clear + label {
  text-indent: -9999px;
  width: 0.5em;
  margin-left: -0.5em;
}

.rating-container > .star-cb-clear + label:before {
  width: 0.5em;
}

.rating-container:hover > input + label:before {
  content: '\f154';
  color: #888;
  text-shadow: none;
}

.rating-container:hover > input + label:hover ~ label:before,
.rating-container:hover > input + label:hover:before {
  content: '\f155';
  color: #debf64;
  text-shadow: 0 0 1px #888;
}
.dashicons-star-filled:before {
  color: #debf64;
}
.dashicons-star-empty:before {
  color: #debf64;
}
@media screen and ( max-width: 1399px ) {
  .reviews__form__wrapper .reviews__form__form {
    width: 60%;
    max-width: 60%;
  }
  .reviews__form__wrapper .reviews__form__image {
    width: 40%;
    max-width: 40%;
  }
  .reviews__form__wrapper .reviews__form__image img {
    top: 50%;
    left: calc( 50% + 100px );
    transform: translate(-50%,-50%);
  }
  div.glide__bullets {
    position: relative;
    top: unset;
    left: unset;
    justify-content: center;
    gap: 8px;
  }
}
@media (max-width: 992px) {
  .reviews-block {
    margin-bottom: 16px;
  }
  div.glide__bullets {
    margin-bottom: 38px;
  }
  .comment-respond {
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0;
  }
  .reviews-container .reviews-main-title::before {
    visibility: hidden;
  }
  .reviews__form__wrapper .reviews__form__image {
    display: none;
  }
  .reviews__form__wrapper .reviews__form__form {
    width: 100%;
    max-width: 100%;
  }
  .glide__bullets {
    display: flex !important;
    top: 105%;
  }
  .reviews-container {
    height: auto;
    background-color: transparent;
    padding: 0;
    margin-bottom: 30px;
    background-image: none;
  }
  .reviews-container .reviews-main-title {
    padding: 0 6px 0;
    font-size: 24px;
    margin-top: 26px;
  }
  .reviews-block {
    padding: 0 6px;
  }
  .reviews-block > .row {
    margin: 0;
  }
  .reviews-block .glide__slides {
    margin-bottom: 0;
  }
  .reviews-card {
    padding-bottom: 36px;
  }
  .reviews-arrows {
    display: none;
  }
  .comment-respond {
    padding: 28px 15px 20px;
    margin: 0 auto;
  }
  .reviews-form-name {
    max-height: 48px;
    padding: 16px 20px;
    margin-bottom: 12px;
    font-size: 16px;
  }
  .reviews-form-response {
    font-size: 16px;
    padding: 14px 20px;
    height: 152px;
    margin-bottom: 12px;
  }
  .reviews-btn {
    max-height: 48px;
    padding: 15px 65px;
  }
  .reviews__form__wrapper {
    margin: 0 calc(var(--bs-gutter-x) * -0.5) 40px;
  }
  .reviews-form-title {
    font-size: 20px;
    margin-bottom: 34px;
  }
  .com_block_star {
    margin-bottom: 24px;
  }
  .reviews-response {
    font-size: 14px;
  }
  .reviews-name {
    font-size: 16px;
  }
}
@media screen and ( max-width: 575px ) {
  .comment-respond {
    border-radius: 0;
  }
}
