.alice-chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  font-family: Segoe UI, Arial, sans-serif;
}
.alice-chat__toggle,
.alice-chat__form button,
.alice-chat__reset {
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.alice-chat__toggle {
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
}
.alice-chat__panel {
  width: min(420px, calc(100vw - 24px));
  max-height: min(78vh, 640px);
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 10px;
}
.alice-chat__panel[hidden],
.alice-chat__toggle[hidden] {
  display: none !important;
}
.alice-chat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #1f4e79;
  color: #fff;
}
.alice-chat__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.alice-chat__hint {
  margin: 0;
  padding: 10px 14px 0;
  color: #5a7390;
  font-size: 13px;
}
.alice-chat__log {
  flex: 1;
  overflow: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alice-msg {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
}
.alice-msg p { margin: 0; }
.alice-msg--alice { background: #eef4fb; align-self: flex-start; }
.alice-msg--user { background: #dbeafe; align-self: flex-end; }
.alice-masters { display: grid; gap: 8px; }
.alice-master {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  font-size: 13px;
}
.alice-master__photo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #d7e3ef;
  color: #1f4e79;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.alice-master__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.alice-master__body strong { display: block; font-size: 15px; color: #12324f; }
.alice-master__rate { color: #1f4e79; font-weight: 600; margin: 4px 0 0; }
.alice-master__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.alice-master__tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: #1f4e79;
  font-size: 11px;
  line-height: 1.3;
}
.alice-master__tag.is-match {
  background: #fff3cd;
  color: #8a6a00;
}
.alice-master__place,
.alice-master__about,
.alice-master__why,
.alice-master__lead {
  color: #3b5168;
  margin: 4px 0 0;
  line-height: 1.35;
}
.alice-master__about {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.alice-master__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.alice-master__cta:hover { background: #1d4ed8; }
.alice-master.is-best {
  border-color: #f5b301;
  background: #fffaf0;
}
.alice-chat__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 6px;
}
.alice-chat__form input {
  flex: 1;
  border: 1px solid #9eb6ce;
  border-radius: 10px;
  padding: 10px;
}
.alice-chat__form button { padding: 10px 14px; border-radius: 10px; }
.alice-chat__reset {
  margin: 0 12px 12px;
  background: transparent;
  color: #1f4e79;
  padding: 6px;
}
.stars { color: #d5deea; letter-spacing: 1px; }
.stars__item.is-full, .stars__item.is-half { color: #f5b301; }
.master-rating { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.master-rating__avg { font-weight: 700; }
.master-rating__count, .master-rating__empty { color: #5a7390; font-size: 14px; }
.masters__block__info .master-rating {
  justify-content: flex-start;
  font-size: 16px;
  margin: 0 0 10px;
}
.master-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 12px 0; }
.master-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f1fa;
  border: 1px solid #c5d4e4;
  color: #12324f;
  font-weight: 600;
  text-decoration: none;
}
.master-links__missing {
  color: #5a7390;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.masters__block__info .master-links {
  justify-content: flex-start;
  margin: 0 0 10px;
}
.master-page__rate-form { text-align: left; margin: 20px auto; max-width: 520px; }
.master-page__rate-form input[type="text"],
.master-page__rate-form textarea { width: 100%; }
.stars-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.stars-pick__star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #c5d4e4;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  color: #1f4e79;
}
.stars-pick__star input { width: auto !important; margin: 0; }
.stars-pick__star:has(input:checked) {
  background: #fff7e0;
  border-color: #f5b301;
  color: #8a6a00;
}
.review-list { text-align: left; max-width: 520px; margin: 0 auto; }
.review-list article { border-top: 1px solid #d7e3ef; padding: 10px 0; }
@media screen and (max-width: 700px) {
  .alice-chat { right: 10px; left: 10px; bottom: 10px; }
  .alice-chat__toggle { width: 100%; }
  .alice-chat__panel { width: 100%; }
  .alice-master { grid-template-columns: 56px 1fr; }
  .alice-master__photo { width: 56px; height: 56px; font-size: 18px; }
  body { padding-bottom: 84px; }
}
