/* Страница канала в стиле Telegram: /t и вариант tg главной (владелец 29.10.2026, пример batkowave.com).
   Шапка как на t.me: логотип Telegram и «Скачать». Тема как у телефона: светлая - белый фон, тёмная - тёмный
   (prefers-color-scheme). Фон с узором как в чатах Telegram (свой рисунок img/tg-pattern*.svg), карточка канала,
   под кнопкой лента: сделка из журнала и сообщения участников, внизу ещё одна кнопка. Без подвала и плашки cookie.
   Шрифт системный: на Android это Roboto, на iPhone - San Francisco, как в самом Telegram. */
:root {
  --bg: #ffffff; --pattern: url(../img/tg-pattern-light.svg?v=1); --card: #ffffff; --line: rgba(0, 0, 0, .07);
  --shadow: 0 1px 2px rgba(16, 35, 47, .08), 0 10px 32px rgba(16, 35, 47, .10);
  --text: #000; --muted: #707579; --btn: #3390ec; --btn-hi: #2a7fd4; --link: #3390ec; --head: rgba(255, 255, 255, .92);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e; --pattern: url(../img/tg-pattern.svg?v=2); --card: #212121; --line: rgba(255, 255, 255, .06);
    --shadow: 0 10px 40px rgba(0, 0, 0, .45);
    --text: #fff; --muted: #aaaaaa; --btn: #2a9ef1; --btn-hi: #1f8ad6; --link: #5eb5f7; --head: rgba(33, 33, 33, .92);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
.tgp-body {
  background: var(--bg) var(--pattern) repeat; background-size: 360px 360px;
  color: var(--text); font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
/* шапка как на t.me */
.tgp-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 16px; background: var(--head); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.tgp-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tgp-logo svg { flex: none; }
.tgp-dl {
  height: 36px; padding: 0 18px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--btn); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.tgp { display: flex; flex-direction: column; align-items: center; padding: 28px 16px 40px; }
.tgp-card {
  width: 100%; max-width: 440px; background: var(--card); border-radius: 24px; padding: 40px 28px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow);
}
.tgp-ava { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; background: #000; }
.tgp-name { margin-top: 22px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.tgp-user { margin-top: 8px; font-size: 16px; color: var(--muted); }
.tgp-desc { margin-top: 20px; font-size: 16.5px; line-height: 1.55; }
.tgp-desc span { display: block; }
.tgp-desc span + span { margin-top: 4px; }
.tgp-btn {
  margin-top: 30px; min-width: 230px; height: 54px; padding: 0 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 27px; background: var(--btn); color: #fff; text-decoration: none; font-size: 16px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background .2s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.tgp-btn:hover, .tgp-btn:focus-visible { background: var(--btn-hi); outline: none; }
.tgp-btn:active { transform: scale(.98); }
.tgp-hint { margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tgp-hint a { color: var(--link); text-decoration: none; }
/* лента под кнопкой: посты как в канале Telegram */
.tgp-feed { width: 100%; max-width: 440px; margin-top: 2rem; display: flex; flex-direction: column; gap: 14px; }
.tgp-post { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.tgp-post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.tgp-post-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tgp-post-head b { font-size: 15px; font-weight: 600; }
.tgp-post-media { display: grid; gap: 2px; background: var(--line); }
.tgp-post-media.two { grid-template-columns: 1fr 1fr; align-items: start; }
.tgp-post-media img { display: block; width: 100%; height: auto; background: var(--card); }
.tgp-post-text { padding: 12px 14px 14px; font-size: 15.5px; line-height: 1.5; }
.tgp-end { width: 100%; max-width: 440px; margin-top: 2rem; display: flex; justify-content: center; }
.tgp-end .tgp-btn { margin-top: 0; }
@media (max-width: 420px) {
  .tgp-card { padding: 34px 20px 30px; border-radius: 22px; }
  .tgp-ava { width: 116px; height: 116px; }
  .tgp-name { font-size: 23px; }
  .tgp-desc { font-size: 16px; }
}
@media (min-width: 640px) {
  .tgp { padding-top: 44px; }
  .tgp-card, .tgp-feed, .tgp-end { max-width: 560px; }
  .tgp-card { padding: 48px 40px 44px; }
  .tgp-ava { width: 136px; height: 136px; }
  .tgp-name { font-size: 30px; }
  .tgp-user { font-size: 17px; }
  .tgp-desc { font-size: 18px; }
}
