/* Страница оплаты /pay/ (25.10.2026): одна карточка по центру, цвета сайта */
:root{--navy:#0B1733;--ink:#0E1A33;--soft:#545D6B;--gold:#C8913C;--rule:#E3E7EE;--bg:#F5F7FB;--bad:#B3402A}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:400 16px/1.5 Onest,system-ui,sans-serif}
a{color:var(--navy)}
.top{background:var(--navy);display:flex;justify-content:center;padding:12px 16px}
.top img{display:block;height:40px;width:auto}
.wrap{max-width:520px;margin:0 auto;padding:28px 16px 56px}
.card{background:#fff;border:1px solid var(--rule);border-radius:18px;padding:28px 24px;box-shadow:0 18px 40px -28px rgba(11,23,51,.35)}
h1{font:800 26px/1.2 Montserrat,sans-serif;margin:0 0 18px;text-align:center}
h2{font:700 22px/1.3 Montserrat,sans-serif;margin:0 0 10px}
.state{color:var(--soft);text-align:center;margin:0}
.title{font-weight:600;font-size:18px;margin:0 0 10px}
.lines{list-style:none;margin:0 0 12px;padding:0;border-top:1px solid var(--rule)}
.lines li{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--rule);color:var(--soft)}
.lines b{color:var(--ink);font-weight:500;white-space:nowrap}
.total{font:800 34px/1.2 Montserrat,sans-serif;margin:6px 0 20px;text-align:center}
.total small{display:block;font:500 15px/1.4 Onest,sans-serif;color:var(--soft)}
.fld{display:block;font-weight:500;margin:0 0 6px}
.inp{width:100%;font:inherit;padding:12px 14px;border:1px solid var(--rule);border-radius:12px;margin:0 0 18px;background:#fff;color:var(--ink)}
.inp:focus{outline:2px solid var(--gold);outline-offset:1px}
.inp.bad{border-color:var(--bad)}
.pp{min-height:120px}
.hint{font-size:14px;color:var(--ink);margin:4px 0 0;text-align:center}
.fine{font-size:13px;color:var(--soft);margin:14px 0 0;text-align:center}
.done{text-align:center}
.tgGo{display:block;margin:18px 0 12px;padding:15px 18px;border-radius:999px;background:var(--navy);color:#fff;font-weight:600;text-decoration:none}
.tgGo:hover{filter:brightness(1.15)}
.small{font-size:14px;color:var(--soft);margin:0}
.err{color:var(--bad);text-align:center;margin:0}
@media (max-width:480px){.card{padding:22px 16px}.total{font-size:30px}}
.confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:200}

/* плаваюча кнопка Telegram, правий нижній кут (28.10.2026) - як на всьому milodia.com */
.tgfab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:35;width:56px;height:56px;border-radius:50%;
  background:#229ED9;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px -6px rgba(11,23,51,.45);transition:transform .15s,bottom .2s}
.tgfab:hover{transform:scale(1.07)}
.tgfab:focus-visible{outline:3px solid #F3D58E;outline-offset:3px}
.tgfab svg{display:block;width:30px;height:30px;margin-left:-3px}
@media print{.tgfab{display:none}}
