﻿: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;
}

.tgme_brand_text_topen .brand_open {
  display: inline-block;
  color: #2481cc;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(8px);
  transition: max-width 0.85s cubic-bezier(.22,.75,.2,1), opacity 0.35s ease 0.1s, transform 0.85s cubic-bezier(.22,.75,.2,1);
}

.tgme_brand_text_topen {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.tgme_brand_text_topen.brand-animate-in .brand_open {
  max-width: 4.2ch;
  opacity: 1;
  transform: translateX(0);
}

.tgme_page_title_home {
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  padding: 0 16px;
}

.tgme_brand_text_home {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: clamp(44px, 10vw, 66px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.tgme_brand_text_home .brand_open {
  color: #2481cc;
  transition: max-width 2s cubic-bezier(.22,.75,.2,1), opacity 0.8s ease 0.2s, transform 2s cubic-bezier(.22,.75,.2,1);
}

.tgme_brand_text_topen.tgme_brand_text_home.brand-animate-in .brand_open {
  position: relative;
}

.tgme_brand_text_topen.tgme_brand_text_home.brand-animate-in .brand_open::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  white-space: nowrap;
  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;
  background-size: 500px 100%;
  background-position: -500px 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  animation: brand-open-shine linear 5s 2s infinite;
}

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_home_row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.tgme_home_row > .tgme_page {
  margin: 16px 0;
  max-width: 400px;
  flex: 1 1 400px;
}

.tgme_redirect_stage {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.tgme_redirect_stage > .tgme_page {
  margin: 16px auto;
}

.tgme_redirect_stage > .tgme_proxy_page {
  position: absolute;
  top: 16px;
  left: calc(100% + 16px);
  margin: 0;
}

.tgme_redirect_stage > .tgme_qr_page {
  position: absolute;
  top: 16px;
  right: calc(100% + 16px);
  margin: 0;
}

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

.tgme_proxy_page {
  margin: 16px 0;
  width: min(320px, 100%);
  flex: 0 1 320px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tgme_proxy_title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.tgme_proxy_text {
  min-height: 38px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--second-text-color);
  text-align: center;
}

.tgme_proxy_page .tgme_page_action {
  text-align: center;
  margin-top: 16px;
}

.tgme_proxy_page .tgme_action_button_new {
  text-transform: none;
}

.tgme_qr_page {
  width: min(320px, 100%);
  flex: 0 1 320px;
  padding: 24px 20px;
}

.tgme_qr_title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.tgme_qr_preview {
  margin-top: 14px;
  padding: 8px 0 2px;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tgme_qr_preview.is-empty {
  display: none;
}

.tgme_qr_preview.is-empty .tgme_qr_canvas {
  visibility: hidden;
  opacity: 0;
}

.tgme_qr_canvas {
  display: block;
  width: min(100%, 238px);
  height: auto;
  border-radius: 0;
  background: transparent;
}

.tgme_qr_status {
  min-height: 38px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--second-text-color);
  text-align: center;
}

.tgme_qr_actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tgme_qr_actions .tgme_action_button_new {
  min-width: 132px;
  text-transform: none;
}

@media (max-width: 1140px) {
  .tgme_redirect_stage > .tgme_proxy_page {
    position: static;
    margin: 16px auto 0;
    width: min(400px, 100%);
    max-width: 400px;
  }

  .tgme_redirect_stage > .tgme_qr_page {
    position: static;
    margin: 16px auto 0;
    width: min(400px, 100%);
    max-width: 400px;
  }
}

a.tgme_action_button_new,
button.tgme_action_button_new {
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  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;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

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,
button.tgme_action_button_new:hover,
button.tgme_action_button_new:active {
  color: #fff;
  background-color: var(--accent-color-hover);
  text-decoration: none;
}

button.tgme_action_button_new:disabled,
button.tgme_action_button_new.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background-color: #6da8d8;
}

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

  100% {
    background-position: 1000px 0;
  }
}

@keyframes brand-open-shine {
  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;
  }

  .tgme_home_row {
    max-width: 420px;
    flex-direction: column;
    gap: 0;
  }

  .tgme_home_row > .tgme_page,
  .tgme_proxy_page {
    max-width: 400px;
    width: 100%;
    flex-basis: auto;
  }

  .tgme_proxy_title {
    font-size: 21px;
  }

  .tgme_qr_title {
    font-size: 21px;
  }

  .tgme_proxy_text {
    min-height: 0;
  }

  .tgme_qr_preview {
    padding: 6px 0 2px;
  }

  .tgme_qr_canvas {
    width: min(100%, 224px);
  }

  .tgme_qr_actions {
    margin-top: 14px;
    gap: 8px;
  }

  .tgme_qr_actions .tgme_action_button_new {
    min-width: 122px;
    padding: 11px 18px;
    height: 40px;
  }

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

  .tgme_brand_text_home {
    font-size: clamp(36px, 14vw, 54px);
    letter-spacing: -0.6px;
  }

  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_page.promo-animate-on-load {
  backface-visibility: hidden;
  transform: translateZ(0);
}

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