#ps-reviews {
  --psr-sky: #168fdd;
  --psr-sky-dark: #0874bd;
  --psr-deep: #064d91;
  --psr-navy: #082b45;
  --psr-ink: #15344c;
  --psr-muted: #60798d;
  --psr-surface: #f2f8fc;
  --psr-line: #d9e7ef;
  --psr-star: #ffc72c;
  --psr-negative: #bd3550;
  --psr-positive: #168b68;
  --psr-white: #fff;
  color: var(--psr-ink);
  font-family: inherit;
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

body:has(#ps-reviews) main .max.static > .flex.space-between > .left-part.sidebar,
body.psr-reviews-page main .max.static > .flex.space-between > .left-part.sidebar {
  display: none;
}

body:has(#ps-reviews) main .max.static > .flex.space-between > .right-part.content,
body.psr-reviews-page main .max.static > .flex.space-between > .right-part.content {
  max-width: none;
  width: 100%;
}

#ps-reviews *,
.psr-dialog * {
  box-sizing: border-box;
}

#ps-reviews button,
#ps-reviews select,
.psr-dialog button {
  font: inherit;
}

#ps-reviews button:focus-visible,
#ps-reviews a:focus-visible,
#ps-reviews select:focus-visible,
.psr-dialog button:focus-visible {
  outline: 3px solid rgba(255, 199, 44, 0.86);
  outline-offset: 3px;
}

.psr-hero {
  align-items: stretch;
  background: var(--psr-sky-dark);
  border-radius: 30px;
  color: var(--psr-white);
  display: grid;
  gap: clamp(24px, 4vw, 54px);
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  isolation: isolate;
  margin-bottom: 28px;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  position: relative;
}

.psr-hero::before {
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  border-radius: 52% 52% 0 0;
  bottom: -48px;
  content: "";
  height: 190px;
  left: 7%;
  position: absolute;
  transform: rotate(-7deg);
  width: 75%;
  z-index: -1;
}

.psr-hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px) 0 0 / 42px 42px;
  content: "";
  height: 92px;
  opacity: 0.3;
  position: absolute;
  right: -18px;
  top: -16px;
  transform: rotate(12deg);
  width: 260px;
  z-index: -1;
}

.psr-hero__copy {
  align-self: center;
  min-width: 0;
}

.psr-eyebrow {
  color: var(--psr-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 11px;
  text-transform: uppercase;
}

.psr-hero h1 {
  color: var(--psr-white);
  font-size: clamp(38px, 5.7vw, 68px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0;
  max-width: 650px;
}

.psr-hero__lead {
  color: var(--psr-white);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 620px;
}

.psr-rating {
  align-content: center;
  align-self: stretch;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(4, 53, 96, 0.22);
  color: var(--psr-navy);
  display: grid;
  padding: clamp(24px, 3vw, 34px);
  position: relative;
}

.psr-rating::after {
  border: 1px dashed rgba(8, 43, 69, 0.16);
  border-radius: 18px;
  content: "";
  inset: 8px;
  pointer-events: none;
  position: absolute;
}

.psr-rating__source {
  align-items: center;
  color: var(--psr-muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.psr-rating__source::before {
  background: var(--psr-positive);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22, 139, 104, 0.12);
  content: "";
  height: 7px;
  width: 7px;
}

.psr-rating__value {
  font-size: clamp(56px, 8vw, 86px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.psr-stars {
  --rating-percent: 0%;
  display: inline-block;
  font-size: 26px;
  letter-spacing: 2px;
  line-height: 1;
  position: relative;
  width: max-content;
  z-index: 1;
}

.psr-stars::before,
.psr-stars::after {
  content: "★★★★★";
}

.psr-stars::before {
  color: #d4e0e7;
}

.psr-stars::after {
  color: var(--psr-star);
  inset: 0 auto auto 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: var(--rating-percent);
}

.psr-rating__counts {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.psr-rating__counts span {
  color: var(--psr-muted);
  font-size: 13px;
}

.psr-rating__counts strong {
  color: var(--psr-navy);
  font-variant-numeric: tabular-nums;
}

.psr-rating__cta {
  align-items: center;
  background: var(--psr-deep);
  border-radius: 12px;
  color: var(--psr-white) !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  margin-top: 19px;
  min-height: 46px;
  padding: 0 18px;
  position: relative;
  text-decoration: none !important;
  transition: background-color 150ms ease, transform 150ms ease;
  z-index: 1;
}

.psr-rating__cta:hover {
  background: var(--psr-sky-dark);
  transform: translateY(-1px);
}

.psr-alert,
.psr-noscript {
  background: #fff8dc;
  border: 1px solid #f1dc8f;
  border-radius: 14px;
  color: #6d5611;
  font-size: 14px;
  line-height: 1.5;
  margin: -8px 0 24px;
  padding: 14px 17px;
}

.psr-alert[hidden] {
  display: none;
}

.psr-controls {
  align-items: end;
  background: var(--psr-surface);
  border: 1px solid var(--psr-line);
  border-radius: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.44fr) auto;
  margin-bottom: 18px;
  padding: 18px;
}

.psr-field {
  display: grid;
  gap: 7px;
}

.psr-field label {
  color: var(--psr-muted);
  font-size: 12px;
  font-weight: 800;
}

.psr-field select {
  appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--psr-deep) 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--psr-deep) 50%, transparent 50%) calc(100% - 12px) 52% / 6px 6px no-repeat,
    var(--psr-white);
  border: 1px solid var(--psr-line);
  border-radius: 12px;
  color: var(--psr-ink);
  cursor: pointer;
  min-height: 48px;
  padding: 0 42px 0 14px;
  width: 100%;
}

.psr-field select:disabled,
.psr-controls__submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.psr-controls__submit {
  background: var(--psr-deep);
  border: 0;
  border-radius: 12px;
  color: var(--psr-white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 48px;
  padding: 0 22px;
}

.psr-resultbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 2px 14px;
  min-height: 28px;
}

.psr-resultbar p {
  color: var(--psr-muted);
  font-size: 13px;
  margin: 0;
}

.psr-resultbar__updated {
  text-align: right;
}

.psr-list {
  display: grid;
  gap: 16px;
  transition: opacity 140ms ease;
}

.psr-list[aria-busy="true"] {
  opacity: 0.62;
}

.psr-card {
  background: var(--psr-white);
  border: 1px solid var(--psr-line);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(8, 43, 69, 0.055);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  position: relative;
}

.psr-card::before {
  background: var(--psr-star);
  border-radius: 22px 0 0 22px;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.psr-card[data-sentiment="negative"]::before {
  background: var(--psr-negative);
}

.psr-card__header {
  align-items: center;
  display: grid;
  gap: 13px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.psr-card__avatar {
  align-items: center;
  background: #d8f0fc;
  border: 1px solid rgba(8, 43, 69, 0.08);
  border-radius: 50%;
  color: var(--psr-deep);
  display: flex;
  font-size: 16px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.psr-card__avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.psr-card__identity {
  min-width: 0;
}

.psr-card__name {
  color: var(--psr-navy);
  display: block;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psr-card__status,
.psr-card__date,
.psr-response__date {
  color: var(--psr-muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.psr-card__meta {
  align-items: end;
  display: grid;
  gap: 7px;
  justify-items: end;
}

.psr-card__meta .psr-stars {
  font-size: 17px;
  letter-spacing: 1px;
}

.psr-card__date {
  white-space: nowrap;
}

.psr-card__text {
  color: var(--psr-ink);
  font-size: 16px;
  line-height: 1.62;
  margin: 0;
  white-space: pre-line;
}

#ps-reviews.psr-js .psr-card__text {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  display: -webkit-box;
  max-height: 6.48em;
  overflow: hidden;
}

#ps-reviews.psr-js .psr-card__text.is-expanded {
  display: block;
  max-height: none;
  overflow: visible;
}

.psr-card__toggle,
.psr-response__toggle {
  background: none;
  border: 0;
  color: var(--psr-deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  margin-top: 10px;
  padding: 4px 0;
  text-decoration: underline;
  text-decoration-color: rgba(6, 77, 145, 0.28);
  text-underline-offset: 3px;
}

.psr-media {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.psr-media__item {
  appearance: none;
  background: #dcecf4;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  display: block;
  margin: 0;
  min-height: 128px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.psr-media__item img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform 180ms ease;
  width: 100%;
}

.psr-media__item:hover img {
  transform: scale(1.035);
}

.psr-media__item[data-media-type="video"]::after {
  align-items: center;
  background: rgba(8, 43, 69, 0.8);
  border-radius: 50%;
  color: #fff;
  content: "▶";
  display: flex;
  font-size: 14px;
  height: 42px;
  justify-content: center;
  left: 50%;
  padding-left: 3px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
}

.psr-response {
  background: var(--psr-surface);
  border-left: 3px solid var(--psr-sky);
  border-radius: 0 14px 14px 0;
  padding: 15px 17px;
}

.psr-response__label {
  color: var(--psr-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.psr-response__content {
  color: var(--psr-ink);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 10px;
}

.psr-response__content[hidden] {
  display: none;
}

.psr-response__content p {
  margin: 0 0 8px;
  white-space: pre-line;
}

.psr-empty,
.psr-error,
.psr-loading {
  align-content: center;
  background: var(--psr-surface);
  border: 1px solid var(--psr-line);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 160px;
  padding: 38px 24px;
  text-align: center;
}

.psr-empty strong,
.psr-error strong {
  color: var(--psr-navy);
  font-size: 18px;
}

.psr-empty span,
.psr-error span,
.psr-loading span {
  color: var(--psr-muted);
  font-size: 14px;
}

.psr-loading span::before {
  animation: psr-pulse 1.2s ease-in-out infinite;
  background: var(--psr-star);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 9px;
  margin-right: 9px;
  width: 9px;
}

@keyframes psr-pulse {
  50% { opacity: 0.35; transform: scale(0.78); }
}

.psr-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: 26px 0 10px;
}

.psr-pagination__button,
.psr-pagination__ellipsis {
  align-items: center;
  background: var(--psr-white);
  border: 1px solid var(--psr-line);
  border-radius: 10px;
  color: var(--psr-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0 12px;
}

.psr-pagination__button {
  cursor: pointer;
}

.psr-pagination__button:hover:not(:disabled) {
  border-color: var(--psr-sky);
  color: var(--psr-deep);
}

.psr-pagination__button[aria-current="page"] {
  background: var(--psr-deep);
  border-color: var(--psr-deep);
  color: var(--psr-white);
}

.psr-pagination__button:disabled {
  color: #9aabb8;
  cursor: default;
}

.psr-pagination__ellipsis {
  background: transparent;
  border-color: transparent;
  min-width: 24px;
  padding: 0;
}

.psr-source-note {
  color: var(--psr-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 24px auto 0;
  max-width: 780px;
  text-align: center;
}

.psr-source-note a,
.psr-noscript a {
  color: var(--psr-deep);
  font-weight: 700;
}

.psr-source-note time {
  display: inline;
}

.psr-dialog {
  --psr-navy: #082b45;
  --psr-white: #fff;
  background: transparent;
  border: 0;
  height: 100%;
  margin: auto;
  max-height: 100%;
  max-width: 100%;
  padding: clamp(18px, 4vw, 48px);
  width: 100%;
}

.psr-dialog::backdrop {
  background: rgba(4, 27, 44, 0.9);
}

.psr-dialog__frame {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  margin: auto;
  max-width: 1180px;
  position: relative;
}

.psr-dialog__media-host {
  max-height: 90vh;
  max-width: 100%;
}

.psr-dialog__media {
  display: block;
  max-height: 86vh;
  max-width: 100%;
  object-fit: contain;
}

.psr-dialog__close {
  align-items: center;
  background: var(--psr-white);
  border: 0;
  border-radius: 50%;
  color: var(--psr-navy);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 46px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 46px;
  z-index: 2;
}

@media (max-width: 860px) {
  .psr-hero { grid-template-columns: 1fr; }
  .psr-rating { max-width: 520px; }
  .psr-controls { grid-template-columns: minmax(0, 1fr) minmax(150px, 0.55fr); }
  .psr-controls__submit { grid-column: 1 / -1; }
  .psr-media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  #ps-reviews {
    margin-left: -2px;
    margin-right: -2px;
    width: calc(100% + 4px);
  }
  .psr-hero {
    border-radius: 22px;
    gap: 24px;
    min-height: 0;
    padding: 28px 20px 22px;
  }
  .psr-hero h1 { font-size: clamp(36px, 12vw, 52px); }
  .psr-hero__lead { font-size: 15px; margin-top: 16px; }
  .psr-rating { border-radius: 19px; padding: 24px; }
  .psr-rating__value { font-size: 62px; }
  .psr-controls { grid-template-columns: 1fr; padding: 14px; }
  .psr-controls__submit { grid-column: auto; }
  .psr-resultbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .psr-resultbar__updated { text-align: left; }
  .psr-card { border-radius: 18px; gap: 16px; padding: 20px 17px; }
  .psr-card::before { border-radius: 18px 0 0 18px; width: 4px; }
  .psr-card__header { align-items: start; grid-template-columns: 44px minmax(0, 1fr); }
  .psr-card__avatar { height: 44px; width: 44px; }
  .psr-card__meta { align-items: start; grid-column: 2; justify-items: start; }
  .psr-card__text { font-size: 15px; }
  .psr-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psr-media__item { min-height: 112px; }
  .psr-pagination { gap: 5px; }
  .psr-pagination__button { min-height: 40px; min-width: 40px; padding: 0 9px; }
  .psr-dialog { padding: 14px; }
  .psr-dialog__close { height: 42px; right: 4px; top: 4px; width: 42px; }
}

@media (max-width: 360px) {
  .psr-hero { padding-left: 17px; padding-right: 17px; }
  .psr-rating { padding: 21px; }
  .psr-media { grid-template-columns: 1fr 1fr; }
  .psr-pagination__button { font-size: 12px; min-width: 38px; padding: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  #ps-reviews *,
  #ps-reviews *::before,
  #ps-reviews *::after,
  .psr-dialog * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .psr-controls,
  .psr-pagination,
  .psr-card__toggle,
  .psr-response__toggle,
  .psr-media,
  .psr-rating__cta { display: none !important; }
  .psr-hero { background: #fff; border: 1px solid #ccdbe4; color: #082b45; }
  .psr-hero h1,
  .psr-hero__lead,
  .psr-eyebrow { color: #082b45; }
  #ps-reviews.psr-js .psr-card__text { display: block; max-height: none; overflow: visible; }
  .psr-response__content[hidden] { display: block; }
}
