@font-face{font-family:Geologica;src:url(/assets/fonts/geologica-cyrillic.woff2) format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Geologica;src:url(/assets/fonts/geologica-latin.woff2) format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--bg:#eef1f4;--ink:#10151c;--soft:#3a4350;--line:#cfd6de;--blue:#1f5bff;--deep:#1f3bff;--sun:#ffd84a;--ok:#0a8f5b}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 Geologica,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
h1,h2,h3{margin:0;font-weight:900;letter-spacing:-.035em;line-height:1.02}
.wrap{max-width:1240px;margin:0 auto;padding:22px 28px 56px}
.top{display:flex;justify-content:space-between;align-items:center;font-weight:600;margin-bottom:34px}
.logo{font-weight:900;font-size:24px;letter-spacing:-.04em;text-decoration:none}
.top nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.top nav a{text-decoration:none;font-size:15px;padding:8px 14px;border-radius:10px;border:2px solid var(--ink)}
.top nav a[aria-current]{background:var(--ink);color:#fff}
.head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:40px;align-items:end;margin-bottom:28px}
.head h1{font-size:clamp(34px,4.6vw,60px)}
.head p{margin:0;color:var(--soft);font-size:18px}
.stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.pane-t{font-weight:800;font-size:15px;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.pane-t i{width:10px;height:10px;border-radius:5px;background:var(--blue)}
.pane-t.o i{background:var(--sun);box-shadow:0 0 0 2px var(--ink)}

.chat{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;display:flex;flex-direction:column;height:640px}
.chat-h{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.av{width:44px;height:44px;border-radius:22px;background:var(--deep);color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;font-size:19px;flex:none}
.chat-h b{display:block;font-weight:800}
.chat-h small{color:var(--soft)}
.msgs{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:10px;background:#f6f8fa}
.m{max-width:86%;padding:11px 15px;border-radius:18px;white-space:pre-line;animation:in .22s ease-out}
.m.b{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:6px}
.m.u{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.m.typing{color:var(--soft);font-style:italic}
.m.rich{width:86%;padding:0;overflow:hidden;white-space:normal}
@keyframes in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.rh{padding:11px 15px;font-weight:800;border-bottom:1px solid var(--line)}
.row{display:flex;justify-content:space-between;gap:16px;padding:9px 15px;border-bottom:1px solid #e8ecf0}
.row:last-child{border-bottom:0}
.row span{color:var(--soft)}
.row b{text-align:right;font-weight:700}
.row.total{background:#f1f5ff}
.row.total b{font-size:18px;font-weight:900}
.item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 15px;border-bottom:1px solid #e8ecf0}
.item:last-child{border-bottom:0}
.sw{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-weight:900;color:#fff;font-size:18px}
.sw.c1{background:#1f5bff}.sw.c2{background:#10151c}.sw.c3{background:#e2572b}.sw.c4{background:#0a8f5b}
.item b{display:block;font-weight:800;line-height:1.2}
.item small{color:var(--soft);display:block;line-height:1.3;margin-top:2px}
.item button,.slots button{font:inherit;font-weight:700;font-size:14px;border:0;border-radius:10px;padding:8px 12px;background:var(--ink);color:#fff;cursor:pointer}
.item button:hover,.slots button:hover{background:var(--blue)}
.slots{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.slots button{background:#e8edf5;color:var(--ink)}
.slots button:hover{color:#fff}
.tl{list-style:none;margin:0;padding:12px 15px 12px 38px;position:relative}
.tl:before{content:"";position:absolute;left:21px;top:20px;bottom:20px;width:2px;background:var(--line)}
.tl li{position:relative;padding:5px 0}
.tl li:before{content:"";position:absolute;left:-23px;top:10px;width:12px;height:12px;border-radius:6px;background:#fff;border:2px solid var(--line)}
.tl li.done:before{background:var(--ok);border-color:var(--ok)}
.tl li.now:before{background:var(--sun);border-color:var(--ink)}
.tl li.now b{font-weight:800}
.tl small{display:block;color:var(--soft)}
.qr{display:flex;gap:8px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid var(--line);background:#fff;min-height:58px}
.qr button{font:inherit;font-weight:600;font-size:15px;border:2px solid var(--blue);color:var(--blue);background:#fff;border-radius:999px;padding:7px 14px;cursor:pointer}
.qr button:hover{background:var(--blue);color:#fff}
.inp{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--line);background:#fff}
.inp input{flex:1;min-width:0;font:inherit;border:2px solid var(--line);border-radius:12px;padding:11px 14px}
.inp input:focus{outline:0;border-color:var(--blue)}
.inp button{font:inherit;font-weight:800;border:0;border-radius:12px;background:var(--blue);color:#fff;padding:0 18px;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

.owner{background:var(--ink);color:#fff;border-radius:22px;padding:18px;min-height:420px}
.owner .hint{color:#aab3bf;font-size:15px;margin:0 0 14px}
.feed{display:flex;flex-direction:column;gap:12px}
.empty{border:2px dashed #39424f;border-radius:16px;padding:22px;color:#aab3bf;font-size:15px}
.lead{background:#fff;color:var(--ink);border-radius:16px;overflow:hidden;animation:in .3s ease-out}
.lead .lh{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 15px;border-bottom:1px solid var(--line)}
.lead .lh b{font-weight:800}
.chip{font-size:12px;font-weight:800;background:var(--sun);border-radius:999px;padding:3px 10px;white-space:nowrap}
.chip.g{background:#d6f3e6;color:#075e3c}
.note{background:#1c2733;border-radius:14px;padding:11px 15px;font-size:15px;animation:in .3s ease-out}
.note b{color:var(--sun)}
.cta{margin-top:20px;background:var(--sun);border-radius:22px;padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.cta h2{font-size:26px}
.cta p{margin:6px 0 0;max-width:34em}
.btn{display:inline-block;background:var(--ink);color:#fff;font-weight:800;text-decoration:none;padding:15px 22px;border-radius:14px}
.fine{color:var(--soft);font-size:14px;margin:14px 0 0}
.list{list-style:none;margin:0;padding:0;border-top:3px solid var(--ink)}
.list a{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:28px;align-items:baseline;padding:20px 0;border-bottom:1px solid var(--line);text-decoration:none}
.list b{font-size:clamp(22px,2.6vw,32px);font-weight:800;letter-spacing:-.03em;line-height:1.1}
.list span{color:var(--soft)}
.list i{font-style:normal;font-weight:800;color:var(--blue);white-space:nowrap}
@media (max-width:860px){
 .wrap{padding:16px 16px 40px}
 .top{margin-bottom:22px;align-items:flex-start;gap:12px}
 .head,.stage{grid-template-columns:1fr;gap:14px}
 .head p{font-size:16px}
 .chat{height:560px}
 .m,.m.rich{max-width:94%}.m.rich{width:94%}
 .owner{min-height:0}
 .btn{width:100%;text-align:center}
 .list a{grid-template-columns:1fr auto;gap:4px 14px}.list span{grid-column:1/-1;order:3}
}
@media (prefers-reduced-motion:reduce){.m,.lead,.note{animation:none}}
