/* VROOM.DO — виджет отзывов Google. Автономная копия раскладки Trustindex #14 (light-contrast).
   Ничего не грузит со сторонних CDN, кроме аватарок Google (их можно заменить локальными). */

.vr-reviews {
  --vr-card-bg: #191919;
  --vr-card-radius: 12px;
  --vr-text: #ffffff;
  --vr-muted: #8a8a8a;
  --vr-star: #f6bb06;
  --vr-verified: #2081f2;
  --vr-gap: 8px;
  --vr-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  display: block;
  direction: ltr;
}
.vr-reviews, .vr-reviews * { box-sizing: border-box; }
.vr-reviews *:focus-visible { outline: 2px solid var(--vr-verified); outline-offset: 2px; }

.vr-container {
  display: block;
  color: var(--vr-text);
  font-family: var(--vr-font);
  font-size: 14px;
  line-height: 1.4em;
}

/* ---------- шапка ---------- */
.vr-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
  background-color: var(--vr-card-bg);
  border-radius: var(--vr-card-radius);
  padding: 20px;
  margin: 0 var(--vr-gap) 11px;
}
.vr-header * { font-size: 15px; color: var(--vr-text); }
.vr-header-logo { margin-right: 10px; height: 21px; line-height: 0; }
.vr-header-logo img { height: 21px; width: auto; display: block; }
.vr-header-rating { font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; }
.vr-header-rating .vr-rating-text { margin-right: 8px; }
.vr-header .vr-stars { display: inline-flex; margin: 1px 8px 1px 0; }
.vr-header .vr-star { width: 18px; height: 18px; }
.vr-header-score { margin-right: 8px; }
.vr-header-count { position: relative; padding-left: 9px; }
.vr-header-count::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 15px; width: 1px; background: rgba(255, 255, 255, .35);
}
.vr-write-btn {
  margin-left: auto;
  display: inline-block;
  background-color: transparent;
  color: var(--vr-text) !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 7px 17.5px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.vr-write-btn:hover { background-color: #cccccc; border-color: #4d4d4d; color: #000000 !important; }

/* ---------- слайдер ---------- */
.vr-slider { position: relative; display: block; touch-action: pan-y; }
.vr-track-wrap { overflow: hidden; display: flex; flex-wrap: nowrap; margin: 0 calc(-1 * var(--vr-gap)); padding-top: 5px; padding-bottom: 1px; }
.vr-track { display: flex; flex-wrap: nowrap; width: 100%; will-change: transform; }
.vr-item { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 var(--vr-gap); }
.vr-reviews[data-cols="1"] .vr-item { flex-basis: 100%; max-width: 100%; }
.vr-reviews[data-cols="2"] .vr-item { flex-basis: 50%; max-width: 50%; }
.vr-reviews[data-cols="3"] .vr-item { flex-basis: 33.333%; max-width: 33.333%; }
.vr-reviews[data-cols="4"] .vr-item { flex-basis: 25%; max-width: 25%; }

.vr-card {
  background-color: var(--vr-card-bg);
  border: 2px solid var(--vr-card-bg);
  border-radius: var(--vr-card-radius);
  padding: 20px;
  position: relative;
  height: 100%;
}

.vr-card-head { display: flex; flex-wrap: nowrap; position: relative; }
.vr-platform-icon { width: 20px; height: 20px; position: absolute; top: 0; right: 0; }
.vr-platform-icon img { width: 20px; height: 20px; display: block; }
.vr-avatar { margin-right: 10px; flex: 0 0 auto; }
.vr-avatar img,
.vr-avatar .vr-avatar-letter {
  width: 40px; height: 40px; border-radius: 30px; display: block;
  object-fit: cover; object-position: top;
}
.vr-avatar .vr-avatar-letter {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; color: #fff; text-transform: uppercase;
}
.vr-profile { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.vr-name {
  font-weight: 600; font-size: 15px; color: var(--vr-text);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 25px;
}
.vr-date { color: var(--vr-muted); font-size: 13px; }

.vr-stars { display: inline-flex; align-items: center; white-space: nowrap; margin: 11px 0; }
.vr-star { width: 17px; height: 17px; margin-right: 1px; display: inline-block; }
.vr-star svg { display: block; width: 100%; height: 100%; }
.vr-verified {
  display: inline-flex; width: 15px; height: 15px; margin-left: 7px;
  position: relative; cursor: help;
}
.vr-verified svg { width: 100%; height: 100%; }
.vr-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: #000; color: #fff; padding: 5px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 400; line-height: 1.3; white-space: normal; width: max-content;
  max-width: 190px; text-align: left; z-index: 3;
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.vr-tooltip::after {
  content: ""; position: absolute; left: 50%; margin-left: -7px; bottom: -7px;
  border: 7px solid transparent; border-bottom-width: 0; border-top-color: #000;
}
.vr-verified:hover .vr-tooltip, .vr-platform-icon:hover .vr-tooltip { opacity: 1; visibility: visible; }
.vr-platform-icon { cursor: help; }
.vr-platform-icon .vr-tooltip { left: auto; right: 0; transform: none; }
.vr-platform-icon .vr-tooltip::after { left: auto; right: 4px; margin-left: 0; }

.vr-text {
  font-size: 15px;
  line-height: 21.75px;
  height: 87px;
  text-align: left;
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.vr-read-more { display: block; padding: 8px 0 0; text-align: left; }
.vr-read-more button {
  font: inherit; font-size: 13.5px; font-weight: 400; font-family: var(--vr-font);
  color: var(--vr-text); opacity: .5; background: none; border: 0; padding: 0;
  cursor: pointer; white-space: nowrap; transition: opacity .3s;
}
.vr-read-more button:hover { opacity: 1; text-decoration: underline; }

/* ---------- стрелки ---------- */
.vr-controls { position: absolute; top: 50%; margin-top: -12px; width: 100%; height: 0; z-index: 2; }
.vr-nav {
  position: absolute; width: 30px; height: 30px; border-radius: 15px;
  background-color: var(--vr-card-bg); border: 0; padding: 0; cursor: pointer;
  transition: all .2s ease-out;
}
.vr-nav::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px; border: 0 solid #ffffff;
  border-bottom-width: 2px; border-left-width: 2px; transition: all .2s ease-out;
}
.vr-prev { left: 1px; }
.vr-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.vr-next { right: 1px; }
.vr-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.vr-nav:hover, .vr-nav:focus { background-color: #cccccc; box-shadow: 0 5px 25px rgba(0, 0, 0, .05); }
.vr-nav:hover::before, .vr-nav:focus::before { border-color: #000000; }
.vr-reviews.vr-no-nav .vr-controls { display: none; }

/* ---------- модалка «Read more» ---------- */
.vr-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6); padding: 20px;
  font-family: var(--vr-font);
}
.vr-modal[hidden] { display: none; }
.vr-modal-box {
  background: var(--vr-card-bg); color: var(--vr-text);
  border-radius: var(--vr-card-radius); padding: 24px;
  max-width: 520px; width: 100%; max-height: 80vh; overflow: auto; position: relative;
}
.vr-modal-box .vr-text { height: auto; display: block; overflow: visible; -webkit-line-clamp: none; }
.vr-modal-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
  background: none; border: 0; color: var(--vr-text); font-size: 22px; line-height: 1;
  cursor: pointer; opacity: .6;
}
.vr-modal-close:hover { opacity: 1; }
.vr-modal-link { display: inline-block; margin-top: 14px; color: var(--vr-muted); font-size: 13px; }

/* ---------- мобильная шапка ---------- */
@media (max-width: 560px) {
  .vr-header { flex-direction: column; align-items: flex-start; }
  .vr-header-logo { margin-bottom: 6px; }
  .vr-write-btn { margin-left: 0; margin-top: 11px; }
  .vr-header-count { padding-left: 0; }
  .vr-header-count::before { display: none; }
}
