/* Site Facts модал */
#l7-sf-modal {
  position: fixed; inset: 0; z-index: 10100;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
#l7-sf-modal.is-open { display: flex; }
.l7sf-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(6px);
}
.l7sf-card {
  position: relative;
  width: 100%; max-width: 560px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 60px -10px rgba(15,23,42,.5);
}
.l7sf-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 18px; color: #64748b;
  cursor: pointer; border-radius: 8px;
}
.l7sf-close:hover { background: #f1f5f9; color: #0f172a; }
.l7sf-card h3 {
  margin: 0 0 6px;
  font-size: 20px; font-weight: 800;
  color: #0f4c81; letter-spacing: -.01em;
}
.l7sf-hint {
  margin: 0 0 16px;
  font-size: 13px; color: #64748b; line-height: 1.5;
}
.l7sf-card label {
  display: block;
  margin: 14px 0 6px;
  font-size: 11.5px; font-weight: 700;
  color: #475569;
  letter-spacing: .04em; text-transform: uppercase;
}
.l7sf-card textarea,
.l7sf-card select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14.5px; font-family: inherit;
  box-sizing: border-box;
}
.l7sf-card textarea { resize: vertical; min-height: 90px; }
.l7sf-card textarea:focus,
.l7sf-card select:focus {
  outline: none; border-color: #2d78b7;
  box-shadow: 0 0 0 3px rgba(45,120,183,.18);
}
.l7sf-error {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 8px;
  font-size: 13px; color: #dc2626;
}
.l7sf-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px;
}
.l7sf-btn {
  padding: 10px 18px;
  border: 0; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.l7sf-btn-submit {
  background: linear-gradient(135deg, #0f4c81, #2d78b7);
  color: #fff;
}
.l7sf-btn-submit:hover:not(:disabled) { filter: brightness(1.1); }
.l7sf-btn-submit:disabled { opacity: .6; cursor: wait; }
.l7sf-btn-cancel {
  background: #f1f5f9; color: #475569;
}
.l7sf-state-success p { font-size: 14px; line-height: 1.55; color: #475569; margin: 8px 0 0; }
.l7sf-state-success a { color: #2d78b7; }

html[data-theme="dark"] .l7sf-card { background: #1e293b; color: #f1f5f9; }
html[data-theme="dark"] .l7sf-card h3 { color: #60a5fa; }
html[data-theme="dark"] .l7sf-hint { color: #94a3b8; }
html[data-theme="dark"] .l7sf-card label { color: #cbd5e1; }
html[data-theme="dark"] .l7sf-card textarea,
html[data-theme="dark"] .l7sf-card select {
  background: rgba(15,23,42,.6); color: #e8f1fa; border-color: rgba(148,163,184,.35);
}
html[data-theme="dark"] .l7sf-btn-cancel {
  background: rgba(148,163,184,.15); color: #cbd5e1;
}
