*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#f4f5f7;
  color:#2f3336;
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:#c94a3c;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}

/* Top bar — telegram-like but warmer */
.top{
  position:sticky;top:0;z-index:100;
  background:rgba(244,245,247,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e2e4e8;
}
.top-inner{
  max-width:960px;margin:0 auto;padding:0 16px;
  height:50px;display:flex;align-items:center;gap:8px;
}
.nav{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0;flex:1}
.nav a{
  display:inline-block;padding:14px 12px 12px;font-size:13px;font-weight:500;
  color:#c94a3c;position:relative;text-decoration:none;
}
.nav a:after{
  content:"";position:absolute;left:6px;right:6px;bottom:-1px;height:3px;
  background:#e85d4c;border-radius:2px 2px 0 0;opacity:0;transition:opacity .15s;
}
.nav a:hover:after,.nav a.active:after{opacity:1}
.nav-right{display:flex;align-items:center;gap:10px;margin-left:auto}
.lang{
  font-size:12px;font-weight:600;color:#c94a3c;
  border:1px solid #e0c4c0;border-radius:6px;padding:5px 10px;text-decoration:none;
}
.theme-btn{
  border:0;background:transparent;cursor:pointer;color:#8a9098;
  width:40px;height:40px;border-radius:8px;font-size:18px;line-height:1;
}
.theme-btn:hover{background:rgba(0,0,0,.04);color:#555}

/* Main column ~420px like telegram desktop */
.page{padding:0 16px 48px}
.content{width:min(420px,100%);margin:0 auto;text-align:center}

.hero-shot{
  margin-top:48px;
  background:url("../assets/img/hero-laptop.png") 50% 0 / contain no-repeat;
  padding-top:58%;
}

.title{
  margin:32px 0 14px;font-size:28px;font-weight:650;letter-spacing:-.5px;
  color:#2a2e31;line-height:1.15;
}
.title a{color:inherit;text-decoration:none}
.lead{
  margin:0 10px 24px;font-size:17px;font-weight:300;line-height:1.48;
  color:#6a6e72;
}

/* CTA band wider than content column */
.dl-band{width:min(680px,100vw);margin:0 auto;text-align:center}
.dl-group{display:inline-block;vertical-align:top;margin:0 8px 8px}
.dl-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-width:266px;padding:10px 18px;margin:5px 0;
  border-radius:28px;border:0;cursor:pointer;
  background:#e85d4c;color:#fff;font-size:15px;line-height:2;font-weight:500;
  box-shadow:0 8px 20px rgba(232,93,76,.22);text-decoration:none;
  transition:background .15s;
}
.dl-btn:hover{background:#d64c3c;color:#fff;text-decoration:none}
.dl-btn b{font-weight:700}
.dl-ico{
  width:18px;height:18px;border-radius:50%;
  background:rgba(255,255,255,.22);display:inline-grid;place-items:center;
  font-size:11px;font-weight:700;
}
.dl-sub{
  display:block;margin-top:10px;padding:0 12px 16px;
  font-size:14px;color:#c94a3c;cursor:pointer;text-decoration:none;
}
.dl-sub:hover{text-decoration:underline}
.dl-divider{font-size:9px;color:#999;margin:0 4px;vertical-align:text-bottom}

.hidden-plats{display:none}
body.all-shown .hidden-plats{display:block}
body.all-shown .show-all{display:none}
.show-all{margin:6px 0 10px}

.meta{
  margin:50px 10px 24px;font-size:14px;color:#6a6e72;line-height:1.7;
}
.meta a{color:#c94a3c}

/* download page extras */
.dl-page .hero-shot{margin-top:36px;padding-top:48%}
.tips{
  margin:36px auto 0;max-width:420px;text-align:left;
  background:#fff;border:1px solid #e6e8ec;border-radius:12px;padding:18px 20px;
}
.tips h2{margin:0 0 10px;font-size:16px;color:#2a2e31}
.tips ol{margin:0;padding-left:18px;color:#6a6e72;font-size:14px}
.tips li{margin:6px 0}

.footer-note{
  max-width:420px;margin:40px auto 0;text-align:center;
  font-size:12px;color:#8a9098;
}

/* Dark theme — soft slate, not telegram navy clone */
html[data-theme="dark"] body{background:#1a1f24;color:#e6eaee}
html[data-theme="dark"] .top{background:rgba(26,31,36,.92);border-bottom-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .nav a,html[data-theme="dark"] .lang{color:#f0a79d}
html[data-theme="dark"] .nav a:after{background:#e85d4c}
html[data-theme="dark"] .title{color:#f2f4f6}
html[data-theme="dark"] .lead,html[data-theme="dark"] .meta,html[data-theme="dark"] .footer-note{color:#9aa3ab}
html[data-theme="dark"] .tips{background:#232a31;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .tips h2{color:#f2f4f6}
html[data-theme="dark"] .tips ol{color:#9aa3ab}
html[data-theme="dark"] .theme-btn{color:#9aa3ab}
html[data-theme="dark"] .theme-btn:hover{background:rgba(255,255,255,.06)}

@media(max-width:520px){
  .title{font-size:24px;margin-top:24px}
  .lead{font-size:15px}
  .dl-btn{min-width:0;width:100%}
  .dl-group{display:block;margin:0 0 12px}
  .nav a{padding:14px 8px 12px;font-size:12px}
  .nav .hide-sm{display:none}
}
