/* ============================================================
   pcn-lead.css — окно «Оставить заявку» (js/pcn-lead.js)
   Компьютер: окно по центру. Смартфон: шторка снизу.
   ============================================================ */
html.pl-lock, html.pl-lock body { overflow:hidden; }

.pl { position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center;
    font-family:'Gilroy','Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; color:#0a0a0a; }
.pl[hidden] { display:none; }
.pl *, .pl *::before, .pl *::after { box-sizing:border-box; }

.pl__backdrop { position:absolute; inset:0; background:rgba(10,10,10,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
    opacity:0; transition:opacity .3s ease; }
.pl.is-open .pl__backdrop { opacity:1; }

.pl__panel { position:relative; width:min(480px, calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow:auto;
    background:#fff; border-radius:28px; padding:40px 36px 32px; box-shadow:0 30px 80px rgba(0,0,0,.25);
    opacity:0; transform:translateY(16px) scale(.98); transition:opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); outline:none; }
.pl.is-open .pl__panel { opacity:1; transform:none; }

.pl__grab { display:none; }
.pl__x { position:absolute; top:16px; right:16px; width:40px; height:40px; border:none; border-radius:50%; background:#f2f2f2; color:#0a0a0a;
    display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s ease; }
.pl__x:hover { background:#e6e6e6; }
.pl__x svg { width:18px; height:18px; }

.pl__eyebrow { margin:0 0 10px; font-size:13px; font-weight:600; color:#4CAC26; letter-spacing:.02em; }
.pl__title { margin:0; font-size:28px; line-height:1.15; font-weight:600; letter-spacing:-0.01em; padding-right:40px; }
.pl__sub { margin:12px 0 0; font-size:15px; line-height:1.5; color:#6b6b6b; }

.pl__form { margin-top:24px; display:flex; flex-direction:column; gap:12px; }
.pl__field { display:flex; flex-direction:column; gap:6px; }
.pl__field span { font-size:13px; color:#6b6b6b; }
.pl__field input { width:100%; height:56px; border:1.5px solid transparent; border-radius:16px; background:#f4f4f4; padding:0 18px;
    font:inherit; font-size:16px; color:#0a0a0a; outline:none; transition:border-color .2s ease, background .2s ease; }
.pl__field input:focus { border-color:#0a0a0a; background:#fff; }
.pl__hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
.pl__err { margin:0; font-size:14px; color:#d20b12; }

.pl__submit { margin-top:6px; width:100%; height:58px; border:none; border-radius:999px; background:#0a0a0a; color:#fff;
    font:inherit; font-size:16px; font-weight:600; cursor:pointer; transition:background .2s ease, transform .15s ease; }
.pl__submit:hover { background:#222; }
.pl__submit:active { transform:scale(.98); }
.pl__submit:disabled { opacity:.7; cursor:default; }
.pl__submit.is-loading::before { content:""; display:inline-block; width:16px; height:16px; margin-right:10px; vertical-align:-3px;
    border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:plSpin .8s linear infinite; }
@keyframes plSpin { to { transform:rotate(360deg); } }

.pl__legal { margin:4px 0 0; font-size:12px; line-height:1.45; color:#9a9a9a; text-align:center; }
.pl__legal a { color:inherit; text-decoration:underline; text-underline-offset:2px; }

.pl__or { display:flex; align-items:center; gap:12px; margin:22px 0 14px; font-size:13px; color:#9a9a9a; }
.pl__or::before, .pl__or::after { content:""; flex:1; height:1px; background:#ececec; }
.pl__quick { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pl__qbtn { display:flex; align-items:center; justify-content:center; gap:8px; height:52px; border-radius:16px; background:#f4f4f4;
    color:#0a0a0a; font-size:15px; font-weight:600; text-decoration:none; transition:background .2s ease, transform .15s ease; }
.pl__qbtn:hover { background:#ebebeb; }
.pl__qbtn:active { transform:scale(.97); }
.pl__qbtn svg { width:20px; height:20px; }
.pl__qbtn--wa { color:#1f9d4c; }

.pl__step--ok { text-align:center; padding-top:8px; }
.pl__step--ok .pl__title { padding-right:0; }
.pl__okicon { width:72px; height:72px; margin:0 auto 18px; color:#4CAC26; }
.pl__okicon svg { width:100%; height:100%; }
.pl__step--ok .pl__submit { margin-top:24px; }

/* ---------- Смартфон: шторка снизу ---------- */
@media (max-width:768px) {
    .pl { align-items:flex-end; }
    .pl__panel { width:100%; max-height:92vh; max-height:92dvh; border-radius:26px 26px 0 0;
        padding:10px 20px calc(22px + env(safe-area-inset-bottom)); transform:translateY(100%); opacity:1;
        transition:transform .38s cubic-bezier(.2,.8,.2,1); overscroll-behavior:contain; }
    .pl.is-open .pl__panel { transform:none; }
    .pl__grab { display:block; width:42px; height:5px; border-radius:3px; background:#d9d9d9; margin:2px auto 18px; }
    .pl__x { top:14px; right:14px; width:36px; height:36px; }
    .pl__title { font-size:24px; }
    .pl__sub { font-size:14px; }
    .pl__form { margin-top:20px; }
}

@media (prefers-reduced-motion: reduce) {
    .pl__backdrop, .pl__panel { transition:none; }
}
