.review-cta {
  max-width: 1120px;
  margin: 20px auto;
  padding: 26px 20px;
  border: 1px solid #d7c759;
  border-radius: 10px;
  background: #03352b;
  color: #fff;
  text-align: center;
}

.review-cta h2 {
  margin: 0 0 8px;
  color: #d7c759;
  font-size: 26px;
}

.review-cta p {
  margin: 0 0 18px;
  font-size: 16px;
}

.review-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid #d7c759;
  border-radius: 4px;
  background: #d7c759;
  color: #032c24;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease;
}

.review-button:hover,
.review-button:focus-visible {
  border-color: #efe17f;
  background: #efe17f;
}

.review-button:focus-visible,
.review-close:focus-visible,
.review-yandex:focus-visible,
.review-copy-button:focus-visible,
.review-star:focus-within {
  outline: 3px solid #252525;
  outline-offset: 3px;
}

.review-overlay[hidden],
.review-success[hidden],
.review-error[hidden],
.review-yandex[hidden],
.review-copy-card[hidden] {
  display: none;
}

.review-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(14, 18, 17, .72);
}

.review-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  color: #242424;
}

.review-dialog h2 {
  margin: 0 42px 8px 0;
  font-size: 26px;
}

.review-dialog h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.review-intro,
.review-success p {
  margin: 0 0 20px;
  color: #565656;
  font-size: 15px;
  line-height: 1.5;
}

.review-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  cursor: pointer;
  font: inherit;
  font-size: 30px;
  line-height: 1;
}

.review-rating {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.review-rating legend,
.review-label {
  display: block;
  margin: 0 0 8px;
  color: #282828;
  font-size: 15px;
  font-weight: 700;
}

.review-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
  width: max-content;
}

.review-star {
  position: relative;
  color: #b9b9b9;
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
}

.review-star input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.review-star:hover,
.review-star:hover ~ .review-star,
.review-star.is-active {
  color: #d1a52b;
}

.review-field-hint {
  display: block;
  margin-top: 7px;
  color: #6d6d6d;
  font-size: 13px;
}

.review-label {
  margin-bottom: 8px;
}

.review-form textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #bcbcbc;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
}

.review-form textarea:focus {
  border-color: #80672f;
  outline: 2px solid rgba(128, 103, 47, .22);
}

.review-submit {
  width: 100%;
  margin-top: 20px;
}

.review-button:disabled {
  cursor: wait;
  opacity: .65;
}

.review-error {
  margin: 12px 0 0;
  color: #a52626;
  font-size: 14px;
}

.review-success {
  padding-top: 4px;
}

.review-copy-card {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #d1a52b;
  border-radius: 6px;
  background: #fff8df;
}

.review-copy-label {
  display: block;
  margin-bottom: 8px;
  color: #4f3e0c;
  font-size: 14px;
  font-weight: 700;
}

.review-copy-card p {
  margin: 0 0 12px;
  color: #2d2a1f;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.review-copy-button {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #80672f;
  border-radius: 4px;
  background: #fff;
  color: #4f3e0c;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.review-copy-button:hover,
.review-copy-button:focus-visible {
  background: #f7edc6;
}

.review-copy-status {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: #4f3e0c;
  font-size: 13px;
}

.review-yandex {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 10px 16px;
  border: 1px solid #d1a52b;
  border-radius: 6px;
  color: #4f3e0c;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.review-yandex:hover {
  background: #fff8df;
}

.review-done {
  width: 100%;
  background: #fff;
  color: #333;
}

.review-done:hover {
  color: #fff;
}

.review-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.review-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .review-cta {
    margin: 20px 0;
    padding: 24px 16px;
  }

  .review-cta h2 {
    font-size: 22px;
  }

  .review-dialog {
    padding: 28px 20px 22px;
  }

  .review-star {
    font-size: 36px;
  }
}

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