/* The assistant window of the previous showcase (assistant.css) in this site's palette and type. */
:root { --green: #0077d8; --lime: #ffd200; --paper: #fafbfc; }
.chat { font-family: Golos, Arial, sans-serif; }
.chat, .launcher { z-index: 100 !important; }
/* The showcase reset buttons globally (styles.css); only the window's own button kinds are set here. */
.chat button { border: 0; font: inherit; cursor: pointer; }
.chat .icon-button, #contact-link { background: #fff; color: inherit; }
.chat .primary { background: var(--green); color: #fff; padding: 12px 16px; font-weight: 600; }
.chat .primary:hover { background: #075ea8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chat .icon-button { border: 1px solid #d8dde3; }
.chat .icon-button:hover, .chat .icon-button:focus-visible { background: #eef3f8; }
.chat .send { background: var(--green); border-color: var(--green); color: #fff; }
.chat .send:disabled { background: #e6eaee; border-color: #e6eaee; color: #8a96a1; }
.chat .identity h2 { font: 650 15px/1.3 Golos, Arial, sans-serif; }
.chat svg { width: 20px; height: 20px; }
.launcher svg { width: 14px; height: 14px; }
#contact-link { border: 1px solid #d8dde3 !important; border-radius: 10px; padding: 0 12px !important; height: 44px; font-size: 14px; }

/* The button (owner 03.11): Эльвина's face in a blue ring with a green dot, the wave stays; no chat
   badge — it shows only as a red dot when the team has answered. The hint shows once a visit. */
.launcher { width: 68px; height: 68px; right: 24px; bottom: calc(32px + env(safe-area-inset-bottom)); background: var(--white); border: 2px solid var(--green); box-shadow: 0 10px 28px -12px rgba(24, 43, 58, .55); }
/* The wave, stronger and more often than the shared one (owner 03.11): every 4 s two rings and a small nudge */
.launcher { animation: sv-nudge 4s ease-in-out infinite; }
.launcher::before, .launcher::after { inset: -2px; border: 2px solid var(--green); animation: sv-wave 4s ease-out infinite; }
.launcher::after { animation-delay: .45s; }
.launcher:hover, .launcher:focus-visible, .launcher.hint { animation: none; }
@keyframes sv-wave { 0% { transform: scale(1); opacity: 0; } 4% { opacity: .8; } 40% { transform: scale(1.75); opacity: 0; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes sv-nudge { 0%, 14%, 100% { transform: none; } 3% { transform: scale(1.08) rotate(-6deg); } 6% { transform: scale(1.08) rotate(6deg); } 9% { transform: scale(1.04) rotate(-3deg); } }
.launcher:hover, .launcher:focus-visible { background: #eef5fc; }
.launcher:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.launcher .launcher-mark { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: none; }
.launcher { padding: 0; overflow: visible; }
.launcher-online, .chat.online .avatar-wrap::after { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #22a55a; border: 2px solid #fff; }
.launcher-online { right: 1px; bottom: 3px; }
.launcher .launcher-chat { display: none; }
.launcher.has-unread .launcher-chat { display: block; top: 2px; right: 2px; bottom: auto; width: 16px; height: 16px; background: #d9412b; border: 2px solid var(--white); }
.launcher.has-unread .launcher-chat svg, .launcher.has-unread .launcher-chat::after { display: none; }
.launcher-label { right: 82px; padding: 10px 14px; background: var(--white); color: var(--ink); font: 600 14px/1.3 Golos, Arial, sans-serif; border: 1px solid var(--line); }
.launcher.hint .launcher-label { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@media (max-width: 600px) { .launcher { right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { .launcher-label { transition: none; } .rail { scroll-behavior: auto; } .launcher, .launcher::before, .launcher::after { animation: none; } }

/* The window, solution 2 (owner 03.11): one roomy window, our mark, a white field with signed «Файл» and «Голос»,
   and «Связаться с Сергеем» under it — the one way to the team. The talk keeps its room: the field starts at one line. */
.chat { width: 520px; height: min(820px, var(--available-height)); }
.chat-head { padding: 6px 12px 6px 14px; border-bottom: 1px solid #e6eaee; }
.chat-head .icon-button { width: 40px; min-width: 40px; height: 40px; }
.chat .composer-wrap { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.chat .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat.team-chat .avatar { border-radius: 0; object-fit: contain; }
.chat .avatar-wrap { position: relative; flex: none; display: block; line-height: 0; }
.chat.online .avatar-wrap::after { content: ''; right: -2px; bottom: -1px; width: 12px; height: 12px; }
/* A page button's topic, and the choice between the open chat and a new request. */
.chat .message.topic { font-weight: 500; }
.chat .new-request-start { display: block; margin-top: 10px; padding: 8px 14px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 600; }
.chat .identity h2 { font-size: 16px; }
.chat .identity span { font-size: 13px; }
.chat .composer { background: #fff; border: 1px solid #d3dae1; border-radius: 14px; padding: 4px 8px 6px; }
.chat .composer:focus-within { border-color: var(--green); }
.chat .composer textarea { min-height: 44px; padding-top: 8px; }
.chat .composer textarea::placeholder { color: #7b8792; }
.chat .composer-actions { gap: 6px; }
.chat .composer-actions #attach, .chat .composer-actions #voice { width: auto; min-width: 0; height: 34px; padding: 0 12px; gap: 6px; border: 1px solid #d8dde3; border-radius: 999px; background: #fff; color: #3b4a57; font-size: 13px; font-weight: 500; }
.chat .composer-actions #attach svg, .chat .composer-actions #voice svg { width: 18px; height: 18px; }
.chat .composer-actions #voice.recording-on { background: #f6e3de; border-color: #e7b9ae; color: #a54235; }
.chat .send { width: 40px; min-width: 40px; height: 40px; margin-left: auto; border-radius: 50%; }
.chat #contact-link { display: none !important; }
.chat .team-row { margin-top: 6px; }
.chat #team-link { display: block; width: 100%; height: 42px; border-radius: 12px; background: var(--lime); color: #18232d; font-size: 15px; font-weight: 650; }
.chat #team-link:hover { background: #f2c600; }
.chat #team-link:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.chat .team-note { margin: 6px 0 0; text-align: center; font-size: 12px; line-height: 1.35; color: #5d6b77; }
@media (max-width: 600px) { .chat { width: 100%; height: var(--mobile-height, 100dvh); } }
.chat .message.user { background: #e8f1fb; }
