/* === 📄 /front/blocks/partials/yandex_reviews/reviews_yandex.css === */

.yandex-reviews {
  position: relative;

 
  margin: 0 auto;
  overflow: visible;
  
    scroll-margin-top:120px;
}


.yandex-reviews {
  position: relative;

  /* было слишком близко к карточкам */
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.18),
      rgba(0,0,0,0.28)
    );

  border-radius: var(--radius-lg);
  padding: 20px 12px 0;
}



.yandex-reviews {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}


.yandex-reviews {
  color: var(--color-fg);
}



.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.reviews-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.yandex-logo {
  background: #fc3f1d;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.rating-stars {
  color: #fbbf24;
  font-size: 1.2rem;
    text-shadow:
    0 1px 2px rgba(0,0,0,0.55);
}

.rating-value {
  margin-left: 6px;
  color: var(--color-fg);
}

.reviews-count {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.reviews-link {
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: underline;
}

/* === Свайп === */
.reviews-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  
   padding-bottom: 20px;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.dragging { cursor: grabbing; }

/* === Карточка === */
.review-card {
  flex: 0 0 300px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
 
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  user-select: none;
}

.review-card {
  box-shadow:
    0 4px 14px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.03);
}




.review-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--color-fg);
}

.review-date {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.review-stars {
  color: #fbbf24;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-fg);
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
.review-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2em;
  background: linear-gradient(to bottom, transparent, var(--color-surface));
}

.review-photos {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.photo-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.photo-thumb .more {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 0 0 6px 0;
}

/* === Кнопки === */
.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;
  box-shadow: none;

  width: auto;
  height: auto;
  padding: 0;

  font-size: 42px;      /* ← размер стрелок */
  line-height: 1;
  font-weight: 300;


  cursor: pointer;

  z-index: 5;
  transition: color .2s ease, transform .2s ease;
}

.swiper-btn {
  color: currentColor;
  opacity: 0.45;
}


.swiper-btn:hover {
  opacity: 0.9;
}

.swiper-btn:active {
  opacity: 0.7;
}


.swiper-btn.prev { left: -18px; }
.swiper-btn.next { right: -18px; }



/* === Zoom === */
.photo-zoom {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.photo-zoom-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.photo-zoom-inner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.photo-zoom .close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 768px) {
  .yandex-reviews .swiper-btn {
    display: none;
  }
}
