body {
  background-color: var(--color-night-900);
}

.card {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--color-night-900);
  background-image: var(--grad-dome), var(--grad-night);
}

.card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 438px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: 128px var(--space-6) 44px;
  padding-top: clamp(var(--space-8), 16svh, 128px);
}

/* Свободная высота делится поровну над группой и под ней; на низком экране
   обе доли схлопываются, а не выталкивают кнопку за край. */
.card__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin-top: auto;
  margin-bottom: auto;
}

.card__avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow:
    0 0 0 2px var(--color-gold-ring),
    0 0 0 8px var(--color-gold-tint),
    0 22px 48px var(--color-scrim);
}

.card__texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.card__headline {
  max-width: 300px;
  color: var(--color-bone);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 42px;
  text-align: center;
  text-wrap: balance;
}

.card__subline {
  max-width: 300px;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: 27px;
  text-align: center;
  text-wrap: balance;
}

.card__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  border-radius: var(--radius-xl);
  background-image: var(--grad-gold);
  box-shadow:
    inset 0 1px 0 var(--color-sheen),
    var(--shadow-gold);
  color: var(--color-night-900);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 26px;
  text-decoration: none;
}

.card__handle {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  overflow-wrap: anywhere;
}

.card__alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.card__alt-note {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 16px;
  text-align: center;
}

.card__alt-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.card__alt-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius-full);
  color: var(--color-text-strong);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
