/* ==============================
   REVIEWS PAGE
   ============================== */

/* Hero */
.rv-hero {
  padding: 140px 0 64px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.rv-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(160, 32, 32, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.rv-hero__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .rv-hero__top {
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
  }
}

.rv-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(160, 32, 32, 0.12);
  border: 1px solid rgba(160, 32, 32, 0.25);
  color: #e04040;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.rv-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.rv-hero__title span {
  background: linear-gradient(135deg, #e04040, #a02020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rv-hero__desc {
  font-size: 1.05rem;
  color: var(--gray-40);
  line-height: 1.6;
  max-width: 480px;
}

/* Platform cards */
.rv-hero__platforms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-platform {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.rv-platform::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 32, 32, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.rv-platform:hover {
  border-color: rgba(160, 32, 32, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rv-platform:hover::before { opacity: 1; }

.rv-platform__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rv-platform__letter {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.rv-platform__icon--yandex,
.rv-platform__icon--2gis {
  background: rgba(160, 32, 32, 0.12);
  border: 1px solid rgba(160, 32, 32, 0.25);
  color: #e04040;
}

.rv-platform strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.rv-platform__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-stars {
  font-size: 0.85rem;
  color: #fbbf24;
  letter-spacing: 1px;
}

.rv-platform__rating span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.rv-platform__arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--gray-30);
  transition: all 0.25s ease;
}

.rv-platform:hover .rv-platform__arrow {
  color: #e04040;
  transform: translateX(3px);
}

/* Section header */
.rv-section-header {
  margin-bottom: 40px;
}

.rv-section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.rv-section-header p {
  font-size: 0.95rem;
  color: var(--gray-40);
}

/* ===== Photo Reviews ===== */
.rv-photo {
  padding: 80px 0;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rv-photo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.rv-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-30);
  font-size: 0.95rem;
}

/* ===== Review Card ===== */
.rv-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.rv-card:hover {
  border-color: rgba(160, 32, 32, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.rv-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.rv-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rv-card:hover .rv-card__image img {
  transform: scale(1.04);
}

.rv-card__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rv-card:hover .rv-card__overlay {
  opacity: 1;
}

.rv-card__badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rv-card__badge--ya {
  background: rgba(252, 60, 16, 0.15);
  border: 1px solid rgba(252, 60, 16, 0.3);
  color: #fc3c10;
}

.rv-card__badge--2gis {
  background: rgba(40, 175, 96, 0.15);
  border: 1px solid rgba(40, 175, 96, 0.3);
  color: #28af60;
}

.rv-card__zoom {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rv-card__zoom:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rv-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rv-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.rv-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

.rv-card__stars {
  font-size: 0.8rem;
  color: #fbbf24;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rv-card__stars span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.rv-card__text {
  font-size: 0.82rem;
  color: var(--gray-30);
  line-height: 1.6;
  flex: 1;
}

/* ===== Video Reviews ===== */
.rv-video {
  padding: 0 0 80px;
  background: var(--black);
}

.rv-video__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.rv-video__card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}

.rv-video__card:hover {
  border-color: rgba(160, 32, 32, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rv-video__player {
  aspect-ratio: 9/16;
  overflow: hidden;
}

.rv-video__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.rv-video__info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rv-video__info strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.rv-video__platform {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 150, 255, 0.1);
  border: 1px solid rgba(0, 150, 255, 0.2);
  color: #38a3f5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rv-video__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.rv-video__empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(160, 32, 32, 0.06);
  border: 1px solid rgba(160, 32, 32, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-20);
  margin: 0 auto 20px;
}

.rv-video__empty p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-40);
  margin-bottom: 6px;
}

.rv-video__empty span {
  font-size: 0.85rem;
  color: var(--gray-20);
}

/* ===== Lightbox ===== */
.rv-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
  animation: rvFadeIn 0.25s ease;
}

.rv-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rv-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rv-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes rvFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 480px) {
  .rv-photo__grid {
    grid-template-columns: 1fr;
  }

  .rv-video__grid {
    grid-template-columns: 1fr;
  }

  .rv-lightbox {
    padding: 16px;
  }

  .rv-platform {
    padding: 18px 20px;
  }

  .rv-hero {
    padding: 120px 0 48px;
  }
}
