/* Стили страницы подключения WhatsApp. Вынесены из HTML отдельным файлом,
   чтобы отдавать страницу под строгой CSP без 'unsafe-inline'. */
/* Тот же язык, что и в системе учёта: чёрное, серебро нитью, синий —
     единственный акцент, скругление два пикселя, теней нет. */
  :root{
    --bg:#0b0c0e; --surface:#141619; --panel:#1c1f24; --line:#2a2e35;
    --line-strong:#3a404a; --ink:#edeff2; --ink-2:#9ba1aa; --ink-3:#858c98;
    --blue:#2e7dd7; --blue-hi:#4f9bef; --ok:#5b9e7c; --warn:#c8a24a; --bad:#d1665e;
    --metal:linear-gradient(105deg,#8a9099 0%,#e9ecf0 38%,#aeb4bc 55%,#6e747c 100%);
    --r:2px; --ease:cubic-bezier(.2,0,0,1);
    color-scheme:dark;
  }
  *{box-sizing:border-box}
  html,body{height:100%}
  body{margin:0;background:var(--bg);color:var(--ink);
    font:400 15px/1.5 Onest,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;
    display:grid;place-items:center;padding:28px 18px}
  .card{position:relative;width:100%;max-width:840px;background:var(--surface);
    border:1px solid var(--line);border-radius:var(--r);
    display:grid;grid-template-columns:1fr 380px;animation:in .5s var(--ease) both}
  .card::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--metal)}
  @keyframes in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

  .left{padding:40px 38px}
  .eyebrow{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
  h1{margin:14px 0 0;font:600 30px/1.15 Unbounded,Onest,sans-serif;letter-spacing:-.02em}
  .rule{height:1px;width:72px;background:var(--metal);margin:18px 0 20px}
  .lead{color:var(--ink-2);font-size:14.5px;max-width:34ch;margin:0}
  ol{margin:26px 0 0;padding:0;list-style:none;counter-reset:s}
  ol li{counter-increment:s;position:relative;padding:11px 0 11px 34px;border-top:1px solid var(--line);font-size:14px}
  ol li:last-child{border-bottom:1px solid var(--line)}
  ol li::before{content:counter(s);position:absolute;left:0;top:11px;width:21px;height:21px;
    border:1px solid var(--line-strong);border-radius:50%;display:grid;place-items:center;
    font-size:11px;color:var(--ink-3)}
  .note{margin-top:22px;color:var(--ink-3);font-size:12.5px;max-width:40ch}

  .right{padding:40px 30px;border-left:1px solid var(--line);display:flex;
    flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center}
  .frame{width:300px;height:300px;background:#fff;border-radius:var(--r);display:grid;place-items:center;
    position:relative;overflow:hidden}
  .frame img{width:100%;height:100%;display:block;animation:qr .35s var(--ease) both}
  @keyframes qr{from{opacity:0;transform:scale(.97);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
  .frame.empty{background:var(--panel);border:1px dashed var(--line-strong)}
  .spin{width:26px;height:26px;border:2px solid var(--line-strong);border-top-color:var(--blue);
    border-radius:50%;animation:sp .8s linear infinite}
  @keyframes sp{to{transform:rotate(360deg)}}

  .bar{width:300px;height:2px;background:var(--panel);border-radius:var(--r);overflow:hidden}
  /* Начальное состояние здесь, а не атрибутом style в HTML: страницу отдаём
     под CSP, которая встроенные стили запрещает. Ход полоски задаёт скрипт
     через Web Animations — её CSP не касается. */
  .bar i{display:block;height:100%;background:var(--blue);transform-origin:left;transform:scaleX(0)}
  .status{font-size:13px;color:var(--ink-2);min-height:20px}
  .status b{color:var(--ink);font-weight:500}
  .tick{width:56px;height:56px;border-radius:50%;border:2px solid var(--ok);display:grid;place-items:center;
    color:var(--ok);font-size:26px;animation:pop .45s var(--ease) both}
  @keyframes pop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
  .phone{font:600 22px/1.2 Unbounded,Onest,sans-serif;font-variant-numeric:tabular-nums}
  .btn{height:38px;padding:0 18px;border:1px solid var(--line-strong);border-radius:var(--r);
    background:transparent;color:var(--ink);font:inherit;font-size:14px;cursor:pointer;
    transition:background .14s var(--ease),border-color .14s var(--ease)}
  .btn:hover{background:var(--panel);border-color:#6e747c}
  .btn-primary{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:600}
  .btn-primary:hover{background:var(--blue-hi);border-color:var(--blue-hi)}
  .bad{color:var(--bad)}

  @media (max-width:820px){
    body{padding:14px;place-items:start center}
    .card{grid-template-columns:1fr;max-width:460px}
    .left{padding:26px 20px 4px;order:2;border-top:1px solid var(--line)}
    .right{padding:26px 18px;border-left:0;order:1}
    h1{font-size:23px}
    .frame,.bar{width:min(300px,78vw)}
    .frame{height:min(300px,78vw)}
    ol{margin-top:18px}
  }
