html:has(.lead-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.lead-dialog { box-sizing: border-box; width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink); --lead-ring: #155dfc; --lead-muted: #626978; --lead-destructive: #b42318; font-family: var(--font-body); overscroll-behavior: contain; }
.lead-dialog[open] { animation: lead-dialog-enter 260ms cubic-bezier(.16, 1, .3, 1); }
@keyframes lead-dialog-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.lead-dialog[open][data-closing] { animation: lead-dialog-exit 180ms ease-in both; }
.lead-dialog[data-closing]::backdrop { animation: lead-backdrop-exit 180ms ease-in both; }
@keyframes lead-dialog-exit { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes lead-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
@keyframes lead-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.lead-dialog::backdrop { background: rgb(24 31 48 / .42); animation: lead-backdrop-enter 220ms ease-out; }
.lead-close { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #626978; cursor: pointer; }
.lead-close:hover { background: #f3f5f8; color: var(--ink); }
.lead-close svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lead-content h2 { margin: 0; padding-right: 32px; font-family: var(--font-heading); font-size: 32px; line-height: 1.2; font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.lead-content > p { margin: 10px 0 14px; color: #626978; font-size: 15px; line-height: 1.5; }
.lead-label { display: flex; align-items: baseline; gap: 4px; }
.lead-required { color: #727985; font-weight: 400; }
.lead-field-error { display: block; color: #b42318; font-size: 12px; line-height: 1.4; font-weight: 400; }
.lead-fields [data-invalid] > .lead-label { color: #b42318; }
.lead-fields > label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; line-height: 1.4; font-weight: 500; }
.lead-fields > label + label { margin-top: 12px; }
.lead-form input:not([type=checkbox]) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #d9dce3; box-shadow: 0 1px 2px rgb(16 24 40 / .04); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; border-radius: 8px; padding: 10px 12px; background: white; color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.4; }
.lead-form input:not([type=checkbox]):hover { border-color: #b7bdc9; }
.lead-form input:not([type=checkbox]):focus-visible { border-color: #155dfc; box-shadow: 0 0 0 3px rgb(21 93 252 / .16); }
.lead-form input[aria-invalid="true"] { border-color: #b42318; }
.lead-form input[aria-invalid="true"]:focus-visible { border-color: #b42318; box-shadow: 0 0 0 3px rgb(180 35 24 / .14); }
.lead-form input::placeholder { color: #727985; opacity: 1; }
.lead-form input[type=checkbox]:focus-visible, .lead-form button:focus-visible, .lead-close:focus-visible, .lead-content a:focus-visible { outline: 2px solid #155dfc; outline-offset: 3px; }
.lead-fields > .lead-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 13px; line-height: 1.55; font-weight: 400; cursor: pointer; }
.lead-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #155dfc; cursor: pointer; }
.lead-content a { color: #174bbf; text-decoration: underline; text-underline-offset: 3px; }
.lead-submit.primary-cta { display: flex; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 16px; padding: 14px 16px; border: 0; border-radius: 8px; background: #155dfc; color: white; font-family: inherit; font-size: 16px; line-height: 1.4; font-weight: 500; cursor: pointer; }
.lead-submit.primary-cta:hover { background: #124bd0; box-shadow: none; }
.lead-submit svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead-submit:disabled { cursor: wait; opacity: .65; }
.lead-form [hidden], .lead-dialog [hidden] { display: none !important; }
.lead-error { margin: 16px 0 0; color: #b42318; font-size: 14px; line-height: 1.5; }
.lead-success { padding-block: 12px; }
.lead-success > svg { width: 40px; height: 40px; margin-bottom: 12px; padding: 8px; border-radius: 50%; background: #eaf7ef; color: #237b45; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead-success h3 { margin: 0; font-family: var(--font-heading); font-size: 24px; line-height: 1.3; font-weight: 600; }
.lead-success p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
.lead-telegram { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.lead-telegram > span { color: #626978; }
.lead-telegram a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: 14px; }
.lead-telegram a:hover { text-decoration: underline; }
.lead-standalone { max-width: 580px; margin: 48px auto; padding: 32px; border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 600px) {
  .lead-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 44px 20px 24px; border-radius: 12px; }
  .lead-content h2 { padding-right: 0; font-size: 28px; }
  .lead-content > p { margin-bottom: 18px; }
  .lead-standalone { margin: 24px 12px; padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-dialog[open], .lead-dialog::backdrop, .lead-dialog[open][data-closing], .lead-dialog[data-closing]::backdrop { animation: none; }
  .lead-form input { transition: none; }
}
