/* Статическая копия стилей t.me (по telegram.css), без JS */

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html.native_fonts body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
}

body,
html.theme_dark body.bg_light {
  --text-color: #000;
  --second-text-color: #7d7f81;
  --accent-btn-color: #2481cc;
  --accent-color-hover: #1a8ad5;
  --body-bg: #fff;
  --box-bg: #fff;
  --box-bg-blured: rgba(255, 255, 255, 0.84);
  --tme-logo-color: #363b40;
  --tme-desc-color: #808080;
  --accent-link-color: #2481cc;
  /* чуть темнее стандартного акцентного линка t.me */
  --tme-page-url-color: #1a5f8c;
  --tme-page-url-hover: #154a6e;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-color);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

.no_transition,
.no_transition * {
  transition: none !important;
}

/* как в telegram.css + normalize: ссылки в шапке переопределяются ниже */
a {
  background: transparent;
}

a:active,
a:hover {
  outline: 0;
}

a,
a:hover {
  color: #0088cc;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  text-decoration: none;
}

/* Фон: те же цвета, что data-colors у canvas на t.me — без скрипта tgwallpaper */
.tgme_bg_fallback {
  background:
    radial-gradient(ellipse 85% 70% at 18% 28%, rgba(213, 216, 141, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 75% 65% at 82% 22%, rgba(107, 165, 135, 0.85) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 55% 88%, rgba(136, 184, 132, 0.75) 0%, transparent 52%),
    linear-gradient(165deg, #dbddbb 0%, #d5d88d 45%, #88b884 100%);
  opacity: 1;
}

.tgme_page_wrap {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
}

.tgme_background_wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: var(--body-bg);
}

.tgme_background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.tgme_background_pattern {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  background: center repeat;
  background-size: 420px auto;
  background-image: url("https://telegram.org/img/tgme/pattern.svg?1");
  opacity: 0.3;
}

.tgme_head_wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 54px;
  padding: 10px 16px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: var(--box-bg-blured);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  z-index: 1;
  font-family: "Roboto", sans-serif;
}

@supports not (backdrop-filter: blur(0px)) {
  .tgme_head_wrap {
    background: #fff;
  }
}

.tgme_head {
  display: flex;
  justify-content: space-between;
}

.tgme_head_brand {
  display: inline-block;
  vertical-align: top;
  flex-shrink: 0;
  line-height: 0;
}

.tgme_head_wrap a.tgme_head_brand,
.tgme_head_wrap a.tgme_head_brand:hover,
.tgme_head_wrap a.tgme_head_brand:focus,
.tgme_head_wrap a.tgme_head_brand:active {
  text-decoration: none;
  color: inherit;
}

.tgme_logo {
  display: inline-block;
  vertical-align: top;
}

a.tgme_head_right_btn {
  display: inline-block;
  font-size: 14px;
  line-height: 17px;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-btn-color);
  padding: 9px 16px;
  height: 34px;
  border-radius: 17px;
  text-align: center;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s ease 0.15s;
}

a.tgme_head_right_btn:hover,
a.tgme_head_right_btn:active {
  text-decoration: none;
  color: #fff;
  background: var(--accent-color-hover);
}

.tgme_body_wrap {
  padding: 70px 16px 40px;
}

.tgme_page {
  position: relative;
  margin: 16px auto;
  padding: 32px 0;
  max-width: 400px;
  background: var(--box-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.tgme_page a {
  color: var(--accent-link-color);
}

.tgme_page_photo {
  text-align: center;
  padding-bottom: 16px;
}

.tgme_page_photo_image {
  width: 122px;
  height: 122px;
  border-radius: 61px;
  display: inline-block;
  vertical-align: top;
  object-fit: cover;
}

.tgme_page_title {
  font-size: 26px;
  line-height: 32px;
  font-weight: bold;
  text-align: center;
  max-width: 340px;
  padding: 0 10px;
  margin: 0 auto;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tgme_page_extra {
  font-size: 15px;
  line-height: 18px;
  text-align: center;
  padding: 6px 16px 0;
  color: var(--second-text-color);
}

.tgme_page_desc_header,
.tgme_page_description {
  font-size: 16px;
  line-height: 25px;
  text-align: center;
  margin: 10px 16px 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 125px;
  word-break: break-word;
  color: var(--tme-desc-color);
}

.tgme_page_description a.tgme_page_url,
.tgme_page_description a.tgme_page_url:visited {
  color: var(--tme-page-url-color);
  text-decoration: none;
}

.tgme_page_description a.tgme_page_url:hover,
.tgme_page_description a.tgme_page_url:active {
  color: var(--tme-page-url-hover);
  text-decoration: underline;
}

.tgme_page_action {
  text-align: center;
  margin-top: 24px;
  line-height: 0;
}

a.tgme_action_button_new {
  font-size: 14px;
  line-height: 17px;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  color: #fff;
  background: #5dc390;
  border-radius: 22px;
  overflow: hidden;
  display: inline-block;
  padding: 13px 24px;
  height: 42px;
  text-transform: uppercase;
  vertical-align: top;
  text-decoration: none;
  box-sizing: border-box;
}

a.tgme_action_button_new.shine {
  background-color: var(--accent-btn-color);
  background-image: linear-gradient(
    270deg,
    rgba(100, 181, 239, 0) 48.44%,
    #64b5ef 75.52%,
    rgba(100, 181, 239, 0) 100%
  );
  background-repeat: no-repeat;
  animation: bg-move linear 5s infinite;
}

a.tgme_action_button_new:hover,
a.tgme_action_button_new:active {
  color: #fff;
  text-decoration: none;
  background-color: var(--accent-color-hover);
}

@keyframes bg-move {
  0% {
    background-position: -500px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@media (max-width: 480px) {
  .tgme_page_photo_image {
    width: 110px;
    height: 110px;
    border-radius: 55px;
  }

  .tgme_page {
    margin-top: 0;
  }
}
