/* === Telegram preview theme ===
   - font: Roboto
   - DOWNLOAD button: #1c93e3
   - background: black wall #000 + doodle pattern (pattern.svg)
*/

:root{
  --tg-blue: #1c93e3;           /* основной цвет CTA */
  --tg-blue-press: #177cc0;
  --tg-card: rgba(34, 34, 34);
  --tg-text: #e8e8e8;
  --tg-muted: #ffffff;
  --tg-border: #383d42;
  --tg-radius: 18px;
}

:root{
  --pattern-color: #359671;     /* цвет линий узора */
  --pattern-opacity: 0.35;      /* прозрачность узора 0..1 */
}

html, body { height:100%; }
body{
  background:#000;              /* чёрная “стенка” */
  color: var(--tg-text);
  font-family:"Roboto",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
}

/* слой-узор поверх чёрного фона (через mask, чтоб цвет всегда применился) */
body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none;
  background-color: var(--pattern-color);   /* цвет узора */
  opacity: var(--pattern-opacity);
  -webkit-mask: url("../img/pattern.svg") 0 0/512px repeat;
  mask: url("../img/pattern.svg") 0 0/512px repeat;
  z-index:0;
}

/* контент поверх узора */
.tg-wrap{ position:relative; z-index:1; }

.tg-title{ margin:16px 0 6px; font-size:28px; font-weight:800; color:#fff; }

.tg-sub{
  display:flex; align-items:center; justify-content:center;
  gap:6px; color:#8f9aa3; font-size:14px; margin-bottom:8px;
}
.tg-verified{ display:inline-flex; }

/* компактная шапка, только логотип слева */
.tg-topbar{
  position: sticky; top:0; z-index:5;
  height: 48px;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 16px;               /* уменьшили вертикальные отступы */
  border-bottom: 1px solid var(--tg-border);
  background: rgba(34, 34, 34, .84);
  backdrop-filter: blur(6px);
}
.tg-logo{ height:35px; display:block; }
.tg-topbar__brand{
  display:inline-flex; gap:10px; align-items:center;
  color:#fff; font-weight:600; z-index:1;
}
.tg-topbar__brand img{height:22px; display:block;}
.tg-topbar__download{
  border:0; background: var(--tg-blue); color:#fff;
  padding:8px 14px; border-radius:999px;
  font-weight:700; text-decoration:none;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
  font-size: 14px;
  height: 34px;
}
.tg-topbar__download:hover{ background: var(--tg-blue-press); color:#fff; text-decoration: none; }

/* карточка */
.tg-wrap{
  min-height: calc(100% - 48px);
  display:grid; place-items:start center;
  padding:40px 12px 64px;
  position:relative; z-index:1;
}
.tg-card{
  width:100%; max-width:560px;
  margin-top:56px;
  border-radius:var(--tg-radius);
  background:var(--tg-card);
  border:1px solid var(--tg-border);
  box-shadow:0 18px 60px rgba(0,0,0,0.55);
  text-align:center;
  padding:28px 24px 22px;
}
.tg-card .avatar{
  width:96px; height:96px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.08);
  object-fit:cover;
}
.tg-title{
  margin:16px 0 6px; font-size:28px;
  font-weight:800; color:#fff;
}
.tg-desc{
  margin:0 auto 14px; max-width:480px;
  color:var(--tg-muted); font-size:15px; line-height:1.5;
  font-size: 16px;
}

/* кнопки */
.tg-actions{
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.tg-btn{
  display:inline-block;
  border-radius:999px;
  padding:10px 18px;
  text-decoration:none;
  font-weight:800;
  border:0;
  font-size: 14px;
  height: 42px;
}
.tg-btn-primary{
  background:var(--tg-blue); color:#fff;
}
.tg-btn-primary:hover{
  background:var(--tg-blue-press); color:#fff;
  text-decoration: none;
}
.tg-btn-secondary{
  order:2;
  background:transparent !important;
  color:#9aa4ad !important;
  font-weight:600; padding:0; margin-top:2px;
}
.tg-btn-secondary:hover{
  color:#c0c8cf !important;
  text-decoration: none;
}

/* адаптив */
@media (max-width:480px){
  .tg-card{ margin-top:36px; padding:22px 16px 18px; }
  .tg-title{ font-size:24px; }
}
