/* Lead modal — нативный <dialog>, mobile-first. */
.lead-modal {
  border: 0; padding: 0; margin: auto;
  background: var(--surface, #fff);
  color: var(--ink, #111);
  border-radius: var(--r-md, 12px);
  width: min(92vw, 480px);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.lead-modal::backdrop {
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.lead-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 22px 22px;
}
.lead-form__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.lead-form__head h2 {
  margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3;
}
.lead-close {
  appearance: none; background: transparent; border: 0;
  width: 44px; height: 44px;
  font-size: 28px; line-height: 1;
  color: var(--stone, #777);
  cursor: pointer; border-radius: var(--r-sm, 8px);
  flex-shrink: 0;
}
.lead-close:hover { background: var(--paper, #f4f4f4); color: var(--ink, #111); }

.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field > span { font-size: 13px; color: var(--stone, #555); font-weight: 500; }
.lead-field > span em {
  color: var(--accent, #d33); font-style: normal; font-weight: 700;
}
.lead-field input,
.lead-field textarea {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line, #ddd);
  border-radius: var(--r-sm, 8px);
  background: var(--surface, #fff);
  color: inherit;
}
.lead-field textarea { min-height: 88px; resize: vertical; }
.lead-field input:focus,
.lead-field textarea:focus {
  outline: 2px solid var(--accent, #d33);
  outline-offset: -2px;
}
.lead-field.is-error input,
.lead-field.is-error textarea {
  border-color: var(--accent, #d33);
}

.lead-prefcontact {
  border: 1px solid var(--line, #ddd);
  border-radius: var(--r-sm, 8px);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  margin: 0;
}
.lead-prefcontact legend {
  padding: 0 6px; font-size: 13px; color: var(--stone, #555);
}
.lead-prefcontact label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; min-height: 44px;
}
.lead-prefcontact input { width: 18px; height: 18px; }

.lead-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.45;
  color: var(--stone, #555);
  cursor: pointer;
}
.lead-consent input {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin: 2px 0 0 0;
}
.lead-consent > span {
  flex: 1 1 auto; min-width: 0;
}
.lead-consent a {
  color: var(--ink, #111);
  text-decoration: underline;
}
.lead-consent a:hover { color: var(--accent, #d33); }

.lead-submit {
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
}
.lead-submit:disabled { opacity: .5; cursor: not-allowed; }

.lead-status { margin: 0; font-size: 13px; min-height: 1em; }
.lead-status.is-error  { color: var(--accent, #d33); }
.lead-status.is-success { color: var(--ok, #0a8a3f); }

/* Honeypot — визуально и для скрин-ридера скрыто */
.lead-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* Mobile: дизайн почти full-screen */
@media (max-width: 480px) {
  .lead-modal {
    width: 100vw; height: 100vh; max-height: 100vh;
    border-radius: 0; margin: 0;
  }
  .lead-form { padding: 18px 16px 22px; }
}
