﻿: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, 0.84);
  --accent-link-color: #2481cc;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--body-bg);
}

a,
a:hover {
  color: var(--accent-link-color);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.tgme_page_wrap {
  font-family: "Roboto", "Segoe UI", Arial, 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: var(--pattern-url, none);
  opacity: var(--pattern-intensity, 1);
}

.tgme_background_pattern.default {
  opacity: 0.3;
  background-image: url('/telegram-bg-pattern.svg');
}

.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, 0.1);
  background: var(--box-bg-blured);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  z-index: 10;
}

.tgme_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tgme_head_brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  text-decoration: none;
}

.tgme_logo_mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.tgme_brand_text {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1px;
}

a.tgme_head_right_btn {
  display: inline-block;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-btn-color);
  padding: 9px 16px;
  border-radius: 17px;
  text-align: center;
  text-decoration: none;
}

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

.tgme_market_wrap {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 9;
}

body.has-topbar .tgme_market_wrap {
  top: 62px;
}

a.tgme_market_btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  color: #4b5a68;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

a.tgme_market_btn:hover,
a.tgme_market_btn:active {
  color: #2f3d4b;
  background: rgba(255, 255, 255, 0.94);
  text-decoration: none;
}

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

body.has-promo .tgme_body_wrap {
  padding-top: 34px;
}

body.has-topbar .tgme_body_wrap {
  padding-top: 96px;
}

body.has-topbar.has-promo .tgme_body_wrap {
  padding-top: 66px;
}

.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;
  transition: all 0.15s ease 0.15s;
}

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

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

.avatar-fallback {
  background: linear-gradient(180deg, #b6d0dc, #7fb586);
  color: #fff;
  font-size: 44px;
  line-height: 122px;
  text-align: center;
  font-weight: 700;
}

.tgme_page_title {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  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_action {
  text-align: center;
  margin-top: 24px;
  line-height: 0;
}

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

a.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 linear 5s infinite;
}

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

@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;
  }

  .avatar-fallback {
    line-height: 110px;
  }

  .tgme_page {
    margin-top: 0;
  }

  body.has-promo .tgme_body_wrap {
    padding-top: 20px;
  }

  body.has-topbar .tgme_body_wrap {
    padding-top: 84px;
  }

  body.has-topbar.has-promo .tgme_body_wrap {
    padding-top: 56px;
  }

  .tgme_brand_text {
    font-size: 16px;
  }

  a.tgme_head_right_btn {
    padding: 8px 13px;
    font-size: 13px;
  }

  .tgme_market_wrap {
    left: 10px;
    top: 10px;
  }

  body.has-topbar .tgme_market_wrap {
    top: 58px;
  }

  a.tgme_market_btn {
    padding: 7px 10px;
    font-size: 11px;
  }
}

.tgme_promo_page {
  padding: 20px;
}

.tgme_promo_image_wrap {
  text-align: center;
}

.tgme_promo_image {
  display: inline-block;
  max-width: 100%;
  max-height: 340px;
  border-radius: 12px;
  object-fit: cover;
}

.tgme_promo_text {
  font-size: 15px;
  line-height: 23px;
  text-align: center;
  margin-top: 14px;
  color: var(--text-color);
  white-space: normal;
}

.tgme_promo_text a {
  color: var(--accent-link-color);
  text-decoration: underline;
}

.tgme_promo_text b,
.tgme_promo_text strong {
  font-weight: 700;
}

.tgme_promo_text i,
.tgme_promo_text em {
  font-style: italic;
}
