.page-otzyvy-template {
  background: #fff;
  color: #292d32;
}

.page-otzyvy-template .equipment-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #131b24 url("../img/front-page/video-slider/slide-5-cover.webp") center / cover no-repeat;
}

.page-otzyvy-template .equipment-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #131b24 url("../img/front-page/video-slider/slide-5-cover.webp") center / cover no-repeat;
}

.page-otzyvy-template .equipment-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 20, 0.82) 0%, rgba(10, 17, 24, 0.58) 52%, rgba(10, 17, 24, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 12, 18, 0.18), rgba(7, 12, 18, 0.46));
  pointer-events: none;
}

.page-otzyvy-template .equipment-hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-otzyvy-template .equipment-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.page-otzyvy-template .equipment-hero .container.first {
  position: relative;
  padding-top: 172px;
  padding-bottom: 62px;
}

.page-otzyvy-template .equipment-hero .placeholder-breadcrumbs,
.page-otzyvy-template .equipment-hero .placeholder-breadcrumbs a,
.page-otzyvy-template .equipment-hero .placeholder-breadcrumbs li:last-child span,
.page-otzyvy-template .equipment-hero .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.64);
}

.page-otzyvy-template .equipment-hero .placeholder-breadcrumbs a:hover,
.page-otzyvy-template .equipment-hero .placeholder-breadcrumbs a:focus-visible {
  color: #fff;
}

.page-otzyvy-template .equipment-hero__content {
  max-width: 850px;
  margin-top: 44px;
}

.page-otzyvy-template .equipment-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  color: #fff;
  font-size: clamp(44px, 6vw, 72px) !important;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.page-otzyvy-template .equipment-hero__description {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
}

.reviews-section .reviews-layout {
  max-width: 980px;
  padding-top: 20px;
  padding-bottom: 100px;
}

.reviews-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.reviews-list.is-loading {
  opacity: 0.35;
  pointer-events: none;
}

.review-card {
  min-width: 0;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.review-card__avatar,
.review-avatar-field__preview {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f0f1f2;
  color: #292d32;
}

.review-card__avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.review-card__avatar img,
.review-avatar-field__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.review-card__name {
    margin: 0;
    color: #292d32;
    font-size: 22px;
    line-height: 1.25;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #85898e;
  font-size: 13px;
}

.review-card__rating {
    display: inline-flex;
    align-items: center;
}

.review-card__star,
.review-rating-input button {
  display: inline-flex;
  color: #d8dade;
}

.review-card__star svg,
.review-rating-input svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.review-card__star.is-active,
.review-rating-input button.is-active {
  color: #e4a11b;
}

.review-card__content-wrap {
  padding-left: 68px;
}

.review-card__content {
  position: relative;
  overflow: hidden;
  color: #383c41;
  font-size: 16px;
  line-height: 1.7;
}

.review-card__content.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.review-card__content p {
  margin: 0 0 12px;
}

.review-card__content p:last-child {
  margin-bottom: 0;
}

.review-card__more {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #292d32;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.review-card__more:hover,
.review-card__more:focus-visible {
  color: var(--accent);
}

.review-card__media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-left: 68px;
}

.review-card__image-link,
.review-card__video {
  display: block;
  width: min(240px, 100%);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f1f2;
}

.review-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.review-card__image-link:hover .review-card__image,
.review-card__image-link:focus-visible .review-card__image {
  transform: scale(1.025);
}

.review-card__video {
  width: min(440px, 100%);
  object-fit: contain;
}

.reviews-empty {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 58px;
}

.reviews-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777b80;
  font: inherit;
  cursor: pointer;
}

.reviews-pagination button:hover,
.reviews-pagination button:focus-visible,
.reviews-pagination button.is-current {
  background: #f0f1f2;
  color: #292d32;
}

.review-form-section {
  margin-top: 110px;
}

.review-form-section__header {
  margin-bottom: 34px;
}

.review-form-section__header h2 {
  margin: 8px 0 0;
  color: #292d32;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.review-form {
  max-width: 780px;
}

.review-form__top {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.review-avatar-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.review-avatar-field input,
.review-file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.review-avatar-field__preview {
  width: 72px;
  height: 72px;
  font-size: 24px;
  transition: background-color 0.2s ease;
}

.review-avatar-field:hover .review-avatar-field__preview {
  background: #e7e8ea;
}

.review-avatar-field:focus-within .review-avatar-field__preview,
.review-file-field:focus-within {
  outline: 2px solid rgba(41, 45, 50, 0.3);
  outline-offset: 3px;
}

.review-avatar-field__label {
  color: #777b80;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.review-form__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #777b80;
  font-size: 13px;
}

.review-field input,
.review-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 0;
  border-radius: 8px;
  outline: 0;
  background: #f3f4f5;
  color: #292d32;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.review-field input:focus,
.review-field textarea:focus {
  background: #eef0f1;
  box-shadow: 0 0 0 2px rgba(41, 45, 50, 0.14);
}

.review-rating-field {
  min-width: 146px;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating-field legend {
  margin-bottom: 9px;
  color: #777b80;
  font-size: 13px;
}

.review-rating-input {
    display: flex;
    min-height: 48px;
    align-items: center;
}

.review-rating-input button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.review-rating-input button:hover,
.review-rating-input button:focus-visible {
  transform: translateY(-1px);
}

.review-rating-input svg {
  width: 22px;
  height: 22px;
}

.review-field--textarea {
  margin-top: 28px;
}

.review-field textarea {
  min-height: calc(2 * 1.55em + 26px);
  max-height: 420px;
  resize: none;
  overflow-y: hidden;
  line-height: 1.55;
}

.review-form__attachments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.review-file-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: #292d32;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.review-form__file-note {
  color: #94989c;
  font-size: 12px;
}

.review-form__file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: #777b80;
  font-size: 12px;
}

.review-form__file-list span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f5;
}

.review-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.review-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
}

.review-form__message {
  margin: 0;
  color: #777b80;
  font-size: 14px;
  line-height: 1.45;
}

.review-form__message.is-error {
  color: #a63434;
}

.review-form__message.is-success {
  color: #38724b;
}

.review-form__submit {
  flex: 0 0 auto;
  cursor: pointer;
}

.review-form__submit[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.reviews-lightbox {
  width: min(1100px, calc(100vw - 40px));
  height: min(820px, calc(100vh - 40px));
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.reviews-lightbox::backdrop {
  background: rgba(15, 17, 19, 0.88);
}

.reviews-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reviews-lightbox__close {
  position: absolute;
  z-index: 2;
  top: -2px;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.65);
  color: #fff;
  font: inherit;
  font-size: 27px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .page-otzyvy-template .equipment-hero .container.first {
    padding: 142px 16px 50px;
  }

  .page-otzyvy-template .equipment-hero__content {
    margin-top: 34px;
  }

  .page-otzyvy-template .equipment-hero h1 {
    font-size: 42px !important;
  }

  .reviews-section .reviews-layout {
    padding-top: 8px;
    padding-bottom: 72px;
  }

  .reviews-list {
    gap: 48px;
  }

  .review-card__content-wrap,
  .review-card__media {
    padding-left: 0;
  }

  .review-card__media {
    flex-wrap: nowrap;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .review-card__image-link,
  .review-card__video {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }

  .review-form-section {
    margin-top: 82px;
  }

  .review-form__top {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
  }

  .review-avatar-field__preview {
    width: 62px;
    height: 62px;
  }

  .review-form__identity {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .review-rating-input {
    min-height: 32px;
  }

  .review-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .review-form__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-card__image,
  .review-rating-input button {
    transition: none;
  }
}
