.reviews {
  background-color: #fbfafb;
  padding: 70px 0;
  overflow: hidden;
}

.reviews__wrapper {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}

.reviews__left {
  max-width: 300px;
}

.reviews__title {
  margin: 0 0 22px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  color: #5b2890;
}

.reviews__text {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.35;
  color: #3f3f3f;
}

.reviews__text p {
  margin: 0;
}

.reviews__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 255px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 25px;
  background-color: #fff000;
  color: #3f3f3f;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.reviews__button:hover {
  transform: translateY(-2px);
  background-color: #ffe600;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.reviews__button-icon {
  display: inline-flex;
  color: #3f3f3f;
  transition: transform 0.25s ease;
}

.reviews__button:hover .reviews__button-icon {
  transform: translateX(5px);
}

.reviews__right {
  position: relative;
  min-width: 0;
  padding: 0 20px;
}

.reviews__slider {
  overflow: hidden;
}

.reviews__card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background-color: #111;
  text-decoration: none;
}

.reviews__card img {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.reviews__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.reviews__nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}

.reviews__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 5px solid #5b2890;
  border-right: 5px solid #5b2890;
}

.reviews__nav--prev {
  left: 0;
}

.reviews__nav--next {
  right: 0;
}

@media (min-width: 1200px) {
  .reviews__nav--prev {
    left: -40px;
  }

  .reviews__nav--next {
    right: -40px;
  }
}

.reviews__nav--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.reviews__nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.reviews__nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .reviews__wrapper {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 25px;
  }

  .reviews__right {
    padding: 0 38px;
  }

  .reviews__card img {
    height: 400px;
  }
}

@media (max-width: 991px) {
  .reviews__wrapper {
    grid-template-columns: 1fr;
  }

  .reviews__left {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .reviews__text {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .reviews__right {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .reviews {
    padding: 50px 0;
  }

  .reviews__title {
    font-size: 36px;
  }

  .reviews__text {
    font-size: 16px;
  }

  .reviews__button {
    min-width: 230px;
    font-size: 18px;
  }

  .reviews__right {
    padding: 0 20px;
  }

  .reviews__card img {
    height: 420px;
  }

  .reviews__nav--next {
    right: 0;
  }

  .reviews__nav--prev {
    left: 0;
  }

  .reviews__nav {
    width: 40px;
    height: 40px;
  }

  .reviews__nav::before {
    width: 11px;
    height: 11px;
    border-top-width: 4px;
    border-right-width: 4px;
  }
}

@media (max-width: 480px) {
  .reviews__right {
    padding: 0 26px;
  }

  .reviews__card {
    border-radius: 16px;
  }

  .reviews__card img {
    height: 390px;
  }
}

.screenshots-section {
  padding: 20px 0;
  background-color: #f4f4f4;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.screenshots-slider-wrap {
  position: relative;
  padding: 0 70px;
}

.screenshotsSwiper {
  overflow: hidden;
}

.screenshotsSwiper .swiper-wrapper {
  align-items: center;
}

.screenshotsSwiper .swiper-slide {
  width: auto;
  padding: 5px;
}

.screenshots-card {
  display: block;
  height: 260px;
  overflow: hidden;
  border-radius: 25px;
  background-color: #fff;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.screenshots-card img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.screenshots-card {
  max-width: 430px;
}

.screenshots-card img {
  max-width: 430px;
  margin: 0 auto;
}

.screenshots-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.screenshots-nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}

.screenshots-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 5px solid #7a2bbd;
  border-right: 5px solid #7a2bbd;
}

.screenshots-nav--prev {
  left: 0;
}

.screenshots-nav--next {
  right: 0;
}

.screenshots-nav--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.screenshots-nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.screenshots-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 767px) {
  .screenshots-slider-wrap {
    padding: 0 45px;
  }

  .screenshots-card {
    height: 220px;
    border-radius: 18px;
  }

  .screenshots-nav {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .screenshots-slider-wrap {
    padding: 0;
  }

  .screenshots-nav--prev {
    left: -10px;
  }

  .screenshots-nav--next {
    right: -10px;
  }

  .screenshots-card {
    height: 190px;
  }
}

.reviews-gallery {
  padding: 50px 0;
}

ws-gallery__content .wp-block-column {
  display: block !important;
  margin: 0 !important;
}

/* сама галерея */
.reviews-gallery__content .wp-block-gallery.has-nested-images {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* кожна картинка */
.reviews-gallery__content
  .wp-block-gallery.has-nested-images
  figure.wp-block-image {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.reviews-gallery__content figure.wp-block-image.is-hidden {
  display: none !important;
}

.reviews-gallery__content figure.wp-block-image a {
  display: block;
  overflow: hidden;
  border-radius: 24px;
}

.reviews-gallery__content figure.wp-block-image img {
  display: block;
  width: 100% !important;
  height: 280px !important;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.3s ease;
}

.reviews-gallery__content figure.wp-block-image:hover img {
  transform: scale(1.05);
}

.reviews-gallery__more {
  display: block;
  margin: 0 auto;
  padding: 16px 42px;
  border: 0;
  border-radius: 40px;
  background-color: #fff000;
  color: #3f3f3f;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.reviews-gallery__more:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.reviews-gallery__more.is-hidden {
  display: none;
}

@media (max-width: 991px) {
  .reviews-gallery__content .wp-block-gallery.has-nested-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-gallery__content figure.wp-block-image img {
    height: 250px !important;
  }
}

@media (max-width: 575px) {
  .reviews-gallery__content .wp-block-gallery.has-nested-images {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reviews-gallery__content figure.wp-block-image a,
  .reviews-gallery__content figure.wp-block-image img {
    border-radius: 18px;
  }

  .reviews-gallery__content figure.wp-block-image img {
    height: 240px !important;
  }
}
