.lead-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: visible; color: var(--c-ink); }
.lead-dialog:not([open]) { display: none; }
.lead-dialog::backdrop { background: rgba(0, 61, 101, .6); backdrop-filter: blur(4px); }
.lead-dialog__wrap { position: fixed; inset: 0; display: grid; place-items: end center; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.lead-card { position: relative; width: 100%; max-width: 520px; max-height: 100dvh; overflow-y: auto; background: var(--c-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 28px 22px max(24px, env(safe-area-inset-bottom)); animation: sheet .4s var(--ease); }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.lead-card h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem); padding-right: 44px; }
.lead-card .lead-sub { margin-top: 10px; color: var(--c-muted); font-size: .98rem; }
.lead-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-foam); color: var(--c-deep); display: grid; place-items: center; }
.lead-close:hover { background: var(--c-aqua); color: #fff; }
.lead-form { margin-top: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--c-line); border-radius: 16px; background: var(--c-bg); font-size: 1rem; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-aqua); background: #fff; }
.field.has-error input, .field.has-error select { border-color: #D93025; }
.field__err { color: #C5221F; font-size: .85rem; font-weight: 700; min-height: 0; }
.field__err:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead-agree { font-size: .8rem; color: var(--c-muted); line-height: 1.45; }
.lead-agree a { color: var(--c-deep); }
.lead-form .btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.lead-state { display: grid; gap: 14px; text-align: center; justify-items: center; padding: 14px 0 6px; }
.lead-state .icon-badge { width: 72px; height: 72px; border-radius: 50%; }
.lead-state--ok .icon-badge { background: #D6F5E6; color: #0A8A4B; }
.lead-state--err .icon-badge { background: #FDE4E1; color: #C5221F; }
.lead-state p { color: var(--c-muted); }
.lead-state a { color: var(--c-deep); font-weight: 800; }
@media (min-width: 640px) {
  .lead-dialog__wrap { place-items: center; padding: 24px; }
  .lead-card { border-radius: var(--r-lg); padding: 36px; max-height: calc(100dvh - 48px); }
}
body.modal-open { overflow: hidden; }
.lead-close svg { transform: rotate(45deg); }
