:root{--ink:#111318;--muted:#6f737d;--surface:rgba(255,255,255,.72);--line:rgba(17,19,24,.09)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;background:#f5f6f8;position:relative;overflow-x:hidden}
body:before,body:after{content:"";position:fixed;border-radius:50%;filter:blur(3px);pointer-events:none;z-index:-1}
body:before{width:55vw;height:55vw;right:-18vw;top:-25vw;background:radial-gradient(circle,rgba(107,85,255,.16),rgba(107,85,255,0) 68%)}
body:after{width:52vw;height:52vw;left:-22vw;bottom:-30vw;background:radial-gradient(circle,rgba(39,167,232,.13),rgba(39,167,232,0) 68%)}
button,input{font:inherit}
main{width:min(1180px,calc(100% - 64px));margin:0 auto;padding:clamp(55px,8vh,100px) 0 90px}
h1{font-size:clamp(60px,8.7vw,132px);font-weight:850;line-height:.88;letter-spacing:-.078em;margin:0 0 clamp(105px,18vh,190px);white-space:nowrap;background:linear-gradient(115deg,#0d0f13 15%,#383b43 72%,#111318);-webkit-background-clip:text;background-clip:text;color:transparent}
section{padding:clamp(24px,4vw,46px);border:1px solid rgba(255,255,255,.9);background:var(--surface);box-shadow:0 24px 80px rgba(31,35,48,.08),inset 0 1px 0 #fff;border-radius:36px;backdrop-filter:blur(20px)}
h2{display:flex;align-items:center;gap:18px;font-size:clamp(36px,5vw,64px);font-weight:780;letter-spacing:-.06em;line-height:1;margin:0 0 42px}
h2:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,rgba(17,19,24,.2),transparent)}
.channels{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.channel{--tint:#f0f1f3;--brand:#222;appearance:none;min-width:0;aspect-ratio:.88/1;border:1px solid rgba(255,255,255,.86);border-radius:27px;background:linear-gradient(145deg,rgba(255,255,255,.94),var(--tint));color:var(--ink);padding:22px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;text-decoration:none;text-align:left;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 8px 28px rgba(23,26,36,.055),inset 0 1px 0 #fff;transition:transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .32s,border-color .32s}
.channel:before{content:"↗";position:absolute;right:18px;top:18px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.72);color:var(--ink);font-size:17px;box-shadow:0 4px 12px rgba(0,0,0,.05);transition:transform .3s}
.channel:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;left:-65px;top:-70px;background:var(--brand);opacity:.07;filter:blur(1px)}
.channel:hover{transform:translateY(-7px);box-shadow:0 22px 45px rgba(23,26,36,.13),inset 0 1px 0 #fff;border-color:rgba(255,255,255,1)}
.channel:hover:before{transform:rotate(45deg)}
.telegram{--brand:#26a8e9;--tint:#eaf7fd}.max{--brand:#7055ff;--tint:#f0edff}.vk{--brand:#2787f5;--tint:#eaf3ff}.onsite{--brand:#2f3239;--tint:#eef0f3}
.icon{width:clamp(84px,9vw,112px);height:clamp(84px,9vw,112px);border-radius:29px;display:grid;place-items:center;color:#fff;background:var(--brand);position:relative;z-index:1;box-shadow:0 15px 30px color-mix(in srgb,var(--brand) 25%,transparent),inset 0 1px 0 rgba(255,255,255,.25)}
.icon svg{width:54%;height:54%;fill:#fff}.onsite .icon svg{fill:none;stroke:#fff;stroke-width:1.8}.text-icon{font-size:clamp(29px,3.6vw,43px);font-weight:850;letter-spacing:-.06em}
.channel strong{font-size:clamp(20px,2vw,25px);letter-spacing:-.035em;position:relative;z-index:1}
.add-channel{grid-column:1/-1;height:58px;border:1px dashed rgba(17,19,24,.22);border-radius:18px;background:rgba(255,255,255,.48);color:#565a64;font-weight:650;cursor:pointer;transition:.25s}
.add-channel:hover{background:#fff;border-color:rgba(17,19,24,.45);color:#111318;transform:translateY(-2px)}
.modal{position:fixed;inset:0;padding:20px;background:rgba(239,241,245,.72);backdrop-filter:blur(16px);display:grid;place-items:center;z-index:10;opacity:0;visibility:hidden;transition:.25s}.modal.open{opacity:1;visibility:visible}
.chat{width:min(430px,100%);height:min(620px,85vh);border:1px solid rgba(17,19,24,.1);border-radius:28px;background:#fff;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 90px rgba(20,23,32,.18)}
.chat header{height:78px;border-bottom:1px solid var(--line);padding:16px 20px;display:flex;align-items:center;justify-content:space-between}.chat header div{display:flex;flex-direction:column}.chat header small{font-size:11px;color:#36a963;margin-top:4px}.chat header button,.form-head button{border:0;background:none;font-size:30px;cursor:pointer;color:inherit}.messages{flex:1;padding:20px;overflow:auto;background:#fafafa}.message{max-width:80%;padding:12px 14px;border-radius:15px;font-size:14px;line-height:1.45;margin-bottom:10px}.message.bot{background:#fff;border:1px solid var(--line)}.message.user{background:#111318;color:#fff;margin-left:auto}.chat form{height:74px;border-top:1px solid var(--line);display:flex;padding:10px;gap:8px}.chat form input{flex:1;border:0;border-radius:14px;background:#f3f4f6;padding:0 14px;outline:none}.chat form button{width:52px;border:0;border-radius:14px;background:#111318;color:#fff;font-size:24px;cursor:pointer}
.add-form{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:27px;box-shadow:0 30px 90px rgba(20,23,32,.18)}.form-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.form-head h3{font-size:26px;margin:0}.add-form label{display:block;font-size:13px;font-weight:700;margin:16px 0}.add-form input{display:block;width:100%;height:52px;border:1px solid #dfe1e5;border-radius:14px;padding:0 13px;margin-top:7px;outline:none}.add-form input:focus{border-color:#777}.save{width:100%;height:52px;border:0;border-radius:14px;background:#111318;color:#fff;font-weight:700;cursor:pointer;margin-top:8px}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,15px);padding:12px 18px;border-radius:14px;background:#111318;color:#fff;font-size:12px;opacity:0;visibility:hidden;transition:.2s;z-index:20;box-shadow:0 15px 35px rgba(0,0,0,.15)}.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(max-width:900px){main{width:min(100% - 32px,720px);padding-top:52px}h1{font-size:clamp(47px,11.5vw,84px);margin-bottom:120px}.channels{grid-template-columns:1fr 1fr}.channel{aspect-ratio:1/1.02}.icon{width:96px;height:96px}section{border-radius:30px;padding:28px}}
@media(max-width:520px){body:before{width:110vw;height:110vw;right:-55vw;top:-30vw}main{width:calc(100% - 24px);padding:34px 0 45px}h1{font-size:clamp(29px,11.2vw,53px);letter-spacing:-.065em;margin-bottom:88px}section{padding:16px;border-radius:25px}h2{font-size:clamp(29px,8.8vw,40px);margin:8px 0 25px;gap:12px}.channels{gap:10px}.channel{padding:14px;border-radius:22px;aspect-ratio:.91/1}.channel:before{width:31px;height:31px;right:12px;top:12px;font-size:14px}.icon{width:clamp(65px,20vw,86px);height:clamp(65px,20vw,86px);border-radius:22px}.channel strong{font-size:clamp(15px,4.4vw,19px)}.add-channel{height:54px;border-radius:16px}}
@media(max-width:350px){main{width:calc(100% - 16px);padding-top:26px}h1{margin-bottom:68px}.channels{gap:7px}section{padding:11px}.channel{padding:11px;border-radius:18px}.channel strong{font-size:14px}.add-channel{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
