@font-face{font-family:Inter;src:url(/fonts/Inter-sub.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{color-scheme:light;--ink:#18203a;--accent:#3354e0;--paper:#f4f6fb;--white:#fff;--muted:rgba(24,32,58,.62);--line:rgba(24,32,58,.11);--tint:rgba(51,84,224,.08)}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}
button:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.draft{background:var(--ink);color:rgba(255,255,255,.8);font-size:12px;line-height:1.4;text-align:center;padding:8px 16px}
.page{max-width:1240px;margin:0 auto;padding:22px 40px 28px}
.top{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:40px}
.top p{margin:0;line-height:1.25}.top b{display:block;font-size:17px;letter-spacing:-.02em}.top span{font-size:13px;color:var(--muted)}
.logo{width:42px;height:42px;border-radius:12px;background:var(--accent);display:flex;flex-direction:column;justify-content:center;gap:3px;padding:0 9px}
.logo i{display:block;height:5px;border-radius:3px;background:#fff}.logo i:nth-child(2){opacity:.7}.logo i:nth-child(3){opacity:.45}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:56px;align-items:start}
h1{font-size:60px;line-height:1;letter-spacing:-.045em;font-weight:820;margin:0 0 22px}
h1 em{font-style:normal;color:var(--accent);display:block}
.description{font-size:18px;line-height:1.6;color:var(--muted);margin:0 0 28px;max-width:560px}
.facts{list-style:none;margin:0 0 30px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.facts li{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px 14px 15px}
.facts b{display:block;font-size:14px;line-height:1.3;margin-bottom:4px}.facts span{display:block;font-size:13px;line-height:1.4;color:var(--muted)}
h2{font-size:16px;font-weight:700;margin:0;letter-spacing:-.01em}
/* чат */
.chat{height:640px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:var(--white);border-radius:26px;overflow:hidden;box-shadow:0 24px 60px rgba(24,32,58,.12);position:sticky;top:20px}
.chat-top{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;flex:none}
.chat-top>div{flex:1;min-width:0}
.status{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin:2px 0 0}.status span{width:7px;height:7px;border-radius:50%;background:#2fb36b}
.text-button{border:0;background:var(--paper);color:var(--ink);padding:8px 12px;border-radius:10px;font-size:12px;font-weight:650;white-space:nowrap}
.text-button:hover{color:var(--accent)}
.messages{overflow-y:auto;overscroll-behavior:contain;padding:20px 18px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth;background:linear-gradient(var(--white),var(--white))}
.bubble{max-width:86%;padding:11px 14px;border-radius:18px;background:var(--paper);white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start;font-size:15px;line-height:1.5;margin:0}
.bubble.user{background:var(--accent);color:var(--white);align-self:flex-end;border-bottom-right-radius:6px}
.bubble.assistant{border-bottom-left-radius:6px}
.bubble.typing{font-size:12px;color:var(--muted);background:transparent;padding:2px 2px}
.suggestions{padding:4px 16px 14px;display:flex;flex-wrap:wrap;gap:8px}
.suggestions button{border:1.5px solid var(--line);background:var(--white);color:var(--ink);border-radius:999px;padding:8px 13px;font-size:13px;font-weight:600;text-align:left;line-height:1.3}
.suggestions button:hover{border-color:var(--accent);color:var(--accent)}
.composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 14px 14px;border-top:1px solid var(--line)}
.composer textarea{resize:none;min-height:48px;max-height:120px;border:1.5px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.4}
.composer textarea:focus{outline:none;border-color:var(--accent);background:var(--white)}
#send{height:48px;padding:0 18px;border:0;border-radius:14px;background:var(--accent);color:#fff;font-weight:700;font-size:14px;white-space:nowrap}
.error{grid-column:1/-1;margin:0;font-size:12px;color:#c0392b}
/* журнал */
.journal{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:20px}
.journal-note{margin:6px 0 14px;font-size:13px;color:var(--muted)}
.empty{margin:0;padding:16px;border:1.5px dashed var(--line);border-radius:14px;text-align:center;font-size:13px;color:var(--muted)}
.lead{border-radius:14px;background:var(--tint);padding:14px 16px;margin:0 0 8px;display:grid;gap:2px}
.lead p,.lead span,.lead div{margin:0}
.lead .lead-name{font-weight:750}.lead .lead-phone{font-variant-numeric:tabular-nums}.lead .lead-detail{font-size:13px;color:var(--muted)}
.lead .lead-state{font-size:12px;font-weight:650;color:var(--accent);margin-top:4px}
.demo-note{margin:12px 0 0;font-size:12px;color:var(--muted)}
footer{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media (max-width:1060px){.workspace{grid-template-columns:1fr}.chat{position:static;order:-1}h1{font-size:46px}.intro{order:0}}
@media (max-width:700px){
.page{padding:14px 12px 24px}
.top{margin-bottom:18px;padding-bottom:14px}
.top b{font-size:15px}.logo{width:36px;height:36px;border-radius:10px;padding:0 8px}
.workspace{gap:22px;display:flex;flex-direction:column}
.intro{display:contents}
h1{font-size:32px;margin:0 0 10px;order:1}
.description{font-size:15px;margin:0;order:2}
.chat{order:3;height:min(620px,calc(100svh - 120px));border-radius:22px}
.facts{order:4;grid-template-columns:1fr;gap:8px;margin:0}
.journal{order:5}
.bubble{font-size:14.5px}
}
