.welcome { min-height: 100vh; padding: 40px 20px 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.welcome h1 { margin: 24px 0 12px; font-size: clamp(28px, 4vw, 40px); }
.welcome p { max-width: 560px; margin: 0; color: #4a4a5a; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.chat-toggle { position: fixed; z-index: 20; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 64px; height: 64px; border: 0; border-radius: 50%; color: #fff; background: var(--brand); box-shadow: 0 5px 20px rgba(26,35,126,.38); font-size: 30px; transition: transform .2s, background .2s; }
.chat-toggle:hover { background: var(--brand-dark); transform: scale(1.07); }
.search-shortcut { position: fixed; z-index: 19; right: 24px; bottom: 101px; border: 1px solid #d0d7e2; border-radius: 999px; padding: 11px 18px; color: var(--brand); background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); font-size: 14px; font-weight: 600; }
.search-shortcut:hover { border-color: var(--brand); background: #f7f8fc; }
.chat { position: fixed; z-index: 21; right: 24px; bottom: 100px; display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 48px); height: min(560px, calc(100vh - 140px)); background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 48px rgba(0,0,0,.18); }
.chat[hidden] { display: none; }
.chat__header { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 14px 16px 14px 20px; color: #fff; background: var(--brand); }
.chat__title { font-size: 16px; font-weight: 600; }
.chat__messages { flex: 1; overflow-y: auto; padding: 16px 18px; background: #f7f9fc; }
.message { max-width: 85%; width: fit-content; margin: 0 0 10px; padding: 10px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; animation: appear .2s ease-out; }
.message--user { margin-left: auto; color: #fff; border-bottom-right-radius: 4px; background: var(--brand); }
.message--bot { border-bottom-left-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.message--error { margin-inline: auto; color: var(--danger); background: #fee9e7; text-align: center; }
.message__label { display: block; margin-bottom: 3px; color: #778; font-size: 11px; font-weight: 600; }
.message a, .answer-card a { color: var(--brand); text-decoration: underline; }
.chat__form { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.chat__form input { flex: 1; min-width: 0; border: 1px solid #d0d7e2; border-radius: 999px; padding: 9px 15px; background: #f7f9fc; }
.chat__form input:focus { border-color: var(--brand); background: #fff; outline: 0; }
.typing { display: flex; gap: 4px; padding: 13px 16px; background: #fff; border-radius: 16px; width: fit-content; }
.typing i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #8892a8; animation: pulse 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .2s; }.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,60%,100% { opacity:.4; transform:translateY(0); } 30% { opacity:1; transform:translateY(-5px); } }
@media (max-width: 480px) { .chat { right: 12px; bottom: max(80px, calc(env(safe-area-inset-bottom) + 64px)); width: auto; left: 12px; height: min(600px, calc(100vh - 112px)); } .chat-toggle { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; } .search-shortcut { right: 84px; bottom: max(21px, calc(env(safe-area-inset-bottom) + 5px)); padding: 9px 13px; } .chat__form { padding: 9px 12px; } .chat__form .button { padding-inline: 14px; } }
