/* Callback-виджет: плавающая кнопка «Позвоните мне» + модалка. */

.cb-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #B8412B;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(184, 65, 43, .45);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.cb-button:hover {
  background: #8E2E1E;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(184, 65, 43, .55);
}
.cb-button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 600px) {
  .cb-button { padding: 12px 16px; font-size: 13px; bottom: 12px; right: 12px; }
}

/* Модалка */
.cb-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, .65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cb-modal-bg.open { display: flex; }
.cb-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(15, 26, 46, .35);
}
.cb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: #6E7A8F;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.cb-close:hover { background: #F5F0E6; color: #0F1A2E; }

.cb-modal h3 {
  font-family: Newsreader, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: #0F1A2E;
}
.cb-modal .cb-sub { font-size: 14px; color: #3A4A66; margin-bottom: 16px; }

.cb-field { margin-bottom: 12px; }
.cb-field label { display: block; font-size: 12px; color: #6E7A8F; margin-bottom: 4px; }
.cb-field input, .cb-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D6CDBC;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #FBF8F1;
}
.cb-field input:focus, .cb-field select:focus {
  outline: 2px solid #B8412B;
  outline-offset: -1px;
}

.cb-actions { margin-top: 16px; display: flex; gap: 10px; }
.cb-submit {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  background: #0F1A2E;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  border: 0;
  cursor: pointer;
  transition: background .2s;
}
.cb-submit:hover { background: #B8412B; }
.cb-submit:disabled { background: #6E7A8F; cursor: not-allowed; }

.cb-status { margin-top: 10px; font-size: 13px; }
.cb-status.ok { color: #2F6B4A; }
.cb-status.err { color: #B8412B; }
