.project-review-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.35rem, 2.3vw, 2rem);
  border: 1px solid rgba(27, 31, 38, .08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 27, 125, .09), transparent 35%),
    #fff;
  box-shadow: 0 18px 45px rgba(30, 25, 32, .08);
  color: #20232b;
}

.project-review-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.3rem;
}

.project-review-card__author {
  min-width: 0;
}

.project-review-card__author h3 {
  margin: 0;
  color: #17191f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.project-review-card__author a {
  display: inline-block;
  margin-top: .25rem;
  color: #bb176e;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.project-review-card__author a:hover {
  color: #e31878;
  text-decoration: underline;
}

.project-review-card__quote {
  align-self: start;
  color: rgba(216, 27, 125, .25);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: .8;
}

.project-review-card__text {
  flex: 1 1 auto;
  color: #4c505b;
  font-size: .98rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.project-review-card__actor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .65rem;
  margin: 1rem 0 0;
  padding: .7rem .8rem;
  border: 1px solid rgba(187, 23, 110, .12);
  border-radius: 12px;
  background: rgba(216, 27, 125, .055);
  line-height: 1.45;
}

.project-review-card__actor span {
  color: #626772;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.project-review-card__actor a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #a91663;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(169, 22, 99, .38);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.project-review-card__actor a i {
  font-size: .78rem;
  transition: transform .2s ease;
}

.project-review-card__actor a:hover,
.project-review-card__actor a:focus-visible {
  color: #e31878;
  text-decoration-color: currentColor;
}

.project-review-card__actor a:hover i,
.project-review-card__actor a:focus-visible i {
  transform: translate(2px, -2px);
}

.project-review-card__photo-wrap {
  width: 100%;
  margin-top: 1.15rem;
}

.project-review-card__video-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 1.15rem;
  border: 1px solid rgba(27, 31, 38, .12);
  border-radius: 16px;
  background: #17151a;
  box-shadow: 0 10px 24px rgba(30, 25, 32, .12);
}

.project-review-card__video {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  background: #17151a;
  object-fit: contain;
}

.project-review-card__photo-wrap--gallery {
  width: 100%;
}

.project-review-card__photo {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid rgba(27, 31, 38, .1);
  border-radius: 16px;
  background: #2b2730;
  cursor: zoom-in;
  box-shadow: 0 8px 20px rgba(30, 25, 32, .1);
}

.project-review-card__photo::before {
  position: absolute;
  z-index: 0;
  inset: -18px;
  background-image:
    linear-gradient(rgba(25, 20, 27, .16), rgba(25, 20, 27, .28)),
    var(--project-review-image);
  background-position: center;
  background-size: cover;
  content: '';
  filter: blur(16px) saturate(.8);
  transform: scale(1.12);
}

.project-review-card__photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-review-card__photo span {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #b0186b;
  font-size: .72rem;
  box-shadow: 0 4px 12px rgba(20, 16, 20, .14);
  transition: color .2s ease, transform .2s ease;
}

.project-review-card__photo:hover span,
.project-review-card__photo:focus-visible span {
  color: #e31878;
  transform: scale(1.08);
}

.project-review-card__gallery {
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(27, 31, 38, .1);
  border-radius: 16px;
  background: #f2eef1;
  box-shadow: 0 10px 24px rgba(30, 25, 32, .1);
}

.project-review-card__gallery .project-review-card__photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.project-review-card__gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #a91663;
  font-size: .84rem;
  box-shadow: 0 5px 16px rgba(20, 16, 20, .18);
  transform: translateY(-50%);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.project-review-card__gallery-arrow:hover,
.project-review-card__gallery-arrow:focus-visible {
  background: #bb176e;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.project-review-card__gallery-arrow--prev {
  left: 10px;
}

.project-review-card__gallery-arrow--next {
  right: 10px;
}

.project-review-card__gallery-pagination.swiper-pagination {
  bottom: 8px;
}

.project-review-card__gallery-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(20, 16, 20, .3);
  opacity: .72;
}

.project-review-card__gallery-pagination .swiper-pagination-bullet-active {
  background: #d81b7d;
  opacity: 1;
}

.project-review-card__telegram {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .45rem;
  margin-top: 1.4rem;
  color: #168bc1;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.project-review-card__telegram:hover {
  color: #0877aa;
  text-decoration: underline;
}

@media (max-width: 575px) {
  .project-review-card {
    border-radius: 20px;
  }

  .project-review-card__actor {
    align-items: flex-start;
    flex-direction: column;
  }
}
