html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light dark;
}

.tgme_head_wrap {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  height: auto;
  min-height: 54px;
  box-sizing: border-box;
}

.tgme_logo {
  max-width: min(133px, 42vw);
  height: auto;
}

.tgme_body_wrap {
  padding: calc(70px + env(safe-area-inset-top, 0px)) 12px calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.tgme_page {
  width: 100%;
  max-width: 400px;
  margin: 12px auto;
  padding: 28px 12px 24px;
  box-sizing: border-box;
}

.tgme_page_title {
  max-width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
  font-size: clamp(23px, 6vw, 29px);
  line-height: 1.25;
}

.tgme_page_extra,
.tgme_page_description {
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  word-break: break-word;
}

.tgme_page_extra {
  font-size: 18px;
  line-height: 23px;
}

.tgme_page_description {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  margin: 12px 8px 0;
  font-size: clamp(17px, 4.1vw, 19px);
  line-height: 1.45;
}

.tgme_page_action {
  margin-top: 20px;
  padding: 0 8px;
}

a.tgme_action_button_new {
  box-sizing: border-box;
  width: min(100%, 280px);
  min-height: 44px;
  height: auto;
  padding: 13px 20px;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.tgme_page_additional {
  display: none !important;
}

@media (max-width: 360px) {
  .tgme_page {
    padding: 22px 8px 20px;
    border-radius: 14px;
  }

  .tgme_page_photo_image {
    width: 96px;
    height: 96px;
    border-radius: 48px;
  }

  .tgme_page_action {
    padding: 0;
  }
}

@media (max-width: 320px) {
  .tgme_body_wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tgme_page_title {
    font-size: 21px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .tgme_page {
    margin: 8px auto;
    padding: 16px 12px;
  }

  .tgme_page_photo {
    padding-bottom: 8px;
  }

  .tgme_page_photo_image {
    width: 72px;
    height: 72px;
    border-radius: 36px;
  }
}
