/* Всплывающая форма заявки (lead-popup.js). 2026-11-23 */
.lead-popup {
  --lp-bg: #161b22; --lp-ink: #f3f1eb; --lp-muted: #b5b8be; --lp-glow: #9bbef0; --lp-blue: #1e56a0;
  --lp-line: rgba(236, 240, 248, .19);
  box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  margin: auto; padding: 40px 36px 28px; border: 1px solid var(--lp-line); border-radius: 0;
  background: radial-gradient(120% 70% at 100% 0%, rgba(30, 86, 160, .28), transparent 60%), var(--lp-bg);
  color: var(--lp-ink); font-family: "Golos Text", sans-serif; font-size: 15px; line-height: 1.5;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45); overscroll-behavior: contain;
}
.lead-popup *, .lead-popup *::before, .lead-popup *::after { box-sizing: border-box; }
.lead-popup::backdrop { background: rgba(8, 11, 15, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lead-popup[open] { animation: lp-in .28s cubic-bezier(.2, .8, .2, 1); }
.lead-popup[open]::backdrop { animation: lp-fade .28s ease; }
@keyframes lp-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes lp-fade { from { opacity: 0; } }

.lead-popup__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--lp-muted); cursor: pointer; transition: color .2s, transform .2s;
}
.lead-popup__close:hover { color: var(--lp-ink); transform: rotate(90deg); }
.lead-popup__grab { display: none; }
.lead-popup__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .09em; color: var(--lp-glow); margin: 0 0 14px; }
.lead-popup__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lp-glow); margin-right: 9px; vertical-align: middle; }
.lead-popup__title { font-family: "Manrope", sans-serif; font-weight: 500; font-size: 30px; line-height: 1.18; letter-spacing: -.01em; margin: 0 40px 12px 0; color: var(--lp-ink); }
.lead-popup__lead { margin: 0 0 22px; color: var(--lp-muted); font-size: 14px; }
.lead-popup__case { margin: 0 0 22px; padding: 12px 14px; border-left: 2px solid var(--lp-glow); background: rgba(155, 190, 240, .08); }
.lead-popup__case[hidden] { display: none; }
.lead-popup__case span { display: block; font-size: 12px; letter-spacing: .04em; color: var(--lp-glow); margin-bottom: 2px; }
.lead-popup__case strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.4; }

.lead-popup__form { display: grid; gap: 18px; margin: 0; }
.lead-popup__trap { display: none; }
.lead-popup__field { display: grid; gap: 6px; font-size: 13px; color: var(--lp-muted); }
.lead-popup__field input {
  width: 100%; min-width: 0; padding: 10px 0 11px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); border-radius: 0;
  background: transparent; color: var(--lp-ink); font: inherit; font-size: 17px; outline: none; transition: border-color .2s;
}
.lead-popup__field input::placeholder { color: #8d939c; opacity: 1; }
.lead-popup__field input:focus { border-bottom-color: var(--lp-glow); }
.lead-popup__field input:user-invalid { border-bottom-color: #e8837a; }
.lead-popup__consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; line-height: 1.5; color: var(--lp-muted); cursor: pointer; }
.lead-popup__consent input {
  appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border: 1px solid #aab2bf; border-radius: 0;
  display: grid; place-items: center; background: transparent; cursor: pointer;
}
.lead-popup__consent input:checked { background: var(--lp-blue); border-color: var(--lp-glow); }
.lead-popup__consent input:checked::after { content: "✓"; color: #fff; font-size: 13px; line-height: 1; }
.lead-popup__consent input:focus-visible { outline: 2px solid var(--lp-glow); outline-offset: 2px; }
.lead-popup__consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lead-popup__submit {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 56px; margin-top: 4px; padding: 14px 22px;
  border: 0; border-radius: 0; background: var(--lp-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .2s, transform .2s;
}
.lead-popup__submit span:last-child { font-size: 21px; line-height: 1; }
.lead-popup__submit:hover { background: #2969bc; transform: translateY(-2px); }
.lead-popup__submit:disabled { opacity: .6; cursor: progress; transform: none; }
.lead-popup .form-status { margin: 0; font-size: 13px; color: var(--lp-glow); }
.lead-popup .form-status[hidden] { display: none; }
.lead-popup__promise { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--lp-line); font-size: 13px; color: #c1c8d2; }
.lead-popup__promise .lead-popup__dot { width: 5px; height: 5px; margin-right: 6px; }
.lead-popup__phone { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--lp-muted); text-decoration: none; }
.lead-popup__phone:hover { color: var(--lp-ink); }

/* Телефон: шторка снизу. */
@media (max-width: 599px) {
  .lead-popup {
    width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
    border-width: 1px 0 0; border-radius: 18px 18px 0 0;
  }
  .lead-popup[open] { animation: lp-up .32s cubic-bezier(.2, .8, .2, 1); }
  @keyframes lp-up { from { transform: translateY(100%); } }
  .lead-popup__grab { display: block; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
  .lead-popup__close { top: 8px; right: 6px; }
  .lead-popup__title { font-size: 26px; }
  .lead-popup__lead { margin-bottom: 18px; }
  .lead-popup__form { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-popup[open], .lead-popup[open]::backdrop { animation: none; }
}
