/* Отзывы. Бежевая лента на всю ширину или вложенный блок.
   data-uv-reviews="all" — все отзывы.
   data-uv-reviews="quick" — только артикул из ?quick=, иначе секция скрыта.
   data-uv-reviews="playlist" и data-uv-reviews-playlist="guild" — список артикулов из каталога.
   data-uv-reviews-surface="plain" — белый фон.
   data-uv-reviews-layout="inset" — ширина родителя, не на весь экран.
   data-uv-reviews-size="large" — текст 20px, как абзац «Мы не конвейер…».
   data-uv-reviews-size="small" — прежний более мелкий размер. */

.uv-reviews {
  box-sizing: border-box;
  --uv-reviews-section-pad: 1.8rem 0 1.55rem;
  --uv-reviews-title: 29px;
  --uv-reviews-title-gap: 1.15rem;
  --uv-reviews-card: 400px;
  --uv-reviews-pad-top: 21px;
  --uv-reviews-pad-x: 21px;
  --uv-reviews-pad-bottom: 19px;
  --uv-reviews-card-gap: 11px;
  --uv-reviews-product-gap: 16px;
  --uv-reviews-avatar: 96px;
  --uv-reviews-name: 21px;
  --uv-reviews-meta: 17px;
  --uv-reviews-author: 21px;
  --uv-reviews-text: 20px;
  --uv-reviews-thumb: 96px;
  --uv-reviews-radius: 29px;
  --uv-reviews-thumb-radius: 19px;
  --uv-reviews-photo-gap: 11px;
  --uv-reviews-block-gap: 16px;
  --uv-reviews-kind-gap: 5px;
  --uv-reviews-source-margin: 3px 0 11px;
  background: #f4eee9;
  padding: var(--uv-reviews-section-pad);
  overflow: hidden;
}

.uv-reviews--sm {
  --uv-reviews-section-pad: 1.35rem 0 1.15rem;
  --uv-reviews-title: 22px;
  --uv-reviews-title-gap: 0.85rem;
  --uv-reviews-card: 300px;
  --uv-reviews-pad-top: 16px;
  --uv-reviews-pad-x: 16px;
  --uv-reviews-pad-bottom: 14px;
  --uv-reviews-card-gap: 8px;
  --uv-reviews-product-gap: 12px;
  --uv-reviews-avatar: 72px;
  --uv-reviews-name: 16px;
  --uv-reviews-meta: 13px;
  --uv-reviews-author: 16px;
  --uv-reviews-text: 15px;
  --uv-reviews-thumb: 72px;
  --uv-reviews-radius: 22px;
  --uv-reviews-thumb-radius: 14px;
  --uv-reviews-photo-gap: 8px;
  --uv-reviews-block-gap: 12px;
  --uv-reviews-kind-gap: 4px;
  --uv-reviews-source-margin: 2px 0 8px;
}

.uv-reviews[hidden] {
  display: none;
}

.uv-reviews--plain {
  background: #fff;
}

.uv-reviews--plain .uv-reviews__card {
  border: 1px solid #d4c0d9;
}

.uv-reviews--inset .uv-reviews__title {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.uv-reviews--solo .uv-reviews__window {
  display: flex;
  justify-content: center;
}

.uv-reviews--solo .uv-reviews__track {
  width: auto;
  animation: none;
}

.uv-reviews__pager {
  position: relative;
}

.uv-reviews__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 1px solid #d4c0d9;
  border-radius: 50%;
  background: #fff;
  color: #815583;
  font-family: "TildaSans", "Tilda Sans", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.uv-reviews:hover .uv-reviews__nav {
  opacity: 1;
  pointer-events: auto;
}

.uv-reviews__nav--prev { left: 16px; }
.uv-reviews__nav--next { right: 16px; }

.uv-reviews--inset .uv-reviews__nav--prev { left: 0; }
.uv-reviews--inset .uv-reviews__nav--next { right: 0; }

.uv-reviews__nav:hover {
  border-color: #b07eb2;
}

.uv-reviews__nav:focus-visible {
  outline: 2px solid #815583;
  outline-offset: 2px;
}

.uv-reviews *,
.uv-reviews *::before,
.uv-reviews *::after {
  box-sizing: border-box;
}

.uv-reviews__title {
  max-width: 1100px;
  margin: 0 auto var(--uv-reviews-title-gap);
  padding: 0 16px;
  color: #815583;
  font-family: "TildaSans", "Tilda Sans", Arial, sans-serif;
  font-size: var(--uv-reviews-title);
  font-weight: 400;
  line-height: 1.3;
}

.uv-reviews__window {
  overflow: hidden;
}

.uv-reviews__track {
  display: flex;
  width: max-content;
  animation: uv-reviews-marquee var(--uv-reviews-duration, 90s) linear infinite;
}

.uv-reviews__half {
  display: flex;
  flex: 0 0 auto;
}

.uv-reviews__card {
  display: flex;
  flex-direction: column;
  width: var(--uv-reviews-card);
  margin: 0 var(--uv-reviews-card-gap);
  padding: var(--uv-reviews-pad-top) var(--uv-reviews-pad-x) var(--uv-reviews-pad-bottom);
  border-radius: var(--uv-reviews-radius);
  background: #fff;
  box-shadow: 0 2px 6px rgba(92, 70, 88, 0.07);
}

.uv-reviews__product {
  display: flex;
  align-items: center;
  gap: var(--uv-reviews-product-gap);
  margin: 0 0 var(--uv-reviews-block-gap);
  color: #815583;
  text-decoration: none;
}

.uv-reviews__avatar {
  flex: 0 0 var(--uv-reviews-avatar);
  width: var(--uv-reviews-avatar);
  height: var(--uv-reviews-avatar);
  border-radius: 50%;
  overflow: hidden;
  background: #f4eee9;
}

.uv-reviews__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uv-reviews__meta {
  min-width: 0;
}

.uv-reviews__product-name {
  display: inline;
  color: #815583;
  font-family: "TildaSans", "Tilda Sans", Arial, sans-serif;
  font-size: var(--uv-reviews-name);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

.uv-reviews__product:hover .uv-reviews__product-name,
.uv-reviews__product:focus .uv-reviews__product-name {
  text-decoration: none;
}

.uv-reviews__kind {
  display: block;
  margin-top: var(--uv-reviews-kind-gap);
  color: rgba(129, 85, 131, 0.62);
  font-family: "TildaSans", "Tilda Sans", Arial, sans-serif;
  font-size: var(--uv-reviews-meta);
  font-weight: 300;
  line-height: 1.3;
}

.uv-reviews__author {
  margin: 0;
  color: #5c4658;
  font-family: "TildaSans", "Tilda Sans", Arial, sans-serif;
  font-size: var(--uv-reviews-author);
  font-weight: 600;
  line-height: 1.3;
}

.uv-reviews__source {
  margin: var(--uv-reviews-source-margin);
  color: rgba(129, 85, 131, 0.55);
  font-family: "TildaSans", "Tilda Sans", Arial, sans-serif;
  font-size: var(--uv-reviews-meta);
  font-weight: 300;
  line-height: 1.3;
}

.uv-reviews__text {
  margin: 0;
  color: #5c4658;
  font-family: "TildaSans", "Tilda Sans", Arial, sans-serif;
  font-size: var(--uv-reviews-text);
  font-weight: 300;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.uv-reviews__photos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--uv-reviews-photo-gap);
  margin-top: var(--uv-reviews-block-gap);
}

.uv-reviews__thumb {
  width: var(--uv-reviews-thumb);
  height: var(--uv-reviews-thumb);
  padding: 0;
  border: 0;
  border-radius: var(--uv-reviews-thumb-radius);
  overflow: hidden;
  background: #f4eee9;
  cursor: zoom-in;
}

.uv-reviews__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uv-reviews__thumb:focus-visible {
  outline: 2px solid #815583;
  outline-offset: 2px;
}

.uv-reviews.is-static .uv-reviews__track {
  animation: none;
}

.uv-reviews.is-static .uv-reviews__half--copy {
  display: none;
}

.uv-reviews.is-static .uv-reviews__window {
  overflow-x: auto;
}

@keyframes uv-reviews-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.uv-reviews-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: none;
  background: rgba(83, 74, 83, 0.92);
  cursor: zoom-out;
  touch-action: none;
}

html.uv-reviews-scroll-lock,
html.uv-reviews-scroll-lock body {
  overflow: hidden;
}

html.uv-reviews-scroll-lock body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.uv-reviews-lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
}

.uv-reviews-lightbox__nav,
.uv-reviews-lightbox__close {
  position: absolute;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}

.uv-reviews-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
  line-height: 1;
}

.uv-reviews-lightbox__prev { left: 20px; }
.uv-reviews-lightbox__next { right: 20px; }

.uv-reviews-lightbox__close {
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  font-size: 36px;
  line-height: 1;
}

.uv-reviews-lightbox__nav:focus-visible,
.uv-reviews-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .uv-reviews__track {
    animation: none;
  }

  .uv-reviews__half--copy {
    display: none;
  }

  .uv-reviews__window {
    overflow-x: auto;
  }

  .uv-reviews--solo .uv-reviews__window {
    overflow: hidden;
  }

  .uv-reviews__nav {
    -webkit-transition: none;
    transition: none;
  }
}

@media screen and (max-width: 479px) {
  .uv-reviews { --uv-reviews-card: 340px; }
  .uv-reviews--sm { --uv-reviews-card: 260px; }

  .uv-reviews-lightbox__nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 24px;
  }

  .uv-reviews-lightbox__prev { left: 10px; }
  .uv-reviews-lightbox__next { right: 10px; }
}
