@font-face {
  font-family: "Roboto";
  src: url("assets/Roboto-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/Roboto-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: #000;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(0deg, rgba(0, 0, 0, .1), transparent 3.74%),
    radial-gradient(126.14% 31.7% at 50% 0, #c1caa9 0, rgba(193, 202, 169, 0) 100%),
    radial-gradient(96.8% 44.87% at 50% 90.79%, #c5d08b 0, rgba(197, 208, 139, 0) 100%),
    #7eae8b;
  background-attachment: fixed;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: url("assets/bg.svg");
  mix-blend-mode: soft-light;
}

.header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  padding: 10px 16px;
  background: #e8f1eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

.telegram-logo {
  display: block;
  width: auto;
  height: 34px;
}

.main {
  position: relative;
  z-index: 1;
  padding: 70px 16px 40px;
}

.card {
  width: 100%;
  max-width: 400px;
  margin: 16px auto;
  padding: 32px 0;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.avatar-link,
.avatar {
  display: block;
}

.avatar {
  width: 122px;
  height: 122px;
  border-radius: 50%;
}

.profile-copy {
  width: 100%;
}

h1 {
  max-width: 340px;
  margin: 0 auto 6px;
  padding: 0 10px;
  overflow: hidden;
  color: #000;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.username {
  margin: 0 0 6px;
  padding: 0 16px;
  color: #7d7f81;
  font-size: 14px;
}

.description {
  max-width: 400px;
  margin: 0 auto;
  padding: 0 16px;
}

.button,
.offer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  padding: 11px 24px;
  background: #2381cc;
  border-radius: 22px;
}

.button--small {
  min-height: 34px;
  height: 34px;
  padding: 7px 16px;
  border-radius: 17px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.offer-title {
  margin: 0;
  padding: 0 16px;
  font-weight: 500;
}

.offer-button {
  min-height: 50px;
  gap: 4px;
  padding: 11px 24px;
  line-height: 1.48rem;
  background: linear-gradient(.402turn, #88d862 2.96%, #2fbc72 82.62%);
  border-radius: 22px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.coins {
  display: block;
  flex: 0 0 auto;
}

@media (max-width: 430px) {
  .main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .offer-button {
    max-width: calc(100% - 32px);
  }
}
