/* ==== UnitLand модалки: отзывы и вопросы ==== */

.ul-modal[hidden] { display: none !important; }
.ul-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ulModalIn .18s ease;
}
@keyframes ulModalIn { from { opacity: 0; } to { opacity: 1; } }

.ul-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.ul-modal__box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15, 20, 25, .25);
  padding: 28px 28px 24px;
  animation: ulModalBoxIn .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes ulModalBoxIn {
  from { transform: translateY(20px) scale(.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.ul-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f7f8fa;
  color: #5a6470;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.ul-modal__close:hover { background: #e6e8ec; color: #0f1419; }

.ul-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f1419;
  padding-right: 40px;
}
.ul-modal__sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: #5a6470;
  line-height: 1.4;
}

/* ==== Форма ==== */
.ul-form { display: block; }
.ul-form__row { margin-bottom: 16px; }
.ul-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f1419;
  margin-bottom: 6px;
}
.ul-form__req { color: #ff6b1f; }

.ul-form__input,
.ul-form__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #0f1419;
  background: #fff;
  transition: border-color .15s ease;
  box-sizing: border-box;
}
.ul-form__input:focus,
.ul-form__textarea:focus {
  outline: none;
  border-color: #05ae51;
  box-shadow: 0 0 0 3px rgba(5, 174, 81, .12);
}
.ul-form__textarea { resize: vertical; min-height: 100px; }
.ul-form__hint {
  font-size: 12px;
  color: #5a6470;
  margin-top: 4px;
}

/* ==== Звёзды ==== */
.ul-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.ul-stars__btn {
  background: none;
  border: 0;
  font-size: 34px;
  line-height: 1;
  color: #e6e8ec;
  cursor: pointer;
  padding: 0;
  transition: color .12s ease, transform .12s ease;
}
.ul-stars__btn:hover,
.ul-stars__btn.is-hover,
.ul-stars__btn.is-active { color: #ffb300; }
.ul-stars__btn:active { transform: scale(.9); }

/* ==== Сообщения ==== */
.ul-form__error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.ul-form__success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ==== Кнопка отправки ==== */
.ul-form__submit {
  display: block;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #05ae51;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  font-family: inherit;
}
.ul-form__submit:hover:not(:disabled) { background: #049a47; }
.ul-form__submit:disabled { opacity: .6; cursor: not-allowed; }

.ul-form__note {
  text-align: center;
  font-size: 12px;
  color: #5a6470;
  margin: 10px 0 0;
}

/* ==== Мобилка ==== */
@media (max-width: 600px) {
  .ul-modal { padding: 12px; align-items: flex-start; }
  .ul-modal__box { padding: 22px 18px 20px; border-radius: 14px; max-height: calc(100vh - 24px); }
  .ul-modal__title { font-size: 19px; }
  .ul-modal__sub { font-size: 13px; margin-bottom: 16px; }
  .ul-stars__btn { font-size: 30px; }
  .ul-form__submit { height: 44px; font-size: 14px; }
}

/* ==== Кнопки-триггеры в табах и на карточке ==== */
.ul-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid #05ae51;
  background: #fff;
  color: #05ae51;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.ul-btn-action:hover { background: #05ae51; color: #fff; }
.ul-btn-action--primary {
  background: #05ae51;
  color: #fff;
}
.ul-btn-action--primary:hover { background: #049a47; border-color: #049a47; }
