.review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.review-modal {
  background: #fff;
  border-radius: 24px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.review-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.review-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #666;
}

.review-modal__close:hover {
  background: #f5f5f5;
  color: #333;
}

.review-form__field {
  margin-bottom: 20px;
}

.review-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.review-form__input,
.review-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fafafa;
}

.review-form__input:focus,
.review-form__textarea:focus {
  outline: none;
  border-color: #ff6b00;
  background: #fff;
}

.review-form__input.error,
.review-form__textarea.error {
  border-color: #e53935;
  background: #fff5f5;
}

.review-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.review-form__error {
  display: block;
  color: #e53935;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.review-form__stars {
  display: flex;
  gap: 8px;
}

.review-form__star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
  color: #ddd;
}

.review-form__star:hover {
  transform: scale(1.15);
}

.review-form__star.active {
  color: #ffb800;
}

.review-form__star svg {
  display: block;
  fill: currentColor;
}

.review-form__actions {
  margin-top: 24px;
}

.review-form__submit {
  width: 100%;
  padding: 16px 24px;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}

.review-form__submit:hover {
  background: #e55d00;
}

.review-form__submit:active {
  transform: scale(0.98);
}

.review-form__submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.review-modal__success {
  text-align: center;
  padding: 20px 0;
}

.review-modal__success-icon {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-modal__success-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.review-modal__success-text {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.5;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .review-modal {
    width: 95%;
    padding: 20px;
    border-radius: 16px;
  }

  .review-modal__title {
    font-size: 20px;
  }

  .review-form__submit {
    padding: 14px 20px;
    font-size: 15px;
  }
}

.review-form__captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.review-form__captcha-input {
  flex: 1;
  min-width: 120px;
}

.review-form__captcha-img {
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.review-form__captcha-refresh {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.review-form__captcha-refresh:hover {
  background-color: #f0f0f0;
}

/* ========================================
   Дополнения для карточек отзывов
   ======================================== */

.product-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00, #ff8a3d);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.product-card__rating-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}

.product-card__star {
  width: 16px;
  height: 16px;
  color: #e0e0e0;
  fill: currentColor;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.product-card__star--filled {
  color: #ffb800;
}

.product-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card__content .product-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-card__content .product-card__header .product-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .product-card__avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .product-card__desc {
    font-size: 13px;
    -webkit-line-clamp: 4;
  }

  .product-card__content .product-card__header .product-card__name {
    font-size: 14px;
  }
}

.catalog-slider.--empty {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-empty {
  text-align: center;
  padding: 40px 20px;
}

.reviews-empty__icon {
  color: #e0e0e0;
  fill: currentColor;
  margin-bottom: 16px;
}

.reviews-empty__text {
  font-size: 16px;
  color: #91979e;
  margin: 0;
}

.reviews-empty__text .orange-link {
  color: #ff6b00;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reviews-empty__text .orange-link:hover {
  color: #e55d00;
}

.add-review {
  cursor: pointer;
}

@media (max-width: 767px) {
  .product-card.--inline .product-card__desc {
    display: block !important;
  }
}

.booking-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.booking-modal .booking-modal-content {
  background-color: #fff;
  margin: 5% auto;
  width: 90%;
  max-width: 546px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

.booking-modal .booking-modal-header {
  padding: 24px;
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-modal .booking-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--black);
}

.booking-modal .booking-modal-close {
  cursor: pointer;
  transition: color 0.2s;
  color: var(--black);
}

.booking-modal .booking-modal-close:hover {
  color: var(--orange-dark);
}

.booking-modal .booking-modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.booking-modal .booking-modal-close:hover {
  color: #000;
}

.booking-modal .booking-modal-body {
  padding: 24px;
}

.booking-modal .form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 16px;
}

.booking-modal .form-columns .form-group {
  margin-bottom: 0;
}

.booking-modal .form-group {
  margin-bottom: 16px;
}

.booking-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--black);
}

.booking-modal .form-group .required {
  color: #e11d48;
}

.booking-modal .form-group input,
.booking-modal .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.booking-modal .form-group input:focus,
.booking-modal .form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.booking-modal .input-datepicker input {
  padding-left: 3rem;
}

.booking-modal .input-time input {
  padding-left: 3rem;
}

.booking-modal .form-hint {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-top: 4px;
}

.booking-modal .error-message {
  color: #e11d48;
  font-size: 12px;
  margin-top: 4px;
}

.booking-modal .form-actions {
  display: flex;
  gap: 8px;
}

.booking-modal .form-actions .btn,
.booking-modal .form-actions button.btn {
  width: auto;
}

@media (max-width: 767px) {
  .booking-modal .booking-modal-header {
    padding: 16px;
    padding-bottom: 0;
  }
  .booking-modal .booking-modal-body {
    padding: 16px;
  }
  .booking-modal .form-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .booking-modal .form-actions {
    flex-direction: column;
  }
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 1001;
  animation: toastFadeIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}