.k-ai, .k-ai-launcher {
  --k-ai-bottom: 24px;
  position: fixed;
  z-index: 1090;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(var(--k-ai-bottom), env(safe-area-inset-bottom));
  font-family: inherit;
  letter-spacing: 0;
  box-sizing: border-box;
}
.k-ai {
  width: 400px;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - var(--k-ai-bottom) - 210px);
  max-height: calc(100svh - var(--k-ai-bottom) - 210px);
  color: #142c4c;
  background: linear-gradient(145deg, #fff 8%, #f3f7ff 72%, #e5efff);
  border: 1px solid #fff;
  border-radius: 22px;
  box-shadow: 0 20px 55px #1c4a8d30, inset 0 0 0 1px #e6efff;
  isolation: isolate;
}
.k-ai[hidden], .k-ai-launcher[hidden] { display: none !important; }
.k-ai-content { padding: 96px 26px 12px; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; }
.k-ai-portrait { position: absolute; pointer-events: none; top: -130px; right: 29px; width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 12px 14px #153e7e18); }
.k-ai-close { position: absolute; z-index: 2; top: 9px; right: 7px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #526681; background: #f3f7ff; font-size: 20px; cursor: pointer; }
.k-ai-close:hover { color: #142c4c; background: #dce9fc; }
.k-ai-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.k-ai-badge { display: inline-block; padding: 4px 12px; color: #1e56c4; background: #e3edff; font-size: 12px; line-height: 1.5; font-weight: 600; border-radius: 20px; }
.k-ai .k-ai-label { margin: 0; color: #526681; font-size: 11px; line-height: 1.5; font-weight: 600; }
.k-ai .k-ai-title { margin: 0 0 15px; color: #142c4c; font-size: 25px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.k-ai .k-ai-copy { margin: 0 0 20px; color: #526681; font-size: 14px; line-height: 1.75; }
.k-ai-copy strong, .k-ai-hours strong { color: #142c4c; font-weight: 600; }
.k-ai-hours { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.k-ai-hours > i { flex-shrink: 0; color: #346de1; font-size: 19px; }
.k-ai .k-ai-hours p { margin: 0; color: #526681; font-size: 12px; line-height: 1.9; }
.k-ai .k-ai-call { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 76px; padding: 14px 16px; border: 1px solid #5488ff; border-radius: 8px; background: linear-gradient(120deg, #2765ef, #1252da); box-shadow: 0 7px 18px #245ee62b, inset 0 1px 0 #ffffff45; color: #fff; text-decoration: none; transition: box-shadow .15s ease; }
.k-ai-call > .bi:first-child { font-size: 21px; }
.k-ai-call > .bi:last-child { font-size: 15px; }
.k-ai-call-label { display: block; font-size: 12px; line-height: 1.5; font-weight: 500; }
.k-ai-number { display: block; font-size: 22px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.k-ai .k-ai-call:hover { color: #fff; box-shadow: 0 9px 25px #245ee650, inset 0 1px 0 #ffffff45; }
.k-ai .k-ai-how { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin-top: 9px; color: #2757a9; font-size: 12px; font-weight: 600; text-underline-offset: 4px; text-decoration: none; }
.k-ai .k-ai-how:hover { text-decoration: underline; }
.k-ai-launcher { width: 72px; height: 72px; padding: 0; border-radius: 50%; border: 1px solid #dce9fc; background: linear-gradient(145deg, #fff, #dfebff); box-shadow: 0 8px 26px #1c4a8d30; cursor: pointer; }
.k-ai-launcher img { width: 78px; height: 78px; max-width: none; object-fit: contain; position: absolute; left: -4px; bottom: 4px; pointer-events: none; }
.k-ai-launcher-label { position: absolute; right: -2px; bottom: 0; padding: 2px 6px; background: #2765ef; color: #fff; border: 2px solid #fff; border-radius: 12px; font-size: 11px; line-height: 1.4; font-weight: 600; }
.k-ai-launcher:hover { box-shadow: 0 10px 30px #1c4a8d50; }
.k-ai a:focus-visible, .k-ai button:focus-visible, .k-ai-launcher:focus-visible { outline: 3px solid #142c4c; outline-offset: 3px; }
@media (max-width: 767px) {
  .k-ai, .k-ai-launcher { --k-ai-bottom: 12px; right: max(12px, env(safe-area-inset-right)); }
  .k-ai { max-width: calc(100% - 24px); }
  .k-ai.k-ai-above-call, .k-ai-launcher.k-ai-above-call { --k-ai-bottom: 78px; }
  .k-ai-content { padding: 88px 20px 10px; }
  .k-ai-portrait { width: 210px; height: 210px; top: -130px; }
  .k-ai .k-ai-title { font-size: 22px; }
}
@media (max-width: 350px) {
  .k-ai .k-ai-call { padding: 12px; gap: 9px; }
  .k-ai-call-label { font-size: 11px; }
  .k-ai-number { font-size: 21px; }
}
@media (max-height: 650px) {
  .k-ai { max-height: calc(100vh - var(--k-ai-bottom) - 150px); max-height: calc(100svh - var(--k-ai-bottom) - 150px); }
  .k-ai-portrait { width: 110px; height: 110px; top: -68px; right: 50px; }
  .k-ai-content { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) { .k-ai .k-ai-call { transition: none; } }
