#cl-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #1f2937;
}
#cl-chat [hidden] { display: none !important; }
.cl-chat__launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6fed, #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(29, 78, 216, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cl-chat__launch:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(29, 78, 216, .45); }
.cl-chat__launch-icon { font-size: 18px; }
.cl-chat__panel {
  width: 370px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  border: 1px solid #e5e7eb;
}
.cl-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1e3a8a, #2f6fed);
  color: #fff;
}
.cl-chat__header strong { display: block; font-size: 16px; }
.cl-chat__header span { display: block; margin-top: 2px; font-size: 12px; opacity: .85; }
.cl-chat__close {
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 26px;
  cursor: pointer;
}
.cl-chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f5f8ff;
}
.cl-msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 13px;
  border-radius: 14px;
  white-space: pre-line;
  word-wrap: break-word;
}
.cl-msg--bot { background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.cl-msg--user { margin-left: auto; background: #2f6fed; color: #fff; border-bottom-right-radius: 4px; }
.cl-chat__options { padding: 0 16px 12px; background: #f5f8ff; }
.cl-opt {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #c7d7f5;
  border-radius: 10px;
  background: #fff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cl-opt:hover { background: #eaf1ff; border-color: #2f6fed; }
.cl-offer {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: #fff;
}
.cl-offer__name { font-size: 16px; font-weight: 700; color: #1e3a8a; }
.cl-offer__desc { margin: 4px 0 10px; font-size: 13px; color: #475569; }
.cl-offer__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-btn {
  display: inline-block;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: #2f6fed;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
.cl-btn--ghost { background: #fff; color: #2f6fed !important; border: 1px solid #2f6fed; }
.cl-btn--wide {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;
  background: #16a34a;
  box-shadow: 0 8px 22px rgba(22, 163, 74, .28);
}
.cl-btn--wide:hover { background: #15803d; opacity: 1; }
.cl-note { margin: 6px 0 10px; font-size: 12px; color: #64748b; line-height: 1.4; }
.cl-btn:hover { opacity: .92; }
.cl-form { margin: 0 0 10px; padding: 14px; border: 1px solid #dbe7ff; border-radius: 14px; background: #fff; }
.cl-form label { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #334155; }
.cl-form input[type=text], .cl-form input[type=email], .cl-form input[type=tel] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.cl-form__consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 12px !important; color: #475569; }
.cl-form__consent input { margin-top: 3px; }
.cl-form__error { color: #b91c1c; font-size: 12px; margin-top: 6px; }
.cl-chat__footer {
  padding: 8px 16px 10px;
  background: #f5f8ff;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #64748b;
}
.cl-chat__footer a { color: #2f6fed; }
@media (max-width: 480px) {
  #cl-chat { right: 12px; bottom: 12px; }
  .cl-chat__panel { width: calc(100vw - 24px); height: calc(100vh - 24px); max-height: none; border-radius: 14px; }
  .cl-chat__launch { padding: 12px 16px; font-size: 14px; }
}

/* Контекстный блок внутри статьи */
.cl-inline-cta {
  max-width: 640px;
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #dbe7ff;
  border-left: 4px solid #2f6fed;
  border-radius: 12px;
  background: #f7faff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
.cl-inline-cta__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cl-inline-cta__title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.cl-inline-cta__text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #475569;
}
.cl-inline-cta__btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 9px;
  background: #2f6fed;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.cl-inline-cta__btn:hover { background: #1d4ed8; }
.cl-inline-cta__alt {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  color: #2f6fed !important;
  text-decoration: underline;
}
@media (max-width: 480px) {
  .cl-inline-cta { padding: 16px; }
  .cl-inline-cta__btn { display: block; text-align: center; }
  .cl-inline-cta__alt { display: block; margin: 10px 0 0; }
}
