/* Desktop: avatar is the left column, sections grow to its right */
.profileTop {
  flex-shrink: 0;
}

.userInfo {
  display: none;
}

/* < 1024px: avatar + userInfo side by side at the top */
@media (max-width: 1023px) {
  .profileTop {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .userInfo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
  }

  .userName {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
  }

  .userBalance {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .userBalanceRub {
    font-size: 13px;
    color: var(--text-secondary);
  }
}

/* < 550px: меньше текст и аватар */
@media (max-width: 549px) {
  .profileTop {
    gap: 16px;
  }

  .userInfo {
    padding-top: 8px;
  }

  .userName {
    font-size: 18px;
  }

  .userBalance {
    font-size: 22px;
    margin-top: 4px;
  }

  .userBalanceRub {
    font-size: 12px;
  }
}
