/* чат с ИИ-ассистентом на сайте */
.gai-open { position: fixed; right: 16px; bottom: 16px; z-index: 900; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--gold, #e3b95a);
  background: rgba(10, 10, 10, .92); color: var(--gold, #e3b95a); font: 600 15px/1 inherit; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.gai-open:hover { background: rgba(227, 185, 90, .12); }
.gai-box { position: fixed; right: 16px; bottom: 72px; z-index: 901; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 100px));
  display: flex; flex-direction: column; background: #0d0d0d; color: var(--text, #f2f2f2); border: 1px solid var(--line-2, rgba(255,255,255,.17));
  border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); overflow: hidden; }
.gai-box[hidden] { display: none; }
.gai-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line, rgba(255,255,255,.09)); }
.gai-x { background: none; border: 0; color: inherit; font-size: 16px; cursor: pointer; }
.gai-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.gai-msg { padding: 8px 12px; border-radius: 14px; line-height: 1.4; font-size: 14px; white-space: pre-wrap; word-break: break-word; max-width: 88%; }
.gai-bot { background: rgba(255, 255, 255, .06); align-self: flex-start; }
.gai-me { background: rgba(227, 185, 90, .18); align-self: flex-end; }
.gai-msg a { color: var(--gold, #e3b95a); }
.gai-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line, rgba(255,255,255,.09)); }
.gai-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2, rgba(255,255,255,.17)); background: #050505; color: inherit; font-size: 16px; }
.gai-form button { padding: 0 14px; border-radius: 12px; border: 0; background: var(--gold, #e3b95a); color: #111; font-weight: 700; cursor: pointer; }
.gai-form button:disabled { opacity: .5; }
.gai-note { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--text-2, #bdbdbd); }
/* на главной справа плеер, по центру «Забронировать» — кнопка и окно чата слева */
.gai-left .gai-open, .gai-left.gai-open { right: auto; left: 18px; }
.gai-left.gai-box { right: auto; left: 18px; }
@media (min-width: 681px) and (max-width: 1180px) { .gai-left.gai-open { bottom: 86px; } .gai-left.gai-box { bottom: 142px; } }
@media (max-width: 680px) {
  .gai-left.gai-open { left: 10px; bottom: 12px; width: 48px; height: 48px; padding: 0; font-size: 0; display: grid; place-items: center; }
  .gai-left.gai-open::before { content: "💬"; font-size: 22px; }
  .gai-left.gai-box { left: 10px; right: 10px; width: auto; bottom: 70px; }
}
