.reviews__leave-btn {
  width: auto;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.review-page {
  background: #f4f4f4;
  padding: 56px 20px 80px;
}

.review-page__card {
  width: min(100%, 460px);
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  padding: 40px 28px 28px;
  text-align: center;
}

.review-page__back {
  margin: 18px 0 0;
  font-size: 14px;
}

.review-page__back a {
  color: #666;
  text-decoration: none;
}

.review-page__back a:hover {
  color: #cc1412;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.review-modal.is-open {
  display: flex;
}

.review-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 36px 28px 28px;
  text-align: center;
}

.review-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.review-modal__close:hover {
  color: #000;
}

.review-modal__title {
  margin: 0;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: #111;
}

.review-modal__brand {
  margin: 6px 0 22px;
  font-weight: 700;
  font-size: 20px;
  color: #cc1412;
}

.review-modal__stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-modal__star {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #d5d5d5;
}

.review-modal__star svg {
  width: 100%;
  height: 100%;
  display: block;
}

.review-modal__star.is-active,
.review-modal__star.is-hover {
  color: #cc1412;
}

.review-modal__scale {
  display: flex;
  justify-content: space-between;
  max-width: 260px;
  margin: 0 auto 18px;
  font-size: 13px;
  color: #9a9a9a;
}

.review-modal__fields {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-top: 8px;
}

.review-modal__fields label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.review-modal__fields input,
.review-modal__fields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #111;
  background: #fafafa;
}

.review-modal__fields textarea {
  min-height: 110px;
  resize: vertical;
}

.review-modal__fields input:focus,
.review-modal__fields textarea:focus {
  outline: 1px solid #cc1412;
  border-color: #cc1412;
  background: #fff;
}

.review-modal__submit {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
  border: 0;
  background: #cc1412;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
}

.review-modal__submit:hover {
  background: #e01a18;
}

.review-modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.review-modal__hint,
.review-modal__error,
.review-modal__success {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.review-modal__hint {
  color: #777;
}

.review-modal__error {
  color: #cc1412;
}

.review-modal__success {
  color: #1a7a3a;
}

