:root {
  --text-color: #000;
  --second-text-color: #7d7f81;
  --accent-btn-color: #2481cc;
  --accent-color-hover: #1a8ad5;
  --accent-link-color: #2481cc;
  --body-bg: #fff;
  --box-bg: #fff;
  --box-bg-blured: rgba(255, 255, 255, 0.84);
  --tme-logo-color: #363b40;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--body-bg);
  color: var(--text-color);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
}

a {
  color: var(--accent-link-color);
  text-decoration: none;
}

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

.tgme_background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(107, 165, 135, 0.8) 0, rgba(107, 165, 135, 0) 45%),
    radial-gradient(circle at 82% 76%, rgba(213, 216, 141, 0.9) 0, rgba(213, 216, 141, 0) 52%),
    linear-gradient(135deg, #6ba587 0%, #dbddbb 48%, #d5d88d 100%);
}

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

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

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

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

.tgme_head_brand {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: var(--tme-logo-color);
}

.tgme_logo_mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
}

.tgme_logo_mark svg {
  display: block;
  width: 28px;
  height: 28px;
}

.tgme_logo_mark circle {
  fill: var(--accent-btn-color);
}

.tgme_logo_mark path {
  fill: #fff;
}

.tgme_logo_text {
  margin-left: 7px;
  color: var(--tme-logo-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

.tgme_head_right_btn {
  display: inline-block;
  padding: 8px 15px 7px;
  border-radius: 16px;
  background: var(--accent-btn-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 12px;
  -webkit-font-smoothing: antialiased;
}

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

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

.tgme_page {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  padding: 24px 0 22px;
  background: var(--box-bg);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

.tgme_page_photo_image {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 56px;
  object-fit: cover;
}

.tgme_page_title {
  max-width: 260px;
  margin: 0 auto;
  padding: 0 10px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

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

.tgme_page_description,
.tgme_page_desc_header {
  margin: 10px 16px 0;
  padding: 0;
  overflow: hidden;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  text-overflow: ellipsis;
}

.tgme_page_description {
  margin-top: 7px;
}

.tgme_page_desc_header {
  margin-top: 31px;
  font-size: 13px;
  line-height: 18px;
}

.tgme_page_dots {
  margin: 14px 16px 0;
  color: var(--text-color);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

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

.tgme_action_button_new {
  display: inline-block;
  min-width: 132px;
  padding: 11px 17px 10px;
  overflow: hidden;
  border-radius: 19px;
  background-color: var(--accent-btn-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  -webkit-font-smoothing: antialiased;
}

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

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

.company-data {
  position: fixed;
  left: 58px;
  bottom: 52px;
  z-index: 1;
  color: rgba(0, 0, 0, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  text-align: left;
}

.company-data p {
  margin: 0;
}

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

@media (max-width: 595px) {
  .tgme_page_wrap {
    min-height: calc(100svh - 118px);
    min-height: calc(100dvh - 118px);
  }

  .tgme_head_wrap {
    height: 40px;
    padding: 4px 12px;
  }

  .tgme_head_right_btn {
    padding: 8px 15px 7px;
    font-size: 12px;
  }

  .tgme_body_wrap {
    padding: 52px 10px 12px;
  }

  .tgme_page {
    margin-top: 0;
  }

  .tgme_page_photo_image {
    width: 104px;
    height: 104px;
    border-radius: 52px;
  }

  .company-data {
    position: static;
    max-width: 300px;
    margin: 0 auto 28px;
    padding: 0 4px;
    color: rgba(0, 0, 0, 0.84);
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 430px) {
  .tgme_logo_text {
    font-size: 18px;
  }

  .tgme_head_right_btn {
    max-width: 148px;
    white-space: nowrap;
  }
}

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