.mp-reviews {
  --mp-ink: #1c1917;
  --mp-muted: #78716c;
  --mp-line: #e7e5e4;
  --mp-bg: #fafaf9;
  --mp-answer: #eef8fb;
  --mp-answer-title: #0f766e;
  --mp-wb: #a51cff;
  --mp-oz: #005bff;
  color: var(--mp-ink);
}

.mp-reviews__head {
  margin-bottom: 20px;
}

.mp-reviews__title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
}

.mp-reviews__note {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.95rem;
  max-width: 52rem;
}

.mp-reviews__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.mp-reviews__filter {
  appearance: none;
  border: 1px solid var(--mp-line);
  background: #fff;
  color: var(--mp-ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
}

.mp-reviews__filter.is-active {
  background: var(--mp-ink);
  border-color: var(--mp-ink);
  color: #fff;
}

.mp-reviews__list {
  display: grid;
  gap: 16px;
}

.mp-reviews__item {
  margin: 0;
}

.mp-reviews__card {
  padding: 20px 22px;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  background: #fff;
}

.mp-reviews__item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.mp-reviews__who {
  display: grid;
  gap: 4px;
}

.mp-reviews__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #c026ff, #7c3aed);
}

.mp-reviews__badge--ozon {
  background: var(--mp-oz);
}

.mp-reviews__stars {
  display: inline-flex;
  gap: 2px;
  color: #d6d3d1;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.mp-reviews__star.is-on {
  color: #f5b400;
}

.mp-reviews__date {
  color: var(--mp-muted);
  font-size: 0.85rem;
}

.mp-reviews__author {
  color: var(--mp-ink);
  font-size: 1.05rem;
}

.mp-reviews__side {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.mp-reviews__side span {
  color: var(--mp-muted);
}

.mp-reviews__text {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.mp-reviews__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mp-reviews__photo {
  display: block;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--mp-bg);
  cursor: zoom-in;
}

.mp-reviews__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-reviews__videos {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mp-reviews__video {
  width: min(100%, 420px);
  max-height: 280px;
  background: #000;
  border-radius: 12px;
}

.mp-reviews__answer {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mp-answer);
}

.mp-reviews__answer-title {
  margin: 0 0 8px;
  color: var(--mp-answer-title);
  font-weight: 700;
  font-size: 0.95rem;
}

.mp-reviews__answer-text {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
}
.mp-lightbox[hidden] {
  display: none !important;
}
.mp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.mp-lightbox__stage {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 56px 20px;
  box-sizing: border-box;
}
.mp-lightbox__img {
  display: block;
  max-width: min(90vw, 980px);
  max-height: min(70vh, 740px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #0a0a0a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.mp-lightbox__counter {
  position: absolute;
  top: 14px;
  left: 18px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}
.mp-lightbox__caption {
  width: min(90vw, 980px);
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(32, 32, 32, 0.95);
  color: #fff;
  font-size: 0.92rem;
  text-align: left;
}
.mp-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.mp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  opacity: 0.9;
  z-index: 2;
}
.mp-lightbox__nav--prev { left: 6px; }
.mp-lightbox__nav--next { right: 6px; }
.mp-lightbox__nav:hover { opacity: 1; }
.mp-lightbox__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(90vw, 980px);
  justify-content: flex-start;
}
.mp-lightbox__thumb {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
}
.mp-lightbox__thumb.is-active {
  border-color: #fff;
}
.mp-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html.mp-lightbox-open,
html.mp-lightbox-open body {
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .mp-reviews__card {
    padding: 16px;
  }
  .mp-reviews__item-top {
    flex-direction: column;
  }
  .mp-reviews__photo {
    width: 72px;
    height: 72px;
  }
  .mp-lightbox__nav {
    top: auto;
    bottom: 110px;
  }
}
