:root {
  --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, .84);
  --tme-logo-color: #363b40;
  --accent-link-color: #2481cc;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--body-bg);
  color: var(--text-color);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a {
  color: #0088cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.tgme_background_wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--body-bg);
  overflow: hidden;
}

.tgme_background {
  width: 100%;
  height: 100%;
  display: block;
}

.tgme_background_pattern {
  position: absolute;
  inset: 0;
  opacity: .3;
  mix-blend-mode: overlay;
  background-image: url("assets/telegram-pattern.svg");
  background-position: center;
  background-repeat: repeat;
  background-size: 420px auto;
}

.tgme_page_wrap {
  color: var(--text-color);
}

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

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

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

.tgme_head_right_btn {
  display: inline-block;
  height: 34px;
  padding: 9px 16px;
  border-radius: 17px;
  background: var(--accent-btn-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  text-transform: uppercase;
  transition: background .15s ease .15s;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.tgme_page_photo {
  line-height: 0;
  margin-bottom: 16px;
  text-align: center;
}

.tgme_page_photo_image {
  width: 122px;
  height: 122px;
  border-radius: 61px;
  object-fit: cover;
}

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

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

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

.tgme_action_button_new {
  position: relative;
  display: inline-block;
  height: 42px;
  padding: 13px 24px;
  overflow: hidden;
  border-radius: 22px;
  background-color: var(--accent-btn-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  text-transform: uppercase;
  vertical-align: top;
  -webkit-font-smoothing: antialiased;
}

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

.tgme_action_button_new.shine {
  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 5s linear infinite;
}

.tgme_page_additional {
  margin: 24px 0 0;
  padding: 0 16px;
  color: var(--second-text-color);
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}

.tgme_page_additional strong {
  color: #808080;
  -webkit-font-smoothing: antialiased;
}

@keyframes bg-move {
  from {
    background-position: -500px 0;
  }

  to {
    background-position: 500px 0;
  }
}

@media (max-width: 480px) {
  .tgme_body_wrap {
    padding-top: 70px;
  }

  .tgme_page {
    margin-top: 0;
  }

  .tgme_page_photo_image {
    width: 110px;
    height: 110px;
    border-radius: 55px;
  }

  .tgme_page_title {
    font-size: 24px;
    line-height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgme_action_button_new.shine {
    animation: none;
  }
}
